From 75c5242b9f40913dd0a1e8cdfafaf65033e9e259 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Fri, 16 Feb 2024 14:55:28 -0800 Subject: [PATCH 01/50] Adds ApiResponse interface --- samples/client/petstore/java/.openapi-generator/FILES | 1 + .../client/response/ApiResponse.java | 6 ++++++ .../codegen/generators/JavaClientGenerator.java | 7 ++++++- .../src/main/java/packagename/response/ApiResponse.hbs | 6 ++++++ 4 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ApiResponse.java create mode 100644 src/main/resources/java/src/main/java/packagename/response/ApiResponse.hbs diff --git a/samples/client/petstore/java/.openapi-generator/FILES b/samples/client/petstore/java/.openapi-generator/FILES index a500121d335..c8136283c00 100644 --- a/samples/client/petstore/java/.openapi-generator/FILES +++ b/samples/client/petstore/java/.openapi-generator/FILES @@ -768,6 +768,7 @@ src/main/java/org/openapijsonschematools/client/paths/userusername/put/requestbo 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/schemas/AnyTypeJsonSchema.java src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ApiResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ApiResponse.java new file mode 100644 index 00000000000..0a7254124d3 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ApiResponse.java @@ -0,0 +1,6 @@ +package org.openapijsonschematools.client.requestbody; + +public interface ApiResponse { + HeaderOutputClass headers(); + SealedBodyOutputClass body(); +} \ No newline at end of file diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java index ce41158f3ac..f322a6bfd2c 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java @@ -752,7 +752,6 @@ public void processOpts() { "src/test/java/packagename/requestbody/RequestBodySerializerTest.hbs", testPackagePath() + File.separatorChar + "requestbody", "RequestBodySerializerTest.java")); - // mediatype supportingFiles.add(new SupportingFile( "src/main/java/packagename/mediatype/MediaType.hbs", @@ -767,7 +766,13 @@ public void processOpts() { "src/main/java/packagename/parameter/ParameterStyle.hbs", packagePath() + File.separatorChar + "parameter", "ParameterStyle.java")); + // response + supportingFiles.add(new SupportingFile( + "src/main/java/packagename/response/ApiResponse.hbs", + packagePath() + File.separatorChar + "response", + "ApiResponse.java")); + // jsonPaths // requestbodies jsonPathTemplateFiles.put( CodegenConstants.JSON_PATH_LOCATION_TYPE.REQUEST_BODY, diff --git a/src/main/resources/java/src/main/java/packagename/response/ApiResponse.hbs b/src/main/resources/java/src/main/java/packagename/response/ApiResponse.hbs new file mode 100644 index 00000000000..1072d0f4dec --- /dev/null +++ b/src/main/resources/java/src/main/java/packagename/response/ApiResponse.hbs @@ -0,0 +1,6 @@ +package {{{packageName}}}.requestbody; + +public interface ApiResponse { + HeaderOutputClass headers(); + SealedBodyOutputClass body(); +} \ No newline at end of file From c13764982daecba17df51a68d7324d188ee9cfaa Mon Sep 17 00:00:00 2001 From: Justin Black Date: Sat, 17 Feb 2024 13:22:35 -0800 Subject: [PATCH 02/50] Adds ApiResponse and ResponseDeserializer --- .../petstore/java/.openapi-generator/FILES | 1 + .../client/response/ApiResponse.java | 17 +++-- .../client/response/ResponseDeserializer.java | 62 ++++++++++++++++++ .../generators/JavaClientGenerator.java | 4 ++ .../java/packagename/response/ApiResponse.hbs | 17 +++-- .../response/ResponseDeserializer.hbs | 63 +++++++++++++++++++ 6 files changed, 156 insertions(+), 8 deletions(-) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java create mode 100644 src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs diff --git a/samples/client/petstore/java/.openapi-generator/FILES b/samples/client/petstore/java/.openapi-generator/FILES index c8136283c00..32854a1ed96 100644 --- a/samples/client/petstore/java/.openapi-generator/FILES +++ b/samples/client/petstore/java/.openapi-generator/FILES @@ -769,6 +769,7 @@ src/main/java/org/openapijsonschematools/client/requestbody/GenericRequestBody.j 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/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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ApiResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ApiResponse.java index 0a7254124d3..a621ceecc75 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ApiResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ApiResponse.java @@ -1,6 +1,15 @@ -package org.openapijsonschematools.client.requestbody; +package org.openapijsonschematools.client.response; -public interface ApiResponse { - HeaderOutputClass headers(); - SealedBodyOutputClass body(); +import java.net.http.HttpResponse; + +public class ApiResponse { + public final HttpResponse response; + public final SealedBodyOutputClass body; + public final HeaderOutputClass headers; + + public ApiResponse(HttpResponse response, SealedBodyOutputClass body, HeaderOutputClass headers) { + this.response = response; + this.body = body; + this.headers = headers; + } } \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java new file mode 100644 index 00000000000..895522aac28 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java @@ -0,0 +1,62 @@ +package org.openapijsonschematools.client.response; + +import java.net.http.HttpHeaders; +import java.net.http.HttpResponse; +import java.nio.charset.StandardCharsets; +import java.util.Map; +import java.util.Optional; +import java.util.regex.Pattern; + +import org.checkerframework.checker.nullness.qual.Nullable; +import com.google.gson.Gson; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.mediatype.MediaType; + +public abstract class ResponseDeserializer { + public final @Nullable Map> content; + public final @Nullable Map headers; // todo change the value to header + private static final Pattern jsonContentTypePattern = Pattern.compile( + "application/[^+]*[+]?(json);?.*" + ); + private static final Gson gson = new Gson(); + private static final String textPlainContentType = "text/plain"; + + public ResponseDeserializer(@Nullable Map> content) { + this.content = content; + this.headers = null; + } + + public abstract SealedBodyClass getBody(String contentType, @Nullable Object body); + public abstract HeaderClass getHeaders(HttpHeaders headers); + + protected @Nullable Object deserializeJson(byte[] body) { + String bodyStr = new String(body, StandardCharsets.UTF_8); + return gson.fromJson(bodyStr, Object.class); + } + + protected String deserializeTextPlain(byte[] body) { + return new String(body, StandardCharsets.UTF_8); + } + + protected static boolean contentTypeIsJson(String contentType) { + return jsonContentTypePattern.matcher(contentType).find(); + } + + public ApiResponse deserialize(HttpResponse response, SchemaConfiguration configuration) { + Optional contentTypeInfo = response.headers().firstValue("Content-Type"); + if (contentTypeInfo.isEmpty()) { + throw new RuntimeException("Invalid response returned, Content-Type header is missing and it must be included"); + } + String contentType = contentTypeInfo.get(); + if (content != null && !content.containsKey(contentType)) { + throw new RuntimeException( + "Invalid contentType returned. contentType="+contentType+" was returned "+ + "when only "+content.keySet()+" are defined for statusCode="+response.statusCode() + ); + } + byte[] bodyBytes = response.body(); + SealedBodyClass body = getBody(contentType, bodyBytes); + HeaderClass headers = getHeaders(response.headers()); + return new ApiResponse<>(response, body, headers); + } +} \ No newline at end of file diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java index f322a6bfd2c..a5e6b4af4fc 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java @@ -771,6 +771,10 @@ public void processOpts() { "src/main/java/packagename/response/ApiResponse.hbs", packagePath() + File.separatorChar + "response", "ApiResponse.java")); + supportingFiles.add(new SupportingFile( + "src/main/java/packagename/response/ResponseDeserializer.hbs", + packagePath() + File.separatorChar + "response", + "ResponseDeserializer.java")); // jsonPaths // requestbodies diff --git a/src/main/resources/java/src/main/java/packagename/response/ApiResponse.hbs b/src/main/resources/java/src/main/java/packagename/response/ApiResponse.hbs index 1072d0f4dec..dd0f6988f9f 100644 --- a/src/main/resources/java/src/main/java/packagename/response/ApiResponse.hbs +++ b/src/main/resources/java/src/main/java/packagename/response/ApiResponse.hbs @@ -1,6 +1,15 @@ -package {{{packageName}}}.requestbody; +package {{{packageName}}}.response; -public interface ApiResponse { - HeaderOutputClass headers(); - SealedBodyOutputClass body(); +import java.net.http.HttpResponse; + +public class ApiResponse { + public final HttpResponse response; + public final SealedBodyOutputClass body; + public final HeaderOutputClass headers; + + public ApiResponse(HttpResponse response, SealedBodyOutputClass body, HeaderOutputClass headers) { + this.response = response; + this.body = body; + this.headers = headers; + } } \ No newline at end of file diff --git a/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs b/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs new file mode 100644 index 00000000000..4875909c542 --- /dev/null +++ b/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs @@ -0,0 +1,63 @@ +package {{{packageName}}}.response; + +import java.net.http.HttpHeaders; +import java.net.http.HttpResponse; +import java.nio.charset.StandardCharsets; +import java.util.Map; +import java.util.Optional; +import java.util.regex.Pattern; + +import org.checkerframework.checker.nullness.qual.Nullable; +import com.google.gson.Gson; + +import {{{packageName}}}.configurations.SchemaConfiguration; +import {{{packageName}}}.mediatype.MediaType; + +public abstract class ResponseDeserializer { + public final @Nullable Map> content; + public final @Nullable Map headers; // todo change the value to header + private static final Pattern jsonContentTypePattern = Pattern.compile( + "application/[^+]*[+]?(json);?.*" + ); + private static final Gson gson = new Gson(); + private static final String textPlainContentType = "text/plain"; + + public ResponseDeserializer(@Nullable Map> content) { + this.content = content; + this.headers = null; + } + + public abstract SealedBodyClass getBody(String contentType, @Nullable Object body); + public abstract HeaderClass getHeaders(HttpHeaders headers); + + protected @Nullable Object deserializeJson(byte[] body) { + String bodyStr = new String(body, StandardCharsets.UTF_8); + return gson.fromJson(bodyStr, Object.class); + } + + protected String deserializeTextPlain(byte[] body) { + return new String(body, StandardCharsets.UTF_8); + } + + protected static boolean contentTypeIsJson(String contentType) { + return jsonContentTypePattern.matcher(contentType).find(); + } + + public ApiResponse deserialize(HttpResponse response, SchemaConfiguration configuration) { + Optional contentTypeInfo = response.headers().firstValue("Content-Type"); + if (contentTypeInfo.isEmpty()) { + throw new RuntimeException("Invalid response returned, Content-Type header is missing and it must be included"); + } + String contentType = contentTypeInfo.get(); + if (content != null && !content.containsKey(contentType)) { + throw new RuntimeException( + "Invalid contentType returned. contentType="+contentType+" was returned "+ + "when only "+content.keySet()+" are defined for statusCode="+response.statusCode() + ); + } + byte[] bodyBytes = response.body(); + SealedBodyClass body = getBody(contentType, bodyBytes); + HeaderClass headers = getHeaders(response.headers()); + return new ApiResponse<>(response, body, headers); + } +} \ No newline at end of file From d2d50f44b275e55b15d800c7b2a078938a9be7ba Mon Sep 17 00:00:00 2001 From: Justin Black Date: Sun, 18 Feb 2024 10:23:48 -0800 Subject: [PATCH 03/50] Adds partial test of ResponseDeserializer --- .../client/response/ApiResponse.java | 14 +- .../response/DeserializedApiResponse.java | 30 +++ .../client/response/ResponseDeserializer.java | 8 +- .../response/ResponseDeserializerTest.java | 175 ++++++++++++++++++ .../java/packagename/response/ApiResponse.hbs | 14 +- .../response/DeserializedApiResponse.hbs | 30 +++ .../response/ResponseDeserializer.hbs | 8 +- 7 files changed, 251 insertions(+), 28 deletions(-) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/DeserializedApiResponse.java create mode 100644 samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java create mode 100644 src/main/resources/java/src/main/java/packagename/response/DeserializedApiResponse.hbs diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ApiResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ApiResponse.java index a621ceecc75..dab55e0f2da 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ApiResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ApiResponse.java @@ -2,14 +2,8 @@ import java.net.http.HttpResponse; -public class ApiResponse { - public final HttpResponse response; - public final SealedBodyOutputClass body; - public final HeaderOutputClass headers; - - public ApiResponse(HttpResponse response, SealedBodyOutputClass body, HeaderOutputClass headers) { - this.response = response; - this.body = body; - this.headers = headers; - } +public interface ApiResponse { + HttpResponse response(); + SealedBodyOutputClass body(); + HeaderOutputClass headers(); } \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/DeserializedApiResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/DeserializedApiResponse.java new file mode 100644 index 00000000000..b0340ce004a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/DeserializedApiResponse.java @@ -0,0 +1,30 @@ +package org.openapijsonschematools.client.response; + +import java.net.http.HttpResponse; + +public class DeserializedApiResponse implements ApiResponse { + private final HttpResponse response; + private final SealedBodyOutputClass body; + private final HeaderOutputClass headers; + + public DeserializedApiResponse(HttpResponse response, SealedBodyOutputClass body, HeaderOutputClass headers) { + this.response = response; + this.body = body; + this.headers = headers; + } + + @Override + public HttpResponse response() { + return response; + } + + @Override + public SealedBodyOutputClass body() { + return body; + } + + @Override + public HeaderOutputClass headers() { + return headers; + } +} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java index 895522aac28..538a7c77433 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java @@ -19,14 +19,14 @@ public abstract class ResponseDeserializer { "application/[^+]*[+]?(json);?.*" ); private static final Gson gson = new Gson(); - private static final String textPlainContentType = "text/plain"; + protected static final String textPlainContentType = "text/plain"; public ResponseDeserializer(@Nullable Map> content) { this.content = content; this.headers = null; } - public abstract SealedBodyClass getBody(String contentType, @Nullable Object body); + public abstract SealedBodyClass getBody(String contentType, byte[] body, SchemaConfiguration configuration); public abstract HeaderClass getHeaders(HttpHeaders headers); protected @Nullable Object deserializeJson(byte[] body) { @@ -55,8 +55,8 @@ public ApiResponse deserialize(HttpResponse(response, body, headers); + return new DeserializedApiResponse<>(response, body, headers); } } \ No newline at end of file diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java new file mode 100644 index 00000000000..2f0eae98ee4 --- /dev/null +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java @@ -0,0 +1,175 @@ +package org.openapijsonschematools.client.response; + +import com.google.gson.Gson; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.junit.Assert; +import org.junit.Test; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +import javax.net.ssl.SSLSession; +import java.net.URI; +import java.net.http.HttpClient; +import java.net.http.HttpHeaders; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.nio.charset.StandardCharsets; +import java.util.List; +import java.util.Map; +import java.util.Optional; +import java.util.function.BiPredicate; + +public class ResponseDeserializerTest { + public sealed interface SealedResponseBody permits ApplicationjsonBody, TextplainBody { } + + public record ApplicationjsonBody(AnyTypeJsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } + + public record TextplainBody(StringJsonSchema.StringJsonSchema1Boxed body) implements SealedResponseBody {} + + public static class ApplicationjsonMediatype extends MediaType { + public ApplicationjsonMediatype() { + super(AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance()); + } + } + + public static class TextplainMediatype extends MediaType { + public TextplainMediatype() { + super(StringJsonSchema.StringJsonSchema1.getInstance()); + } + } + + + public static class MyResponseDeserializer extends ResponseDeserializer { + + public MyResponseDeserializer() { + super(Map.of("application/json", new ApplicationjsonMediatype(), "text/plain", new TextplainMediatype())); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if (contentTypeIsJson(contentType)) { + @Nullable Object bodyData = deserializeJson(body); + if (!(bodyData instanceof Number numberBodyData)) { + throw new RuntimeException("invalid type"); + } + var deserializedBody = AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(numberBodyData, configuration); + return new ApplicationjsonBody(deserializedBody); + } else { + String bodyData = deserializeTextPlain(body); + var deserializedBody = StringJsonSchema.StringJsonSchema1.getInstance().validateAndBox(bodyData, configuration); + return new TextplainBody(deserializedBody); + } + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } + + public static class BytesHttpResponse implements HttpResponse { + private final byte[] body; + private final HttpHeaders headers; + public BytesHttpResponse(byte[] body, String contentType) { + this.body = body; + BiPredicate headerFilter = (key, val) -> { + return true; + }; + this.headers = HttpHeaders.of(Map.of("Content-Type", List.of(contentType)), headerFilter); + } + + @Override + public int statusCode() { + return 202; + } + + @Override + public HttpRequest request() { + return null; + } + + @Override + public Optional> previousResponse() { + return Optional.empty(); + } + + @Override + public HttpHeaders headers() { + return headers; + } + + @Override + public byte[] body() { + return body; + } + + @Override + public Optional sslSession() { + return Optional.empty(); + } + + @Override + public URI uri() { + return null; + } + + @Override + public HttpClient.Version version() { + return null; + } + } + + @Test + public void testSerializeApplicationJson() { + Gson gson = new Gson(); + var deserializer = new MyResponseDeserializer(); + byte[] bodyBytes = gson.toJson(1).getBytes(StandardCharsets.UTF_8); + BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); + SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + ApiResponse apiResponse = deserializer.deserialize(response, configuration); + Assert.assertEquals(response, apiResponse.response()); + if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { + throw new RuntimeException("body must be type ApplicationjsonBody"); + } + Assert.assertTrue(jsonBody.body() instanceof AnyTypeJsonSchema.AnyTypeJsonSchema1BoxedNumber); +// ((ApplicationjsonBody) deserializedBody).body +// Assert.assertEquals("application/json", requestBody.contentType); +// jsonBody = getJsonBody(requestBody); +// Assert.assertEquals(jsonBody, "1"); +// +// requestBody = serializer.serialize(new RequestBodySerializerTest.ApplicationjsonRequestBody(3.14)); +// jsonBody = getJsonBody(requestBody); +// Assert.assertEquals(jsonBody, "3.14"); +// +// requestBody = serializer.serialize(new RequestBodySerializerTest.ApplicationjsonRequestBody(null)); +// jsonBody = getJsonBody(requestBody); +// Assert.assertEquals(jsonBody, "null"); +// +// requestBody = serializer.serialize(new RequestBodySerializerTest.ApplicationjsonRequestBody(true)); +// jsonBody = getJsonBody(requestBody); +// Assert.assertEquals(jsonBody, "true"); +// +// requestBody = serializer.serialize(new RequestBodySerializerTest.ApplicationjsonRequestBody(false)); +// jsonBody = getJsonBody(requestBody); +// Assert.assertEquals(jsonBody, "false"); +// +// +// requestBody = serializer.serialize(new RequestBodySerializerTest.ApplicationjsonRequestBody(List.of())); +// jsonBody = getJsonBody(requestBody); +// Assert.assertEquals(jsonBody, "[]"); +// +// requestBody = serializer.serialize(new RequestBodySerializerTest.ApplicationjsonRequestBody(Map.of())); +// jsonBody = getJsonBody(requestBody); +// Assert.assertEquals(jsonBody, "{}"); +// +// SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +// MapJsonSchema.MapJsonSchema1 mapJsonSchema = MapJsonSchema.MapJsonSchema1.getInstance(); +// var frozenMap = mapJsonSchema.validate(Map.of("k1", "v1", "k2", "v2"), configuration); +// requestBody = serializer.serialize(new RequestBodySerializerTest.ApplicationjsonRequestBody(frozenMap)); +// jsonBody = getJsonBody(requestBody); +// Assert.assertEquals(jsonBody, "{\"k2\":\"v2\",\"k1\":\"v1\"}"); + } +} \ No newline at end of file diff --git a/src/main/resources/java/src/main/java/packagename/response/ApiResponse.hbs b/src/main/resources/java/src/main/java/packagename/response/ApiResponse.hbs index dd0f6988f9f..00caf937855 100644 --- a/src/main/resources/java/src/main/java/packagename/response/ApiResponse.hbs +++ b/src/main/resources/java/src/main/java/packagename/response/ApiResponse.hbs @@ -2,14 +2,8 @@ package {{{packageName}}}.response; import java.net.http.HttpResponse; -public class ApiResponse { - public final HttpResponse response; - public final SealedBodyOutputClass body; - public final HeaderOutputClass headers; - - public ApiResponse(HttpResponse response, SealedBodyOutputClass body, HeaderOutputClass headers) { - this.response = response; - this.body = body; - this.headers = headers; - } +public interface ApiResponse { + HttpResponse response(); + SealedBodyOutputClass body(); + HeaderOutputClass headers(); } \ No newline at end of file diff --git a/src/main/resources/java/src/main/java/packagename/response/DeserializedApiResponse.hbs b/src/main/resources/java/src/main/java/packagename/response/DeserializedApiResponse.hbs new file mode 100644 index 00000000000..92602bcdb73 --- /dev/null +++ b/src/main/resources/java/src/main/java/packagename/response/DeserializedApiResponse.hbs @@ -0,0 +1,30 @@ +package {{{packageName}}}.response; + +import java.net.http.HttpResponse; + +public class DeserializedApiResponse implements ApiResponse { + private final HttpResponse response; + private final SealedBodyOutputClass body; + private final HeaderOutputClass headers; + + public DeserializedApiResponse(HttpResponse response, SealedBodyOutputClass body, HeaderOutputClass headers) { + this.response = response; + this.body = body; + this.headers = headers; + } + + @Override + public HttpResponse response() { + return response; + } + + @Override + public SealedBodyOutputClass body() { + return body; + } + + @Override + public HeaderOutputClass headers() { + return headers; + } +} \ No newline at end of file diff --git a/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs b/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs index 4875909c542..71cb8796267 100644 --- a/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs +++ b/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs @@ -20,14 +20,14 @@ public abstract class ResponseDeserializer { "application/[^+]*[+]?(json);?.*" ); private static final Gson gson = new Gson(); - private static final String textPlainContentType = "text/plain"; + protected static final String textPlainContentType = "text/plain"; public ResponseDeserializer(@Nullable Map> content) { this.content = content; this.headers = null; } - public abstract SealedBodyClass getBody(String contentType, @Nullable Object body); + public abstract SealedBodyClass getBody(String contentType, byte[] body, SchemaConfiguration configuration); public abstract HeaderClass getHeaders(HttpHeaders headers); protected @Nullable Object deserializeJson(byte[] body) { @@ -56,8 +56,8 @@ public abstract class ResponseDeserializer { ); } byte[] bodyBytes = response.body(); - SealedBodyClass body = getBody(contentType, bodyBytes); + SealedBodyClass body = getBody(contentType, bodyBytes, configuration); HeaderClass headers = getHeaders(response.headers()); - return new ApiResponse<>(response, body, headers); + return new DeserializedApiResponse<>(response, body, headers); } } \ No newline at end of file From e10cb65e080c72055dce0fef620962e9424c5ade Mon Sep 17 00:00:00 2001 From: Justin Black Date: Mon, 19 Feb 2024 11:54:28 -0800 Subject: [PATCH 04/50] Changes all autogen schema classes to use selaed interfaces rather than a sealed class --- .../Int32JsonContentTypeHeaderSchema.md | 8 +- .../numberheader/NumberHeaderSchema.md | 8 +- .../RefContentSchemaHeaderSchema.md | 2 +- .../refschemaheader/RefSchemaHeaderSchema.md | 2 +- .../stringheader/StringHeaderSchema.md | 8 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../parameters/pathusername/Schema.md | 8 +- .../refschemastringwithvalidation/Schema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationxml/ApplicationxmlSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 8 +- .../headers/location/LocationSchema.md | 8 +- .../applicationjson/ApplicationjsonSchema.md | 8 +- .../applicationxml/ApplicationxmlSchema.md | 8 +- .../applicationjson/ApplicationjsonSchema.md | 14 +- .../headers/someheader/SomeHeaderSchema.md | 8 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../components/schemas/AbstractStepMessage.md | 14 +- .../schemas/AdditionalPropertiesClass.md | 122 +++++++------- .../schemas/AdditionalPropertiesSchema.md | 74 ++++----- .../AdditionalPropertiesWithArrayOfEnums.md | 14 +- .../java/docs/components/schemas/Address.md | 14 +- .../java/docs/components/schemas/Animal.md | 20 +-- .../docs/components/schemas/AnimalFarm.md | 8 +- .../components/schemas/AnyTypeAndFormat.md | 152 +++++++++--------- .../components/schemas/AnyTypeNotString.md | 24 +-- .../components/schemas/ApiResponseSchema.md | 26 +-- .../java/docs/components/schemas/Apple.md | 22 +-- .../java/docs/components/schemas/AppleReq.md | 36 ++--- .../components/schemas/ArrayHoldingAnyType.md | 24 +-- .../schemas/ArrayOfArrayOfNumberOnly.md | 26 +-- .../docs/components/schemas/ArrayOfEnums.md | 8 +- .../components/schemas/ArrayOfNumberOnly.md | 20 +-- .../java/docs/components/schemas/ArrayTest.md | 50 +++--- .../schemas/ArrayWithValidationsInItems.md | 14 +- .../java/docs/components/schemas/Banana.md | 14 +- .../java/docs/components/schemas/BananaReq.md | 36 ++--- .../java/docs/components/schemas/Bar.md | 8 +- .../java/docs/components/schemas/BasquePig.md | 14 +- .../docs/components/schemas/BooleanEnum.md | 8 +- .../docs/components/schemas/BooleanSchema.md | 8 +- .../docs/components/schemas/Capitalization.md | 44 ++--- .../java/docs/components/schemas/Cat.md | 30 ++-- .../java/docs/components/schemas/Category.md | 20 +-- .../java/docs/components/schemas/ChildCat.md | 30 ++-- .../docs/components/schemas/ClassModel.md | 24 +-- .../java/docs/components/schemas/Client.md | 14 +- .../schemas/ComplexQuadrilateral.md | 30 ++-- ...omposedAnyOfDifferentTypesNoValidations.md | 128 +++++++-------- .../docs/components/schemas/ComposedArray.md | 24 +-- .../docs/components/schemas/ComposedBool.md | 24 +-- .../docs/components/schemas/ComposedNone.md | 24 +-- .../docs/components/schemas/ComposedNumber.md | 24 +-- .../docs/components/schemas/ComposedObject.md | 24 +-- .../schemas/ComposedOneOfDifferentTypes.md | 64 ++++---- .../docs/components/schemas/ComposedString.md | 24 +-- .../java/docs/components/schemas/Currency.md | 8 +- .../java/docs/components/schemas/DanishPig.md | 14 +- .../docs/components/schemas/DateTimeTest.md | 8 +- .../schemas/DateTimeWithValidations.md | 8 +- .../components/schemas/DateWithValidations.md | 8 +- .../docs/components/schemas/DecimalPayload.md | 8 +- .../java/docs/components/schemas/Dog.md | 30 ++-- .../java/docs/components/schemas/Drawing.md | 14 +- .../docs/components/schemas/EnumArrays.md | 26 +-- .../java/docs/components/schemas/EnumClass.md | 8 +- .../java/docs/components/schemas/EnumTest.md | 32 ++-- .../components/schemas/EquilateralTriangle.md | 30 ++-- .../java/docs/components/schemas/File.md | 14 +- .../components/schemas/FileSchemaTestClass.md | 14 +- .../java/docs/components/schemas/Foo.md | 8 +- .../docs/components/schemas/FormatTest.md | 138 ++++++++-------- .../docs/components/schemas/FromSchema.md | 20 +-- .../java/docs/components/schemas/Fruit.md | 24 +-- .../java/docs/components/schemas/FruitReq.md | 24 +-- .../java/docs/components/schemas/GmFruit.md | 24 +-- .../components/schemas/GrandparentAnimal.md | 14 +- .../components/schemas/HasOnlyReadOnly.md | 20 +-- .../components/schemas/HealthCheckResult.md | 16 +- .../docs/components/schemas/IntegerEnum.md | 8 +- .../docs/components/schemas/IntegerEnumBig.md | 8 +- .../components/schemas/IntegerEnumOneValue.md | 8 +- .../schemas/IntegerEnumWithDefaultValue.md | 8 +- .../docs/components/schemas/IntegerMax10.md | 8 +- .../docs/components/schemas/IntegerMin15.md | 8 +- .../components/schemas/IsoscelesTriangle.md | 30 ++-- .../java/docs/components/schemas/Items.md | 14 +- .../components/schemas/JSONPatchRequest.md | 24 +-- .../schemas/JSONPatchRequestAddReplaceTest.md | 52 +++--- .../schemas/JSONPatchRequestMoveCopy.md | 42 ++--- .../schemas/JSONPatchRequestRemove.md | 36 ++--- .../java/docs/components/schemas/Mammal.md | 18 +-- .../java/docs/components/schemas/MapTest.md | 50 +++--- ...dPropertiesAndAdditionalPropertiesClass.md | 26 +-- .../java/docs/components/schemas/Money.md | 30 ++-- .../docs/components/schemas/MyObjectDto.md | 30 ++-- .../java/docs/components/schemas/Name.md | 36 ++--- .../schemas/NoAdditionalProperties.md | 36 ++--- .../docs/components/schemas/NullableClass.md | 152 +++++++++--------- .../docs/components/schemas/NullableShape.md | 24 +-- .../docs/components/schemas/NullableString.md | 10 +- .../docs/components/schemas/NumberOnly.md | 14 +- .../docs/components/schemas/NumberSchema.md | 8 +- .../schemas/NumberWithExclusiveMinMax.md | 8 +- .../schemas/NumberWithValidations.md | 8 +- .../schemas/ObjWithRequiredProps.md | 14 +- .../schemas/ObjWithRequiredPropsBase.md | 14 +- .../components/schemas/ObjectInterface.md | 8 +- .../ObjectModelWithArgAndArgsProperties.md | 20 +-- .../schemas/ObjectModelWithRefProps.md | 8 +- ...ithAllOfWithReqTestPropFromUnsetAddProp.md | 30 ++-- .../schemas/ObjectWithCollidingProperties.md | 20 +-- .../schemas/ObjectWithDecimalProperties.md | 14 +- .../ObjectWithDifficultlyNamedProps.md | 26 +-- .../ObjectWithInlineCompositionProperty.md | 30 ++-- .../ObjectWithInvalidNamedRefedProperties.md | 8 +- .../ObjectWithNonIntersectingValues.md | 20 +-- .../schemas/ObjectWithOnlyOptionalProps.md | 36 ++--- .../schemas/ObjectWithOptionalTestProp.md | 14 +- .../schemas/ObjectWithValidations.md | 8 +- .../java/docs/components/schemas/Order.md | 44 ++--- .../schemas/PaginatedResultMyObjectDto.md | 36 ++--- .../java/docs/components/schemas/ParentPet.md | 8 +- .../java/docs/components/schemas/Pet.md | 44 ++--- .../java/docs/components/schemas/Pig.md | 18 +-- .../java/docs/components/schemas/Player.md | 14 +- .../java/docs/components/schemas/PublicKey.md | 14 +- .../docs/components/schemas/Quadrilateral.md | 18 +-- .../schemas/QuadrilateralInterface.md | 30 ++-- .../docs/components/schemas/ReadOnlyFirst.md | 20 +-- .../java/docs/components/schemas/RefPet.md | 2 +- .../schemas/ReqPropsFromExplicitAddProps.md | 14 +- .../schemas/ReqPropsFromTrueAddProps.md | 24 +-- .../schemas/ReqPropsFromUnsetAddProps.md | 8 +- .../docs/components/schemas/ReturnSchema.md | 24 +-- .../components/schemas/ScaleneTriangle.md | 30 ++-- .../components/schemas/Schema200Response.md | 30 ++-- .../schemas/SelfReferencingArrayModel.md | 8 +- .../schemas/SelfReferencingObjectModel.md | 8 +- .../java/docs/components/schemas/Shape.md | 18 +-- .../docs/components/schemas/ShapeOrNull.md | 24 +-- .../components/schemas/SimpleQuadrilateral.md | 30 ++-- .../docs/components/schemas/SomeObject.md | 18 +-- .../components/schemas/SpecialModelname.md | 14 +- .../components/schemas/StringBooleanMap.md | 14 +- .../docs/components/schemas/StringEnum.md | 10 +- .../schemas/StringEnumWithDefaultValue.md | 8 +- .../docs/components/schemas/StringSchema.md | 8 +- .../schemas/StringWithValidation.md | 8 +- .../java/docs/components/schemas/Tag.md | 20 +-- .../java/docs/components/schemas/Triangle.md | 18 +-- .../components/schemas/TriangleInterface.md | 30 ++-- .../docs/components/schemas/UUIDString.md | 8 +- .../java/docs/components/schemas/User.md | 124 +++++++------- .../java/docs/components/schemas/Whale.md | 26 +-- .../java/docs/components/schemas/Zebra.md | 36 ++--- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../delete/parameters/parameter0/Schema0.md | 8 +- .../delete/parameters/parameter1/Schema1.md | 8 +- .../get/parameters/parameter0/Schema0.md | 8 +- .../parameters/parameter0/PathParamSchema0.md | 8 +- .../post/parameters/parameter0/Schema0.md | 8 +- .../delete/parameters/parameter0/Schema0.md | 8 +- .../delete/parameters/parameter1/Schema1.md | 8 +- .../delete/parameters/parameter2/Schema2.md | 8 +- .../delete/parameters/parameter3/Schema3.md | 8 +- .../delete/parameters/parameter4/Schema4.md | 8 +- .../delete/parameters/parameter5/Schema5.md | 8 +- .../fake/get/parameters/parameter0/Schema0.md | 14 +- .../fake/get/parameters/parameter1/Schema1.md | 8 +- .../fake/get/parameters/parameter2/Schema2.md | 14 +- .../fake/get/parameters/parameter3/Schema3.md | 8 +- .../fake/get/parameters/parameter4/Schema4.md | 8 +- .../fake/get/parameters/parameter5/Schema5.md | 8 +- .../ApplicationxwwwformurlencodedSchema.md | 26 +-- .../applicationjson/ApplicationjsonSchema.md | 8 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../ApplicationxwwwformurlencodedSchema.md | 90 +++++------ .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../put/parameters/parameter0/Schema0.md | 8 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../put/parameters/parameter0/Schema0.md | 8 +- .../put/parameters/parameter1/Schema1.md | 8 +- .../put/parameters/parameter2/Schema2.md | 8 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../delete/parameters/parameter0/Schema0.md | 8 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 14 +- .../post/parameters/parameter0/Schema0.md | 24 +-- .../post/parameters/parameter1/Schema1.md | 30 ++-- .../applicationjson/ApplicationjsonSchema.md | 24 +-- .../MultipartformdataSchema.md | 30 ++-- .../applicationjson/ApplicationjsonSchema.md | 24 +-- .../MultipartformdataSchema.md | 30 ++-- .../ApplicationxwwwformurlencodedSchema.md | 20 +-- .../ApplicationjsonpatchjsonSchema.md | 2 +- .../Applicationjsoncharsetutf8Schema.md | 18 +-- .../Applicationjsoncharsetutf8Schema.md | 18 +-- .../applicationjson/ApplicationjsonSchema.md | 14 +- .../MultipartformdataSchema.md | 14 +- .../applicationjson/ApplicationjsonSchema.md | 18 +-- .../applicationjson/ApplicationjsonSchema.md | 18 +-- .../applicationjson/ApplicationjsonSchema.md | 18 +-- .../applicationjson/ApplicationjsonSchema.md | 18 +-- .../get/parameters/parameter0/Schema0.md | 14 +- .../post/parameters/parameter0/Schema0.md | 8 +- .../post/parameters/parameter1/Schema1.md | 8 +- .../post/parameters/parameter10/Schema10.md | 8 +- .../post/parameters/parameter11/Schema11.md | 8 +- .../post/parameters/parameter12/Schema12.md | 8 +- .../post/parameters/parameter13/Schema13.md | 8 +- .../post/parameters/parameter14/Schema14.md | 8 +- .../post/parameters/parameter15/Schema15.md | 8 +- .../post/parameters/parameter16/Schema16.md | 8 +- .../post/parameters/parameter17/Schema17.md | 8 +- .../post/parameters/parameter18/Schema18.md | 8 +- .../post/parameters/parameter2/Schema2.md | 8 +- .../post/parameters/parameter3/Schema3.md | 8 +- .../post/parameters/parameter4/Schema4.md | 8 +- .../post/parameters/parameter5/Schema5.md | 8 +- .../post/parameters/parameter6/Schema6.md | 8 +- .../post/parameters/parameter7/Schema7.md | 8 +- .../post/parameters/parameter8/Schema8.md | 8 +- .../post/parameters/parameter9/Schema9.md | 8 +- .../applicationjson/ApplicationjsonSchema.md | 18 +-- .../applicationjson/ApplicationjsonSchema.md | 18 +-- .../ApplicationxpemfileSchema.md | 8 +- .../ApplicationxpemfileSchema.md | 8 +- .../post/parameters/parameter0/Schema0.md | 8 +- .../MultipartformdataSchema.md | 18 +-- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../content/applicationjson/Schema0.md | 18 +-- .../applicationjson/ApplicationjsonSchema.md | 18 +-- .../get/parameters/parameter0/Schema0.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../put/parameters/parameter0/Schema0.md | 14 +- .../put/parameters/parameter1/Schema1.md | 14 +- .../put/parameters/parameter2/Schema2.md | 14 +- .../put/parameters/parameter3/Schema3.md | 14 +- .../put/parameters/parameter4/Schema4.md | 14 +- .../put/parameters/parameter5/Schema5.md | 2 +- .../ApplicationoctetstreamSchema.md | 6 +- .../ApplicationoctetstreamSchema.md | 6 +- .../MultipartformdataSchema.md | 18 +-- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../MultipartformdataSchema.md | 18 +-- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 18 +-- .../applicationjson/ApplicationjsonSchema.md | 18 +-- .../applicationjson/ApplicationjsonSchema.md | 18 +-- .../applicationjson/ApplicationjsonSchema.md | 18 +-- .../applicationjson/ApplicationjsonSchema.md | 18 +-- .../applicationjson/ApplicationjsonSchema.md | 18 +-- .../applicationjson/ApplicationjsonSchema.md | 8 +- .../get/parameters/parameter0/Schema0.md | 14 +- .../get/parameters/parameter0/Schema0.md | 14 +- .../delete/parameters/parameter0/Schema0.md | 8 +- .../delete/parameters/parameter1/Schema1.md | 8 +- .../get/parameters/parameter0/Schema0.md | 8 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationxml/ApplicationxmlSchema.md | 2 +- .../post/parameters/parameter0/Schema0.md | 8 +- .../ApplicationxwwwformurlencodedSchema.md | 20 +-- .../post/parameters/parameter0/Schema0.md | 8 +- .../MultipartformdataSchema.md | 18 +-- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationxml/ApplicationxmlSchema.md | 2 +- .../delete/parameters/parameter0/Schema0.md | 8 +- .../get/parameters/parameter0/Schema0.md | 8 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationxml/ApplicationxmlSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../get/parameters/parameter0/Schema0.md | 8 +- .../get/parameters/parameter1/Schema1.md | 8 +- .../applicationjson/ApplicationjsonSchema.md | 8 +- .../applicationxml/ApplicationxmlSchema.md | 8 +- .../xexpiresafter/XExpiresAfterSchema.md | 8 +- .../applicationjson/XRateLimitSchema.md | 8 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationxml/ApplicationxmlSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../petstore/java/docs/servers/Server0.md | 36 ++--- .../petstore/java/docs/servers/Server1.md | 30 ++-- .../ApplicationjsonSchema.java | 6 +- .../responses/headerswithnobody/Headers.java | 6 +- .../ApplicationjsonSchema.java | 6 +- .../applicationxml/ApplicationxmlSchema.java | 6 +- .../Headers.java | 6 +- .../ApplicationjsonSchema.java | 6 +- .../successwithjsonapiresponse/Headers.java | 6 +- .../schemas/AbstractStepMessage.java | 6 +- .../schemas/AdditionalPropertiesClass.java | 42 ++--- .../schemas/AdditionalPropertiesSchema.java | 56 +++---- .../AdditionalPropertiesWithArrayOfEnums.java | 12 +- .../client/components/schemas/Address.java | 6 +- .../client/components/schemas/Animal.java | 12 +- .../client/components/schemas/AnimalFarm.java | 6 +- .../components/schemas/AnyTypeAndFormat.java | 150 ++++++++--------- .../components/schemas/AnyTypeNotString.java | 16 +- .../components/schemas/ApiResponseSchema.java | 6 +- .../client/components/schemas/Apple.java | 20 +-- .../client/components/schemas/AppleReq.java | 6 +- .../schemas/ArrayHoldingAnyType.java | 6 +- .../schemas/ArrayOfArrayOfNumberOnly.java | 18 +-- .../components/schemas/ArrayOfEnums.java | 6 +- .../components/schemas/ArrayOfNumberOnly.java | 12 +- .../client/components/schemas/ArrayTest.java | 36 ++--- .../schemas/ArrayWithValidationsInItems.java | 12 +- .../client/components/schemas/Banana.java | 6 +- .../client/components/schemas/BananaReq.java | 6 +- .../client/components/schemas/Bar.java | 6 +- .../client/components/schemas/BasquePig.java | 12 +- .../components/schemas/BooleanEnum.java | 6 +- .../components/schemas/Capitalization.java | 6 +- .../client/components/schemas/Cat.java | 22 +-- .../client/components/schemas/Category.java | 12 +- .../client/components/schemas/ChildCat.java | 22 +-- .../client/components/schemas/ClassModel.java | 16 +- .../client/components/schemas/Client.java | 6 +- .../schemas/ComplexQuadrilateral.java | 28 ++-- ...posedAnyOfDifferentTypesNoValidations.java | 22 +-- .../components/schemas/ComposedArray.java | 6 +- .../components/schemas/ComposedBool.java | 6 +- .../components/schemas/ComposedNone.java | 6 +- .../components/schemas/ComposedNumber.java | 6 +- .../components/schemas/ComposedObject.java | 6 +- .../schemas/ComposedOneOfDifferentTypes.java | 34 ++-- .../components/schemas/ComposedString.java | 6 +- .../client/components/schemas/Currency.java | 6 +- .../client/components/schemas/DanishPig.java | 12 +- .../components/schemas/DateTimeTest.java | 6 +- .../schemas/DateTimeWithValidations.java | 6 +- .../schemas/DateWithValidations.java | 6 +- .../client/components/schemas/Dog.java | 22 +-- .../client/components/schemas/Drawing.java | 12 +- .../client/components/schemas/EnumArrays.java | 24 +-- .../client/components/schemas/EnumClass.java | 6 +- .../client/components/schemas/EnumTest.java | 30 ++-- .../schemas/EquilateralTriangle.java | 28 ++-- .../client/components/schemas/File.java | 6 +- .../schemas/FileSchemaTestClass.java | 12 +- .../client/components/schemas/Foo.java | 6 +- .../client/components/schemas/FormatTest.java | 66 ++++---- .../client/components/schemas/FromSchema.java | 6 +- .../client/components/schemas/Fruit.java | 16 +- .../client/components/schemas/FruitReq.java | 16 +- .../client/components/schemas/GmFruit.java | 16 +- .../components/schemas/GrandparentAnimal.java | 6 +- .../components/schemas/HasOnlyReadOnly.java | 6 +- .../components/schemas/HealthCheckResult.java | 14 +- .../components/schemas/IntegerEnum.java | 6 +- .../components/schemas/IntegerEnumBig.java | 6 +- .../schemas/IntegerEnumOneValue.java | 6 +- .../schemas/IntegerEnumWithDefaultValue.java | 6 +- .../components/schemas/IntegerMax10.java | 6 +- .../components/schemas/IntegerMin15.java | 6 +- .../components/schemas/IsoscelesTriangle.java | 28 ++-- .../client/components/schemas/Items.java | 6 +- .../components/schemas/JSONPatchRequest.java | 22 +-- .../JSONPatchRequestAddReplaceTest.java | 12 +- .../schemas/JSONPatchRequestMoveCopy.java | 12 +- .../schemas/JSONPatchRequestRemove.java | 12 +- .../client/components/schemas/Mammal.java | 16 +- .../client/components/schemas/MapTest.java | 36 ++--- ...ropertiesAndAdditionalPropertiesClass.java | 12 +- .../client/components/schemas/Money.java | 6 +- .../components/schemas/MyObjectDto.java | 6 +- .../client/components/schemas/Name.java | 16 +- .../schemas/NoAdditionalProperties.java | 6 +- .../components/schemas/NullableClass.java | 138 ++++++++-------- .../components/schemas/NullableShape.java | 16 +- .../components/schemas/NullableString.java | 8 +- .../client/components/schemas/NumberOnly.java | 6 +- .../schemas/NumberWithExclusiveMinMax.java | 6 +- .../schemas/NumberWithValidations.java | 6 +- .../schemas/ObjWithRequiredProps.java | 6 +- .../schemas/ObjWithRequiredPropsBase.java | 6 +- .../ObjectModelWithArgAndArgsProperties.java | 6 +- .../schemas/ObjectModelWithRefProps.java | 6 +- ...hAllOfWithReqTestPropFromUnsetAddProp.java | 22 +-- .../ObjectWithCollidingProperties.java | 6 +- .../schemas/ObjectWithDecimalProperties.java | 6 +- .../ObjectWithDifficultlyNamedProps.java | 6 +- .../ObjectWithInlineCompositionProperty.java | 28 ++-- ...ObjectWithInvalidNamedRefedProperties.java | 6 +- .../ObjectWithNonIntersectingValues.java | 6 +- .../schemas/ObjectWithOnlyOptionalProps.java | 6 +- .../schemas/ObjectWithOptionalTestProp.java | 6 +- .../schemas/ObjectWithValidations.java | 6 +- .../client/components/schemas/Order.java | 12 +- .../schemas/PaginatedResultMyObjectDto.java | 12 +- .../client/components/schemas/ParentPet.java | 6 +- .../client/components/schemas/Pet.java | 24 +-- .../client/components/schemas/Pig.java | 16 +- .../client/components/schemas/Player.java | 6 +- .../client/components/schemas/PublicKey.java | 6 +- .../components/schemas/Quadrilateral.java | 16 +- .../schemas/QuadrilateralInterface.java | 22 +-- .../components/schemas/ReadOnlyFirst.java | 6 +- .../schemas/ReqPropsFromExplicitAddProps.java | 6 +- .../schemas/ReqPropsFromTrueAddProps.java | 6 +- .../schemas/ReqPropsFromUnsetAddProps.java | 6 +- .../components/schemas/ReturnSchema.java | 16 +- .../components/schemas/ScaleneTriangle.java | 28 ++-- .../components/schemas/Schema200Response.java | 16 +- .../schemas/SelfReferencingArrayModel.java | 6 +- .../schemas/SelfReferencingObjectModel.java | 6 +- .../client/components/schemas/Shape.java | 16 +- .../components/schemas/ShapeOrNull.java | 16 +- .../schemas/SimpleQuadrilateral.java | 28 ++-- .../client/components/schemas/SomeObject.java | 16 +- .../components/schemas/SpecialModelname.java | 6 +- .../components/schemas/StringBooleanMap.java | 6 +- .../client/components/schemas/StringEnum.java | 8 +- .../schemas/StringEnumWithDefaultValue.java | 6 +- .../schemas/StringWithValidation.java | 6 +- .../client/components/schemas/Tag.java | 6 +- .../client/components/schemas/Triangle.java | 16 +- .../components/schemas/TriangleInterface.java | 22 +-- .../client/components/schemas/UUIDString.java | 6 +- .../client/components/schemas/User.java | 30 ++-- .../client/components/schemas/Whale.java | 12 +- .../client/components/schemas/Zebra.java | 18 +-- .../delete/HeaderParameters.java | 6 +- .../delete/PathParameters.java | 6 +- .../delete/parameters/parameter1/Schema1.java | 6 +- .../commonparamsubdir/get/PathParameters.java | 6 +- .../get/QueryParameters.java | 6 +- .../parameter0/PathParamSchema0.java | 6 +- .../post/HeaderParameters.java | 6 +- .../post/PathParameters.java | 6 +- .../paths/fake/delete/HeaderParameters.java | 6 +- .../paths/fake/delete/QueryParameters.java | 6 +- .../delete/parameters/parameter1/Schema1.java | 6 +- .../delete/parameters/parameter4/Schema4.java | 6 +- .../paths/fake/get/HeaderParameters.java | 6 +- .../paths/fake/get/QueryParameters.java | 6 +- .../get/parameters/parameter0/Schema0.java | 12 +- .../get/parameters/parameter1/Schema1.java | 6 +- .../get/parameters/parameter2/Schema2.java | 12 +- .../get/parameters/parameter3/Schema3.java | 6 +- .../get/parameters/parameter4/Schema4.java | 6 +- .../get/parameters/parameter5/Schema5.java | 6 +- .../ApplicationxwwwformurlencodedSchema.java | 24 +-- .../ApplicationxwwwformurlencodedSchema.java | 60 +++---- .../put/QueryParameters.java | 6 +- .../put/QueryParameters.java | 6 +- .../delete/PathParameters.java | 6 +- .../ApplicationjsonSchema.java | 6 +- .../post/QueryParameters.java | 6 +- .../post/parameters/parameter0/Schema0.java | 22 +-- .../post/parameters/parameter1/Schema1.java | 28 ++-- .../ApplicationjsonSchema.java | 22 +-- .../MultipartformdataSchema.java | 28 ++-- .../ApplicationjsonSchema.java | 22 +-- .../MultipartformdataSchema.java | 28 ++-- .../ApplicationxwwwformurlencodedSchema.java | 6 +- .../ApplicationjsonSchema.java | 6 +- .../MultipartformdataSchema.java | 6 +- .../fakeobjinquery/get/QueryParameters.java | 6 +- .../get/parameters/parameter0/Schema0.java | 6 +- .../post/CookieParameters.java | 6 +- .../post/HeaderParameters.java | 6 +- .../post/PathParameters.java | 6 +- .../post/QueryParameters.java | 6 +- .../post/PathParameters.java | 6 +- .../MultipartformdataSchema.java | 6 +- .../get/QueryParameters.java | 6 +- .../get/QueryParameters.java | 6 +- .../put/QueryParameters.java | 6 +- .../put/parameters/parameter0/Schema0.java | 6 +- .../put/parameters/parameter1/Schema1.java | 6 +- .../put/parameters/parameter2/Schema2.java | 6 +- .../put/parameters/parameter3/Schema3.java | 6 +- .../put/parameters/parameter4/Schema4.java | 6 +- .../MultipartformdataSchema.java | 6 +- .../MultipartformdataSchema.java | 12 +- .../ApplicationjsonSchema.java | 6 +- .../foo/get/servers/server1/Variables.java | 12 +- .../petfindbystatus/get/QueryParameters.java | 6 +- .../get/parameters/parameter0/Schema0.java | 12 +- .../servers/server1/Variables.java | 12 +- .../petfindbytags/get/QueryParameters.java | 6 +- .../get/parameters/parameter0/Schema0.java | 6 +- .../petpetid/delete/HeaderParameters.java | 6 +- .../paths/petpetid/delete/PathParameters.java | 6 +- .../paths/petpetid/get/PathParameters.java | 6 +- .../paths/petpetid/post/PathParameters.java | 6 +- .../ApplicationxwwwformurlencodedSchema.java | 6 +- .../post/PathParameters.java | 6 +- .../MultipartformdataSchema.java | 6 +- .../delete/PathParameters.java | 6 +- .../storeorderorderid/get/PathParameters.java | 6 +- .../get/parameters/parameter0/Schema0.java | 6 +- .../paths/userlogin/get/QueryParameters.java | 6 +- .../get/responses/response200/Headers.java | 6 +- .../userusername/delete/PathParameters.java | 6 +- .../userusername/get/PathParameters.java | 6 +- .../userusername/put/PathParameters.java | 6 +- .../client/response/ResponseDeserializer.java | 1 + .../client/servers/server0/Variables.java | 18 +-- .../client/servers/server1/Variables.java | 12 +- .../schemas/SchemaClass/_boxedBoolean.hbs | 4 +- .../schemas/SchemaClass/_boxedClass.hbs | 8 +- .../schemas/SchemaClass/_boxedList.hbs | 4 +- .../schemas/SchemaClass/_boxedMap.hbs | 4 +- .../schemas/SchemaClass/_boxedNumber.hbs | 4 +- .../schemas/SchemaClass/_boxedString.hbs | 4 +- .../schemas/SchemaClass/_boxedVoid.hbs | 4 +- .../components/schemas/Schema_doc.hbs | 2 +- 531 files changed, 3947 insertions(+), 3946 deletions(-) diff --git a/samples/client/petstore/java/docs/components/headers/int32jsoncontenttypeheader/content/applicationjson/Int32JsonContentTypeHeaderSchema.md b/samples/client/petstore/java/docs/components/headers/int32jsoncontenttypeheader/content/applicationjson/Int32JsonContentTypeHeaderSchema.md index 220215d1138..a7e5e97e79e 100644 --- a/samples/client/petstore/java/docs/components/headers/int32jsoncontenttypeheader/content/applicationjson/Int32JsonContentTypeHeaderSchema.md +++ b/samples/client/petstore/java/docs/components/headers/int32jsoncontenttypeheader/content/applicationjson/Int32JsonContentTypeHeaderSchema.md @@ -3,7 +3,7 @@ public class Int32JsonContentTypeHeaderSchema
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Int32JsonContentTypeHeaderSchema.Int32JsonContentTypeHeaderSchema1](#int32jsoncontenttypeheaderschema1)
schema class | ## Int32JsonContentTypeHeaderSchema1Boxed -public static abstract sealed class Int32JsonContentTypeHeaderSchema1Boxed
+public sealed interface Int32JsonContentTypeHeaderSchema1Boxed
permits
[Int32JsonContentTypeHeaderSchema1BoxedNumber](#int32jsoncontenttypeheaderschema1boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Int32JsonContentTypeHeaderSchema1BoxedNumber public static final class Int32JsonContentTypeHeaderSchema1BoxedNumber
-extends [Int32JsonContentTypeHeaderSchema1Boxed](#int32jsoncontenttypeheaderschema1boxed) +implements [Int32JsonContentTypeHeaderSchema1Boxed](#int32jsoncontenttypeheaderschema1boxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/headers/numberheader/NumberHeaderSchema.md b/samples/client/petstore/java/docs/components/headers/numberheader/NumberHeaderSchema.md index 08af9d96b44..f23f0fffaad 100644 --- a/samples/client/petstore/java/docs/components/headers/numberheader/NumberHeaderSchema.md +++ b/samples/client/petstore/java/docs/components/headers/numberheader/NumberHeaderSchema.md @@ -3,7 +3,7 @@ public class NumberHeaderSchema
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [NumberHeaderSchema.NumberHeaderSchema1](#numberheaderschema1)
schema class | ## NumberHeaderSchema1Boxed -public static abstract sealed class NumberHeaderSchema1Boxed
+public sealed interface NumberHeaderSchema1Boxed
permits
[NumberHeaderSchema1BoxedString](#numberheaderschema1boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## NumberHeaderSchema1BoxedString public static final class NumberHeaderSchema1BoxedString
-extends [NumberHeaderSchema1Boxed](#numberheaderschema1boxed) +implements [NumberHeaderSchema1Boxed](#numberheaderschema1boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/headers/refcontentschemaheader/content/applicationjson/RefContentSchemaHeaderSchema.md b/samples/client/petstore/java/docs/components/headers/refcontentschemaheader/content/applicationjson/RefContentSchemaHeaderSchema.md index f0dc3e6ad60..be731d333f4 100644 --- a/samples/client/petstore/java/docs/components/headers/refcontentschemaheader/content/applicationjson/RefContentSchemaHeaderSchema.md +++ b/samples/client/petstore/java/docs/components/headers/refcontentschemaheader/content/applicationjson/RefContentSchemaHeaderSchema.md @@ -4,7 +4,7 @@ extends [StringWithValidation1](../../../../../../components/schemas/StringWithV 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/components/headers/refschemaheader/RefSchemaHeaderSchema.md b/samples/client/petstore/java/docs/components/headers/refschemaheader/RefSchemaHeaderSchema.md index 191e7f26140..3cbb1ed09ba 100644 --- a/samples/client/petstore/java/docs/components/headers/refschemaheader/RefSchemaHeaderSchema.md +++ b/samples/client/petstore/java/docs/components/headers/refschemaheader/RefSchemaHeaderSchema.md @@ -4,7 +4,7 @@ extends [StringWithValidation1](../../../components/schemas/StringWithValidation 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/components/headers/stringheader/StringHeaderSchema.md b/samples/client/petstore/java/docs/components/headers/stringheader/StringHeaderSchema.md index 74c2c81129b..466ffc37fcc 100644 --- a/samples/client/petstore/java/docs/components/headers/stringheader/StringHeaderSchema.md +++ b/samples/client/petstore/java/docs/components/headers/stringheader/StringHeaderSchema.md @@ -3,7 +3,7 @@ public class StringHeaderSchema
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [StringHeaderSchema.StringHeaderSchema1](#stringheaderschema1)
schema class | ## StringHeaderSchema1Boxed -public static abstract sealed class StringHeaderSchema1Boxed
+public sealed interface StringHeaderSchema1Boxed
permits
[StringHeaderSchema1BoxedString](#stringheaderschema1boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## StringHeaderSchema1BoxedString public static final class StringHeaderSchema1BoxedString
-extends [StringHeaderSchema1Boxed](#stringheaderschema1boxed) +implements [StringHeaderSchema1Boxed](#stringheaderschema1boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/parameters/componentrefschemastringwithvalidation/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/components/parameters/componentrefschemastringwithvalidation/content/applicationjson/ApplicationjsonSchema.md index 2cef0d5e45b..5fa269d3ba1 100644 --- a/samples/client/petstore/java/docs/components/parameters/componentrefschemastringwithvalidation/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/components/parameters/componentrefschemastringwithvalidation/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [StringWithValidation1](../../../../../../components/schemas/StringWithV 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/components/parameters/pathusername/Schema.md b/samples/client/petstore/java/docs/components/parameters/pathusername/Schema.md index afe3fdcd0f1..92b7e0da260 100644 --- a/samples/client/petstore/java/docs/components/parameters/pathusername/Schema.md +++ b/samples/client/petstore/java/docs/components/parameters/pathusername/Schema.md @@ -3,7 +3,7 @@ public class Schema
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema.Schema1](#schema1)
schema class | ## Schema1Boxed -public static abstract sealed class Schema1Boxed
+public sealed interface Schema1Boxed
permits
[Schema1BoxedString](#schema1boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema1BoxedString public static final class Schema1BoxedString
-extends [Schema1Boxed](#schema1boxed) +implements [Schema1Boxed](#schema1boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/parameters/refschemastringwithvalidation/Schema.md b/samples/client/petstore/java/docs/components/parameters/refschemastringwithvalidation/Schema.md index 101b5cc700b..293e7550897 100644 --- a/samples/client/petstore/java/docs/components/parameters/refschemastringwithvalidation/Schema.md +++ b/samples/client/petstore/java/docs/components/parameters/refschemastringwithvalidation/Schema.md @@ -4,7 +4,7 @@ extends [StringWithValidation1](../../../components/schemas/StringWithValidation 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/components/requestbodies/client/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/components/requestbodies/client/content/applicationjson/ApplicationjsonSchema.md index 2738605d2d8..7301a74f469 100644 --- a/samples/client/petstore/java/docs/components/requestbodies/client/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/components/requestbodies/client/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [Client1](../../../../../components/schemas/Client.md#client) 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/components/requestbodies/pet/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/components/requestbodies/pet/content/applicationjson/ApplicationjsonSchema.md index 0c3ca9b7c75..43f082243b3 100644 --- a/samples/client/petstore/java/docs/components/requestbodies/pet/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/components/requestbodies/pet/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [Pet1](../../../../../components/schemas/Pet.md#pet) 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/components/requestbodies/pet/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/components/requestbodies/pet/content/applicationxml/ApplicationxmlSchema.md index 3d6790f5452..81670226f97 100644 --- a/samples/client/petstore/java/docs/components/requestbodies/pet/content/applicationxml/ApplicationxmlSchema.md +++ b/samples/client/petstore/java/docs/components/requestbodies/pet/content/applicationxml/ApplicationxmlSchema.md @@ -4,7 +4,7 @@ extends [RefPet1](../../../../../components/schemas/RefPet.md#refpet) 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.md index df9f7fddb30..3e16f7f4598 100644 --- a/samples/client/petstore/java/docs/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.md @@ -3,7 +3,7 @@ public class ApplicationjsonSchema
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 +- abstract 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 @@ -18,15 +18,15 @@ A class that contains necessary nested | static class | [ApplicationjsonSchema.ApplicationjsonSchemaList](#applicationjsonschemalist)
output class for List payloads | ## ApplicationjsonSchema1Boxed -public static abstract sealed class ApplicationjsonSchema1Boxed
+public sealed interface ApplicationjsonSchema1Boxed
permits
[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedList public static final class ApplicationjsonSchema1BoxedList
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated List payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/responses/headerswithnobody/headers/location/LocationSchema.md b/samples/client/petstore/java/docs/components/responses/headerswithnobody/headers/location/LocationSchema.md index 916b572fcf8..9257a7983ee 100644 --- a/samples/client/petstore/java/docs/components/responses/headerswithnobody/headers/location/LocationSchema.md +++ b/samples/client/petstore/java/docs/components/responses/headerswithnobody/headers/location/LocationSchema.md @@ -3,7 +3,7 @@ public class LocationSchema
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [LocationSchema.LocationSchema1](#locationschema1)
schema class | ## LocationSchema1Boxed -public static abstract sealed class LocationSchema1Boxed
+public sealed interface LocationSchema1Boxed
permits
[LocationSchema1BoxedString](#locationschema1boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## LocationSchema1BoxedString public static final class LocationSchema1BoxedString
-extends [LocationSchema1Boxed](#locationschema1boxed) +implements [LocationSchema1Boxed](#locationschema1boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.md index dccdc888a43..3bb0c3c7723 100644 --- a/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.md @@ -3,7 +3,7 @@ public class ApplicationjsonSchema
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 +- abstract 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 @@ -18,15 +18,15 @@ A class that contains necessary nested | static class | [ApplicationjsonSchema.ApplicationjsonSchemaList](#applicationjsonschemalist)
output class for List payloads | ## ApplicationjsonSchema1Boxed -public static abstract sealed class ApplicationjsonSchema1Boxed
+public sealed interface ApplicationjsonSchema1Boxed
permits
[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedList public static final class ApplicationjsonSchema1BoxedList
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated List payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.md index 487b313295a..d09be9c2426 100644 --- a/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.md +++ b/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.md @@ -3,7 +3,7 @@ public class ApplicationxmlSchema
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 +- abstract 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 @@ -18,15 +18,15 @@ A class that contains necessary nested | static class | [ApplicationxmlSchema.ApplicationxmlSchemaList](#applicationxmlschemalist)
output class for List payloads | ## ApplicationxmlSchema1Boxed -public static abstract sealed class ApplicationxmlSchema1Boxed
+public sealed interface ApplicationxmlSchema1Boxed
permits
[ApplicationxmlSchema1BoxedList](#applicationxmlschema1boxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationxmlSchema1BoxedList public static final class ApplicationxmlSchema1BoxedList
-extends [ApplicationxmlSchema1Boxed](#applicationxmlschema1boxed) +implements [ApplicationxmlSchema1Boxed](#applicationxmlschema1boxed) a boxed class to store validated List payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.md index 0e56aa153f1..3d86ed3acfe 100644 --- a/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.md @@ -3,7 +3,7 @@ public class ApplicationjsonSchema
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 +- abstract 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 @@ -21,15 +21,15 @@ A class that contains necessary nested | static class | [ApplicationjsonSchema.ApplicationjsonAdditionalProperties](#applicationjsonadditionalproperties)
schema class | ## ApplicationjsonSchema1Boxed -public static abstract sealed class ApplicationjsonSchema1Boxed
+public sealed interface ApplicationjsonSchema1Boxed
permits
[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedMap public static final class ApplicationjsonSchema1BoxedMap
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -118,15 +118,15 @@ A class to store validated Map payloads | Number | getAdditionalProperty(String name)
provides type safety for additional properties | ## ApplicationjsonAdditionalPropertiesBoxed -public static abstract sealed class ApplicationjsonAdditionalPropertiesBoxed
+public sealed interface ApplicationjsonAdditionalPropertiesBoxed
permits
[ApplicationjsonAdditionalPropertiesBoxedNumber](#applicationjsonadditionalpropertiesboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationjsonAdditionalPropertiesBoxedNumber public static final class ApplicationjsonAdditionalPropertiesBoxedNumber
-extends [ApplicationjsonAdditionalPropertiesBoxed](#applicationjsonadditionalpropertiesboxed) +implements [ApplicationjsonAdditionalPropertiesBoxed](#applicationjsonadditionalpropertiesboxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/headers/someheader/SomeHeaderSchema.md b/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/headers/someheader/SomeHeaderSchema.md index 58e022870dc..77c36ae4cd0 100644 --- a/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/headers/someheader/SomeHeaderSchema.md +++ b/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/headers/someheader/SomeHeaderSchema.md @@ -3,7 +3,7 @@ public class SomeHeaderSchema
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [SomeHeaderSchema.SomeHeaderSchema1](#someheaderschema1)
schema class | ## SomeHeaderSchema1Boxed -public static abstract sealed class SomeHeaderSchema1Boxed
+public sealed interface SomeHeaderSchema1Boxed
permits
[SomeHeaderSchema1BoxedString](#someheaderschema1boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## SomeHeaderSchema1BoxedString public static final class SomeHeaderSchema1BoxedString
-extends [SomeHeaderSchema1Boxed](#someheaderschema1boxed) +implements [SomeHeaderSchema1Boxed](#someheaderschema1boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/responses/successwithjsonapiresponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/components/responses/successwithjsonapiresponse/content/applicationjson/ApplicationjsonSchema.md index 47ed11ea57f..a5ef9cdabb9 100644 --- a/samples/client/petstore/java/docs/components/responses/successwithjsonapiresponse/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/components/responses/successwithjsonapiresponse/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [ApiResponseSchema1](../../../../../../components/schemas/ApiResponseSch 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/components/schemas/AbstractStepMessage.md b/samples/client/petstore/java/docs/components/schemas/AbstractStepMessage.md index 15a4cc0308d..b7c191b8992 100644 --- a/samples/client/petstore/java/docs/components/schemas/AbstractStepMessage.md +++ b/samples/client/petstore/java/docs/components/schemas/AbstractStepMessage.md @@ -4,7 +4,7 @@ public class AbstractStepMessage
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 +- abstract 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 @@ -22,15 +22,15 @@ A class that contains necessary nested | static class | [AbstractStepMessage.Discriminator](#discriminator)
schema class | ## AbstractStepMessage1Boxed -public static abstract sealed class AbstractStepMessage1Boxed
+public sealed interface AbstractStepMessage1Boxed
permits
[AbstractStepMessage1BoxedMap](#abstractstepmessage1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AbstractStepMessage1BoxedMap public static final class AbstractStepMessage1BoxedMap
-extends [AbstractStepMessage1Boxed](#abstractstepmessage1boxed) +implements [AbstractStepMessage1Boxed](#abstractstepmessage1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -315,15 +315,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## DiscriminatorBoxed -public static abstract sealed class DiscriminatorBoxed
+public sealed interface DiscriminatorBoxed
permits
[DiscriminatorBoxedString](#discriminatorboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## DiscriminatorBoxedString public static final class DiscriminatorBoxedString
-extends [DiscriminatorBoxed](#discriminatorboxed) +implements [DiscriminatorBoxed](#discriminatorboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesClass.md b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesClass.md index f836d04a9ef..5644bfabfbf 100644 --- a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesClass.md +++ b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesClass.md @@ -4,7 +4,7 @@ public class AdditionalPropertiesClass
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 +- abstract 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 @@ -88,15 +88,15 @@ A class that contains necessary nested | static class | [AdditionalPropertiesClass.AdditionalProperties](#additionalproperties)
schema class | ## AdditionalPropertiesClass1Boxed -public static abstract sealed class AdditionalPropertiesClass1Boxed
+public sealed interface AdditionalPropertiesClass1Boxed
permits
[AdditionalPropertiesClass1BoxedMap](#additionalpropertiesclass1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesClass1BoxedMap public static final class AdditionalPropertiesClass1BoxedMap
-extends [AdditionalPropertiesClass1Boxed](#additionalpropertiesclass1boxed) +implements [AdditionalPropertiesClass1Boxed](#additionalpropertiesclass1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -251,15 +251,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## MapWithUndeclaredPropertiesStringBoxed -public static abstract sealed class MapWithUndeclaredPropertiesStringBoxed
+public sealed interface MapWithUndeclaredPropertiesStringBoxed
permits
[MapWithUndeclaredPropertiesStringBoxedMap](#mapwithundeclaredpropertiesstringboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MapWithUndeclaredPropertiesStringBoxedMap public static final class MapWithUndeclaredPropertiesStringBoxedMap
-extends [MapWithUndeclaredPropertiesStringBoxed](#mapwithundeclaredpropertiesstringboxed) +implements [MapWithUndeclaredPropertiesStringBoxed](#mapwithundeclaredpropertiesstringboxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -347,15 +347,15 @@ A class to store validated Map payloads | String | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalProperties5Boxed -public static abstract sealed class AdditionalProperties5Boxed
+public sealed interface AdditionalProperties5Boxed
permits
[AdditionalProperties5BoxedString](#additionalproperties5boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalProperties5BoxedString public static final class AdditionalProperties5BoxedString
-extends [AdditionalProperties5Boxed](#additionalproperties5boxed) +implements [AdditionalProperties5Boxed](#additionalproperties5boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -381,15 +381,15 @@ A schema class that validates payloads | validateAndBox | ## EmptyMapBoxed -public static abstract sealed class EmptyMapBoxed
+public sealed interface EmptyMapBoxed
permits
[EmptyMapBoxedMap](#emptymapboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## EmptyMapBoxedMap public static final class EmptyMapBoxedMap
-extends [EmptyMapBoxed](#emptymapboxed) +implements [EmptyMapBoxed](#emptymapboxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -476,7 +476,7 @@ A class to store validated Map payloads | static [EmptyMapMap](#emptymapmap) | of([Map](#emptymapmapbuilder) arg, SchemaConfiguration configuration) | ## AdditionalProperties4Boxed -public static abstract sealed class AdditionalProperties4Boxed
+public sealed interface AdditionalProperties4Boxed
permits
[AdditionalProperties4BoxedVoid](#additionalproperties4boxedvoid), [AdditionalProperties4BoxedBoolean](#additionalproperties4boxedboolean), @@ -485,11 +485,11 @@ permits
[AdditionalProperties4BoxedList](#additionalproperties4boxedlist), [AdditionalProperties4BoxedMap](#additionalproperties4boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalProperties4BoxedVoid public static final class AdditionalProperties4BoxedVoid
-extends [AdditionalProperties4Boxed](#additionalproperties4boxed) +implements [AdditionalProperties4Boxed](#additionalproperties4boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -505,7 +505,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## AdditionalProperties4BoxedBoolean public static final class AdditionalProperties4BoxedBoolean
-extends [AdditionalProperties4Boxed](#additionalproperties4boxed) +implements [AdditionalProperties4Boxed](#additionalproperties4boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -521,7 +521,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## AdditionalProperties4BoxedNumber public static final class AdditionalProperties4BoxedNumber
-extends [AdditionalProperties4Boxed](#additionalproperties4boxed) +implements [AdditionalProperties4Boxed](#additionalproperties4boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -537,7 +537,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## AdditionalProperties4BoxedString public static final class AdditionalProperties4BoxedString
-extends [AdditionalProperties4Boxed](#additionalproperties4boxed) +implements [AdditionalProperties4Boxed](#additionalproperties4boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -553,7 +553,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## AdditionalProperties4BoxedList public static final class AdditionalProperties4BoxedList
-extends [AdditionalProperties4Boxed](#additionalproperties4boxed) +implements [AdditionalProperties4Boxed](#additionalproperties4boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -569,7 +569,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## AdditionalProperties4BoxedMap public static final class AdditionalProperties4BoxedMap
-extends [AdditionalProperties4Boxed](#additionalproperties4boxed) +implements [AdditionalProperties4Boxed](#additionalproperties4boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -595,15 +595,15 @@ A schema class that validates payloads | validateAndBox | ## MapWithUndeclaredPropertiesAnytype3Boxed -public static abstract sealed class MapWithUndeclaredPropertiesAnytype3Boxed
+public sealed interface MapWithUndeclaredPropertiesAnytype3Boxed
permits
[MapWithUndeclaredPropertiesAnytype3BoxedMap](#mapwithundeclaredpropertiesanytype3boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MapWithUndeclaredPropertiesAnytype3BoxedMap public static final class MapWithUndeclaredPropertiesAnytype3BoxedMap
-extends [MapWithUndeclaredPropertiesAnytype3Boxed](#mapwithundeclaredpropertiesanytype3boxed) +implements [MapWithUndeclaredPropertiesAnytype3Boxed](#mapwithundeclaredpropertiesanytype3boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -697,7 +697,7 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalProperties3Boxed -public static abstract sealed class AdditionalProperties3Boxed
+public sealed interface AdditionalProperties3Boxed
permits
[AdditionalProperties3BoxedVoid](#additionalproperties3boxedvoid), [AdditionalProperties3BoxedBoolean](#additionalproperties3boxedboolean), @@ -706,11 +706,11 @@ permits
[AdditionalProperties3BoxedList](#additionalproperties3boxedlist), [AdditionalProperties3BoxedMap](#additionalproperties3boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalProperties3BoxedVoid public static final class AdditionalProperties3BoxedVoid
-extends [AdditionalProperties3Boxed](#additionalproperties3boxed) +implements [AdditionalProperties3Boxed](#additionalproperties3boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -726,7 +726,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## AdditionalProperties3BoxedBoolean public static final class AdditionalProperties3BoxedBoolean
-extends [AdditionalProperties3Boxed](#additionalproperties3boxed) +implements [AdditionalProperties3Boxed](#additionalproperties3boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -742,7 +742,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## AdditionalProperties3BoxedNumber public static final class AdditionalProperties3BoxedNumber
-extends [AdditionalProperties3Boxed](#additionalproperties3boxed) +implements [AdditionalProperties3Boxed](#additionalproperties3boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -758,7 +758,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## AdditionalProperties3BoxedString public static final class AdditionalProperties3BoxedString
-extends [AdditionalProperties3Boxed](#additionalproperties3boxed) +implements [AdditionalProperties3Boxed](#additionalproperties3boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -774,7 +774,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## AdditionalProperties3BoxedList public static final class AdditionalProperties3BoxedList
-extends [AdditionalProperties3Boxed](#additionalproperties3boxed) +implements [AdditionalProperties3Boxed](#additionalproperties3boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -790,7 +790,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## AdditionalProperties3BoxedMap public static final class AdditionalProperties3BoxedMap
-extends [AdditionalProperties3Boxed](#additionalproperties3boxed) +implements [AdditionalProperties3Boxed](#additionalproperties3boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -816,15 +816,15 @@ A schema class that validates payloads | validateAndBox | ## MapWithUndeclaredPropertiesAnytype2Boxed -public static abstract sealed class MapWithUndeclaredPropertiesAnytype2Boxed
+public sealed interface MapWithUndeclaredPropertiesAnytype2Boxed
permits
[MapWithUndeclaredPropertiesAnytype2BoxedMap](#mapwithundeclaredpropertiesanytype2boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MapWithUndeclaredPropertiesAnytype2BoxedMap public static final class MapWithUndeclaredPropertiesAnytype2BoxedMap
-extends [MapWithUndeclaredPropertiesAnytype2Boxed](#mapwithundeclaredpropertiesanytype2boxed) +implements [MapWithUndeclaredPropertiesAnytype2Boxed](#mapwithundeclaredpropertiesanytype2boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -850,15 +850,15 @@ A schema class that validates payloads | validateAndBox | ## MapWithUndeclaredPropertiesAnytype1Boxed -public static abstract sealed class MapWithUndeclaredPropertiesAnytype1Boxed
+public sealed interface MapWithUndeclaredPropertiesAnytype1Boxed
permits
[MapWithUndeclaredPropertiesAnytype1BoxedMap](#mapwithundeclaredpropertiesanytype1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MapWithUndeclaredPropertiesAnytype1BoxedMap public static final class MapWithUndeclaredPropertiesAnytype1BoxedMap
-extends [MapWithUndeclaredPropertiesAnytype1Boxed](#mapwithundeclaredpropertiesanytype1boxed) +implements [MapWithUndeclaredPropertiesAnytype1Boxed](#mapwithundeclaredpropertiesanytype1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -884,7 +884,7 @@ A schema class that validates payloads | validateAndBox | ## Anytype1Boxed -public static abstract sealed class Anytype1Boxed
+public sealed interface Anytype1Boxed
permits
[Anytype1BoxedVoid](#anytype1boxedvoid), [Anytype1BoxedBoolean](#anytype1boxedboolean), @@ -893,11 +893,11 @@ permits
[Anytype1BoxedList](#anytype1boxedlist), [Anytype1BoxedMap](#anytype1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Anytype1BoxedVoid public static final class Anytype1BoxedVoid
-extends [Anytype1Boxed](#anytype1boxed) +implements [Anytype1Boxed](#anytype1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -913,7 +913,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## Anytype1BoxedBoolean public static final class Anytype1BoxedBoolean
-extends [Anytype1Boxed](#anytype1boxed) +implements [Anytype1Boxed](#anytype1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -929,7 +929,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## Anytype1BoxedNumber public static final class Anytype1BoxedNumber
-extends [Anytype1Boxed](#anytype1boxed) +implements [Anytype1Boxed](#anytype1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -945,7 +945,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## Anytype1BoxedString public static final class Anytype1BoxedString
-extends [Anytype1Boxed](#anytype1boxed) +implements [Anytype1Boxed](#anytype1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -961,7 +961,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## Anytype1BoxedList public static final class Anytype1BoxedList
-extends [Anytype1Boxed](#anytype1boxed) +implements [Anytype1Boxed](#anytype1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -977,7 +977,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## Anytype1BoxedMap public static final class Anytype1BoxedMap
-extends [Anytype1Boxed](#anytype1boxed) +implements [Anytype1Boxed](#anytype1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -1003,15 +1003,15 @@ A schema class that validates payloads | validateAndBox | ## MapOfMapPropertyBoxed -public static abstract sealed class MapOfMapPropertyBoxed
+public sealed interface MapOfMapPropertyBoxed
permits
[MapOfMapPropertyBoxedMap](#mapofmappropertyboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MapOfMapPropertyBoxedMap public static final class MapOfMapPropertyBoxedMap
-extends [MapOfMapPropertyBoxed](#mapofmappropertyboxed) +implements [MapOfMapPropertyBoxed](#mapofmappropertyboxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -1106,15 +1106,15 @@ A class to store validated Map payloads | [AdditionalPropertiesMap](#additionalpropertiesmap) | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalProperties1Boxed -public static abstract sealed class AdditionalProperties1Boxed
+public sealed interface AdditionalProperties1Boxed
permits
[AdditionalProperties1BoxedMap](#additionalproperties1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalProperties1BoxedMap public static final class AdditionalProperties1BoxedMap
-extends [AdditionalProperties1Boxed](#additionalproperties1boxed) +implements [AdditionalProperties1Boxed](#additionalproperties1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -1202,15 +1202,15 @@ A class to store validated Map payloads | String | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalProperties2Boxed -public static abstract sealed class AdditionalProperties2Boxed
+public sealed interface AdditionalProperties2Boxed
permits
[AdditionalProperties2BoxedString](#additionalproperties2boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalProperties2BoxedString public static final class AdditionalProperties2BoxedString
-extends [AdditionalProperties2Boxed](#additionalproperties2boxed) +implements [AdditionalProperties2Boxed](#additionalproperties2boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -1236,15 +1236,15 @@ A schema class that validates payloads | validateAndBox | ## MapPropertyBoxed -public static abstract sealed class MapPropertyBoxed
+public sealed interface MapPropertyBoxed
permits
[MapPropertyBoxedMap](#mappropertyboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MapPropertyBoxedMap public static final class MapPropertyBoxedMap
-extends [MapPropertyBoxed](#mappropertyboxed) +implements [MapPropertyBoxed](#mappropertyboxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -1332,15 +1332,15 @@ A class to store validated Map payloads | String | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalPropertiesBoxed -public static abstract sealed class AdditionalPropertiesBoxed
+public sealed interface AdditionalPropertiesBoxed
permits
[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedString public static final class AdditionalPropertiesBoxedString
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesSchema.md b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesSchema.md index 11b73499be7..4811335dcf3 100644 --- a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesSchema.md @@ -4,7 +4,7 @@ public class AdditionalPropertiesSchema
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 +- abstract 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 @@ -56,15 +56,15 @@ A class that contains necessary nested | static class | [AdditionalPropertiesSchema.AdditionalProperties](#additionalproperties)
schema class | ## AdditionalPropertiesSchema1Boxed -public static abstract sealed class AdditionalPropertiesSchema1Boxed
+public sealed interface AdditionalPropertiesSchema1Boxed
permits
[AdditionalPropertiesSchema1BoxedMap](#additionalpropertiesschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesSchema1BoxedMap public static final class AdditionalPropertiesSchema1BoxedMap
-extends [AdditionalPropertiesSchema1Boxed](#additionalpropertiesschema1boxed) +implements [AdditionalPropertiesSchema1Boxed](#additionalpropertiesschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -97,15 +97,15 @@ A schema class that validates payloads | [AdditionalPropertiesSchema1BoxedMap](#additionalpropertiesschema1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## Schema2Boxed -public static abstract sealed class Schema2Boxed
+public sealed interface Schema2Boxed
permits
[Schema2BoxedMap](#schema2boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema2BoxedMap public static final class Schema2BoxedMap
-extends [Schema2Boxed](#schema2boxed) +implements [Schema2Boxed](#schema2boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -199,7 +199,7 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalProperties2Boxed -public static abstract sealed class AdditionalProperties2Boxed
+public sealed interface AdditionalProperties2Boxed
permits
[AdditionalProperties2BoxedVoid](#additionalproperties2boxedvoid), [AdditionalProperties2BoxedBoolean](#additionalproperties2boxedboolean), @@ -208,11 +208,11 @@ permits
[AdditionalProperties2BoxedList](#additionalproperties2boxedlist), [AdditionalProperties2BoxedMap](#additionalproperties2boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalProperties2BoxedVoid public static final class AdditionalProperties2BoxedVoid
-extends [AdditionalProperties2Boxed](#additionalproperties2boxed) +implements [AdditionalProperties2Boxed](#additionalproperties2boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -228,7 +228,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## AdditionalProperties2BoxedBoolean public static final class AdditionalProperties2BoxedBoolean
-extends [AdditionalProperties2Boxed](#additionalproperties2boxed) +implements [AdditionalProperties2Boxed](#additionalproperties2boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -244,7 +244,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## AdditionalProperties2BoxedNumber public static final class AdditionalProperties2BoxedNumber
-extends [AdditionalProperties2Boxed](#additionalproperties2boxed) +implements [AdditionalProperties2Boxed](#additionalproperties2boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -260,7 +260,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## AdditionalProperties2BoxedString public static final class AdditionalProperties2BoxedString
-extends [AdditionalProperties2Boxed](#additionalproperties2boxed) +implements [AdditionalProperties2Boxed](#additionalproperties2boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -276,7 +276,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## AdditionalProperties2BoxedList public static final class AdditionalProperties2BoxedList
-extends [AdditionalProperties2Boxed](#additionalproperties2boxed) +implements [AdditionalProperties2Boxed](#additionalproperties2boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -292,7 +292,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## AdditionalProperties2BoxedMap public static final class AdditionalProperties2BoxedMap
-extends [AdditionalProperties2Boxed](#additionalproperties2boxed) +implements [AdditionalProperties2Boxed](#additionalproperties2boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -338,15 +338,15 @@ A schema class that validates payloads | [AdditionalProperties2BoxedList](#additionalproperties2boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## Schema1Boxed -public static abstract sealed class Schema1Boxed
+public sealed interface Schema1Boxed
permits
[Schema1BoxedMap](#schema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema1BoxedMap public static final class Schema1BoxedMap
-extends [Schema1Boxed](#schema1boxed) +implements [Schema1Boxed](#schema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -440,7 +440,7 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalProperties1Boxed -public static abstract sealed class AdditionalProperties1Boxed
+public sealed interface AdditionalProperties1Boxed
permits
[AdditionalProperties1BoxedVoid](#additionalproperties1boxedvoid), [AdditionalProperties1BoxedBoolean](#additionalproperties1boxedboolean), @@ -449,11 +449,11 @@ permits
[AdditionalProperties1BoxedList](#additionalproperties1boxedlist), [AdditionalProperties1BoxedMap](#additionalproperties1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalProperties1BoxedVoid public static final class AdditionalProperties1BoxedVoid
-extends [AdditionalProperties1Boxed](#additionalproperties1boxed) +implements [AdditionalProperties1Boxed](#additionalproperties1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -469,7 +469,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## AdditionalProperties1BoxedBoolean public static final class AdditionalProperties1BoxedBoolean
-extends [AdditionalProperties1Boxed](#additionalproperties1boxed) +implements [AdditionalProperties1Boxed](#additionalproperties1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -485,7 +485,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## AdditionalProperties1BoxedNumber public static final class AdditionalProperties1BoxedNumber
-extends [AdditionalProperties1Boxed](#additionalproperties1boxed) +implements [AdditionalProperties1Boxed](#additionalproperties1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -501,7 +501,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## AdditionalProperties1BoxedString public static final class AdditionalProperties1BoxedString
-extends [AdditionalProperties1Boxed](#additionalproperties1boxed) +implements [AdditionalProperties1Boxed](#additionalproperties1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -517,7 +517,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## AdditionalProperties1BoxedList public static final class AdditionalProperties1BoxedList
-extends [AdditionalProperties1Boxed](#additionalproperties1boxed) +implements [AdditionalProperties1Boxed](#additionalproperties1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -533,7 +533,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## AdditionalProperties1BoxedMap public static final class AdditionalProperties1BoxedMap
-extends [AdditionalProperties1Boxed](#additionalproperties1boxed) +implements [AdditionalProperties1Boxed](#additionalproperties1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -579,15 +579,15 @@ A schema class that validates payloads | [AdditionalProperties1BoxedList](#additionalproperties1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## Schema0Boxed -public static abstract sealed class Schema0Boxed
+public sealed interface Schema0Boxed
permits
[Schema0BoxedMap](#schema0boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema0BoxedMap public static final class Schema0BoxedMap
-extends [Schema0Boxed](#schema0boxed) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -681,7 +681,7 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalPropertiesBoxed -public static abstract sealed class AdditionalPropertiesBoxed
+public sealed interface AdditionalPropertiesBoxed
permits
[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), [AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), @@ -690,11 +690,11 @@ permits
[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), [AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedVoid public static final class AdditionalPropertiesBoxedVoid
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -710,7 +710,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## AdditionalPropertiesBoxedBoolean public static final class AdditionalPropertiesBoxedBoolean
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -726,7 +726,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## AdditionalPropertiesBoxedNumber public static final class AdditionalPropertiesBoxedNumber
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -742,7 +742,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## AdditionalPropertiesBoxedString public static final class AdditionalPropertiesBoxedString
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -758,7 +758,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## AdditionalPropertiesBoxedList public static final class AdditionalPropertiesBoxedList
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -774,7 +774,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## AdditionalPropertiesBoxedMap public static final class AdditionalPropertiesBoxedMap
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesWithArrayOfEnums.md b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesWithArrayOfEnums.md index 055d2a28e6f..36e42afdcb5 100644 --- a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesWithArrayOfEnums.md +++ b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesWithArrayOfEnums.md @@ -4,7 +4,7 @@ public class AdditionalPropertiesWithArrayOfEnums
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 +- abstract 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 @@ -26,15 +26,15 @@ A class that contains necessary nested | static class | [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesList](#additionalpropertieslist)
output class for List payloads | ## AdditionalPropertiesWithArrayOfEnums1Boxed -public static abstract sealed class AdditionalPropertiesWithArrayOfEnums1Boxed
+public sealed interface AdditionalPropertiesWithArrayOfEnums1Boxed
permits
[AdditionalPropertiesWithArrayOfEnums1BoxedMap](#additionalpropertieswitharrayofenums1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesWithArrayOfEnums1BoxedMap public static final class AdditionalPropertiesWithArrayOfEnums1BoxedMap
-extends [AdditionalPropertiesWithArrayOfEnums1Boxed](#additionalpropertieswitharrayofenums1boxed) +implements [AdditionalPropertiesWithArrayOfEnums1Boxed](#additionalpropertieswitharrayofenums1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -126,15 +126,15 @@ A class to store validated Map payloads | [AdditionalPropertiesList](#additionalpropertieslist) | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalPropertiesBoxed -public static abstract sealed class AdditionalPropertiesBoxed
+public sealed interface AdditionalPropertiesBoxed
permits
[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedList public static final class AdditionalPropertiesBoxedList
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated List payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/Address.md b/samples/client/petstore/java/docs/components/schemas/Address.md index 1499075edc6..c559711d41e 100644 --- a/samples/client/petstore/java/docs/components/schemas/Address.md +++ b/samples/client/petstore/java/docs/components/schemas/Address.md @@ -4,7 +4,7 @@ public class Address
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 +- abstract 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 @@ -22,15 +22,15 @@ A class that contains necessary nested | static class | [Address.AdditionalProperties](#additionalproperties)
schema class | ## Address1Boxed -public static abstract sealed class Address1Boxed
+public sealed interface Address1Boxed
permits
[Address1BoxedMap](#address1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Address1BoxedMap public static final class Address1BoxedMap
-extends [Address1Boxed](#address1boxed) +implements [Address1Boxed](#address1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -121,15 +121,15 @@ A class to store validated Map payloads | Number | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalPropertiesBoxed -public static abstract sealed class AdditionalPropertiesBoxed
+public sealed interface AdditionalPropertiesBoxed
permits
[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedNumber public static final class AdditionalPropertiesBoxedNumber
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/Animal.md b/samples/client/petstore/java/docs/components/schemas/Animal.md index 8026958ff6c..1daa2967c4d 100644 --- a/samples/client/petstore/java/docs/components/schemas/Animal.md +++ b/samples/client/petstore/java/docs/components/schemas/Animal.md @@ -4,7 +4,7 @@ public class Animal
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 +- abstract 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 @@ -25,15 +25,15 @@ A class that contains necessary nested | static class | [Animal.ClassName](#classname)
schema class | ## Animal1Boxed -public static abstract sealed class Animal1Boxed
+public sealed interface Animal1Boxed
permits
[Animal1BoxedMap](#animal1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Animal1BoxedMap public static final class Animal1BoxedMap
-extends [Animal1Boxed](#animal1boxed) +implements [Animal1Boxed](#animal1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -151,15 +151,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## ColorBoxed -public static abstract sealed class ColorBoxed
+public sealed interface ColorBoxed
permits
[ColorBoxedString](#colorboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ColorBoxedString public static final class ColorBoxedString
-extends [ColorBoxed](#colorboxed) +implements [ColorBoxed](#colorboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -214,15 +214,15 @@ String validatedPayload = Animal.Color.validate( | [ColorBoxedString](#colorboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## ClassNameBoxed -public static abstract sealed class ClassNameBoxed
+public sealed interface ClassNameBoxed
permits
[ClassNameBoxedString](#classnameboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ClassNameBoxedString public static final class ClassNameBoxedString
-extends [ClassNameBoxed](#classnameboxed) +implements [ClassNameBoxed](#classnameboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/AnimalFarm.md b/samples/client/petstore/java/docs/components/schemas/AnimalFarm.md index cb195ae69ce..f3710853ff1 100644 --- a/samples/client/petstore/java/docs/components/schemas/AnimalFarm.md +++ b/samples/client/petstore/java/docs/components/schemas/AnimalFarm.md @@ -4,7 +4,7 @@ public class AnimalFarm
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 +- abstract 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 @@ -19,15 +19,15 @@ A class that contains necessary nested | static class | [AnimalFarm.AnimalFarmList](#animalfarmlist)
output class for List payloads | ## AnimalFarm1Boxed -public static abstract sealed class AnimalFarm1Boxed
+public sealed interface AnimalFarm1Boxed
permits
[AnimalFarm1BoxedList](#animalfarm1boxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AnimalFarm1BoxedList public static final class AnimalFarm1BoxedList
-extends [AnimalFarm1Boxed](#animalfarm1boxed) +implements [AnimalFarm1Boxed](#animalfarm1boxed) a boxed class to store validated List payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/AnyTypeAndFormat.md b/samples/client/petstore/java/docs/components/schemas/AnyTypeAndFormat.md index b8265995e84..b860b25241e 100644 --- a/samples/client/petstore/java/docs/components/schemas/AnyTypeAndFormat.md +++ b/samples/client/petstore/java/docs/components/schemas/AnyTypeAndFormat.md @@ -4,7 +4,7 @@ public class AnyTypeAndFormat
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 +- abstract 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 @@ -91,15 +91,15 @@ A class that contains necessary nested | static class | [AnyTypeAndFormat.UuidSchema](#uuidschema)
schema class | ## AnyTypeAndFormat1Boxed -public static abstract sealed class AnyTypeAndFormat1Boxed
+public sealed interface AnyTypeAndFormat1Boxed
permits
[AnyTypeAndFormat1BoxedMap](#anytypeandformat1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AnyTypeAndFormat1BoxedMap public static final class AnyTypeAndFormat1BoxedMap
-extends [AnyTypeAndFormat1Boxed](#anytypeandformat1boxed) +implements [AnyTypeAndFormat1Boxed](#anytypeandformat1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -279,7 +279,7 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## FloatSchemaBoxed -public static abstract sealed class FloatSchemaBoxed
+public sealed interface FloatSchemaBoxed
permits
[FloatSchemaBoxedVoid](#floatschemaboxedvoid), [FloatSchemaBoxedBoolean](#floatschemaboxedboolean), @@ -288,11 +288,11 @@ permits
[FloatSchemaBoxedList](#floatschemaboxedlist), [FloatSchemaBoxedMap](#floatschemaboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## FloatSchemaBoxedVoid public static final class FloatSchemaBoxedVoid
-extends [FloatSchemaBoxed](#floatschemaboxed) +implements [FloatSchemaBoxed](#floatschemaboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -308,7 +308,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## FloatSchemaBoxedBoolean public static final class FloatSchemaBoxedBoolean
-extends [FloatSchemaBoxed](#floatschemaboxed) +implements [FloatSchemaBoxed](#floatschemaboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -324,7 +324,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## FloatSchemaBoxedNumber public static final class FloatSchemaBoxedNumber
-extends [FloatSchemaBoxed](#floatschemaboxed) +implements [FloatSchemaBoxed](#floatschemaboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -340,7 +340,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## FloatSchemaBoxedString public static final class FloatSchemaBoxedString
-extends [FloatSchemaBoxed](#floatschemaboxed) +implements [FloatSchemaBoxed](#floatschemaboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -356,7 +356,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## FloatSchemaBoxedList public static final class FloatSchemaBoxedList
-extends [FloatSchemaBoxed](#floatschemaboxed) +implements [FloatSchemaBoxed](#floatschemaboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -372,7 +372,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## FloatSchemaBoxedMap public static final class FloatSchemaBoxedMap
-extends [FloatSchemaBoxed](#floatschemaboxed) +implements [FloatSchemaBoxed](#floatschemaboxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -418,7 +418,7 @@ A schema class that validates payloads | [FloatSchemaBoxedList](#floatschemaboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## DoubleSchemaBoxed -public static abstract sealed class DoubleSchemaBoxed
+public sealed interface DoubleSchemaBoxed
permits
[DoubleSchemaBoxedVoid](#doubleschemaboxedvoid), [DoubleSchemaBoxedBoolean](#doubleschemaboxedboolean), @@ -427,11 +427,11 @@ permits
[DoubleSchemaBoxedList](#doubleschemaboxedlist), [DoubleSchemaBoxedMap](#doubleschemaboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## DoubleSchemaBoxedVoid public static final class DoubleSchemaBoxedVoid
-extends [DoubleSchemaBoxed](#doubleschemaboxed) +implements [DoubleSchemaBoxed](#doubleschemaboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -447,7 +447,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## DoubleSchemaBoxedBoolean public static final class DoubleSchemaBoxedBoolean
-extends [DoubleSchemaBoxed](#doubleschemaboxed) +implements [DoubleSchemaBoxed](#doubleschemaboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -463,7 +463,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## DoubleSchemaBoxedNumber public static final class DoubleSchemaBoxedNumber
-extends [DoubleSchemaBoxed](#doubleschemaboxed) +implements [DoubleSchemaBoxed](#doubleschemaboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -479,7 +479,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## DoubleSchemaBoxedString public static final class DoubleSchemaBoxedString
-extends [DoubleSchemaBoxed](#doubleschemaboxed) +implements [DoubleSchemaBoxed](#doubleschemaboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -495,7 +495,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## DoubleSchemaBoxedList public static final class DoubleSchemaBoxedList
-extends [DoubleSchemaBoxed](#doubleschemaboxed) +implements [DoubleSchemaBoxed](#doubleschemaboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -511,7 +511,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## DoubleSchemaBoxedMap public static final class DoubleSchemaBoxedMap
-extends [DoubleSchemaBoxed](#doubleschemaboxed) +implements [DoubleSchemaBoxed](#doubleschemaboxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -557,7 +557,7 @@ A schema class that validates payloads | [DoubleSchemaBoxedList](#doubleschemaboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## Int64Boxed -public static abstract sealed class Int64Boxed
+public sealed interface Int64Boxed
permits
[Int64BoxedVoid](#int64boxedvoid), [Int64BoxedBoolean](#int64boxedboolean), @@ -566,11 +566,11 @@ permits
[Int64BoxedList](#int64boxedlist), [Int64BoxedMap](#int64boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Int64BoxedVoid public static final class Int64BoxedVoid
-extends [Int64Boxed](#int64boxed) +implements [Int64Boxed](#int64boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -586,7 +586,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## Int64BoxedBoolean public static final class Int64BoxedBoolean
-extends [Int64Boxed](#int64boxed) +implements [Int64Boxed](#int64boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -602,7 +602,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## Int64BoxedNumber public static final class Int64BoxedNumber
-extends [Int64Boxed](#int64boxed) +implements [Int64Boxed](#int64boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -618,7 +618,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## Int64BoxedString public static final class Int64BoxedString
-extends [Int64Boxed](#int64boxed) +implements [Int64Boxed](#int64boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -634,7 +634,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## Int64BoxedList public static final class Int64BoxedList
-extends [Int64Boxed](#int64boxed) +implements [Int64Boxed](#int64boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -650,7 +650,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## Int64BoxedMap public static final class Int64BoxedMap
-extends [Int64Boxed](#int64boxed) +implements [Int64Boxed](#int64boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -696,7 +696,7 @@ A schema class that validates payloads | [Int64BoxedList](#int64boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## Int32Boxed -public static abstract sealed class Int32Boxed
+public sealed interface Int32Boxed
permits
[Int32BoxedVoid](#int32boxedvoid), [Int32BoxedBoolean](#int32boxedboolean), @@ -705,11 +705,11 @@ permits
[Int32BoxedList](#int32boxedlist), [Int32BoxedMap](#int32boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Int32BoxedVoid public static final class Int32BoxedVoid
-extends [Int32Boxed](#int32boxed) +implements [Int32Boxed](#int32boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -725,7 +725,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## Int32BoxedBoolean public static final class Int32BoxedBoolean
-extends [Int32Boxed](#int32boxed) +implements [Int32Boxed](#int32boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -741,7 +741,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## Int32BoxedNumber public static final class Int32BoxedNumber
-extends [Int32Boxed](#int32boxed) +implements [Int32Boxed](#int32boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -757,7 +757,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## Int32BoxedString public static final class Int32BoxedString
-extends [Int32Boxed](#int32boxed) +implements [Int32Boxed](#int32boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -773,7 +773,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## Int32BoxedList public static final class Int32BoxedList
-extends [Int32Boxed](#int32boxed) +implements [Int32Boxed](#int32boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -789,7 +789,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## Int32BoxedMap public static final class Int32BoxedMap
-extends [Int32Boxed](#int32boxed) +implements [Int32Boxed](#int32boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -835,7 +835,7 @@ A schema class that validates payloads | [Int32BoxedList](#int32boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## BinaryBoxed -public static abstract sealed class BinaryBoxed
+public sealed interface BinaryBoxed
permits
[BinaryBoxedVoid](#binaryboxedvoid), [BinaryBoxedBoolean](#binaryboxedboolean), @@ -844,11 +844,11 @@ permits
[BinaryBoxedList](#binaryboxedlist), [BinaryBoxedMap](#binaryboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## BinaryBoxedVoid public static final class BinaryBoxedVoid
-extends [BinaryBoxed](#binaryboxed) +implements [BinaryBoxed](#binaryboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -864,7 +864,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## BinaryBoxedBoolean public static final class BinaryBoxedBoolean
-extends [BinaryBoxed](#binaryboxed) +implements [BinaryBoxed](#binaryboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -880,7 +880,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## BinaryBoxedNumber public static final class BinaryBoxedNumber
-extends [BinaryBoxed](#binaryboxed) +implements [BinaryBoxed](#binaryboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -896,7 +896,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## BinaryBoxedString public static final class BinaryBoxedString
-extends [BinaryBoxed](#binaryboxed) +implements [BinaryBoxed](#binaryboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -912,7 +912,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## BinaryBoxedList public static final class BinaryBoxedList
-extends [BinaryBoxed](#binaryboxed) +implements [BinaryBoxed](#binaryboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -928,7 +928,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## BinaryBoxedMap public static final class BinaryBoxedMap
-extends [BinaryBoxed](#binaryboxed) +implements [BinaryBoxed](#binaryboxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -974,7 +974,7 @@ A schema class that validates payloads | [BinaryBoxedList](#binaryboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## NumberSchemaBoxed -public static abstract sealed class NumberSchemaBoxed
+public sealed interface NumberSchemaBoxed
permits
[NumberSchemaBoxedVoid](#numberschemaboxedvoid), [NumberSchemaBoxedBoolean](#numberschemaboxedboolean), @@ -983,11 +983,11 @@ permits
[NumberSchemaBoxedList](#numberschemaboxedlist), [NumberSchemaBoxedMap](#numberschemaboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## NumberSchemaBoxedVoid public static final class NumberSchemaBoxedVoid
-extends [NumberSchemaBoxed](#numberschemaboxed) +implements [NumberSchemaBoxed](#numberschemaboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -1003,7 +1003,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## NumberSchemaBoxedBoolean public static final class NumberSchemaBoxedBoolean
-extends [NumberSchemaBoxed](#numberschemaboxed) +implements [NumberSchemaBoxed](#numberschemaboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -1019,7 +1019,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## NumberSchemaBoxedNumber public static final class NumberSchemaBoxedNumber
-extends [NumberSchemaBoxed](#numberschemaboxed) +implements [NumberSchemaBoxed](#numberschemaboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -1035,7 +1035,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## NumberSchemaBoxedString public static final class NumberSchemaBoxedString
-extends [NumberSchemaBoxed](#numberschemaboxed) +implements [NumberSchemaBoxed](#numberschemaboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -1051,7 +1051,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## NumberSchemaBoxedList public static final class NumberSchemaBoxedList
-extends [NumberSchemaBoxed](#numberschemaboxed) +implements [NumberSchemaBoxed](#numberschemaboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -1067,7 +1067,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## NumberSchemaBoxedMap public static final class NumberSchemaBoxedMap
-extends [NumberSchemaBoxed](#numberschemaboxed) +implements [NumberSchemaBoxed](#numberschemaboxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -1113,7 +1113,7 @@ A schema class that validates payloads | [NumberSchemaBoxedList](#numberschemaboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## DatetimeBoxed -public static abstract sealed class DatetimeBoxed
+public sealed interface DatetimeBoxed
permits
[DatetimeBoxedVoid](#datetimeboxedvoid), [DatetimeBoxedBoolean](#datetimeboxedboolean), @@ -1122,11 +1122,11 @@ permits
[DatetimeBoxedList](#datetimeboxedlist), [DatetimeBoxedMap](#datetimeboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## DatetimeBoxedVoid public static final class DatetimeBoxedVoid
-extends [DatetimeBoxed](#datetimeboxed) +implements [DatetimeBoxed](#datetimeboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -1142,7 +1142,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## DatetimeBoxedBoolean public static final class DatetimeBoxedBoolean
-extends [DatetimeBoxed](#datetimeboxed) +implements [DatetimeBoxed](#datetimeboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -1158,7 +1158,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## DatetimeBoxedNumber public static final class DatetimeBoxedNumber
-extends [DatetimeBoxed](#datetimeboxed) +implements [DatetimeBoxed](#datetimeboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -1174,7 +1174,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## DatetimeBoxedString public static final class DatetimeBoxedString
-extends [DatetimeBoxed](#datetimeboxed) +implements [DatetimeBoxed](#datetimeboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -1190,7 +1190,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## DatetimeBoxedList public static final class DatetimeBoxedList
-extends [DatetimeBoxed](#datetimeboxed) +implements [DatetimeBoxed](#datetimeboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -1206,7 +1206,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## DatetimeBoxedMap public static final class DatetimeBoxedMap
-extends [DatetimeBoxed](#datetimeboxed) +implements [DatetimeBoxed](#datetimeboxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -1252,7 +1252,7 @@ A schema class that validates payloads | [DatetimeBoxedList](#datetimeboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## DateBoxed -public static abstract sealed class DateBoxed
+public sealed interface DateBoxed
permits
[DateBoxedVoid](#dateboxedvoid), [DateBoxedBoolean](#dateboxedboolean), @@ -1261,11 +1261,11 @@ permits
[DateBoxedList](#dateboxedlist), [DateBoxedMap](#dateboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## DateBoxedVoid public static final class DateBoxedVoid
-extends [DateBoxed](#dateboxed) +implements [DateBoxed](#dateboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -1281,7 +1281,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## DateBoxedBoolean public static final class DateBoxedBoolean
-extends [DateBoxed](#dateboxed) +implements [DateBoxed](#dateboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -1297,7 +1297,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## DateBoxedNumber public static final class DateBoxedNumber
-extends [DateBoxed](#dateboxed) +implements [DateBoxed](#dateboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -1313,7 +1313,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## DateBoxedString public static final class DateBoxedString
-extends [DateBoxed](#dateboxed) +implements [DateBoxed](#dateboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -1329,7 +1329,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## DateBoxedList public static final class DateBoxedList
-extends [DateBoxed](#dateboxed) +implements [DateBoxed](#dateboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -1345,7 +1345,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## DateBoxedMap public static final class DateBoxedMap
-extends [DateBoxed](#dateboxed) +implements [DateBoxed](#dateboxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -1391,7 +1391,7 @@ A schema class that validates payloads | [DateBoxedList](#dateboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## UuidSchemaBoxed -public static abstract sealed class UuidSchemaBoxed
+public sealed interface UuidSchemaBoxed
permits
[UuidSchemaBoxedVoid](#uuidschemaboxedvoid), [UuidSchemaBoxedBoolean](#uuidschemaboxedboolean), @@ -1400,11 +1400,11 @@ permits
[UuidSchemaBoxedList](#uuidschemaboxedlist), [UuidSchemaBoxedMap](#uuidschemaboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## UuidSchemaBoxedVoid public static final class UuidSchemaBoxedVoid
-extends [UuidSchemaBoxed](#uuidschemaboxed) +implements [UuidSchemaBoxed](#uuidschemaboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -1420,7 +1420,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## UuidSchemaBoxedBoolean public static final class UuidSchemaBoxedBoolean
-extends [UuidSchemaBoxed](#uuidschemaboxed) +implements [UuidSchemaBoxed](#uuidschemaboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -1436,7 +1436,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## UuidSchemaBoxedNumber public static final class UuidSchemaBoxedNumber
-extends [UuidSchemaBoxed](#uuidschemaboxed) +implements [UuidSchemaBoxed](#uuidschemaboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -1452,7 +1452,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## UuidSchemaBoxedString public static final class UuidSchemaBoxedString
-extends [UuidSchemaBoxed](#uuidschemaboxed) +implements [UuidSchemaBoxed](#uuidschemaboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -1468,7 +1468,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## UuidSchemaBoxedList public static final class UuidSchemaBoxedList
-extends [UuidSchemaBoxed](#uuidschemaboxed) +implements [UuidSchemaBoxed](#uuidschemaboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -1484,7 +1484,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## UuidSchemaBoxedMap public static final class UuidSchemaBoxedMap
-extends [UuidSchemaBoxed](#uuidschemaboxed) +implements [UuidSchemaBoxed](#uuidschemaboxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/AnyTypeNotString.md b/samples/client/petstore/java/docs/components/schemas/AnyTypeNotString.md index 1b5b02be520..04fc4ee18f9 100644 --- a/samples/client/petstore/java/docs/components/schemas/AnyTypeNotString.md +++ b/samples/client/petstore/java/docs/components/schemas/AnyTypeNotString.md @@ -4,7 +4,7 @@ public class AnyTypeNotString
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 +- abstract 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 @@ -23,7 +23,7 @@ A class that contains necessary nested | static class | [AnyTypeNotString.Not](#not)
schema class | ## AnyTypeNotString1Boxed -public static abstract sealed class AnyTypeNotString1Boxed
+public sealed interface AnyTypeNotString1Boxed
permits
[AnyTypeNotString1BoxedVoid](#anytypenotstring1boxedvoid), [AnyTypeNotString1BoxedBoolean](#anytypenotstring1boxedboolean), @@ -32,11 +32,11 @@ permits
[AnyTypeNotString1BoxedList](#anytypenotstring1boxedlist), [AnyTypeNotString1BoxedMap](#anytypenotstring1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AnyTypeNotString1BoxedVoid public static final class AnyTypeNotString1BoxedVoid
-extends [AnyTypeNotString1Boxed](#anytypenotstring1boxed) +implements [AnyTypeNotString1Boxed](#anytypenotstring1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -52,7 +52,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## AnyTypeNotString1BoxedBoolean public static final class AnyTypeNotString1BoxedBoolean
-extends [AnyTypeNotString1Boxed](#anytypenotstring1boxed) +implements [AnyTypeNotString1Boxed](#anytypenotstring1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -68,7 +68,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## AnyTypeNotString1BoxedNumber public static final class AnyTypeNotString1BoxedNumber
-extends [AnyTypeNotString1Boxed](#anytypenotstring1boxed) +implements [AnyTypeNotString1Boxed](#anytypenotstring1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -84,7 +84,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## AnyTypeNotString1BoxedString public static final class AnyTypeNotString1BoxedString
-extends [AnyTypeNotString1Boxed](#anytypenotstring1boxed) +implements [AnyTypeNotString1Boxed](#anytypenotstring1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -100,7 +100,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## AnyTypeNotString1BoxedList public static final class AnyTypeNotString1BoxedList
-extends [AnyTypeNotString1Boxed](#anytypenotstring1boxed) +implements [AnyTypeNotString1Boxed](#anytypenotstring1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -116,7 +116,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## AnyTypeNotString1BoxedMap public static final class AnyTypeNotString1BoxedMap
-extends [AnyTypeNotString1Boxed](#anytypenotstring1boxed) +implements [AnyTypeNotString1Boxed](#anytypenotstring1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -162,15 +162,15 @@ A schema class that validates payloads | [AnyTypeNotString1BoxedList](#anytypenotstring1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## NotBoxed -public static abstract sealed class NotBoxed
+public sealed interface NotBoxed
permits
[NotBoxedString](#notboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## NotBoxedString public static final class NotBoxedString
-extends [NotBoxed](#notboxed) +implements [NotBoxed](#notboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ApiResponseSchema.md b/samples/client/petstore/java/docs/components/schemas/ApiResponseSchema.md index a0950c3a623..7e597ddc59b 100644 --- a/samples/client/petstore/java/docs/components/schemas/ApiResponseSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/ApiResponseSchema.md @@ -4,7 +4,7 @@ public class ApiResponseSchema
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 +- abstract 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 @@ -28,15 +28,15 @@ A class that contains necessary nested | static class | [ApiResponseSchema.Code](#code)
schema class | ## ApiResponseSchema1Boxed -public static abstract sealed class ApiResponseSchema1Boxed
+public sealed interface ApiResponseSchema1Boxed
permits
[ApiResponseSchema1BoxedMap](#apiresponseschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApiResponseSchema1BoxedMap public static final class ApiResponseSchema1BoxedMap
-extends [ApiResponseSchema1Boxed](#apiresponseschema1boxed) +implements [ApiResponseSchema1Boxed](#apiresponseschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -143,15 +143,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## MessageBoxed -public static abstract sealed class MessageBoxed
+public sealed interface MessageBoxed
permits
[MessageBoxedString](#messageboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MessageBoxedString public static final class MessageBoxedString
-extends [MessageBoxed](#messageboxed) +implements [MessageBoxed](#messageboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -177,15 +177,15 @@ A schema class that validates payloads | validateAndBox | ## TypeBoxed -public static abstract sealed class TypeBoxed
+public sealed interface TypeBoxed
permits
[TypeBoxedString](#typeboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## TypeBoxedString public static final class TypeBoxedString
-extends [TypeBoxed](#typeboxed) +implements [TypeBoxed](#typeboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -211,15 +211,15 @@ A schema class that validates payloads | validateAndBox | ## CodeBoxed -public static abstract sealed class CodeBoxed
+public sealed interface CodeBoxed
permits
[CodeBoxedNumber](#codeboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## CodeBoxedNumber public static final class CodeBoxedNumber
-extends [CodeBoxed](#codeboxed) +implements [CodeBoxed](#codeboxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/Apple.md b/samples/client/petstore/java/docs/components/schemas/Apple.md index fc7acd33e3a..a1cbed31310 100644 --- a/samples/client/petstore/java/docs/components/schemas/Apple.md +++ b/samples/client/petstore/java/docs/components/schemas/Apple.md @@ -4,7 +4,7 @@ public class Apple
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 +- abstract 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 @@ -26,16 +26,16 @@ A class that contains necessary nested | static class | [Apple.Cultivar](#cultivar)
schema class | ## Apple1Boxed -public static abstract sealed class Apple1Boxed
+public sealed interface Apple1Boxed
permits
[Apple1BoxedVoid](#apple1boxedvoid), [Apple1BoxedMap](#apple1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Apple1BoxedVoid public static final class Apple1BoxedVoid
-extends [Apple1Boxed](#apple1boxed) +implements [Apple1Boxed](#apple1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -51,7 +51,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## Apple1BoxedMap public static final class Apple1BoxedMap
-extends [Apple1Boxed](#apple1boxed) +implements [Apple1Boxed](#apple1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -177,15 +177,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## OriginBoxed -public static abstract sealed class OriginBoxed
+public sealed interface OriginBoxed
permits
[OriginBoxedString](#originboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## OriginBoxedString public static final class OriginBoxedString
-extends [OriginBoxed](#originboxed) +implements [OriginBoxed](#originboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -240,15 +240,15 @@ String validatedPayload = Apple.Origin.validate( | [OriginBoxedString](#originboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## CultivarBoxed -public static abstract sealed class CultivarBoxed
+public sealed interface CultivarBoxed
permits
[CultivarBoxedString](#cultivarboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## CultivarBoxedString public static final class CultivarBoxedString
-extends [CultivarBoxed](#cultivarboxed) +implements [CultivarBoxed](#cultivarboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/AppleReq.md b/samples/client/petstore/java/docs/components/schemas/AppleReq.md index d15684f8b60..9e728077d84 100644 --- a/samples/client/petstore/java/docs/components/schemas/AppleReq.md +++ b/samples/client/petstore/java/docs/components/schemas/AppleReq.md @@ -4,7 +4,7 @@ public class AppleReq
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 +- abstract 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 @@ -33,15 +33,15 @@ A class that contains necessary nested | static class | [AppleReq.AdditionalProperties](#additionalproperties)
schema class | ## AppleReq1Boxed -public static abstract sealed class AppleReq1Boxed
+public sealed interface AppleReq1Boxed
permits
[AppleReq1BoxedMap](#applereq1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AppleReq1BoxedMap public static final class AppleReq1BoxedMap
-extends [AppleReq1Boxed](#applereq1boxed) +implements [AppleReq1Boxed](#applereq1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -150,15 +150,15 @@ A class to store validated Map payloads | boolean | mealy()
[optional] | ## MealyBoxed -public static abstract sealed class MealyBoxed
+public sealed interface MealyBoxed
permits
[MealyBoxedBoolean](#mealyboxedboolean) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MealyBoxedBoolean public static final class MealyBoxedBoolean
-extends [MealyBoxed](#mealyboxed) +implements [MealyBoxed](#mealyboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -184,15 +184,15 @@ A schema class that validates payloads | validateAndBox | ## CultivarBoxed -public static abstract sealed class CultivarBoxed
+public sealed interface CultivarBoxed
permits
[CultivarBoxedString](#cultivarboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## CultivarBoxedString public static final class CultivarBoxedString
-extends [CultivarBoxed](#cultivarboxed) +implements [CultivarBoxed](#cultivarboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -218,7 +218,7 @@ A schema class that validates payloads | validateAndBox | ## AdditionalPropertiesBoxed -public static abstract sealed class AdditionalPropertiesBoxed
+public sealed interface AdditionalPropertiesBoxed
permits
[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), [AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), @@ -227,11 +227,11 @@ permits
[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), [AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedVoid public static final class AdditionalPropertiesBoxedVoid
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -247,7 +247,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## AdditionalPropertiesBoxedBoolean public static final class AdditionalPropertiesBoxedBoolean
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -263,7 +263,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## AdditionalPropertiesBoxedNumber public static final class AdditionalPropertiesBoxedNumber
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -279,7 +279,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## AdditionalPropertiesBoxedString public static final class AdditionalPropertiesBoxedString
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -295,7 +295,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## AdditionalPropertiesBoxedList public static final class AdditionalPropertiesBoxedList
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -311,7 +311,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## AdditionalPropertiesBoxedMap public static final class AdditionalPropertiesBoxedMap
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayHoldingAnyType.md b/samples/client/petstore/java/docs/components/schemas/ArrayHoldingAnyType.md index f2190406d23..803a566e32f 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayHoldingAnyType.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayHoldingAnyType.md @@ -4,7 +4,7 @@ public class ArrayHoldingAnyType
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 +- abstract 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 @@ -27,15 +27,15 @@ A class that contains necessary nested | static class | [ArrayHoldingAnyType.Items](#items)
schema class | ## ArrayHoldingAnyType1Boxed -public static abstract sealed class ArrayHoldingAnyType1Boxed
+public sealed interface ArrayHoldingAnyType1Boxed
permits
[ArrayHoldingAnyType1BoxedList](#arrayholdinganytype1boxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ArrayHoldingAnyType1BoxedList public static final class ArrayHoldingAnyType1BoxedList
-extends [ArrayHoldingAnyType1Boxed](#arrayholdinganytype1boxed) +implements [ArrayHoldingAnyType1Boxed](#arrayholdinganytype1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -129,7 +129,7 @@ A class to store validated List payloads | static [ArrayHoldingAnyTypeList](#arrayholdinganytypelist) | of([List](#arrayholdinganytypelistbuilder) arg, SchemaConfiguration configuration) | ## ItemsBoxed -public static abstract sealed class ItemsBoxed
+public sealed interface ItemsBoxed
permits
[ItemsBoxedVoid](#itemsboxedvoid), [ItemsBoxedBoolean](#itemsboxedboolean), @@ -138,11 +138,11 @@ 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) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -158,7 +158,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ItemsBoxedBoolean public static final class ItemsBoxedBoolean
-extends [ItemsBoxed](#itemsboxed) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -174,7 +174,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## ItemsBoxedNumber public static final class ItemsBoxedNumber
-extends [ItemsBoxed](#itemsboxed) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -190,7 +190,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## ItemsBoxedString public static final class ItemsBoxedString
-extends [ItemsBoxed](#itemsboxed) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -206,7 +206,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## ItemsBoxedList public static final class ItemsBoxedList
-extends [ItemsBoxed](#itemsboxed) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -222,7 +222,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## ItemsBoxedMap public static final class ItemsBoxedMap
-extends [ItemsBoxed](#itemsboxed) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/java/docs/components/schemas/ArrayOfArrayOfNumberOnly.md index 8bdaa55f8b8..609db4c65f8 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayOfArrayOfNumberOnly.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayOfArrayOfNumberOnly.md @@ -4,7 +4,7 @@ public class ArrayOfArrayOfNumberOnly
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 +- abstract 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 @@ -34,15 +34,15 @@ A class that contains necessary nested | static class | [ArrayOfArrayOfNumberOnly.Items1](#items1)
schema class | ## ArrayOfArrayOfNumberOnly1Boxed -public static abstract sealed class ArrayOfArrayOfNumberOnly1Boxed
+public sealed interface ArrayOfArrayOfNumberOnly1Boxed
permits
[ArrayOfArrayOfNumberOnly1BoxedMap](#arrayofarrayofnumberonly1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ArrayOfArrayOfNumberOnly1BoxedMap public static final class ArrayOfArrayOfNumberOnly1BoxedMap
-extends [ArrayOfArrayOfNumberOnly1Boxed](#arrayofarrayofnumberonly1boxed) +implements [ArrayOfArrayOfNumberOnly1Boxed](#arrayofarrayofnumberonly1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -145,15 +145,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## ArrayArrayNumberBoxed -public static abstract sealed class ArrayArrayNumberBoxed
+public sealed interface ArrayArrayNumberBoxed
permits
[ArrayArrayNumberBoxedList](#arrayarraynumberboxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ArrayArrayNumberBoxedList public static final class ArrayArrayNumberBoxedList
-extends [ArrayArrayNumberBoxed](#arrayarraynumberboxed) +implements [ArrayArrayNumberBoxed](#arrayarraynumberboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -244,15 +244,15 @@ A class to store validated List payloads | static [ArrayArrayNumberList](#arrayarraynumberlist) | of([List>](#arrayarraynumberlistbuilder) 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) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -343,15 +343,15 @@ A class to store validated List payloads | static [ItemsList](#itemslist) | of([List](#itemslistbuilder) arg, SchemaConfiguration configuration) | ## Items1Boxed -public static abstract sealed class Items1Boxed
+public sealed interface Items1Boxed
permits
[Items1BoxedNumber](#items1boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Items1BoxedNumber public static final class Items1BoxedNumber
-extends [Items1Boxed](#items1boxed) +implements [Items1Boxed](#items1boxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayOfEnums.md b/samples/client/petstore/java/docs/components/schemas/ArrayOfEnums.md index 60c1e0b5d50..8a295ec85ff 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayOfEnums.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayOfEnums.md @@ -4,7 +4,7 @@ public class ArrayOfEnums
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 +- abstract 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 @@ -19,15 +19,15 @@ A class that contains necessary nested | static class | [ArrayOfEnums.ArrayOfEnumsList](#arrayofenumslist)
output class for List payloads | ## ArrayOfEnums1Boxed -public static abstract sealed class ArrayOfEnums1Boxed
+public sealed interface ArrayOfEnums1Boxed
permits
[ArrayOfEnums1BoxedList](#arrayofenums1boxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ArrayOfEnums1BoxedList public static final class ArrayOfEnums1BoxedList
-extends [ArrayOfEnums1Boxed](#arrayofenums1boxed) +implements [ArrayOfEnums1Boxed](#arrayofenums1boxed) a boxed class to store validated List payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayOfNumberOnly.md b/samples/client/petstore/java/docs/components/schemas/ArrayOfNumberOnly.md index 7e7b828e4f4..4e393d0e003 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayOfNumberOnly.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayOfNumberOnly.md @@ -4,7 +4,7 @@ public class ArrayOfNumberOnly
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 +- abstract 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 @@ -29,15 +29,15 @@ A class that contains necessary nested | static class | [ArrayOfNumberOnly.Items](#items)
schema class | ## ArrayOfNumberOnly1Boxed -public static abstract sealed class ArrayOfNumberOnly1Boxed
+public sealed interface ArrayOfNumberOnly1Boxed
permits
[ArrayOfNumberOnly1BoxedMap](#arrayofnumberonly1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ArrayOfNumberOnly1BoxedMap public static final class ArrayOfNumberOnly1BoxedMap
-extends [ArrayOfNumberOnly1Boxed](#arrayofnumberonly1boxed) +implements [ArrayOfNumberOnly1Boxed](#arrayofnumberonly1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -138,15 +138,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## ArrayNumberBoxed -public static abstract sealed class ArrayNumberBoxed
+public sealed interface ArrayNumberBoxed
permits
[ArrayNumberBoxedList](#arraynumberboxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ArrayNumberBoxedList public static final class ArrayNumberBoxedList
-extends [ArrayNumberBoxed](#arraynumberboxed) +implements [ArrayNumberBoxed](#arraynumberboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -237,15 +237,15 @@ A class to store validated List payloads | static [ArrayNumberList](#arraynumberlist) | of([List](#arraynumberlistbuilder) arg, SchemaConfiguration configuration) | ## ItemsBoxed -public static abstract sealed class ItemsBoxed
+public sealed interface ItemsBoxed
permits
[ItemsBoxedNumber](#itemsboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ItemsBoxedNumber public static final class ItemsBoxedNumber
-extends [ItemsBoxed](#itemsboxed) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayTest.md b/samples/client/petstore/java/docs/components/schemas/ArrayTest.md index fe35ce2e3a5..c91b4f88f64 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayTest.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayTest.md @@ -4,7 +4,7 @@ public class ArrayTest
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 +- abstract 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 @@ -52,15 +52,15 @@ A class that contains necessary nested | static class | [ArrayTest.Items](#items)
schema class | ## ArrayTest1Boxed -public static abstract sealed class ArrayTest1Boxed
+public sealed interface ArrayTest1Boxed
permits
[ArrayTest1BoxedMap](#arraytest1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ArrayTest1BoxedMap public static final class ArrayTest1BoxedMap
-extends [ArrayTest1Boxed](#arraytest1boxed) +implements [ArrayTest1Boxed](#arraytest1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -188,15 +188,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## ArrayArrayOfModelBoxed -public static abstract sealed class ArrayArrayOfModelBoxed
+public sealed interface ArrayArrayOfModelBoxed
permits
[ArrayArrayOfModelBoxedList](#arrayarrayofmodelboxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ArrayArrayOfModelBoxedList public static final class ArrayArrayOfModelBoxedList
-extends [ArrayArrayOfModelBoxed](#arrayarrayofmodelboxed) +implements [ArrayArrayOfModelBoxed](#arrayarrayofmodelboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -296,15 +296,15 @@ A class to store validated List payloads | static [ArrayArrayOfModelList](#arrayarrayofmodellist) | of([List>>](#arrayarrayofmodellistbuilder) arg, SchemaConfiguration configuration) | ## Items3Boxed -public static abstract sealed class Items3Boxed
+public sealed interface Items3Boxed
permits
[Items3BoxedList](#items3boxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Items3BoxedList public static final class Items3BoxedList
-extends [Items3Boxed](#items3boxed) +implements [Items3Boxed](#items3boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -402,15 +402,15 @@ A class to store validated List payloads | static [ItemsList1](#itemslist1) | of([List>](#itemslistbuilder1) arg, SchemaConfiguration configuration) | ## ArrayArrayOfIntegerBoxed -public static abstract sealed class ArrayArrayOfIntegerBoxed
+public sealed interface ArrayArrayOfIntegerBoxed
permits
[ArrayArrayOfIntegerBoxedList](#arrayarrayofintegerboxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ArrayArrayOfIntegerBoxedList public static final class ArrayArrayOfIntegerBoxedList
-extends [ArrayArrayOfIntegerBoxed](#arrayarrayofintegerboxed) +implements [ArrayArrayOfIntegerBoxed](#arrayarrayofintegerboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -501,15 +501,15 @@ A class to store validated List payloads | static [ArrayArrayOfIntegerList](#arrayarrayofintegerlist) | of([List>](#arrayarrayofintegerlistbuilder) 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) +implements [Items1Boxed](#items1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -600,15 +600,15 @@ A class to store validated List payloads | static [ItemsList](#itemslist) | of([List](#itemslistbuilder) arg, SchemaConfiguration configuration) | ## Items2Boxed -public static abstract sealed class Items2Boxed
+public sealed interface Items2Boxed
permits
[Items2BoxedNumber](#items2boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Items2BoxedNumber public static final class Items2BoxedNumber
-extends [Items2Boxed](#items2boxed) +implements [Items2Boxed](#items2boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -634,15 +634,15 @@ A schema class that validates payloads | validateAndBox | ## ArrayOfStringBoxed -public static abstract sealed class ArrayOfStringBoxed
+public sealed interface ArrayOfStringBoxed
permits
[ArrayOfStringBoxedList](#arrayofstringboxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ArrayOfStringBoxedList public static final class ArrayOfStringBoxedList
-extends [ArrayOfStringBoxed](#arrayofstringboxed) +implements [ArrayOfStringBoxed](#arrayofstringboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -730,15 +730,15 @@ A class to store validated List payloads | static [ArrayOfStringList](#arrayofstringlist) | of([List](#arrayofstringlistbuilder) arg, SchemaConfiguration configuration) | ## ItemsBoxed -public static abstract sealed class ItemsBoxed
+public sealed interface ItemsBoxed
permits
[ItemsBoxedString](#itemsboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ItemsBoxedString public static final class ItemsBoxedString
-extends [ItemsBoxed](#itemsboxed) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayWithValidationsInItems.md b/samples/client/petstore/java/docs/components/schemas/ArrayWithValidationsInItems.md index 0295b6eacfb..7ce4f1f4a20 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayWithValidationsInItems.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayWithValidationsInItems.md @@ -4,7 +4,7 @@ public class ArrayWithValidationsInItems
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 +- abstract 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 @@ -22,15 +22,15 @@ A class that contains necessary nested | static class | [ArrayWithValidationsInItems.Items](#items)
schema class | ## ArrayWithValidationsInItems1Boxed -public static abstract sealed class ArrayWithValidationsInItems1Boxed
+public sealed interface ArrayWithValidationsInItems1Boxed
permits
[ArrayWithValidationsInItems1BoxedList](#arraywithvalidationsinitems1boxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ArrayWithValidationsInItems1BoxedList public static final class ArrayWithValidationsInItems1BoxedList
-extends [ArrayWithValidationsInItems1Boxed](#arraywithvalidationsinitems1boxed) +implements [ArrayWithValidationsInItems1Boxed](#arraywithvalidationsinitems1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -122,15 +122,15 @@ A class to store validated List payloads | static [ArrayWithValidationsInItemsList](#arraywithvalidationsinitemslist) | of([List](#arraywithvalidationsinitemslistbuilder) arg, SchemaConfiguration configuration) | ## ItemsBoxed -public static abstract sealed class ItemsBoxed
+public sealed interface ItemsBoxed
permits
[ItemsBoxedNumber](#itemsboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ItemsBoxedNumber public static final class ItemsBoxedNumber
-extends [ItemsBoxed](#itemsboxed) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/Banana.md b/samples/client/petstore/java/docs/components/schemas/Banana.md index 4332912ded9..a8a8a3fcfe0 100644 --- a/samples/client/petstore/java/docs/components/schemas/Banana.md +++ b/samples/client/petstore/java/docs/components/schemas/Banana.md @@ -4,7 +4,7 @@ public class Banana
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 +- abstract 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 @@ -22,15 +22,15 @@ A class that contains necessary nested | static class | [Banana.LengthCm](#lengthcm)
schema class | ## Banana1Boxed -public static abstract sealed class Banana1Boxed
+public sealed interface Banana1Boxed
permits
[Banana1BoxedMap](#banana1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Banana1BoxedMap public static final class Banana1BoxedMap
-extends [Banana1Boxed](#banana1boxed) +implements [Banana1Boxed](#banana1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -147,15 +147,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## LengthCmBoxed -public static abstract sealed class LengthCmBoxed
+public sealed interface LengthCmBoxed
permits
[LengthCmBoxedNumber](#lengthcmboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## LengthCmBoxedNumber public static final class LengthCmBoxedNumber
-extends [LengthCmBoxed](#lengthcmboxed) +implements [LengthCmBoxed](#lengthcmboxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/BananaReq.md b/samples/client/petstore/java/docs/components/schemas/BananaReq.md index 4790c807836..14d699e944e 100644 --- a/samples/client/petstore/java/docs/components/schemas/BananaReq.md +++ b/samples/client/petstore/java/docs/components/schemas/BananaReq.md @@ -4,7 +4,7 @@ public class BananaReq
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 +- abstract 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 @@ -33,15 +33,15 @@ A class that contains necessary nested | static class | [BananaReq.AdditionalProperties](#additionalproperties)
schema class | ## BananaReq1Boxed -public static abstract sealed class BananaReq1Boxed
+public sealed interface BananaReq1Boxed
permits
[BananaReq1BoxedMap](#bananareq1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## BananaReq1BoxedMap public static final class BananaReq1BoxedMap
-extends [BananaReq1Boxed](#bananareq1boxed) +implements [BananaReq1Boxed](#bananareq1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -153,15 +153,15 @@ A class to store validated Map payloads | boolean | sweet()
[optional] | ## SweetBoxed -public static abstract sealed class SweetBoxed
+public sealed interface SweetBoxed
permits
[SweetBoxedBoolean](#sweetboxedboolean) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## SweetBoxedBoolean public static final class SweetBoxedBoolean
-extends [SweetBoxed](#sweetboxed) +implements [SweetBoxed](#sweetboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -187,15 +187,15 @@ A schema class that validates payloads | validateAndBox | ## LengthCmBoxed -public static abstract sealed class LengthCmBoxed
+public sealed interface LengthCmBoxed
permits
[LengthCmBoxedNumber](#lengthcmboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## LengthCmBoxedNumber public static final class LengthCmBoxedNumber
-extends [LengthCmBoxed](#lengthcmboxed) +implements [LengthCmBoxed](#lengthcmboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -221,7 +221,7 @@ A schema class that validates payloads | validateAndBox | ## AdditionalPropertiesBoxed -public static abstract sealed class AdditionalPropertiesBoxed
+public sealed interface AdditionalPropertiesBoxed
permits
[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), [AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), @@ -230,11 +230,11 @@ permits
[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), [AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedVoid public static final class AdditionalPropertiesBoxedVoid
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -250,7 +250,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## AdditionalPropertiesBoxedBoolean public static final class AdditionalPropertiesBoxedBoolean
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -266,7 +266,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## AdditionalPropertiesBoxedNumber public static final class AdditionalPropertiesBoxedNumber
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -282,7 +282,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## AdditionalPropertiesBoxedString public static final class AdditionalPropertiesBoxedString
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -298,7 +298,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## AdditionalPropertiesBoxedList public static final class AdditionalPropertiesBoxedList
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -314,7 +314,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## AdditionalPropertiesBoxedMap public static final class AdditionalPropertiesBoxedMap
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/Bar.md b/samples/client/petstore/java/docs/components/schemas/Bar.md index 01243da7778..f0ebcb23b0d 100644 --- a/samples/client/petstore/java/docs/components/schemas/Bar.md +++ b/samples/client/petstore/java/docs/components/schemas/Bar.md @@ -4,7 +4,7 @@ public class Bar
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 +- abstract 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 @@ -15,15 +15,15 @@ A class that contains necessary nested | static class | [Bar.Bar1](#bar1)
schema class | ## Bar1Boxed -public static abstract sealed class Bar1Boxed
+public sealed interface Bar1Boxed
permits
[Bar1BoxedString](#bar1boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Bar1BoxedString public static final class Bar1BoxedString
-extends [Bar1Boxed](#bar1boxed) +implements [Bar1Boxed](#bar1boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/BasquePig.md b/samples/client/petstore/java/docs/components/schemas/BasquePig.md index 1a86f2b89be..2e99f34805f 100644 --- a/samples/client/petstore/java/docs/components/schemas/BasquePig.md +++ b/samples/client/petstore/java/docs/components/schemas/BasquePig.md @@ -4,7 +4,7 @@ public class BasquePig
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 +- abstract 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 @@ -24,15 +24,15 @@ A class that contains necessary nested | enum | [BasquePig.StringClassNameEnums](#stringclassnameenums)
String enum | ## BasquePig1Boxed -public static abstract sealed class BasquePig1Boxed
+public sealed interface BasquePig1Boxed
permits
[BasquePig1BoxedMap](#basquepig1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## BasquePig1BoxedMap public static final class BasquePig1BoxedMap
-extends [BasquePig1Boxed](#basquepig1boxed) +implements [BasquePig1Boxed](#basquepig1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -147,15 +147,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## ClassNameBoxed -public static abstract sealed class ClassNameBoxed
+public sealed interface ClassNameBoxed
permits
[ClassNameBoxedString](#classnameboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ClassNameBoxedString public static final class ClassNameBoxedString
-extends [ClassNameBoxed](#classnameboxed) +implements [ClassNameBoxed](#classnameboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/BooleanEnum.md b/samples/client/petstore/java/docs/components/schemas/BooleanEnum.md index 60b731c2335..4cc55a8f3ff 100644 --- a/samples/client/petstore/java/docs/components/schemas/BooleanEnum.md +++ b/samples/client/petstore/java/docs/components/schemas/BooleanEnum.md @@ -4,7 +4,7 @@ public class BooleanEnum
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 +- abstract sealed interfaces which store validated payloads, java version of a sum type - boxed classes which store validated payloads, sealed permits class implementations - enum classes @@ -17,15 +17,15 @@ A class that contains necessary nested | enum | [BooleanEnum.BooleanBooleanEnumEnums](#booleanbooleanenumenums)
boolean enum | ## BooleanEnum1Boxed -public static abstract sealed class BooleanEnum1Boxed
+public sealed interface BooleanEnum1Boxed
permits
[BooleanEnum1BoxedBoolean](#booleanenum1boxedboolean) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## BooleanEnum1BoxedBoolean public static final class BooleanEnum1BoxedBoolean
-extends [BooleanEnum1Boxed](#booleanenum1boxed) +implements [BooleanEnum1Boxed](#booleanenum1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/BooleanSchema.md b/samples/client/petstore/java/docs/components/schemas/BooleanSchema.md index d09b7dfe095..554ffe89b10 100644 --- a/samples/client/petstore/java/docs/components/schemas/BooleanSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/BooleanSchema.md @@ -4,7 +4,7 @@ public class BooleanSchema
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 +- abstract 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 @@ -15,15 +15,15 @@ A class that contains necessary nested | static class | [BooleanSchema.BooleanSchema1](#booleanschema1)
schema class | ## BooleanSchema1Boxed -public static abstract sealed class BooleanSchema1Boxed
+public sealed interface BooleanSchema1Boxed
permits
[BooleanSchema1BoxedBoolean](#booleanschema1boxedboolean) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## BooleanSchema1BoxedBoolean public static final class BooleanSchema1BoxedBoolean
-extends [BooleanSchema1Boxed](#booleanschema1boxed) +implements [BooleanSchema1Boxed](#booleanschema1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/Capitalization.md b/samples/client/petstore/java/docs/components/schemas/Capitalization.md index 5dc2c209fd6..57a2584e4aa 100644 --- a/samples/client/petstore/java/docs/components/schemas/Capitalization.md +++ b/samples/client/petstore/java/docs/components/schemas/Capitalization.md @@ -4,7 +4,7 @@ public class Capitalization
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 +- abstract 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 @@ -37,15 +37,15 @@ A class that contains necessary nested | static class | [Capitalization.SmallCamel](#smallcamel)
schema class | ## Capitalization1Boxed -public static abstract sealed class Capitalization1Boxed
+public sealed interface Capitalization1Boxed
permits
[Capitalization1BoxedMap](#capitalization1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Capitalization1BoxedMap public static final class Capitalization1BoxedMap
-extends [Capitalization1Boxed](#capitalization1boxed) +implements [Capitalization1Boxed](#capitalization1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -163,15 +163,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## ATTNAMEBoxed -public static abstract sealed class ATTNAMEBoxed
+public sealed interface ATTNAMEBoxed
permits
[ATTNAMEBoxedString](#attnameboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ATTNAMEBoxedString public static final class ATTNAMEBoxedString
-extends [ATTNAMEBoxed](#attnameboxed) +implements [ATTNAMEBoxed](#attnameboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -200,15 +200,15 @@ Name of the pet
| validateAndBox | ## SCAETHFlowPointsBoxed -public static abstract sealed class SCAETHFlowPointsBoxed
+public sealed interface SCAETHFlowPointsBoxed
permits
[SCAETHFlowPointsBoxedString](#scaethflowpointsboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## SCAETHFlowPointsBoxedString public static final class SCAETHFlowPointsBoxedString
-extends [SCAETHFlowPointsBoxed](#scaethflowpointsboxed) +implements [SCAETHFlowPointsBoxed](#scaethflowpointsboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -234,15 +234,15 @@ A schema class that validates payloads | validateAndBox | ## CapitalSnakeBoxed -public static abstract sealed class CapitalSnakeBoxed
+public sealed interface CapitalSnakeBoxed
permits
[CapitalSnakeBoxedString](#capitalsnakeboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## CapitalSnakeBoxedString public static final class CapitalSnakeBoxedString
-extends [CapitalSnakeBoxed](#capitalsnakeboxed) +implements [CapitalSnakeBoxed](#capitalsnakeboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -268,15 +268,15 @@ A schema class that validates payloads | validateAndBox | ## SmallSnakeBoxed -public static abstract sealed class SmallSnakeBoxed
+public sealed interface SmallSnakeBoxed
permits
[SmallSnakeBoxedString](#smallsnakeboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## SmallSnakeBoxedString public static final class SmallSnakeBoxedString
-extends [SmallSnakeBoxed](#smallsnakeboxed) +implements [SmallSnakeBoxed](#smallsnakeboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -302,15 +302,15 @@ A schema class that validates payloads | validateAndBox | ## CapitalCamelBoxed -public static abstract sealed class CapitalCamelBoxed
+public sealed interface CapitalCamelBoxed
permits
[CapitalCamelBoxedString](#capitalcamelboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## CapitalCamelBoxedString public static final class CapitalCamelBoxedString
-extends [CapitalCamelBoxed](#capitalcamelboxed) +implements [CapitalCamelBoxed](#capitalcamelboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -336,15 +336,15 @@ A schema class that validates payloads | validateAndBox | ## SmallCamelBoxed -public static abstract sealed class SmallCamelBoxed
+public sealed interface SmallCamelBoxed
permits
[SmallCamelBoxedString](#smallcamelboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## SmallCamelBoxedString public static final class SmallCamelBoxedString
-extends [SmallCamelBoxed](#smallcamelboxed) +implements [SmallCamelBoxed](#smallcamelboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/Cat.md b/samples/client/petstore/java/docs/components/schemas/Cat.md index a0c1cb01942..ba0cf825269 100644 --- a/samples/client/petstore/java/docs/components/schemas/Cat.md +++ b/samples/client/petstore/java/docs/components/schemas/Cat.md @@ -4,7 +4,7 @@ public class Cat
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 +- abstract 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 @@ -30,7 +30,7 @@ A class that contains necessary nested | static class | [Cat.Declawed](#declawed)
schema class | ## Cat1Boxed -public static abstract sealed class Cat1Boxed
+public sealed interface Cat1Boxed
permits
[Cat1BoxedVoid](#cat1boxedvoid), [Cat1BoxedBoolean](#cat1boxedboolean), @@ -39,11 +39,11 @@ permits
[Cat1BoxedList](#cat1boxedlist), [Cat1BoxedMap](#cat1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Cat1BoxedVoid public static final class Cat1BoxedVoid
-extends [Cat1Boxed](#cat1boxed) +implements [Cat1Boxed](#cat1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -59,7 +59,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## Cat1BoxedBoolean public static final class Cat1BoxedBoolean
-extends [Cat1Boxed](#cat1boxed) +implements [Cat1Boxed](#cat1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -75,7 +75,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## Cat1BoxedNumber public static final class Cat1BoxedNumber
-extends [Cat1Boxed](#cat1boxed) +implements [Cat1Boxed](#cat1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -91,7 +91,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## Cat1BoxedString public static final class Cat1BoxedString
-extends [Cat1Boxed](#cat1boxed) +implements [Cat1Boxed](#cat1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -107,7 +107,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## Cat1BoxedList public static final class Cat1BoxedList
-extends [Cat1Boxed](#cat1boxed) +implements [Cat1Boxed](#cat1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -123,7 +123,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## Cat1BoxedMap public static final class Cat1BoxedMap
-extends [Cat1Boxed](#cat1boxed) +implements [Cat1Boxed](#cat1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -169,15 +169,15 @@ A schema class that validates payloads | [Cat1BoxedList](#cat1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## Schema1Boxed -public static abstract sealed class Schema1Boxed
+public sealed interface Schema1Boxed
permits
[Schema1BoxedMap](#schema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema1BoxedMap public static final class Schema1BoxedMap
-extends [Schema1Boxed](#schema1boxed) +implements [Schema1Boxed](#schema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -275,15 +275,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## DeclawedBoxed -public static abstract sealed class DeclawedBoxed
+public sealed interface DeclawedBoxed
permits
[DeclawedBoxedBoolean](#declawedboxedboolean) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## DeclawedBoxedBoolean public static final class DeclawedBoxedBoolean
-extends [DeclawedBoxed](#declawedboxed) +implements [DeclawedBoxed](#declawedboxed) a boxed class to store validated boolean payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/Category.md b/samples/client/petstore/java/docs/components/schemas/Category.md index 39fd3624b0c..7b375468633 100644 --- a/samples/client/petstore/java/docs/components/schemas/Category.md +++ b/samples/client/petstore/java/docs/components/schemas/Category.md @@ -4,7 +4,7 @@ public class Category
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 +- abstract 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 @@ -25,15 +25,15 @@ A class that contains necessary nested | static class | [Category.Id](#id)
schema class | ## Category1Boxed -public static abstract sealed class Category1Boxed
+public sealed interface Category1Boxed
permits
[Category1BoxedMap](#category1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Category1BoxedMap public static final class Category1BoxedMap
-extends [Category1Boxed](#category1boxed) +implements [Category1Boxed](#category1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -154,15 +154,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## NameBoxed -public static abstract sealed class NameBoxed
+public sealed interface NameBoxed
permits
[NameBoxedString](#nameboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## NameBoxedString public static final class NameBoxedString
-extends [NameBoxed](#nameboxed) +implements [NameBoxed](#nameboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -217,15 +217,15 @@ String validatedPayload = Category.Name.validate( | [NameBoxedString](#nameboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## IdBoxed -public static abstract sealed class IdBoxed
+public sealed interface IdBoxed
permits
[IdBoxedNumber](#idboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## IdBoxedNumber public static final class IdBoxedNumber
-extends [IdBoxed](#idboxed) +implements [IdBoxed](#idboxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ChildCat.md b/samples/client/petstore/java/docs/components/schemas/ChildCat.md index d7128ba206c..32e0ac7e843 100644 --- a/samples/client/petstore/java/docs/components/schemas/ChildCat.md +++ b/samples/client/petstore/java/docs/components/schemas/ChildCat.md @@ -4,7 +4,7 @@ public class ChildCat
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 +- abstract 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 @@ -30,7 +30,7 @@ A class that contains necessary nested | static class | [ChildCat.Name](#name)
schema class | ## ChildCat1Boxed -public static abstract sealed class ChildCat1Boxed
+public sealed interface ChildCat1Boxed
permits
[ChildCat1BoxedVoid](#childcat1boxedvoid), [ChildCat1BoxedBoolean](#childcat1boxedboolean), @@ -39,11 +39,11 @@ permits
[ChildCat1BoxedList](#childcat1boxedlist), [ChildCat1BoxedMap](#childcat1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ChildCat1BoxedVoid public static final class ChildCat1BoxedVoid
-extends [ChildCat1Boxed](#childcat1boxed) +implements [ChildCat1Boxed](#childcat1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -59,7 +59,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ChildCat1BoxedBoolean public static final class ChildCat1BoxedBoolean
-extends [ChildCat1Boxed](#childcat1boxed) +implements [ChildCat1Boxed](#childcat1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -75,7 +75,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## ChildCat1BoxedNumber public static final class ChildCat1BoxedNumber
-extends [ChildCat1Boxed](#childcat1boxed) +implements [ChildCat1Boxed](#childcat1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -91,7 +91,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## ChildCat1BoxedString public static final class ChildCat1BoxedString
-extends [ChildCat1Boxed](#childcat1boxed) +implements [ChildCat1Boxed](#childcat1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -107,7 +107,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## ChildCat1BoxedList public static final class ChildCat1BoxedList
-extends [ChildCat1Boxed](#childcat1boxed) +implements [ChildCat1Boxed](#childcat1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -123,7 +123,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## ChildCat1BoxedMap public static final class ChildCat1BoxedMap
-extends [ChildCat1Boxed](#childcat1boxed) +implements [ChildCat1Boxed](#childcat1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -169,15 +169,15 @@ A schema class that validates payloads | [ChildCat1BoxedList](#childcat1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## Schema1Boxed -public static abstract sealed class Schema1Boxed
+public sealed interface Schema1Boxed
permits
[Schema1BoxedMap](#schema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema1BoxedMap public static final class Schema1BoxedMap
-extends [Schema1Boxed](#schema1boxed) +implements [Schema1Boxed](#schema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -275,15 +275,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## NameBoxed -public static abstract sealed class NameBoxed
+public sealed interface NameBoxed
permits
[NameBoxedString](#nameboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## NameBoxedString public static final class NameBoxedString
-extends [NameBoxed](#nameboxed) +implements [NameBoxed](#nameboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ClassModel.md b/samples/client/petstore/java/docs/components/schemas/ClassModel.md index fa27b77b2a8..068d77a785e 100644 --- a/samples/client/petstore/java/docs/components/schemas/ClassModel.md +++ b/samples/client/petstore/java/docs/components/schemas/ClassModel.md @@ -4,7 +4,7 @@ public class ClassModel
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 +- abstract 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 @@ -27,7 +27,7 @@ A class that contains necessary nested | static class | [ClassModel.ClassSchema](#classschema)
schema class | ## ClassModel1Boxed -public static abstract sealed class ClassModel1Boxed
+public sealed interface ClassModel1Boxed
permits
[ClassModel1BoxedVoid](#classmodel1boxedvoid), [ClassModel1BoxedBoolean](#classmodel1boxedboolean), @@ -36,11 +36,11 @@ permits
[ClassModel1BoxedList](#classmodel1boxedlist), [ClassModel1BoxedMap](#classmodel1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ClassModel1BoxedVoid public static final class ClassModel1BoxedVoid
-extends [ClassModel1Boxed](#classmodel1boxed) +implements [ClassModel1Boxed](#classmodel1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -56,7 +56,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ClassModel1BoxedBoolean public static final class ClassModel1BoxedBoolean
-extends [ClassModel1Boxed](#classmodel1boxed) +implements [ClassModel1Boxed](#classmodel1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -72,7 +72,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## ClassModel1BoxedNumber public static final class ClassModel1BoxedNumber
-extends [ClassModel1Boxed](#classmodel1boxed) +implements [ClassModel1Boxed](#classmodel1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -88,7 +88,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## ClassModel1BoxedString public static final class ClassModel1BoxedString
-extends [ClassModel1Boxed](#classmodel1boxed) +implements [ClassModel1Boxed](#classmodel1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -104,7 +104,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## ClassModel1BoxedList public static final class ClassModel1BoxedList
-extends [ClassModel1Boxed](#classmodel1boxed) +implements [ClassModel1Boxed](#classmodel1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -120,7 +120,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## ClassModel1BoxedMap public static final class ClassModel1BoxedMap
-extends [ClassModel1Boxed](#classmodel1boxed) +implements [ClassModel1Boxed](#classmodel1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -208,15 +208,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## ClassSchemaBoxed -public static abstract sealed class ClassSchemaBoxed
+public sealed interface ClassSchemaBoxed
permits
[ClassSchemaBoxedString](#classschemaboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ClassSchemaBoxedString public static final class ClassSchemaBoxedString
-extends [ClassSchemaBoxed](#classschemaboxed) +implements [ClassSchemaBoxed](#classschemaboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/Client.md b/samples/client/petstore/java/docs/components/schemas/Client.md index cab9caa2b23..909aeeb4e62 100644 --- a/samples/client/petstore/java/docs/components/schemas/Client.md +++ b/samples/client/petstore/java/docs/components/schemas/Client.md @@ -4,7 +4,7 @@ public class Client
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 +- abstract 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 @@ -22,15 +22,15 @@ A class that contains necessary nested | static class | [Client.Client2](#client2)
schema class | ## Client1Boxed -public static abstract sealed class Client1Boxed
+public sealed interface Client1Boxed
permits
[Client1BoxedMap](#client1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Client1BoxedMap public static final class Client1BoxedMap
-extends [Client1Boxed](#client1boxed) +implements [Client1Boxed](#client1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -128,15 +128,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## Client2Boxed -public static abstract sealed class Client2Boxed
+public sealed interface Client2Boxed
permits
[Client2BoxedString](#client2boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Client2BoxedString public static final class Client2BoxedString
-extends [Client2Boxed](#client2boxed) +implements [Client2Boxed](#client2boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ComplexQuadrilateral.md b/samples/client/petstore/java/docs/components/schemas/ComplexQuadrilateral.md index 56d65077753..f300b200318 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComplexQuadrilateral.md +++ b/samples/client/petstore/java/docs/components/schemas/ComplexQuadrilateral.md @@ -4,7 +4,7 @@ public class ComplexQuadrilateral
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 +- abstract 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 @@ -32,7 +32,7 @@ A class that contains necessary nested | enum | [ComplexQuadrilateral.StringQuadrilateralTypeEnums](#stringquadrilateraltypeenums)
String enum | ## ComplexQuadrilateral1Boxed -public static abstract sealed class ComplexQuadrilateral1Boxed
+public sealed interface ComplexQuadrilateral1Boxed
permits
[ComplexQuadrilateral1BoxedVoid](#complexquadrilateral1boxedvoid), [ComplexQuadrilateral1BoxedBoolean](#complexquadrilateral1boxedboolean), @@ -41,11 +41,11 @@ permits
[ComplexQuadrilateral1BoxedList](#complexquadrilateral1boxedlist), [ComplexQuadrilateral1BoxedMap](#complexquadrilateral1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ComplexQuadrilateral1BoxedVoid public static final class ComplexQuadrilateral1BoxedVoid
-extends [ComplexQuadrilateral1Boxed](#complexquadrilateral1boxed) +implements [ComplexQuadrilateral1Boxed](#complexquadrilateral1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -61,7 +61,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ComplexQuadrilateral1BoxedBoolean public static final class ComplexQuadrilateral1BoxedBoolean
-extends [ComplexQuadrilateral1Boxed](#complexquadrilateral1boxed) +implements [ComplexQuadrilateral1Boxed](#complexquadrilateral1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -77,7 +77,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## ComplexQuadrilateral1BoxedNumber public static final class ComplexQuadrilateral1BoxedNumber
-extends [ComplexQuadrilateral1Boxed](#complexquadrilateral1boxed) +implements [ComplexQuadrilateral1Boxed](#complexquadrilateral1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -93,7 +93,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## ComplexQuadrilateral1BoxedString public static final class ComplexQuadrilateral1BoxedString
-extends [ComplexQuadrilateral1Boxed](#complexquadrilateral1boxed) +implements [ComplexQuadrilateral1Boxed](#complexquadrilateral1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -109,7 +109,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## ComplexQuadrilateral1BoxedList public static final class ComplexQuadrilateral1BoxedList
-extends [ComplexQuadrilateral1Boxed](#complexquadrilateral1boxed) +implements [ComplexQuadrilateral1Boxed](#complexquadrilateral1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -125,7 +125,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## ComplexQuadrilateral1BoxedMap public static final class ComplexQuadrilateral1BoxedMap
-extends [ComplexQuadrilateral1Boxed](#complexquadrilateral1boxed) +implements [ComplexQuadrilateral1Boxed](#complexquadrilateral1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -171,15 +171,15 @@ A schema class that validates payloads | [ComplexQuadrilateral1BoxedList](#complexquadrilateral1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## Schema1Boxed -public static abstract sealed class Schema1Boxed
+public sealed interface Schema1Boxed
permits
[Schema1BoxedMap](#schema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema1BoxedMap public static final class Schema1BoxedMap
-extends [Schema1Boxed](#schema1boxed) +implements [Schema1Boxed](#schema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -278,15 +278,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## QuadrilateralTypeBoxed -public static abstract sealed class QuadrilateralTypeBoxed
+public sealed interface QuadrilateralTypeBoxed
permits
[QuadrilateralTypeBoxedString](#quadrilateraltypeboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## QuadrilateralTypeBoxedString public static final class QuadrilateralTypeBoxedString
-extends [QuadrilateralTypeBoxed](#quadrilateraltypeboxed) +implements [QuadrilateralTypeBoxed](#quadrilateraltypeboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedAnyOfDifferentTypesNoValidations.md b/samples/client/petstore/java/docs/components/schemas/ComposedAnyOfDifferentTypesNoValidations.md index d9cf3771152..71753a32a2b 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedAnyOfDifferentTypesNoValidations.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedAnyOfDifferentTypesNoValidations.md @@ -4,7 +4,7 @@ public class ComposedAnyOfDifferentTypesNoValidations
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 +- abstract 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 @@ -79,7 +79,7 @@ A class that contains necessary nested | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema0](#schema0)
schema class | ## ComposedAnyOfDifferentTypesNoValidations1Boxed -public static abstract sealed class ComposedAnyOfDifferentTypesNoValidations1Boxed
+public sealed interface ComposedAnyOfDifferentTypesNoValidations1Boxed
permits
[ComposedAnyOfDifferentTypesNoValidations1BoxedVoid](#composedanyofdifferenttypesnovalidations1boxedvoid), [ComposedAnyOfDifferentTypesNoValidations1BoxedBoolean](#composedanyofdifferenttypesnovalidations1boxedboolean), @@ -88,11 +88,11 @@ permits
[ComposedAnyOfDifferentTypesNoValidations1BoxedList](#composedanyofdifferenttypesnovalidations1boxedlist), [ComposedAnyOfDifferentTypesNoValidations1BoxedMap](#composedanyofdifferenttypesnovalidations1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ComposedAnyOfDifferentTypesNoValidations1BoxedVoid public static final class ComposedAnyOfDifferentTypesNoValidations1BoxedVoid
-extends [ComposedAnyOfDifferentTypesNoValidations1Boxed](#composedanyofdifferenttypesnovalidations1boxed) +implements [ComposedAnyOfDifferentTypesNoValidations1Boxed](#composedanyofdifferenttypesnovalidations1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -108,7 +108,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ComposedAnyOfDifferentTypesNoValidations1BoxedBoolean public static final class ComposedAnyOfDifferentTypesNoValidations1BoxedBoolean
-extends [ComposedAnyOfDifferentTypesNoValidations1Boxed](#composedanyofdifferenttypesnovalidations1boxed) +implements [ComposedAnyOfDifferentTypesNoValidations1Boxed](#composedanyofdifferenttypesnovalidations1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -124,7 +124,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## ComposedAnyOfDifferentTypesNoValidations1BoxedNumber public static final class ComposedAnyOfDifferentTypesNoValidations1BoxedNumber
-extends [ComposedAnyOfDifferentTypesNoValidations1Boxed](#composedanyofdifferenttypesnovalidations1boxed) +implements [ComposedAnyOfDifferentTypesNoValidations1Boxed](#composedanyofdifferenttypesnovalidations1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -140,7 +140,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## ComposedAnyOfDifferentTypesNoValidations1BoxedString public static final class ComposedAnyOfDifferentTypesNoValidations1BoxedString
-extends [ComposedAnyOfDifferentTypesNoValidations1Boxed](#composedanyofdifferenttypesnovalidations1boxed) +implements [ComposedAnyOfDifferentTypesNoValidations1Boxed](#composedanyofdifferenttypesnovalidations1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -156,7 +156,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## ComposedAnyOfDifferentTypesNoValidations1BoxedList public static final class ComposedAnyOfDifferentTypesNoValidations1BoxedList
-extends [ComposedAnyOfDifferentTypesNoValidations1Boxed](#composedanyofdifferenttypesnovalidations1boxed) +implements [ComposedAnyOfDifferentTypesNoValidations1Boxed](#composedanyofdifferenttypesnovalidations1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -172,7 +172,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## ComposedAnyOfDifferentTypesNoValidations1BoxedMap public static final class ComposedAnyOfDifferentTypesNoValidations1BoxedMap
-extends [ComposedAnyOfDifferentTypesNoValidations1Boxed](#composedanyofdifferenttypesnovalidations1boxed) +implements [ComposedAnyOfDifferentTypesNoValidations1Boxed](#composedanyofdifferenttypesnovalidations1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -218,15 +218,15 @@ A schema class that validates payloads | [ComposedAnyOfDifferentTypesNoValidations1BoxedList](#composedanyofdifferenttypesnovalidations1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## Schema15Boxed -public static abstract sealed class Schema15Boxed
+public sealed interface Schema15Boxed
permits
[Schema15BoxedNumber](#schema15boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema15BoxedNumber public static final class Schema15BoxedNumber
-extends [Schema15Boxed](#schema15boxed) +implements [Schema15Boxed](#schema15boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -252,15 +252,15 @@ A schema class that validates payloads | validateAndBox | ## Schema14Boxed -public static abstract sealed class Schema14Boxed
+public sealed interface Schema14Boxed
permits
[Schema14BoxedNumber](#schema14boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema14BoxedNumber public static final class Schema14BoxedNumber
-extends [Schema14Boxed](#schema14boxed) +implements [Schema14Boxed](#schema14boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -286,15 +286,15 @@ A schema class that validates payloads | validateAndBox | ## Schema13Boxed -public static abstract sealed class Schema13Boxed
+public sealed interface Schema13Boxed
permits
[Schema13BoxedNumber](#schema13boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema13BoxedNumber public static final class Schema13BoxedNumber
-extends [Schema13Boxed](#schema13boxed) +implements [Schema13Boxed](#schema13boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -320,15 +320,15 @@ A schema class that validates payloads | validateAndBox | ## Schema12Boxed -public static abstract sealed class Schema12Boxed
+public sealed interface Schema12Boxed
permits
[Schema12BoxedNumber](#schema12boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema12BoxedNumber public static final class Schema12BoxedNumber
-extends [Schema12Boxed](#schema12boxed) +implements [Schema12Boxed](#schema12boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -354,15 +354,15 @@ A schema class that validates payloads | validateAndBox | ## Schema11Boxed -public static abstract sealed class Schema11Boxed
+public sealed interface Schema11Boxed
permits
[Schema11BoxedNumber](#schema11boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema11BoxedNumber public static final class Schema11BoxedNumber
-extends [Schema11Boxed](#schema11boxed) +implements [Schema11Boxed](#schema11boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -388,15 +388,15 @@ A schema class that validates payloads | validateAndBox | ## Schema10Boxed -public static abstract sealed class Schema10Boxed
+public sealed interface Schema10Boxed
permits
[Schema10BoxedNumber](#schema10boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema10BoxedNumber public static final class Schema10BoxedNumber
-extends [Schema10Boxed](#schema10boxed) +implements [Schema10Boxed](#schema10boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -422,15 +422,15 @@ A schema class that validates payloads | validateAndBox | ## Schema9Boxed -public static abstract sealed class Schema9Boxed
+public sealed interface Schema9Boxed
permits
[Schema9BoxedList](#schema9boxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema9BoxedList public static final class Schema9BoxedList
-extends [Schema9Boxed](#schema9boxed) +implements [Schema9Boxed](#schema9boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -524,7 +524,7 @@ A class to store validated List payloads | static [Schema9List](#schema9list) | of([List](#schema9listbuilder) arg, SchemaConfiguration configuration) | ## ItemsBoxed -public static abstract sealed class ItemsBoxed
+public sealed interface ItemsBoxed
permits
[ItemsBoxedVoid](#itemsboxedvoid), [ItemsBoxedBoolean](#itemsboxedboolean), @@ -533,11 +533,11 @@ 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) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -553,7 +553,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ItemsBoxedBoolean public static final class ItemsBoxedBoolean
-extends [ItemsBoxed](#itemsboxed) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -569,7 +569,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## ItemsBoxedNumber public static final class ItemsBoxedNumber
-extends [ItemsBoxed](#itemsboxed) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -585,7 +585,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## ItemsBoxedString public static final class ItemsBoxedString
-extends [ItemsBoxed](#itemsboxed) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -601,7 +601,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## ItemsBoxedList public static final class ItemsBoxedList
-extends [ItemsBoxed](#itemsboxed) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -617,7 +617,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## ItemsBoxedMap public static final class ItemsBoxedMap
-extends [ItemsBoxed](#itemsboxed) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -643,15 +643,15 @@ A schema class that validates payloads | validateAndBox | ## Schema8Boxed -public static abstract sealed class Schema8Boxed
+public sealed interface Schema8Boxed
permits
[Schema8BoxedVoid](#schema8boxedvoid) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema8BoxedVoid public static final class Schema8BoxedVoid
-extends [Schema8Boxed](#schema8boxed) +implements [Schema8Boxed](#schema8boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -677,15 +677,15 @@ A schema class that validates payloads | validateAndBox | ## Schema7Boxed -public static abstract sealed class Schema7Boxed
+public sealed interface Schema7Boxed
permits
[Schema7BoxedBoolean](#schema7boxedboolean) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema7BoxedBoolean public static final class Schema7BoxedBoolean
-extends [Schema7Boxed](#schema7boxed) +implements [Schema7Boxed](#schema7boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -711,15 +711,15 @@ A schema class that validates payloads | validateAndBox | ## Schema6Boxed -public static abstract sealed class Schema6Boxed
+public sealed interface Schema6Boxed
permits
[Schema6BoxedMap](#schema6boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema6BoxedMap public static final class Schema6BoxedMap
-extends [Schema6Boxed](#schema6boxed) +implements [Schema6Boxed](#schema6boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -745,15 +745,15 @@ A schema class that validates payloads | validateAndBox | ## Schema5Boxed -public static abstract sealed class Schema5Boxed
+public sealed interface Schema5Boxed
permits
[Schema5BoxedString](#schema5boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema5BoxedString public static final class Schema5BoxedString
-extends [Schema5Boxed](#schema5boxed) +implements [Schema5Boxed](#schema5boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -779,15 +779,15 @@ A schema class that validates payloads | validateAndBox | ## Schema4Boxed -public static abstract sealed class Schema4Boxed
+public sealed interface Schema4Boxed
permits
[Schema4BoxedString](#schema4boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema4BoxedString public static final class Schema4BoxedString
-extends [Schema4Boxed](#schema4boxed) +implements [Schema4Boxed](#schema4boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -808,10 +808,10 @@ extends StringJsonSchema.StringJsonSchema1 A schema class that validates payloads ## Schema3Boxed -public static abstract sealed class Schema3Boxed
+public sealed interface Schema3Boxed
permits
-abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema3 public static class Schema3
@@ -820,15 +820,15 @@ extends JsonSchema A schema class that validates payloads ## Schema2Boxed -public static abstract sealed class Schema2Boxed
+public sealed interface Schema2Boxed
permits
[Schema2BoxedString](#schema2boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema2BoxedString public static final class Schema2BoxedString
-extends [Schema2Boxed](#schema2boxed) +implements [Schema2Boxed](#schema2boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -854,15 +854,15 @@ A schema class that validates payloads | validateAndBox | ## Schema1Boxed -public static abstract sealed class Schema1Boxed
+public sealed interface Schema1Boxed
permits
[Schema1BoxedString](#schema1boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema1BoxedString public static final class Schema1BoxedString
-extends [Schema1Boxed](#schema1boxed) +implements [Schema1Boxed](#schema1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -888,15 +888,15 @@ A schema class that validates payloads | validateAndBox | ## Schema0Boxed -public static abstract sealed class Schema0Boxed
+public sealed interface Schema0Boxed
permits
[Schema0BoxedMap](#schema0boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema0BoxedMap public static final class Schema0BoxedMap
-extends [Schema0Boxed](#schema0boxed) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedArray.md b/samples/client/petstore/java/docs/components/schemas/ComposedArray.md index 50bac4de5a3..b484c4b432e 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedArray.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedArray.md @@ -4,7 +4,7 @@ public class ComposedArray
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 +- abstract 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 @@ -27,15 +27,15 @@ A class that contains necessary nested | static class | [ComposedArray.Items](#items)
schema class | ## ComposedArray1Boxed -public static abstract sealed class ComposedArray1Boxed
+public sealed interface ComposedArray1Boxed
permits
[ComposedArray1BoxedList](#composedarray1boxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ComposedArray1BoxedList public static final class ComposedArray1BoxedList
-extends [ComposedArray1Boxed](#composedarray1boxed) +implements [ComposedArray1Boxed](#composedarray1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -129,7 +129,7 @@ A class to store validated List payloads | static [ComposedArrayList](#composedarraylist) | of([List](#composedarraylistbuilder) arg, SchemaConfiguration configuration) | ## ItemsBoxed -public static abstract sealed class ItemsBoxed
+public sealed interface ItemsBoxed
permits
[ItemsBoxedVoid](#itemsboxedvoid), [ItemsBoxedBoolean](#itemsboxedboolean), @@ -138,11 +138,11 @@ 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) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -158,7 +158,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ItemsBoxedBoolean public static final class ItemsBoxedBoolean
-extends [ItemsBoxed](#itemsboxed) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -174,7 +174,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## ItemsBoxedNumber public static final class ItemsBoxedNumber
-extends [ItemsBoxed](#itemsboxed) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -190,7 +190,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## ItemsBoxedString public static final class ItemsBoxedString
-extends [ItemsBoxed](#itemsboxed) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -206,7 +206,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## ItemsBoxedList public static final class ItemsBoxedList
-extends [ItemsBoxed](#itemsboxed) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -222,7 +222,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## ItemsBoxedMap public static final class ItemsBoxedMap
-extends [ItemsBoxed](#itemsboxed) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedBool.md b/samples/client/petstore/java/docs/components/schemas/ComposedBool.md index b163b0b9a3c..27f83914a58 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedBool.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedBool.md @@ -4,7 +4,7 @@ public class ComposedBool
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 +- abstract 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 @@ -23,15 +23,15 @@ A class that contains necessary nested | static class | [ComposedBool.Schema0](#schema0)
schema class | ## ComposedBool1Boxed -public static abstract sealed class ComposedBool1Boxed
+public sealed interface ComposedBool1Boxed
permits
[ComposedBool1BoxedBoolean](#composedbool1boxedboolean) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ComposedBool1BoxedBoolean public static final class ComposedBool1BoxedBoolean
-extends [ComposedBool1Boxed](#composedbool1boxed) +implements [ComposedBool1Boxed](#composedbool1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -86,7 +86,7 @@ boolean validatedPayload = ComposedBool.ComposedBool1.validate( | [ComposedBool1BoxedBoolean](#composedbool1boxedboolean) | validateAndBox(boolean 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), @@ -95,11 +95,11 @@ 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) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -115,7 +115,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## Schema0BoxedBoolean public static final class Schema0BoxedBoolean
-extends [Schema0Boxed](#schema0boxed) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -131,7 +131,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## Schema0BoxedNumber public static final class Schema0BoxedNumber
-extends [Schema0Boxed](#schema0boxed) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -147,7 +147,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## Schema0BoxedString public static final class Schema0BoxedString
-extends [Schema0Boxed](#schema0boxed) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -163,7 +163,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## Schema0BoxedList public static final class Schema0BoxedList
-extends [Schema0Boxed](#schema0boxed) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -179,7 +179,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## Schema0BoxedMap public static final class Schema0BoxedMap
-extends [Schema0Boxed](#schema0boxed) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedNone.md b/samples/client/petstore/java/docs/components/schemas/ComposedNone.md index e9bb0aa3017..a44fce45abc 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedNone.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedNone.md @@ -4,7 +4,7 @@ public class ComposedNone
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 +- abstract 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 @@ -23,15 +23,15 @@ A class that contains necessary nested | static class | [ComposedNone.Schema0](#schema0)
schema class | ## ComposedNone1Boxed -public static abstract sealed class ComposedNone1Boxed
+public sealed interface ComposedNone1Boxed
permits
[ComposedNone1BoxedVoid](#composednone1boxedvoid) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ComposedNone1BoxedVoid public static final class ComposedNone1BoxedVoid
-extends [ComposedNone1Boxed](#composednone1boxed) +implements [ComposedNone1Boxed](#composednone1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -86,7 +86,7 @@ Void validatedPayload = ComposedNone.ComposedNone1.validate( | [ComposedNone1BoxedVoid](#composednone1boxedvoid) | validateAndBox(Void 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), @@ -95,11 +95,11 @@ 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) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -115,7 +115,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## Schema0BoxedBoolean public static final class Schema0BoxedBoolean
-extends [Schema0Boxed](#schema0boxed) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -131,7 +131,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## Schema0BoxedNumber public static final class Schema0BoxedNumber
-extends [Schema0Boxed](#schema0boxed) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -147,7 +147,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## Schema0BoxedString public static final class Schema0BoxedString
-extends [Schema0Boxed](#schema0boxed) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -163,7 +163,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## Schema0BoxedList public static final class Schema0BoxedList
-extends [Schema0Boxed](#schema0boxed) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -179,7 +179,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## Schema0BoxedMap public static final class Schema0BoxedMap
-extends [Schema0Boxed](#schema0boxed) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedNumber.md b/samples/client/petstore/java/docs/components/schemas/ComposedNumber.md index d7ec47925cc..f3b600f91fe 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedNumber.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedNumber.md @@ -4,7 +4,7 @@ public class ComposedNumber
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 +- abstract 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 @@ -23,15 +23,15 @@ A class that contains necessary nested | static class | [ComposedNumber.Schema0](#schema0)
schema class | ## ComposedNumber1Boxed -public static abstract sealed class ComposedNumber1Boxed
+public sealed interface ComposedNumber1Boxed
permits
[ComposedNumber1BoxedNumber](#composednumber1boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ComposedNumber1BoxedNumber public static final class ComposedNumber1BoxedNumber
-extends [ComposedNumber1Boxed](#composednumber1boxed) +implements [ComposedNumber1Boxed](#composednumber1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -86,7 +86,7 @@ int validatedPayload = ComposedNumber.ComposedNumber1.validate( | [ComposedNumber1BoxedNumber](#composednumber1boxednumber) | validateAndBox(Number 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), @@ -95,11 +95,11 @@ 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) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -115,7 +115,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## Schema0BoxedBoolean public static final class Schema0BoxedBoolean
-extends [Schema0Boxed](#schema0boxed) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -131,7 +131,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## Schema0BoxedNumber public static final class Schema0BoxedNumber
-extends [Schema0Boxed](#schema0boxed) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -147,7 +147,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## Schema0BoxedString public static final class Schema0BoxedString
-extends [Schema0Boxed](#schema0boxed) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -163,7 +163,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## Schema0BoxedList public static final class Schema0BoxedList
-extends [Schema0Boxed](#schema0boxed) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -179,7 +179,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## Schema0BoxedMap public static final class Schema0BoxedMap
-extends [Schema0Boxed](#schema0boxed) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedObject.md b/samples/client/petstore/java/docs/components/schemas/ComposedObject.md index 67b2f1c1a8a..74dc2ed36bd 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedObject.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedObject.md @@ -4,7 +4,7 @@ public class ComposedObject
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 +- abstract 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 @@ -23,15 +23,15 @@ A class that contains necessary nested | static class | [ComposedObject.Schema0](#schema0)
schema class | ## ComposedObject1Boxed -public static abstract sealed class ComposedObject1Boxed
+public sealed interface ComposedObject1Boxed
permits
[ComposedObject1BoxedMap](#composedobject1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ComposedObject1BoxedMap public static final class ComposedObject1BoxedMap
-extends [ComposedObject1Boxed](#composedobject1boxed) +implements [ComposedObject1Boxed](#composedobject1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -64,7 +64,7 @@ A schema class that validates payloads | [ComposedObject1BoxedMap](#composedobject1boxedmap) | validateAndBox(Map<?, ?> 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), @@ -73,11 +73,11 @@ 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) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -93,7 +93,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## Schema0BoxedBoolean public static final class Schema0BoxedBoolean
-extends [Schema0Boxed](#schema0boxed) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -109,7 +109,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## Schema0BoxedNumber public static final class Schema0BoxedNumber
-extends [Schema0Boxed](#schema0boxed) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -125,7 +125,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## Schema0BoxedString public static final class Schema0BoxedString
-extends [Schema0Boxed](#schema0boxed) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -141,7 +141,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## Schema0BoxedList public static final class Schema0BoxedList
-extends [Schema0Boxed](#schema0boxed) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -157,7 +157,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## Schema0BoxedMap public static final class Schema0BoxedMap
-extends [Schema0Boxed](#schema0boxed) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedOneOfDifferentTypes.md b/samples/client/petstore/java/docs/components/schemas/ComposedOneOfDifferentTypes.md index 74f7ab26517..fc1ef3a26e7 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedOneOfDifferentTypes.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedOneOfDifferentTypes.md @@ -4,7 +4,7 @@ public class ComposedOneOfDifferentTypes
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 +- abstract 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 @@ -47,7 +47,7 @@ A class that contains necessary nested | static class | [ComposedOneOfDifferentTypes.Schema2](#schema2)
schema class | ## ComposedOneOfDifferentTypes1Boxed -public static abstract sealed class ComposedOneOfDifferentTypes1Boxed
+public sealed interface ComposedOneOfDifferentTypes1Boxed
permits
[ComposedOneOfDifferentTypes1BoxedVoid](#composedoneofdifferenttypes1boxedvoid), [ComposedOneOfDifferentTypes1BoxedBoolean](#composedoneofdifferenttypes1boxedboolean), @@ -56,11 +56,11 @@ permits
[ComposedOneOfDifferentTypes1BoxedList](#composedoneofdifferenttypes1boxedlist), [ComposedOneOfDifferentTypes1BoxedMap](#composedoneofdifferenttypes1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ComposedOneOfDifferentTypes1BoxedVoid public static final class ComposedOneOfDifferentTypes1BoxedVoid
-extends [ComposedOneOfDifferentTypes1Boxed](#composedoneofdifferenttypes1boxed) +implements [ComposedOneOfDifferentTypes1Boxed](#composedoneofdifferenttypes1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -76,7 +76,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ComposedOneOfDifferentTypes1BoxedBoolean public static final class ComposedOneOfDifferentTypes1BoxedBoolean
-extends [ComposedOneOfDifferentTypes1Boxed](#composedoneofdifferenttypes1boxed) +implements [ComposedOneOfDifferentTypes1Boxed](#composedoneofdifferenttypes1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -92,7 +92,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## ComposedOneOfDifferentTypes1BoxedNumber public static final class ComposedOneOfDifferentTypes1BoxedNumber
-extends [ComposedOneOfDifferentTypes1Boxed](#composedoneofdifferenttypes1boxed) +implements [ComposedOneOfDifferentTypes1Boxed](#composedoneofdifferenttypes1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -108,7 +108,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## ComposedOneOfDifferentTypes1BoxedString public static final class ComposedOneOfDifferentTypes1BoxedString
-extends [ComposedOneOfDifferentTypes1Boxed](#composedoneofdifferenttypes1boxed) +implements [ComposedOneOfDifferentTypes1Boxed](#composedoneofdifferenttypes1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -124,7 +124,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## ComposedOneOfDifferentTypes1BoxedList public static final class ComposedOneOfDifferentTypes1BoxedList
-extends [ComposedOneOfDifferentTypes1Boxed](#composedoneofdifferenttypes1boxed) +implements [ComposedOneOfDifferentTypes1Boxed](#composedoneofdifferenttypes1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -140,7 +140,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## ComposedOneOfDifferentTypes1BoxedMap public static final class ComposedOneOfDifferentTypes1BoxedMap
-extends [ComposedOneOfDifferentTypes1Boxed](#composedoneofdifferenttypes1boxed) +implements [ComposedOneOfDifferentTypes1Boxed](#composedoneofdifferenttypes1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -189,15 +189,15 @@ this is a model that allows payloads of type object or number | [ComposedOneOfDifferentTypes1BoxedList](#composedoneofdifferenttypes1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## Schema6Boxed -public static abstract sealed class Schema6Boxed
+public sealed interface Schema6Boxed
permits
[Schema6BoxedString](#schema6boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema6BoxedString public static final class Schema6BoxedString
-extends [Schema6Boxed](#schema6boxed) +implements [Schema6Boxed](#schema6boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -253,15 +253,15 @@ String validatedPayload = ComposedOneOfDifferentTypes.Schema6.validate( | [Schema6BoxedString](#schema6boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## Schema5Boxed -public static abstract sealed class Schema5Boxed
+public sealed interface Schema5Boxed
permits
[Schema5BoxedList](#schema5boxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema5BoxedList public static final class Schema5BoxedList
-extends [Schema5Boxed](#schema5boxed) +implements [Schema5Boxed](#schema5boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -357,7 +357,7 @@ A class to store validated List payloads | static [Schema5List](#schema5list) | of([List](#schema5listbuilder) arg, SchemaConfiguration configuration) | ## ItemsBoxed -public static abstract sealed class ItemsBoxed
+public sealed interface ItemsBoxed
permits
[ItemsBoxedVoid](#itemsboxedvoid), [ItemsBoxedBoolean](#itemsboxedboolean), @@ -366,11 +366,11 @@ 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) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -386,7 +386,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ItemsBoxedBoolean public static final class ItemsBoxedBoolean
-extends [ItemsBoxed](#itemsboxed) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -402,7 +402,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## ItemsBoxedNumber public static final class ItemsBoxedNumber
-extends [ItemsBoxed](#itemsboxed) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -418,7 +418,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## ItemsBoxedString public static final class ItemsBoxedString
-extends [ItemsBoxed](#itemsboxed) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -434,7 +434,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## ItemsBoxedList public static final class ItemsBoxedList
-extends [ItemsBoxed](#itemsboxed) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -450,7 +450,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## ItemsBoxedMap public static final class ItemsBoxedMap
-extends [ItemsBoxed](#itemsboxed) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -476,15 +476,15 @@ A schema class that validates payloads | validateAndBox | ## Schema4Boxed -public static abstract sealed class Schema4Boxed
+public sealed interface Schema4Boxed
permits
[Schema4BoxedMap](#schema4boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema4BoxedMap public static final class Schema4BoxedMap
-extends [Schema4Boxed](#schema4boxed) +implements [Schema4Boxed](#schema4boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -518,15 +518,15 @@ A schema class that validates payloads | [Schema4BoxedMap](#schema4boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## Schema3Boxed -public static abstract sealed class Schema3Boxed
+public sealed interface Schema3Boxed
permits
[Schema3BoxedString](#schema3boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema3BoxedString public static final class Schema3BoxedString
-extends [Schema3Boxed](#schema3boxed) +implements [Schema3Boxed](#schema3boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -552,15 +552,15 @@ A schema class that validates payloads | validateAndBox | ## Schema2Boxed -public static abstract sealed class Schema2Boxed
+public sealed interface Schema2Boxed
permits
[Schema2BoxedVoid](#schema2boxedvoid) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema2BoxedVoid public static final class Schema2BoxedVoid
-extends [Schema2Boxed](#schema2boxed) +implements [Schema2Boxed](#schema2boxed) a boxed class to store validated null payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedString.md b/samples/client/petstore/java/docs/components/schemas/ComposedString.md index 1d1497f2f2c..460d094866c 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedString.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedString.md @@ -4,7 +4,7 @@ public class ComposedString
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 +- abstract 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 @@ -23,15 +23,15 @@ A class that contains necessary nested | static class | [ComposedString.Schema0](#schema0)
schema class | ## ComposedString1Boxed -public static abstract sealed class ComposedString1Boxed
+public sealed interface ComposedString1Boxed
permits
[ComposedString1BoxedString](#composedstring1boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ComposedString1BoxedString public static final class ComposedString1BoxedString
-extends [ComposedString1Boxed](#composedstring1boxed) +implements [ComposedString1Boxed](#composedstring1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -86,7 +86,7 @@ String validatedPayload = ComposedString.ComposedString1.validate( | [ComposedString1BoxedString](#composedstring1boxedstring) | validateAndBox(String 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), @@ -95,11 +95,11 @@ 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) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -115,7 +115,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## Schema0BoxedBoolean public static final class Schema0BoxedBoolean
-extends [Schema0Boxed](#schema0boxed) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -131,7 +131,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## Schema0BoxedNumber public static final class Schema0BoxedNumber
-extends [Schema0Boxed](#schema0boxed) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -147,7 +147,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## Schema0BoxedString public static final class Schema0BoxedString
-extends [Schema0Boxed](#schema0boxed) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -163,7 +163,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## Schema0BoxedList public static final class Schema0BoxedList
-extends [Schema0Boxed](#schema0boxed) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -179,7 +179,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## Schema0BoxedMap public static final class Schema0BoxedMap
-extends [Schema0Boxed](#schema0boxed) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/Currency.md b/samples/client/petstore/java/docs/components/schemas/Currency.md index f1ccaa53717..aa3f00549b4 100644 --- a/samples/client/petstore/java/docs/components/schemas/Currency.md +++ b/samples/client/petstore/java/docs/components/schemas/Currency.md @@ -4,7 +4,7 @@ public class Currency
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 +- abstract sealed interfaces which store validated payloads, java version of a sum type - boxed classes which store validated payloads, sealed permits class implementations - enum classes @@ -17,15 +17,15 @@ A class that contains necessary nested | enum | [Currency.StringCurrencyEnums](#stringcurrencyenums)
String enum | ## Currency1Boxed -public static abstract sealed class Currency1Boxed
+public sealed interface Currency1Boxed
permits
[Currency1BoxedString](#currency1boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Currency1BoxedString public static final class Currency1BoxedString
-extends [Currency1Boxed](#currency1boxed) +implements [Currency1Boxed](#currency1boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/DanishPig.md b/samples/client/petstore/java/docs/components/schemas/DanishPig.md index de9edb04656..c6627185186 100644 --- a/samples/client/petstore/java/docs/components/schemas/DanishPig.md +++ b/samples/client/petstore/java/docs/components/schemas/DanishPig.md @@ -4,7 +4,7 @@ public class DanishPig
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 +- abstract 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 @@ -24,15 +24,15 @@ A class that contains necessary nested | enum | [DanishPig.StringClassNameEnums](#stringclassnameenums)
String enum | ## DanishPig1Boxed -public static abstract sealed class DanishPig1Boxed
+public sealed interface DanishPig1Boxed
permits
[DanishPig1BoxedMap](#danishpig1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## DanishPig1BoxedMap public static final class DanishPig1BoxedMap
-extends [DanishPig1Boxed](#danishpig1boxed) +implements [DanishPig1Boxed](#danishpig1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -147,15 +147,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## ClassNameBoxed -public static abstract sealed class ClassNameBoxed
+public sealed interface ClassNameBoxed
permits
[ClassNameBoxedString](#classnameboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ClassNameBoxedString public static final class ClassNameBoxedString
-extends [ClassNameBoxed](#classnameboxed) +implements [ClassNameBoxed](#classnameboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/DateTimeTest.md b/samples/client/petstore/java/docs/components/schemas/DateTimeTest.md index 0246062becc..6b3c82cdcb5 100644 --- a/samples/client/petstore/java/docs/components/schemas/DateTimeTest.md +++ b/samples/client/petstore/java/docs/components/schemas/DateTimeTest.md @@ -4,7 +4,7 @@ public class DateTimeTest
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 +- abstract 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 @@ -15,15 +15,15 @@ A class that contains necessary nested | static class | [DateTimeTest.DateTimeTest1](#datetimetest1)
schema class | ## DateTimeTest1Boxed -public static abstract sealed class DateTimeTest1Boxed
+public sealed interface DateTimeTest1Boxed
permits
[DateTimeTest1BoxedString](#datetimetest1boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## DateTimeTest1BoxedString public static final class DateTimeTest1BoxedString
-extends [DateTimeTest1Boxed](#datetimetest1boxed) +implements [DateTimeTest1Boxed](#datetimetest1boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/DateTimeWithValidations.md b/samples/client/petstore/java/docs/components/schemas/DateTimeWithValidations.md index 76790e6336c..9a50c96ade3 100644 --- a/samples/client/petstore/java/docs/components/schemas/DateTimeWithValidations.md +++ b/samples/client/petstore/java/docs/components/schemas/DateTimeWithValidations.md @@ -4,7 +4,7 @@ public class DateTimeWithValidations
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 +- abstract 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 @@ -15,15 +15,15 @@ A class that contains necessary nested | static class | [DateTimeWithValidations.DateTimeWithValidations1](#datetimewithvalidations1)
schema class | ## DateTimeWithValidations1Boxed -public static abstract sealed class DateTimeWithValidations1Boxed
+public sealed interface DateTimeWithValidations1Boxed
permits
[DateTimeWithValidations1BoxedString](#datetimewithvalidations1boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## DateTimeWithValidations1BoxedString public static final class DateTimeWithValidations1BoxedString
-extends [DateTimeWithValidations1Boxed](#datetimewithvalidations1boxed) +implements [DateTimeWithValidations1Boxed](#datetimewithvalidations1boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/DateWithValidations.md b/samples/client/petstore/java/docs/components/schemas/DateWithValidations.md index 80924b628cf..28329eab824 100644 --- a/samples/client/petstore/java/docs/components/schemas/DateWithValidations.md +++ b/samples/client/petstore/java/docs/components/schemas/DateWithValidations.md @@ -4,7 +4,7 @@ public class DateWithValidations
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 +- abstract 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 @@ -15,15 +15,15 @@ A class that contains necessary nested | static class | [DateWithValidations.DateWithValidations1](#datewithvalidations1)
schema class | ## DateWithValidations1Boxed -public static abstract sealed class DateWithValidations1Boxed
+public sealed interface DateWithValidations1Boxed
permits
[DateWithValidations1BoxedString](#datewithvalidations1boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## DateWithValidations1BoxedString public static final class DateWithValidations1BoxedString
-extends [DateWithValidations1Boxed](#datewithvalidations1boxed) +implements [DateWithValidations1Boxed](#datewithvalidations1boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/DecimalPayload.md b/samples/client/petstore/java/docs/components/schemas/DecimalPayload.md index 3452c3f6799..c4a1c3e725a 100644 --- a/samples/client/petstore/java/docs/components/schemas/DecimalPayload.md +++ b/samples/client/petstore/java/docs/components/schemas/DecimalPayload.md @@ -4,7 +4,7 @@ public class DecimalPayload
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 +- abstract 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 @@ -15,15 +15,15 @@ A class that contains necessary nested | static class | [DecimalPayload.DecimalPayload1](#decimalpayload1)
schema class | ## DecimalPayload1Boxed -public static abstract sealed class DecimalPayload1Boxed
+public sealed interface DecimalPayload1Boxed
permits
[DecimalPayload1BoxedString](#decimalpayload1boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## DecimalPayload1BoxedString public static final class DecimalPayload1BoxedString
-extends [DecimalPayload1Boxed](#decimalpayload1boxed) +implements [DecimalPayload1Boxed](#decimalpayload1boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/Dog.md b/samples/client/petstore/java/docs/components/schemas/Dog.md index eb2de7eb613..99ecc56499f 100644 --- a/samples/client/petstore/java/docs/components/schemas/Dog.md +++ b/samples/client/petstore/java/docs/components/schemas/Dog.md @@ -4,7 +4,7 @@ public class Dog
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 +- abstract 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 @@ -30,7 +30,7 @@ A class that contains necessary nested | static class | [Dog.Breed](#breed)
schema class | ## Dog1Boxed -public static abstract sealed class Dog1Boxed
+public sealed interface Dog1Boxed
permits
[Dog1BoxedVoid](#dog1boxedvoid), [Dog1BoxedBoolean](#dog1boxedboolean), @@ -39,11 +39,11 @@ permits
[Dog1BoxedList](#dog1boxedlist), [Dog1BoxedMap](#dog1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Dog1BoxedVoid public static final class Dog1BoxedVoid
-extends [Dog1Boxed](#dog1boxed) +implements [Dog1Boxed](#dog1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -59,7 +59,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## Dog1BoxedBoolean public static final class Dog1BoxedBoolean
-extends [Dog1Boxed](#dog1boxed) +implements [Dog1Boxed](#dog1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -75,7 +75,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## Dog1BoxedNumber public static final class Dog1BoxedNumber
-extends [Dog1Boxed](#dog1boxed) +implements [Dog1Boxed](#dog1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -91,7 +91,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## Dog1BoxedString public static final class Dog1BoxedString
-extends [Dog1Boxed](#dog1boxed) +implements [Dog1Boxed](#dog1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -107,7 +107,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## Dog1BoxedList public static final class Dog1BoxedList
-extends [Dog1Boxed](#dog1boxed) +implements [Dog1Boxed](#dog1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -123,7 +123,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## Dog1BoxedMap public static final class Dog1BoxedMap
-extends [Dog1Boxed](#dog1boxed) +implements [Dog1Boxed](#dog1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -169,15 +169,15 @@ A schema class that validates payloads | [Dog1BoxedList](#dog1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## Schema1Boxed -public static abstract sealed class Schema1Boxed
+public sealed interface Schema1Boxed
permits
[Schema1BoxedMap](#schema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema1BoxedMap public static final class Schema1BoxedMap
-extends [Schema1Boxed](#schema1boxed) +implements [Schema1Boxed](#schema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -275,15 +275,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## BreedBoxed -public static abstract sealed class BreedBoxed
+public sealed interface BreedBoxed
permits
[BreedBoxedString](#breedboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## BreedBoxedString public static final class BreedBoxedString
-extends [BreedBoxed](#breedboxed) +implements [BreedBoxed](#breedboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/Drawing.md b/samples/client/petstore/java/docs/components/schemas/Drawing.md index aaf7a3e8018..249f52cc99f 100644 --- a/samples/client/petstore/java/docs/components/schemas/Drawing.md +++ b/samples/client/petstore/java/docs/components/schemas/Drawing.md @@ -4,7 +4,7 @@ public class Drawing
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 +- abstract 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 @@ -26,15 +26,15 @@ A class that contains necessary nested | static class | [Drawing.ShapesList](#shapeslist)
output class for List payloads | ## Drawing1Boxed -public static abstract sealed class Drawing1Boxed
+public sealed interface Drawing1Boxed
permits
[Drawing1BoxedMap](#drawing1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Drawing1BoxedMap public static final class Drawing1BoxedMap
-extends [Drawing1Boxed](#drawing1boxed) +implements [Drawing1Boxed](#drawing1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -165,15 +165,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## ShapesBoxed -public static abstract sealed class ShapesBoxed
+public sealed interface ShapesBoxed
permits
[ShapesBoxedList](#shapesboxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ShapesBoxedList public static final class ShapesBoxedList
-extends [ShapesBoxed](#shapesboxed) +implements [ShapesBoxed](#shapesboxed) a boxed class to store validated List payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/EnumArrays.md b/samples/client/petstore/java/docs/components/schemas/EnumArrays.md index 983376c2f79..517dbc25d3a 100644 --- a/samples/client/petstore/java/docs/components/schemas/EnumArrays.md +++ b/samples/client/petstore/java/docs/components/schemas/EnumArrays.md @@ -4,7 +4,7 @@ public class EnumArrays
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 +- abstract 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 @@ -35,15 +35,15 @@ A class that contains necessary nested | enum | [EnumArrays.StringJustSymbolEnums](#stringjustsymbolenums)
String enum | ## EnumArrays1Boxed -public static abstract sealed class EnumArrays1Boxed
+public sealed interface EnumArrays1Boxed
permits
[EnumArrays1BoxedMap](#enumarrays1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## EnumArrays1BoxedMap public static final class EnumArrays1BoxedMap
-extends [EnumArrays1Boxed](#enumarrays1boxed) +implements [EnumArrays1Boxed](#enumarrays1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -149,15 +149,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## ArrayEnumBoxed -public static abstract sealed class ArrayEnumBoxed
+public sealed interface ArrayEnumBoxed
permits
[ArrayEnumBoxedList](#arrayenumboxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ArrayEnumBoxedList public static final class ArrayEnumBoxedList
-extends [ArrayEnumBoxed](#arrayenumboxed) +implements [ArrayEnumBoxed](#arrayenumboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -246,15 +246,15 @@ A class to store validated List payloads | static [ArrayEnumList](#arrayenumlist) | of([List](#arrayenumlistbuilder) arg, SchemaConfiguration configuration) | ## ItemsBoxed -public static abstract sealed class ItemsBoxed
+public sealed interface ItemsBoxed
permits
[ItemsBoxedString](#itemsboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ItemsBoxedString public static final class ItemsBoxedString
-extends [ItemsBoxed](#itemsboxed) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -322,15 +322,15 @@ A class that stores String enum values | CRAB | value = "crab" | ## JustSymbolBoxed -public static abstract sealed class JustSymbolBoxed
+public sealed interface JustSymbolBoxed
permits
[JustSymbolBoxedString](#justsymbolboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## JustSymbolBoxedString public static final class JustSymbolBoxedString
-extends [JustSymbolBoxed](#justsymbolboxed) +implements [JustSymbolBoxed](#justsymbolboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/EnumClass.md b/samples/client/petstore/java/docs/components/schemas/EnumClass.md index 27c81145102..80f89296710 100644 --- a/samples/client/petstore/java/docs/components/schemas/EnumClass.md +++ b/samples/client/petstore/java/docs/components/schemas/EnumClass.md @@ -4,7 +4,7 @@ public class EnumClass
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 +- abstract sealed interfaces which store validated payloads, java version of a sum type - boxed classes which store validated payloads, sealed permits class implementations - enum classes @@ -17,15 +17,15 @@ A class that contains necessary nested | enum | [EnumClass.StringEnumClassEnums](#stringenumclassenums)
String enum | ## EnumClass1Boxed -public static abstract sealed class EnumClass1Boxed
+public sealed interface EnumClass1Boxed
permits
[EnumClass1BoxedString](#enumclass1boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## EnumClass1BoxedString public static final class EnumClass1BoxedString
-extends [EnumClass1Boxed](#enumclass1boxed) +implements [EnumClass1Boxed](#enumclass1boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/EnumTest.md b/samples/client/petstore/java/docs/components/schemas/EnumTest.md index 4675be9f71a..fead74406e7 100644 --- a/samples/client/petstore/java/docs/components/schemas/EnumTest.md +++ b/samples/client/petstore/java/docs/components/schemas/EnumTest.md @@ -4,7 +4,7 @@ public class EnumTest
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 +- abstract 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 @@ -40,15 +40,15 @@ A class that contains necessary nested | enum | [EnumTest.StringEnumStringEnums](#stringenumstringenums)
String enum | ## EnumTest1Boxed -public static abstract sealed class EnumTest1Boxed
+public sealed interface EnumTest1Boxed
permits
[EnumTest1BoxedMap](#enumtest1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## EnumTest1BoxedMap public static final class EnumTest1BoxedMap
-extends [EnumTest1Boxed](#enumtest1boxed) +implements [EnumTest1Boxed](#enumtest1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -221,15 +221,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## EnumNumberBoxed -public static abstract sealed class EnumNumberBoxed
+public sealed interface EnumNumberBoxed
permits
[EnumNumberBoxedNumber](#enumnumberboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## EnumNumberBoxedNumber public static final class EnumNumberBoxedNumber
-extends [EnumNumberBoxed](#enumnumberboxed) +implements [EnumNumberBoxed](#enumnumberboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -309,15 +309,15 @@ A class that stores Float enum values | NEGATIVE_1_PT_2 | value = -1.2f | ## EnumIntegerBoxed -public static abstract sealed class EnumIntegerBoxed
+public sealed interface EnumIntegerBoxed
permits
[EnumIntegerBoxedNumber](#enumintegerboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## EnumIntegerBoxedNumber public static final class EnumIntegerBoxedNumber
-extends [EnumIntegerBoxed](#enumintegerboxed) +implements [EnumIntegerBoxed](#enumintegerboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -421,15 +421,15 @@ A class that stores Double enum values | NEGATIVE_1 | value = -1.0d | ## EnumStringRequiredBoxed -public static abstract sealed class EnumStringRequiredBoxed
+public sealed interface EnumStringRequiredBoxed
permits
[EnumStringRequiredBoxedString](#enumstringrequiredboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## EnumStringRequiredBoxedString public static final class EnumStringRequiredBoxedString
-extends [EnumStringRequiredBoxed](#enumstringrequiredboxed) +implements [EnumStringRequiredBoxed](#enumstringrequiredboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -498,15 +498,15 @@ A class that stores String enum values | EMPTY | value = "" | ## EnumStringBoxed -public static abstract sealed class EnumStringBoxed
+public sealed interface EnumStringBoxed
permits
[EnumStringBoxedString](#enumstringboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## EnumStringBoxedString public static final class EnumStringBoxedString
-extends [EnumStringBoxed](#enumstringboxed) +implements [EnumStringBoxed](#enumstringboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/EquilateralTriangle.md b/samples/client/petstore/java/docs/components/schemas/EquilateralTriangle.md index 243be1504b0..975245a3136 100644 --- a/samples/client/petstore/java/docs/components/schemas/EquilateralTriangle.md +++ b/samples/client/petstore/java/docs/components/schemas/EquilateralTriangle.md @@ -4,7 +4,7 @@ public class EquilateralTriangle
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 +- abstract 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 @@ -32,7 +32,7 @@ A class that contains necessary nested | enum | [EquilateralTriangle.StringTriangleTypeEnums](#stringtriangletypeenums)
String enum | ## EquilateralTriangle1Boxed -public static abstract sealed class EquilateralTriangle1Boxed
+public sealed interface EquilateralTriangle1Boxed
permits
[EquilateralTriangle1BoxedVoid](#equilateraltriangle1boxedvoid), [EquilateralTriangle1BoxedBoolean](#equilateraltriangle1boxedboolean), @@ -41,11 +41,11 @@ permits
[EquilateralTriangle1BoxedList](#equilateraltriangle1boxedlist), [EquilateralTriangle1BoxedMap](#equilateraltriangle1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## EquilateralTriangle1BoxedVoid public static final class EquilateralTriangle1BoxedVoid
-extends [EquilateralTriangle1Boxed](#equilateraltriangle1boxed) +implements [EquilateralTriangle1Boxed](#equilateraltriangle1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -61,7 +61,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## EquilateralTriangle1BoxedBoolean public static final class EquilateralTriangle1BoxedBoolean
-extends [EquilateralTriangle1Boxed](#equilateraltriangle1boxed) +implements [EquilateralTriangle1Boxed](#equilateraltriangle1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -77,7 +77,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## EquilateralTriangle1BoxedNumber public static final class EquilateralTriangle1BoxedNumber
-extends [EquilateralTriangle1Boxed](#equilateraltriangle1boxed) +implements [EquilateralTriangle1Boxed](#equilateraltriangle1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -93,7 +93,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## EquilateralTriangle1BoxedString public static final class EquilateralTriangle1BoxedString
-extends [EquilateralTriangle1Boxed](#equilateraltriangle1boxed) +implements [EquilateralTriangle1Boxed](#equilateraltriangle1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -109,7 +109,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## EquilateralTriangle1BoxedList public static final class EquilateralTriangle1BoxedList
-extends [EquilateralTriangle1Boxed](#equilateraltriangle1boxed) +implements [EquilateralTriangle1Boxed](#equilateraltriangle1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -125,7 +125,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## EquilateralTriangle1BoxedMap public static final class EquilateralTriangle1BoxedMap
-extends [EquilateralTriangle1Boxed](#equilateraltriangle1boxed) +implements [EquilateralTriangle1Boxed](#equilateraltriangle1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -171,15 +171,15 @@ A schema class that validates payloads | [EquilateralTriangle1BoxedList](#equilateraltriangle1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## Schema1Boxed -public static abstract sealed class Schema1Boxed
+public sealed interface Schema1Boxed
permits
[Schema1BoxedMap](#schema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema1BoxedMap public static final class Schema1BoxedMap
-extends [Schema1Boxed](#schema1boxed) +implements [Schema1Boxed](#schema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -278,15 +278,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## TriangleTypeBoxed -public static abstract sealed class TriangleTypeBoxed
+public sealed interface TriangleTypeBoxed
permits
[TriangleTypeBoxedString](#triangletypeboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## TriangleTypeBoxedString public static final class TriangleTypeBoxedString
-extends [TriangleTypeBoxed](#triangletypeboxed) +implements [TriangleTypeBoxed](#triangletypeboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/File.md b/samples/client/petstore/java/docs/components/schemas/File.md index 56e9bfc5c30..a0b6ec58560 100644 --- a/samples/client/petstore/java/docs/components/schemas/File.md +++ b/samples/client/petstore/java/docs/components/schemas/File.md @@ -4,7 +4,7 @@ public class File
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 +- abstract 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 @@ -22,15 +22,15 @@ A class that contains necessary nested | static class | [File.SourceURI](#sourceuri)
schema class | ## File1Boxed -public static abstract sealed class File1Boxed
+public sealed interface File1Boxed
permits
[File1BoxedMap](#file1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## File1BoxedMap public static final class File1BoxedMap
-extends [File1Boxed](#file1boxed) +implements [File1Boxed](#file1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -131,15 +131,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## SourceURIBoxed -public static abstract sealed class SourceURIBoxed
+public sealed interface SourceURIBoxed
permits
[SourceURIBoxedString](#sourceuriboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## SourceURIBoxedString public static final class SourceURIBoxedString
-extends [SourceURIBoxed](#sourceuriboxed) +implements [SourceURIBoxed](#sourceuriboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/FileSchemaTestClass.md b/samples/client/petstore/java/docs/components/schemas/FileSchemaTestClass.md index 429a58d9729..22cd60e25c3 100644 --- a/samples/client/petstore/java/docs/components/schemas/FileSchemaTestClass.md +++ b/samples/client/petstore/java/docs/components/schemas/FileSchemaTestClass.md @@ -4,7 +4,7 @@ public class FileSchemaTestClass
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 +- abstract 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 @@ -26,15 +26,15 @@ A class that contains necessary nested | static class | [FileSchemaTestClass.FilesList](#fileslist)
output class for List payloads | ## FileSchemaTestClass1Boxed -public static abstract sealed class FileSchemaTestClass1Boxed
+public sealed interface FileSchemaTestClass1Boxed
permits
[FileSchemaTestClass1BoxedMap](#fileschematestclass1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## FileSchemaTestClass1BoxedMap public static final class FileSchemaTestClass1BoxedMap
-extends [FileSchemaTestClass1Boxed](#fileschematestclass1boxed) +implements [FileSchemaTestClass1Boxed](#fileschematestclass1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -136,15 +136,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## FilesBoxed -public static abstract sealed class FilesBoxed
+public sealed interface FilesBoxed
permits
[FilesBoxedList](#filesboxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## FilesBoxedList public static final class FilesBoxedList
-extends [FilesBoxed](#filesboxed) +implements [FilesBoxed](#filesboxed) a boxed class to store validated List payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/Foo.md b/samples/client/petstore/java/docs/components/schemas/Foo.md index 764c64fc88f..e50c32c65ed 100644 --- a/samples/client/petstore/java/docs/components/schemas/Foo.md +++ b/samples/client/petstore/java/docs/components/schemas/Foo.md @@ -4,7 +4,7 @@ public class Foo
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 +- abstract 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 @@ -19,15 +19,15 @@ A class that contains necessary nested | static class | [Foo.FooMap](#foomap)
output class for Map payloads | ## Foo1Boxed -public static abstract sealed class Foo1Boxed
+public sealed interface Foo1Boxed
permits
[Foo1BoxedMap](#foo1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Foo1BoxedMap public static final class Foo1BoxedMap
-extends [Foo1Boxed](#foo1boxed) +implements [Foo1Boxed](#foo1boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/FormatTest.md b/samples/client/petstore/java/docs/components/schemas/FormatTest.md index d865d0b86e2..dd5943cf3f0 100644 --- a/samples/client/petstore/java/docs/components/schemas/FormatTest.md +++ b/samples/client/petstore/java/docs/components/schemas/FormatTest.md @@ -4,7 +4,7 @@ public class FormatTest
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 +- abstract 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 @@ -88,15 +88,15 @@ A class that contains necessary nested | static class | [FormatTest.IntegerSchema](#integerschema)
schema class | ## FormatTest1Boxed -public static abstract sealed class FormatTest1Boxed
+public sealed interface FormatTest1Boxed
permits
[FormatTest1BoxedMap](#formattest1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## FormatTest1BoxedMap public static final class FormatTest1BoxedMap
-extends [FormatTest1Boxed](#formattest1boxed) +implements [FormatTest1Boxed](#formattest1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -569,15 +569,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## NonePropBoxed -public static abstract sealed class NonePropBoxed
+public sealed interface NonePropBoxed
permits
[NonePropBoxedVoid](#nonepropboxedvoid) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## NonePropBoxedVoid public static final class NonePropBoxedVoid
-extends [NonePropBoxed](#nonepropboxed) +implements [NonePropBoxed](#nonepropboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -603,15 +603,15 @@ A schema class that validates payloads | validateAndBox | ## PatternWithDigitsAndDelimiterBoxed -public static abstract sealed class PatternWithDigitsAndDelimiterBoxed
+public sealed interface PatternWithDigitsAndDelimiterBoxed
permits
[PatternWithDigitsAndDelimiterBoxedString](#patternwithdigitsanddelimiterboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## PatternWithDigitsAndDelimiterBoxedString public static final class PatternWithDigitsAndDelimiterBoxedString
-extends [PatternWithDigitsAndDelimiterBoxed](#patternwithdigitsanddelimiterboxed) +implements [PatternWithDigitsAndDelimiterBoxed](#patternwithdigitsanddelimiterboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -669,15 +669,15 @@ String validatedPayload = FormatTest.PatternWithDigitsAndDelimiter.validate( | [PatternWithDigitsAndDelimiterBoxedString](#patternwithdigitsanddelimiterboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## PatternWithDigitsBoxed -public static abstract sealed class PatternWithDigitsBoxed
+public sealed interface PatternWithDigitsBoxed
permits
[PatternWithDigitsBoxedString](#patternwithdigitsboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## PatternWithDigitsBoxedString public static final class PatternWithDigitsBoxedString
-extends [PatternWithDigitsBoxed](#patternwithdigitsboxed) +implements [PatternWithDigitsBoxed](#patternwithdigitsboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -735,15 +735,15 @@ String validatedPayload = FormatTest.PatternWithDigits.validate( | [PatternWithDigitsBoxedString](#patternwithdigitsboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## PasswordBoxed -public static abstract sealed class PasswordBoxed
+public sealed interface PasswordBoxed
permits
[PasswordBoxedString](#passwordboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## PasswordBoxedString public static final class PasswordBoxedString
-extends [PasswordBoxed](#passwordboxed) +implements [PasswordBoxed](#passwordboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -800,15 +800,15 @@ String validatedPayload = FormatTest.Password.validate( | [PasswordBoxedString](#passwordboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## UuidNoExampleBoxed -public static abstract sealed class UuidNoExampleBoxed
+public sealed interface UuidNoExampleBoxed
permits
[UuidNoExampleBoxedString](#uuidnoexampleboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## UuidNoExampleBoxedString public static final class UuidNoExampleBoxedString
-extends [UuidNoExampleBoxed](#uuidnoexampleboxed) +implements [UuidNoExampleBoxed](#uuidnoexampleboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -834,15 +834,15 @@ A schema class that validates payloads | validateAndBox | ## UuidSchemaBoxed -public static abstract sealed class UuidSchemaBoxed
+public sealed interface UuidSchemaBoxed
permits
[UuidSchemaBoxedString](#uuidschemaboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## UuidSchemaBoxedString public static final class UuidSchemaBoxedString
-extends [UuidSchemaBoxed](#uuidschemaboxed) +implements [UuidSchemaBoxed](#uuidschemaboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -868,15 +868,15 @@ A schema class that validates payloads | validateAndBox | ## DateTimeBoxed -public static abstract sealed class DateTimeBoxed
+public sealed interface DateTimeBoxed
permits
[DateTimeBoxedString](#datetimeboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## DateTimeBoxedString public static final class DateTimeBoxedString
-extends [DateTimeBoxed](#datetimeboxed) +implements [DateTimeBoxed](#datetimeboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -902,15 +902,15 @@ A schema class that validates payloads | validateAndBox | ## DateBoxed -public static abstract sealed class DateBoxed
+public sealed interface DateBoxed
permits
[DateBoxedString](#dateboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## DateBoxedString public static final class DateBoxedString
-extends [DateBoxed](#dateboxed) +implements [DateBoxed](#dateboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -936,10 +936,10 @@ A schema class that validates payloads | validateAndBox | ## BinaryBoxed -public static abstract sealed class BinaryBoxed
+public sealed interface BinaryBoxed
permits
-abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Binary public static class Binary
@@ -948,15 +948,15 @@ extends JsonSchema A schema class that validates payloads ## ByteSchemaBoxed -public static abstract sealed class ByteSchemaBoxed
+public sealed interface ByteSchemaBoxed
permits
[ByteSchemaBoxedString](#byteschemaboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ByteSchemaBoxedString public static final class ByteSchemaBoxedString
-extends [ByteSchemaBoxed](#byteschemaboxed) +implements [ByteSchemaBoxed](#byteschemaboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -977,15 +977,15 @@ extends StringJsonSchema.StringJsonSchema1 A schema class that validates payloads ## StringSchemaBoxed -public static abstract sealed class StringSchemaBoxed
+public sealed interface StringSchemaBoxed
permits
[StringSchemaBoxedString](#stringschemaboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## StringSchemaBoxedString public static final class StringSchemaBoxedString
-extends [StringSchemaBoxed](#stringschemaboxed) +implements [StringSchemaBoxed](#stringschemaboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -1040,15 +1040,15 @@ String validatedPayload = FormatTest.StringSchema.validate( | [StringSchemaBoxedString](#stringschemaboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## ArrayWithUniqueItemsBoxed -public static abstract sealed class ArrayWithUniqueItemsBoxed
+public sealed interface ArrayWithUniqueItemsBoxed
permits
[ArrayWithUniqueItemsBoxedList](#arraywithuniqueitemsboxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ArrayWithUniqueItemsBoxedList public static final class ArrayWithUniqueItemsBoxedList
-extends [ArrayWithUniqueItemsBoxed](#arraywithuniqueitemsboxed) +implements [ArrayWithUniqueItemsBoxed](#arraywithuniqueitemsboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -1140,15 +1140,15 @@ A class to store validated List payloads | static [ArrayWithUniqueItemsList](#arraywithuniqueitemslist) | of([List](#arraywithuniqueitemslistbuilder) arg, SchemaConfiguration configuration) | ## ItemsBoxed -public static abstract sealed class ItemsBoxed
+public sealed interface ItemsBoxed
permits
[ItemsBoxedNumber](#itemsboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ItemsBoxedNumber public static final class ItemsBoxedNumber
-extends [ItemsBoxed](#itemsboxed) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -1174,15 +1174,15 @@ A schema class that validates payloads | validateAndBox | ## Float64Boxed -public static abstract sealed class Float64Boxed
+public sealed interface Float64Boxed
permits
[Float64BoxedNumber](#float64boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Float64BoxedNumber public static final class Float64BoxedNumber
-extends [Float64Boxed](#float64boxed) +implements [Float64Boxed](#float64boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -1208,15 +1208,15 @@ A schema class that validates payloads | validateAndBox | ## DoubleSchemaBoxed -public static abstract sealed class DoubleSchemaBoxed
+public sealed interface DoubleSchemaBoxed
permits
[DoubleSchemaBoxedNumber](#doubleschemaboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## DoubleSchemaBoxedNumber public static final class DoubleSchemaBoxedNumber
-extends [DoubleSchemaBoxed](#doubleschemaboxed) +implements [DoubleSchemaBoxed](#doubleschemaboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -1273,15 +1273,15 @@ double validatedPayload = FormatTest.DoubleSchema.validate( | [DoubleSchemaBoxedNumber](#doubleschemaboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## Float32Boxed -public static abstract sealed class Float32Boxed
+public sealed interface Float32Boxed
permits
[Float32BoxedNumber](#float32boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Float32BoxedNumber public static final class Float32BoxedNumber
-extends [Float32Boxed](#float32boxed) +implements [Float32Boxed](#float32boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -1307,15 +1307,15 @@ A schema class that validates payloads | validateAndBox | ## FloatSchemaBoxed -public static abstract sealed class FloatSchemaBoxed
+public sealed interface FloatSchemaBoxed
permits
[FloatSchemaBoxedNumber](#floatschemaboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## FloatSchemaBoxedNumber public static final class FloatSchemaBoxedNumber
-extends [FloatSchemaBoxed](#floatschemaboxed) +implements [FloatSchemaBoxed](#floatschemaboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -1375,15 +1375,15 @@ float validatedPayload = FormatTest.FloatSchema.validate( | [FloatSchemaBoxedNumber](#floatschemaboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## NumberSchemaBoxed -public static abstract sealed class NumberSchemaBoxed
+public sealed interface NumberSchemaBoxed
permits
[NumberSchemaBoxedNumber](#numberschemaboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## NumberSchemaBoxedNumber public static final class NumberSchemaBoxedNumber
-extends [NumberSchemaBoxed](#numberschemaboxed) +implements [NumberSchemaBoxed](#numberschemaboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -1440,15 +1440,15 @@ int validatedPayload = FormatTest.NumberSchema.validate( | [NumberSchemaBoxedNumber](#numberschemaboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## Int64Boxed -public static abstract sealed class Int64Boxed
+public sealed interface Int64Boxed
permits
[Int64BoxedNumber](#int64boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Int64BoxedNumber public static final class Int64BoxedNumber
-extends [Int64Boxed](#int64boxed) +implements [Int64Boxed](#int64boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -1474,15 +1474,15 @@ A schema class that validates payloads | validateAndBox | ## Int32withValidationsBoxed -public static abstract sealed class Int32withValidationsBoxed
+public sealed interface Int32withValidationsBoxed
permits
[Int32withValidationsBoxedNumber](#int32withvalidationsboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Int32withValidationsBoxedNumber public static final class Int32withValidationsBoxedNumber
-extends [Int32withValidationsBoxed](#int32withvalidationsboxed) +implements [Int32withValidationsBoxed](#int32withvalidationsboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -1539,15 +1539,15 @@ int validatedPayload = FormatTest.Int32withValidations.validate( | [Int32withValidationsBoxedNumber](#int32withvalidationsboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## Int32Boxed -public static abstract sealed class Int32Boxed
+public sealed interface Int32Boxed
permits
[Int32BoxedNumber](#int32boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Int32BoxedNumber public static final class Int32BoxedNumber
-extends [Int32Boxed](#int32boxed) +implements [Int32Boxed](#int32boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -1573,15 +1573,15 @@ A schema class that validates payloads | validateAndBox | ## IntegerSchemaBoxed -public static abstract sealed class IntegerSchemaBoxed
+public sealed interface IntegerSchemaBoxed
permits
[IntegerSchemaBoxedNumber](#integerschemaboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## IntegerSchemaBoxedNumber public static final class IntegerSchemaBoxedNumber
-extends [IntegerSchemaBoxed](#integerschemaboxed) +implements [IntegerSchemaBoxed](#integerschemaboxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/FromSchema.md b/samples/client/petstore/java/docs/components/schemas/FromSchema.md index 77b978331d8..66437568e61 100644 --- a/samples/client/petstore/java/docs/components/schemas/FromSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/FromSchema.md @@ -4,7 +4,7 @@ public class FromSchema
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 +- abstract 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 @@ -25,15 +25,15 @@ A class that contains necessary nested | static class | [FromSchema.Data](#data)
schema class | ## FromSchema1Boxed -public static abstract sealed class FromSchema1Boxed
+public sealed interface FromSchema1Boxed
permits
[FromSchema1BoxedMap](#fromschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## FromSchema1BoxedMap public static final class FromSchema1BoxedMap
-extends [FromSchema1Boxed](#fromschema1boxed) +implements [FromSchema1Boxed](#fromschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -138,15 +138,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## IdBoxed -public static abstract sealed class IdBoxed
+public sealed interface IdBoxed
permits
[IdBoxedNumber](#idboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## IdBoxedNumber public static final class IdBoxedNumber
-extends [IdBoxed](#idboxed) +implements [IdBoxed](#idboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -172,15 +172,15 @@ A schema class that validates payloads | validateAndBox | ## DataBoxed -public static abstract sealed class DataBoxed
+public sealed interface DataBoxed
permits
[DataBoxedString](#databoxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## DataBoxedString public static final class DataBoxedString
-extends [DataBoxed](#databoxed) +implements [DataBoxed](#databoxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/Fruit.md b/samples/client/petstore/java/docs/components/schemas/Fruit.md index 31d666a29ce..ccac75a486c 100644 --- a/samples/client/petstore/java/docs/components/schemas/Fruit.md +++ b/samples/client/petstore/java/docs/components/schemas/Fruit.md @@ -4,7 +4,7 @@ public class Fruit
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 +- abstract 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 @@ -27,7 +27,7 @@ A class that contains necessary nested | static class | [Fruit.Color](#color)
schema class | ## Fruit1Boxed -public static abstract sealed class Fruit1Boxed
+public sealed interface Fruit1Boxed
permits
[Fruit1BoxedVoid](#fruit1boxedvoid), [Fruit1BoxedBoolean](#fruit1boxedboolean), @@ -36,11 +36,11 @@ permits
[Fruit1BoxedList](#fruit1boxedlist), [Fruit1BoxedMap](#fruit1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Fruit1BoxedVoid public static final class Fruit1BoxedVoid
-extends [Fruit1Boxed](#fruit1boxed) +implements [Fruit1Boxed](#fruit1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -56,7 +56,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## Fruit1BoxedBoolean public static final class Fruit1BoxedBoolean
-extends [Fruit1Boxed](#fruit1boxed) +implements [Fruit1Boxed](#fruit1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -72,7 +72,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## Fruit1BoxedNumber public static final class Fruit1BoxedNumber
-extends [Fruit1Boxed](#fruit1boxed) +implements [Fruit1Boxed](#fruit1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -88,7 +88,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## Fruit1BoxedString public static final class Fruit1BoxedString
-extends [Fruit1Boxed](#fruit1boxed) +implements [Fruit1Boxed](#fruit1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -104,7 +104,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## Fruit1BoxedList public static final class Fruit1BoxedList
-extends [Fruit1Boxed](#fruit1boxed) +implements [Fruit1Boxed](#fruit1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -120,7 +120,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## Fruit1BoxedMap public static final class Fruit1BoxedMap
-extends [Fruit1Boxed](#fruit1boxed) +implements [Fruit1Boxed](#fruit1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -206,15 +206,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## ColorBoxed -public static abstract sealed class ColorBoxed
+public sealed interface ColorBoxed
permits
[ColorBoxedString](#colorboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ColorBoxedString public static final class ColorBoxedString
-extends [ColorBoxed](#colorboxed) +implements [ColorBoxed](#colorboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/FruitReq.md b/samples/client/petstore/java/docs/components/schemas/FruitReq.md index 2b422ed401f..dbe847c0785 100644 --- a/samples/client/petstore/java/docs/components/schemas/FruitReq.md +++ b/samples/client/petstore/java/docs/components/schemas/FruitReq.md @@ -4,7 +4,7 @@ public class FruitReq
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 +- abstract 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 @@ -23,7 +23,7 @@ A class that contains necessary nested | static class | [FruitReq.Schema0](#schema0)
schema class | ## FruitReq1Boxed -public static abstract sealed class FruitReq1Boxed
+public sealed interface FruitReq1Boxed
permits
[FruitReq1BoxedVoid](#fruitreq1boxedvoid), [FruitReq1BoxedBoolean](#fruitreq1boxedboolean), @@ -32,11 +32,11 @@ permits
[FruitReq1BoxedList](#fruitreq1boxedlist), [FruitReq1BoxedMap](#fruitreq1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## FruitReq1BoxedVoid public static final class FruitReq1BoxedVoid
-extends [FruitReq1Boxed](#fruitreq1boxed) +implements [FruitReq1Boxed](#fruitreq1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -52,7 +52,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## FruitReq1BoxedBoolean public static final class FruitReq1BoxedBoolean
-extends [FruitReq1Boxed](#fruitreq1boxed) +implements [FruitReq1Boxed](#fruitreq1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -68,7 +68,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## FruitReq1BoxedNumber public static final class FruitReq1BoxedNumber
-extends [FruitReq1Boxed](#fruitreq1boxed) +implements [FruitReq1Boxed](#fruitreq1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -84,7 +84,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## FruitReq1BoxedString public static final class FruitReq1BoxedString
-extends [FruitReq1Boxed](#fruitreq1boxed) +implements [FruitReq1Boxed](#fruitreq1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -100,7 +100,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## FruitReq1BoxedList public static final class FruitReq1BoxedList
-extends [FruitReq1Boxed](#fruitreq1boxed) +implements [FruitReq1Boxed](#fruitreq1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -116,7 +116,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## FruitReq1BoxedMap public static final class FruitReq1BoxedMap
-extends [FruitReq1Boxed](#fruitreq1boxed) +implements [FruitReq1Boxed](#fruitreq1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -162,15 +162,15 @@ A schema class that validates payloads | [FruitReq1BoxedList](#fruitreq1boxedlist) | validateAndBox(List 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) -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) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated null payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/GmFruit.md b/samples/client/petstore/java/docs/components/schemas/GmFruit.md index 5c2f8daf0f5..7867b8d2e02 100644 --- a/samples/client/petstore/java/docs/components/schemas/GmFruit.md +++ b/samples/client/petstore/java/docs/components/schemas/GmFruit.md @@ -4,7 +4,7 @@ public class GmFruit
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 +- abstract 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 @@ -27,7 +27,7 @@ A class that contains necessary nested | static class | [GmFruit.Color](#color)
schema class | ## GmFruit1Boxed -public static abstract sealed class GmFruit1Boxed
+public sealed interface GmFruit1Boxed
permits
[GmFruit1BoxedVoid](#gmfruit1boxedvoid), [GmFruit1BoxedBoolean](#gmfruit1boxedboolean), @@ -36,11 +36,11 @@ permits
[GmFruit1BoxedList](#gmfruit1boxedlist), [GmFruit1BoxedMap](#gmfruit1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## GmFruit1BoxedVoid public static final class GmFruit1BoxedVoid
-extends [GmFruit1Boxed](#gmfruit1boxed) +implements [GmFruit1Boxed](#gmfruit1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -56,7 +56,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## GmFruit1BoxedBoolean public static final class GmFruit1BoxedBoolean
-extends [GmFruit1Boxed](#gmfruit1boxed) +implements [GmFruit1Boxed](#gmfruit1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -72,7 +72,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## GmFruit1BoxedNumber public static final class GmFruit1BoxedNumber
-extends [GmFruit1Boxed](#gmfruit1boxed) +implements [GmFruit1Boxed](#gmfruit1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -88,7 +88,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## GmFruit1BoxedString public static final class GmFruit1BoxedString
-extends [GmFruit1Boxed](#gmfruit1boxed) +implements [GmFruit1Boxed](#gmfruit1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -104,7 +104,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## GmFruit1BoxedList public static final class GmFruit1BoxedList
-extends [GmFruit1Boxed](#gmfruit1boxed) +implements [GmFruit1Boxed](#gmfruit1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -120,7 +120,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## GmFruit1BoxedMap public static final class GmFruit1BoxedMap
-extends [GmFruit1Boxed](#gmfruit1boxed) +implements [GmFruit1Boxed](#gmfruit1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -206,15 +206,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## ColorBoxed -public static abstract sealed class ColorBoxed
+public sealed interface ColorBoxed
permits
[ColorBoxedString](#colorboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ColorBoxedString public static final class ColorBoxedString
-extends [ColorBoxed](#colorboxed) +implements [ColorBoxed](#colorboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/GrandparentAnimal.md b/samples/client/petstore/java/docs/components/schemas/GrandparentAnimal.md index 0f1b2669d4b..ed33fc8aa5c 100644 --- a/samples/client/petstore/java/docs/components/schemas/GrandparentAnimal.md +++ b/samples/client/petstore/java/docs/components/schemas/GrandparentAnimal.md @@ -4,7 +4,7 @@ public class GrandparentAnimal
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 +- abstract 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 @@ -22,15 +22,15 @@ A class that contains necessary nested | static class | [GrandparentAnimal.PetType](#pettype)
schema class | ## GrandparentAnimal1Boxed -public static abstract sealed class GrandparentAnimal1Boxed
+public sealed interface GrandparentAnimal1Boxed
permits
[GrandparentAnimal1BoxedMap](#grandparentanimal1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## GrandparentAnimal1BoxedMap public static final class GrandparentAnimal1BoxedMap
-extends [GrandparentAnimal1Boxed](#grandparentanimal1boxed) +implements [GrandparentAnimal1Boxed](#grandparentanimal1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -144,15 +144,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## PetTypeBoxed -public static abstract sealed class PetTypeBoxed
+public sealed interface PetTypeBoxed
permits
[PetTypeBoxedString](#pettypeboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## PetTypeBoxedString public static final class PetTypeBoxedString
-extends [PetTypeBoxed](#pettypeboxed) +implements [PetTypeBoxed](#pettypeboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/HasOnlyReadOnly.md b/samples/client/petstore/java/docs/components/schemas/HasOnlyReadOnly.md index 28264de49f3..122f17e18af 100644 --- a/samples/client/petstore/java/docs/components/schemas/HasOnlyReadOnly.md +++ b/samples/client/petstore/java/docs/components/schemas/HasOnlyReadOnly.md @@ -4,7 +4,7 @@ public class HasOnlyReadOnly
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 +- abstract 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 @@ -25,15 +25,15 @@ A class that contains necessary nested | static class | [HasOnlyReadOnly.Bar](#bar)
schema class | ## HasOnlyReadOnly1Boxed -public static abstract sealed class HasOnlyReadOnly1Boxed
+public sealed interface HasOnlyReadOnly1Boxed
permits
[HasOnlyReadOnly1BoxedMap](#hasonlyreadonly1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## HasOnlyReadOnly1BoxedMap public static final class HasOnlyReadOnly1BoxedMap
-extends [HasOnlyReadOnly1Boxed](#hasonlyreadonly1boxed) +implements [HasOnlyReadOnly1Boxed](#hasonlyreadonly1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -135,15 +135,15 @@ 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) +implements [FooBoxed](#fooboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -169,15 +169,15 @@ A schema class that validates payloads | validateAndBox | ## 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) +implements [BarBoxed](#barboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/HealthCheckResult.md b/samples/client/petstore/java/docs/components/schemas/HealthCheckResult.md index e670d2ec230..15c1049b058 100644 --- a/samples/client/petstore/java/docs/components/schemas/HealthCheckResult.md +++ b/samples/client/petstore/java/docs/components/schemas/HealthCheckResult.md @@ -4,7 +4,7 @@ public class HealthCheckResult
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 +- abstract 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 @@ -23,15 +23,15 @@ A class that contains necessary nested | static class | [HealthCheckResult.NullableMessage](#nullablemessage)
schema class | ## HealthCheckResult1Boxed -public static abstract sealed class HealthCheckResult1Boxed
+public sealed interface HealthCheckResult1Boxed
permits
[HealthCheckResult1BoxedMap](#healthcheckresult1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## HealthCheckResult1BoxedMap public static final class HealthCheckResult1BoxedMap
-extends [HealthCheckResult1Boxed](#healthcheckresult1boxed) +implements [HealthCheckResult1Boxed](#healthcheckresult1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -133,16 +133,16 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## NullableMessageBoxed -public static abstract sealed class NullableMessageBoxed
+public sealed interface NullableMessageBoxed
permits
[NullableMessageBoxedVoid](#nullablemessageboxedvoid), [NullableMessageBoxedString](#nullablemessageboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## NullableMessageBoxedVoid public static final class NullableMessageBoxedVoid
-extends [NullableMessageBoxed](#nullablemessageboxed) +implements [NullableMessageBoxed](#nullablemessageboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -158,7 +158,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## NullableMessageBoxedString public static final class NullableMessageBoxedString
-extends [NullableMessageBoxed](#nullablemessageboxed) +implements [NullableMessageBoxed](#nullablemessageboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/IntegerEnum.md b/samples/client/petstore/java/docs/components/schemas/IntegerEnum.md index e77221ae961..c7c2a302932 100644 --- a/samples/client/petstore/java/docs/components/schemas/IntegerEnum.md +++ b/samples/client/petstore/java/docs/components/schemas/IntegerEnum.md @@ -4,7 +4,7 @@ public class IntegerEnum
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 +- abstract sealed interfaces which store validated payloads, java version of a sum type - boxed classes which store validated payloads, sealed permits class implementations - enum classes @@ -20,15 +20,15 @@ A class that contains necessary nested | enum | [IntegerEnum.DoubleIntegerEnumEnums](#doubleintegerenumenums)
Double enum | ## IntegerEnum1Boxed -public static abstract sealed class IntegerEnum1Boxed
+public sealed interface IntegerEnum1Boxed
permits
[IntegerEnum1BoxedNumber](#integerenum1boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## IntegerEnum1BoxedNumber public static final class IntegerEnum1BoxedNumber
-extends [IntegerEnum1Boxed](#integerenum1boxed) +implements [IntegerEnum1Boxed](#integerenum1boxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/IntegerEnumBig.md b/samples/client/petstore/java/docs/components/schemas/IntegerEnumBig.md index fd20c6306fa..725b5c451a4 100644 --- a/samples/client/petstore/java/docs/components/schemas/IntegerEnumBig.md +++ b/samples/client/petstore/java/docs/components/schemas/IntegerEnumBig.md @@ -4,7 +4,7 @@ public class IntegerEnumBig
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 +- abstract sealed interfaces which store validated payloads, java version of a sum type - boxed classes which store validated payloads, sealed permits class implementations - enum classes @@ -20,15 +20,15 @@ A class that contains necessary nested | enum | [IntegerEnumBig.DoubleIntegerEnumBigEnums](#doubleintegerenumbigenums)
Double enum | ## IntegerEnumBig1Boxed -public static abstract sealed class IntegerEnumBig1Boxed
+public sealed interface IntegerEnumBig1Boxed
permits
[IntegerEnumBig1BoxedNumber](#integerenumbig1boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## IntegerEnumBig1BoxedNumber public static final class IntegerEnumBig1BoxedNumber
-extends [IntegerEnumBig1Boxed](#integerenumbig1boxed) +implements [IntegerEnumBig1Boxed](#integerenumbig1boxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/IntegerEnumOneValue.md b/samples/client/petstore/java/docs/components/schemas/IntegerEnumOneValue.md index 5a5b80bd0bc..4057ac2cbab 100644 --- a/samples/client/petstore/java/docs/components/schemas/IntegerEnumOneValue.md +++ b/samples/client/petstore/java/docs/components/schemas/IntegerEnumOneValue.md @@ -4,7 +4,7 @@ public class IntegerEnumOneValue
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 +- abstract sealed interfaces which store validated payloads, java version of a sum type - boxed classes which store validated payloads, sealed permits class implementations - enum classes @@ -20,15 +20,15 @@ A class that contains necessary nested | enum | [IntegerEnumOneValue.DoubleIntegerEnumOneValueEnums](#doubleintegerenumonevalueenums)
Double enum | ## IntegerEnumOneValue1Boxed -public static abstract sealed class IntegerEnumOneValue1Boxed
+public sealed interface IntegerEnumOneValue1Boxed
permits
[IntegerEnumOneValue1BoxedNumber](#integerenumonevalue1boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## IntegerEnumOneValue1BoxedNumber public static final class IntegerEnumOneValue1BoxedNumber
-extends [IntegerEnumOneValue1Boxed](#integerenumonevalue1boxed) +implements [IntegerEnumOneValue1Boxed](#integerenumonevalue1boxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/IntegerEnumWithDefaultValue.md b/samples/client/petstore/java/docs/components/schemas/IntegerEnumWithDefaultValue.md index c6082581724..0c9b4740a9f 100644 --- a/samples/client/petstore/java/docs/components/schemas/IntegerEnumWithDefaultValue.md +++ b/samples/client/petstore/java/docs/components/schemas/IntegerEnumWithDefaultValue.md @@ -4,7 +4,7 @@ public class IntegerEnumWithDefaultValue
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 +- abstract sealed interfaces which store validated payloads, java version of a sum type - boxed classes which store validated payloads, sealed permits class implementations - enum classes @@ -20,15 +20,15 @@ A class that contains necessary nested | enum | [IntegerEnumWithDefaultValue.DoubleIntegerEnumWithDefaultValueEnums](#doubleintegerenumwithdefaultvalueenums)
Double enum | ## IntegerEnumWithDefaultValue1Boxed -public static abstract sealed class IntegerEnumWithDefaultValue1Boxed
+public sealed interface IntegerEnumWithDefaultValue1Boxed
permits
[IntegerEnumWithDefaultValue1BoxedNumber](#integerenumwithdefaultvalue1boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## IntegerEnumWithDefaultValue1BoxedNumber public static final class IntegerEnumWithDefaultValue1BoxedNumber
-extends [IntegerEnumWithDefaultValue1Boxed](#integerenumwithdefaultvalue1boxed) +implements [IntegerEnumWithDefaultValue1Boxed](#integerenumwithdefaultvalue1boxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/IntegerMax10.md b/samples/client/petstore/java/docs/components/schemas/IntegerMax10.md index a6224f3591a..4d014aeb728 100644 --- a/samples/client/petstore/java/docs/components/schemas/IntegerMax10.md +++ b/samples/client/petstore/java/docs/components/schemas/IntegerMax10.md @@ -4,7 +4,7 @@ public class IntegerMax10
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 +- abstract 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 @@ -15,15 +15,15 @@ A class that contains necessary nested | static class | [IntegerMax10.IntegerMax101](#integermax101)
schema class | ## IntegerMax101Boxed -public static abstract sealed class IntegerMax101Boxed
+public sealed interface IntegerMax101Boxed
permits
[IntegerMax101BoxedNumber](#integermax101boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## IntegerMax101BoxedNumber public static final class IntegerMax101BoxedNumber
-extends [IntegerMax101Boxed](#integermax101boxed) +implements [IntegerMax101Boxed](#integermax101boxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/IntegerMin15.md b/samples/client/petstore/java/docs/components/schemas/IntegerMin15.md index b2101538e87..dd07adcbfc6 100644 --- a/samples/client/petstore/java/docs/components/schemas/IntegerMin15.md +++ b/samples/client/petstore/java/docs/components/schemas/IntegerMin15.md @@ -4,7 +4,7 @@ public class IntegerMin15
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 +- abstract 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 @@ -15,15 +15,15 @@ A class that contains necessary nested | static class | [IntegerMin15.IntegerMin151](#integermin151)
schema class | ## IntegerMin151Boxed -public static abstract sealed class IntegerMin151Boxed
+public sealed interface IntegerMin151Boxed
permits
[IntegerMin151BoxedNumber](#integermin151boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## IntegerMin151BoxedNumber public static final class IntegerMin151BoxedNumber
-extends [IntegerMin151Boxed](#integermin151boxed) +implements [IntegerMin151Boxed](#integermin151boxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/IsoscelesTriangle.md b/samples/client/petstore/java/docs/components/schemas/IsoscelesTriangle.md index d8810eb1ccc..4ff32643694 100644 --- a/samples/client/petstore/java/docs/components/schemas/IsoscelesTriangle.md +++ b/samples/client/petstore/java/docs/components/schemas/IsoscelesTriangle.md @@ -4,7 +4,7 @@ public class IsoscelesTriangle
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 +- abstract 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 @@ -32,7 +32,7 @@ A class that contains necessary nested | enum | [IsoscelesTriangle.StringTriangleTypeEnums](#stringtriangletypeenums)
String enum | ## IsoscelesTriangle1Boxed -public static abstract sealed class IsoscelesTriangle1Boxed
+public sealed interface IsoscelesTriangle1Boxed
permits
[IsoscelesTriangle1BoxedVoid](#isoscelestriangle1boxedvoid), [IsoscelesTriangle1BoxedBoolean](#isoscelestriangle1boxedboolean), @@ -41,11 +41,11 @@ permits
[IsoscelesTriangle1BoxedList](#isoscelestriangle1boxedlist), [IsoscelesTriangle1BoxedMap](#isoscelestriangle1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## IsoscelesTriangle1BoxedVoid public static final class IsoscelesTriangle1BoxedVoid
-extends [IsoscelesTriangle1Boxed](#isoscelestriangle1boxed) +implements [IsoscelesTriangle1Boxed](#isoscelestriangle1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -61,7 +61,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## IsoscelesTriangle1BoxedBoolean public static final class IsoscelesTriangle1BoxedBoolean
-extends [IsoscelesTriangle1Boxed](#isoscelestriangle1boxed) +implements [IsoscelesTriangle1Boxed](#isoscelestriangle1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -77,7 +77,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## IsoscelesTriangle1BoxedNumber public static final class IsoscelesTriangle1BoxedNumber
-extends [IsoscelesTriangle1Boxed](#isoscelestriangle1boxed) +implements [IsoscelesTriangle1Boxed](#isoscelestriangle1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -93,7 +93,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## IsoscelesTriangle1BoxedString public static final class IsoscelesTriangle1BoxedString
-extends [IsoscelesTriangle1Boxed](#isoscelestriangle1boxed) +implements [IsoscelesTriangle1Boxed](#isoscelestriangle1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -109,7 +109,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## IsoscelesTriangle1BoxedList public static final class IsoscelesTriangle1BoxedList
-extends [IsoscelesTriangle1Boxed](#isoscelestriangle1boxed) +implements [IsoscelesTriangle1Boxed](#isoscelestriangle1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -125,7 +125,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## IsoscelesTriangle1BoxedMap public static final class IsoscelesTriangle1BoxedMap
-extends [IsoscelesTriangle1Boxed](#isoscelestriangle1boxed) +implements [IsoscelesTriangle1Boxed](#isoscelestriangle1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -171,15 +171,15 @@ A schema class that validates payloads | [IsoscelesTriangle1BoxedList](#isoscelestriangle1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## Schema1Boxed -public static abstract sealed class Schema1Boxed
+public sealed interface Schema1Boxed
permits
[Schema1BoxedMap](#schema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema1BoxedMap public static final class Schema1BoxedMap
-extends [Schema1Boxed](#schema1boxed) +implements [Schema1Boxed](#schema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -278,15 +278,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## TriangleTypeBoxed -public static abstract sealed class TriangleTypeBoxed
+public sealed interface TriangleTypeBoxed
permits
[TriangleTypeBoxedString](#triangletypeboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## TriangleTypeBoxedString public static final class TriangleTypeBoxedString
-extends [TriangleTypeBoxed](#triangletypeboxed) +implements [TriangleTypeBoxed](#triangletypeboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/Items.md b/samples/client/petstore/java/docs/components/schemas/Items.md index 48718978f46..1f1e5f64f07 100644 --- a/samples/client/petstore/java/docs/components/schemas/Items.md +++ b/samples/client/petstore/java/docs/components/schemas/Items.md @@ -4,7 +4,7 @@ public class Items
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 +- abstract 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 @@ -22,15 +22,15 @@ A class that contains necessary nested | static class | [Items.Items2](#items2)
schema class | ## 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) +implements [Items1Boxed](#items1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -119,15 +119,15 @@ A class to store validated List payloads | static [ItemsList](#itemslist) | of([List>](#itemslistbuilder) arg, SchemaConfiguration configuration) | ## Items2Boxed -public static abstract sealed class Items2Boxed
+public sealed interface Items2Boxed
permits
[Items2BoxedMap](#items2boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Items2BoxedMap public static final class Items2BoxedMap
-extends [Items2Boxed](#items2boxed) +implements [Items2Boxed](#items2boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequest.md b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequest.md index a62187a6bd0..3cb0fa6978d 100644 --- a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequest.md +++ b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequest.md @@ -4,7 +4,7 @@ public class JSONPatchRequest
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 +- abstract 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 @@ -27,15 +27,15 @@ A class that contains necessary nested | static class | [JSONPatchRequest.Items](#items)
schema class | ## JSONPatchRequest1Boxed -public static abstract sealed class JSONPatchRequest1Boxed
+public sealed interface JSONPatchRequest1Boxed
permits
[JSONPatchRequest1BoxedList](#jsonpatchrequest1boxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## JSONPatchRequest1BoxedList public static final class JSONPatchRequest1BoxedList
-extends [JSONPatchRequest1Boxed](#jsonpatchrequest1boxed) +implements [JSONPatchRequest1Boxed](#jsonpatchrequest1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -129,7 +129,7 @@ A class to store validated List payloads | static [JSONPatchRequestList](#jsonpatchrequestlist) | of([List](#jsonpatchrequestlistbuilder) arg, SchemaConfiguration configuration) | ## ItemsBoxed -public static abstract sealed class ItemsBoxed
+public sealed interface ItemsBoxed
permits
[ItemsBoxedVoid](#itemsboxedvoid), [ItemsBoxedBoolean](#itemsboxedboolean), @@ -138,11 +138,11 @@ 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) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -158,7 +158,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ItemsBoxedBoolean public static final class ItemsBoxedBoolean
-extends [ItemsBoxed](#itemsboxed) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -174,7 +174,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## ItemsBoxedNumber public static final class ItemsBoxedNumber
-extends [ItemsBoxed](#itemsboxed) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -190,7 +190,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## ItemsBoxedString public static final class ItemsBoxedString
-extends [ItemsBoxed](#itemsboxed) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -206,7 +206,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## ItemsBoxedList public static final class ItemsBoxedList
-extends [ItemsBoxed](#itemsboxed) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -222,7 +222,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## ItemsBoxedMap public static final class ItemsBoxedMap
-extends [ItemsBoxed](#itemsboxed) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestAddReplaceTest.md b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestAddReplaceTest.md index 6d2f692e2bb..5a0498543a6 100644 --- a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestAddReplaceTest.md +++ b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestAddReplaceTest.md @@ -4,7 +4,7 @@ public class JSONPatchRequestAddReplaceTest
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 +- abstract 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 @@ -43,15 +43,15 @@ A class that contains necessary nested | static class | [JSONPatchRequestAddReplaceTest.AdditionalProperties](#additionalproperties)
schema class | ## JSONPatchRequestAddReplaceTest1Boxed -public static abstract sealed class JSONPatchRequestAddReplaceTest1Boxed
+public sealed interface JSONPatchRequestAddReplaceTest1Boxed
permits
[JSONPatchRequestAddReplaceTest1BoxedMap](#jsonpatchrequestaddreplacetest1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## JSONPatchRequestAddReplaceTest1BoxedMap public static final class JSONPatchRequestAddReplaceTest1BoxedMap
-extends [JSONPatchRequestAddReplaceTest1Boxed](#jsonpatchrequestaddreplacetest1boxed) +implements [JSONPatchRequestAddReplaceTest1Boxed](#jsonpatchrequestaddreplacetest1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -297,15 +297,15 @@ A class to store validated Map payloads | @Nullable Object | value()
| ## OpBoxed -public static abstract sealed class OpBoxed
+public sealed interface OpBoxed
permits
[OpBoxedString](#opboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## OpBoxedString public static final class OpBoxedString
-extends [OpBoxed](#opboxed) +implements [OpBoxed](#opboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -377,7 +377,7 @@ A class that stores String enum values | TEST | value = "test" | ## ValueBoxed -public static abstract sealed class ValueBoxed
+public sealed interface ValueBoxed
permits
[ValueBoxedVoid](#valueboxedvoid), [ValueBoxedBoolean](#valueboxedboolean), @@ -386,11 +386,11 @@ permits
[ValueBoxedList](#valueboxedlist), [ValueBoxedMap](#valueboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ValueBoxedVoid public static final class ValueBoxedVoid
-extends [ValueBoxed](#valueboxed) +implements [ValueBoxed](#valueboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -406,7 +406,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ValueBoxedBoolean public static final class ValueBoxedBoolean
-extends [ValueBoxed](#valueboxed) +implements [ValueBoxed](#valueboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -422,7 +422,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## ValueBoxedNumber public static final class ValueBoxedNumber
-extends [ValueBoxed](#valueboxed) +implements [ValueBoxed](#valueboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -438,7 +438,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## ValueBoxedString public static final class ValueBoxedString
-extends [ValueBoxed](#valueboxed) +implements [ValueBoxed](#valueboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -454,7 +454,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## ValueBoxedList public static final class ValueBoxedList
-extends [ValueBoxed](#valueboxed) +implements [ValueBoxed](#valueboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -470,7 +470,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## ValueBoxedMap public static final class ValueBoxedMap
-extends [ValueBoxed](#valueboxed) +implements [ValueBoxed](#valueboxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -499,15 +499,15 @@ The value to add, replace or test. | validateAndBox | ## PathBoxed -public static abstract sealed class PathBoxed
+public sealed interface PathBoxed
permits
[PathBoxedString](#pathboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## PathBoxedString public static final class PathBoxedString
-extends [PathBoxed](#pathboxed) +implements [PathBoxed](#pathboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -536,7 +536,7 @@ A JSON Pointer path. | validateAndBox | ## AdditionalPropertiesBoxed -public static abstract sealed class AdditionalPropertiesBoxed
+public sealed interface AdditionalPropertiesBoxed
permits
[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), [AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), @@ -545,11 +545,11 @@ permits
[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), [AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedVoid public static final class AdditionalPropertiesBoxedVoid
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -565,7 +565,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## AdditionalPropertiesBoxedBoolean public static final class AdditionalPropertiesBoxedBoolean
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -581,7 +581,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## AdditionalPropertiesBoxedNumber public static final class AdditionalPropertiesBoxedNumber
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -597,7 +597,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## AdditionalPropertiesBoxedString public static final class AdditionalPropertiesBoxedString
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -613,7 +613,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## AdditionalPropertiesBoxedList public static final class AdditionalPropertiesBoxedList
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -629,7 +629,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## AdditionalPropertiesBoxedMap public static final class AdditionalPropertiesBoxedMap
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestMoveCopy.md b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestMoveCopy.md index 28864cf1acf..0ce2ae940f5 100644 --- a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestMoveCopy.md +++ b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestMoveCopy.md @@ -4,7 +4,7 @@ public class JSONPatchRequestMoveCopy
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 +- abstract 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 @@ -38,15 +38,15 @@ A class that contains necessary nested | static class | [JSONPatchRequestMoveCopy.AdditionalProperties](#additionalproperties)
schema class | ## JSONPatchRequestMoveCopy1Boxed -public static abstract sealed class JSONPatchRequestMoveCopy1Boxed
+public sealed interface JSONPatchRequestMoveCopy1Boxed
permits
[JSONPatchRequestMoveCopy1BoxedMap](#jsonpatchrequestmovecopy1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## JSONPatchRequestMoveCopy1BoxedMap public static final class JSONPatchRequestMoveCopy1BoxedMap
-extends [JSONPatchRequestMoveCopy1Boxed](#jsonpatchrequestmovecopy1boxed) +implements [JSONPatchRequestMoveCopy1Boxed](#jsonpatchrequestmovecopy1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -262,15 +262,15 @@ A class to store validated Map payloads | String | path()
| ## OpBoxed -public static abstract sealed class OpBoxed
+public sealed interface OpBoxed
permits
[OpBoxedString](#opboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## OpBoxedString public static final class OpBoxedString
-extends [OpBoxed](#opboxed) +implements [OpBoxed](#opboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -341,15 +341,15 @@ A class that stores String enum values | COPY | value = "copy" | ## PathBoxed -public static abstract sealed class PathBoxed
+public sealed interface PathBoxed
permits
[PathBoxedString](#pathboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## PathBoxedString public static final class PathBoxedString
-extends [PathBoxed](#pathboxed) +implements [PathBoxed](#pathboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -378,15 +378,15 @@ A JSON Pointer path. | validateAndBox | ## FromBoxed -public static abstract sealed class FromBoxed
+public sealed interface FromBoxed
permits
[FromBoxedString](#fromboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## FromBoxedString public static final class FromBoxedString
-extends [FromBoxed](#fromboxed) +implements [FromBoxed](#fromboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -415,7 +415,7 @@ A JSON Pointer path. | validateAndBox | ## AdditionalPropertiesBoxed -public static abstract sealed class AdditionalPropertiesBoxed
+public sealed interface AdditionalPropertiesBoxed
permits
[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), [AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), @@ -424,11 +424,11 @@ permits
[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), [AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedVoid public static final class AdditionalPropertiesBoxedVoid
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -444,7 +444,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## AdditionalPropertiesBoxedBoolean public static final class AdditionalPropertiesBoxedBoolean
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -460,7 +460,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## AdditionalPropertiesBoxedNumber public static final class AdditionalPropertiesBoxedNumber
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -476,7 +476,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## AdditionalPropertiesBoxedString public static final class AdditionalPropertiesBoxedString
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -492,7 +492,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## AdditionalPropertiesBoxedList public static final class AdditionalPropertiesBoxedList
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -508,7 +508,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## AdditionalPropertiesBoxedMap public static final class AdditionalPropertiesBoxedMap
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestRemove.md b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestRemove.md index 963598cc7d5..fafa4139f81 100644 --- a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestRemove.md +++ b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestRemove.md @@ -4,7 +4,7 @@ public class JSONPatchRequestRemove
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 +- abstract 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 @@ -35,15 +35,15 @@ A class that contains necessary nested | static class | [JSONPatchRequestRemove.AdditionalProperties](#additionalproperties)
schema class | ## JSONPatchRequestRemove1Boxed -public static abstract sealed class JSONPatchRequestRemove1Boxed
+public sealed interface JSONPatchRequestRemove1Boxed
permits
[JSONPatchRequestRemove1BoxedMap](#jsonpatchrequestremove1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## JSONPatchRequestRemove1BoxedMap public static final class JSONPatchRequestRemove1BoxedMap
-extends [JSONPatchRequestRemove1Boxed](#jsonpatchrequestremove1boxed) +implements [JSONPatchRequestRemove1Boxed](#jsonpatchrequestremove1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -186,15 +186,15 @@ A class to store validated Map payloads | String | path()
| ## OpBoxed -public static abstract sealed class OpBoxed
+public sealed interface OpBoxed
permits
[OpBoxedString](#opboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## OpBoxedString public static final class OpBoxedString
-extends [OpBoxed](#opboxed) +implements [OpBoxed](#opboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -264,15 +264,15 @@ A class that stores String enum values | REMOVE | value = "remove" | ## PathBoxed -public static abstract sealed class PathBoxed
+public sealed interface PathBoxed
permits
[PathBoxedString](#pathboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## PathBoxedString public static final class PathBoxedString
-extends [PathBoxed](#pathboxed) +implements [PathBoxed](#pathboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -301,7 +301,7 @@ A JSON Pointer path. | validateAndBox | ## AdditionalPropertiesBoxed -public static abstract sealed class AdditionalPropertiesBoxed
+public sealed interface AdditionalPropertiesBoxed
permits
[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), [AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), @@ -310,11 +310,11 @@ permits
[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), [AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedVoid public static final class AdditionalPropertiesBoxedVoid
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -330,7 +330,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## AdditionalPropertiesBoxedBoolean public static final class AdditionalPropertiesBoxedBoolean
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -346,7 +346,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## AdditionalPropertiesBoxedNumber public static final class AdditionalPropertiesBoxedNumber
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -362,7 +362,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## AdditionalPropertiesBoxedString public static final class AdditionalPropertiesBoxedString
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -378,7 +378,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## AdditionalPropertiesBoxedList public static final class AdditionalPropertiesBoxedList
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -394,7 +394,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## AdditionalPropertiesBoxedMap public static final class AdditionalPropertiesBoxedMap
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/Mammal.md b/samples/client/petstore/java/docs/components/schemas/Mammal.md index 8bc4662dc66..ed6a12e2c12 100644 --- a/samples/client/petstore/java/docs/components/schemas/Mammal.md +++ b/samples/client/petstore/java/docs/components/schemas/Mammal.md @@ -4,7 +4,7 @@ public class Mammal
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 +- abstract 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 @@ -20,7 +20,7 @@ A class that contains necessary nested | static class | [Mammal.Mammal1](#mammal1)
schema class | ## Mammal1Boxed -public static abstract sealed class Mammal1Boxed
+public sealed interface Mammal1Boxed
permits
[Mammal1BoxedVoid](#mammal1boxedvoid), [Mammal1BoxedBoolean](#mammal1boxedboolean), @@ -29,11 +29,11 @@ permits
[Mammal1BoxedList](#mammal1boxedlist), [Mammal1BoxedMap](#mammal1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Mammal1BoxedVoid public static final class Mammal1BoxedVoid
-extends [Mammal1Boxed](#mammal1boxed) +implements [Mammal1Boxed](#mammal1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -49,7 +49,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## Mammal1BoxedBoolean public static final class Mammal1BoxedBoolean
-extends [Mammal1Boxed](#mammal1boxed) +implements [Mammal1Boxed](#mammal1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -65,7 +65,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## Mammal1BoxedNumber public static final class Mammal1BoxedNumber
-extends [Mammal1Boxed](#mammal1boxed) +implements [Mammal1Boxed](#mammal1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -81,7 +81,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## Mammal1BoxedString public static final class Mammal1BoxedString
-extends [Mammal1Boxed](#mammal1boxed) +implements [Mammal1Boxed](#mammal1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -97,7 +97,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## Mammal1BoxedList public static final class Mammal1BoxedList
-extends [Mammal1Boxed](#mammal1boxed) +implements [Mammal1Boxed](#mammal1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -113,7 +113,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## Mammal1BoxedMap public static final class Mammal1BoxedMap
-extends [Mammal1Boxed](#mammal1boxed) +implements [Mammal1Boxed](#mammal1boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/MapTest.md b/samples/client/petstore/java/docs/components/schemas/MapTest.md index cf45c4135aa..8d50c87258c 100644 --- a/samples/client/petstore/java/docs/components/schemas/MapTest.md +++ b/samples/client/petstore/java/docs/components/schemas/MapTest.md @@ -4,7 +4,7 @@ public class MapTest
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 +- abstract 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 @@ -50,15 +50,15 @@ A class that contains necessary nested | static class | [MapTest.AdditionalProperties1](#additionalproperties1)
schema class | ## MapTest1Boxed -public static abstract sealed class MapTest1Boxed
+public sealed interface MapTest1Boxed
permits
[MapTest1BoxedMap](#maptest1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MapTest1BoxedMap public static final class MapTest1BoxedMap
-extends [MapTest1Boxed](#maptest1boxed) +implements [MapTest1Boxed](#maptest1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -189,15 +189,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## DirectMapBoxed -public static abstract sealed class DirectMapBoxed
+public sealed interface DirectMapBoxed
permits
[DirectMapBoxedMap](#directmapboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## DirectMapBoxedMap public static final class DirectMapBoxedMap
-extends [DirectMapBoxed](#directmapboxed) +implements [DirectMapBoxed](#directmapboxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -285,15 +285,15 @@ A class to store validated Map payloads | boolean | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalProperties3Boxed -public static abstract sealed class AdditionalProperties3Boxed
+public sealed interface AdditionalProperties3Boxed
permits
[AdditionalProperties3BoxedBoolean](#additionalproperties3boxedboolean) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalProperties3BoxedBoolean public static final class AdditionalProperties3BoxedBoolean
-extends [AdditionalProperties3Boxed](#additionalproperties3boxed) +implements [AdditionalProperties3Boxed](#additionalproperties3boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -319,15 +319,15 @@ A schema class that validates payloads | validateAndBox | ## MapOfEnumStringBoxed -public static abstract sealed class MapOfEnumStringBoxed
+public sealed interface MapOfEnumStringBoxed
permits
[MapOfEnumStringBoxedMap](#mapofenumstringboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MapOfEnumStringBoxedMap public static final class MapOfEnumStringBoxedMap
-extends [MapOfEnumStringBoxed](#mapofenumstringboxed) +implements [MapOfEnumStringBoxed](#mapofenumstringboxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -416,15 +416,15 @@ A class to store validated Map payloads | String | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalProperties2Boxed -public static abstract sealed class AdditionalProperties2Boxed
+public sealed interface AdditionalProperties2Boxed
permits
[AdditionalProperties2BoxedString](#additionalproperties2boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalProperties2BoxedString public static final class AdditionalProperties2BoxedString
-extends [AdditionalProperties2Boxed](#additionalproperties2boxed) +implements [AdditionalProperties2Boxed](#additionalproperties2boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -492,15 +492,15 @@ A class that stores String enum values | LOWER | value = "lower" | ## MapMapOfStringBoxed -public static abstract sealed class MapMapOfStringBoxed
+public sealed interface MapMapOfStringBoxed
permits
[MapMapOfStringBoxedMap](#mapmapofstringboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MapMapOfStringBoxedMap public static final class MapMapOfStringBoxedMap
-extends [MapMapOfStringBoxed](#mapmapofstringboxed) +implements [MapMapOfStringBoxed](#mapmapofstringboxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -595,15 +595,15 @@ A class to store validated Map payloads | [AdditionalPropertiesMap](#additionalpropertiesmap) | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalPropertiesBoxed -public static abstract sealed class AdditionalPropertiesBoxed
+public sealed interface AdditionalPropertiesBoxed
permits
[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedMap public static final class AdditionalPropertiesBoxedMap
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -691,15 +691,15 @@ A class to store validated Map payloads | String | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalProperties1Boxed -public static abstract sealed class AdditionalProperties1Boxed
+public sealed interface AdditionalProperties1Boxed
permits
[AdditionalProperties1BoxedString](#additionalproperties1boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalProperties1BoxedString public static final class AdditionalProperties1BoxedString
-extends [AdditionalProperties1Boxed](#additionalproperties1boxed) +implements [AdditionalProperties1Boxed](#additionalproperties1boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/java/docs/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.md index 6f6146ee976..25689c375b3 100644 --- a/samples/client/petstore/java/docs/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/client/petstore/java/docs/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.md @@ -4,7 +4,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass
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 +- abstract 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 @@ -30,15 +30,15 @@ A class that contains necessary nested | static class | [MixedPropertiesAndAdditionalPropertiesClass.UuidSchema](#uuidschema)
schema class | ## MixedPropertiesAndAdditionalPropertiesClass1Boxed -public static abstract sealed class MixedPropertiesAndAdditionalPropertiesClass1Boxed
+public sealed interface MixedPropertiesAndAdditionalPropertiesClass1Boxed
permits
[MixedPropertiesAndAdditionalPropertiesClass1BoxedMap](#mixedpropertiesandadditionalpropertiesclass1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MixedPropertiesAndAdditionalPropertiesClass1BoxedMap public static final class MixedPropertiesAndAdditionalPropertiesClass1BoxedMap
-extends [MixedPropertiesAndAdditionalPropertiesClass1Boxed](#mixedpropertiesandadditionalpropertiesclass1boxed) +implements [MixedPropertiesAndAdditionalPropertiesClass1Boxed](#mixedpropertiesandadditionalpropertiesclass1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -158,15 +158,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## MapSchemaBoxed -public static abstract sealed class MapSchemaBoxed
+public sealed interface MapSchemaBoxed
permits
[MapSchemaBoxedMap](#mapschemaboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MapSchemaBoxedMap public static final class MapSchemaBoxedMap
-extends [MapSchemaBoxed](#mapschemaboxed) +implements [MapSchemaBoxed](#mapschemaboxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -265,15 +265,15 @@ A class to store validated Map payloads | [Animal.AnimalMap](../../components/schemas/Animal.md#animalmap) | getAdditionalProperty(String name)
provides type safety for additional properties | ## DateTimeBoxed -public static abstract sealed class DateTimeBoxed
+public sealed interface DateTimeBoxed
permits
[DateTimeBoxedString](#datetimeboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## DateTimeBoxedString public static final class DateTimeBoxedString
-extends [DateTimeBoxed](#datetimeboxed) +implements [DateTimeBoxed](#datetimeboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -299,15 +299,15 @@ A schema class that validates payloads | validateAndBox | ## UuidSchemaBoxed -public static abstract sealed class UuidSchemaBoxed
+public sealed interface UuidSchemaBoxed
permits
[UuidSchemaBoxedString](#uuidschemaboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## UuidSchemaBoxedString public static final class UuidSchemaBoxedString
-extends [UuidSchemaBoxed](#uuidschemaboxed) +implements [UuidSchemaBoxed](#uuidschemaboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/Money.md b/samples/client/petstore/java/docs/components/schemas/Money.md index 7717346e26d..876664fa649 100644 --- a/samples/client/petstore/java/docs/components/schemas/Money.md +++ b/samples/client/petstore/java/docs/components/schemas/Money.md @@ -4,7 +4,7 @@ public class Money
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 +- abstract 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 @@ -30,15 +30,15 @@ A class that contains necessary nested | static class | [Money.AdditionalProperties](#additionalproperties)
schema class | ## Money1Boxed -public static abstract sealed class Money1Boxed
+public sealed interface Money1Boxed
permits
[Money1BoxedMap](#money1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Money1BoxedMap public static final class Money1BoxedMap
-extends [Money1Boxed](#money1boxed) +implements [Money1Boxed](#money1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -181,15 +181,15 @@ A class to store validated Map payloads | String | currency()
| ## AmountBoxed -public static abstract sealed class AmountBoxed
+public sealed interface AmountBoxed
permits
[AmountBoxedString](#amountboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AmountBoxedString public static final class AmountBoxedString
-extends [AmountBoxed](#amountboxed) +implements [AmountBoxed](#amountboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -215,7 +215,7 @@ A schema class that validates payloads | validateAndBox | ## AdditionalPropertiesBoxed -public static abstract sealed class AdditionalPropertiesBoxed
+public sealed interface AdditionalPropertiesBoxed
permits
[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), [AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), @@ -224,11 +224,11 @@ permits
[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), [AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedVoid public static final class AdditionalPropertiesBoxedVoid
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -244,7 +244,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## AdditionalPropertiesBoxedBoolean public static final class AdditionalPropertiesBoxedBoolean
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -260,7 +260,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## AdditionalPropertiesBoxedNumber public static final class AdditionalPropertiesBoxedNumber
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -276,7 +276,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## AdditionalPropertiesBoxedString public static final class AdditionalPropertiesBoxedString
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -292,7 +292,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## AdditionalPropertiesBoxedList public static final class AdditionalPropertiesBoxedList
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -308,7 +308,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## AdditionalPropertiesBoxedMap public static final class AdditionalPropertiesBoxedMap
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/MyObjectDto.md b/samples/client/petstore/java/docs/components/schemas/MyObjectDto.md index 7571738dbe8..80ff9fe32ca 100644 --- a/samples/client/petstore/java/docs/components/schemas/MyObjectDto.md +++ b/samples/client/petstore/java/docs/components/schemas/MyObjectDto.md @@ -4,7 +4,7 @@ public class MyObjectDto
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 +- abstract 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 @@ -30,15 +30,15 @@ A class that contains necessary nested | static class | [MyObjectDto.AdditionalProperties](#additionalproperties)
schema class | ## MyObjectDto1Boxed -public static abstract sealed class MyObjectDto1Boxed
+public sealed interface MyObjectDto1Boxed
permits
[MyObjectDto1BoxedMap](#myobjectdto1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MyObjectDto1BoxedMap public static final class MyObjectDto1BoxedMap
-extends [MyObjectDto1Boxed](#myobjectdto1boxed) +implements [MyObjectDto1Boxed](#myobjectdto1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -127,15 +127,15 @@ A class to store validated Map payloads | String | id()
[optional] value must be a uuid | ## IdBoxed -public static abstract sealed class IdBoxed
+public sealed interface IdBoxed
permits
[IdBoxedString](#idboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## IdBoxedString public static final class IdBoxedString
-extends [IdBoxed](#idboxed) +implements [IdBoxed](#idboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -161,7 +161,7 @@ A schema class that validates payloads | validateAndBox | ## AdditionalPropertiesBoxed -public static abstract sealed class AdditionalPropertiesBoxed
+public sealed interface AdditionalPropertiesBoxed
permits
[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), [AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), @@ -170,11 +170,11 @@ permits
[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), [AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedVoid public static final class AdditionalPropertiesBoxedVoid
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -190,7 +190,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## AdditionalPropertiesBoxedBoolean public static final class AdditionalPropertiesBoxedBoolean
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -206,7 +206,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## AdditionalPropertiesBoxedNumber public static final class AdditionalPropertiesBoxedNumber
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -222,7 +222,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## AdditionalPropertiesBoxedString public static final class AdditionalPropertiesBoxedString
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -238,7 +238,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## AdditionalPropertiesBoxedList public static final class AdditionalPropertiesBoxedList
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -254,7 +254,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## AdditionalPropertiesBoxedMap public static final class AdditionalPropertiesBoxedMap
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/Name.md b/samples/client/petstore/java/docs/components/schemas/Name.md index b50bf174b3b..48df4e33c01 100644 --- a/samples/client/petstore/java/docs/components/schemas/Name.md +++ b/samples/client/petstore/java/docs/components/schemas/Name.md @@ -4,7 +4,7 @@ public class Name
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 +- abstract 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 @@ -33,7 +33,7 @@ A class that contains necessary nested | static class | [Name.Name2](#name2)
schema class | ## Name1Boxed -public static abstract sealed class Name1Boxed
+public sealed interface Name1Boxed
permits
[Name1BoxedVoid](#name1boxedvoid), [Name1BoxedBoolean](#name1boxedboolean), @@ -42,11 +42,11 @@ permits
[Name1BoxedList](#name1boxedlist), [Name1BoxedMap](#name1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Name1BoxedVoid public static final class Name1BoxedVoid
-extends [Name1Boxed](#name1boxed) +implements [Name1Boxed](#name1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -62,7 +62,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## Name1BoxedBoolean public static final class Name1BoxedBoolean
-extends [Name1Boxed](#name1boxed) +implements [Name1Boxed](#name1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -78,7 +78,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## Name1BoxedNumber public static final class Name1BoxedNumber
-extends [Name1Boxed](#name1boxed) +implements [Name1Boxed](#name1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -94,7 +94,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## Name1BoxedString public static final class Name1BoxedString
-extends [Name1Boxed](#name1boxed) +implements [Name1Boxed](#name1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -110,7 +110,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## Name1BoxedList public static final class Name1BoxedList
-extends [Name1Boxed](#name1boxed) +implements [Name1Boxed](#name1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -126,7 +126,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## Name1BoxedMap public static final class Name1BoxedMap
-extends [Name1Boxed](#name1boxed) +implements [Name1Boxed](#name1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -236,15 +236,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## PropertyBoxed -public static abstract sealed class PropertyBoxed
+public sealed interface PropertyBoxed
permits
[PropertyBoxedString](#propertyboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## PropertyBoxedString public static final class PropertyBoxedString
-extends [PropertyBoxed](#propertyboxed) +implements [PropertyBoxed](#propertyboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -273,15 +273,15 @@ this is a reserved python keyword | validateAndBox | ## SnakeCaseBoxed -public static abstract sealed class SnakeCaseBoxed
+public sealed interface SnakeCaseBoxed
permits
[SnakeCaseBoxedNumber](#snakecaseboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## SnakeCaseBoxedNumber public static final class SnakeCaseBoxedNumber
-extends [SnakeCaseBoxed](#snakecaseboxed) +implements [SnakeCaseBoxed](#snakecaseboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -307,15 +307,15 @@ A schema class that validates payloads | validateAndBox | ## Name2Boxed -public static abstract sealed class Name2Boxed
+public sealed interface Name2Boxed
permits
[Name2BoxedNumber](#name2boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Name2BoxedNumber public static final class Name2BoxedNumber
-extends [Name2Boxed](#name2boxed) +implements [Name2Boxed](#name2boxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/NoAdditionalProperties.md b/samples/client/petstore/java/docs/components/schemas/NoAdditionalProperties.md index 590e1f00365..05badafece2 100644 --- a/samples/client/petstore/java/docs/components/schemas/NoAdditionalProperties.md +++ b/samples/client/petstore/java/docs/components/schemas/NoAdditionalProperties.md @@ -4,7 +4,7 @@ public class NoAdditionalProperties
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 +- abstract 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 @@ -33,15 +33,15 @@ A class that contains necessary nested | static class | [NoAdditionalProperties.AdditionalProperties](#additionalproperties)
schema class | ## NoAdditionalProperties1Boxed -public static abstract sealed class NoAdditionalProperties1Boxed
+public sealed interface NoAdditionalProperties1Boxed
permits
[NoAdditionalProperties1BoxedMap](#noadditionalproperties1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## NoAdditionalProperties1BoxedMap public static final class NoAdditionalProperties1BoxedMap
-extends [NoAdditionalProperties1Boxed](#noadditionalproperties1boxed) +implements [NoAdditionalProperties1Boxed](#noadditionalproperties1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -156,15 +156,15 @@ A class to store validated Map payloads | Number | petId()
[optional] value must be a 64 bit integer | ## PetIdBoxed -public static abstract sealed class PetIdBoxed
+public sealed interface PetIdBoxed
permits
[PetIdBoxedNumber](#petidboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## PetIdBoxedNumber public static final class PetIdBoxedNumber
-extends [PetIdBoxed](#petidboxed) +implements [PetIdBoxed](#petidboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -190,15 +190,15 @@ A schema class that validates payloads | validateAndBox | ## IdBoxed -public static abstract sealed class IdBoxed
+public sealed interface IdBoxed
permits
[IdBoxedNumber](#idboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## IdBoxedNumber public static final class IdBoxedNumber
-extends [IdBoxed](#idboxed) +implements [IdBoxed](#idboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -224,7 +224,7 @@ A schema class that validates payloads | validateAndBox | ## AdditionalPropertiesBoxed -public static abstract sealed class AdditionalPropertiesBoxed
+public sealed interface AdditionalPropertiesBoxed
permits
[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), [AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), @@ -233,11 +233,11 @@ permits
[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), [AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedVoid public static final class AdditionalPropertiesBoxedVoid
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -253,7 +253,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## AdditionalPropertiesBoxedBoolean public static final class AdditionalPropertiesBoxedBoolean
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -269,7 +269,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## AdditionalPropertiesBoxedNumber public static final class AdditionalPropertiesBoxedNumber
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -285,7 +285,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## AdditionalPropertiesBoxedString public static final class AdditionalPropertiesBoxedString
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -301,7 +301,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## AdditionalPropertiesBoxedList public static final class AdditionalPropertiesBoxedList
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -317,7 +317,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## AdditionalPropertiesBoxedMap public static final class AdditionalPropertiesBoxedMap
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/NullableClass.md b/samples/client/petstore/java/docs/components/schemas/NullableClass.md index 58eeb49f3b6..b9b9b58bfa5 100644 --- a/samples/client/petstore/java/docs/components/schemas/NullableClass.md +++ b/samples/client/petstore/java/docs/components/schemas/NullableClass.md @@ -4,7 +4,7 @@ public class NullableClass
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 +- abstract 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 @@ -105,15 +105,15 @@ A class that contains necessary nested | static class | [NullableClass.AdditionalProperties3](#additionalproperties3)
schema class | ## NullableClass1Boxed -public static abstract sealed class NullableClass1Boxed
+public sealed interface NullableClass1Boxed
permits
[NullableClass1BoxedMap](#nullableclass1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## NullableClass1BoxedMap public static final class NullableClass1BoxedMap
-extends [NullableClass1Boxed](#nullableclass1boxed) +implements [NullableClass1Boxed](#nullableclass1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -276,15 +276,15 @@ A class to store validated Map payloads | @Nullable FrozenMap | getAdditionalProperty(String name)
provides type safety for additional properties | ## ObjectItemsNullableBoxed -public static abstract sealed class ObjectItemsNullableBoxed
+public sealed interface ObjectItemsNullableBoxed
permits
[ObjectItemsNullableBoxedMap](#objectitemsnullableboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ObjectItemsNullableBoxedMap public static final class ObjectItemsNullableBoxedMap
-extends [ObjectItemsNullableBoxed](#objectitemsnullableboxed) +implements [ObjectItemsNullableBoxed](#objectitemsnullableboxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -373,16 +373,16 @@ A class to store validated Map payloads | @Nullable FrozenMap | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalProperties2Boxed -public static abstract sealed class AdditionalProperties2Boxed
+public sealed interface AdditionalProperties2Boxed
permits
[AdditionalProperties2BoxedVoid](#additionalproperties2boxedvoid), [AdditionalProperties2BoxedMap](#additionalproperties2boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalProperties2BoxedVoid public static final class AdditionalProperties2BoxedVoid
-extends [AdditionalProperties2Boxed](#additionalproperties2boxed) +implements [AdditionalProperties2Boxed](#additionalproperties2boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -398,7 +398,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## AdditionalProperties2BoxedMap public static final class AdditionalProperties2BoxedMap
-extends [AdditionalProperties2Boxed](#additionalproperties2boxed) +implements [AdditionalProperties2Boxed](#additionalproperties2boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -454,16 +454,16 @@ Void validatedPayload = NullableClass.AdditionalProperties2.validate( | [AdditionalProperties2BoxedMap](#additionalproperties2boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## ObjectAndItemsNullablePropBoxed -public static abstract sealed class ObjectAndItemsNullablePropBoxed
+public sealed interface ObjectAndItemsNullablePropBoxed
permits
[ObjectAndItemsNullablePropBoxedVoid](#objectanditemsnullablepropboxedvoid), [ObjectAndItemsNullablePropBoxedMap](#objectanditemsnullablepropboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ObjectAndItemsNullablePropBoxedVoid public static final class ObjectAndItemsNullablePropBoxedVoid
-extends [ObjectAndItemsNullablePropBoxed](#objectanditemsnullablepropboxed) +implements [ObjectAndItemsNullablePropBoxed](#objectanditemsnullablepropboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -479,7 +479,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ObjectAndItemsNullablePropBoxedMap public static final class ObjectAndItemsNullablePropBoxedMap
-extends [ObjectAndItemsNullablePropBoxed](#objectanditemsnullablepropboxed) +implements [ObjectAndItemsNullablePropBoxed](#objectanditemsnullablepropboxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -576,16 +576,16 @@ A class to store validated Map payloads | @Nullable FrozenMap | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalProperties1Boxed -public static abstract sealed class AdditionalProperties1Boxed
+public sealed interface AdditionalProperties1Boxed
permits
[AdditionalProperties1BoxedVoid](#additionalproperties1boxedvoid), [AdditionalProperties1BoxedMap](#additionalproperties1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalProperties1BoxedVoid public static final class AdditionalProperties1BoxedVoid
-extends [AdditionalProperties1Boxed](#additionalproperties1boxed) +implements [AdditionalProperties1Boxed](#additionalproperties1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -601,7 +601,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## AdditionalProperties1BoxedMap public static final class AdditionalProperties1BoxedMap
-extends [AdditionalProperties1Boxed](#additionalproperties1boxed) +implements [AdditionalProperties1Boxed](#additionalproperties1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -657,16 +657,16 @@ Void validatedPayload = NullableClass.AdditionalProperties1.validate( | [AdditionalProperties1BoxedMap](#additionalproperties1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## ObjectNullablePropBoxed -public static abstract sealed class ObjectNullablePropBoxed
+public sealed interface ObjectNullablePropBoxed
permits
[ObjectNullablePropBoxedVoid](#objectnullablepropboxedvoid), [ObjectNullablePropBoxedMap](#objectnullablepropboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ObjectNullablePropBoxedVoid public static final class ObjectNullablePropBoxedVoid
-extends [ObjectNullablePropBoxed](#objectnullablepropboxed) +implements [ObjectNullablePropBoxed](#objectnullablepropboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -682,7 +682,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ObjectNullablePropBoxedMap public static final class ObjectNullablePropBoxedMap
-extends [ObjectNullablePropBoxed](#objectnullablepropboxed) +implements [ObjectNullablePropBoxed](#objectnullablepropboxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -776,15 +776,15 @@ A class to store validated Map payloads | FrozenMap | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalPropertiesBoxed -public static abstract sealed class AdditionalPropertiesBoxed
+public sealed interface AdditionalPropertiesBoxed
permits
[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedMap public static final class AdditionalPropertiesBoxedMap
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -810,15 +810,15 @@ A schema class that validates payloads | validateAndBox | ## ArrayItemsNullableBoxed -public static abstract sealed class ArrayItemsNullableBoxed
+public sealed interface ArrayItemsNullableBoxed
permits
[ArrayItemsNullableBoxedList](#arrayitemsnullableboxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ArrayItemsNullableBoxedList public static final class ArrayItemsNullableBoxedList
-extends [ArrayItemsNullableBoxed](#arrayitemsnullableboxed) +implements [ArrayItemsNullableBoxed](#arrayitemsnullableboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -907,16 +907,16 @@ A class to store validated List payloads | static [ArrayItemsNullableList](#arrayitemsnullablelist) | of([List>](#arrayitemsnullablelistbuilder) arg, SchemaConfiguration configuration) | ## Items2Boxed -public static abstract sealed class Items2Boxed
+public sealed interface Items2Boxed
permits
[Items2BoxedVoid](#items2boxedvoid), [Items2BoxedMap](#items2boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Items2BoxedVoid public static final class Items2BoxedVoid
-extends [Items2Boxed](#items2boxed) +implements [Items2Boxed](#items2boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -932,7 +932,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## Items2BoxedMap public static final class Items2BoxedMap
-extends [Items2Boxed](#items2boxed) +implements [Items2Boxed](#items2boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -988,16 +988,16 @@ Void validatedPayload = NullableClass.Items2.validate( | [Items2BoxedMap](#items2boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## ArrayAndItemsNullablePropBoxed -public static abstract sealed class ArrayAndItemsNullablePropBoxed
+public sealed interface ArrayAndItemsNullablePropBoxed
permits
[ArrayAndItemsNullablePropBoxedVoid](#arrayanditemsnullablepropboxedvoid), [ArrayAndItemsNullablePropBoxedList](#arrayanditemsnullablepropboxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ArrayAndItemsNullablePropBoxedVoid public static final class ArrayAndItemsNullablePropBoxedVoid
-extends [ArrayAndItemsNullablePropBoxed](#arrayanditemsnullablepropboxed) +implements [ArrayAndItemsNullablePropBoxed](#arrayanditemsnullablepropboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -1013,7 +1013,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ArrayAndItemsNullablePropBoxedList public static final class ArrayAndItemsNullablePropBoxedList
-extends [ArrayAndItemsNullablePropBoxed](#arrayanditemsnullablepropboxed) +implements [ArrayAndItemsNullablePropBoxed](#arrayanditemsnullablepropboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -1110,16 +1110,16 @@ A class to store validated List payloads | static [ArrayAndItemsNullablePropList](#arrayanditemsnullableproplist) | of([List>](#arrayanditemsnullableproplistbuilder) arg, SchemaConfiguration configuration) | ## Items1Boxed -public static abstract sealed class Items1Boxed
+public sealed interface Items1Boxed
permits
[Items1BoxedVoid](#items1boxedvoid), [Items1BoxedMap](#items1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Items1BoxedVoid public static final class Items1BoxedVoid
-extends [Items1Boxed](#items1boxed) +implements [Items1Boxed](#items1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -1135,7 +1135,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## Items1BoxedMap public static final class Items1BoxedMap
-extends [Items1Boxed](#items1boxed) +implements [Items1Boxed](#items1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -1191,16 +1191,16 @@ Void validatedPayload = NullableClass.Items1.validate( | [Items1BoxedMap](#items1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## ArrayNullablePropBoxed -public static abstract sealed class ArrayNullablePropBoxed
+public sealed interface ArrayNullablePropBoxed
permits
[ArrayNullablePropBoxedVoid](#arraynullablepropboxedvoid), [ArrayNullablePropBoxedList](#arraynullablepropboxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ArrayNullablePropBoxedVoid public static final class ArrayNullablePropBoxedVoid
-extends [ArrayNullablePropBoxed](#arraynullablepropboxed) +implements [ArrayNullablePropBoxed](#arraynullablepropboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -1216,7 +1216,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ArrayNullablePropBoxedList public static final class ArrayNullablePropBoxedList
-extends [ArrayNullablePropBoxed](#arraynullablepropboxed) +implements [ArrayNullablePropBoxed](#arraynullablepropboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -1310,15 +1310,15 @@ A class to store validated List payloads | static [ArrayNullablePropList](#arraynullableproplist) | of([List>](#arraynullableproplistbuilder) arg, SchemaConfiguration configuration) | ## ItemsBoxed -public static abstract sealed class ItemsBoxed
+public sealed interface ItemsBoxed
permits
[ItemsBoxedMap](#itemsboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ItemsBoxedMap public static final class ItemsBoxedMap
-extends [ItemsBoxed](#itemsboxed) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -1344,16 +1344,16 @@ A schema class that validates payloads | validateAndBox | ## DatetimePropBoxed -public static abstract sealed class DatetimePropBoxed
+public sealed interface DatetimePropBoxed
permits
[DatetimePropBoxedVoid](#datetimepropboxedvoid), [DatetimePropBoxedString](#datetimepropboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## DatetimePropBoxedVoid public static final class DatetimePropBoxedVoid
-extends [DatetimePropBoxed](#datetimepropboxed) +implements [DatetimePropBoxed](#datetimepropboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -1369,7 +1369,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## DatetimePropBoxedString public static final class DatetimePropBoxedString
-extends [DatetimePropBoxed](#datetimepropboxed) +implements [DatetimePropBoxed](#datetimepropboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -1432,16 +1432,16 @@ String validatedPayload = NullableClass.DatetimeProp.validate( | [DatetimePropBoxedString](#datetimepropboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## DatePropBoxed -public static abstract sealed class DatePropBoxed
+public sealed interface DatePropBoxed
permits
[DatePropBoxedVoid](#datepropboxedvoid), [DatePropBoxedString](#datepropboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## DatePropBoxedVoid public static final class DatePropBoxedVoid
-extends [DatePropBoxed](#datepropboxed) +implements [DatePropBoxed](#datepropboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -1457,7 +1457,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## DatePropBoxedString public static final class DatePropBoxedString
-extends [DatePropBoxed](#datepropboxed) +implements [DatePropBoxed](#datepropboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -1520,16 +1520,16 @@ String validatedPayload = NullableClass.DateProp.validate( | [DatePropBoxedString](#datepropboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## StringPropBoxed -public static abstract sealed class StringPropBoxed
+public sealed interface StringPropBoxed
permits
[StringPropBoxedVoid](#stringpropboxedvoid), [StringPropBoxedString](#stringpropboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## StringPropBoxedVoid public static final class StringPropBoxedVoid
-extends [StringPropBoxed](#stringpropboxed) +implements [StringPropBoxed](#stringpropboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -1545,7 +1545,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## StringPropBoxedString public static final class StringPropBoxedString
-extends [StringPropBoxed](#stringpropboxed) +implements [StringPropBoxed](#stringpropboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -1607,16 +1607,16 @@ String validatedPayload = NullableClass.StringProp.validate( | [StringPropBoxedString](#stringpropboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## BooleanPropBoxed -public static abstract sealed class BooleanPropBoxed
+public sealed interface BooleanPropBoxed
permits
[BooleanPropBoxedVoid](#booleanpropboxedvoid), [BooleanPropBoxedBoolean](#booleanpropboxedboolean) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## BooleanPropBoxedVoid public static final class BooleanPropBoxedVoid
-extends [BooleanPropBoxed](#booleanpropboxed) +implements [BooleanPropBoxed](#booleanpropboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -1632,7 +1632,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## BooleanPropBoxedBoolean public static final class BooleanPropBoxedBoolean
-extends [BooleanPropBoxed](#booleanpropboxed) +implements [BooleanPropBoxed](#booleanpropboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -1694,16 +1694,16 @@ boolean validatedPayload = NullableClass.BooleanProp.validate( | [BooleanPropBoxedBoolean](#booleanpropboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## NumberPropBoxed -public static abstract sealed class NumberPropBoxed
+public sealed interface NumberPropBoxed
permits
[NumberPropBoxedVoid](#numberpropboxedvoid), [NumberPropBoxedNumber](#numberpropboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## NumberPropBoxedVoid public static final class NumberPropBoxedVoid
-extends [NumberPropBoxed](#numberpropboxed) +implements [NumberPropBoxed](#numberpropboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -1719,7 +1719,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## NumberPropBoxedNumber public static final class NumberPropBoxedNumber
-extends [NumberPropBoxed](#numberpropboxed) +implements [NumberPropBoxed](#numberpropboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -1781,16 +1781,16 @@ int validatedPayload = NullableClass.NumberProp.validate( | [NumberPropBoxedNumber](#numberpropboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## IntegerPropBoxed -public static abstract sealed class IntegerPropBoxed
+public sealed interface IntegerPropBoxed
permits
[IntegerPropBoxedVoid](#integerpropboxedvoid), [IntegerPropBoxedNumber](#integerpropboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## IntegerPropBoxedVoid public static final class IntegerPropBoxedVoid
-extends [IntegerPropBoxed](#integerpropboxed) +implements [IntegerPropBoxed](#integerpropboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -1806,7 +1806,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## IntegerPropBoxedNumber public static final class IntegerPropBoxedNumber
-extends [IntegerPropBoxed](#integerpropboxed) +implements [IntegerPropBoxed](#integerpropboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -1869,16 +1869,16 @@ int validatedPayload = NullableClass.IntegerProp.validate( | [IntegerPropBoxedNumber](#integerpropboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## AdditionalProperties3Boxed -public static abstract sealed class AdditionalProperties3Boxed
+public sealed interface AdditionalProperties3Boxed
permits
[AdditionalProperties3BoxedVoid](#additionalproperties3boxedvoid), [AdditionalProperties3BoxedMap](#additionalproperties3boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalProperties3BoxedVoid public static final class AdditionalProperties3BoxedVoid
-extends [AdditionalProperties3Boxed](#additionalproperties3boxed) +implements [AdditionalProperties3Boxed](#additionalproperties3boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -1894,7 +1894,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## AdditionalProperties3BoxedMap public static final class AdditionalProperties3BoxedMap
-extends [AdditionalProperties3Boxed](#additionalproperties3boxed) +implements [AdditionalProperties3Boxed](#additionalproperties3boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/NullableShape.md b/samples/client/petstore/java/docs/components/schemas/NullableShape.md index aeebe3de091..a2126b27901 100644 --- a/samples/client/petstore/java/docs/components/schemas/NullableShape.md +++ b/samples/client/petstore/java/docs/components/schemas/NullableShape.md @@ -4,7 +4,7 @@ public class NullableShape
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 +- abstract 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 @@ -23,7 +23,7 @@ A class that contains necessary nested | static class | [NullableShape.Schema2](#schema2)
schema class | ## NullableShape1Boxed -public static abstract sealed class NullableShape1Boxed
+public sealed interface NullableShape1Boxed
permits
[NullableShape1BoxedVoid](#nullableshape1boxedvoid), [NullableShape1BoxedBoolean](#nullableshape1boxedboolean), @@ -32,11 +32,11 @@ permits
[NullableShape1BoxedList](#nullableshape1boxedlist), [NullableShape1BoxedMap](#nullableshape1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## NullableShape1BoxedVoid public static final class NullableShape1BoxedVoid
-extends [NullableShape1Boxed](#nullableshape1boxed) +implements [NullableShape1Boxed](#nullableshape1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -52,7 +52,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## NullableShape1BoxedBoolean public static final class NullableShape1BoxedBoolean
-extends [NullableShape1Boxed](#nullableshape1boxed) +implements [NullableShape1Boxed](#nullableshape1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -68,7 +68,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## NullableShape1BoxedNumber public static final class NullableShape1BoxedNumber
-extends [NullableShape1Boxed](#nullableshape1boxed) +implements [NullableShape1Boxed](#nullableshape1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -84,7 +84,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## NullableShape1BoxedString public static final class NullableShape1BoxedString
-extends [NullableShape1Boxed](#nullableshape1boxed) +implements [NullableShape1Boxed](#nullableshape1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -100,7 +100,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## NullableShape1BoxedList public static final class NullableShape1BoxedList
-extends [NullableShape1Boxed](#nullableshape1boxed) +implements [NullableShape1Boxed](#nullableshape1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -116,7 +116,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## NullableShape1BoxedMap public static final class NullableShape1BoxedMap
-extends [NullableShape1Boxed](#nullableshape1boxed) +implements [NullableShape1Boxed](#nullableshape1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -165,15 +165,15 @@ The value may be a shape or the 'null' value. For a composed schema to | [NullableShape1BoxedList](#nullableshape1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## Schema2Boxed -public static abstract sealed class Schema2Boxed
+public sealed interface Schema2Boxed
permits
[Schema2BoxedVoid](#schema2boxedvoid) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema2BoxedVoid public static final class Schema2BoxedVoid
-extends [Schema2Boxed](#schema2boxed) +implements [Schema2Boxed](#schema2boxed) a boxed class to store validated null payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/NullableString.md b/samples/client/petstore/java/docs/components/schemas/NullableString.md index c6adf001863..239f69dd188 100644 --- a/samples/client/petstore/java/docs/components/schemas/NullableString.md +++ b/samples/client/petstore/java/docs/components/schemas/NullableString.md @@ -4,7 +4,7 @@ public class NullableString
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 +- abstract 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 @@ -16,16 +16,16 @@ A class that contains necessary nested | static class | [NullableString.NullableString1](#nullablestring1)
schema class | ## NullableString1Boxed -public static abstract sealed class NullableString1Boxed
+public sealed interface NullableString1Boxed
permits
[NullableString1BoxedVoid](#nullablestring1boxedvoid), [NullableString1BoxedString](#nullablestring1boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## NullableString1BoxedVoid public static final class NullableString1BoxedVoid
-extends [NullableString1Boxed](#nullablestring1boxed) +implements [NullableString1Boxed](#nullablestring1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -41,7 +41,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## NullableString1BoxedString public static final class NullableString1BoxedString
-extends [NullableString1Boxed](#nullablestring1boxed) +implements [NullableString1Boxed](#nullablestring1boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/NumberOnly.md b/samples/client/petstore/java/docs/components/schemas/NumberOnly.md index 2302266c4f4..1a741bfa2a0 100644 --- a/samples/client/petstore/java/docs/components/schemas/NumberOnly.md +++ b/samples/client/petstore/java/docs/components/schemas/NumberOnly.md @@ -4,7 +4,7 @@ public class NumberOnly
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 +- abstract 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 @@ -22,15 +22,15 @@ A class that contains necessary nested | static class | [NumberOnly.JustNumber](#justnumber)
schema class | ## NumberOnly1Boxed -public static abstract sealed class NumberOnly1Boxed
+public sealed interface NumberOnly1Boxed
permits
[NumberOnly1BoxedMap](#numberonly1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## NumberOnly1BoxedMap public static final class NumberOnly1BoxedMap
-extends [NumberOnly1Boxed](#numberonly1boxed) +implements [NumberOnly1Boxed](#numberonly1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -131,15 +131,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## JustNumberBoxed -public static abstract sealed class JustNumberBoxed
+public sealed interface JustNumberBoxed
permits
[JustNumberBoxedNumber](#justnumberboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## JustNumberBoxedNumber public static final class JustNumberBoxedNumber
-extends [JustNumberBoxed](#justnumberboxed) +implements [JustNumberBoxed](#justnumberboxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/NumberSchema.md b/samples/client/petstore/java/docs/components/schemas/NumberSchema.md index 36b29fe501b..2ffbeccdc88 100644 --- a/samples/client/petstore/java/docs/components/schemas/NumberSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/NumberSchema.md @@ -4,7 +4,7 @@ public class NumberSchema
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 +- abstract 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 @@ -15,15 +15,15 @@ A class that contains necessary nested | static class | [NumberSchema.NumberSchema1](#numberschema1)
schema class | ## NumberSchema1Boxed -public static abstract sealed class NumberSchema1Boxed
+public sealed interface NumberSchema1Boxed
permits
[NumberSchema1BoxedNumber](#numberschema1boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## NumberSchema1BoxedNumber public static final class NumberSchema1BoxedNumber
-extends [NumberSchema1Boxed](#numberschema1boxed) +implements [NumberSchema1Boxed](#numberschema1boxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/NumberWithExclusiveMinMax.md b/samples/client/petstore/java/docs/components/schemas/NumberWithExclusiveMinMax.md index cd04a0db19d..63d2a67d1f2 100644 --- a/samples/client/petstore/java/docs/components/schemas/NumberWithExclusiveMinMax.md +++ b/samples/client/petstore/java/docs/components/schemas/NumberWithExclusiveMinMax.md @@ -4,7 +4,7 @@ public class NumberWithExclusiveMinMax
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 +- abstract 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 @@ -15,15 +15,15 @@ A class that contains necessary nested | static class | [NumberWithExclusiveMinMax.NumberWithExclusiveMinMax1](#numberwithexclusiveminmax1)
schema class | ## NumberWithExclusiveMinMax1Boxed -public static abstract sealed class NumberWithExclusiveMinMax1Boxed
+public sealed interface NumberWithExclusiveMinMax1Boxed
permits
[NumberWithExclusiveMinMax1BoxedNumber](#numberwithexclusiveminmax1boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## NumberWithExclusiveMinMax1BoxedNumber public static final class NumberWithExclusiveMinMax1BoxedNumber
-extends [NumberWithExclusiveMinMax1Boxed](#numberwithexclusiveminmax1boxed) +implements [NumberWithExclusiveMinMax1Boxed](#numberwithexclusiveminmax1boxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/NumberWithValidations.md b/samples/client/petstore/java/docs/components/schemas/NumberWithValidations.md index 60cde216513..788584a58d7 100644 --- a/samples/client/petstore/java/docs/components/schemas/NumberWithValidations.md +++ b/samples/client/petstore/java/docs/components/schemas/NumberWithValidations.md @@ -4,7 +4,7 @@ public class NumberWithValidations
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 +- abstract 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 @@ -15,15 +15,15 @@ A class that contains necessary nested | static class | [NumberWithValidations.NumberWithValidations1](#numberwithvalidations1)
schema class | ## NumberWithValidations1Boxed -public static abstract sealed class NumberWithValidations1Boxed
+public sealed interface NumberWithValidations1Boxed
permits
[NumberWithValidations1BoxedNumber](#numberwithvalidations1boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## NumberWithValidations1BoxedNumber public static final class NumberWithValidations1BoxedNumber
-extends [NumberWithValidations1Boxed](#numberwithvalidations1boxed) +implements [NumberWithValidations1Boxed](#numberwithvalidations1boxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredProps.md b/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredProps.md index 0ffd15cd55d..292487d4bcc 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredProps.md @@ -4,7 +4,7 @@ public class ObjWithRequiredProps
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 +- abstract 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 @@ -22,15 +22,15 @@ A class that contains necessary nested | static class | [ObjWithRequiredProps.A](#a)
schema class | ## ObjWithRequiredProps1Boxed -public static abstract sealed class ObjWithRequiredProps1Boxed
+public sealed interface ObjWithRequiredProps1Boxed
permits
[ObjWithRequiredProps1BoxedMap](#objwithrequiredprops1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ObjWithRequiredProps1BoxedMap public static final class ObjWithRequiredProps1BoxedMap
-extends [ObjWithRequiredProps1Boxed](#objwithrequiredprops1boxed) +implements [ObjWithRequiredProps1Boxed](#objwithrequiredprops1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -145,15 +145,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## ABoxed -public static abstract sealed class ABoxed
+public sealed interface ABoxed
permits
[ABoxedString](#aboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ABoxedString public static final class ABoxedString
-extends [ABoxed](#aboxed) +implements [ABoxed](#aboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredPropsBase.md b/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredPropsBase.md index c57d893796a..f305f6e9f07 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredPropsBase.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredPropsBase.md @@ -4,7 +4,7 @@ public class ObjWithRequiredPropsBase
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 +- abstract 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 @@ -22,15 +22,15 @@ A class that contains necessary nested | static class | [ObjWithRequiredPropsBase.B](#b)
schema class | ## ObjWithRequiredPropsBase1Boxed -public static abstract sealed class ObjWithRequiredPropsBase1Boxed
+public sealed interface ObjWithRequiredPropsBase1Boxed
permits
[ObjWithRequiredPropsBase1BoxedMap](#objwithrequiredpropsbase1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ObjWithRequiredPropsBase1BoxedMap public static final class ObjWithRequiredPropsBase1BoxedMap
-extends [ObjWithRequiredPropsBase1Boxed](#objwithrequiredpropsbase1boxed) +implements [ObjWithRequiredPropsBase1Boxed](#objwithrequiredpropsbase1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -144,15 +144,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## BBoxed -public static abstract sealed class BBoxed
+public sealed interface BBoxed
permits
[BBoxedString](#bboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## BBoxedString public static final class BBoxedString
-extends [BBoxed](#bboxed) +implements [BBoxed](#bboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectInterface.md b/samples/client/petstore/java/docs/components/schemas/ObjectInterface.md index 871c9193384..9c9296682ea 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectInterface.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectInterface.md @@ -4,7 +4,7 @@ public class ObjectInterface
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 +- abstract 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 @@ -15,15 +15,15 @@ A class that contains necessary nested | static class | [ObjectInterface.ObjectInterface1](#objectinterface1)
schema class | ## ObjectInterface1Boxed -public static abstract sealed class ObjectInterface1Boxed
+public sealed interface ObjectInterface1Boxed
permits
[ObjectInterface1BoxedMap](#objectinterface1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ObjectInterface1BoxedMap public static final class ObjectInterface1BoxedMap
-extends [ObjectInterface1Boxed](#objectinterface1boxed) +implements [ObjectInterface1Boxed](#objectinterface1boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectModelWithArgAndArgsProperties.md b/samples/client/petstore/java/docs/components/schemas/ObjectModelWithArgAndArgsProperties.md index 368b53e70fa..0ef25efde14 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectModelWithArgAndArgsProperties.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectModelWithArgAndArgsProperties.md @@ -4,7 +4,7 @@ public class ObjectModelWithArgAndArgsProperties
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 +- abstract 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 @@ -25,15 +25,15 @@ A class that contains necessary nested | static class | [ObjectModelWithArgAndArgsProperties.Arg](#arg)
schema class | ## ObjectModelWithArgAndArgsProperties1Boxed -public static abstract sealed class ObjectModelWithArgAndArgsProperties1Boxed
+public sealed interface ObjectModelWithArgAndArgsProperties1Boxed
permits
[ObjectModelWithArgAndArgsProperties1BoxedMap](#objectmodelwithargandargsproperties1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ObjectModelWithArgAndArgsProperties1BoxedMap public static final class ObjectModelWithArgAndArgsProperties1BoxedMap
-extends [ObjectModelWithArgAndArgsProperties1Boxed](#objectmodelwithargandargsproperties1boxed) +implements [ObjectModelWithArgAndArgsProperties1Boxed](#objectmodelwithargandargsproperties1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -183,15 +183,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## ArgsBoxed -public static abstract sealed class ArgsBoxed
+public sealed interface ArgsBoxed
permits
[ArgsBoxedString](#argsboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ArgsBoxedString public static final class ArgsBoxedString
-extends [ArgsBoxed](#argsboxed) +implements [ArgsBoxed](#argsboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -217,15 +217,15 @@ A schema class that validates payloads | validateAndBox | ## ArgBoxed -public static abstract sealed class ArgBoxed
+public sealed interface ArgBoxed
permits
[ArgBoxedString](#argboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ArgBoxedString public static final class ArgBoxedString
-extends [ArgBoxed](#argboxed) +implements [ArgBoxed](#argboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectModelWithRefProps.md b/samples/client/petstore/java/docs/components/schemas/ObjectModelWithRefProps.md index 6bcfab2ad65..612b2b00dda 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectModelWithRefProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectModelWithRefProps.md @@ -4,7 +4,7 @@ public class ObjectModelWithRefProps
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 +- abstract 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 @@ -19,15 +19,15 @@ A class that contains necessary nested | static class | [ObjectModelWithRefProps.ObjectModelWithRefPropsMap](#objectmodelwithrefpropsmap)
output class for Map payloads | ## ObjectModelWithRefProps1Boxed -public static abstract sealed class ObjectModelWithRefProps1Boxed
+public sealed interface ObjectModelWithRefProps1Boxed
permits
[ObjectModelWithRefProps1BoxedMap](#objectmodelwithrefprops1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ObjectModelWithRefProps1BoxedMap public static final class ObjectModelWithRefProps1BoxedMap
-extends [ObjectModelWithRefProps1Boxed](#objectmodelwithrefprops1boxed) +implements [ObjectModelWithRefProps1Boxed](#objectmodelwithrefprops1boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md index 91be7703b4a..25e776ba83e 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md @@ -4,7 +4,7 @@ public class ObjectWithAllOfWithReqTestPropFromUnsetAddProp
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 +- abstract 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 @@ -30,7 +30,7 @@ A class that contains necessary nested | static class | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.Name](#name)
schema class | ## ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed -public static abstract sealed class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed
+public sealed interface ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed
permits
[ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedVoid](#objectwithallofwithreqtestpropfromunsetaddprop1boxedvoid), [ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedBoolean](#objectwithallofwithreqtestpropfromunsetaddprop1boxedboolean), @@ -39,11 +39,11 @@ permits
[ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedList](#objectwithallofwithreqtestpropfromunsetaddprop1boxedlist), [ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedMap](#objectwithallofwithreqtestpropfromunsetaddprop1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedVoid public static final class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedVoid
-extends [ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed](#objectwithallofwithreqtestpropfromunsetaddprop1boxed) +implements [ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed](#objectwithallofwithreqtestpropfromunsetaddprop1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -59,7 +59,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedBoolean public static final class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedBoolean
-extends [ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed](#objectwithallofwithreqtestpropfromunsetaddprop1boxed) +implements [ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed](#objectwithallofwithreqtestpropfromunsetaddprop1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -75,7 +75,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedNumber public static final class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedNumber
-extends [ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed](#objectwithallofwithreqtestpropfromunsetaddprop1boxed) +implements [ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed](#objectwithallofwithreqtestpropfromunsetaddprop1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -91,7 +91,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedString public static final class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedString
-extends [ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed](#objectwithallofwithreqtestpropfromunsetaddprop1boxed) +implements [ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed](#objectwithallofwithreqtestpropfromunsetaddprop1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -107,7 +107,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedList public static final class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedList
-extends [ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed](#objectwithallofwithreqtestpropfromunsetaddprop1boxed) +implements [ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed](#objectwithallofwithreqtestpropfromunsetaddprop1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -123,7 +123,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedMap public static final class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedMap
-extends [ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed](#objectwithallofwithreqtestpropfromunsetaddprop1boxed) +implements [ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed](#objectwithallofwithreqtestpropfromunsetaddprop1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -169,15 +169,15 @@ A schema class that validates payloads | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedList](#objectwithallofwithreqtestpropfromunsetaddprop1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## Schema1Boxed -public static abstract sealed class Schema1Boxed
+public sealed interface Schema1Boxed
permits
[Schema1BoxedMap](#schema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema1BoxedMap public static final class Schema1BoxedMap
-extends [Schema1Boxed](#schema1boxed) +implements [Schema1Boxed](#schema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -301,15 +301,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## NameBoxed -public static abstract sealed class NameBoxed
+public sealed interface NameBoxed
permits
[NameBoxedString](#nameboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## NameBoxedString public static final class NameBoxedString
-extends [NameBoxed](#nameboxed) +implements [NameBoxed](#nameboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithCollidingProperties.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithCollidingProperties.md index 3ec248081b5..546068aa363 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithCollidingProperties.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithCollidingProperties.md @@ -4,7 +4,7 @@ public class ObjectWithCollidingProperties
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 +- abstract 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 @@ -25,15 +25,15 @@ A class that contains necessary nested | static class | [ObjectWithCollidingProperties.SomeProp](#someprop)
schema class | ## ObjectWithCollidingProperties1Boxed -public static abstract sealed class ObjectWithCollidingProperties1Boxed
+public sealed interface ObjectWithCollidingProperties1Boxed
permits
[ObjectWithCollidingProperties1BoxedMap](#objectwithcollidingproperties1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ObjectWithCollidingProperties1BoxedMap public static final class ObjectWithCollidingProperties1BoxedMap
-extends [ObjectWithCollidingProperties1Boxed](#objectwithcollidingproperties1boxed) +implements [ObjectWithCollidingProperties1Boxed](#objectwithcollidingproperties1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -134,15 +134,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## SomepropBoxed -public static abstract sealed class SomepropBoxed
+public sealed interface SomepropBoxed
permits
[SomepropBoxedMap](#somepropboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## SomepropBoxedMap public static final class SomepropBoxedMap
-extends [SomepropBoxed](#somepropboxed) +implements [SomepropBoxed](#somepropboxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -168,15 +168,15 @@ A schema class that validates payloads | validateAndBox | ## SomePropBoxed -public static abstract sealed class SomePropBoxed
+public sealed interface SomePropBoxed
permits
[SomePropBoxedMap](#somepropboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## SomePropBoxedMap public static final class SomePropBoxedMap
-extends [SomePropBoxed](#somepropboxed) +implements [SomePropBoxed](#somepropboxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithDecimalProperties.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithDecimalProperties.md index 62b52da3b2d..eb0516701d6 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithDecimalProperties.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithDecimalProperties.md @@ -4,7 +4,7 @@ public class ObjectWithDecimalProperties
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 +- abstract 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 @@ -22,15 +22,15 @@ A class that contains necessary nested | static class | [ObjectWithDecimalProperties.Width](#width)
schema class | ## ObjectWithDecimalProperties1Boxed -public static abstract sealed class ObjectWithDecimalProperties1Boxed
+public sealed interface ObjectWithDecimalProperties1Boxed
permits
[ObjectWithDecimalProperties1BoxedMap](#objectwithdecimalproperties1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ObjectWithDecimalProperties1BoxedMap public static final class ObjectWithDecimalProperties1BoxedMap
-extends [ObjectWithDecimalProperties1Boxed](#objectwithdecimalproperties1boxed) +implements [ObjectWithDecimalProperties1Boxed](#objectwithdecimalproperties1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -146,15 +146,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## WidthBoxed -public static abstract sealed class WidthBoxed
+public sealed interface WidthBoxed
permits
[WidthBoxedString](#widthboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## WidthBoxedString public static final class WidthBoxedString
-extends [WidthBoxed](#widthboxed) +implements [WidthBoxed](#widthboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithDifficultlyNamedProps.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithDifficultlyNamedProps.md index 40e5c2643da..eddb03fb22c 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithDifficultlyNamedProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithDifficultlyNamedProps.md @@ -4,7 +4,7 @@ public class ObjectWithDifficultlyNamedProps
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 +- abstract 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 @@ -28,15 +28,15 @@ A class that contains necessary nested | static class | [ObjectWithDifficultlyNamedProps.Specialpropertyname](#specialpropertyname)
schema class | ## ObjectWithDifficultlyNamedProps1Boxed -public static abstract sealed class ObjectWithDifficultlyNamedProps1Boxed
+public sealed interface ObjectWithDifficultlyNamedProps1Boxed
permits
[ObjectWithDifficultlyNamedProps1BoxedMap](#objectwithdifficultlynamedprops1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ObjectWithDifficultlyNamedProps1BoxedMap public static final class ObjectWithDifficultlyNamedProps1BoxedMap
-extends [ObjectWithDifficultlyNamedProps1Boxed](#objectwithdifficultlynamedprops1boxed) +implements [ObjectWithDifficultlyNamedProps1Boxed](#objectwithdifficultlynamedprops1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -165,15 +165,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## Schema123NumberBoxed -public static abstract sealed class Schema123NumberBoxed
+public sealed interface Schema123NumberBoxed
permits
[Schema123NumberBoxedNumber](#schema123numberboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema123NumberBoxedNumber public static final class Schema123NumberBoxedNumber
-extends [Schema123NumberBoxed](#schema123numberboxed) +implements [Schema123NumberBoxed](#schema123numberboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -199,15 +199,15 @@ A schema class that validates payloads | validateAndBox | ## Schema123listBoxed -public static abstract sealed class Schema123listBoxed
+public sealed interface Schema123listBoxed
permits
[Schema123listBoxedString](#schema123listboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema123listBoxedString public static final class Schema123listBoxedString
-extends [Schema123listBoxed](#schema123listboxed) +implements [Schema123listBoxed](#schema123listboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -233,15 +233,15 @@ A schema class that validates payloads | validateAndBox | ## SpecialpropertynameBoxed -public static abstract sealed class SpecialpropertynameBoxed
+public sealed interface SpecialpropertynameBoxed
permits
[SpecialpropertynameBoxedNumber](#specialpropertynameboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## SpecialpropertynameBoxedNumber public static final class SpecialpropertynameBoxedNumber
-extends [SpecialpropertynameBoxed](#specialpropertynameboxed) +implements [SpecialpropertynameBoxed](#specialpropertynameboxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithInlineCompositionProperty.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithInlineCompositionProperty.md index f5343ae68cf..3c9aebb95ab 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithInlineCompositionProperty.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithInlineCompositionProperty.md @@ -4,7 +4,7 @@ public class ObjectWithInlineCompositionProperty
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 +- abstract 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 @@ -30,15 +30,15 @@ A class that contains necessary nested | static class | [ObjectWithInlineCompositionProperty.Schema0](#schema0)
schema class | ## ObjectWithInlineCompositionProperty1Boxed -public static abstract sealed class ObjectWithInlineCompositionProperty1Boxed
+public sealed interface ObjectWithInlineCompositionProperty1Boxed
permits
[ObjectWithInlineCompositionProperty1BoxedMap](#objectwithinlinecompositionproperty1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ObjectWithInlineCompositionProperty1BoxedMap public static final class ObjectWithInlineCompositionProperty1BoxedMap
-extends [ObjectWithInlineCompositionProperty1Boxed](#objectwithinlinecompositionproperty1boxed) +implements [ObjectWithInlineCompositionProperty1Boxed](#objectwithinlinecompositionproperty1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -142,7 +142,7 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## SomePropBoxed -public static abstract sealed class SomePropBoxed
+public sealed interface SomePropBoxed
permits
[SomePropBoxedVoid](#somepropboxedvoid), [SomePropBoxedBoolean](#somepropboxedboolean), @@ -151,11 +151,11 @@ permits
[SomePropBoxedList](#somepropboxedlist), [SomePropBoxedMap](#somepropboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## SomePropBoxedVoid public static final class SomePropBoxedVoid
-extends [SomePropBoxed](#somepropboxed) +implements [SomePropBoxed](#somepropboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -171,7 +171,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## SomePropBoxedBoolean public static final class SomePropBoxedBoolean
-extends [SomePropBoxed](#somepropboxed) +implements [SomePropBoxed](#somepropboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -187,7 +187,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## SomePropBoxedNumber public static final class SomePropBoxedNumber
-extends [SomePropBoxed](#somepropboxed) +implements [SomePropBoxed](#somepropboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -203,7 +203,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## SomePropBoxedString public static final class SomePropBoxedString
-extends [SomePropBoxed](#somepropboxed) +implements [SomePropBoxed](#somepropboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -219,7 +219,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## SomePropBoxedList public static final class SomePropBoxedList
-extends [SomePropBoxed](#somepropboxed) +implements [SomePropBoxed](#somepropboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -235,7 +235,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## SomePropBoxedMap public static final class SomePropBoxedMap
-extends [SomePropBoxed](#somepropboxed) +implements [SomePropBoxed](#somepropboxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -281,15 +281,15 @@ A schema class that validates payloads | [SomePropBoxedList](#somepropboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## Schema0Boxed -public static abstract sealed class Schema0Boxed
+public sealed interface Schema0Boxed
permits
[Schema0BoxedString](#schema0boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema0BoxedString public static final class Schema0BoxedString
-extends [Schema0Boxed](#schema0boxed) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithInvalidNamedRefedProperties.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithInvalidNamedRefedProperties.md index d2ddbc18d91..62ab4a3933d 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithInvalidNamedRefedProperties.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithInvalidNamedRefedProperties.md @@ -4,7 +4,7 @@ public class ObjectWithInvalidNamedRefedProperties
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 +- abstract 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 @@ -19,15 +19,15 @@ A class that contains necessary nested | static class | [ObjectWithInvalidNamedRefedProperties.ObjectWithInvalidNamedRefedPropertiesMap](#objectwithinvalidnamedrefedpropertiesmap)
output class for Map payloads | ## ObjectWithInvalidNamedRefedProperties1Boxed -public static abstract sealed class ObjectWithInvalidNamedRefedProperties1Boxed
+public sealed interface ObjectWithInvalidNamedRefedProperties1Boxed
permits
[ObjectWithInvalidNamedRefedProperties1BoxedMap](#objectwithinvalidnamedrefedproperties1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ObjectWithInvalidNamedRefedProperties1BoxedMap public static final class ObjectWithInvalidNamedRefedProperties1BoxedMap
-extends [ObjectWithInvalidNamedRefedProperties1Boxed](#objectwithinvalidnamedrefedproperties1boxed) +implements [ObjectWithInvalidNamedRefedProperties1Boxed](#objectwithinvalidnamedrefedproperties1boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithNonIntersectingValues.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithNonIntersectingValues.md index 61ea260b3eb..65d79bfc06d 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithNonIntersectingValues.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithNonIntersectingValues.md @@ -4,7 +4,7 @@ public class ObjectWithNonIntersectingValues
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 +- abstract 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 @@ -25,15 +25,15 @@ A class that contains necessary nested | static class | [ObjectWithNonIntersectingValues.AdditionalProperties](#additionalproperties)
schema class | ## ObjectWithNonIntersectingValues1Boxed -public static abstract sealed class ObjectWithNonIntersectingValues1Boxed
+public sealed interface ObjectWithNonIntersectingValues1Boxed
permits
[ObjectWithNonIntersectingValues1BoxedMap](#objectwithnonintersectingvalues1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ObjectWithNonIntersectingValues1BoxedMap public static final class ObjectWithNonIntersectingValues1BoxedMap
-extends [ObjectWithNonIntersectingValues1Boxed](#objectwithnonintersectingvalues1boxed) +implements [ObjectWithNonIntersectingValues1Boxed](#objectwithnonintersectingvalues1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -129,15 +129,15 @@ A class to store validated Map payloads | String | getAdditionalProperty(String name)
provides type safety for additional properties | ## ABoxed -public static abstract sealed class ABoxed
+public sealed interface ABoxed
permits
[ABoxedNumber](#aboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ABoxedNumber public static final class ABoxedNumber
-extends [ABoxed](#aboxed) +implements [ABoxed](#aboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -163,15 +163,15 @@ A schema class that validates payloads | validateAndBox | ## AdditionalPropertiesBoxed -public static abstract sealed class AdditionalPropertiesBoxed
+public sealed interface AdditionalPropertiesBoxed
permits
[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedString public static final class AdditionalPropertiesBoxedString
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithOnlyOptionalProps.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithOnlyOptionalProps.md index 08ad45b67d2..c68edabf138 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithOnlyOptionalProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithOnlyOptionalProps.md @@ -4,7 +4,7 @@ public class ObjectWithOnlyOptionalProps
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 +- abstract 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 @@ -33,15 +33,15 @@ A class that contains necessary nested | static class | [ObjectWithOnlyOptionalProps.AdditionalProperties](#additionalproperties)
schema class | ## ObjectWithOnlyOptionalProps1Boxed -public static abstract sealed class ObjectWithOnlyOptionalProps1Boxed
+public sealed interface ObjectWithOnlyOptionalProps1Boxed
permits
[ObjectWithOnlyOptionalProps1BoxedMap](#objectwithonlyoptionalprops1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ObjectWithOnlyOptionalProps1BoxedMap public static final class ObjectWithOnlyOptionalProps1BoxedMap
-extends [ObjectWithOnlyOptionalProps1Boxed](#objectwithonlyoptionalprops1boxed) +implements [ObjectWithOnlyOptionalProps1Boxed](#objectwithonlyoptionalprops1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -137,15 +137,15 @@ A class to store validated Map payloads | Number | b()
[optional] | ## BBoxed -public static abstract sealed class BBoxed
+public sealed interface BBoxed
permits
[BBoxedNumber](#bboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## BBoxedNumber public static final class BBoxedNumber
-extends [BBoxed](#bboxed) +implements [BBoxed](#bboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -171,15 +171,15 @@ A schema class that validates payloads | validateAndBox | ## ABoxed -public static abstract sealed class ABoxed
+public sealed interface ABoxed
permits
[ABoxedString](#aboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ABoxedString public static final class ABoxedString
-extends [ABoxed](#aboxed) +implements [ABoxed](#aboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -205,7 +205,7 @@ A schema class that validates payloads | validateAndBox | ## AdditionalPropertiesBoxed -public static abstract sealed class AdditionalPropertiesBoxed
+public sealed interface AdditionalPropertiesBoxed
permits
[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), [AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), @@ -214,11 +214,11 @@ permits
[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), [AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedVoid public static final class AdditionalPropertiesBoxedVoid
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -234,7 +234,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## AdditionalPropertiesBoxedBoolean public static final class AdditionalPropertiesBoxedBoolean
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -250,7 +250,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## AdditionalPropertiesBoxedNumber public static final class AdditionalPropertiesBoxedNumber
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -266,7 +266,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## AdditionalPropertiesBoxedString public static final class AdditionalPropertiesBoxedString
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -282,7 +282,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## AdditionalPropertiesBoxedList public static final class AdditionalPropertiesBoxedList
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -298,7 +298,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## AdditionalPropertiesBoxedMap public static final class AdditionalPropertiesBoxedMap
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithOptionalTestProp.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithOptionalTestProp.md index 04b95767694..b8b3893b0fd 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithOptionalTestProp.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithOptionalTestProp.md @@ -4,7 +4,7 @@ public class ObjectWithOptionalTestProp
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 +- abstract 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 @@ -22,15 +22,15 @@ A class that contains necessary nested | static class | [ObjectWithOptionalTestProp.Test](#test)
schema class | ## ObjectWithOptionalTestProp1Boxed -public static abstract sealed class ObjectWithOptionalTestProp1Boxed
+public sealed interface ObjectWithOptionalTestProp1Boxed
permits
[ObjectWithOptionalTestProp1BoxedMap](#objectwithoptionaltestprop1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ObjectWithOptionalTestProp1BoxedMap public static final class ObjectWithOptionalTestProp1BoxedMap
-extends [ObjectWithOptionalTestProp1Boxed](#objectwithoptionaltestprop1boxed) +implements [ObjectWithOptionalTestProp1Boxed](#objectwithoptionaltestprop1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -128,15 +128,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## TestBoxed -public static abstract sealed class TestBoxed
+public sealed interface TestBoxed
permits
[TestBoxedString](#testboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## TestBoxedString public static final class TestBoxedString
-extends [TestBoxed](#testboxed) +implements [TestBoxed](#testboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithValidations.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithValidations.md index 188f62b7504..2dfbd25a9b3 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithValidations.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithValidations.md @@ -4,7 +4,7 @@ public class ObjectWithValidations
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 +- abstract 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 @@ -15,15 +15,15 @@ A class that contains necessary nested | static class | [ObjectWithValidations.ObjectWithValidations1](#objectwithvalidations1)
schema class | ## ObjectWithValidations1Boxed -public static abstract sealed class ObjectWithValidations1Boxed
+public sealed interface ObjectWithValidations1Boxed
permits
[ObjectWithValidations1BoxedMap](#objectwithvalidations1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ObjectWithValidations1BoxedMap public static final class ObjectWithValidations1BoxedMap
-extends [ObjectWithValidations1Boxed](#objectwithvalidations1boxed) +implements [ObjectWithValidations1Boxed](#objectwithvalidations1boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/Order.md b/samples/client/petstore/java/docs/components/schemas/Order.md index acaf75e07cc..811a6d14faf 100644 --- a/samples/client/petstore/java/docs/components/schemas/Order.md +++ b/samples/client/petstore/java/docs/components/schemas/Order.md @@ -4,7 +4,7 @@ public class Order
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 +- abstract 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 @@ -39,15 +39,15 @@ A class that contains necessary nested | static class | [Order.Id](#id)
schema class | ## Order1Boxed -public static abstract sealed class Order1Boxed
+public sealed interface Order1Boxed
permits
[Order1BoxedMap](#order1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Order1BoxedMap public static final class Order1BoxedMap
-extends [Order1Boxed](#order1boxed) +implements [Order1Boxed](#order1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -173,15 +173,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## CompleteBoxed -public static abstract sealed class CompleteBoxed
+public sealed interface CompleteBoxed
permits
[CompleteBoxedBoolean](#completeboxedboolean) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## CompleteBoxedBoolean public static final class CompleteBoxedBoolean
-extends [CompleteBoxed](#completeboxed) +implements [CompleteBoxed](#completeboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -207,15 +207,15 @@ A schema class that validates payloads | validateAndBox | ## StatusBoxed -public static abstract sealed class StatusBoxed
+public sealed interface StatusBoxed
permits
[StatusBoxedString](#statusboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## StatusBoxedString public static final class StatusBoxedString
-extends [StatusBoxed](#statusboxed) +implements [StatusBoxed](#statusboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -287,15 +287,15 @@ A class that stores String enum values | DELIVERED | value = "delivered" | ## ShipDateBoxed -public static abstract sealed class ShipDateBoxed
+public sealed interface ShipDateBoxed
permits
[ShipDateBoxedString](#shipdateboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ShipDateBoxedString public static final class ShipDateBoxedString
-extends [ShipDateBoxed](#shipdateboxed) +implements [ShipDateBoxed](#shipdateboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -321,15 +321,15 @@ A schema class that validates payloads | validateAndBox | ## QuantityBoxed -public static abstract sealed class QuantityBoxed
+public sealed interface QuantityBoxed
permits
[QuantityBoxedNumber](#quantityboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## QuantityBoxedNumber public static final class QuantityBoxedNumber
-extends [QuantityBoxed](#quantityboxed) +implements [QuantityBoxed](#quantityboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -355,15 +355,15 @@ A schema class that validates payloads | validateAndBox | ## PetIdBoxed -public static abstract sealed class PetIdBoxed
+public sealed interface PetIdBoxed
permits
[PetIdBoxedNumber](#petidboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## PetIdBoxedNumber public static final class PetIdBoxedNumber
-extends [PetIdBoxed](#petidboxed) +implements [PetIdBoxed](#petidboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -389,15 +389,15 @@ A schema class that validates payloads | validateAndBox | ## IdBoxed -public static abstract sealed class IdBoxed
+public sealed interface IdBoxed
permits
[IdBoxedNumber](#idboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## IdBoxedNumber public static final class IdBoxedNumber
-extends [IdBoxed](#idboxed) +implements [IdBoxed](#idboxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/PaginatedResultMyObjectDto.md b/samples/client/petstore/java/docs/components/schemas/PaginatedResultMyObjectDto.md index 6fd855e88c1..b5aacd75551 100644 --- a/samples/client/petstore/java/docs/components/schemas/PaginatedResultMyObjectDto.md +++ b/samples/client/petstore/java/docs/components/schemas/PaginatedResultMyObjectDto.md @@ -4,7 +4,7 @@ public class PaginatedResultMyObjectDto
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 +- abstract 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 @@ -37,15 +37,15 @@ A class that contains necessary nested | static class | [PaginatedResultMyObjectDto.AdditionalProperties](#additionalproperties)
schema class | ## PaginatedResultMyObjectDto1Boxed -public static abstract sealed class PaginatedResultMyObjectDto1Boxed
+public sealed interface PaginatedResultMyObjectDto1Boxed
permits
[PaginatedResultMyObjectDto1BoxedMap](#paginatedresultmyobjectdto1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## PaginatedResultMyObjectDto1BoxedMap public static final class PaginatedResultMyObjectDto1BoxedMap
-extends [PaginatedResultMyObjectDto1Boxed](#paginatedresultmyobjectdto1boxed) +implements [PaginatedResultMyObjectDto1Boxed](#paginatedresultmyobjectdto1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -194,15 +194,15 @@ A class to store validated Map payloads | [ResultsList](#resultslist) | results()
| ## ResultsBoxed -public static abstract sealed class ResultsBoxed
+public sealed interface ResultsBoxed
permits
[ResultsBoxedList](#resultsboxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ResultsBoxedList public static final class ResultsBoxedList
-extends [ResultsBoxed](#resultsboxed) +implements [ResultsBoxed](#resultsboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -288,15 +288,15 @@ A class to store validated List payloads | static [ResultsList](#resultslist) | of([List>](#resultslistbuilder) arg, SchemaConfiguration configuration) | ## CountBoxed -public static abstract sealed class CountBoxed
+public sealed interface CountBoxed
permits
[CountBoxedNumber](#countboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## CountBoxedNumber public static final class CountBoxedNumber
-extends [CountBoxed](#countboxed) +implements [CountBoxed](#countboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -322,7 +322,7 @@ A schema class that validates payloads | validateAndBox | ## AdditionalPropertiesBoxed -public static abstract sealed class AdditionalPropertiesBoxed
+public sealed interface AdditionalPropertiesBoxed
permits
[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), [AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), @@ -331,11 +331,11 @@ permits
[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), [AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedVoid public static final class AdditionalPropertiesBoxedVoid
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -351,7 +351,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## AdditionalPropertiesBoxedBoolean public static final class AdditionalPropertiesBoxedBoolean
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -367,7 +367,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## AdditionalPropertiesBoxedNumber public static final class AdditionalPropertiesBoxedNumber
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -383,7 +383,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## AdditionalPropertiesBoxedString public static final class AdditionalPropertiesBoxedString
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -399,7 +399,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## AdditionalPropertiesBoxedList public static final class AdditionalPropertiesBoxedList
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -415,7 +415,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## AdditionalPropertiesBoxedMap public static final class AdditionalPropertiesBoxedMap
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ParentPet.md b/samples/client/petstore/java/docs/components/schemas/ParentPet.md index 94a03301eba..a7276fc70fc 100644 --- a/samples/client/petstore/java/docs/components/schemas/ParentPet.md +++ b/samples/client/petstore/java/docs/components/schemas/ParentPet.md @@ -4,7 +4,7 @@ public class ParentPet
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 +- abstract 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 @@ -15,15 +15,15 @@ A class that contains necessary nested | static class | [ParentPet.ParentPet1](#parentpet1)
schema class | ## ParentPet1Boxed -public static abstract sealed class ParentPet1Boxed
+public sealed interface ParentPet1Boxed
permits
[ParentPet1BoxedMap](#parentpet1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ParentPet1BoxedMap public static final class ParentPet1BoxedMap
-extends [ParentPet1Boxed](#parentpet1boxed) +implements [ParentPet1Boxed](#parentpet1boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/Pet.md b/samples/client/petstore/java/docs/components/schemas/Pet.md index 6b786cae553..6f25c26ae64 100644 --- a/samples/client/petstore/java/docs/components/schemas/Pet.md +++ b/samples/client/petstore/java/docs/components/schemas/Pet.md @@ -4,7 +4,7 @@ public class Pet
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 +- abstract 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 @@ -45,15 +45,15 @@ A class that contains necessary nested | static class | [Pet.Id](#id)
schema class | ## Pet1Boxed -public static abstract sealed class Pet1Boxed
+public sealed interface Pet1Boxed
permits
[Pet1BoxedMap](#pet1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Pet1BoxedMap public static final class Pet1BoxedMap
-extends [Pet1Boxed](#pet1boxed) +implements [Pet1Boxed](#pet1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -247,15 +247,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## TagsBoxed -public static abstract sealed class TagsBoxed
+public sealed interface TagsBoxed
permits
[TagsBoxedList](#tagsboxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## TagsBoxedList public static final class TagsBoxedList
-extends [TagsBoxed](#tagsboxed) +implements [TagsBoxed](#tagsboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -353,15 +353,15 @@ A class to store validated List payloads | static [TagsList](#tagslist) | of([List>](#tagslistbuilder) arg, SchemaConfiguration configuration) | ## StatusBoxed -public static abstract sealed class StatusBoxed
+public sealed interface StatusBoxed
permits
[StatusBoxedString](#statusboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## StatusBoxedString public static final class StatusBoxedString
-extends [StatusBoxed](#statusboxed) +implements [StatusBoxed](#statusboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -433,15 +433,15 @@ A class that stores String enum values | SOLD | value = "sold" | ## PhotoUrlsBoxed -public static abstract sealed class PhotoUrlsBoxed
+public sealed interface PhotoUrlsBoxed
permits
[PhotoUrlsBoxedList](#photourlsboxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## PhotoUrlsBoxedList public static final class PhotoUrlsBoxedList
-extends [PhotoUrlsBoxed](#photourlsboxed) +implements [PhotoUrlsBoxed](#photourlsboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -529,15 +529,15 @@ A class to store validated List payloads | static [PhotoUrlsList](#photourlslist) | of([List](#photourlslistbuilder) arg, SchemaConfiguration configuration) | ## ItemsBoxed -public static abstract sealed class ItemsBoxed
+public sealed interface ItemsBoxed
permits
[ItemsBoxedString](#itemsboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ItemsBoxedString public static final class ItemsBoxedString
-extends [ItemsBoxed](#itemsboxed) +implements [ItemsBoxed](#itemsboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -563,15 +563,15 @@ A schema class that validates payloads | validateAndBox | ## NameBoxed -public static abstract sealed class NameBoxed
+public sealed interface NameBoxed
permits
[NameBoxedString](#nameboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## NameBoxedString public static final class NameBoxedString
-extends [NameBoxed](#nameboxed) +implements [NameBoxed](#nameboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -597,15 +597,15 @@ A schema class that validates payloads | validateAndBox | ## IdBoxed -public static abstract sealed class IdBoxed
+public sealed interface IdBoxed
permits
[IdBoxedNumber](#idboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## IdBoxedNumber public static final class IdBoxedNumber
-extends [IdBoxed](#idboxed) +implements [IdBoxed](#idboxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/Pig.md b/samples/client/petstore/java/docs/components/schemas/Pig.md index cb2dfce8695..2ff5bf4d3e0 100644 --- a/samples/client/petstore/java/docs/components/schemas/Pig.md +++ b/samples/client/petstore/java/docs/components/schemas/Pig.md @@ -4,7 +4,7 @@ public class Pig
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 +- abstract 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 @@ -20,7 +20,7 @@ A class that contains necessary nested | static class | [Pig.Pig1](#pig1)
schema class | ## Pig1Boxed -public static abstract sealed class Pig1Boxed
+public sealed interface Pig1Boxed
permits
[Pig1BoxedVoid](#pig1boxedvoid), [Pig1BoxedBoolean](#pig1boxedboolean), @@ -29,11 +29,11 @@ permits
[Pig1BoxedList](#pig1boxedlist), [Pig1BoxedMap](#pig1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Pig1BoxedVoid public static final class Pig1BoxedVoid
-extends [Pig1Boxed](#pig1boxed) +implements [Pig1Boxed](#pig1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -49,7 +49,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## Pig1BoxedBoolean public static final class Pig1BoxedBoolean
-extends [Pig1Boxed](#pig1boxed) +implements [Pig1Boxed](#pig1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -65,7 +65,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## Pig1BoxedNumber public static final class Pig1BoxedNumber
-extends [Pig1Boxed](#pig1boxed) +implements [Pig1Boxed](#pig1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -81,7 +81,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## Pig1BoxedString public static final class Pig1BoxedString
-extends [Pig1Boxed](#pig1boxed) +implements [Pig1Boxed](#pig1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -97,7 +97,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## Pig1BoxedList public static final class Pig1BoxedList
-extends [Pig1Boxed](#pig1boxed) +implements [Pig1Boxed](#pig1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -113,7 +113,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## Pig1BoxedMap public static final class Pig1BoxedMap
-extends [Pig1Boxed](#pig1boxed) +implements [Pig1Boxed](#pig1boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/Player.md b/samples/client/petstore/java/docs/components/schemas/Player.md index 561cce40b42..944543f8ee7 100644 --- a/samples/client/petstore/java/docs/components/schemas/Player.md +++ b/samples/client/petstore/java/docs/components/schemas/Player.md @@ -4,7 +4,7 @@ public class Player
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 +- abstract 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 @@ -22,15 +22,15 @@ A class that contains necessary nested | static class | [Player.Name](#name)
schema class | ## Player1Boxed -public static abstract sealed class Player1Boxed
+public sealed interface Player1Boxed
permits
[Player1BoxedMap](#player1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Player1BoxedMap public static final class Player1BoxedMap
-extends [Player1Boxed](#player1boxed) +implements [Player1Boxed](#player1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -133,15 +133,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## NameBoxed -public static abstract sealed class NameBoxed
+public sealed interface NameBoxed
permits
[NameBoxedString](#nameboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## NameBoxedString public static final class NameBoxedString
-extends [NameBoxed](#nameboxed) +implements [NameBoxed](#nameboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/PublicKey.md b/samples/client/petstore/java/docs/components/schemas/PublicKey.md index f236e44bfc7..fe47b646eb3 100644 --- a/samples/client/petstore/java/docs/components/schemas/PublicKey.md +++ b/samples/client/petstore/java/docs/components/schemas/PublicKey.md @@ -4,7 +4,7 @@ public class PublicKey
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 +- abstract 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 @@ -22,15 +22,15 @@ A class that contains necessary nested | static class | [PublicKey.Key](#key)
schema class | ## PublicKey1Boxed -public static abstract sealed class PublicKey1Boxed
+public sealed interface PublicKey1Boxed
permits
[PublicKey1BoxedMap](#publickey1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## PublicKey1BoxedMap public static final class PublicKey1BoxedMap
-extends [PublicKey1Boxed](#publickey1boxed) +implements [PublicKey1Boxed](#publickey1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -131,15 +131,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## KeyBoxed -public static abstract sealed class KeyBoxed
+public sealed interface KeyBoxed
permits
[KeyBoxedString](#keyboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## KeyBoxedString public static final class KeyBoxedString
-extends [KeyBoxed](#keyboxed) +implements [KeyBoxed](#keyboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/Quadrilateral.md b/samples/client/petstore/java/docs/components/schemas/Quadrilateral.md index b6a535854b7..b5f60adf27b 100644 --- a/samples/client/petstore/java/docs/components/schemas/Quadrilateral.md +++ b/samples/client/petstore/java/docs/components/schemas/Quadrilateral.md @@ -4,7 +4,7 @@ public class Quadrilateral
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 +- abstract 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 @@ -20,7 +20,7 @@ A class that contains necessary nested | static class | [Quadrilateral.Quadrilateral1](#quadrilateral1)
schema class | ## Quadrilateral1Boxed -public static abstract sealed class Quadrilateral1Boxed
+public sealed interface Quadrilateral1Boxed
permits
[Quadrilateral1BoxedVoid](#quadrilateral1boxedvoid), [Quadrilateral1BoxedBoolean](#quadrilateral1boxedboolean), @@ -29,11 +29,11 @@ permits
[Quadrilateral1BoxedList](#quadrilateral1boxedlist), [Quadrilateral1BoxedMap](#quadrilateral1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Quadrilateral1BoxedVoid public static final class Quadrilateral1BoxedVoid
-extends [Quadrilateral1Boxed](#quadrilateral1boxed) +implements [Quadrilateral1Boxed](#quadrilateral1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -49,7 +49,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## Quadrilateral1BoxedBoolean public static final class Quadrilateral1BoxedBoolean
-extends [Quadrilateral1Boxed](#quadrilateral1boxed) +implements [Quadrilateral1Boxed](#quadrilateral1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -65,7 +65,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## Quadrilateral1BoxedNumber public static final class Quadrilateral1BoxedNumber
-extends [Quadrilateral1Boxed](#quadrilateral1boxed) +implements [Quadrilateral1Boxed](#quadrilateral1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -81,7 +81,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## Quadrilateral1BoxedString public static final class Quadrilateral1BoxedString
-extends [Quadrilateral1Boxed](#quadrilateral1boxed) +implements [Quadrilateral1Boxed](#quadrilateral1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -97,7 +97,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## Quadrilateral1BoxedList public static final class Quadrilateral1BoxedList
-extends [Quadrilateral1Boxed](#quadrilateral1boxed) +implements [Quadrilateral1Boxed](#quadrilateral1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -113,7 +113,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## Quadrilateral1BoxedMap public static final class Quadrilateral1BoxedMap
-extends [Quadrilateral1Boxed](#quadrilateral1boxed) +implements [Quadrilateral1Boxed](#quadrilateral1boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/QuadrilateralInterface.md b/samples/client/petstore/java/docs/components/schemas/QuadrilateralInterface.md index a4e277a9c49..6caf9a235f7 100644 --- a/samples/client/petstore/java/docs/components/schemas/QuadrilateralInterface.md +++ b/samples/client/petstore/java/docs/components/schemas/QuadrilateralInterface.md @@ -4,7 +4,7 @@ public class QuadrilateralInterface
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 +- abstract 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 @@ -32,7 +32,7 @@ A class that contains necessary nested | enum | [QuadrilateralInterface.StringShapeTypeEnums](#stringshapetypeenums)
String enum | ## QuadrilateralInterface1Boxed -public static abstract sealed class QuadrilateralInterface1Boxed
+public sealed interface QuadrilateralInterface1Boxed
permits
[QuadrilateralInterface1BoxedVoid](#quadrilateralinterface1boxedvoid), [QuadrilateralInterface1BoxedBoolean](#quadrilateralinterface1boxedboolean), @@ -41,11 +41,11 @@ permits
[QuadrilateralInterface1BoxedList](#quadrilateralinterface1boxedlist), [QuadrilateralInterface1BoxedMap](#quadrilateralinterface1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## QuadrilateralInterface1BoxedVoid public static final class QuadrilateralInterface1BoxedVoid
-extends [QuadrilateralInterface1Boxed](#quadrilateralinterface1boxed) +implements [QuadrilateralInterface1Boxed](#quadrilateralinterface1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -61,7 +61,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## QuadrilateralInterface1BoxedBoolean public static final class QuadrilateralInterface1BoxedBoolean
-extends [QuadrilateralInterface1Boxed](#quadrilateralinterface1boxed) +implements [QuadrilateralInterface1Boxed](#quadrilateralinterface1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -77,7 +77,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## QuadrilateralInterface1BoxedNumber public static final class QuadrilateralInterface1BoxedNumber
-extends [QuadrilateralInterface1Boxed](#quadrilateralinterface1boxed) +implements [QuadrilateralInterface1Boxed](#quadrilateralinterface1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -93,7 +93,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## QuadrilateralInterface1BoxedString public static final class QuadrilateralInterface1BoxedString
-extends [QuadrilateralInterface1Boxed](#quadrilateralinterface1boxed) +implements [QuadrilateralInterface1Boxed](#quadrilateralinterface1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -109,7 +109,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## QuadrilateralInterface1BoxedList public static final class QuadrilateralInterface1BoxedList
-extends [QuadrilateralInterface1Boxed](#quadrilateralinterface1boxed) +implements [QuadrilateralInterface1Boxed](#quadrilateralinterface1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -125,7 +125,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## QuadrilateralInterface1BoxedMap public static final class QuadrilateralInterface1BoxedMap
-extends [QuadrilateralInterface1Boxed](#quadrilateralinterface1boxed) +implements [QuadrilateralInterface1Boxed](#quadrilateralinterface1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -262,15 +262,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## QuadrilateralTypeBoxed -public static abstract sealed class QuadrilateralTypeBoxed
+public sealed interface QuadrilateralTypeBoxed
permits
[QuadrilateralTypeBoxedString](#quadrilateraltypeboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## QuadrilateralTypeBoxedString public static final class QuadrilateralTypeBoxedString
-extends [QuadrilateralTypeBoxed](#quadrilateraltypeboxed) +implements [QuadrilateralTypeBoxed](#quadrilateraltypeboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -296,15 +296,15 @@ A schema class that validates payloads | validateAndBox | ## ShapeTypeBoxed -public static abstract sealed class ShapeTypeBoxed
+public sealed interface ShapeTypeBoxed
permits
[ShapeTypeBoxedString](#shapetypeboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ShapeTypeBoxedString public static final class ShapeTypeBoxedString
-extends [ShapeTypeBoxed](#shapetypeboxed) +implements [ShapeTypeBoxed](#shapetypeboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ReadOnlyFirst.md b/samples/client/petstore/java/docs/components/schemas/ReadOnlyFirst.md index 4bbe0bd88cf..7f63a1b35ec 100644 --- a/samples/client/petstore/java/docs/components/schemas/ReadOnlyFirst.md +++ b/samples/client/petstore/java/docs/components/schemas/ReadOnlyFirst.md @@ -4,7 +4,7 @@ public class ReadOnlyFirst
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 +- abstract 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 @@ -25,15 +25,15 @@ A class that contains necessary nested | static class | [ReadOnlyFirst.Bar](#bar)
schema class | ## ReadOnlyFirst1Boxed -public static abstract sealed class ReadOnlyFirst1Boxed
+public sealed interface ReadOnlyFirst1Boxed
permits
[ReadOnlyFirst1BoxedMap](#readonlyfirst1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ReadOnlyFirst1BoxedMap public static final class ReadOnlyFirst1BoxedMap
-extends [ReadOnlyFirst1Boxed](#readonlyfirst1boxed) +implements [ReadOnlyFirst1Boxed](#readonlyfirst1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -135,15 +135,15 @@ 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
[BazBoxedString](#bazboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## BazBoxedString public static final class BazBoxedString
-extends [BazBoxed](#bazboxed) +implements [BazBoxed](#bazboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -169,15 +169,15 @@ A schema class that validates payloads | validateAndBox | ## 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) +implements [BarBoxed](#barboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/RefPet.md b/samples/client/petstore/java/docs/components/schemas/RefPet.md index c27a5bea0a7..2abbdcb47f9 100644 --- a/samples/client/petstore/java/docs/components/schemas/RefPet.md +++ b/samples/client/petstore/java/docs/components/schemas/RefPet.md @@ -5,7 +5,7 @@ extends [Pet1](../../components/schemas/Pet.md#pet) 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromExplicitAddProps.md b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromExplicitAddProps.md index 54600fa559a..f3881bfc9cb 100644 --- a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromExplicitAddProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromExplicitAddProps.md @@ -4,7 +4,7 @@ public class ReqPropsFromExplicitAddProps
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 +- abstract 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 @@ -22,15 +22,15 @@ A class that contains necessary nested | static class | [ReqPropsFromExplicitAddProps.AdditionalProperties](#additionalproperties)
schema class | ## ReqPropsFromExplicitAddProps1Boxed -public static abstract sealed class ReqPropsFromExplicitAddProps1Boxed
+public sealed interface ReqPropsFromExplicitAddProps1Boxed
permits
[ReqPropsFromExplicitAddProps1BoxedMap](#reqpropsfromexplicitaddprops1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ReqPropsFromExplicitAddProps1BoxedMap public static final class ReqPropsFromExplicitAddProps1BoxedMap
-extends [ReqPropsFromExplicitAddProps1Boxed](#reqpropsfromexplicitaddprops1boxed) +implements [ReqPropsFromExplicitAddProps1Boxed](#reqpropsfromexplicitaddprops1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -170,15 +170,15 @@ A class to store validated Map payloads | String | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalPropertiesBoxed -public static abstract sealed class AdditionalPropertiesBoxed
+public sealed interface AdditionalPropertiesBoxed
permits
[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedString public static final class AdditionalPropertiesBoxedString
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromTrueAddProps.md b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromTrueAddProps.md index 1ae8a7e0233..e3a439f5eaf 100644 --- a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromTrueAddProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromTrueAddProps.md @@ -4,7 +4,7 @@ public class ReqPropsFromTrueAddProps
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 +- abstract 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 @@ -27,15 +27,15 @@ A class that contains necessary nested | static class | [ReqPropsFromTrueAddProps.AdditionalProperties](#additionalproperties)
schema class | ## ReqPropsFromTrueAddProps1Boxed -public static abstract sealed class ReqPropsFromTrueAddProps1Boxed
+public sealed interface ReqPropsFromTrueAddProps1Boxed
permits
[ReqPropsFromTrueAddProps1BoxedMap](#reqpropsfromtrueaddprops1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ReqPropsFromTrueAddProps1BoxedMap public static final class ReqPropsFromTrueAddProps1BoxedMap
-extends [ReqPropsFromTrueAddProps1Boxed](#reqpropsfromtrueaddprops1boxed) +implements [ReqPropsFromTrueAddProps1Boxed](#reqpropsfromtrueaddprops1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -213,7 +213,7 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalPropertiesBoxed -public static abstract sealed class AdditionalPropertiesBoxed
+public sealed interface AdditionalPropertiesBoxed
permits
[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), [AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), @@ -222,11 +222,11 @@ permits
[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), [AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedVoid public static final class AdditionalPropertiesBoxedVoid
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -242,7 +242,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## AdditionalPropertiesBoxedBoolean public static final class AdditionalPropertiesBoxedBoolean
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -258,7 +258,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## AdditionalPropertiesBoxedNumber public static final class AdditionalPropertiesBoxedNumber
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -274,7 +274,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## AdditionalPropertiesBoxedString public static final class AdditionalPropertiesBoxedString
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -290,7 +290,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## AdditionalPropertiesBoxedList public static final class AdditionalPropertiesBoxedList
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -306,7 +306,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## AdditionalPropertiesBoxedMap public static final class AdditionalPropertiesBoxedMap
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromUnsetAddProps.md b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromUnsetAddProps.md index 1dcb152055b..0d5adfd3b34 100644 --- a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromUnsetAddProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromUnsetAddProps.md @@ -4,7 +4,7 @@ public class ReqPropsFromUnsetAddProps
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 +- abstract 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 @@ -19,15 +19,15 @@ A class that contains necessary nested | static class | [ReqPropsFromUnsetAddProps.ReqPropsFromUnsetAddPropsMap](#reqpropsfromunsetaddpropsmap)
output class for Map payloads | ## ReqPropsFromUnsetAddProps1Boxed -public static abstract sealed class ReqPropsFromUnsetAddProps1Boxed
+public sealed interface ReqPropsFromUnsetAddProps1Boxed
permits
[ReqPropsFromUnsetAddProps1BoxedMap](#reqpropsfromunsetaddprops1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ReqPropsFromUnsetAddProps1BoxedMap public static final class ReqPropsFromUnsetAddProps1BoxedMap
-extends [ReqPropsFromUnsetAddProps1Boxed](#reqpropsfromunsetaddprops1boxed) +implements [ReqPropsFromUnsetAddProps1Boxed](#reqpropsfromunsetaddprops1boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ReturnSchema.md b/samples/client/petstore/java/docs/components/schemas/ReturnSchema.md index 4420c708a9c..725c066567d 100644 --- a/samples/client/petstore/java/docs/components/schemas/ReturnSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/ReturnSchema.md @@ -4,7 +4,7 @@ public class ReturnSchema
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 +- abstract 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 @@ -27,7 +27,7 @@ A class that contains necessary nested | static class | [ReturnSchema.ReturnSchema2](#returnschema2)
schema class | ## ReturnSchema1Boxed -public static abstract sealed class ReturnSchema1Boxed
+public sealed interface ReturnSchema1Boxed
permits
[ReturnSchema1BoxedVoid](#returnschema1boxedvoid), [ReturnSchema1BoxedBoolean](#returnschema1boxedboolean), @@ -36,11 +36,11 @@ permits
[ReturnSchema1BoxedList](#returnschema1boxedlist), [ReturnSchema1BoxedMap](#returnschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ReturnSchema1BoxedVoid public static final class ReturnSchema1BoxedVoid
-extends [ReturnSchema1Boxed](#returnschema1boxed) +implements [ReturnSchema1Boxed](#returnschema1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -56,7 +56,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ReturnSchema1BoxedBoolean public static final class ReturnSchema1BoxedBoolean
-extends [ReturnSchema1Boxed](#returnschema1boxed) +implements [ReturnSchema1Boxed](#returnschema1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -72,7 +72,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## ReturnSchema1BoxedNumber public static final class ReturnSchema1BoxedNumber
-extends [ReturnSchema1Boxed](#returnschema1boxed) +implements [ReturnSchema1Boxed](#returnschema1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -88,7 +88,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## ReturnSchema1BoxedString public static final class ReturnSchema1BoxedString
-extends [ReturnSchema1Boxed](#returnschema1boxed) +implements [ReturnSchema1Boxed](#returnschema1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -104,7 +104,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## ReturnSchema1BoxedList public static final class ReturnSchema1BoxedList
-extends [ReturnSchema1Boxed](#returnschema1boxed) +implements [ReturnSchema1Boxed](#returnschema1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -120,7 +120,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## ReturnSchema1BoxedMap public static final class ReturnSchema1BoxedMap
-extends [ReturnSchema1Boxed](#returnschema1boxed) +implements [ReturnSchema1Boxed](#returnschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -209,15 +209,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## ReturnSchema2Boxed -public static abstract sealed class ReturnSchema2Boxed
+public sealed interface ReturnSchema2Boxed
permits
[ReturnSchema2BoxedNumber](#returnschema2boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ReturnSchema2BoxedNumber public static final class ReturnSchema2BoxedNumber
-extends [ReturnSchema2Boxed](#returnschema2boxed) +implements [ReturnSchema2Boxed](#returnschema2boxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ScaleneTriangle.md b/samples/client/petstore/java/docs/components/schemas/ScaleneTriangle.md index 714ffbcad82..0d0bd386213 100644 --- a/samples/client/petstore/java/docs/components/schemas/ScaleneTriangle.md +++ b/samples/client/petstore/java/docs/components/schemas/ScaleneTriangle.md @@ -4,7 +4,7 @@ public class ScaleneTriangle
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 +- abstract 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 @@ -32,7 +32,7 @@ A class that contains necessary nested | enum | [ScaleneTriangle.StringTriangleTypeEnums](#stringtriangletypeenums)
String enum | ## ScaleneTriangle1Boxed -public static abstract sealed class ScaleneTriangle1Boxed
+public sealed interface ScaleneTriangle1Boxed
permits
[ScaleneTriangle1BoxedVoid](#scalenetriangle1boxedvoid), [ScaleneTriangle1BoxedBoolean](#scalenetriangle1boxedboolean), @@ -41,11 +41,11 @@ permits
[ScaleneTriangle1BoxedList](#scalenetriangle1boxedlist), [ScaleneTriangle1BoxedMap](#scalenetriangle1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ScaleneTriangle1BoxedVoid public static final class ScaleneTriangle1BoxedVoid
-extends [ScaleneTriangle1Boxed](#scalenetriangle1boxed) +implements [ScaleneTriangle1Boxed](#scalenetriangle1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -61,7 +61,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ScaleneTriangle1BoxedBoolean public static final class ScaleneTriangle1BoxedBoolean
-extends [ScaleneTriangle1Boxed](#scalenetriangle1boxed) +implements [ScaleneTriangle1Boxed](#scalenetriangle1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -77,7 +77,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## ScaleneTriangle1BoxedNumber public static final class ScaleneTriangle1BoxedNumber
-extends [ScaleneTriangle1Boxed](#scalenetriangle1boxed) +implements [ScaleneTriangle1Boxed](#scalenetriangle1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -93,7 +93,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## ScaleneTriangle1BoxedString public static final class ScaleneTriangle1BoxedString
-extends [ScaleneTriangle1Boxed](#scalenetriangle1boxed) +implements [ScaleneTriangle1Boxed](#scalenetriangle1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -109,7 +109,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## ScaleneTriangle1BoxedList public static final class ScaleneTriangle1BoxedList
-extends [ScaleneTriangle1Boxed](#scalenetriangle1boxed) +implements [ScaleneTriangle1Boxed](#scalenetriangle1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -125,7 +125,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## ScaleneTriangle1BoxedMap public static final class ScaleneTriangle1BoxedMap
-extends [ScaleneTriangle1Boxed](#scalenetriangle1boxed) +implements [ScaleneTriangle1Boxed](#scalenetriangle1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -171,15 +171,15 @@ A schema class that validates payloads | [ScaleneTriangle1BoxedList](#scalenetriangle1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## Schema1Boxed -public static abstract sealed class Schema1Boxed
+public sealed interface Schema1Boxed
permits
[Schema1BoxedMap](#schema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema1BoxedMap public static final class Schema1BoxedMap
-extends [Schema1Boxed](#schema1boxed) +implements [Schema1Boxed](#schema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -278,15 +278,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## TriangleTypeBoxed -public static abstract sealed class TriangleTypeBoxed
+public sealed interface TriangleTypeBoxed
permits
[TriangleTypeBoxedString](#triangletypeboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## TriangleTypeBoxedString public static final class TriangleTypeBoxedString
-extends [TriangleTypeBoxed](#triangletypeboxed) +implements [TriangleTypeBoxed](#triangletypeboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/Schema200Response.md b/samples/client/petstore/java/docs/components/schemas/Schema200Response.md index 0435046ef80..843bc41e517 100644 --- a/samples/client/petstore/java/docs/components/schemas/Schema200Response.md +++ b/samples/client/petstore/java/docs/components/schemas/Schema200Response.md @@ -4,7 +4,7 @@ public class Schema200Response
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 +- abstract 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 @@ -30,7 +30,7 @@ A class that contains necessary nested | static class | [Schema200Response.Name](#name)
schema class | ## Schema200Response1Boxed -public static abstract sealed class Schema200Response1Boxed
+public sealed interface Schema200Response1Boxed
permits
[Schema200Response1BoxedVoid](#schema200response1boxedvoid), [Schema200Response1BoxedBoolean](#schema200response1boxedboolean), @@ -39,11 +39,11 @@ permits
[Schema200Response1BoxedList](#schema200response1boxedlist), [Schema200Response1BoxedMap](#schema200response1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema200Response1BoxedVoid public static final class Schema200Response1BoxedVoid
-extends [Schema200Response1Boxed](#schema200response1boxed) +implements [Schema200Response1Boxed](#schema200response1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -59,7 +59,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## Schema200Response1BoxedBoolean public static final class Schema200Response1BoxedBoolean
-extends [Schema200Response1Boxed](#schema200response1boxed) +implements [Schema200Response1Boxed](#schema200response1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -75,7 +75,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## Schema200Response1BoxedNumber public static final class Schema200Response1BoxedNumber
-extends [Schema200Response1Boxed](#schema200response1boxed) +implements [Schema200Response1Boxed](#schema200response1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -91,7 +91,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## Schema200Response1BoxedString public static final class Schema200Response1BoxedString
-extends [Schema200Response1Boxed](#schema200response1boxed) +implements [Schema200Response1Boxed](#schema200response1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -107,7 +107,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## Schema200Response1BoxedList public static final class Schema200Response1BoxedList
-extends [Schema200Response1Boxed](#schema200response1boxed) +implements [Schema200Response1Boxed](#schema200response1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -123,7 +123,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## Schema200Response1BoxedMap public static final class Schema200Response1BoxedMap
-extends [Schema200Response1Boxed](#schema200response1boxed) +implements [Schema200Response1Boxed](#schema200response1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -214,15 +214,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## ClassSchemaBoxed -public static abstract sealed class ClassSchemaBoxed
+public sealed interface ClassSchemaBoxed
permits
[ClassSchemaBoxedString](#classschemaboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ClassSchemaBoxedString public static final class ClassSchemaBoxedString
-extends [ClassSchemaBoxed](#classschemaboxed) +implements [ClassSchemaBoxed](#classschemaboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -251,15 +251,15 @@ this is a reserved python keyword | validateAndBox | ## NameBoxed -public static abstract sealed class NameBoxed
+public sealed interface NameBoxed
permits
[NameBoxedNumber](#nameboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## NameBoxedNumber public static final class NameBoxedNumber
-extends [NameBoxed](#nameboxed) +implements [NameBoxed](#nameboxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/SelfReferencingArrayModel.md b/samples/client/petstore/java/docs/components/schemas/SelfReferencingArrayModel.md index 8e08753da72..e2cb2ae4772 100644 --- a/samples/client/petstore/java/docs/components/schemas/SelfReferencingArrayModel.md +++ b/samples/client/petstore/java/docs/components/schemas/SelfReferencingArrayModel.md @@ -4,7 +4,7 @@ public class SelfReferencingArrayModel
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 +- abstract 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 @@ -19,15 +19,15 @@ A class that contains necessary nested | static class | [SelfReferencingArrayModel.SelfReferencingArrayModelList](#selfreferencingarraymodellist)
output class for List payloads | ## SelfReferencingArrayModel1Boxed -public static abstract sealed class SelfReferencingArrayModel1Boxed
+public sealed interface SelfReferencingArrayModel1Boxed
permits
[SelfReferencingArrayModel1BoxedList](#selfreferencingarraymodel1boxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## SelfReferencingArrayModel1BoxedList public static final class SelfReferencingArrayModel1BoxedList
-extends [SelfReferencingArrayModel1Boxed](#selfreferencingarraymodel1boxed) +implements [SelfReferencingArrayModel1Boxed](#selfreferencingarraymodel1boxed) a boxed class to store validated List payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/SelfReferencingObjectModel.md b/samples/client/petstore/java/docs/components/schemas/SelfReferencingObjectModel.md index 1b4d9c8fd47..5cffe2ed589 100644 --- a/samples/client/petstore/java/docs/components/schemas/SelfReferencingObjectModel.md +++ b/samples/client/petstore/java/docs/components/schemas/SelfReferencingObjectModel.md @@ -4,7 +4,7 @@ public class SelfReferencingObjectModel
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 +- abstract 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 @@ -19,15 +19,15 @@ A class that contains necessary nested | static class | [SelfReferencingObjectModel.SelfReferencingObjectModelMap](#selfreferencingobjectmodelmap)
output class for Map payloads | ## SelfReferencingObjectModel1Boxed -public static abstract sealed class SelfReferencingObjectModel1Boxed
+public sealed interface SelfReferencingObjectModel1Boxed
permits
[SelfReferencingObjectModel1BoxedMap](#selfreferencingobjectmodel1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## SelfReferencingObjectModel1BoxedMap public static final class SelfReferencingObjectModel1BoxedMap
-extends [SelfReferencingObjectModel1Boxed](#selfreferencingobjectmodel1boxed) +implements [SelfReferencingObjectModel1Boxed](#selfreferencingobjectmodel1boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/Shape.md b/samples/client/petstore/java/docs/components/schemas/Shape.md index 4ebe882efae..6a07a5179eb 100644 --- a/samples/client/petstore/java/docs/components/schemas/Shape.md +++ b/samples/client/petstore/java/docs/components/schemas/Shape.md @@ -4,7 +4,7 @@ public class Shape
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 +- abstract 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 @@ -20,7 +20,7 @@ A class that contains necessary nested | static class | [Shape.Shape1](#shape1)
schema class | ## Shape1Boxed -public static abstract sealed class Shape1Boxed
+public sealed interface Shape1Boxed
permits
[Shape1BoxedVoid](#shape1boxedvoid), [Shape1BoxedBoolean](#shape1boxedboolean), @@ -29,11 +29,11 @@ permits
[Shape1BoxedList](#shape1boxedlist), [Shape1BoxedMap](#shape1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Shape1BoxedVoid public static final class Shape1BoxedVoid
-extends [Shape1Boxed](#shape1boxed) +implements [Shape1Boxed](#shape1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -49,7 +49,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## Shape1BoxedBoolean public static final class Shape1BoxedBoolean
-extends [Shape1Boxed](#shape1boxed) +implements [Shape1Boxed](#shape1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -65,7 +65,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## Shape1BoxedNumber public static final class Shape1BoxedNumber
-extends [Shape1Boxed](#shape1boxed) +implements [Shape1Boxed](#shape1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -81,7 +81,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## Shape1BoxedString public static final class Shape1BoxedString
-extends [Shape1Boxed](#shape1boxed) +implements [Shape1Boxed](#shape1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -97,7 +97,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## Shape1BoxedList public static final class Shape1BoxedList
-extends [Shape1Boxed](#shape1boxed) +implements [Shape1Boxed](#shape1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -113,7 +113,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## Shape1BoxedMap public static final class Shape1BoxedMap
-extends [Shape1Boxed](#shape1boxed) +implements [Shape1Boxed](#shape1boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/ShapeOrNull.md b/samples/client/petstore/java/docs/components/schemas/ShapeOrNull.md index bec6a14b97e..797ab1f8a86 100644 --- a/samples/client/petstore/java/docs/components/schemas/ShapeOrNull.md +++ b/samples/client/petstore/java/docs/components/schemas/ShapeOrNull.md @@ -4,7 +4,7 @@ public class ShapeOrNull
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 +- abstract 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 @@ -23,7 +23,7 @@ A class that contains necessary nested | static class | [ShapeOrNull.Schema0](#schema0)
schema class | ## ShapeOrNull1Boxed -public static abstract sealed class ShapeOrNull1Boxed
+public sealed interface ShapeOrNull1Boxed
permits
[ShapeOrNull1BoxedVoid](#shapeornull1boxedvoid), [ShapeOrNull1BoxedBoolean](#shapeornull1boxedboolean), @@ -32,11 +32,11 @@ permits
[ShapeOrNull1BoxedList](#shapeornull1boxedlist), [ShapeOrNull1BoxedMap](#shapeornull1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ShapeOrNull1BoxedVoid public static final class ShapeOrNull1BoxedVoid
-extends [ShapeOrNull1Boxed](#shapeornull1boxed) +implements [ShapeOrNull1Boxed](#shapeornull1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -52,7 +52,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ShapeOrNull1BoxedBoolean public static final class ShapeOrNull1BoxedBoolean
-extends [ShapeOrNull1Boxed](#shapeornull1boxed) +implements [ShapeOrNull1Boxed](#shapeornull1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -68,7 +68,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## ShapeOrNull1BoxedNumber public static final class ShapeOrNull1BoxedNumber
-extends [ShapeOrNull1Boxed](#shapeornull1boxed) +implements [ShapeOrNull1Boxed](#shapeornull1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -84,7 +84,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## ShapeOrNull1BoxedString public static final class ShapeOrNull1BoxedString
-extends [ShapeOrNull1Boxed](#shapeornull1boxed) +implements [ShapeOrNull1Boxed](#shapeornull1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -100,7 +100,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## ShapeOrNull1BoxedList public static final class ShapeOrNull1BoxedList
-extends [ShapeOrNull1Boxed](#shapeornull1boxed) +implements [ShapeOrNull1Boxed](#shapeornull1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -116,7 +116,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## ShapeOrNull1BoxedMap public static final class ShapeOrNull1BoxedMap
-extends [ShapeOrNull1Boxed](#shapeornull1boxed) +implements [ShapeOrNull1Boxed](#shapeornull1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -165,15 +165,15 @@ The value may be a shape or the 'null' value. This is introduced in OA | [ShapeOrNull1BoxedList](#shapeornull1boxedlist) | validateAndBox(List 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) -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) +implements [Schema0Boxed](#schema0boxed) a boxed class to store validated null payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/SimpleQuadrilateral.md b/samples/client/petstore/java/docs/components/schemas/SimpleQuadrilateral.md index 153bf41d5d4..6bc96b3a513 100644 --- a/samples/client/petstore/java/docs/components/schemas/SimpleQuadrilateral.md +++ b/samples/client/petstore/java/docs/components/schemas/SimpleQuadrilateral.md @@ -4,7 +4,7 @@ public class SimpleQuadrilateral
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 +- abstract 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 @@ -32,7 +32,7 @@ A class that contains necessary nested | enum | [SimpleQuadrilateral.StringQuadrilateralTypeEnums](#stringquadrilateraltypeenums)
String enum | ## SimpleQuadrilateral1Boxed -public static abstract sealed class SimpleQuadrilateral1Boxed
+public sealed interface SimpleQuadrilateral1Boxed
permits
[SimpleQuadrilateral1BoxedVoid](#simplequadrilateral1boxedvoid), [SimpleQuadrilateral1BoxedBoolean](#simplequadrilateral1boxedboolean), @@ -41,11 +41,11 @@ permits
[SimpleQuadrilateral1BoxedList](#simplequadrilateral1boxedlist), [SimpleQuadrilateral1BoxedMap](#simplequadrilateral1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## SimpleQuadrilateral1BoxedVoid public static final class SimpleQuadrilateral1BoxedVoid
-extends [SimpleQuadrilateral1Boxed](#simplequadrilateral1boxed) +implements [SimpleQuadrilateral1Boxed](#simplequadrilateral1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -61,7 +61,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## SimpleQuadrilateral1BoxedBoolean public static final class SimpleQuadrilateral1BoxedBoolean
-extends [SimpleQuadrilateral1Boxed](#simplequadrilateral1boxed) +implements [SimpleQuadrilateral1Boxed](#simplequadrilateral1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -77,7 +77,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## SimpleQuadrilateral1BoxedNumber public static final class SimpleQuadrilateral1BoxedNumber
-extends [SimpleQuadrilateral1Boxed](#simplequadrilateral1boxed) +implements [SimpleQuadrilateral1Boxed](#simplequadrilateral1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -93,7 +93,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## SimpleQuadrilateral1BoxedString public static final class SimpleQuadrilateral1BoxedString
-extends [SimpleQuadrilateral1Boxed](#simplequadrilateral1boxed) +implements [SimpleQuadrilateral1Boxed](#simplequadrilateral1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -109,7 +109,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## SimpleQuadrilateral1BoxedList public static final class SimpleQuadrilateral1BoxedList
-extends [SimpleQuadrilateral1Boxed](#simplequadrilateral1boxed) +implements [SimpleQuadrilateral1Boxed](#simplequadrilateral1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -125,7 +125,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## SimpleQuadrilateral1BoxedMap public static final class SimpleQuadrilateral1BoxedMap
-extends [SimpleQuadrilateral1Boxed](#simplequadrilateral1boxed) +implements [SimpleQuadrilateral1Boxed](#simplequadrilateral1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -171,15 +171,15 @@ A schema class that validates payloads | [SimpleQuadrilateral1BoxedList](#simplequadrilateral1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## Schema1Boxed -public static abstract sealed class Schema1Boxed
+public sealed interface Schema1Boxed
permits
[Schema1BoxedMap](#schema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema1BoxedMap public static final class Schema1BoxedMap
-extends [Schema1Boxed](#schema1boxed) +implements [Schema1Boxed](#schema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -278,15 +278,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## QuadrilateralTypeBoxed -public static abstract sealed class QuadrilateralTypeBoxed
+public sealed interface QuadrilateralTypeBoxed
permits
[QuadrilateralTypeBoxedString](#quadrilateraltypeboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## QuadrilateralTypeBoxedString public static final class QuadrilateralTypeBoxedString
-extends [QuadrilateralTypeBoxed](#quadrilateraltypeboxed) +implements [QuadrilateralTypeBoxed](#quadrilateraltypeboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/SomeObject.md b/samples/client/petstore/java/docs/components/schemas/SomeObject.md index 2c782576465..eb63109cbac 100644 --- a/samples/client/petstore/java/docs/components/schemas/SomeObject.md +++ b/samples/client/petstore/java/docs/components/schemas/SomeObject.md @@ -4,7 +4,7 @@ public class SomeObject
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 +- abstract 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 @@ -20,7 +20,7 @@ A class that contains necessary nested | static class | [SomeObject.SomeObject1](#someobject1)
schema class | ## SomeObject1Boxed -public static abstract sealed class SomeObject1Boxed
+public sealed interface SomeObject1Boxed
permits
[SomeObject1BoxedVoid](#someobject1boxedvoid), [SomeObject1BoxedBoolean](#someobject1boxedboolean), @@ -29,11 +29,11 @@ permits
[SomeObject1BoxedList](#someobject1boxedlist), [SomeObject1BoxedMap](#someobject1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## SomeObject1BoxedVoid public static final class SomeObject1BoxedVoid
-extends [SomeObject1Boxed](#someobject1boxed) +implements [SomeObject1Boxed](#someobject1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -49,7 +49,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## SomeObject1BoxedBoolean public static final class SomeObject1BoxedBoolean
-extends [SomeObject1Boxed](#someobject1boxed) +implements [SomeObject1Boxed](#someobject1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -65,7 +65,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## SomeObject1BoxedNumber public static final class SomeObject1BoxedNumber
-extends [SomeObject1Boxed](#someobject1boxed) +implements [SomeObject1Boxed](#someobject1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -81,7 +81,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## SomeObject1BoxedString public static final class SomeObject1BoxedString
-extends [SomeObject1Boxed](#someobject1boxed) +implements [SomeObject1Boxed](#someobject1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -97,7 +97,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## SomeObject1BoxedList public static final class SomeObject1BoxedList
-extends [SomeObject1Boxed](#someobject1boxed) +implements [SomeObject1Boxed](#someobject1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -113,7 +113,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## SomeObject1BoxedMap public static final class SomeObject1BoxedMap
-extends [SomeObject1Boxed](#someobject1boxed) +implements [SomeObject1Boxed](#someobject1boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/SpecialModelname.md b/samples/client/petstore/java/docs/components/schemas/SpecialModelname.md index ee8442dd9c3..412df7f3693 100644 --- a/samples/client/petstore/java/docs/components/schemas/SpecialModelname.md +++ b/samples/client/petstore/java/docs/components/schemas/SpecialModelname.md @@ -4,7 +4,7 @@ public class SpecialModelname
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 +- abstract 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 @@ -22,15 +22,15 @@ A class that contains necessary nested | static class | [SpecialModelname.A](#a)
schema class | ## SpecialModelname1Boxed -public static abstract sealed class SpecialModelname1Boxed
+public sealed interface SpecialModelname1Boxed
permits
[SpecialModelname1BoxedMap](#specialmodelname1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## SpecialModelname1BoxedMap public static final class SpecialModelname1BoxedMap
-extends [SpecialModelname1Boxed](#specialmodelname1boxed) +implements [SpecialModelname1Boxed](#specialmodelname1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -131,15 +131,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## ABoxed -public static abstract sealed class ABoxed
+public sealed interface ABoxed
permits
[ABoxedString](#aboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ABoxedString public static final class ABoxedString
-extends [ABoxed](#aboxed) +implements [ABoxed](#aboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/StringBooleanMap.md b/samples/client/petstore/java/docs/components/schemas/StringBooleanMap.md index a70aa3689e1..5868b5c43cc 100644 --- a/samples/client/petstore/java/docs/components/schemas/StringBooleanMap.md +++ b/samples/client/petstore/java/docs/components/schemas/StringBooleanMap.md @@ -4,7 +4,7 @@ public class StringBooleanMap
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 +- abstract 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 @@ -22,15 +22,15 @@ A class that contains necessary nested | static class | [StringBooleanMap.AdditionalProperties](#additionalproperties)
schema class | ## StringBooleanMap1Boxed -public static abstract sealed class StringBooleanMap1Boxed
+public sealed interface StringBooleanMap1Boxed
permits
[StringBooleanMap1BoxedMap](#stringbooleanmap1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## StringBooleanMap1BoxedMap public static final class StringBooleanMap1BoxedMap
-extends [StringBooleanMap1Boxed](#stringbooleanmap1boxed) +implements [StringBooleanMap1Boxed](#stringbooleanmap1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -118,15 +118,15 @@ 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) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated boolean payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/StringEnum.md b/samples/client/petstore/java/docs/components/schemas/StringEnum.md index 9ec50388b4b..1f9f14aa236 100644 --- a/samples/client/petstore/java/docs/components/schemas/StringEnum.md +++ b/samples/client/petstore/java/docs/components/schemas/StringEnum.md @@ -4,7 +4,7 @@ public class StringEnum
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 +- abstract sealed interfaces which store validated payloads, java version of a sum type - boxed classes which store validated payloads, sealed permits class implementations - enum classes @@ -19,16 +19,16 @@ A class that contains necessary nested | enum | [StringEnum.NullStringEnumEnums](#nullstringenumenums)
null enum | ## StringEnum1Boxed -public static abstract sealed class StringEnum1Boxed
+public sealed interface StringEnum1Boxed
permits
[StringEnum1BoxedVoid](#stringenum1boxedvoid), [StringEnum1BoxedString](#stringenum1boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## StringEnum1BoxedVoid public static final class StringEnum1BoxedVoid
-extends [StringEnum1Boxed](#stringenum1boxed) +implements [StringEnum1Boxed](#stringenum1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -44,7 +44,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## StringEnum1BoxedString public static final class StringEnum1BoxedString
-extends [StringEnum1Boxed](#stringenum1boxed) +implements [StringEnum1Boxed](#stringenum1boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/StringEnumWithDefaultValue.md b/samples/client/petstore/java/docs/components/schemas/StringEnumWithDefaultValue.md index eccd7e05700..35364494e64 100644 --- a/samples/client/petstore/java/docs/components/schemas/StringEnumWithDefaultValue.md +++ b/samples/client/petstore/java/docs/components/schemas/StringEnumWithDefaultValue.md @@ -4,7 +4,7 @@ public class StringEnumWithDefaultValue
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 +- abstract sealed interfaces which store validated payloads, java version of a sum type - boxed classes which store validated payloads, sealed permits class implementations - enum classes @@ -17,15 +17,15 @@ A class that contains necessary nested | enum | [StringEnumWithDefaultValue.StringStringEnumWithDefaultValueEnums](#stringstringenumwithdefaultvalueenums)
String enum | ## StringEnumWithDefaultValue1Boxed -public static abstract sealed class StringEnumWithDefaultValue1Boxed
+public sealed interface StringEnumWithDefaultValue1Boxed
permits
[StringEnumWithDefaultValue1BoxedString](#stringenumwithdefaultvalue1boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## StringEnumWithDefaultValue1BoxedString public static final class StringEnumWithDefaultValue1BoxedString
-extends [StringEnumWithDefaultValue1Boxed](#stringenumwithdefaultvalue1boxed) +implements [StringEnumWithDefaultValue1Boxed](#stringenumwithdefaultvalue1boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/StringSchema.md b/samples/client/petstore/java/docs/components/schemas/StringSchema.md index 7c44878cff6..07acfe2ea1c 100644 --- a/samples/client/petstore/java/docs/components/schemas/StringSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/StringSchema.md @@ -4,7 +4,7 @@ public class StringSchema
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 +- abstract 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 @@ -15,15 +15,15 @@ A class that contains necessary nested | static class | [StringSchema.StringSchema1](#stringschema1)
schema class | ## StringSchema1Boxed -public static abstract sealed class StringSchema1Boxed
+public sealed interface StringSchema1Boxed
permits
[StringSchema1BoxedString](#stringschema1boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## StringSchema1BoxedString public static final class StringSchema1BoxedString
-extends [StringSchema1Boxed](#stringschema1boxed) +implements [StringSchema1Boxed](#stringschema1boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/StringWithValidation.md b/samples/client/petstore/java/docs/components/schemas/StringWithValidation.md index 93ed1fdb6b2..d08046ac494 100644 --- a/samples/client/petstore/java/docs/components/schemas/StringWithValidation.md +++ b/samples/client/petstore/java/docs/components/schemas/StringWithValidation.md @@ -4,7 +4,7 @@ public class StringWithValidation
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 +- abstract 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 @@ -15,15 +15,15 @@ A class that contains necessary nested | static class | [StringWithValidation.StringWithValidation1](#stringwithvalidation1)
schema class | ## StringWithValidation1Boxed -public static abstract sealed class StringWithValidation1Boxed
+public sealed interface StringWithValidation1Boxed
permits
[StringWithValidation1BoxedString](#stringwithvalidation1boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## StringWithValidation1BoxedString public static final class StringWithValidation1BoxedString
-extends [StringWithValidation1Boxed](#stringwithvalidation1boxed) +implements [StringWithValidation1Boxed](#stringwithvalidation1boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/Tag.md b/samples/client/petstore/java/docs/components/schemas/Tag.md index 0ee62d9fb64..f77c688bc3a 100644 --- a/samples/client/petstore/java/docs/components/schemas/Tag.md +++ b/samples/client/petstore/java/docs/components/schemas/Tag.md @@ -4,7 +4,7 @@ public class Tag
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 +- abstract 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 @@ -25,15 +25,15 @@ A class that contains necessary nested | static class | [Tag.Id](#id)
schema class | ## Tag1Boxed -public static abstract sealed class Tag1Boxed
+public sealed interface Tag1Boxed
permits
[Tag1BoxedMap](#tag1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Tag1BoxedMap public static final class Tag1BoxedMap
-extends [Tag1Boxed](#tag1boxed) +implements [Tag1Boxed](#tag1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -138,15 +138,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## NameBoxed -public static abstract sealed class NameBoxed
+public sealed interface NameBoxed
permits
[NameBoxedString](#nameboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## NameBoxedString public static final class NameBoxedString
-extends [NameBoxed](#nameboxed) +implements [NameBoxed](#nameboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -172,15 +172,15 @@ A schema class that validates payloads | validateAndBox | ## IdBoxed -public static abstract sealed class IdBoxed
+public sealed interface IdBoxed
permits
[IdBoxedNumber](#idboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## IdBoxedNumber public static final class IdBoxedNumber
-extends [IdBoxed](#idboxed) +implements [IdBoxed](#idboxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/Triangle.md b/samples/client/petstore/java/docs/components/schemas/Triangle.md index f1000180daa..80339b8a92d 100644 --- a/samples/client/petstore/java/docs/components/schemas/Triangle.md +++ b/samples/client/petstore/java/docs/components/schemas/Triangle.md @@ -4,7 +4,7 @@ public class Triangle
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 +- abstract 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 @@ -20,7 +20,7 @@ A class that contains necessary nested | static class | [Triangle.Triangle1](#triangle1)
schema class | ## Triangle1Boxed -public static abstract sealed class Triangle1Boxed
+public sealed interface Triangle1Boxed
permits
[Triangle1BoxedVoid](#triangle1boxedvoid), [Triangle1BoxedBoolean](#triangle1boxedboolean), @@ -29,11 +29,11 @@ permits
[Triangle1BoxedList](#triangle1boxedlist), [Triangle1BoxedMap](#triangle1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Triangle1BoxedVoid public static final class Triangle1BoxedVoid
-extends [Triangle1Boxed](#triangle1boxed) +implements [Triangle1Boxed](#triangle1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -49,7 +49,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## Triangle1BoxedBoolean public static final class Triangle1BoxedBoolean
-extends [Triangle1Boxed](#triangle1boxed) +implements [Triangle1Boxed](#triangle1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -65,7 +65,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## Triangle1BoxedNumber public static final class Triangle1BoxedNumber
-extends [Triangle1Boxed](#triangle1boxed) +implements [Triangle1Boxed](#triangle1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -81,7 +81,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## Triangle1BoxedString public static final class Triangle1BoxedString
-extends [Triangle1Boxed](#triangle1boxed) +implements [Triangle1Boxed](#triangle1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -97,7 +97,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## Triangle1BoxedList public static final class Triangle1BoxedList
-extends [Triangle1Boxed](#triangle1boxed) +implements [Triangle1Boxed](#triangle1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -113,7 +113,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## Triangle1BoxedMap public static final class Triangle1BoxedMap
-extends [Triangle1Boxed](#triangle1boxed) +implements [Triangle1Boxed](#triangle1boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/TriangleInterface.md b/samples/client/petstore/java/docs/components/schemas/TriangleInterface.md index e3641da4208..1ca25c0fe34 100644 --- a/samples/client/petstore/java/docs/components/schemas/TriangleInterface.md +++ b/samples/client/petstore/java/docs/components/schemas/TriangleInterface.md @@ -4,7 +4,7 @@ public class TriangleInterface
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 +- abstract 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 @@ -32,7 +32,7 @@ A class that contains necessary nested | enum | [TriangleInterface.StringShapeTypeEnums](#stringshapetypeenums)
String enum | ## TriangleInterface1Boxed -public static abstract sealed class TriangleInterface1Boxed
+public sealed interface TriangleInterface1Boxed
permits
[TriangleInterface1BoxedVoid](#triangleinterface1boxedvoid), [TriangleInterface1BoxedBoolean](#triangleinterface1boxedboolean), @@ -41,11 +41,11 @@ permits
[TriangleInterface1BoxedList](#triangleinterface1boxedlist), [TriangleInterface1BoxedMap](#triangleinterface1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## TriangleInterface1BoxedVoid public static final class TriangleInterface1BoxedVoid
-extends [TriangleInterface1Boxed](#triangleinterface1boxed) +implements [TriangleInterface1Boxed](#triangleinterface1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -61,7 +61,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## TriangleInterface1BoxedBoolean public static final class TriangleInterface1BoxedBoolean
-extends [TriangleInterface1Boxed](#triangleinterface1boxed) +implements [TriangleInterface1Boxed](#triangleinterface1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -77,7 +77,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## TriangleInterface1BoxedNumber public static final class TriangleInterface1BoxedNumber
-extends [TriangleInterface1Boxed](#triangleinterface1boxed) +implements [TriangleInterface1Boxed](#triangleinterface1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -93,7 +93,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## TriangleInterface1BoxedString public static final class TriangleInterface1BoxedString
-extends [TriangleInterface1Boxed](#triangleinterface1boxed) +implements [TriangleInterface1Boxed](#triangleinterface1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -109,7 +109,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## TriangleInterface1BoxedList public static final class TriangleInterface1BoxedList
-extends [TriangleInterface1Boxed](#triangleinterface1boxed) +implements [TriangleInterface1Boxed](#triangleinterface1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -125,7 +125,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## TriangleInterface1BoxedMap public static final class TriangleInterface1BoxedMap
-extends [TriangleInterface1Boxed](#triangleinterface1boxed) +implements [TriangleInterface1Boxed](#triangleinterface1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -262,15 +262,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## TriangleTypeBoxed -public static abstract sealed class TriangleTypeBoxed
+public sealed interface TriangleTypeBoxed
permits
[TriangleTypeBoxedString](#triangletypeboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## TriangleTypeBoxedString public static final class TriangleTypeBoxedString
-extends [TriangleTypeBoxed](#triangletypeboxed) +implements [TriangleTypeBoxed](#triangletypeboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -296,15 +296,15 @@ A schema class that validates payloads | validateAndBox | ## ShapeTypeBoxed -public static abstract sealed class ShapeTypeBoxed
+public sealed interface ShapeTypeBoxed
permits
[ShapeTypeBoxedString](#shapetypeboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ShapeTypeBoxedString public static final class ShapeTypeBoxedString
-extends [ShapeTypeBoxed](#shapetypeboxed) +implements [ShapeTypeBoxed](#shapetypeboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/UUIDString.md b/samples/client/petstore/java/docs/components/schemas/UUIDString.md index f4be6e99509..ee4f6b70102 100644 --- a/samples/client/petstore/java/docs/components/schemas/UUIDString.md +++ b/samples/client/petstore/java/docs/components/schemas/UUIDString.md @@ -4,7 +4,7 @@ public class UUIDString
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 +- abstract 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 @@ -15,15 +15,15 @@ A class that contains necessary nested | static class | [UUIDString.UUIDString1](#uuidstring1)
schema class | ## UUIDString1Boxed -public static abstract sealed class UUIDString1Boxed
+public sealed interface UUIDString1Boxed
permits
[UUIDString1BoxedString](#uuidstring1boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## UUIDString1BoxedString public static final class UUIDString1BoxedString
-extends [UUIDString1Boxed](#uuidstring1boxed) +implements [UUIDString1Boxed](#uuidstring1boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/User.md b/samples/client/petstore/java/docs/components/schemas/User.md index a7014dbcdd3..fe4fbb8af90 100644 --- a/samples/client/petstore/java/docs/components/schemas/User.md +++ b/samples/client/petstore/java/docs/components/schemas/User.md @@ -4,7 +4,7 @@ public class User
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 +- abstract 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 @@ -77,15 +77,15 @@ A class that contains necessary nested | static class | [User.Id](#id)
schema class | ## User1Boxed -public static abstract sealed class User1Boxed
+public sealed interface User1Boxed
permits
[User1BoxedMap](#user1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## User1BoxedMap public static final class User1BoxedMap
-extends [User1Boxed](#user1boxed) +implements [User1Boxed](#user1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -252,7 +252,7 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## AnyTypePropNullableBoxed -public static abstract sealed class AnyTypePropNullableBoxed
+public sealed interface AnyTypePropNullableBoxed
permits
[AnyTypePropNullableBoxedVoid](#anytypepropnullableboxedvoid), [AnyTypePropNullableBoxedBoolean](#anytypepropnullableboxedboolean), @@ -261,11 +261,11 @@ permits
[AnyTypePropNullableBoxedList](#anytypepropnullableboxedlist), [AnyTypePropNullableBoxedMap](#anytypepropnullableboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AnyTypePropNullableBoxedVoid public static final class AnyTypePropNullableBoxedVoid
-extends [AnyTypePropNullableBoxed](#anytypepropnullableboxed) +implements [AnyTypePropNullableBoxed](#anytypepropnullableboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -281,7 +281,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## AnyTypePropNullableBoxedBoolean public static final class AnyTypePropNullableBoxedBoolean
-extends [AnyTypePropNullableBoxed](#anytypepropnullableboxed) +implements [AnyTypePropNullableBoxed](#anytypepropnullableboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -297,7 +297,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## AnyTypePropNullableBoxedNumber public static final class AnyTypePropNullableBoxedNumber
-extends [AnyTypePropNullableBoxed](#anytypepropnullableboxed) +implements [AnyTypePropNullableBoxed](#anytypepropnullableboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -313,7 +313,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## AnyTypePropNullableBoxedString public static final class AnyTypePropNullableBoxedString
-extends [AnyTypePropNullableBoxed](#anytypepropnullableboxed) +implements [AnyTypePropNullableBoxed](#anytypepropnullableboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -329,7 +329,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## AnyTypePropNullableBoxedList public static final class AnyTypePropNullableBoxedList
-extends [AnyTypePropNullableBoxed](#anytypepropnullableboxed) +implements [AnyTypePropNullableBoxed](#anytypepropnullableboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -345,7 +345,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## AnyTypePropNullableBoxedMap public static final class AnyTypePropNullableBoxedMap
-extends [AnyTypePropNullableBoxed](#anytypepropnullableboxed) +implements [AnyTypePropNullableBoxed](#anytypepropnullableboxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -374,7 +374,7 @@ test code generation for any type Here the 'type' attribute is not spe | validateAndBox | ## AnyTypeExceptNullPropBoxed -public static abstract sealed class AnyTypeExceptNullPropBoxed
+public sealed interface AnyTypeExceptNullPropBoxed
permits
[AnyTypeExceptNullPropBoxedVoid](#anytypeexceptnullpropboxedvoid), [AnyTypeExceptNullPropBoxedBoolean](#anytypeexceptnullpropboxedboolean), @@ -383,11 +383,11 @@ permits
[AnyTypeExceptNullPropBoxedList](#anytypeexceptnullpropboxedlist), [AnyTypeExceptNullPropBoxedMap](#anytypeexceptnullpropboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AnyTypeExceptNullPropBoxedVoid public static final class AnyTypeExceptNullPropBoxedVoid
-extends [AnyTypeExceptNullPropBoxed](#anytypeexceptnullpropboxed) +implements [AnyTypeExceptNullPropBoxed](#anytypeexceptnullpropboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -403,7 +403,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## AnyTypeExceptNullPropBoxedBoolean public static final class AnyTypeExceptNullPropBoxedBoolean
-extends [AnyTypeExceptNullPropBoxed](#anytypeexceptnullpropboxed) +implements [AnyTypeExceptNullPropBoxed](#anytypeexceptnullpropboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -419,7 +419,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## AnyTypeExceptNullPropBoxedNumber public static final class AnyTypeExceptNullPropBoxedNumber
-extends [AnyTypeExceptNullPropBoxed](#anytypeexceptnullpropboxed) +implements [AnyTypeExceptNullPropBoxed](#anytypeexceptnullpropboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -435,7 +435,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## AnyTypeExceptNullPropBoxedString public static final class AnyTypeExceptNullPropBoxedString
-extends [AnyTypeExceptNullPropBoxed](#anytypeexceptnullpropboxed) +implements [AnyTypeExceptNullPropBoxed](#anytypeexceptnullpropboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -451,7 +451,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## AnyTypeExceptNullPropBoxedList public static final class AnyTypeExceptNullPropBoxedList
-extends [AnyTypeExceptNullPropBoxed](#anytypeexceptnullpropboxed) +implements [AnyTypeExceptNullPropBoxed](#anytypeexceptnullpropboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -467,7 +467,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## AnyTypeExceptNullPropBoxedMap public static final class AnyTypeExceptNullPropBoxedMap
-extends [AnyTypeExceptNullPropBoxed](#anytypeexceptnullpropboxed) +implements [AnyTypeExceptNullPropBoxed](#anytypeexceptnullpropboxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -516,15 +516,15 @@ any type except 'null' Here the 'type' attribute is not spec | [AnyTypeExceptNullPropBoxedList](#anytypeexceptnullpropboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## NotBoxed -public static abstract sealed class NotBoxed
+public sealed interface NotBoxed
permits
[NotBoxedVoid](#notboxedvoid) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## NotBoxedVoid public static final class NotBoxedVoid
-extends [NotBoxed](#notboxed) +implements [NotBoxed](#notboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -550,7 +550,7 @@ A schema class that validates payloads | validateAndBox | ## AnyTypePropBoxed -public static abstract sealed class AnyTypePropBoxed
+public sealed interface AnyTypePropBoxed
permits
[AnyTypePropBoxedVoid](#anytypepropboxedvoid), [AnyTypePropBoxedBoolean](#anytypepropboxedboolean), @@ -559,11 +559,11 @@ permits
[AnyTypePropBoxedList](#anytypepropboxedlist), [AnyTypePropBoxedMap](#anytypepropboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AnyTypePropBoxedVoid public static final class AnyTypePropBoxedVoid
-extends [AnyTypePropBoxed](#anytypepropboxed) +implements [AnyTypePropBoxed](#anytypepropboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -579,7 +579,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## AnyTypePropBoxedBoolean public static final class AnyTypePropBoxedBoolean
-extends [AnyTypePropBoxed](#anytypepropboxed) +implements [AnyTypePropBoxed](#anytypepropboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -595,7 +595,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## AnyTypePropBoxedNumber public static final class AnyTypePropBoxedNumber
-extends [AnyTypePropBoxed](#anytypepropboxed) +implements [AnyTypePropBoxed](#anytypepropboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -611,7 +611,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## AnyTypePropBoxedString public static final class AnyTypePropBoxedString
-extends [AnyTypePropBoxed](#anytypepropboxed) +implements [AnyTypePropBoxed](#anytypepropboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -627,7 +627,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## AnyTypePropBoxedList public static final class AnyTypePropBoxedList
-extends [AnyTypePropBoxed](#anytypepropboxed) +implements [AnyTypePropBoxed](#anytypepropboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -643,7 +643,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## AnyTypePropBoxedMap public static final class AnyTypePropBoxedMap
-extends [AnyTypePropBoxed](#anytypepropboxed) +implements [AnyTypePropBoxed](#anytypepropboxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -672,16 +672,16 @@ test code generation for any type Here the 'type' attribute is not spe | validateAndBox | ## ObjectWithNoDeclaredPropsNullableBoxed -public static abstract sealed class ObjectWithNoDeclaredPropsNullableBoxed
+public sealed interface ObjectWithNoDeclaredPropsNullableBoxed
permits
[ObjectWithNoDeclaredPropsNullableBoxedVoid](#objectwithnodeclaredpropsnullableboxedvoid), [ObjectWithNoDeclaredPropsNullableBoxedMap](#objectwithnodeclaredpropsnullableboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ObjectWithNoDeclaredPropsNullableBoxedVoid public static final class ObjectWithNoDeclaredPropsNullableBoxedVoid
-extends [ObjectWithNoDeclaredPropsNullableBoxed](#objectwithnodeclaredpropsnullableboxed) +implements [ObjectWithNoDeclaredPropsNullableBoxed](#objectwithnodeclaredpropsnullableboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -697,7 +697,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ObjectWithNoDeclaredPropsNullableBoxedMap public static final class ObjectWithNoDeclaredPropsNullableBoxedMap
-extends [ObjectWithNoDeclaredPropsNullableBoxed](#objectwithnodeclaredpropsnullableboxed) +implements [ObjectWithNoDeclaredPropsNullableBoxed](#objectwithnodeclaredpropsnullableboxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -756,15 +756,15 @@ Void validatedPayload = User.ObjectWithNoDeclaredPropsNullable.validate( | [ObjectWithNoDeclaredPropsNullableBoxedMap](#objectwithnodeclaredpropsnullableboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## ObjectWithNoDeclaredPropsBoxed -public static abstract sealed class ObjectWithNoDeclaredPropsBoxed
+public sealed interface ObjectWithNoDeclaredPropsBoxed
permits
[ObjectWithNoDeclaredPropsBoxedMap](#objectwithnodeclaredpropsboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ObjectWithNoDeclaredPropsBoxedMap public static final class ObjectWithNoDeclaredPropsBoxedMap
-extends [ObjectWithNoDeclaredPropsBoxed](#objectwithnodeclaredpropsboxed) +implements [ObjectWithNoDeclaredPropsBoxed](#objectwithnodeclaredpropsboxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -793,15 +793,15 @@ test code generation for objects Value must be a map of strings to values. It ca | validateAndBox | ## UserStatusBoxed -public static abstract sealed class UserStatusBoxed
+public sealed interface UserStatusBoxed
permits
[UserStatusBoxedNumber](#userstatusboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## UserStatusBoxedNumber public static final class UserStatusBoxedNumber
-extends [UserStatusBoxed](#userstatusboxed) +implements [UserStatusBoxed](#userstatusboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -830,15 +830,15 @@ User Status | validateAndBox | ## PhoneBoxed -public static abstract sealed class PhoneBoxed
+public sealed interface PhoneBoxed
permits
[PhoneBoxedString](#phoneboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## PhoneBoxedString public static final class PhoneBoxedString
-extends [PhoneBoxed](#phoneboxed) +implements [PhoneBoxed](#phoneboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -864,15 +864,15 @@ A schema class that validates payloads | validateAndBox | ## PasswordBoxed -public static abstract sealed class PasswordBoxed
+public sealed interface PasswordBoxed
permits
[PasswordBoxedString](#passwordboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## PasswordBoxedString public static final class PasswordBoxedString
-extends [PasswordBoxed](#passwordboxed) +implements [PasswordBoxed](#passwordboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -898,15 +898,15 @@ A schema class that validates payloads | validateAndBox | ## EmailBoxed -public static abstract sealed class EmailBoxed
+public sealed interface EmailBoxed
permits
[EmailBoxedString](#emailboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## EmailBoxedString public static final class EmailBoxedString
-extends [EmailBoxed](#emailboxed) +implements [EmailBoxed](#emailboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -932,15 +932,15 @@ A schema class that validates payloads | validateAndBox | ## LastNameBoxed -public static abstract sealed class LastNameBoxed
+public sealed interface LastNameBoxed
permits
[LastNameBoxedString](#lastnameboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## LastNameBoxedString public static final class LastNameBoxedString
-extends [LastNameBoxed](#lastnameboxed) +implements [LastNameBoxed](#lastnameboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -966,15 +966,15 @@ A schema class that validates payloads | validateAndBox | ## FirstNameBoxed -public static abstract sealed class FirstNameBoxed
+public sealed interface FirstNameBoxed
permits
[FirstNameBoxedString](#firstnameboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## FirstNameBoxedString public static final class FirstNameBoxedString
-extends [FirstNameBoxed](#firstnameboxed) +implements [FirstNameBoxed](#firstnameboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -1000,15 +1000,15 @@ A schema class that validates payloads | validateAndBox | ## UsernameBoxed -public static abstract sealed class UsernameBoxed
+public sealed interface UsernameBoxed
permits
[UsernameBoxedString](#usernameboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## UsernameBoxedString public static final class UsernameBoxedString
-extends [UsernameBoxed](#usernameboxed) +implements [UsernameBoxed](#usernameboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -1034,15 +1034,15 @@ A schema class that validates payloads | validateAndBox | ## IdBoxed -public static abstract sealed class IdBoxed
+public sealed interface IdBoxed
permits
[IdBoxedNumber](#idboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## IdBoxedNumber public static final class IdBoxedNumber
-extends [IdBoxed](#idboxed) +implements [IdBoxed](#idboxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/Whale.md b/samples/client/petstore/java/docs/components/schemas/Whale.md index 32b690d4b48..e5994d5c0e6 100644 --- a/samples/client/petstore/java/docs/components/schemas/Whale.md +++ b/samples/client/petstore/java/docs/components/schemas/Whale.md @@ -4,7 +4,7 @@ public class Whale
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 +- abstract 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 @@ -30,15 +30,15 @@ A class that contains necessary nested | static class | [Whale.HasBaleen](#hasbaleen)
schema class | ## Whale1Boxed -public static abstract sealed class Whale1Boxed
+public sealed interface Whale1Boxed
permits
[Whale1BoxedMap](#whale1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Whale1BoxedMap public static final class Whale1BoxedMap
-extends [Whale1Boxed](#whale1boxed) +implements [Whale1Boxed](#whale1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -161,15 +161,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## ClassNameBoxed -public static abstract sealed class ClassNameBoxed
+public sealed interface ClassNameBoxed
permits
[ClassNameBoxedString](#classnameboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ClassNameBoxedString public static final class ClassNameBoxedString
-extends [ClassNameBoxed](#classnameboxed) +implements [ClassNameBoxed](#classnameboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -236,15 +236,15 @@ A class that stores String enum values | WHALE | value = "whale" | ## HasTeethBoxed -public static abstract sealed class HasTeethBoxed
+public sealed interface HasTeethBoxed
permits
[HasTeethBoxedBoolean](#hasteethboxedboolean) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## HasTeethBoxedBoolean public static final class HasTeethBoxedBoolean
-extends [HasTeethBoxed](#hasteethboxed) +implements [HasTeethBoxed](#hasteethboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -270,15 +270,15 @@ A schema class that validates payloads | validateAndBox | ## HasBaleenBoxed -public static abstract sealed class HasBaleenBoxed
+public sealed interface HasBaleenBoxed
permits
[HasBaleenBoxedBoolean](#hasbaleenboxedboolean) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## HasBaleenBoxedBoolean public static final class HasBaleenBoxedBoolean
-extends [HasBaleenBoxed](#hasbaleenboxed) +implements [HasBaleenBoxed](#hasbaleenboxed) a boxed class to store validated boolean payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/components/schemas/Zebra.md b/samples/client/petstore/java/docs/components/schemas/Zebra.md index 3f24bb68dc5..64c7779105c 100644 --- a/samples/client/petstore/java/docs/components/schemas/Zebra.md +++ b/samples/client/petstore/java/docs/components/schemas/Zebra.md @@ -4,7 +4,7 @@ public class Zebra
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 +- abstract 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 @@ -36,15 +36,15 @@ A class that contains necessary nested | static class | [Zebra.AdditionalProperties](#additionalproperties)
schema class | ## Zebra1Boxed -public static abstract sealed class Zebra1Boxed
+public sealed interface Zebra1Boxed
permits
[Zebra1BoxedMap](#zebra1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Zebra1BoxedMap public static final class Zebra1BoxedMap
-extends [Zebra1Boxed](#zebra1boxed) +implements [Zebra1Boxed](#zebra1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -165,15 +165,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## ClassNameBoxed -public static abstract sealed class ClassNameBoxed
+public sealed interface ClassNameBoxed
permits
[ClassNameBoxedString](#classnameboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ClassNameBoxedString public static final class ClassNameBoxedString
-extends [ClassNameBoxed](#classnameboxed) +implements [ClassNameBoxed](#classnameboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -240,15 +240,15 @@ A class that stores String enum values | ZEBRA | value = "zebra" | ## TypeBoxed -public static abstract sealed class TypeBoxed
+public sealed interface TypeBoxed
permits
[TypeBoxedString](#typeboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## TypeBoxedString public static final class TypeBoxedString
-extends [TypeBoxed](#typeboxed) +implements [TypeBoxed](#typeboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -317,7 +317,7 @@ A class that stores String enum values | GREVYS | value = "grevys" | ## AdditionalPropertiesBoxed -public static abstract sealed class AdditionalPropertiesBoxed
+public sealed interface AdditionalPropertiesBoxed
permits
[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), [AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), @@ -326,11 +326,11 @@ permits
[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), [AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedVoid public static final class AdditionalPropertiesBoxedVoid
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -346,7 +346,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## AdditionalPropertiesBoxedBoolean public static final class AdditionalPropertiesBoxedBoolean
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -362,7 +362,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## AdditionalPropertiesBoxedNumber public static final class AdditionalPropertiesBoxedNumber
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -378,7 +378,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## AdditionalPropertiesBoxedString public static final class AdditionalPropertiesBoxedString
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -394,7 +394,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## AdditionalPropertiesBoxedList public static final class AdditionalPropertiesBoxedList
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -410,7 +410,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## AdditionalPropertiesBoxedMap public static final class AdditionalPropertiesBoxedMap
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.md index 104d3d325b5..1bc0d6e8e15 100644 --- a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [Client1](../../../../../../../../../components/schemas/Client.md#client 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.md index 34951cbef92..e79a3033b40 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.md @@ -3,7 +3,7 @@ public class Schema0
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed -public static abstract sealed class Schema01Boxed
+public sealed interface Schema01Boxed
permits
[Schema01BoxedString](#schema01boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema01BoxedString public static final class Schema01BoxedString
-extends [Schema01Boxed](#schema01boxed) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md index 8547e796a3b..1bcb9695983 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md @@ -3,7 +3,7 @@ public class Schema1
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 +- abstract sealed interfaces which store validated payloads, java version of a sum type - boxed classes which store validated payloads, sealed permits class implementations - enum classes @@ -16,15 +16,15 @@ A class that contains necessary nested | enum | [Schema1.StringSchemaEnums1](#stringschemaenums1)
String enum | ## Schema11Boxed -public static abstract sealed class Schema11Boxed
+public sealed interface Schema11Boxed
permits
[Schema11BoxedString](#schema11boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema11BoxedString public static final class Schema11BoxedString
-extends [Schema11Boxed](#schema11boxed) +implements [Schema11Boxed](#schema11boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/parameters/parameter0/Schema0.md index 34951cbef92..e79a3033b40 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/parameters/parameter0/Schema0.md @@ -3,7 +3,7 @@ public class Schema0
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed -public static abstract sealed class Schema01Boxed
+public sealed interface Schema01Boxed
permits
[Schema01BoxedString](#schema01boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema01BoxedString public static final class Schema01BoxedString
-extends [Schema01Boxed](#schema01boxed) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.md index ff61f37ac2d..0e98c24197c 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.md @@ -3,7 +3,7 @@ public class PathParamSchema0
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 +- abstract sealed interfaces which store validated payloads, java version of a sum type - boxed classes which store validated payloads, sealed permits class implementations - enum classes @@ -16,15 +16,15 @@ A class that contains necessary nested | enum | [PathParamSchema0.StringPathParamSchemaEnums0](#stringpathparamschemaenums0)
String enum | ## PathParamSchema01Boxed -public static abstract sealed class PathParamSchema01Boxed
+public sealed interface PathParamSchema01Boxed
permits
[PathParamSchema01BoxedString](#pathparamschema01boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## PathParamSchema01BoxedString public static final class PathParamSchema01BoxedString
-extends [PathParamSchema01Boxed](#pathparamschema01boxed) +implements [PathParamSchema01Boxed](#pathparamschema01boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/parameters/parameter0/Schema0.md index 34951cbef92..e79a3033b40 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/parameters/parameter0/Schema0.md @@ -3,7 +3,7 @@ public class Schema0
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed -public static abstract sealed class Schema01Boxed
+public sealed interface Schema01Boxed
permits
[Schema01BoxedString](#schema01boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema01BoxedString public static final class Schema01BoxedString
-extends [Schema01Boxed](#schema01boxed) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter0/Schema0.md index 34951cbef92..e79a3033b40 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter0/Schema0.md @@ -3,7 +3,7 @@ public class Schema0
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed -public static abstract sealed class Schema01Boxed
+public sealed interface Schema01Boxed
permits
[Schema01BoxedString](#schema01boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema01BoxedString public static final class Schema01BoxedString
-extends [Schema01Boxed](#schema01boxed) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter1/Schema1.md index 87afe9fb90e..5216339b486 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter1/Schema1.md @@ -3,7 +3,7 @@ public class Schema1
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 +- abstract sealed interfaces which store validated payloads, java version of a sum type - boxed classes which store validated payloads, sealed permits class implementations - enum classes @@ -16,15 +16,15 @@ A class that contains necessary nested | enum | [Schema1.StringSchemaEnums1](#stringschemaenums1)
String enum | ## Schema11Boxed -public static abstract sealed class Schema11Boxed
+public sealed interface Schema11Boxed
permits
[Schema11BoxedString](#schema11boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema11BoxedString public static final class Schema11BoxedString
-extends [Schema11Boxed](#schema11boxed) +implements [Schema11Boxed](#schema11boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter2/Schema2.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter2/Schema2.md index b3f8c15a378..47f504dbec3 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter2/Schema2.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter2/Schema2.md @@ -3,7 +3,7 @@ public class Schema2
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema2.Schema21](#schema21)
schema class | ## Schema21Boxed -public static abstract sealed class Schema21Boxed
+public sealed interface Schema21Boxed
permits
[Schema21BoxedNumber](#schema21boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema21BoxedNumber public static final class Schema21BoxedNumber
-extends [Schema21Boxed](#schema21boxed) +implements [Schema21Boxed](#schema21boxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter3/Schema3.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter3/Schema3.md index b09a6ef7f98..a2e7bcc797b 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter3/Schema3.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter3/Schema3.md @@ -3,7 +3,7 @@ public class Schema3
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema3.Schema31](#schema31)
schema class | ## Schema31Boxed -public static abstract sealed class Schema31Boxed
+public sealed interface Schema31Boxed
permits
[Schema31BoxedString](#schema31boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema31BoxedString public static final class Schema31BoxedString
-extends [Schema31Boxed](#schema31boxed) +implements [Schema31Boxed](#schema31boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter4/Schema4.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter4/Schema4.md index b5f52f6271e..7205df79db1 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter4/Schema4.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter4/Schema4.md @@ -3,7 +3,7 @@ public class Schema4
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 +- abstract sealed interfaces which store validated payloads, java version of a sum type - boxed classes which store validated payloads, sealed permits class implementations - enum classes @@ -16,15 +16,15 @@ A class that contains necessary nested | enum | [Schema4.StringSchemaEnums4](#stringschemaenums4)
String enum | ## Schema41Boxed -public static abstract sealed class Schema41Boxed
+public sealed interface Schema41Boxed
permits
[Schema41BoxedString](#schema41boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema41BoxedString public static final class Schema41BoxedString
-extends [Schema41Boxed](#schema41boxed) +implements [Schema41Boxed](#schema41boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter5/Schema5.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter5/Schema5.md index a72c1d81468..ba247014efe 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter5/Schema5.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter5/Schema5.md @@ -3,7 +3,7 @@ public class Schema5
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema5.Schema51](#schema51)
schema class | ## Schema51Boxed -public static abstract sealed class Schema51Boxed
+public sealed interface Schema51Boxed
permits
[Schema51BoxedNumber](#schema51boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema51BoxedNumber public static final class Schema51BoxedNumber
-extends [Schema51Boxed](#schema51boxed) +implements [Schema51Boxed](#schema51boxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter0/Schema0.md index f4abcae80b2..82fceabc08f 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter0/Schema0.md @@ -3,7 +3,7 @@ public class Schema0
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 +- abstract 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 @@ -23,15 +23,15 @@ A class that contains necessary nested | enum | [Schema0.StringItemsEnums0](#stringitemsenums0)
String enum | ## Schema01Boxed -public static abstract sealed class Schema01Boxed
+public sealed interface Schema01Boxed
permits
[Schema01BoxedList](#schema01boxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema01BoxedList public static final class Schema01BoxedList
-extends [Schema01Boxed](#schema01boxed) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -120,15 +120,15 @@ A class to store validated List payloads | static [SchemaList0](#schemalist0) | of([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | ## Items0Boxed -public static abstract sealed class Items0Boxed
+public sealed interface Items0Boxed
permits
[Items0BoxedString](#items0boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Items0BoxedString public static final class Items0BoxedString
-extends [Items0Boxed](#items0boxed) +implements [Items0Boxed](#items0boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter1/Schema1.md index 495894feeeb..77635e1272d 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter1/Schema1.md @@ -3,7 +3,7 @@ public class Schema1
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 +- abstract sealed interfaces which store validated payloads, java version of a sum type - boxed classes which store validated payloads, sealed permits class implementations - enum classes @@ -16,15 +16,15 @@ A class that contains necessary nested | enum | [Schema1.StringSchemaEnums1](#stringschemaenums1)
String enum | ## Schema11Boxed -public static abstract sealed class Schema11Boxed
+public sealed interface Schema11Boxed
permits
[Schema11BoxedString](#schema11boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema11BoxedString public static final class Schema11BoxedString
-extends [Schema11Boxed](#schema11boxed) +implements [Schema11Boxed](#schema11boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter2/Schema2.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter2/Schema2.md index ef73a16d5a1..82e48bea656 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter2/Schema2.md +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter2/Schema2.md @@ -3,7 +3,7 @@ public class Schema2
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 +- abstract 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 @@ -23,15 +23,15 @@ A class that contains necessary nested | enum | [Schema2.StringItemsEnums2](#stringitemsenums2)
String enum | ## Schema21Boxed -public static abstract sealed class Schema21Boxed
+public sealed interface Schema21Boxed
permits
[Schema21BoxedList](#schema21boxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema21BoxedList public static final class Schema21BoxedList
-extends [Schema21Boxed](#schema21boxed) +implements [Schema21Boxed](#schema21boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -120,15 +120,15 @@ A class to store validated List payloads | static [SchemaList2](#schemalist2) | of([List](#schemalistbuilder2) arg, SchemaConfiguration configuration) | ## Items2Boxed -public static abstract sealed class Items2Boxed
+public sealed interface Items2Boxed
permits
[Items2BoxedString](#items2boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Items2BoxedString public static final class Items2BoxedString
-extends [Items2Boxed](#items2boxed) +implements [Items2Boxed](#items2boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter3/Schema3.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter3/Schema3.md index d538b4ac830..3095cec21ad 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter3/Schema3.md +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter3/Schema3.md @@ -3,7 +3,7 @@ public class Schema3
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 +- abstract sealed interfaces which store validated payloads, java version of a sum type - boxed classes which store validated payloads, sealed permits class implementations - enum classes @@ -16,15 +16,15 @@ A class that contains necessary nested | enum | [Schema3.StringSchemaEnums3](#stringschemaenums3)
String enum | ## Schema31Boxed -public static abstract sealed class Schema31Boxed
+public sealed interface Schema31Boxed
permits
[Schema31BoxedString](#schema31boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema31BoxedString public static final class Schema31BoxedString
-extends [Schema31Boxed](#schema31boxed) +implements [Schema31Boxed](#schema31boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter4/Schema4.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter4/Schema4.md index 789be4b35a0..5961413e19c 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter4/Schema4.md +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter4/Schema4.md @@ -3,7 +3,7 @@ public class Schema4
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 +- abstract sealed interfaces which store validated payloads, java version of a sum type - boxed classes which store validated payloads, sealed permits class implementations - enum classes @@ -19,15 +19,15 @@ A class that contains necessary nested | enum | [Schema4.DoubleSchemaEnums4](#doubleschemaenums4)
Double enum | ## Schema41Boxed -public static abstract sealed class Schema41Boxed
+public sealed interface Schema41Boxed
permits
[Schema41BoxedNumber](#schema41boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema41BoxedNumber public static final class Schema41BoxedNumber
-extends [Schema41Boxed](#schema41boxed) +implements [Schema41Boxed](#schema41boxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter5/Schema5.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter5/Schema5.md index 0e1d0b93edc..387cbae5bb9 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter5/Schema5.md +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter5/Schema5.md @@ -3,7 +3,7 @@ public class Schema5
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 +- abstract sealed interfaces which store validated payloads, java version of a sum type - boxed classes which store validated payloads, sealed permits class implementations - enum classes @@ -17,15 +17,15 @@ A class that contains necessary nested | enum | [Schema5.FloatSchemaEnums5](#floatschemaenums5)
Float enum | ## Schema51Boxed -public static abstract sealed class Schema51Boxed
+public sealed interface Schema51Boxed
permits
[Schema51BoxedNumber](#schema51boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema51BoxedNumber public static final class Schema51BoxedNumber
-extends [Schema51Boxed](#schema51boxed) +implements [Schema51Boxed](#schema51boxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md b/samples/client/petstore/java/docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md index 94832c88ae9..83f0b7400bc 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md +++ b/samples/client/petstore/java/docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md @@ -3,7 +3,7 @@ public class ApplicationxwwwformurlencodedSchema
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 +- abstract 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 @@ -34,15 +34,15 @@ A class that contains necessary nested | enum | [ApplicationxwwwformurlencodedSchema.StringApplicationxwwwformurlencodedItemsEnums](#stringapplicationxwwwformurlencodeditemsenums)
String enum | ## ApplicationxwwwformurlencodedSchema1Boxed -public static abstract sealed class ApplicationxwwwformurlencodedSchema1Boxed
+public sealed interface ApplicationxwwwformurlencodedSchema1Boxed
permits
[ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedSchema1BoxedMap public static final class ApplicationxwwwformurlencodedSchema1BoxedMap
-extends [ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed) +implements [ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -148,15 +148,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## ApplicationxwwwformurlencodedEnumFormStringBoxed -public static abstract sealed class ApplicationxwwwformurlencodedEnumFormStringBoxed
+public sealed interface ApplicationxwwwformurlencodedEnumFormStringBoxed
permits
[ApplicationxwwwformurlencodedEnumFormStringBoxedString](#applicationxwwwformurlencodedenumformstringboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedEnumFormStringBoxedString public static final class ApplicationxwwwformurlencodedEnumFormStringBoxedString
-extends [ApplicationxwwwformurlencodedEnumFormStringBoxed](#applicationxwwwformurlencodedenumformstringboxed) +implements [ApplicationxwwwformurlencodedEnumFormStringBoxed](#applicationxwwwformurlencodedenumformstringboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -229,15 +229,15 @@ A class that stores String enum values | LEFT_PARENTHESIS_XYZ_RIGHT_PARENTHESIS | value = "(xyz)" | ## ApplicationxwwwformurlencodedEnumFormStringArrayBoxed -public static abstract sealed class ApplicationxwwwformurlencodedEnumFormStringArrayBoxed
+public sealed interface ApplicationxwwwformurlencodedEnumFormStringArrayBoxed
permits
[ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList](#applicationxwwwformurlencodedenumformstringarrayboxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList public static final class ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList
-extends [ApplicationxwwwformurlencodedEnumFormStringArrayBoxed](#applicationxwwwformurlencodedenumformstringarrayboxed) +implements [ApplicationxwwwformurlencodedEnumFormStringArrayBoxed](#applicationxwwwformurlencodedenumformstringarrayboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -329,15 +329,15 @@ A class to store validated List payloads | static [ApplicationxwwwformurlencodedEnumFormStringArrayList](#applicationxwwwformurlencodedenumformstringarraylist) | of([List](#applicationxwwwformurlencodedenumformstringarraylistbuilder) arg, SchemaConfiguration configuration) | ## ApplicationxwwwformurlencodedItemsBoxed -public static abstract sealed class ApplicationxwwwformurlencodedItemsBoxed
+public sealed interface ApplicationxwwwformurlencodedItemsBoxed
permits
[ApplicationxwwwformurlencodedItemsBoxedString](#applicationxwwwformurlencodeditemsboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedItemsBoxedString public static final class ApplicationxwwwformurlencodedItemsBoxedString
-extends [ApplicationxwwwformurlencodedItemsBoxed](#applicationxwwwformurlencodeditemsboxed) +implements [ApplicationxwwwformurlencodedItemsBoxed](#applicationxwwwformurlencodeditemsboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fake/get/responses/response404/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fake/get/responses/response404/content/applicationjson/ApplicationjsonSchema.md index f943791db0e..340e72696a6 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/responses/response404/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fake/get/responses/response404/content/applicationjson/ApplicationjsonSchema.md @@ -3,7 +3,7 @@ public class ApplicationjsonSchema
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | ## ApplicationjsonSchema1Boxed -public static abstract sealed class ApplicationjsonSchema1Boxed
+public sealed interface ApplicationjsonSchema1Boxed
permits
[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedMap public static final class ApplicationjsonSchema1BoxedMap
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fake/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fake/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.md index 104d3d325b5..1bc0d6e8e15 100644 --- a/samples/client/petstore/java/docs/paths/fake/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fake/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [Client1](../../../../../../../../../components/schemas/Client.md#client 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md b/samples/client/petstore/java/docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md index 9c5c11c446a..367c3c568eb 100644 --- a/samples/client/petstore/java/docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md +++ b/samples/client/petstore/java/docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md @@ -3,7 +3,7 @@ public class ApplicationxwwwformurlencodedSchema
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 +- abstract 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 @@ -59,15 +59,15 @@ A class that contains necessary nested | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInteger](#applicationxwwwformurlencodedinteger)
schema class | ## ApplicationxwwwformurlencodedSchema1Boxed -public static abstract sealed class ApplicationxwwwformurlencodedSchema1Boxed
+public sealed interface ApplicationxwwwformurlencodedSchema1Boxed
permits
[ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedSchema1BoxedMap public static final class ApplicationxwwwformurlencodedSchema1BoxedMap
-extends [ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed) +implements [ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -524,15 +524,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## ApplicationxwwwformurlencodedCallbackBoxed -public static abstract sealed class ApplicationxwwwformurlencodedCallbackBoxed
+public sealed interface ApplicationxwwwformurlencodedCallbackBoxed
permits
[ApplicationxwwwformurlencodedCallbackBoxedString](#applicationxwwwformurlencodedcallbackboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedCallbackBoxedString public static final class ApplicationxwwwformurlencodedCallbackBoxedString
-extends [ApplicationxwwwformurlencodedCallbackBoxed](#applicationxwwwformurlencodedcallbackboxed) +implements [ApplicationxwwwformurlencodedCallbackBoxed](#applicationxwwwformurlencodedcallbackboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -561,15 +561,15 @@ None | validateAndBox | ## ApplicationxwwwformurlencodedPasswordBoxed -public static abstract sealed class ApplicationxwwwformurlencodedPasswordBoxed
+public sealed interface ApplicationxwwwformurlencodedPasswordBoxed
permits
[ApplicationxwwwformurlencodedPasswordBoxedString](#applicationxwwwformurlencodedpasswordboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedPasswordBoxedString public static final class ApplicationxwwwformurlencodedPasswordBoxedString
-extends [ApplicationxwwwformurlencodedPasswordBoxed](#applicationxwwwformurlencodedpasswordboxed) +implements [ApplicationxwwwformurlencodedPasswordBoxed](#applicationxwwwformurlencodedpasswordboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -629,15 +629,15 @@ String validatedPayload = ApplicationxwwwformurlencodedSchema.Applicationxwwwfor | [ApplicationxwwwformurlencodedPasswordBoxedString](#applicationxwwwformurlencodedpasswordboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## ApplicationxwwwformurlencodedDateTimeBoxed -public static abstract sealed class ApplicationxwwwformurlencodedDateTimeBoxed
+public sealed interface ApplicationxwwwformurlencodedDateTimeBoxed
permits
[ApplicationxwwwformurlencodedDateTimeBoxedString](#applicationxwwwformurlencodeddatetimeboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedDateTimeBoxedString public static final class ApplicationxwwwformurlencodedDateTimeBoxedString
-extends [ApplicationxwwwformurlencodedDateTimeBoxed](#applicationxwwwformurlencodeddatetimeboxed) +implements [ApplicationxwwwformurlencodedDateTimeBoxed](#applicationxwwwformurlencodeddatetimeboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -696,15 +696,15 @@ String validatedPayload = ApplicationxwwwformurlencodedSchema.Applicationxwwwfor | [ApplicationxwwwformurlencodedDateTimeBoxedString](#applicationxwwwformurlencodeddatetimeboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## ApplicationxwwwformurlencodedDateBoxed -public static abstract sealed class ApplicationxwwwformurlencodedDateBoxed
+public sealed interface ApplicationxwwwformurlencodedDateBoxed
permits
[ApplicationxwwwformurlencodedDateBoxedString](#applicationxwwwformurlencodeddateboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedDateBoxedString public static final class ApplicationxwwwformurlencodedDateBoxedString
-extends [ApplicationxwwwformurlencodedDateBoxed](#applicationxwwwformurlencodeddateboxed) +implements [ApplicationxwwwformurlencodedDateBoxed](#applicationxwwwformurlencodeddateboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -733,10 +733,10 @@ None | validateAndBox | ## ApplicationxwwwformurlencodedBinaryBoxed -public static abstract sealed class ApplicationxwwwformurlencodedBinaryBoxed
+public sealed interface ApplicationxwwwformurlencodedBinaryBoxed
permits
-abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedBinary public static class ApplicationxwwwformurlencodedBinary
@@ -748,15 +748,15 @@ A schema class that validates payloads None ## ApplicationxwwwformurlencodedByteBoxed -public static abstract sealed class ApplicationxwwwformurlencodedByteBoxed
+public sealed interface ApplicationxwwwformurlencodedByteBoxed
permits
[ApplicationxwwwformurlencodedByteBoxedString](#applicationxwwwformurlencodedbyteboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedByteBoxedString public static final class ApplicationxwwwformurlencodedByteBoxedString
-extends [ApplicationxwwwformurlencodedByteBoxed](#applicationxwwwformurlencodedbyteboxed) +implements [ApplicationxwwwformurlencodedByteBoxed](#applicationxwwwformurlencodedbyteboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -780,15 +780,15 @@ A schema class that validates payloads None ## ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed -public static abstract sealed class ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed
+public sealed interface ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed
permits
[ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString](#applicationxwwwformurlencodedpatternwithoutdelimiterboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString public static final class ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString
-extends [ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed](#applicationxwwwformurlencodedpatternwithoutdelimiterboxed) +implements [ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed](#applicationxwwwformurlencodedpatternwithoutdelimiterboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -846,15 +846,15 @@ String validatedPayload = ApplicationxwwwformurlencodedSchema.Applicationxwwwfor | [ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString](#applicationxwwwformurlencodedpatternwithoutdelimiterboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## ApplicationxwwwformurlencodedStringBoxed -public static abstract sealed class ApplicationxwwwformurlencodedStringBoxed
+public sealed interface ApplicationxwwwformurlencodedStringBoxed
permits
[ApplicationxwwwformurlencodedStringBoxedString](#applicationxwwwformurlencodedstringboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedStringBoxedString public static final class ApplicationxwwwformurlencodedStringBoxedString
-extends [ApplicationxwwwformurlencodedStringBoxed](#applicationxwwwformurlencodedstringboxed) +implements [ApplicationxwwwformurlencodedStringBoxed](#applicationxwwwformurlencodedstringboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -912,15 +912,15 @@ String validatedPayload = ApplicationxwwwformurlencodedSchema.Applicationxwwwfor | [ApplicationxwwwformurlencodedStringBoxedString](#applicationxwwwformurlencodedstringboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## ApplicationxwwwformurlencodedDoubleBoxed -public static abstract sealed class ApplicationxwwwformurlencodedDoubleBoxed
+public sealed interface ApplicationxwwwformurlencodedDoubleBoxed
permits
[ApplicationxwwwformurlencodedDoubleBoxedNumber](#applicationxwwwformurlencodeddoubleboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedDoubleBoxedNumber public static final class ApplicationxwwwformurlencodedDoubleBoxedNumber
-extends [ApplicationxwwwformurlencodedDoubleBoxed](#applicationxwwwformurlencodeddoubleboxed) +implements [ApplicationxwwwformurlencodedDoubleBoxed](#applicationxwwwformurlencodeddoubleboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -980,15 +980,15 @@ double validatedPayload = ApplicationxwwwformurlencodedSchema.Applicationxwwwfor | [ApplicationxwwwformurlencodedDoubleBoxedNumber](#applicationxwwwformurlencodeddoubleboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## ApplicationxwwwformurlencodedFloatBoxed -public static abstract sealed class ApplicationxwwwformurlencodedFloatBoxed
+public sealed interface ApplicationxwwwformurlencodedFloatBoxed
permits
[ApplicationxwwwformurlencodedFloatBoxedNumber](#applicationxwwwformurlencodedfloatboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedFloatBoxedNumber public static final class ApplicationxwwwformurlencodedFloatBoxedNumber
-extends [ApplicationxwwwformurlencodedFloatBoxed](#applicationxwwwformurlencodedfloatboxed) +implements [ApplicationxwwwformurlencodedFloatBoxed](#applicationxwwwformurlencodedfloatboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -1047,15 +1047,15 @@ float validatedPayload = ApplicationxwwwformurlencodedSchema.Applicationxwwwform | [ApplicationxwwwformurlencodedFloatBoxedNumber](#applicationxwwwformurlencodedfloatboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## ApplicationxwwwformurlencodedNumberBoxed -public static abstract sealed class ApplicationxwwwformurlencodedNumberBoxed
+public sealed interface ApplicationxwwwformurlencodedNumberBoxed
permits
[ApplicationxwwwformurlencodedNumberBoxedNumber](#applicationxwwwformurlencodednumberboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedNumberBoxedNumber public static final class ApplicationxwwwformurlencodedNumberBoxedNumber
-extends [ApplicationxwwwformurlencodedNumberBoxed](#applicationxwwwformurlencodednumberboxed) +implements [ApplicationxwwwformurlencodedNumberBoxed](#applicationxwwwformurlencodednumberboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -1114,15 +1114,15 @@ int validatedPayload = ApplicationxwwwformurlencodedSchema.Applicationxwwwformur | [ApplicationxwwwformurlencodedNumberBoxedNumber](#applicationxwwwformurlencodednumberboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## ApplicationxwwwformurlencodedInt64Boxed -public static abstract sealed class ApplicationxwwwformurlencodedInt64Boxed
+public sealed interface ApplicationxwwwformurlencodedInt64Boxed
permits
[ApplicationxwwwformurlencodedInt64BoxedNumber](#applicationxwwwformurlencodedint64boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedInt64BoxedNumber public static final class ApplicationxwwwformurlencodedInt64BoxedNumber
-extends [ApplicationxwwwformurlencodedInt64Boxed](#applicationxwwwformurlencodedint64boxed) +implements [ApplicationxwwwformurlencodedInt64Boxed](#applicationxwwwformurlencodedint64boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -1151,15 +1151,15 @@ None | validateAndBox | ## ApplicationxwwwformurlencodedInt32Boxed -public static abstract sealed class ApplicationxwwwformurlencodedInt32Boxed
+public sealed interface ApplicationxwwwformurlencodedInt32Boxed
permits
[ApplicationxwwwformurlencodedInt32BoxedNumber](#applicationxwwwformurlencodedint32boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedInt32BoxedNumber public static final class ApplicationxwwwformurlencodedInt32BoxedNumber
-extends [ApplicationxwwwformurlencodedInt32Boxed](#applicationxwwwformurlencodedint32boxed) +implements [ApplicationxwwwformurlencodedInt32Boxed](#applicationxwwwformurlencodedint32boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -1219,15 +1219,15 @@ int validatedPayload = ApplicationxwwwformurlencodedSchema.Applicationxwwwformur | [ApplicationxwwwformurlencodedInt32BoxedNumber](#applicationxwwwformurlencodedint32boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## ApplicationxwwwformurlencodedIntegerBoxed -public static abstract sealed class ApplicationxwwwformurlencodedIntegerBoxed
+public sealed interface ApplicationxwwwformurlencodedIntegerBoxed
permits
[ApplicationxwwwformurlencodedIntegerBoxedNumber](#applicationxwwwformurlencodedintegerboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedIntegerBoxedNumber public static final class ApplicationxwwwformurlencodedIntegerBoxedNumber
-extends [ApplicationxwwwformurlencodedIntegerBoxed](#applicationxwwwformurlencodedintegerboxed) +implements [ApplicationxwwwformurlencodedIntegerBoxed](#applicationxwwwformurlencodedintegerboxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.md index 9219d61e8af..db11fc0416b 100644 --- a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [AdditionalPropertiesWithArrayOfEnums1](../../../../../../../components/ 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md index a7884c2ba44..0aeccbe12bf 100644 --- a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [AdditionalPropertiesWithArrayOfEnums1](../../../../../../../../../compo 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.md index f95b89518d6..21dabbb3675 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [FileSchemaTestClass1](../../../../../../../components/schemas/FileSchem 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md index 34951cbef92..e79a3033b40 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md @@ -3,7 +3,7 @@ public class Schema0
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed -public static abstract sealed class Schema01Boxed
+public sealed interface Schema01Boxed
permits
[Schema01BoxedString](#schema01boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema01BoxedString public static final class Schema01BoxedString
-extends [Schema01Boxed](#schema01boxed) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.md index f2e3fc91680..6c2b5617631 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [User1](../../../../../../../components/schemas/User.md#user) 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.md index 34951cbef92..e79a3033b40 100644 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.md @@ -3,7 +3,7 @@ public class Schema0
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed -public static abstract sealed class Schema01Boxed
+public sealed interface Schema01Boxed
permits
[Schema01BoxedString](#schema01boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema01BoxedString public static final class Schema01BoxedString
-extends [Schema01Boxed](#schema01boxed) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md index dc73fa004df..607c39645ec 100644 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md @@ -3,7 +3,7 @@ public class Schema1
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema1.Schema11](#schema11)
schema class | ## Schema11Boxed -public static abstract sealed class Schema11Boxed
+public sealed interface Schema11Boxed
permits
[Schema11BoxedString](#schema11boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema11BoxedString public static final class Schema11BoxedString
-extends [Schema11Boxed](#schema11boxed) +implements [Schema11Boxed](#schema11boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md index e44ea1732a1..4da86d445e1 100644 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md @@ -3,7 +3,7 @@ public class Schema2
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema2.Schema21](#schema21)
schema class | ## Schema21Boxed -public static abstract sealed class Schema21Boxed
+public sealed interface Schema21Boxed
permits
[Schema21BoxedString](#schema21boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema21BoxedString public static final class Schema21BoxedString
-extends [Schema21Boxed](#schema21boxed) +implements [Schema21Boxed](#schema21boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.md index 104d3d325b5..1bc0d6e8e15 100644 --- a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [Client1](../../../../../../../../../components/schemas/Client.md#client 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.md index 34951cbef92..e79a3033b40 100644 --- a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.md @@ -3,7 +3,7 @@ public class Schema0
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed -public static abstract sealed class Schema01Boxed
+public sealed interface Schema01Boxed
permits
[Schema01BoxedString](#schema01boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema01BoxedString public static final class Schema01BoxedString
-extends [Schema01Boxed](#schema01boxed) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakehealth/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakehealth/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md index 4fadc5bc16b..e7211f0c470 100644 --- a/samples/client/petstore/java/docs/paths/fakehealth/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakehealth/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [HealthCheckResult1](../../../../../../../../../components/schemas/Healt 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index 7ef6cc35abd..56bc3831140 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -3,7 +3,7 @@ public class ApplicationjsonSchema
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 +- abstract 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 @@ -21,15 +21,15 @@ A class that contains necessary nested | static class | [ApplicationjsonSchema.ApplicationjsonAdditionalProperties](#applicationjsonadditionalproperties)
schema class | ## ApplicationjsonSchema1Boxed -public static abstract sealed class ApplicationjsonSchema1Boxed
+public sealed interface ApplicationjsonSchema1Boxed
permits
[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedMap public static final class ApplicationjsonSchema1BoxedMap
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -117,15 +117,15 @@ A class to store validated Map payloads | String | getAdditionalProperty(String name)
provides type safety for additional properties | ## ApplicationjsonAdditionalPropertiesBoxed -public static abstract sealed class ApplicationjsonAdditionalPropertiesBoxed
+public sealed interface ApplicationjsonAdditionalPropertiesBoxed
permits
[ApplicationjsonAdditionalPropertiesBoxedString](#applicationjsonadditionalpropertiesboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationjsonAdditionalPropertiesBoxedString public static final class ApplicationjsonAdditionalPropertiesBoxedString
-extends [ApplicationjsonAdditionalPropertiesBoxed](#applicationjsonadditionalpropertiesboxed) +implements [ApplicationjsonAdditionalPropertiesBoxed](#applicationjsonadditionalpropertiesboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md index e9600069529..594540bf85d 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md @@ -3,7 +3,7 @@ public class Schema0
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 +- abstract 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 @@ -22,7 +22,7 @@ A class that contains necessary nested | static class | [Schema0.Schema00](#schema00)
schema class | ## Schema01Boxed -public static abstract sealed class Schema01Boxed
+public sealed interface Schema01Boxed
permits
[Schema01BoxedVoid](#schema01boxedvoid), [Schema01BoxedBoolean](#schema01boxedboolean), @@ -31,11 +31,11 @@ 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) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -51,7 +51,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## Schema01BoxedBoolean public static final class Schema01BoxedBoolean
-extends [Schema01Boxed](#schema01boxed) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -67,7 +67,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## Schema01BoxedNumber public static final class Schema01BoxedNumber
-extends [Schema01Boxed](#schema01boxed) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -83,7 +83,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## Schema01BoxedString public static final class Schema01BoxedString
-extends [Schema01Boxed](#schema01boxed) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -99,7 +99,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## Schema01BoxedList public static final class Schema01BoxedList
-extends [Schema01Boxed](#schema01boxed) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -115,7 +115,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## Schema01BoxedMap public static final class Schema01BoxedMap
-extends [Schema01Boxed](#schema01boxed) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -161,15 +161,15 @@ A schema class that validates payloads | [Schema01BoxedList](#schema01boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## Schema00Boxed -public static abstract sealed class Schema00Boxed
+public sealed interface Schema00Boxed
permits
[Schema00BoxedString](#schema00boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema00BoxedString public static final class Schema00BoxedString
-extends [Schema00Boxed](#schema00boxed) +implements [Schema00Boxed](#schema00boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md index 36ef207ff66..96ec9020603 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md @@ -3,7 +3,7 @@ public class Schema1
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 +- abstract 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 @@ -29,15 +29,15 @@ A class that contains necessary nested | static class | [Schema1.Schema01](#schema01)
schema class | ## Schema11Boxed -public static abstract sealed class Schema11Boxed
+public sealed interface Schema11Boxed
permits
[Schema11BoxedMap](#schema11boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema11BoxedMap public static final class Schema11BoxedMap
-extends [Schema11Boxed](#schema11boxed) +implements [Schema11Boxed](#schema11boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -141,7 +141,7 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## SomeProp1Boxed -public static abstract sealed class SomeProp1Boxed
+public sealed interface SomeProp1Boxed
permits
[SomeProp1BoxedVoid](#someprop1boxedvoid), [SomeProp1BoxedBoolean](#someprop1boxedboolean), @@ -150,11 +150,11 @@ permits
[SomeProp1BoxedList](#someprop1boxedlist), [SomeProp1BoxedMap](#someprop1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## SomeProp1BoxedVoid public static final class SomeProp1BoxedVoid
-extends [SomeProp1Boxed](#someprop1boxed) +implements [SomeProp1Boxed](#someprop1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -170,7 +170,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## SomeProp1BoxedBoolean public static final class SomeProp1BoxedBoolean
-extends [SomeProp1Boxed](#someprop1boxed) +implements [SomeProp1Boxed](#someprop1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -186,7 +186,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## SomeProp1BoxedNumber public static final class SomeProp1BoxedNumber
-extends [SomeProp1Boxed](#someprop1boxed) +implements [SomeProp1Boxed](#someprop1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -202,7 +202,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## SomeProp1BoxedString public static final class SomeProp1BoxedString
-extends [SomeProp1Boxed](#someprop1boxed) +implements [SomeProp1Boxed](#someprop1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -218,7 +218,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## SomeProp1BoxedList public static final class SomeProp1BoxedList
-extends [SomeProp1Boxed](#someprop1boxed) +implements [SomeProp1Boxed](#someprop1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -234,7 +234,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## SomeProp1BoxedMap public static final class SomeProp1BoxedMap
-extends [SomeProp1Boxed](#someprop1boxed) +implements [SomeProp1Boxed](#someprop1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -280,15 +280,15 @@ A schema class that validates payloads | [SomeProp1BoxedList](#someprop1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## Schema01Boxed -public static abstract sealed class Schema01Boxed
+public sealed interface Schema01Boxed
permits
[Schema01BoxedString](#schema01boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema01BoxedString public static final class Schema01BoxedString
-extends [Schema01Boxed](#schema01boxed) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index 5208411e6d2..60db4729ac6 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -3,7 +3,7 @@ public class ApplicationjsonSchema
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 +- abstract 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 @@ -22,7 +22,7 @@ A class that contains necessary nested | static class | [ApplicationjsonSchema.Applicationjson0](#applicationjson0)
schema class | ## ApplicationjsonSchema1Boxed -public static abstract sealed class ApplicationjsonSchema1Boxed
+public sealed interface ApplicationjsonSchema1Boxed
permits
[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), [ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), @@ -31,11 +31,11 @@ permits
[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedVoid public static final class ApplicationjsonSchema1BoxedVoid
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -51,7 +51,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ApplicationjsonSchema1BoxedBoolean public static final class ApplicationjsonSchema1BoxedBoolean
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -67,7 +67,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## ApplicationjsonSchema1BoxedNumber public static final class ApplicationjsonSchema1BoxedNumber
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -83,7 +83,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## ApplicationjsonSchema1BoxedString public static final class ApplicationjsonSchema1BoxedString
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -99,7 +99,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## ApplicationjsonSchema1BoxedList public static final class ApplicationjsonSchema1BoxedList
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -115,7 +115,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## ApplicationjsonSchema1BoxedMap public static final class ApplicationjsonSchema1BoxedMap
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -161,15 +161,15 @@ A schema class that validates payloads | [ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## Applicationjson0Boxed -public static abstract sealed class Applicationjson0Boxed
+public sealed interface Applicationjson0Boxed
permits
[Applicationjson0BoxedString](#applicationjson0boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Applicationjson0BoxedString public static final class Applicationjson0BoxedString
-extends [Applicationjson0Boxed](#applicationjson0boxed) +implements [Applicationjson0Boxed](#applicationjson0boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md index b1e100db12e..dac2d663fe6 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -3,7 +3,7 @@ public class MultipartformdataSchema
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 +- abstract 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 @@ -29,15 +29,15 @@ A class that contains necessary nested | static class | [MultipartformdataSchema.Multipartformdata0](#multipartformdata0)
schema class | ## MultipartformdataSchema1Boxed -public static abstract sealed class MultipartformdataSchema1Boxed
+public sealed interface MultipartformdataSchema1Boxed
permits
[MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MultipartformdataSchema1BoxedMap public static final class MultipartformdataSchema1BoxedMap
-extends [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) +implements [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -141,7 +141,7 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## MultipartformdataSomePropBoxed -public static abstract sealed class MultipartformdataSomePropBoxed
+public sealed interface MultipartformdataSomePropBoxed
permits
[MultipartformdataSomePropBoxedVoid](#multipartformdatasomepropboxedvoid), [MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean), @@ -150,11 +150,11 @@ permits
[MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist), [MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MultipartformdataSomePropBoxedVoid public static final class MultipartformdataSomePropBoxedVoid
-extends [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) +implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -170,7 +170,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## MultipartformdataSomePropBoxedBoolean public static final class MultipartformdataSomePropBoxedBoolean
-extends [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) +implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -186,7 +186,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## MultipartformdataSomePropBoxedNumber public static final class MultipartformdataSomePropBoxedNumber
-extends [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) +implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -202,7 +202,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## MultipartformdataSomePropBoxedString public static final class MultipartformdataSomePropBoxedString
-extends [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) +implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -218,7 +218,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## MultipartformdataSomePropBoxedList public static final class MultipartformdataSomePropBoxedList
-extends [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) +implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -234,7 +234,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## MultipartformdataSomePropBoxedMap public static final class MultipartformdataSomePropBoxedMap
-extends [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) +implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -280,15 +280,15 @@ A schema class that validates payloads | [MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## Multipartformdata0Boxed -public static abstract sealed class Multipartformdata0Boxed
+public sealed interface Multipartformdata0Boxed
permits
[Multipartformdata0BoxedString](#multipartformdata0boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Multipartformdata0BoxedString public static final class Multipartformdata0BoxedString
-extends [Multipartformdata0Boxed](#multipartformdata0boxed) +implements [Multipartformdata0Boxed](#multipartformdata0boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md index 5208411e6d2..60db4729ac6 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -3,7 +3,7 @@ public class ApplicationjsonSchema
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 +- abstract 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 @@ -22,7 +22,7 @@ A class that contains necessary nested | static class | [ApplicationjsonSchema.Applicationjson0](#applicationjson0)
schema class | ## ApplicationjsonSchema1Boxed -public static abstract sealed class ApplicationjsonSchema1Boxed
+public sealed interface ApplicationjsonSchema1Boxed
permits
[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), [ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), @@ -31,11 +31,11 @@ permits
[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedVoid public static final class ApplicationjsonSchema1BoxedVoid
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -51,7 +51,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ApplicationjsonSchema1BoxedBoolean public static final class ApplicationjsonSchema1BoxedBoolean
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -67,7 +67,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## ApplicationjsonSchema1BoxedNumber public static final class ApplicationjsonSchema1BoxedNumber
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -83,7 +83,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## ApplicationjsonSchema1BoxedString public static final class ApplicationjsonSchema1BoxedString
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -99,7 +99,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## ApplicationjsonSchema1BoxedList public static final class ApplicationjsonSchema1BoxedList
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -115,7 +115,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## ApplicationjsonSchema1BoxedMap public static final class ApplicationjsonSchema1BoxedMap
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -161,15 +161,15 @@ A schema class that validates payloads | [ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## Applicationjson0Boxed -public static abstract sealed class Applicationjson0Boxed
+public sealed interface Applicationjson0Boxed
permits
[Applicationjson0BoxedString](#applicationjson0boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Applicationjson0BoxedString public static final class Applicationjson0BoxedString
-extends [Applicationjson0Boxed](#applicationjson0boxed) +implements [Applicationjson0Boxed](#applicationjson0boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.md index b1e100db12e..dac2d663fe6 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.md @@ -3,7 +3,7 @@ public class MultipartformdataSchema
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 +- abstract 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 @@ -29,15 +29,15 @@ A class that contains necessary nested | static class | [MultipartformdataSchema.Multipartformdata0](#multipartformdata0)
schema class | ## MultipartformdataSchema1Boxed -public static abstract sealed class MultipartformdataSchema1Boxed
+public sealed interface MultipartformdataSchema1Boxed
permits
[MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MultipartformdataSchema1BoxedMap public static final class MultipartformdataSchema1BoxedMap
-extends [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) +implements [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -141,7 +141,7 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## MultipartformdataSomePropBoxed -public static abstract sealed class MultipartformdataSomePropBoxed
+public sealed interface MultipartformdataSomePropBoxed
permits
[MultipartformdataSomePropBoxedVoid](#multipartformdatasomepropboxedvoid), [MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean), @@ -150,11 +150,11 @@ permits
[MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist), [MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MultipartformdataSomePropBoxedVoid public static final class MultipartformdataSomePropBoxedVoid
-extends [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) +implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -170,7 +170,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## MultipartformdataSomePropBoxedBoolean public static final class MultipartformdataSomePropBoxedBoolean
-extends [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) +implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -186,7 +186,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## MultipartformdataSomePropBoxedNumber public static final class MultipartformdataSomePropBoxedNumber
-extends [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) +implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -202,7 +202,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## MultipartformdataSomePropBoxedString public static final class MultipartformdataSomePropBoxedString
-extends [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) +implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -218,7 +218,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## MultipartformdataSomePropBoxedList public static final class MultipartformdataSomePropBoxedList
-extends [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) +implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -234,7 +234,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## MultipartformdataSomePropBoxedMap public static final class MultipartformdataSomePropBoxedMap
-extends [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) +implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -280,15 +280,15 @@ A schema class that validates payloads | [MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | ## Multipartformdata0Boxed -public static abstract sealed class Multipartformdata0Boxed
+public sealed interface Multipartformdata0Boxed
permits
[Multipartformdata0BoxedString](#multipartformdata0boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Multipartformdata0BoxedString public static final class Multipartformdata0BoxedString
-extends [Multipartformdata0Boxed](#multipartformdata0boxed) +implements [Multipartformdata0Boxed](#multipartformdata0boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md b/samples/client/petstore/java/docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md index 5ba79920aee..de2fa7343c5 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md +++ b/samples/client/petstore/java/docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md @@ -3,7 +3,7 @@ public class ApplicationxwwwformurlencodedSchema
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 +- abstract 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 @@ -24,15 +24,15 @@ A class that contains necessary nested | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedParam](#applicationxwwwformurlencodedparam)
schema class | ## ApplicationxwwwformurlencodedSchema1Boxed -public static abstract sealed class ApplicationxwwwformurlencodedSchema1Boxed
+public sealed interface ApplicationxwwwformurlencodedSchema1Boxed
permits
[ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedSchema1BoxedMap public static final class ApplicationxwwwformurlencodedSchema1BoxedMap
-extends [ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed) +implements [ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -182,15 +182,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## ApplicationxwwwformurlencodedParam2Boxed -public static abstract sealed class ApplicationxwwwformurlencodedParam2Boxed
+public sealed interface ApplicationxwwwformurlencodedParam2Boxed
permits
[ApplicationxwwwformurlencodedParam2BoxedString](#applicationxwwwformurlencodedparam2boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedParam2BoxedString public static final class ApplicationxwwwformurlencodedParam2BoxedString
-extends [ApplicationxwwwformurlencodedParam2Boxed](#applicationxwwwformurlencodedparam2boxed) +implements [ApplicationxwwwformurlencodedParam2Boxed](#applicationxwwwformurlencodedparam2boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -219,15 +219,15 @@ field2 | validateAndBox | ## ApplicationxwwwformurlencodedParamBoxed -public static abstract sealed class ApplicationxwwwformurlencodedParamBoxed
+public sealed interface ApplicationxwwwformurlencodedParamBoxed
permits
[ApplicationxwwwformurlencodedParamBoxedString](#applicationxwwwformurlencodedparamboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedParamBoxedString public static final class ApplicationxwwwformurlencodedParamBoxedString
-extends [ApplicationxwwwformurlencodedParamBoxed](#applicationxwwwformurlencodedparamboxed) +implements [ApplicationxwwwformurlencodedParamBoxed](#applicationxwwwformurlencodedparamboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.md b/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.md index 72998483ab7..662d7b7aab8 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.md @@ -4,7 +4,7 @@ extends [JSONPatchRequest1](../../../../../../../components/schemas/JSONPatchReq 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md index c73738de19e..b31ddb37738 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md +++ b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md @@ -3,7 +3,7 @@ public class Applicationjsoncharsetutf8Schema
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 +- abstract 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 @@ -19,7 +19,7 @@ A class that contains necessary nested | static class | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1](#applicationjsoncharsetutf8schema1)
schema class | ## Applicationjsoncharsetutf8Schema1Boxed -public static abstract sealed class Applicationjsoncharsetutf8Schema1Boxed
+public sealed interface Applicationjsoncharsetutf8Schema1Boxed
permits
[Applicationjsoncharsetutf8Schema1BoxedVoid](#applicationjsoncharsetutf8schema1boxedvoid), [Applicationjsoncharsetutf8Schema1BoxedBoolean](#applicationjsoncharsetutf8schema1boxedboolean), @@ -28,11 +28,11 @@ permits
[Applicationjsoncharsetutf8Schema1BoxedList](#applicationjsoncharsetutf8schema1boxedlist), [Applicationjsoncharsetutf8Schema1BoxedMap](#applicationjsoncharsetutf8schema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Applicationjsoncharsetutf8Schema1BoxedVoid public static final class Applicationjsoncharsetutf8Schema1BoxedVoid
-extends [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) +implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -48,7 +48,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## Applicationjsoncharsetutf8Schema1BoxedBoolean public static final class Applicationjsoncharsetutf8Schema1BoxedBoolean
-extends [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) +implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -64,7 +64,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## Applicationjsoncharsetutf8Schema1BoxedNumber public static final class Applicationjsoncharsetutf8Schema1BoxedNumber
-extends [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) +implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -80,7 +80,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## Applicationjsoncharsetutf8Schema1BoxedString public static final class Applicationjsoncharsetutf8Schema1BoxedString
-extends [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) +implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -96,7 +96,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## Applicationjsoncharsetutf8Schema1BoxedList public static final class Applicationjsoncharsetutf8Schema1BoxedList
-extends [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) +implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -112,7 +112,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## Applicationjsoncharsetutf8Schema1BoxedMap public static final class Applicationjsoncharsetutf8Schema1BoxedMap
-extends [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) +implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/response200/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/response200/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md index c73738de19e..b31ddb37738 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/response200/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md +++ b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/response200/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md @@ -3,7 +3,7 @@ public class Applicationjsoncharsetutf8Schema
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 +- abstract 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 @@ -19,7 +19,7 @@ A class that contains necessary nested | static class | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1](#applicationjsoncharsetutf8schema1)
schema class | ## Applicationjsoncharsetutf8Schema1Boxed -public static abstract sealed class Applicationjsoncharsetutf8Schema1Boxed
+public sealed interface Applicationjsoncharsetutf8Schema1Boxed
permits
[Applicationjsoncharsetutf8Schema1BoxedVoid](#applicationjsoncharsetutf8schema1boxedvoid), [Applicationjsoncharsetutf8Schema1BoxedBoolean](#applicationjsoncharsetutf8schema1boxedboolean), @@ -28,11 +28,11 @@ permits
[Applicationjsoncharsetutf8Schema1BoxedList](#applicationjsoncharsetutf8schema1boxedlist), [Applicationjsoncharsetutf8Schema1BoxedMap](#applicationjsoncharsetutf8schema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Applicationjsoncharsetutf8Schema1BoxedVoid public static final class Applicationjsoncharsetutf8Schema1BoxedVoid
-extends [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) +implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -48,7 +48,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## Applicationjsoncharsetutf8Schema1BoxedBoolean public static final class Applicationjsoncharsetutf8Schema1BoxedBoolean
-extends [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) +implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -64,7 +64,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## Applicationjsoncharsetutf8Schema1BoxedNumber public static final class Applicationjsoncharsetutf8Schema1BoxedNumber
-extends [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) +implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -80,7 +80,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## Applicationjsoncharsetutf8Schema1BoxedString public static final class Applicationjsoncharsetutf8Schema1BoxedString
-extends [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) +implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -96,7 +96,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## Applicationjsoncharsetutf8Schema1BoxedList public static final class Applicationjsoncharsetutf8Schema1BoxedList
-extends [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) +implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -112,7 +112,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## Applicationjsoncharsetutf8Schema1BoxedMap public static final class Applicationjsoncharsetutf8Schema1BoxedMap
-extends [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) +implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index 6025f8e4614..db6b1223efb 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -3,7 +3,7 @@ public class ApplicationjsonSchema
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 +- abstract 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 @@ -21,15 +21,15 @@ A class that contains necessary nested | static class | [ApplicationjsonSchema.ApplicationjsonA](#applicationjsona)
schema class | ## ApplicationjsonSchema1Boxed -public static abstract sealed class ApplicationjsonSchema1Boxed
+public sealed interface ApplicationjsonSchema1Boxed
permits
[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedMap public static final class ApplicationjsonSchema1BoxedMap
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -127,15 +127,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## ApplicationjsonABoxed -public static abstract sealed class ApplicationjsonABoxed
+public sealed interface ApplicationjsonABoxed
permits
[ApplicationjsonABoxedString](#applicationjsonaboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationjsonABoxedString public static final class ApplicationjsonABoxedString
-extends [ApplicationjsonABoxed](#applicationjsonaboxed) +implements [ApplicationjsonABoxed](#applicationjsonaboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md index 4debc7ab000..27800c1f28f 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -3,7 +3,7 @@ public class MultipartformdataSchema
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 +- abstract 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 @@ -21,15 +21,15 @@ A class that contains necessary nested | static class | [MultipartformdataSchema.MultipartformdataB](#multipartformdatab)
schema class | ## MultipartformdataSchema1Boxed -public static abstract sealed class MultipartformdataSchema1Boxed
+public sealed interface MultipartformdataSchema1Boxed
permits
[MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MultipartformdataSchema1BoxedMap public static final class MultipartformdataSchema1BoxedMap
-extends [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) +implements [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -127,15 +127,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## MultipartformdataBBoxed -public static abstract sealed class MultipartformdataBBoxed
+public sealed interface MultipartformdataBBoxed
permits
[MultipartformdataBBoxedString](#multipartformdatabboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MultipartformdataBBoxedString public static final class MultipartformdataBBoxedString
-extends [MultipartformdataBBoxed](#multipartformdatabboxed) +implements [MultipartformdataBBoxed](#multipartformdatabboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md index 53da126ffca..433318e61e6 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -3,7 +3,7 @@ public class ApplicationjsonSchema
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 +- abstract 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 @@ -19,7 +19,7 @@ A class that contains necessary nested | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | ## ApplicationjsonSchema1Boxed -public static abstract sealed class ApplicationjsonSchema1Boxed
+public sealed interface ApplicationjsonSchema1Boxed
permits
[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), [ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), @@ -28,11 +28,11 @@ permits
[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedVoid public static final class ApplicationjsonSchema1BoxedVoid
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -48,7 +48,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ApplicationjsonSchema1BoxedBoolean public static final class ApplicationjsonSchema1BoxedBoolean
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -64,7 +64,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## ApplicationjsonSchema1BoxedNumber public static final class ApplicationjsonSchema1BoxedNumber
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -80,7 +80,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## ApplicationjsonSchema1BoxedString public static final class ApplicationjsonSchema1BoxedString
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -96,7 +96,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## ApplicationjsonSchema1BoxedList public static final class ApplicationjsonSchema1BoxedList
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -112,7 +112,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## ApplicationjsonSchema1BoxedMap public static final class ApplicationjsonSchema1BoxedMap
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md index 53da126ffca..433318e61e6 100644 --- a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -3,7 +3,7 @@ public class ApplicationjsonSchema
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 +- abstract 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 @@ -19,7 +19,7 @@ A class that contains necessary nested | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | ## ApplicationjsonSchema1Boxed -public static abstract sealed class ApplicationjsonSchema1Boxed
+public sealed interface ApplicationjsonSchema1Boxed
permits
[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), [ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), @@ -28,11 +28,11 @@ permits
[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedVoid public static final class ApplicationjsonSchema1BoxedVoid
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -48,7 +48,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ApplicationjsonSchema1BoxedBoolean public static final class ApplicationjsonSchema1BoxedBoolean
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -64,7 +64,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## ApplicationjsonSchema1BoxedNumber public static final class ApplicationjsonSchema1BoxedNumber
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -80,7 +80,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## ApplicationjsonSchema1BoxedString public static final class ApplicationjsonSchema1BoxedString
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -96,7 +96,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## ApplicationjsonSchema1BoxedList public static final class ApplicationjsonSchema1BoxedList
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -112,7 +112,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## ApplicationjsonSchema1BoxedMap public static final class ApplicationjsonSchema1BoxedMap
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/response202/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/response202/content/applicationjson/ApplicationjsonSchema.md index 53da126ffca..433318e61e6 100644 --- a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/response202/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/response202/content/applicationjson/ApplicationjsonSchema.md @@ -3,7 +3,7 @@ public class ApplicationjsonSchema
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 +- abstract 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 @@ -19,7 +19,7 @@ A class that contains necessary nested | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | ## ApplicationjsonSchema1Boxed -public static abstract sealed class ApplicationjsonSchema1Boxed
+public sealed interface ApplicationjsonSchema1Boxed
permits
[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), [ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), @@ -28,11 +28,11 @@ permits
[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedVoid public static final class ApplicationjsonSchema1BoxedVoid
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -48,7 +48,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ApplicationjsonSchema1BoxedBoolean public static final class ApplicationjsonSchema1BoxedBoolean
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -64,7 +64,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## ApplicationjsonSchema1BoxedNumber public static final class ApplicationjsonSchema1BoxedNumber
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -80,7 +80,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## ApplicationjsonSchema1BoxedString public static final class ApplicationjsonSchema1BoxedString
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -96,7 +96,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## ApplicationjsonSchema1BoxedList public static final class ApplicationjsonSchema1BoxedList
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -112,7 +112,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## ApplicationjsonSchema1BoxedMap public static final class ApplicationjsonSchema1BoxedMap
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md index 53da126ffca..433318e61e6 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -3,7 +3,7 @@ public class ApplicationjsonSchema
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 +- abstract 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 @@ -19,7 +19,7 @@ A class that contains necessary nested | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | ## ApplicationjsonSchema1Boxed -public static abstract sealed class ApplicationjsonSchema1Boxed
+public sealed interface ApplicationjsonSchema1Boxed
permits
[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), [ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), @@ -28,11 +28,11 @@ permits
[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedVoid public static final class ApplicationjsonSchema1BoxedVoid
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -48,7 +48,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ApplicationjsonSchema1BoxedBoolean public static final class ApplicationjsonSchema1BoxedBoolean
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -64,7 +64,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## ApplicationjsonSchema1BoxedNumber public static final class ApplicationjsonSchema1BoxedNumber
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -80,7 +80,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## ApplicationjsonSchema1BoxedString public static final class ApplicationjsonSchema1BoxedString
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -96,7 +96,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## ApplicationjsonSchema1BoxedList public static final class ApplicationjsonSchema1BoxedList
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -112,7 +112,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## ApplicationjsonSchema1BoxedMap public static final class ApplicationjsonSchema1BoxedMap
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md index 527700646ce..15dd87fb8ae 100644 --- a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md @@ -3,7 +3,7 @@ public class Schema0
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 +- abstract 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 @@ -21,15 +21,15 @@ A class that contains necessary nested | static class | [Schema0.Keyword0](#keyword0)
schema class | ## Schema01Boxed -public static abstract sealed class Schema01Boxed
+public sealed interface Schema01Boxed
permits
[Schema01BoxedMap](#schema01boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema01BoxedMap public static final class Schema01BoxedMap
-extends [Schema01Boxed](#schema01boxed) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -127,15 +127,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## Keyword0Boxed -public static abstract sealed class Keyword0Boxed
+public sealed interface Keyword0Boxed
permits
[Keyword0BoxedString](#keyword0boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Keyword0BoxedString public static final class Keyword0BoxedString
-extends [Keyword0Boxed](#keyword0boxed) +implements [Keyword0Boxed](#keyword0boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.md index 34951cbef92..e79a3033b40 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.md @@ -3,7 +3,7 @@ public class Schema0
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed -public static abstract sealed class Schema01Boxed
+public sealed interface Schema01Boxed
permits
[Schema01BoxedString](#schema01boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema01BoxedString public static final class Schema01BoxedString
-extends [Schema01Boxed](#schema01boxed) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.md index dc73fa004df..607c39645ec 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.md @@ -3,7 +3,7 @@ public class Schema1
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema1.Schema11](#schema11)
schema class | ## Schema11Boxed -public static abstract sealed class Schema11Boxed
+public sealed interface Schema11Boxed
permits
[Schema11BoxedString](#schema11boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema11BoxedString public static final class Schema11BoxedString
-extends [Schema11Boxed](#schema11boxed) +implements [Schema11Boxed](#schema11boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.md index e2b72589fe5..937222d4009 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.md @@ -3,7 +3,7 @@ public class Schema10
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema10.Schema101](#schema101)
schema class | ## Schema101Boxed -public static abstract sealed class Schema101Boxed
+public sealed interface Schema101Boxed
permits
[Schema101BoxedString](#schema101boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema101BoxedString public static final class Schema101BoxedString
-extends [Schema101Boxed](#schema101boxed) +implements [Schema101Boxed](#schema101boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.md index ddfd46d1495..73a64b1248c 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.md @@ -3,7 +3,7 @@ public class Schema11
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema11.Schema111](#schema111)
schema class | ## Schema111Boxed -public static abstract sealed class Schema111Boxed
+public sealed interface Schema111Boxed
permits
[Schema111BoxedString](#schema111boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema111BoxedString public static final class Schema111BoxedString
-extends [Schema111Boxed](#schema111boxed) +implements [Schema111Boxed](#schema111boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.md index 11cb68252c8..c2495c4212f 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.md @@ -3,7 +3,7 @@ public class Schema12
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema12.Schema121](#schema121)
schema class | ## Schema121Boxed -public static abstract sealed class Schema121Boxed
+public sealed interface Schema121Boxed
permits
[Schema121BoxedString](#schema121boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema121BoxedString public static final class Schema121BoxedString
-extends [Schema121Boxed](#schema121boxed) +implements [Schema121Boxed](#schema121boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.md index b57089125e4..75354f84b4c 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.md @@ -3,7 +3,7 @@ public class Schema13
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema13.Schema131](#schema131)
schema class | ## Schema131Boxed -public static abstract sealed class Schema131Boxed
+public sealed interface Schema131Boxed
permits
[Schema131BoxedString](#schema131boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema131BoxedString public static final class Schema131BoxedString
-extends [Schema131Boxed](#schema131boxed) +implements [Schema131Boxed](#schema131boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.md index 73013ec6253..ea4947dad58 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.md @@ -3,7 +3,7 @@ public class Schema14
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema14.Schema141](#schema141)
schema class | ## Schema141Boxed -public static abstract sealed class Schema141Boxed
+public sealed interface Schema141Boxed
permits
[Schema141BoxedString](#schema141boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema141BoxedString public static final class Schema141BoxedString
-extends [Schema141Boxed](#schema141boxed) +implements [Schema141Boxed](#schema141boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.md index 61523eb9775..c5e5e4720d4 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.md @@ -3,7 +3,7 @@ public class Schema15
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema15.Schema151](#schema151)
schema class | ## Schema151Boxed -public static abstract sealed class Schema151Boxed
+public sealed interface Schema151Boxed
permits
[Schema151BoxedString](#schema151boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema151BoxedString public static final class Schema151BoxedString
-extends [Schema151Boxed](#schema151boxed) +implements [Schema151Boxed](#schema151boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.md index 0d04529ab64..262188d7571 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.md @@ -3,7 +3,7 @@ public class Schema16
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema16.Schema161](#schema161)
schema class | ## Schema161Boxed -public static abstract sealed class Schema161Boxed
+public sealed interface Schema161Boxed
permits
[Schema161BoxedString](#schema161boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema161BoxedString public static final class Schema161BoxedString
-extends [Schema161Boxed](#schema161boxed) +implements [Schema161Boxed](#schema161boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.md index a2c5833aff7..4bf16f39ef1 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.md @@ -3,7 +3,7 @@ public class Schema17
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema17.Schema171](#schema171)
schema class | ## Schema171Boxed -public static abstract sealed class Schema171Boxed
+public sealed interface Schema171Boxed
permits
[Schema171BoxedString](#schema171boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema171BoxedString public static final class Schema171BoxedString
-extends [Schema171Boxed](#schema171boxed) +implements [Schema171Boxed](#schema171boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.md index 97fcb76036e..39feb8d7eea 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.md @@ -3,7 +3,7 @@ public class Schema18
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema18.Schema181](#schema181)
schema class | ## Schema181Boxed -public static abstract sealed class Schema181Boxed
+public sealed interface Schema181Boxed
permits
[Schema181BoxedString](#schema181boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema181BoxedString public static final class Schema181BoxedString
-extends [Schema181Boxed](#schema181boxed) +implements [Schema181Boxed](#schema181boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.md index e44ea1732a1..4da86d445e1 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.md @@ -3,7 +3,7 @@ public class Schema2
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema2.Schema21](#schema21)
schema class | ## Schema21Boxed -public static abstract sealed class Schema21Boxed
+public sealed interface Schema21Boxed
permits
[Schema21BoxedString](#schema21boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema21BoxedString public static final class Schema21BoxedString
-extends [Schema21Boxed](#schema21boxed) +implements [Schema21Boxed](#schema21boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.md index b09a6ef7f98..a2e7bcc797b 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.md @@ -3,7 +3,7 @@ public class Schema3
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema3.Schema31](#schema31)
schema class | ## Schema31Boxed -public static abstract sealed class Schema31Boxed
+public sealed interface Schema31Boxed
permits
[Schema31BoxedString](#schema31boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema31BoxedString public static final class Schema31BoxedString
-extends [Schema31Boxed](#schema31boxed) +implements [Schema31Boxed](#schema31boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.md index 324717533a1..1bbc8aa9e32 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.md @@ -3,7 +3,7 @@ public class Schema4
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema4.Schema41](#schema41)
schema class | ## Schema41Boxed -public static abstract sealed class Schema41Boxed
+public sealed interface Schema41Boxed
permits
[Schema41BoxedString](#schema41boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema41BoxedString public static final class Schema41BoxedString
-extends [Schema41Boxed](#schema41boxed) +implements [Schema41Boxed](#schema41boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.md index 731d54f677e..8d30577a22c 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.md @@ -3,7 +3,7 @@ public class Schema5
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema5.Schema51](#schema51)
schema class | ## Schema51Boxed -public static abstract sealed class Schema51Boxed
+public sealed interface Schema51Boxed
permits
[Schema51BoxedString](#schema51boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema51BoxedString public static final class Schema51BoxedString
-extends [Schema51Boxed](#schema51boxed) +implements [Schema51Boxed](#schema51boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.md index 1faeac06048..593f9e4c9fa 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.md @@ -3,7 +3,7 @@ public class Schema6
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema6.Schema61](#schema61)
schema class | ## Schema61Boxed -public static abstract sealed class Schema61Boxed
+public sealed interface Schema61Boxed
permits
[Schema61BoxedString](#schema61boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema61BoxedString public static final class Schema61BoxedString
-extends [Schema61Boxed](#schema61boxed) +implements [Schema61Boxed](#schema61boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.md index 017182a0f03..4257b32b59b 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.md @@ -3,7 +3,7 @@ public class Schema7
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema7.Schema71](#schema71)
schema class | ## Schema71Boxed -public static abstract sealed class Schema71Boxed
+public sealed interface Schema71Boxed
permits
[Schema71BoxedString](#schema71boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema71BoxedString public static final class Schema71BoxedString
-extends [Schema71Boxed](#schema71boxed) +implements [Schema71Boxed](#schema71boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.md index 15e720fc4c1..377193dbbce 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.md @@ -3,7 +3,7 @@ public class Schema8
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema8.Schema81](#schema81)
schema class | ## Schema81Boxed -public static abstract sealed class Schema81Boxed
+public sealed interface Schema81Boxed
permits
[Schema81BoxedString](#schema81boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema81BoxedString public static final class Schema81BoxedString
-extends [Schema81Boxed](#schema81boxed) +implements [Schema81Boxed](#schema81boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.md index 4ec07a72c46..b65616a946b 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.md @@ -3,7 +3,7 @@ public class Schema9
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema9.Schema91](#schema91)
schema class | ## Schema91Boxed -public static abstract sealed class Schema91Boxed
+public sealed interface Schema91Boxed
permits
[Schema91BoxedString](#schema91boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema91BoxedString public static final class Schema91BoxedString
-extends [Schema91Boxed](#schema91boxed) +implements [Schema91Boxed](#schema91boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index 53da126ffca..433318e61e6 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -3,7 +3,7 @@ public class ApplicationjsonSchema
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 +- abstract 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 @@ -19,7 +19,7 @@ A class that contains necessary nested | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | ## ApplicationjsonSchema1Boxed -public static abstract sealed class ApplicationjsonSchema1Boxed
+public sealed interface ApplicationjsonSchema1Boxed
permits
[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), [ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), @@ -28,11 +28,11 @@ permits
[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedVoid public static final class ApplicationjsonSchema1BoxedVoid
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -48,7 +48,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ApplicationjsonSchema1BoxedBoolean public static final class ApplicationjsonSchema1BoxedBoolean
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -64,7 +64,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## ApplicationjsonSchema1BoxedNumber public static final class ApplicationjsonSchema1BoxedNumber
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -80,7 +80,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## ApplicationjsonSchema1BoxedString public static final class ApplicationjsonSchema1BoxedString
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -96,7 +96,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## ApplicationjsonSchema1BoxedList public static final class ApplicationjsonSchema1BoxedList
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -112,7 +112,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## ApplicationjsonSchema1BoxedMap public static final class ApplicationjsonSchema1BoxedMap
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md index 53da126ffca..433318e61e6 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -3,7 +3,7 @@ public class ApplicationjsonSchema
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 +- abstract 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 @@ -19,7 +19,7 @@ A class that contains necessary nested | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | ## ApplicationjsonSchema1Boxed -public static abstract sealed class ApplicationjsonSchema1Boxed
+public sealed interface ApplicationjsonSchema1Boxed
permits
[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), [ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), @@ -28,11 +28,11 @@ permits
[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedVoid public static final class ApplicationjsonSchema1BoxedVoid
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -48,7 +48,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ApplicationjsonSchema1BoxedBoolean public static final class ApplicationjsonSchema1BoxedBoolean
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -64,7 +64,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## ApplicationjsonSchema1BoxedNumber public static final class ApplicationjsonSchema1BoxedNumber
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -80,7 +80,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## ApplicationjsonSchema1BoxedString public static final class ApplicationjsonSchema1BoxedString
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -96,7 +96,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## ApplicationjsonSchema1BoxedList public static final class ApplicationjsonSchema1BoxedList
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -112,7 +112,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## ApplicationjsonSchema1BoxedMap public static final class ApplicationjsonSchema1BoxedMap
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md index 8c626d2131a..20f8a324f76 100644 --- a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md +++ b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md @@ -3,7 +3,7 @@ public class ApplicationxpemfileSchema
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1](#applicationxpemfileschema1)
schema class | ## ApplicationxpemfileSchema1Boxed -public static abstract sealed class ApplicationxpemfileSchema1Boxed
+public sealed interface ApplicationxpemfileSchema1Boxed
permits
[ApplicationxpemfileSchema1BoxedString](#applicationxpemfileschema1boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationxpemfileSchema1BoxedString public static final class ApplicationxpemfileSchema1BoxedString
-extends [ApplicationxpemfileSchema1Boxed](#applicationxpemfileschema1boxed) +implements [ApplicationxpemfileSchema1Boxed](#applicationxpemfileschema1boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/response200/content/applicationxpemfile/ApplicationxpemfileSchema.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/response200/content/applicationxpemfile/ApplicationxpemfileSchema.md index 8c626d2131a..20f8a324f76 100644 --- a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/response200/content/applicationxpemfile/ApplicationxpemfileSchema.md +++ b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/response200/content/applicationxpemfile/ApplicationxpemfileSchema.md @@ -3,7 +3,7 @@ public class ApplicationxpemfileSchema
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1](#applicationxpemfileschema1)
schema class | ## ApplicationxpemfileSchema1Boxed -public static abstract sealed class ApplicationxpemfileSchema1Boxed
+public sealed interface ApplicationxpemfileSchema1Boxed
permits
[ApplicationxpemfileSchema1BoxedString](#applicationxpemfileschema1boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationxpemfileSchema1BoxedString public static final class ApplicationxpemfileSchema1BoxedString
-extends [ApplicationxpemfileSchema1Boxed](#applicationxpemfileschema1boxed) +implements [ApplicationxpemfileSchema1Boxed](#applicationxpemfileschema1boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.md index f2092272f63..943c96babd7 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.md @@ -3,7 +3,7 @@ public class Schema0
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed -public static abstract sealed class Schema01Boxed
+public sealed interface Schema01Boxed
permits
[Schema01BoxedNumber](#schema01boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema01BoxedNumber public static final class Schema01BoxedNumber
-extends [Schema01Boxed](#schema01boxed) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md index 4191061e4b1..8c83b12bdab 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -3,7 +3,7 @@ public class MultipartformdataSchema
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 +- abstract 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 @@ -23,15 +23,15 @@ A class that contains necessary nested | static class | [MultipartformdataSchema.MultipartformdataAdditionalMetadata](#multipartformdataadditionalmetadata)
schema class | ## MultipartformdataSchema1Boxed -public static abstract sealed class MultipartformdataSchema1Boxed
+public sealed interface MultipartformdataSchema1Boxed
permits
[MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MultipartformdataSchema1BoxedMap public static final class MultipartformdataSchema1BoxedMap
-extends [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) +implements [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -149,10 +149,10 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## MultipartformdataRequiredFileBoxed -public static abstract sealed class MultipartformdataRequiredFileBoxed
+public sealed interface MultipartformdataRequiredFileBoxed
permits
-abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MultipartformdataRequiredFile public static class MultipartformdataRequiredFile
@@ -164,15 +164,15 @@ A schema class that validates payloads file to upload ## MultipartformdataAdditionalMetadataBoxed -public static abstract sealed class MultipartformdataAdditionalMetadataBoxed
+public sealed interface MultipartformdataAdditionalMetadataBoxed
permits
[MultipartformdataAdditionalMetadataBoxedString](#multipartformdataadditionalmetadataboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MultipartformdataAdditionalMetadataBoxedString public static final class MultipartformdataAdditionalMetadataBoxedString
-extends [MultipartformdataAdditionalMetadataBoxed](#multipartformdataadditionalmetadataboxed) +implements [MultipartformdataAdditionalMetadataBoxed](#multipartformdataadditionalmetadataboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md index 5b1a73c4aed..1f0f43be973 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [ApiResponseSchema1](../../../../../../../../../components/schemas/ApiRe 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.md index 83c8cd5f134..465a9703bff 100644 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.md @@ -3,7 +3,7 @@ public class Schema0
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 +- abstract 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 @@ -19,7 +19,7 @@ A class that contains necessary nested | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed -public static abstract sealed class Schema01Boxed
+public sealed interface Schema01Boxed
permits
[Schema01BoxedVoid](#schema01boxedvoid), [Schema01BoxedBoolean](#schema01boxedboolean), @@ -28,11 +28,11 @@ 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) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -48,7 +48,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## Schema01BoxedBoolean public static final class Schema01BoxedBoolean
-extends [Schema01Boxed](#schema01boxed) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -64,7 +64,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## Schema01BoxedNumber public static final class Schema01BoxedNumber
-extends [Schema01Boxed](#schema01boxed) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -80,7 +80,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## Schema01BoxedString public static final class Schema01BoxedString
-extends [Schema01Boxed](#schema01boxed) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -96,7 +96,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## Schema01BoxedList public static final class Schema01BoxedList
-extends [Schema01Boxed](#schema01boxed) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -112,7 +112,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## Schema01BoxedMap public static final class Schema01BoxedMap
-extends [Schema01Boxed](#schema01boxed) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md index 53da126ffca..433318e61e6 100644 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -3,7 +3,7 @@ public class ApplicationjsonSchema
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 +- abstract 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 @@ -19,7 +19,7 @@ A class that contains necessary nested | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | ## ApplicationjsonSchema1Boxed -public static abstract sealed class ApplicationjsonSchema1Boxed
+public sealed interface ApplicationjsonSchema1Boxed
permits
[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), [ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), @@ -28,11 +28,11 @@ permits
[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedVoid public static final class ApplicationjsonSchema1BoxedVoid
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -48,7 +48,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ApplicationjsonSchema1BoxedBoolean public static final class ApplicationjsonSchema1BoxedBoolean
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -64,7 +64,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## ApplicationjsonSchema1BoxedNumber public static final class ApplicationjsonSchema1BoxedNumber
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -80,7 +80,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## ApplicationjsonSchema1BoxedString public static final class ApplicationjsonSchema1BoxedString
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -96,7 +96,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## ApplicationjsonSchema1BoxedList public static final class ApplicationjsonSchema1BoxedList
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -112,7 +112,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## ApplicationjsonSchema1BoxedMap public static final class ApplicationjsonSchema1BoxedMap
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.md index 82fb4bd74c3..b3f7b9efed4 100644 --- a/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.md @@ -4,7 +4,7 @@ extends [Foo1](../../../components/schemas/Foo.md#foo) 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index 7c7951a4266..19ff305ffc0 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [AnimalFarm1](../../../../../../../components/schemas/AnimalFarm.md#anim 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md index 027d9f13490..8c0ac4c578a 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [AnimalFarm1](../../../../../../../../../components/schemas/AnimalFarm.m 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index c53dea03971..39e734c5198 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [ArrayOfEnums1](../../../../../../../components/schemas/ArrayOfEnums.md# 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md index a8038b9ace9..1844e5f5212 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [ArrayOfEnums1](../../../../../../../../../components/schemas/ArrayOfEnu 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index b4aee2dc72f..e6acb495086 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [BooleanSchema1](../../../../../../../components/schemas/BooleanSchema.m 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md index dbcf9db5b9d..f01369f2068 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [BooleanSchema1](../../../../../../../../../components/schemas/BooleanSc 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index 8e7d6ab2801..894113535eb 100644 --- a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [ComposedOneOfDifferentTypes1](../../../../../../../components/schemas/C 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md index 467ca23ca63..2607baa8830 100644 --- a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [ComposedOneOfDifferentTypes1](../../../../../../../../../components/sch 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index aace8ee4545..af2ae60fb96 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [StringEnum1](../../../../../../../components/schemas/StringEnum.md#stri 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md index a51193aa773..5cee5e75327 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [StringEnum1](../../../../../../../../../components/schemas/StringEnum.m 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index a3fb7378e69..f75ef7c2077 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [Mammal1](../../../../../../../components/schemas/Mammal.md#mammal) 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md index d3f939d94f9..c6b3b628c02 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [Mammal1](../../../../../../../../../components/schemas/Mammal.md#mammal 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index 32a1d8ad1a2..709dcf4b1e8 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [NumberWithValidations1](../../../../../../../components/schemas/NumberW 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md index 484c0df9d73..a1938be5dde 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [NumberWithValidations1](../../../../../../../../../components/schemas/N 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index 138ea0ad726..619f8495f93 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [ObjectModelWithRefProps1](../../../../../../../components/schemas/Objec 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md index 7888b2700a2..e11383cf962 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [ObjectModelWithRefProps1](../../../../../../../../../components/schemas 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index 5b0190c1a15..1fff247cf19 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [StringSchema1](../../../../../../../components/schemas/StringSchema.md# 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md index 1a6cf54dc0b..a70d4b832ca 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [StringSchema1](../../../../../../../../../components/schemas/StringSche 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md index 7ad494f7333..1d3156c2a3f 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md @@ -3,7 +3,7 @@ public class Schema0
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 +- abstract 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 @@ -21,15 +21,15 @@ A class that contains necessary nested | static class | [Schema0.Items0](#items0)
schema class | ## Schema01Boxed -public static abstract sealed class Schema01Boxed
+public sealed interface Schema01Boxed
permits
[Schema01BoxedList](#schema01boxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema01BoxedList public static final class Schema01BoxedList
-extends [Schema01Boxed](#schema01boxed) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -117,15 +117,15 @@ A class to store validated List payloads | static [SchemaList0](#schemalist0) | of([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | ## Items0Boxed -public static abstract sealed class Items0Boxed
+public sealed interface Items0Boxed
permits
[Items0BoxedString](#items0boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Items0BoxedString public static final class Items0BoxedString
-extends [Items0Boxed](#items0boxed) +implements [Items0Boxed](#items0boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md index 3217823effa..14697ec11db 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md @@ -3,7 +3,7 @@ public class Schema1
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 +- abstract 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 @@ -21,15 +21,15 @@ A class that contains necessary nested | static class | [Schema1.Items1](#items1)
schema class | ## Schema11Boxed -public static abstract sealed class Schema11Boxed
+public sealed interface Schema11Boxed
permits
[Schema11BoxedList](#schema11boxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema11BoxedList public static final class Schema11BoxedList
-extends [Schema11Boxed](#schema11boxed) +implements [Schema11Boxed](#schema11boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -117,15 +117,15 @@ A class to store validated List payloads | static [SchemaList1](#schemalist1) | of([List](#schemalistbuilder1) arg, SchemaConfiguration configuration) | ## Items1Boxed -public static abstract sealed class Items1Boxed
+public sealed interface Items1Boxed
permits
[Items1BoxedString](#items1boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Items1BoxedString public static final class Items1BoxedString
-extends [Items1Boxed](#items1boxed) +implements [Items1Boxed](#items1boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md index 6ac20c19e6b..9aa46d5d353 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md @@ -3,7 +3,7 @@ public class Schema2
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 +- abstract 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 @@ -21,15 +21,15 @@ A class that contains necessary nested | static class | [Schema2.Items2](#items2)
schema class | ## Schema21Boxed -public static abstract sealed class Schema21Boxed
+public sealed interface Schema21Boxed
permits
[Schema21BoxedList](#schema21boxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema21BoxedList public static final class Schema21BoxedList
-extends [Schema21Boxed](#schema21boxed) +implements [Schema21Boxed](#schema21boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -117,15 +117,15 @@ A class to store validated List payloads | static [SchemaList2](#schemalist2) | of([List](#schemalistbuilder2) arg, SchemaConfiguration configuration) | ## Items2Boxed -public static abstract sealed class Items2Boxed
+public sealed interface Items2Boxed
permits
[Items2BoxedString](#items2boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Items2BoxedString public static final class Items2BoxedString
-extends [Items2Boxed](#items2boxed) +implements [Items2Boxed](#items2boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md index 4b4cb3fc22b..2da5d56ee72 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md @@ -3,7 +3,7 @@ public class Schema3
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 +- abstract 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 @@ -21,15 +21,15 @@ A class that contains necessary nested | static class | [Schema3.Items3](#items3)
schema class | ## Schema31Boxed -public static abstract sealed class Schema31Boxed
+public sealed interface Schema31Boxed
permits
[Schema31BoxedList](#schema31boxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema31BoxedList public static final class Schema31BoxedList
-extends [Schema31Boxed](#schema31boxed) +implements [Schema31Boxed](#schema31boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -117,15 +117,15 @@ A class to store validated List payloads | static [SchemaList3](#schemalist3) | of([List](#schemalistbuilder3) arg, SchemaConfiguration configuration) | ## Items3Boxed -public static abstract sealed class Items3Boxed
+public sealed interface Items3Boxed
permits
[Items3BoxedString](#items3boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Items3BoxedString public static final class Items3BoxedString
-extends [Items3Boxed](#items3boxed) +implements [Items3Boxed](#items3boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md index b4176fb67db..274158c68e6 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md @@ -3,7 +3,7 @@ public class Schema4
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 +- abstract 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 @@ -21,15 +21,15 @@ A class that contains necessary nested | static class | [Schema4.Items4](#items4)
schema class | ## Schema41Boxed -public static abstract sealed class Schema41Boxed
+public sealed interface Schema41Boxed
permits
[Schema41BoxedList](#schema41boxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema41BoxedList public static final class Schema41BoxedList
-extends [Schema41Boxed](#schema41boxed) +implements [Schema41Boxed](#schema41boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -117,15 +117,15 @@ A class to store validated List payloads | static [SchemaList4](#schemalist4) | of([List](#schemalistbuilder4) arg, SchemaConfiguration configuration) | ## Items4Boxed -public static abstract sealed class Items4Boxed
+public sealed interface Items4Boxed
permits
[Items4BoxedString](#items4boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Items4BoxedString public static final class Items4BoxedString
-extends [Items4Boxed](#items4boxed) +implements [Items4Boxed](#items4boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.md index 8785b1adc2a..93b08c9739e 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.md @@ -4,7 +4,7 @@ extends [StringWithValidation1](../../../components/schemas/StringWithValidation 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.md index 00ef2a8bfd6..24de577cd87 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.md @@ -3,7 +3,7 @@ public class ApplicationoctetstreamSchema
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 +- abstract 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 @@ -13,10 +13,10 @@ A class that contains necessary nested | static class | [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1](#applicationoctetstreamschema1)
schema class | ## ApplicationoctetstreamSchema1Boxed -public static abstract sealed class ApplicationoctetstreamSchema1Boxed
+public sealed interface ApplicationoctetstreamSchema1Boxed
permits
-abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationoctetstreamSchema1 public static class ApplicationoctetstreamSchema1
diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/response200/content/applicationoctetstream/ApplicationoctetstreamSchema.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/response200/content/applicationoctetstream/ApplicationoctetstreamSchema.md index 0f05a20ac4d..0365d8952b2 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/response200/content/applicationoctetstream/ApplicationoctetstreamSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/response200/content/applicationoctetstream/ApplicationoctetstreamSchema.md @@ -3,7 +3,7 @@ public class ApplicationoctetstreamSchema
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 +- abstract 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 @@ -13,10 +13,10 @@ A class that contains necessary nested | static class | [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1](#applicationoctetstreamschema1)
schema class | ## ApplicationoctetstreamSchema1Boxed -public static abstract sealed class ApplicationoctetstreamSchema1Boxed
+public sealed interface ApplicationoctetstreamSchema1Boxed
permits
-abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationoctetstreamSchema1 public static class ApplicationoctetstreamSchema1
diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md index 1f9c61a2286..9b57b2b1536 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -3,7 +3,7 @@ public class MultipartformdataSchema
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 +- abstract 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 @@ -23,15 +23,15 @@ A class that contains necessary nested | static class | [MultipartformdataSchema.MultipartformdataAdditionalMetadata](#multipartformdataadditionalmetadata)
schema class | ## MultipartformdataSchema1Boxed -public static abstract sealed class MultipartformdataSchema1Boxed
+public sealed interface MultipartformdataSchema1Boxed
permits
[MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MultipartformdataSchema1BoxedMap public static final class MultipartformdataSchema1BoxedMap
-extends [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) +implements [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -149,10 +149,10 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## MultipartformdataFileBoxed -public static abstract sealed class MultipartformdataFileBoxed
+public sealed interface MultipartformdataFileBoxed
permits
-abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MultipartformdataFile public static class MultipartformdataFile
@@ -164,15 +164,15 @@ A schema class that validates payloads file to upload ## MultipartformdataAdditionalMetadataBoxed -public static abstract sealed class MultipartformdataAdditionalMetadataBoxed
+public sealed interface MultipartformdataAdditionalMetadataBoxed
permits
[MultipartformdataAdditionalMetadataBoxedString](#multipartformdataadditionalmetadataboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MultipartformdataAdditionalMetadataBoxedString public static final class MultipartformdataAdditionalMetadataBoxedString
-extends [MultipartformdataAdditionalMetadataBoxed](#multipartformdataadditionalmetadataboxed) +implements [MultipartformdataAdditionalMetadataBoxed](#multipartformdataadditionalmetadataboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md index 5b1a73c4aed..1f0f43be973 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [ApiResponseSchema1](../../../../../../../../../components/schemas/ApiRe 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md index f08d95469b7..b7e6609ea23 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -3,7 +3,7 @@ public class MultipartformdataSchema
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 +- abstract 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 @@ -27,15 +27,15 @@ A class that contains necessary nested | static class | [MultipartformdataSchema.MultipartformdataItems](#multipartformdataitems)
schema class | ## MultipartformdataSchema1Boxed -public static abstract sealed class MultipartformdataSchema1Boxed
+public sealed interface MultipartformdataSchema1Boxed
permits
[MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MultipartformdataSchema1BoxedMap public static final class MultipartformdataSchema1BoxedMap
-extends [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) +implements [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -136,15 +136,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## MultipartformdataFilesBoxed -public static abstract sealed class MultipartformdataFilesBoxed
+public sealed interface MultipartformdataFilesBoxed
permits
[MultipartformdataFilesBoxedList](#multipartformdatafilesboxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MultipartformdataFilesBoxedList public static final class MultipartformdataFilesBoxedList
-extends [MultipartformdataFilesBoxed](#multipartformdatafilesboxed) +implements [MultipartformdataFilesBoxed](#multipartformdatafilesboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -232,10 +232,10 @@ A class to store validated List payloads | static [MultipartformdataFilesList](#multipartformdatafileslist) | of([List](#multipartformdatafileslistbuilder) arg, SchemaConfiguration configuration) | ## MultipartformdataItemsBoxed -public static abstract sealed class MultipartformdataItemsBoxed
+public sealed interface MultipartformdataItemsBoxed
permits
-abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MultipartformdataItems public static class MultipartformdataItems
diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md index 5b1a73c4aed..1f0f43be973 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [ApiResponseSchema1](../../../../../../../../../components/schemas/ApiRe 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response1xx/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response1xx/content/applicationjson/ApplicationjsonSchema.md index 53da126ffca..433318e61e6 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response1xx/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response1xx/content/applicationjson/ApplicationjsonSchema.md @@ -3,7 +3,7 @@ public class ApplicationjsonSchema
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 +- abstract 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 @@ -19,7 +19,7 @@ A class that contains necessary nested | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | ## ApplicationjsonSchema1Boxed -public static abstract sealed class ApplicationjsonSchema1Boxed
+public sealed interface ApplicationjsonSchema1Boxed
permits
[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), [ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), @@ -28,11 +28,11 @@ permits
[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedVoid public static final class ApplicationjsonSchema1BoxedVoid
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -48,7 +48,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ApplicationjsonSchema1BoxedBoolean public static final class ApplicationjsonSchema1BoxedBoolean
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -64,7 +64,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## ApplicationjsonSchema1BoxedNumber public static final class ApplicationjsonSchema1BoxedNumber
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -80,7 +80,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## ApplicationjsonSchema1BoxedString public static final class ApplicationjsonSchema1BoxedString
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -96,7 +96,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## ApplicationjsonSchema1BoxedList public static final class ApplicationjsonSchema1BoxedList
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -112,7 +112,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## ApplicationjsonSchema1BoxedMap public static final class ApplicationjsonSchema1BoxedMap
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md index 53da126ffca..433318e61e6 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -3,7 +3,7 @@ public class ApplicationjsonSchema
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 +- abstract 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 @@ -19,7 +19,7 @@ A class that contains necessary nested | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | ## ApplicationjsonSchema1Boxed -public static abstract sealed class ApplicationjsonSchema1Boxed
+public sealed interface ApplicationjsonSchema1Boxed
permits
[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), [ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), @@ -28,11 +28,11 @@ permits
[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedVoid public static final class ApplicationjsonSchema1BoxedVoid
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -48,7 +48,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ApplicationjsonSchema1BoxedBoolean public static final class ApplicationjsonSchema1BoxedBoolean
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -64,7 +64,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## ApplicationjsonSchema1BoxedNumber public static final class ApplicationjsonSchema1BoxedNumber
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -80,7 +80,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## ApplicationjsonSchema1BoxedString public static final class ApplicationjsonSchema1BoxedString
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -96,7 +96,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## ApplicationjsonSchema1BoxedList public static final class ApplicationjsonSchema1BoxedList
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -112,7 +112,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## ApplicationjsonSchema1BoxedMap public static final class ApplicationjsonSchema1BoxedMap
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response2xx/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response2xx/content/applicationjson/ApplicationjsonSchema.md index 53da126ffca..433318e61e6 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response2xx/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response2xx/content/applicationjson/ApplicationjsonSchema.md @@ -3,7 +3,7 @@ public class ApplicationjsonSchema
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 +- abstract 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 @@ -19,7 +19,7 @@ A class that contains necessary nested | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | ## ApplicationjsonSchema1Boxed -public static abstract sealed class ApplicationjsonSchema1Boxed
+public sealed interface ApplicationjsonSchema1Boxed
permits
[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), [ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), @@ -28,11 +28,11 @@ permits
[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedVoid public static final class ApplicationjsonSchema1BoxedVoid
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -48,7 +48,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ApplicationjsonSchema1BoxedBoolean public static final class ApplicationjsonSchema1BoxedBoolean
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -64,7 +64,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## ApplicationjsonSchema1BoxedNumber public static final class ApplicationjsonSchema1BoxedNumber
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -80,7 +80,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## ApplicationjsonSchema1BoxedString public static final class ApplicationjsonSchema1BoxedString
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -96,7 +96,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## ApplicationjsonSchema1BoxedList public static final class ApplicationjsonSchema1BoxedList
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -112,7 +112,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## ApplicationjsonSchema1BoxedMap public static final class ApplicationjsonSchema1BoxedMap
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response3xx/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response3xx/content/applicationjson/ApplicationjsonSchema.md index 53da126ffca..433318e61e6 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response3xx/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response3xx/content/applicationjson/ApplicationjsonSchema.md @@ -3,7 +3,7 @@ public class ApplicationjsonSchema
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 +- abstract 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 @@ -19,7 +19,7 @@ A class that contains necessary nested | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | ## ApplicationjsonSchema1Boxed -public static abstract sealed class ApplicationjsonSchema1Boxed
+public sealed interface ApplicationjsonSchema1Boxed
permits
[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), [ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), @@ -28,11 +28,11 @@ permits
[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedVoid public static final class ApplicationjsonSchema1BoxedVoid
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -48,7 +48,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ApplicationjsonSchema1BoxedBoolean public static final class ApplicationjsonSchema1BoxedBoolean
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -64,7 +64,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## ApplicationjsonSchema1BoxedNumber public static final class ApplicationjsonSchema1BoxedNumber
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -80,7 +80,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## ApplicationjsonSchema1BoxedString public static final class ApplicationjsonSchema1BoxedString
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -96,7 +96,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## ApplicationjsonSchema1BoxedList public static final class ApplicationjsonSchema1BoxedList
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -112,7 +112,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## ApplicationjsonSchema1BoxedMap public static final class ApplicationjsonSchema1BoxedMap
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response4xx/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response4xx/content/applicationjson/ApplicationjsonSchema.md index 53da126ffca..433318e61e6 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response4xx/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response4xx/content/applicationjson/ApplicationjsonSchema.md @@ -3,7 +3,7 @@ public class ApplicationjsonSchema
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 +- abstract 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 @@ -19,7 +19,7 @@ A class that contains necessary nested | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | ## ApplicationjsonSchema1Boxed -public static abstract sealed class ApplicationjsonSchema1Boxed
+public sealed interface ApplicationjsonSchema1Boxed
permits
[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), [ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), @@ -28,11 +28,11 @@ permits
[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedVoid public static final class ApplicationjsonSchema1BoxedVoid
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -48,7 +48,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ApplicationjsonSchema1BoxedBoolean public static final class ApplicationjsonSchema1BoxedBoolean
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -64,7 +64,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## ApplicationjsonSchema1BoxedNumber public static final class ApplicationjsonSchema1BoxedNumber
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -80,7 +80,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## ApplicationjsonSchema1BoxedString public static final class ApplicationjsonSchema1BoxedString
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -96,7 +96,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## ApplicationjsonSchema1BoxedList public static final class ApplicationjsonSchema1BoxedList
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -112,7 +112,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## ApplicationjsonSchema1BoxedMap public static final class ApplicationjsonSchema1BoxedMap
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response5xx/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response5xx/content/applicationjson/ApplicationjsonSchema.md index 53da126ffca..433318e61e6 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response5xx/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response5xx/content/applicationjson/ApplicationjsonSchema.md @@ -3,7 +3,7 @@ public class ApplicationjsonSchema
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 +- abstract 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 @@ -19,7 +19,7 @@ A class that contains necessary nested | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | ## ApplicationjsonSchema1Boxed -public static abstract sealed class ApplicationjsonSchema1Boxed
+public sealed interface ApplicationjsonSchema1Boxed
permits
[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), [ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), @@ -28,11 +28,11 @@ permits
[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedVoid public static final class ApplicationjsonSchema1BoxedVoid
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -48,7 +48,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ## ApplicationjsonSchema1BoxedBoolean public static final class ApplicationjsonSchema1BoxedBoolean
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -64,7 +64,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ## ApplicationjsonSchema1BoxedNumber public static final class ApplicationjsonSchema1BoxedNumber
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -80,7 +80,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ## ApplicationjsonSchema1BoxedString public static final class ApplicationjsonSchema1BoxedString
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -96,7 +96,7 @@ a boxed class to store validated String payloads, sealed permits class implement ## ApplicationjsonSchema1BoxedList public static final class ApplicationjsonSchema1BoxedList
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -112,7 +112,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ## ApplicationjsonSchema1BoxedMap public static final class ApplicationjsonSchema1BoxedMap
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/foo/get/responses/responsedefault/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/foo/get/responses/responsedefault/content/applicationjson/ApplicationjsonSchema.md index 65fd5216ca4..41aa3206002 100644 --- a/samples/client/petstore/java/docs/paths/foo/get/responses/responsedefault/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/foo/get/responses/responsedefault/content/applicationjson/ApplicationjsonSchema.md @@ -3,7 +3,7 @@ public class ApplicationjsonSchema
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 +- abstract 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 @@ -18,15 +18,15 @@ A class that contains necessary nested | static class | [ApplicationjsonSchema.ApplicationjsonSchemaMap](#applicationjsonschemamap)
output class for Map payloads | ## ApplicationjsonSchema1Boxed -public static abstract sealed class ApplicationjsonSchema1Boxed
+public sealed interface ApplicationjsonSchema1Boxed
permits
[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedMap public static final class ApplicationjsonSchema1BoxedMap
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/parameters/parameter0/Schema0.md index d40847bbbc4..09c6bc726bd 100644 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/get/parameters/parameter0/Schema0.md @@ -3,7 +3,7 @@ public class Schema0
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 +- abstract 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 @@ -23,15 +23,15 @@ A class that contains necessary nested | enum | [Schema0.StringItemsEnums0](#stringitemsenums0)
String enum | ## Schema01Boxed -public static abstract sealed class Schema01Boxed
+public sealed interface Schema01Boxed
permits
[Schema01BoxedList](#schema01boxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema01BoxedList public static final class Schema01BoxedList
-extends [Schema01Boxed](#schema01boxed) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -120,15 +120,15 @@ A class to store validated List payloads | static [SchemaList0](#schemalist0) | of([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | ## Items0Boxed -public static abstract sealed class Items0Boxed
+public sealed interface Items0Boxed
permits
[Items0BoxedString](#items0boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Items0BoxedString public static final class Items0BoxedString
-extends [Items0Boxed](#items0boxed) +implements [Items0Boxed](#items0boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petfindbytags/get/parameters/parameter0/Schema0.md index 7ad494f7333..1d3156c2a3f 100644 --- a/samples/client/petstore/java/docs/paths/petfindbytags/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/petfindbytags/get/parameters/parameter0/Schema0.md @@ -3,7 +3,7 @@ public class Schema0
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 +- abstract 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 @@ -21,15 +21,15 @@ A class that contains necessary nested | static class | [Schema0.Items0](#items0)
schema class | ## Schema01Boxed -public static abstract sealed class Schema01Boxed
+public sealed interface Schema01Boxed
permits
[Schema01BoxedList](#schema01boxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema01BoxedList public static final class Schema01BoxedList
-extends [Schema01Boxed](#schema01boxed) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -117,15 +117,15 @@ A class to store validated List payloads | static [SchemaList0](#schemalist0) | of([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | ## Items0Boxed -public static abstract sealed class Items0Boxed
+public sealed interface Items0Boxed
permits
[Items0BoxedString](#items0boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Items0BoxedString public static final class Items0BoxedString
-extends [Items0Boxed](#items0boxed) +implements [Items0Boxed](#items0boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter0/Schema0.md index 34951cbef92..e79a3033b40 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter0/Schema0.md @@ -3,7 +3,7 @@ public class Schema0
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed -public static abstract sealed class Schema01Boxed
+public sealed interface Schema01Boxed
permits
[Schema01BoxedString](#schema01boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema01BoxedString public static final class Schema01BoxedString
-extends [Schema01Boxed](#schema01boxed) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter1/Schema1.md index d5929ec2391..ea42842bb6d 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter1/Schema1.md @@ -3,7 +3,7 @@ public class Schema1
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema1.Schema11](#schema11)
schema class | ## Schema11Boxed -public static abstract sealed class Schema11Boxed
+public sealed interface Schema11Boxed
permits
[Schema11BoxedNumber](#schema11boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema11BoxedNumber public static final class Schema11BoxedNumber
-extends [Schema11Boxed](#schema11boxed) +implements [Schema11Boxed](#schema11boxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petpetid/get/parameters/parameter0/Schema0.md index f2092272f63..943c96babd7 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/petpetid/get/parameters/parameter0/Schema0.md @@ -3,7 +3,7 @@ public class Schema0
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed -public static abstract sealed class Schema01Boxed
+public sealed interface Schema01Boxed
permits
[Schema01BoxedNumber](#schema01boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema01BoxedNumber public static final class Schema01BoxedNumber
-extends [Schema01Boxed](#schema01boxed) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/petpetid/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md index 915091b82ab..9161e29f533 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/petpetid/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [RefPet1](../../../../../../../../../components/schemas/RefPet.md#refpet 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/petpetid/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md index c4fa2d01442..982355e1a21 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md +++ b/samples/client/petstore/java/docs/paths/petpetid/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md @@ -4,7 +4,7 @@ extends [Pet1](../../../../../../../../../components/schemas/Pet.md#pet) 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petpetid/post/parameters/parameter0/Schema0.md index f2092272f63..943c96babd7 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/post/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/petpetid/post/parameters/parameter0/Schema0.md @@ -3,7 +3,7 @@ public class Schema0
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed -public static abstract sealed class Schema01Boxed
+public sealed interface Schema01Boxed
permits
[Schema01BoxedNumber](#schema01boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema01BoxedNumber public static final class Schema01BoxedNumber
-extends [Schema01Boxed](#schema01boxed) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md b/samples/client/petstore/java/docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md index 2aa2dbd4074..6d6d7f60ad1 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md +++ b/samples/client/petstore/java/docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md @@ -3,7 +3,7 @@ public class ApplicationxwwwformurlencodedSchema
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 +- abstract 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 @@ -24,15 +24,15 @@ A class that contains necessary nested | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedName](#applicationxwwwformurlencodedname)
schema class | ## ApplicationxwwwformurlencodedSchema1Boxed -public static abstract sealed class ApplicationxwwwformurlencodedSchema1Boxed
+public sealed interface ApplicationxwwwformurlencodedSchema1Boxed
permits
[ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedSchema1BoxedMap public static final class ApplicationxwwwformurlencodedSchema1BoxedMap
-extends [ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed) +implements [ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -134,15 +134,15 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## ApplicationxwwwformurlencodedStatusBoxed -public static abstract sealed class ApplicationxwwwformurlencodedStatusBoxed
+public sealed interface ApplicationxwwwformurlencodedStatusBoxed
permits
[ApplicationxwwwformurlencodedStatusBoxedString](#applicationxwwwformurlencodedstatusboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedStatusBoxedString public static final class ApplicationxwwwformurlencodedStatusBoxedString
-extends [ApplicationxwwwformurlencodedStatusBoxed](#applicationxwwwformurlencodedstatusboxed) +implements [ApplicationxwwwformurlencodedStatusBoxed](#applicationxwwwformurlencodedstatusboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -171,15 +171,15 @@ Updated status of the pet | validateAndBox | ## ApplicationxwwwformurlencodedNameBoxed -public static abstract sealed class ApplicationxwwwformurlencodedNameBoxed
+public sealed interface ApplicationxwwwformurlencodedNameBoxed
permits
[ApplicationxwwwformurlencodedNameBoxedString](#applicationxwwwformurlencodednameboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedNameBoxedString public static final class ApplicationxwwwformurlencodedNameBoxedString
-extends [ApplicationxwwwformurlencodedNameBoxed](#applicationxwwwformurlencodednameboxed) +implements [ApplicationxwwwformurlencodedNameBoxed](#applicationxwwwformurlencodednameboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md index f2092272f63..943c96babd7 100644 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md @@ -3,7 +3,7 @@ public class Schema0
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed -public static abstract sealed class Schema01Boxed
+public sealed interface Schema01Boxed
permits
[Schema01BoxedNumber](#schema01boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema01BoxedNumber public static final class Schema01BoxedNumber
-extends [Schema01Boxed](#schema01boxed) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md index 20c88307735..f9501439c15 100644 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -3,7 +3,7 @@ public class MultipartformdataSchema
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 +- abstract 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 @@ -23,15 +23,15 @@ A class that contains necessary nested | static class | [MultipartformdataSchema.MultipartformdataAdditionalMetadata](#multipartformdataadditionalmetadata)
schema class | ## MultipartformdataSchema1Boxed -public static abstract sealed class MultipartformdataSchema1Boxed
+public sealed interface MultipartformdataSchema1Boxed
permits
[MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MultipartformdataSchema1BoxedMap public static final class MultipartformdataSchema1BoxedMap
-extends [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) +implements [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -133,10 +133,10 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## MultipartformdataFileBoxed -public static abstract sealed class MultipartformdataFileBoxed
+public sealed interface MultipartformdataFileBoxed
permits
-abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MultipartformdataFile public static class MultipartformdataFile
@@ -148,15 +148,15 @@ A schema class that validates payloads file to upload ## MultipartformdataAdditionalMetadataBoxed -public static abstract sealed class MultipartformdataAdditionalMetadataBoxed
+public sealed interface MultipartformdataAdditionalMetadataBoxed
permits
[MultipartformdataAdditionalMetadataBoxedString](#multipartformdataadditionalmetadataboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MultipartformdataAdditionalMetadataBoxedString public static final class MultipartformdataAdditionalMetadataBoxedString
-extends [MultipartformdataAdditionalMetadataBoxed](#multipartformdataadditionalmetadataboxed) +implements [MultipartformdataAdditionalMetadataBoxed](#multipartformdataadditionalmetadataboxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index c63efed4d0a..8edca3405a6 100644 --- a/samples/client/petstore/java/docs/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [Order1](../../../../../../../components/schemas/Order.md#order) 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/storeorder/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md index 50b51e2a865..96c3664deb4 100644 --- a/samples/client/petstore/java/docs/paths/storeorder/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/storeorder/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [Order1](../../../../../../../../../components/schemas/Order.md#order) 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/responses/response200/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/storeorder/post/responses/response200/content/applicationxml/ApplicationxmlSchema.md index 1b8ffc8acf6..2bcf70b5efd 100644 --- a/samples/client/petstore/java/docs/paths/storeorder/post/responses/response200/content/applicationxml/ApplicationxmlSchema.md +++ b/samples/client/petstore/java/docs/paths/storeorder/post/responses/response200/content/applicationxml/ApplicationxmlSchema.md @@ -4,7 +4,7 @@ extends [Order1](../../../../../../../../../components/schemas/Order.md#order) 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/storeorderorderid/delete/parameters/parameter0/Schema0.md index 34951cbef92..e79a3033b40 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/delete/parameters/parameter0/Schema0.md @@ -3,7 +3,7 @@ public class Schema0
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed -public static abstract sealed class Schema01Boxed
+public sealed interface Schema01Boxed
permits
[Schema01BoxedString](#schema01boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema01BoxedString public static final class Schema01BoxedString
-extends [Schema01Boxed](#schema01boxed) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/parameters/parameter0/Schema0.md index 4c5753300b1..92f230dcb90 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/get/parameters/parameter0/Schema0.md @@ -3,7 +3,7 @@ public class Schema0
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed -public static abstract sealed class Schema01Boxed
+public sealed interface Schema01Boxed
permits
[Schema01BoxedNumber](#schema01boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema01BoxedNumber public static final class Schema01BoxedNumber
-extends [Schema01Boxed](#schema01boxed) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md index 50b51e2a865..96c3664deb4 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [Order1](../../../../../../../../../components/schemas/Order.md#order) 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md index 1b8ffc8acf6..2bcf70b5efd 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md @@ -4,7 +4,7 @@ extends [Order1](../../../../../../../../../components/schemas/Order.md#order) 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index f2e3fc91680..6c2b5617631 100644 --- a/samples/client/petstore/java/docs/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [User1](../../../../../../../components/schemas/User.md#user) 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter0/Schema0.md index 34951cbef92..e79a3033b40 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter0/Schema0.md @@ -3,7 +3,7 @@ public class Schema0
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed -public static abstract sealed class Schema01Boxed
+public sealed interface Schema01Boxed
permits
[Schema01BoxedString](#schema01boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema01BoxedString public static final class Schema01BoxedString
-extends [Schema01Boxed](#schema01boxed) +implements [Schema01Boxed](#schema01boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter1/Schema1.md index dc73fa004df..607c39645ec 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter1/Schema1.md @@ -3,7 +3,7 @@ public class Schema1
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [Schema1.Schema11](#schema11)
schema class | ## Schema11Boxed -public static abstract sealed class Schema11Boxed
+public sealed interface Schema11Boxed
permits
[Schema11BoxedString](#schema11boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema11BoxedString public static final class Schema11BoxedString
-extends [Schema11Boxed](#schema11boxed) +implements [Schema11Boxed](#schema11boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md index ae31bdfd5a9..1981922da4b 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -3,7 +3,7 @@ public class ApplicationjsonSchema
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | ## ApplicationjsonSchema1Boxed -public static abstract sealed class ApplicationjsonSchema1Boxed
+public sealed interface ApplicationjsonSchema1Boxed
permits
[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedString public static final class ApplicationjsonSchema1BoxedString
-extends [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) +implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md index 844a63025bd..8f95e2ceecb 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md @@ -3,7 +3,7 @@ public class ApplicationxmlSchema
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | ## ApplicationxmlSchema1Boxed -public static abstract sealed class ApplicationxmlSchema1Boxed
+public sealed interface ApplicationxmlSchema1Boxed
permits
[ApplicationxmlSchema1BoxedString](#applicationxmlschema1boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ApplicationxmlSchema1BoxedString public static final class ApplicationxmlSchema1BoxedString
-extends [ApplicationxmlSchema1Boxed](#applicationxmlschema1boxed) +implements [ApplicationxmlSchema1Boxed](#applicationxmlschema1boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/headers/xexpiresafter/XExpiresAfterSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/headers/xexpiresafter/XExpiresAfterSchema.md index 627d8c8f55e..1eaec156000 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/headers/xexpiresafter/XExpiresAfterSchema.md +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/headers/xexpiresafter/XExpiresAfterSchema.md @@ -3,7 +3,7 @@ public class XExpiresAfterSchema
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [XExpiresAfterSchema.XExpiresAfterSchema1](#xexpiresafterschema1)
schema class | ## XExpiresAfterSchema1Boxed -public static abstract sealed class XExpiresAfterSchema1Boxed
+public sealed interface XExpiresAfterSchema1Boxed
permits
[XExpiresAfterSchema1BoxedString](#xexpiresafterschema1boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## XExpiresAfterSchema1BoxedString public static final class XExpiresAfterSchema1BoxedString
-extends [XExpiresAfterSchema1Boxed](#xexpiresafterschema1boxed) +implements [XExpiresAfterSchema1Boxed](#xexpiresafterschema1boxed) a boxed class to store validated String payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/headers/xratelimit/content/applicationjson/XRateLimitSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/headers/xratelimit/content/applicationjson/XRateLimitSchema.md index 8a6ce8a1475..d2e064f6105 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/headers/xratelimit/content/applicationjson/XRateLimitSchema.md +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/headers/xratelimit/content/applicationjson/XRateLimitSchema.md @@ -3,7 +3,7 @@ public class XRateLimitSchema
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 +- abstract 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 @@ -14,15 +14,15 @@ A class that contains necessary nested | static class | [XRateLimitSchema.XRateLimitSchema1](#xratelimitschema1)
schema class | ## XRateLimitSchema1Boxed -public static abstract sealed class XRateLimitSchema1Boxed
+public sealed interface XRateLimitSchema1Boxed
permits
[XRateLimitSchema1BoxedNumber](#xratelimitschema1boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## XRateLimitSchema1BoxedNumber public static final class XRateLimitSchema1BoxedNumber
-extends [XRateLimitSchema1Boxed](#xratelimitschema1boxed) +implements [XRateLimitSchema1Boxed](#xratelimitschema1boxed) a boxed class to store validated Number payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/paths/userusername/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/userusername/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md index 57e5223ee10..755157ca72a 100644 --- a/samples/client/petstore/java/docs/paths/userusername/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/userusername/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [User1](../../../../../../../../../components/schemas/User.md#user) 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/userusername/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/userusername/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md index dd9ec7af4f3..3c1d62f3db3 100644 --- a/samples/client/petstore/java/docs/paths/userusername/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md +++ b/samples/client/petstore/java/docs/paths/userusername/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md @@ -4,7 +4,7 @@ extends [User1](../../../../../../../../../components/schemas/User.md#user) 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.md index f2e3fc91680..6c2b5617631 100644 --- a/samples/client/petstore/java/docs/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [User1](../../../../../../../components/schemas/User.md#user) 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 +- abstract 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 diff --git a/samples/client/petstore/java/docs/servers/Server0.md b/samples/client/petstore/java/docs/servers/Server0.md index b2fe4276f49..7fb71d4025f 100644 --- a/samples/client/petstore/java/docs/servers/Server0.md +++ b/samples/client/petstore/java/docs/servers/Server0.md @@ -24,7 +24,7 @@ public class Variables
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 +- abstract 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 @@ -56,15 +56,15 @@ A class that contains necessary nested | static class | [Variables.AdditionalProperties](#additionalproperties)
schema class | ### Variables1Boxed -public static abstract sealed class Variables1Boxed
+public sealed interface Variables1Boxed
permits
[Variables1BoxedMap](#variables1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ### Variables1BoxedMap public static final class Variables1BoxedMap
-extends [Variables1Boxed](#variables1boxed) +implements [Variables1Boxed](#variables1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -209,15 +209,15 @@ A class to store validated Map payloads | String | server()
must be one of ["petstore", "qa-petstore", "dev-petstore"] if omitted the server will use the default value of petstore | ### PortBoxed -public static abstract sealed class PortBoxed
+public sealed interface PortBoxed
permits
[PortBoxedString](#portboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ### PortBoxedString public static final class PortBoxedString
-extends [PortBoxed](#portboxed) +implements [PortBoxed](#portboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -289,15 +289,15 @@ A class that stores String enum values | POSITIVE_8080 | value = "8080" | ### ServerBoxed -public static abstract sealed class ServerBoxed
+public sealed interface ServerBoxed
permits
[ServerBoxedString](#serverboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ### ServerBoxedString public static final class ServerBoxedString
-extends [ServerBoxed](#serverboxed) +implements [ServerBoxed](#serverboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -370,7 +370,7 @@ A class that stores String enum values | DEV_HYPHEN_MINUS_PETSTORE | value = "dev-petstore" | ### AdditionalPropertiesBoxed -public static abstract sealed class AdditionalPropertiesBoxed
+public sealed interface AdditionalPropertiesBoxed
permits
[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), [AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), @@ -379,11 +379,11 @@ permits
[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), [AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ### AdditionalPropertiesBoxedVoid public static final class AdditionalPropertiesBoxedVoid
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -399,7 +399,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ### AdditionalPropertiesBoxedBoolean public static final class AdditionalPropertiesBoxedBoolean
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -415,7 +415,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ### AdditionalPropertiesBoxedNumber public static final class AdditionalPropertiesBoxedNumber
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -431,7 +431,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ### AdditionalPropertiesBoxedString public static final class AdditionalPropertiesBoxedString
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -447,7 +447,7 @@ a boxed class to store validated String payloads, sealed permits class implement ### AdditionalPropertiesBoxedList public static final class AdditionalPropertiesBoxedList
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -463,7 +463,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ### AdditionalPropertiesBoxedMap public static final class AdditionalPropertiesBoxedMap
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/docs/servers/Server1.md b/samples/client/petstore/java/docs/servers/Server1.md index ab132bfaca2..e7d3b600f78 100644 --- a/samples/client/petstore/java/docs/servers/Server1.md +++ b/samples/client/petstore/java/docs/servers/Server1.md @@ -24,7 +24,7 @@ public class Variables
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 +- abstract 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 @@ -52,15 +52,15 @@ A class that contains necessary nested | static class | [Variables.AdditionalProperties](#additionalproperties)
schema class | ### Variables1Boxed -public static abstract sealed class Variables1Boxed
+public sealed interface Variables1Boxed
permits
[Variables1BoxedMap](#variables1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ### Variables1BoxedMap public static final class Variables1BoxedMap
-extends [Variables1Boxed](#variables1boxed) +implements [Variables1Boxed](#variables1boxed) a boxed class to store validated Map payloads, sealed permits class implementation @@ -166,15 +166,15 @@ A class to store validated Map payloads | String | version()
must be one of ["v1", "v2"] if omitted the server will use the default value of v2 | ### VersionBoxed -public static abstract sealed class VersionBoxed
+public sealed interface VersionBoxed
permits
[VersionBoxedString](#versionboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ### VersionBoxedString public static final class VersionBoxedString
-extends [VersionBoxed](#versionboxed) +implements [VersionBoxed](#versionboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -243,7 +243,7 @@ A class that stores String enum values | V2 | value = "v2" | ### AdditionalPropertiesBoxed -public static abstract sealed class AdditionalPropertiesBoxed
+public sealed interface AdditionalPropertiesBoxed
permits
[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), [AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), @@ -252,11 +252,11 @@ permits
[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), [AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ### AdditionalPropertiesBoxedVoid public static final class AdditionalPropertiesBoxedVoid
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated null payloads, sealed permits class implementation @@ -272,7 +272,7 @@ a boxed class to store validated null payloads, sealed permits class implementat ### AdditionalPropertiesBoxedBoolean public static final class AdditionalPropertiesBoxedBoolean
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -288,7 +288,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen ### AdditionalPropertiesBoxedNumber public static final class AdditionalPropertiesBoxedNumber
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated Number payloads, sealed permits class implementation @@ -304,7 +304,7 @@ a boxed class to store validated Number payloads, sealed permits class implement ### AdditionalPropertiesBoxedString public static final class AdditionalPropertiesBoxedString
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated String payloads, sealed permits class implementation @@ -320,7 +320,7 @@ a boxed class to store validated String payloads, sealed permits class implement ### AdditionalPropertiesBoxedList public static final class AdditionalPropertiesBoxedList
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated List payloads, sealed permits class implementation @@ -336,7 +336,7 @@ a boxed class to store validated List payloads, sealed permits class implementat ### AdditionalPropertiesBoxedMap public static final class AdditionalPropertiesBoxedMap
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) a boxed class to store validated Map payloads, sealed permits class implementation diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.java index 991ffc18c20..e604a887914 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.java @@ -57,11 +57,11 @@ public ApplicationjsonSchemaListBuilder add(Map item) } - public static abstract sealed class ApplicationjsonSchema1Boxed permits ApplicationjsonSchema1BoxedList { - public abstract @Nullable Object data(); + public sealed interface ApplicationjsonSchema1Boxed permits ApplicationjsonSchema1BoxedList { + @Nullable Object data(); } - public static final class ApplicationjsonSchema1BoxedList extends ApplicationjsonSchema1Boxed { + public static final class ApplicationjsonSchema1BoxedList implements ApplicationjsonSchema1Boxed { public final ApplicationjsonSchemaList data; private ApplicationjsonSchema1BoxedList(ApplicationjsonSchemaList data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody/Headers.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody/Headers.java index c9dc12884ad..4e9d1c0f5e1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody/Headers.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody/Headers.java @@ -93,11 +93,11 @@ public HeadersMapBuilder getBuilderAfterLocation(Map instance) { } - public static abstract sealed class Headers1Boxed permits Headers1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Headers1Boxed permits Headers1BoxedMap { + @Nullable Object data(); } - public static final class Headers1BoxedMap extends Headers1Boxed { + public static final class Headers1BoxedMap implements Headers1Boxed { public final HeadersMap data; private Headers1BoxedMap(HeadersMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.java index e069906bf11..8fe2aa6077d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.java @@ -58,11 +58,11 @@ public ApplicationjsonSchemaListBuilder add(Map item) } - public static abstract sealed class ApplicationjsonSchema1Boxed permits ApplicationjsonSchema1BoxedList { - public abstract @Nullable Object data(); + public sealed interface ApplicationjsonSchema1Boxed permits ApplicationjsonSchema1BoxedList { + @Nullable Object data(); } - public static final class ApplicationjsonSchema1BoxedList extends ApplicationjsonSchema1Boxed { + public static final class ApplicationjsonSchema1BoxedList implements ApplicationjsonSchema1Boxed { public final ApplicationjsonSchemaList data; private ApplicationjsonSchema1BoxedList(ApplicationjsonSchemaList data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.java index 95700c7fcb5..fd0792347ab 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.java @@ -57,11 +57,11 @@ public ApplicationxmlSchemaListBuilder add(Map item) { } - public static abstract sealed class ApplicationxmlSchema1Boxed permits ApplicationxmlSchema1BoxedList { - public abstract @Nullable Object data(); + public sealed interface ApplicationxmlSchema1Boxed permits ApplicationxmlSchema1BoxedList { + @Nullable Object data(); } - public static final class ApplicationxmlSchema1BoxedList extends ApplicationxmlSchema1Boxed { + public static final class ApplicationxmlSchema1BoxedList implements ApplicationxmlSchema1Boxed { public final ApplicationxmlSchemaList data; private ApplicationxmlSchema1BoxedList(ApplicationxmlSchemaList data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/Headers.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/Headers.java index 350ad24ad13..6d9ac3e700f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/Headers.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/Headers.java @@ -93,11 +93,11 @@ public HeadersMapBuilder getBuilderAfterSomeHeader(Map instance) } - public static abstract sealed class Headers1Boxed permits Headers1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Headers1Boxed permits Headers1BoxedMap { + @Nullable Object data(); } - public static final class Headers1BoxedMap extends Headers1Boxed { + public static final class Headers1BoxedMap implements Headers1Boxed { public final HeadersMap data; private Headers1BoxedMap(HeadersMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.java index 93ddecadad1..b02b1f32b2b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.java @@ -95,11 +95,11 @@ public ApplicationjsonSchemaMapBuilder getBuilderAfterAdditionalProperty(Map arg, SchemaConfiguration configu } - public static abstract sealed class AdditionalProperties1Boxed permits AdditionalProperties1BoxedVoid, AdditionalProperties1BoxedBoolean, AdditionalProperties1BoxedNumber, AdditionalProperties1BoxedString, AdditionalProperties1BoxedList, AdditionalProperties1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AdditionalProperties1Boxed permits AdditionalProperties1BoxedVoid, AdditionalProperties1BoxedBoolean, AdditionalProperties1BoxedNumber, AdditionalProperties1BoxedString, AdditionalProperties1BoxedList, AdditionalProperties1BoxedMap { + @Nullable Object data(); } - public static final class AdditionalProperties1BoxedVoid extends AdditionalProperties1Boxed { + public static final class AdditionalProperties1BoxedVoid implements AdditionalProperties1Boxed { public final Void data; private AdditionalProperties1BoxedVoid(Void data) { this.data = data; @@ -257,7 +257,7 @@ private AdditionalProperties1BoxedVoid(Void data) { } } - public static final class AdditionalProperties1BoxedBoolean extends AdditionalProperties1Boxed { + public static final class AdditionalProperties1BoxedBoolean implements AdditionalProperties1Boxed { public final boolean data; private AdditionalProperties1BoxedBoolean(boolean data) { this.data = data; @@ -268,7 +268,7 @@ private AdditionalProperties1BoxedBoolean(boolean data) { } } - public static final class AdditionalProperties1BoxedNumber extends AdditionalProperties1Boxed { + public static final class AdditionalProperties1BoxedNumber implements AdditionalProperties1Boxed { public final Number data; private AdditionalProperties1BoxedNumber(Number data) { this.data = data; @@ -279,7 +279,7 @@ private AdditionalProperties1BoxedNumber(Number data) { } } - public static final class AdditionalProperties1BoxedString extends AdditionalProperties1Boxed { + public static final class AdditionalProperties1BoxedString implements AdditionalProperties1Boxed { public final String data; private AdditionalProperties1BoxedString(String data) { this.data = data; @@ -290,7 +290,7 @@ private AdditionalProperties1BoxedString(String data) { } } - public static final class AdditionalProperties1BoxedList extends AdditionalProperties1Boxed { + public static final class AdditionalProperties1BoxedList implements AdditionalProperties1Boxed { public final FrozenList<@Nullable Object> data; private AdditionalProperties1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -301,7 +301,7 @@ private AdditionalProperties1BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class AdditionalProperties1BoxedMap extends AdditionalProperties1Boxed { + public static final class AdditionalProperties1BoxedMap implements AdditionalProperties1Boxed { public final FrozenMap<@Nullable Object> data; private AdditionalProperties1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; @@ -637,11 +637,11 @@ public Schema1MapBuilder getBuilderAfterAdditionalProperty(Map arg, SchemaConfiguration configu } - public static abstract sealed class AdditionalProperties2Boxed permits AdditionalProperties2BoxedVoid, AdditionalProperties2BoxedBoolean, AdditionalProperties2BoxedNumber, AdditionalProperties2BoxedString, AdditionalProperties2BoxedList, AdditionalProperties2BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AdditionalProperties2Boxed permits AdditionalProperties2BoxedVoid, AdditionalProperties2BoxedBoolean, AdditionalProperties2BoxedNumber, AdditionalProperties2BoxedString, AdditionalProperties2BoxedList, AdditionalProperties2BoxedMap { + @Nullable Object data(); } - public static final class AdditionalProperties2BoxedVoid extends AdditionalProperties2Boxed { + public static final class AdditionalProperties2BoxedVoid implements AdditionalProperties2Boxed { public final Void data; private AdditionalProperties2BoxedVoid(Void data) { this.data = data; @@ -740,7 +740,7 @@ private AdditionalProperties2BoxedVoid(Void data) { } } - public static final class AdditionalProperties2BoxedBoolean extends AdditionalProperties2Boxed { + public static final class AdditionalProperties2BoxedBoolean implements AdditionalProperties2Boxed { public final boolean data; private AdditionalProperties2BoxedBoolean(boolean data) { this.data = data; @@ -751,7 +751,7 @@ private AdditionalProperties2BoxedBoolean(boolean data) { } } - public static final class AdditionalProperties2BoxedNumber extends AdditionalProperties2Boxed { + public static final class AdditionalProperties2BoxedNumber implements AdditionalProperties2Boxed { public final Number data; private AdditionalProperties2BoxedNumber(Number data) { this.data = data; @@ -762,7 +762,7 @@ private AdditionalProperties2BoxedNumber(Number data) { } } - public static final class AdditionalProperties2BoxedString extends AdditionalProperties2Boxed { + public static final class AdditionalProperties2BoxedString implements AdditionalProperties2Boxed { public final String data; private AdditionalProperties2BoxedString(String data) { this.data = data; @@ -773,7 +773,7 @@ private AdditionalProperties2BoxedString(String data) { } } - public static final class AdditionalProperties2BoxedList extends AdditionalProperties2Boxed { + public static final class AdditionalProperties2BoxedList implements AdditionalProperties2Boxed { public final FrozenList<@Nullable Object> data; private AdditionalProperties2BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -784,7 +784,7 @@ private AdditionalProperties2BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class AdditionalProperties2BoxedMap extends AdditionalProperties2Boxed { + public static final class AdditionalProperties2BoxedMap implements AdditionalProperties2Boxed { public final FrozenMap<@Nullable Object> data; private AdditionalProperties2BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; @@ -1120,11 +1120,11 @@ public Schema2MapBuilder getBuilderAfterAdditionalProperty(Map arg, SchemaConfiguration configu } - public static abstract sealed class AdditionalPropertiesSchema1Boxed permits AdditionalPropertiesSchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AdditionalPropertiesSchema1Boxed permits AdditionalPropertiesSchema1BoxedMap { + @Nullable Object data(); } - public static final class AdditionalPropertiesSchema1BoxedMap extends AdditionalPropertiesSchema1Boxed { + public static final class AdditionalPropertiesSchema1BoxedMap implements AdditionalPropertiesSchema1Boxed { public final FrozenMap<@Nullable Object> data; private AdditionalPropertiesSchema1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesWithArrayOfEnums.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesWithArrayOfEnums.java index 3d460de6410..cc74305ac3e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesWithArrayOfEnums.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesWithArrayOfEnums.java @@ -66,11 +66,11 @@ public List build() { } - public static abstract sealed class AdditionalPropertiesBoxed permits AdditionalPropertiesBoxedList { - public abstract @Nullable Object data(); + public sealed interface AdditionalPropertiesBoxed permits AdditionalPropertiesBoxedList { + @Nullable Object data(); } - public static final class AdditionalPropertiesBoxedList extends AdditionalPropertiesBoxed { + public static final class AdditionalPropertiesBoxedList implements AdditionalPropertiesBoxed { public final AdditionalPropertiesList data; private AdditionalPropertiesBoxedList(AdditionalPropertiesList data) { this.data = data; @@ -206,11 +206,11 @@ public AdditionalPropertiesWithArrayOfEnumsMapBuilder getBuilderAfterAdditionalP } - public static abstract sealed class AdditionalPropertiesWithArrayOfEnums1Boxed permits AdditionalPropertiesWithArrayOfEnums1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AdditionalPropertiesWithArrayOfEnums1Boxed permits AdditionalPropertiesWithArrayOfEnums1BoxedMap { + @Nullable Object data(); } - public static final class AdditionalPropertiesWithArrayOfEnums1BoxedMap extends AdditionalPropertiesWithArrayOfEnums1Boxed { + public static final class AdditionalPropertiesWithArrayOfEnums1BoxedMap implements AdditionalPropertiesWithArrayOfEnums1Boxed { public final AdditionalPropertiesWithArrayOfEnumsMap data; private AdditionalPropertiesWithArrayOfEnums1BoxedMap(AdditionalPropertiesWithArrayOfEnumsMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Address.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Address.java index 34f6d35e856..5fc41ffac3d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Address.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Address.java @@ -109,11 +109,11 @@ public AddressMapBuilder getBuilderAfterAdditionalProperty(Map i } - public static abstract sealed class Address1Boxed permits Address1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Address1Boxed permits Address1BoxedMap { + @Nullable Object data(); } - public static final class Address1BoxedMap extends Address1Boxed { + public static final class Address1BoxedMap implements Address1Boxed { public final AddressMap data; private Address1BoxedMap(AddressMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Animal.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Animal.java index eb9f725d8d2..087aee9fb05 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Animal.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Animal.java @@ -42,11 +42,11 @@ public static ClassName getInstance() { } - public static abstract sealed class ColorBoxed permits ColorBoxedString { - public abstract @Nullable Object data(); + public sealed interface ColorBoxed permits ColorBoxedString { + @Nullable Object data(); } - public static final class ColorBoxedString extends ColorBoxed { + public static final class ColorBoxedString implements ColorBoxed { public final String data; private ColorBoxedString(String data) { this.data = data; @@ -216,11 +216,11 @@ public AnimalMap0Builder getBuilderAfterClassName(Map } - public static abstract sealed class Animal1Boxed permits Animal1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Animal1Boxed permits Animal1BoxedMap { + @Nullable Object data(); } - public static final class Animal1BoxedMap extends Animal1Boxed { + public static final class Animal1BoxedMap implements Animal1Boxed { public final AnimalMap data; private Animal1BoxedMap(AnimalMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnimalFarm.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnimalFarm.java index 5351f2ba435..f5c15ff1d8a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnimalFarm.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnimalFarm.java @@ -56,11 +56,11 @@ public AnimalFarmListBuilder add(Map item) { } - public static abstract sealed class AnimalFarm1Boxed permits AnimalFarm1BoxedList { - public abstract @Nullable Object data(); + public sealed interface AnimalFarm1Boxed permits AnimalFarm1BoxedList { + @Nullable Object data(); } - public static final class AnimalFarm1BoxedList extends AnimalFarm1Boxed { + public static final class AnimalFarm1BoxedList implements AnimalFarm1Boxed { public final AnimalFarmList data; private AnimalFarm1BoxedList(AnimalFarmList data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormat.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormat.java index 7dce56be246..7db55e82eea 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormat.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormat.java @@ -37,11 +37,11 @@ public class AnyTypeAndFormat { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class UuidSchemaBoxed permits UuidSchemaBoxedVoid, UuidSchemaBoxedBoolean, UuidSchemaBoxedNumber, UuidSchemaBoxedString, UuidSchemaBoxedList, UuidSchemaBoxedMap { - public abstract @Nullable Object data(); + public sealed interface UuidSchemaBoxed permits UuidSchemaBoxedVoid, UuidSchemaBoxedBoolean, UuidSchemaBoxedNumber, UuidSchemaBoxedString, UuidSchemaBoxedList, UuidSchemaBoxedMap { + @Nullable Object data(); } - public static final class UuidSchemaBoxedVoid extends UuidSchemaBoxed { + public static final class UuidSchemaBoxedVoid implements UuidSchemaBoxed { public final Void data; private UuidSchemaBoxedVoid(Void data) { this.data = data; @@ -52,7 +52,7 @@ private UuidSchemaBoxedVoid(Void data) { } } - public static final class UuidSchemaBoxedBoolean extends UuidSchemaBoxed { + public static final class UuidSchemaBoxedBoolean implements UuidSchemaBoxed { public final boolean data; private UuidSchemaBoxedBoolean(boolean data) { this.data = data; @@ -63,7 +63,7 @@ private UuidSchemaBoxedBoolean(boolean data) { } } - public static final class UuidSchemaBoxedNumber extends UuidSchemaBoxed { + public static final class UuidSchemaBoxedNumber implements UuidSchemaBoxed { public final Number data; private UuidSchemaBoxedNumber(Number data) { this.data = data; @@ -74,7 +74,7 @@ private UuidSchemaBoxedNumber(Number data) { } } - public static final class UuidSchemaBoxedString extends UuidSchemaBoxed { + public static final class UuidSchemaBoxedString implements UuidSchemaBoxed { public final String data; private UuidSchemaBoxedString(String data) { this.data = data; @@ -85,7 +85,7 @@ private UuidSchemaBoxedString(String data) { } } - public static final class UuidSchemaBoxedList extends UuidSchemaBoxed { + public static final class UuidSchemaBoxedList implements UuidSchemaBoxed { public final FrozenList<@Nullable Object> data; private UuidSchemaBoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -96,7 +96,7 @@ private UuidSchemaBoxedList(FrozenList<@Nullable Object> data) { } } - public static final class UuidSchemaBoxedMap extends UuidSchemaBoxed { + public static final class UuidSchemaBoxedMap implements UuidSchemaBoxed { public final FrozenMap<@Nullable Object> data; private UuidSchemaBoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; @@ -327,11 +327,11 @@ public UuidSchemaBoxedMap validateAndBox(Map arg, SchemaConfiguration conf } } - public static abstract sealed class DateBoxed permits DateBoxedVoid, DateBoxedBoolean, DateBoxedNumber, DateBoxedString, DateBoxedList, DateBoxedMap { - public abstract @Nullable Object data(); + public sealed interface DateBoxed permits DateBoxedVoid, DateBoxedBoolean, DateBoxedNumber, DateBoxedString, DateBoxedList, DateBoxedMap { + @Nullable Object data(); } - public static final class DateBoxedVoid extends DateBoxed { + public static final class DateBoxedVoid implements DateBoxed { public final Void data; private DateBoxedVoid(Void data) { this.data = data; @@ -342,7 +342,7 @@ private DateBoxedVoid(Void data) { } } - public static final class DateBoxedBoolean extends DateBoxed { + public static final class DateBoxedBoolean implements DateBoxed { public final boolean data; private DateBoxedBoolean(boolean data) { this.data = data; @@ -353,7 +353,7 @@ private DateBoxedBoolean(boolean data) { } } - public static final class DateBoxedNumber extends DateBoxed { + public static final class DateBoxedNumber implements DateBoxed { public final Number data; private DateBoxedNumber(Number data) { this.data = data; @@ -364,7 +364,7 @@ private DateBoxedNumber(Number data) { } } - public static final class DateBoxedString extends DateBoxed { + public static final class DateBoxedString implements DateBoxed { public final String data; private DateBoxedString(String data) { this.data = data; @@ -375,7 +375,7 @@ private DateBoxedString(String data) { } } - public static final class DateBoxedList extends DateBoxed { + public static final class DateBoxedList implements DateBoxed { public final FrozenList<@Nullable Object> data; private DateBoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -386,7 +386,7 @@ private DateBoxedList(FrozenList<@Nullable Object> data) { } } - public static final class DateBoxedMap extends DateBoxed { + public static final class DateBoxedMap implements DateBoxed { public final FrozenMap<@Nullable Object> data; private DateBoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; @@ -617,11 +617,11 @@ public DateBoxedMap validateAndBox(Map arg, SchemaConfiguration configurat } } - public static abstract sealed class DatetimeBoxed permits DatetimeBoxedVoid, DatetimeBoxedBoolean, DatetimeBoxedNumber, DatetimeBoxedString, DatetimeBoxedList, DatetimeBoxedMap { - public abstract @Nullable Object data(); + public sealed interface DatetimeBoxed permits DatetimeBoxedVoid, DatetimeBoxedBoolean, DatetimeBoxedNumber, DatetimeBoxedString, DatetimeBoxedList, DatetimeBoxedMap { + @Nullable Object data(); } - public static final class DatetimeBoxedVoid extends DatetimeBoxed { + public static final class DatetimeBoxedVoid implements DatetimeBoxed { public final Void data; private DatetimeBoxedVoid(Void data) { this.data = data; @@ -632,7 +632,7 @@ private DatetimeBoxedVoid(Void data) { } } - public static final class DatetimeBoxedBoolean extends DatetimeBoxed { + public static final class DatetimeBoxedBoolean implements DatetimeBoxed { public final boolean data; private DatetimeBoxedBoolean(boolean data) { this.data = data; @@ -643,7 +643,7 @@ private DatetimeBoxedBoolean(boolean data) { } } - public static final class DatetimeBoxedNumber extends DatetimeBoxed { + public static final class DatetimeBoxedNumber implements DatetimeBoxed { public final Number data; private DatetimeBoxedNumber(Number data) { this.data = data; @@ -654,7 +654,7 @@ private DatetimeBoxedNumber(Number data) { } } - public static final class DatetimeBoxedString extends DatetimeBoxed { + public static final class DatetimeBoxedString implements DatetimeBoxed { public final String data; private DatetimeBoxedString(String data) { this.data = data; @@ -665,7 +665,7 @@ private DatetimeBoxedString(String data) { } } - public static final class DatetimeBoxedList extends DatetimeBoxed { + public static final class DatetimeBoxedList implements DatetimeBoxed { public final FrozenList<@Nullable Object> data; private DatetimeBoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -676,7 +676,7 @@ private DatetimeBoxedList(FrozenList<@Nullable Object> data) { } } - public static final class DatetimeBoxedMap extends DatetimeBoxed { + public static final class DatetimeBoxedMap implements DatetimeBoxed { public final FrozenMap<@Nullable Object> data; private DatetimeBoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; @@ -907,11 +907,11 @@ public DatetimeBoxedMap validateAndBox(Map arg, SchemaConfiguration config } } - public static abstract sealed class NumberSchemaBoxed permits NumberSchemaBoxedVoid, NumberSchemaBoxedBoolean, NumberSchemaBoxedNumber, NumberSchemaBoxedString, NumberSchemaBoxedList, NumberSchemaBoxedMap { - public abstract @Nullable Object data(); + public sealed interface NumberSchemaBoxed permits NumberSchemaBoxedVoid, NumberSchemaBoxedBoolean, NumberSchemaBoxedNumber, NumberSchemaBoxedString, NumberSchemaBoxedList, NumberSchemaBoxedMap { + @Nullable Object data(); } - public static final class NumberSchemaBoxedVoid extends NumberSchemaBoxed { + public static final class NumberSchemaBoxedVoid implements NumberSchemaBoxed { public final Void data; private NumberSchemaBoxedVoid(Void data) { this.data = data; @@ -922,7 +922,7 @@ private NumberSchemaBoxedVoid(Void data) { } } - public static final class NumberSchemaBoxedBoolean extends NumberSchemaBoxed { + public static final class NumberSchemaBoxedBoolean implements NumberSchemaBoxed { public final boolean data; private NumberSchemaBoxedBoolean(boolean data) { this.data = data; @@ -933,7 +933,7 @@ private NumberSchemaBoxedBoolean(boolean data) { } } - public static final class NumberSchemaBoxedNumber extends NumberSchemaBoxed { + public static final class NumberSchemaBoxedNumber implements NumberSchemaBoxed { public final Number data; private NumberSchemaBoxedNumber(Number data) { this.data = data; @@ -944,7 +944,7 @@ private NumberSchemaBoxedNumber(Number data) { } } - public static final class NumberSchemaBoxedString extends NumberSchemaBoxed { + public static final class NumberSchemaBoxedString implements NumberSchemaBoxed { public final String data; private NumberSchemaBoxedString(String data) { this.data = data; @@ -955,7 +955,7 @@ private NumberSchemaBoxedString(String data) { } } - public static final class NumberSchemaBoxedList extends NumberSchemaBoxed { + public static final class NumberSchemaBoxedList implements NumberSchemaBoxed { public final FrozenList<@Nullable Object> data; private NumberSchemaBoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -966,7 +966,7 @@ private NumberSchemaBoxedList(FrozenList<@Nullable Object> data) { } } - public static final class NumberSchemaBoxedMap extends NumberSchemaBoxed { + public static final class NumberSchemaBoxedMap implements NumberSchemaBoxed { public final FrozenMap<@Nullable Object> data; private NumberSchemaBoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; @@ -1197,11 +1197,11 @@ public NumberSchemaBoxedMap validateAndBox(Map arg, SchemaConfiguration co } } - public static abstract sealed class BinaryBoxed permits BinaryBoxedVoid, BinaryBoxedBoolean, BinaryBoxedNumber, BinaryBoxedString, BinaryBoxedList, BinaryBoxedMap { - public abstract @Nullable Object data(); + public sealed interface BinaryBoxed permits BinaryBoxedVoid, BinaryBoxedBoolean, BinaryBoxedNumber, BinaryBoxedString, BinaryBoxedList, BinaryBoxedMap { + @Nullable Object data(); } - public static final class BinaryBoxedVoid extends BinaryBoxed { + public static final class BinaryBoxedVoid implements BinaryBoxed { public final Void data; private BinaryBoxedVoid(Void data) { this.data = data; @@ -1212,7 +1212,7 @@ private BinaryBoxedVoid(Void data) { } } - public static final class BinaryBoxedBoolean extends BinaryBoxed { + public static final class BinaryBoxedBoolean implements BinaryBoxed { public final boolean data; private BinaryBoxedBoolean(boolean data) { this.data = data; @@ -1223,7 +1223,7 @@ private BinaryBoxedBoolean(boolean data) { } } - public static final class BinaryBoxedNumber extends BinaryBoxed { + public static final class BinaryBoxedNumber implements BinaryBoxed { public final Number data; private BinaryBoxedNumber(Number data) { this.data = data; @@ -1234,7 +1234,7 @@ private BinaryBoxedNumber(Number data) { } } - public static final class BinaryBoxedString extends BinaryBoxed { + public static final class BinaryBoxedString implements BinaryBoxed { public final String data; private BinaryBoxedString(String data) { this.data = data; @@ -1245,7 +1245,7 @@ private BinaryBoxedString(String data) { } } - public static final class BinaryBoxedList extends BinaryBoxed { + public static final class BinaryBoxedList implements BinaryBoxed { public final FrozenList<@Nullable Object> data; private BinaryBoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -1256,7 +1256,7 @@ private BinaryBoxedList(FrozenList<@Nullable Object> data) { } } - public static final class BinaryBoxedMap extends BinaryBoxed { + public static final class BinaryBoxedMap implements BinaryBoxed { public final FrozenMap<@Nullable Object> data; private BinaryBoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; @@ -1487,11 +1487,11 @@ public BinaryBoxedMap validateAndBox(Map arg, SchemaConfiguration configur } } - public static abstract sealed class Int32Boxed permits Int32BoxedVoid, Int32BoxedBoolean, Int32BoxedNumber, Int32BoxedString, Int32BoxedList, Int32BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Int32Boxed permits Int32BoxedVoid, Int32BoxedBoolean, Int32BoxedNumber, Int32BoxedString, Int32BoxedList, Int32BoxedMap { + @Nullable Object data(); } - public static final class Int32BoxedVoid extends Int32Boxed { + public static final class Int32BoxedVoid implements Int32Boxed { public final Void data; private Int32BoxedVoid(Void data) { this.data = data; @@ -1502,7 +1502,7 @@ private Int32BoxedVoid(Void data) { } } - public static final class Int32BoxedBoolean extends Int32Boxed { + public static final class Int32BoxedBoolean implements Int32Boxed { public final boolean data; private Int32BoxedBoolean(boolean data) { this.data = data; @@ -1513,7 +1513,7 @@ private Int32BoxedBoolean(boolean data) { } } - public static final class Int32BoxedNumber extends Int32Boxed { + public static final class Int32BoxedNumber implements Int32Boxed { public final Number data; private Int32BoxedNumber(Number data) { this.data = data; @@ -1524,7 +1524,7 @@ private Int32BoxedNumber(Number data) { } } - public static final class Int32BoxedString extends Int32Boxed { + public static final class Int32BoxedString implements Int32Boxed { public final String data; private Int32BoxedString(String data) { this.data = data; @@ -1535,7 +1535,7 @@ private Int32BoxedString(String data) { } } - public static final class Int32BoxedList extends Int32Boxed { + public static final class Int32BoxedList implements Int32Boxed { public final FrozenList<@Nullable Object> data; private Int32BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -1546,7 +1546,7 @@ private Int32BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class Int32BoxedMap extends Int32Boxed { + public static final class Int32BoxedMap implements Int32Boxed { public final FrozenMap<@Nullable Object> data; private Int32BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; @@ -1777,11 +1777,11 @@ public Int32BoxedMap validateAndBox(Map arg, SchemaConfiguration configura } } - public static abstract sealed class Int64Boxed permits Int64BoxedVoid, Int64BoxedBoolean, Int64BoxedNumber, Int64BoxedString, Int64BoxedList, Int64BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Int64Boxed permits Int64BoxedVoid, Int64BoxedBoolean, Int64BoxedNumber, Int64BoxedString, Int64BoxedList, Int64BoxedMap { + @Nullable Object data(); } - public static final class Int64BoxedVoid extends Int64Boxed { + public static final class Int64BoxedVoid implements Int64Boxed { public final Void data; private Int64BoxedVoid(Void data) { this.data = data; @@ -1792,7 +1792,7 @@ private Int64BoxedVoid(Void data) { } } - public static final class Int64BoxedBoolean extends Int64Boxed { + public static final class Int64BoxedBoolean implements Int64Boxed { public final boolean data; private Int64BoxedBoolean(boolean data) { this.data = data; @@ -1803,7 +1803,7 @@ private Int64BoxedBoolean(boolean data) { } } - public static final class Int64BoxedNumber extends Int64Boxed { + public static final class Int64BoxedNumber implements Int64Boxed { public final Number data; private Int64BoxedNumber(Number data) { this.data = data; @@ -1814,7 +1814,7 @@ private Int64BoxedNumber(Number data) { } } - public static final class Int64BoxedString extends Int64Boxed { + public static final class Int64BoxedString implements Int64Boxed { public final String data; private Int64BoxedString(String data) { this.data = data; @@ -1825,7 +1825,7 @@ private Int64BoxedString(String data) { } } - public static final class Int64BoxedList extends Int64Boxed { + public static final class Int64BoxedList implements Int64Boxed { public final FrozenList<@Nullable Object> data; private Int64BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -1836,7 +1836,7 @@ private Int64BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class Int64BoxedMap extends Int64Boxed { + public static final class Int64BoxedMap implements Int64Boxed { public final FrozenMap<@Nullable Object> data; private Int64BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; @@ -2067,11 +2067,11 @@ public Int64BoxedMap validateAndBox(Map arg, SchemaConfiguration configura } } - public static abstract sealed class DoubleSchemaBoxed permits DoubleSchemaBoxedVoid, DoubleSchemaBoxedBoolean, DoubleSchemaBoxedNumber, DoubleSchemaBoxedString, DoubleSchemaBoxedList, DoubleSchemaBoxedMap { - public abstract @Nullable Object data(); + public sealed interface DoubleSchemaBoxed permits DoubleSchemaBoxedVoid, DoubleSchemaBoxedBoolean, DoubleSchemaBoxedNumber, DoubleSchemaBoxedString, DoubleSchemaBoxedList, DoubleSchemaBoxedMap { + @Nullable Object data(); } - public static final class DoubleSchemaBoxedVoid extends DoubleSchemaBoxed { + public static final class DoubleSchemaBoxedVoid implements DoubleSchemaBoxed { public final Void data; private DoubleSchemaBoxedVoid(Void data) { this.data = data; @@ -2082,7 +2082,7 @@ private DoubleSchemaBoxedVoid(Void data) { } } - public static final class DoubleSchemaBoxedBoolean extends DoubleSchemaBoxed { + public static final class DoubleSchemaBoxedBoolean implements DoubleSchemaBoxed { public final boolean data; private DoubleSchemaBoxedBoolean(boolean data) { this.data = data; @@ -2093,7 +2093,7 @@ private DoubleSchemaBoxedBoolean(boolean data) { } } - public static final class DoubleSchemaBoxedNumber extends DoubleSchemaBoxed { + public static final class DoubleSchemaBoxedNumber implements DoubleSchemaBoxed { public final Number data; private DoubleSchemaBoxedNumber(Number data) { this.data = data; @@ -2104,7 +2104,7 @@ private DoubleSchemaBoxedNumber(Number data) { } } - public static final class DoubleSchemaBoxedString extends DoubleSchemaBoxed { + public static final class DoubleSchemaBoxedString implements DoubleSchemaBoxed { public final String data; private DoubleSchemaBoxedString(String data) { this.data = data; @@ -2115,7 +2115,7 @@ private DoubleSchemaBoxedString(String data) { } } - public static final class DoubleSchemaBoxedList extends DoubleSchemaBoxed { + public static final class DoubleSchemaBoxedList implements DoubleSchemaBoxed { public final FrozenList<@Nullable Object> data; private DoubleSchemaBoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -2126,7 +2126,7 @@ private DoubleSchemaBoxedList(FrozenList<@Nullable Object> data) { } } - public static final class DoubleSchemaBoxedMap extends DoubleSchemaBoxed { + public static final class DoubleSchemaBoxedMap implements DoubleSchemaBoxed { public final FrozenMap<@Nullable Object> data; private DoubleSchemaBoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; @@ -2357,11 +2357,11 @@ public DoubleSchemaBoxedMap validateAndBox(Map arg, SchemaConfiguration co } } - public static abstract sealed class FloatSchemaBoxed permits FloatSchemaBoxedVoid, FloatSchemaBoxedBoolean, FloatSchemaBoxedNumber, FloatSchemaBoxedString, FloatSchemaBoxedList, FloatSchemaBoxedMap { - public abstract @Nullable Object data(); + public sealed interface FloatSchemaBoxed permits FloatSchemaBoxedVoid, FloatSchemaBoxedBoolean, FloatSchemaBoxedNumber, FloatSchemaBoxedString, FloatSchemaBoxedList, FloatSchemaBoxedMap { + @Nullable Object data(); } - public static final class FloatSchemaBoxedVoid extends FloatSchemaBoxed { + public static final class FloatSchemaBoxedVoid implements FloatSchemaBoxed { public final Void data; private FloatSchemaBoxedVoid(Void data) { this.data = data; @@ -2372,7 +2372,7 @@ private FloatSchemaBoxedVoid(Void data) { } } - public static final class FloatSchemaBoxedBoolean extends FloatSchemaBoxed { + public static final class FloatSchemaBoxedBoolean implements FloatSchemaBoxed { public final boolean data; private FloatSchemaBoxedBoolean(boolean data) { this.data = data; @@ -2383,7 +2383,7 @@ private FloatSchemaBoxedBoolean(boolean data) { } } - public static final class FloatSchemaBoxedNumber extends FloatSchemaBoxed { + public static final class FloatSchemaBoxedNumber implements FloatSchemaBoxed { public final Number data; private FloatSchemaBoxedNumber(Number data) { this.data = data; @@ -2394,7 +2394,7 @@ private FloatSchemaBoxedNumber(Number data) { } } - public static final class FloatSchemaBoxedString extends FloatSchemaBoxed { + public static final class FloatSchemaBoxedString implements FloatSchemaBoxed { public final String data; private FloatSchemaBoxedString(String data) { this.data = data; @@ -2405,7 +2405,7 @@ private FloatSchemaBoxedString(String data) { } } - public static final class FloatSchemaBoxedList extends FloatSchemaBoxed { + public static final class FloatSchemaBoxedList implements FloatSchemaBoxed { public final FrozenList<@Nullable Object> data; private FloatSchemaBoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -2416,7 +2416,7 @@ private FloatSchemaBoxedList(FrozenList<@Nullable Object> data) { } } - public static final class FloatSchemaBoxedMap extends FloatSchemaBoxed { + public static final class FloatSchemaBoxedMap implements FloatSchemaBoxed { public final FrozenMap<@Nullable Object> data; private FloatSchemaBoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; @@ -3279,11 +3279,11 @@ public AnyTypeAndFormatMapBuilder getBuilderAfterAdditionalProperty(Map data; private AnyTypeNotString1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -106,7 +106,7 @@ private AnyTypeNotString1BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class AnyTypeNotString1BoxedMap extends AnyTypeNotString1Boxed { + public static final class AnyTypeNotString1BoxedMap implements AnyTypeNotString1Boxed { public final FrozenMap<@Nullable Object> data; private AnyTypeNotString1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ApiResponseSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ApiResponseSchema.java index d38de5b9a6b..f0fbb38eef7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ApiResponseSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ApiResponseSchema.java @@ -187,11 +187,11 @@ public ApiResponseMapBuilder getBuilderAfterAdditionalProperty(Map in } - public static abstract sealed class Apple1Boxed permits Apple1BoxedVoid, Apple1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Apple1Boxed permits Apple1BoxedVoid, Apple1BoxedMap { + @Nullable Object data(); } - public static final class Apple1BoxedVoid extends Apple1Boxed { + public static final class Apple1BoxedVoid implements Apple1Boxed { public final Void data; private Apple1BoxedVoid(Void data) { this.data = data; @@ -286,7 +286,7 @@ private Apple1BoxedVoid(Void data) { } } - public static final class Apple1BoxedMap extends Apple1Boxed { + public static final class Apple1BoxedMap implements Apple1Boxed { public final AppleMap data; private Apple1BoxedMap(AppleMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AppleReq.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AppleReq.java index 91786696908..08f3dfed34a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AppleReq.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AppleReq.java @@ -157,11 +157,11 @@ public AppleReqMap0Builder getBuilderAfterCultivar(Map instance) } - public static abstract sealed class AppleReq1Boxed permits AppleReq1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AppleReq1Boxed permits AppleReq1BoxedMap { + @Nullable Object data(); } - public static final class AppleReq1BoxedMap extends AppleReq1Boxed { + public static final class AppleReq1BoxedMap implements AppleReq1Boxed { public final AppleReqMap data; private AppleReq1BoxedMap(AppleReqMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayHoldingAnyType.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayHoldingAnyType.java index dd6efb9716c..788bf3ac65e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayHoldingAnyType.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayHoldingAnyType.java @@ -107,11 +107,11 @@ public ArrayHoldingAnyTypeListBuilder add(Map item) { } - public static abstract sealed class ArrayHoldingAnyType1Boxed permits ArrayHoldingAnyType1BoxedList { - public abstract @Nullable Object data(); + public sealed interface ArrayHoldingAnyType1Boxed permits ArrayHoldingAnyType1BoxedList { + @Nullable Object data(); } - public static final class ArrayHoldingAnyType1BoxedList extends ArrayHoldingAnyType1Boxed { + public static final class ArrayHoldingAnyType1BoxedList implements ArrayHoldingAnyType1Boxed { public final ArrayHoldingAnyTypeList data; private ArrayHoldingAnyType1BoxedList(ArrayHoldingAnyTypeList data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfArrayOfNumberOnly.java index a6f32f80b08..28e301edef8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfArrayOfNumberOnly.java @@ -89,11 +89,11 @@ public List build() { } - public static abstract sealed class ItemsBoxed permits ItemsBoxedList { - public abstract @Nullable Object data(); + public sealed interface ItemsBoxed permits ItemsBoxedList { + @Nullable Object data(); } - public static final class ItemsBoxedList extends ItemsBoxed { + public static final class ItemsBoxedList implements ItemsBoxed { public final ItemsList data; private ItemsBoxedList(ItemsList data) { this.data = data; @@ -208,11 +208,11 @@ public List> build() { } - public static abstract sealed class ArrayArrayNumberBoxed permits ArrayArrayNumberBoxedList { - public abstract @Nullable Object data(); + public sealed interface ArrayArrayNumberBoxed permits ArrayArrayNumberBoxedList { + @Nullable Object data(); } - public static final class ArrayArrayNumberBoxedList extends ArrayArrayNumberBoxed { + public static final class ArrayArrayNumberBoxedList implements ArrayArrayNumberBoxed { public final ArrayArrayNumberList data; private ArrayArrayNumberBoxedList(ArrayArrayNumberList data) { this.data = data; @@ -361,11 +361,11 @@ public ArrayOfArrayOfNumberOnlyMapBuilder getBuilderAfterAdditionalProperty(Map< } - public static abstract sealed class ArrayOfArrayOfNumberOnly1Boxed permits ArrayOfArrayOfNumberOnly1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface ArrayOfArrayOfNumberOnly1Boxed permits ArrayOfArrayOfNumberOnly1BoxedMap { + @Nullable Object data(); } - public static final class ArrayOfArrayOfNumberOnly1BoxedMap extends ArrayOfArrayOfNumberOnly1Boxed { + public static final class ArrayOfArrayOfNumberOnly1BoxedMap implements ArrayOfArrayOfNumberOnly1Boxed { public final ArrayOfArrayOfNumberOnlyMap data; private ArrayOfArrayOfNumberOnly1BoxedMap(ArrayOfArrayOfNumberOnlyMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfEnums.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfEnums.java index b7c1da85ed5..40292b4e362 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfEnums.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfEnums.java @@ -69,11 +69,11 @@ public ArrayOfEnumsListBuilder add(StringEnum.NullStringEnumEnums item) { } - public static abstract sealed class ArrayOfEnums1Boxed permits ArrayOfEnums1BoxedList { - public abstract @Nullable Object data(); + public sealed interface ArrayOfEnums1Boxed permits ArrayOfEnums1BoxedList { + @Nullable Object data(); } - public static final class ArrayOfEnums1BoxedList extends ArrayOfEnums1Boxed { + public static final class ArrayOfEnums1BoxedList implements ArrayOfEnums1Boxed { public final ArrayOfEnumsList data; private ArrayOfEnums1BoxedList(ArrayOfEnumsList data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfNumberOnly.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfNumberOnly.java index 2263421bc9b..86fb6a6632f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfNumberOnly.java @@ -89,11 +89,11 @@ public List build() { } - public static abstract sealed class ArrayNumberBoxed permits ArrayNumberBoxedList { - public abstract @Nullable Object data(); + public sealed interface ArrayNumberBoxed permits ArrayNumberBoxedList { + @Nullable Object data(); } - public static final class ArrayNumberBoxedList extends ArrayNumberBoxed { + public static final class ArrayNumberBoxedList implements ArrayNumberBoxed { public final ArrayNumberList data; private ArrayNumberBoxedList(ArrayNumberList data) { this.data = data; @@ -242,11 +242,11 @@ public ArrayOfNumberOnlyMapBuilder getBuilderAfterAdditionalProperty(Map build() { } - public static abstract sealed class ArrayOfStringBoxed permits ArrayOfStringBoxedList { - public abstract @Nullable Object data(); + public sealed interface ArrayOfStringBoxed permits ArrayOfStringBoxedList { + @Nullable Object data(); } - public static final class ArrayOfStringBoxedList extends ArrayOfStringBoxed { + public static final class ArrayOfStringBoxedList implements ArrayOfStringBoxed { public final ArrayOfStringList data; private ArrayOfStringBoxedList(ArrayOfStringList data) { this.data = data; @@ -220,11 +220,11 @@ public List build() { } - public static abstract sealed class Items1Boxed permits Items1BoxedList { - public abstract @Nullable Object data(); + public sealed interface Items1Boxed permits Items1BoxedList { + @Nullable Object data(); } - public static final class Items1BoxedList extends Items1Boxed { + public static final class Items1BoxedList implements Items1Boxed { public final ItemsList data; private Items1BoxedList(ItemsList data) { this.data = data; @@ -339,11 +339,11 @@ public List> build() { } - public static abstract sealed class ArrayArrayOfIntegerBoxed permits ArrayArrayOfIntegerBoxedList { - public abstract @Nullable Object data(); + public sealed interface ArrayArrayOfIntegerBoxed permits ArrayArrayOfIntegerBoxedList { + @Nullable Object data(); } - public static final class ArrayArrayOfIntegerBoxedList extends ArrayArrayOfIntegerBoxed { + public static final class ArrayArrayOfIntegerBoxedList implements ArrayArrayOfIntegerBoxed { public final ArrayArrayOfIntegerList data; private ArrayArrayOfIntegerBoxedList(ArrayArrayOfIntegerList data) { this.data = data; @@ -458,11 +458,11 @@ public ItemsListBuilder1 add(Map item) { } - public static abstract sealed class Items3Boxed permits Items3BoxedList { - public abstract @Nullable Object data(); + public sealed interface Items3Boxed permits Items3BoxedList { + @Nullable Object data(); } - public static final class Items3BoxedList extends Items3Boxed { + public static final class Items3BoxedList implements Items3Boxed { public final ItemsList1 data; private Items3BoxedList(ItemsList1 data) { this.data = data; @@ -577,11 +577,11 @@ public ArrayArrayOfModelListBuilder add(List> item } - public static abstract sealed class ArrayArrayOfModelBoxed permits ArrayArrayOfModelBoxedList { - public abstract @Nullable Object data(); + public sealed interface ArrayArrayOfModelBoxed permits ArrayArrayOfModelBoxedList { + @Nullable Object data(); } - public static final class ArrayArrayOfModelBoxedList extends ArrayArrayOfModelBoxed { + public static final class ArrayArrayOfModelBoxedList implements ArrayArrayOfModelBoxed { public final ArrayArrayOfModelList data; private ArrayArrayOfModelBoxedList(ArrayArrayOfModelList data) { this.data = data; @@ -782,11 +782,11 @@ public ArrayTestMapBuilder getBuilderAfterAdditionalProperty(Map build() { } - public static abstract sealed class ArrayWithValidationsInItems1Boxed permits ArrayWithValidationsInItems1BoxedList { - public abstract @Nullable Object data(); + public sealed interface ArrayWithValidationsInItems1Boxed permits ArrayWithValidationsInItems1BoxedList { + @Nullable Object data(); } - public static final class ArrayWithValidationsInItems1BoxedList extends ArrayWithValidationsInItems1Boxed { + public static final class ArrayWithValidationsInItems1BoxedList implements ArrayWithValidationsInItems1Boxed { public final ArrayWithValidationsInItemsList data; private ArrayWithValidationsInItems1BoxedList(ArrayWithValidationsInItemsList data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Banana.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Banana.java index 280663d76a4..642a83769f0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Banana.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Banana.java @@ -132,11 +132,11 @@ public BananaMap0Builder getBuilderAfterLengthCm(Map i } - public static abstract sealed class Banana1Boxed permits Banana1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Banana1Boxed permits Banana1BoxedMap { + @Nullable Object data(); } - public static final class Banana1BoxedMap extends Banana1Boxed { + public static final class Banana1BoxedMap implements Banana1Boxed { public final BananaMap data; private Banana1BoxedMap(BananaMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BananaReq.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BananaReq.java index a520a7bce47..e5a83b96766 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BananaReq.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BananaReq.java @@ -175,11 +175,11 @@ public BananaReqMap0Builder getBuilderAfterLengthCm(Map instance } - public static abstract sealed class BananaReq1Boxed permits BananaReq1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface BananaReq1Boxed permits BananaReq1BoxedMap { + @Nullable Object data(); } - public static final class BananaReq1BoxedMap extends BananaReq1Boxed { + public static final class BananaReq1BoxedMap implements BananaReq1Boxed { public final BananaReqMap data; private BananaReq1BoxedMap(BananaReqMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Bar.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Bar.java index d4ca10c513d..b9f8e7509d4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Bar.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Bar.java @@ -20,11 +20,11 @@ public class Bar { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class Bar1Boxed permits Bar1BoxedString { - public abstract @Nullable Object data(); + public sealed interface Bar1Boxed permits Bar1BoxedString { + @Nullable Object data(); } - public static final class Bar1BoxedString extends Bar1Boxed { + public static final class Bar1BoxedString implements Bar1Boxed { public final String data; private Bar1BoxedString(String data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BasquePig.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BasquePig.java index e5b8689f397..6947677afcb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BasquePig.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BasquePig.java @@ -44,11 +44,11 @@ public String value() { } - public static abstract sealed class ClassNameBoxed permits ClassNameBoxedString { - public abstract @Nullable Object data(); + public sealed interface ClassNameBoxed permits ClassNameBoxedString { + @Nullable Object data(); } - public static final class ClassNameBoxedString extends ClassNameBoxed { + public static final class ClassNameBoxedString implements ClassNameBoxed { public final String data; private ClassNameBoxedString(String data) { this.data = data; @@ -198,11 +198,11 @@ public BasquePigMap0Builder getBuilderAfterClassName(Map arg, SchemaConfiguration configu } - public static abstract sealed class Cat1Boxed permits Cat1BoxedVoid, Cat1BoxedBoolean, Cat1BoxedNumber, Cat1BoxedString, Cat1BoxedList, Cat1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Cat1Boxed permits Cat1BoxedVoid, Cat1BoxedBoolean, Cat1BoxedNumber, Cat1BoxedString, Cat1BoxedList, Cat1BoxedMap { + @Nullable Object data(); } - public static final class Cat1BoxedVoid extends Cat1Boxed { + public static final class Cat1BoxedVoid implements Cat1Boxed { public final Void data; private Cat1BoxedVoid(Void data) { this.data = data; @@ -220,7 +220,7 @@ private Cat1BoxedVoid(Void data) { } } - public static final class Cat1BoxedBoolean extends Cat1Boxed { + public static final class Cat1BoxedBoolean implements Cat1Boxed { public final boolean data; private Cat1BoxedBoolean(boolean data) { this.data = data; @@ -231,7 +231,7 @@ private Cat1BoxedBoolean(boolean data) { } } - public static final class Cat1BoxedNumber extends Cat1Boxed { + public static final class Cat1BoxedNumber implements Cat1Boxed { public final Number data; private Cat1BoxedNumber(Number data) { this.data = data; @@ -242,7 +242,7 @@ private Cat1BoxedNumber(Number data) { } } - public static final class Cat1BoxedString extends Cat1Boxed { + public static final class Cat1BoxedString implements Cat1Boxed { public final String data; private Cat1BoxedString(String data) { this.data = data; @@ -253,7 +253,7 @@ private Cat1BoxedString(String data) { } } - public static final class Cat1BoxedList extends Cat1Boxed { + public static final class Cat1BoxedList implements Cat1Boxed { public final FrozenList<@Nullable Object> data; private Cat1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -264,7 +264,7 @@ private Cat1BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class Cat1BoxedMap extends Cat1Boxed { + public static final class Cat1BoxedMap implements Cat1Boxed { public final FrozenMap<@Nullable Object> data; private Cat1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Category.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Category.java index 945659e8c5f..5f0f7edcfb9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Category.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Category.java @@ -42,11 +42,11 @@ public static Id getInstance() { } - public static abstract sealed class NameBoxed permits NameBoxedString { - public abstract @Nullable Object data(); + public sealed interface NameBoxed permits NameBoxedString { + @Nullable Object data(); } - public static final class NameBoxedString extends NameBoxed { + public static final class NameBoxedString implements NameBoxed { public final String data; private NameBoxedString(String data) { this.data = data; @@ -234,11 +234,11 @@ public CategoryMap0Builder getBuilderAfterName(Map ins } - public static abstract sealed class Category1Boxed permits Category1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Category1Boxed permits Category1BoxedMap { + @Nullable Object data(); } - public static final class Category1BoxedMap extends Category1Boxed { + public static final class Category1BoxedMap implements Category1Boxed { public final CategoryMap data; private Category1BoxedMap(CategoryMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ChildCat.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ChildCat.java index 6f0c1be972b..efa914f6f17 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ChildCat.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ChildCat.java @@ -115,11 +115,11 @@ public Schema1MapBuilder getBuilderAfterAdditionalProperty(Map arg, SchemaConfiguration configu } - public static abstract sealed class ChildCat1Boxed permits ChildCat1BoxedVoid, ChildCat1BoxedBoolean, ChildCat1BoxedNumber, ChildCat1BoxedString, ChildCat1BoxedList, ChildCat1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface ChildCat1Boxed permits ChildCat1BoxedVoid, ChildCat1BoxedBoolean, ChildCat1BoxedNumber, ChildCat1BoxedString, ChildCat1BoxedList, ChildCat1BoxedMap { + @Nullable Object data(); } - public static final class ChildCat1BoxedVoid extends ChildCat1Boxed { + public static final class ChildCat1BoxedVoid implements ChildCat1Boxed { public final Void data; private ChildCat1BoxedVoid(Void data) { this.data = data; @@ -220,7 +220,7 @@ private ChildCat1BoxedVoid(Void data) { } } - public static final class ChildCat1BoxedBoolean extends ChildCat1Boxed { + public static final class ChildCat1BoxedBoolean implements ChildCat1Boxed { public final boolean data; private ChildCat1BoxedBoolean(boolean data) { this.data = data; @@ -231,7 +231,7 @@ private ChildCat1BoxedBoolean(boolean data) { } } - public static final class ChildCat1BoxedNumber extends ChildCat1Boxed { + public static final class ChildCat1BoxedNumber implements ChildCat1Boxed { public final Number data; private ChildCat1BoxedNumber(Number data) { this.data = data; @@ -242,7 +242,7 @@ private ChildCat1BoxedNumber(Number data) { } } - public static final class ChildCat1BoxedString extends ChildCat1Boxed { + public static final class ChildCat1BoxedString implements ChildCat1Boxed { public final String data; private ChildCat1BoxedString(String data) { this.data = data; @@ -253,7 +253,7 @@ private ChildCat1BoxedString(String data) { } } - public static final class ChildCat1BoxedList extends ChildCat1Boxed { + public static final class ChildCat1BoxedList implements ChildCat1Boxed { public final FrozenList<@Nullable Object> data; private ChildCat1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -264,7 +264,7 @@ private ChildCat1BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class ChildCat1BoxedMap extends ChildCat1Boxed { + public static final class ChildCat1BoxedMap implements ChildCat1Boxed { public final FrozenMap<@Nullable Object> data; private ChildCat1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ClassModel.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ClassModel.java index 9d5147fb103..e97ed4a73aa 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ClassModel.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ClassModel.java @@ -105,11 +105,11 @@ public ClassModelMapBuilder getBuilderAfterAdditionalProperty(Map data; private ClassModel1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -164,7 +164,7 @@ private ClassModel1BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class ClassModel1BoxedMap extends ClassModel1Boxed { + public static final class ClassModel1BoxedMap implements ClassModel1Boxed { public final ClassModelMap data; private ClassModel1BoxedMap(ClassModelMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Client.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Client.java index c9b948e6c50..b495738fc07 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Client.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Client.java @@ -106,11 +106,11 @@ public ClientMapBuilder1 getBuilderAfterAdditionalProperty(Map arg, SchemaConfiguration configu } - public static abstract sealed class ComplexQuadrilateral1Boxed permits ComplexQuadrilateral1BoxedVoid, ComplexQuadrilateral1BoxedBoolean, ComplexQuadrilateral1BoxedNumber, ComplexQuadrilateral1BoxedString, ComplexQuadrilateral1BoxedList, ComplexQuadrilateral1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface ComplexQuadrilateral1Boxed permits ComplexQuadrilateral1BoxedVoid, ComplexQuadrilateral1BoxedBoolean, ComplexQuadrilateral1BoxedNumber, ComplexQuadrilateral1BoxedString, ComplexQuadrilateral1BoxedList, ComplexQuadrilateral1BoxedMap { + @Nullable Object data(); } - public static final class ComplexQuadrilateral1BoxedVoid extends ComplexQuadrilateral1Boxed { + public static final class ComplexQuadrilateral1BoxedVoid implements ComplexQuadrilateral1Boxed { public final Void data; private ComplexQuadrilateral1BoxedVoid(Void data) { this.data = data; @@ -303,7 +303,7 @@ private ComplexQuadrilateral1BoxedVoid(Void data) { } } - public static final class ComplexQuadrilateral1BoxedBoolean extends ComplexQuadrilateral1Boxed { + public static final class ComplexQuadrilateral1BoxedBoolean implements ComplexQuadrilateral1Boxed { public final boolean data; private ComplexQuadrilateral1BoxedBoolean(boolean data) { this.data = data; @@ -314,7 +314,7 @@ private ComplexQuadrilateral1BoxedBoolean(boolean data) { } } - public static final class ComplexQuadrilateral1BoxedNumber extends ComplexQuadrilateral1Boxed { + public static final class ComplexQuadrilateral1BoxedNumber implements ComplexQuadrilateral1Boxed { public final Number data; private ComplexQuadrilateral1BoxedNumber(Number data) { this.data = data; @@ -325,7 +325,7 @@ private ComplexQuadrilateral1BoxedNumber(Number data) { } } - public static final class ComplexQuadrilateral1BoxedString extends ComplexQuadrilateral1Boxed { + public static final class ComplexQuadrilateral1BoxedString implements ComplexQuadrilateral1Boxed { public final String data; private ComplexQuadrilateral1BoxedString(String data) { this.data = data; @@ -336,7 +336,7 @@ private ComplexQuadrilateral1BoxedString(String data) { } } - public static final class ComplexQuadrilateral1BoxedList extends ComplexQuadrilateral1Boxed { + public static final class ComplexQuadrilateral1BoxedList implements ComplexQuadrilateral1Boxed { public final FrozenList<@Nullable Object> data; private ComplexQuadrilateral1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -347,7 +347,7 @@ private ComplexQuadrilateral1BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class ComplexQuadrilateral1BoxedMap extends ComplexQuadrilateral1Boxed { + public static final class ComplexQuadrilateral1BoxedMap implements ComplexQuadrilateral1Boxed { public final FrozenMap<@Nullable Object> data; private ComplexQuadrilateral1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidations.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidations.java index 2cc4c08b50a..deb03f85a24 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidations.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidations.java @@ -231,11 +231,11 @@ public Schema9ListBuilder add(Map item) { } - public static abstract sealed class Schema9Boxed permits Schema9BoxedList { - public abstract @Nullable Object data(); + public sealed interface Schema9Boxed permits Schema9BoxedList { + @Nullable Object data(); } - public static final class Schema9BoxedList extends Schema9Boxed { + public static final class Schema9BoxedList implements Schema9Boxed { public final Schema9List data; private Schema9BoxedList(Schema9List data) { this.data = data; @@ -381,11 +381,11 @@ public static Schema15 getInstance() { } - public static abstract sealed class ComposedAnyOfDifferentTypesNoValidations1Boxed permits ComposedAnyOfDifferentTypesNoValidations1BoxedVoid, ComposedAnyOfDifferentTypesNoValidations1BoxedBoolean, ComposedAnyOfDifferentTypesNoValidations1BoxedNumber, ComposedAnyOfDifferentTypesNoValidations1BoxedString, ComposedAnyOfDifferentTypesNoValidations1BoxedList, ComposedAnyOfDifferentTypesNoValidations1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface ComposedAnyOfDifferentTypesNoValidations1Boxed permits ComposedAnyOfDifferentTypesNoValidations1BoxedVoid, ComposedAnyOfDifferentTypesNoValidations1BoxedBoolean, ComposedAnyOfDifferentTypesNoValidations1BoxedNumber, ComposedAnyOfDifferentTypesNoValidations1BoxedString, ComposedAnyOfDifferentTypesNoValidations1BoxedList, ComposedAnyOfDifferentTypesNoValidations1BoxedMap { + @Nullable Object data(); } - public static final class ComposedAnyOfDifferentTypesNoValidations1BoxedVoid extends ComposedAnyOfDifferentTypesNoValidations1Boxed { + public static final class ComposedAnyOfDifferentTypesNoValidations1BoxedVoid implements ComposedAnyOfDifferentTypesNoValidations1Boxed { public final Void data; private ComposedAnyOfDifferentTypesNoValidations1BoxedVoid(Void data) { this.data = data; @@ -396,7 +396,7 @@ private ComposedAnyOfDifferentTypesNoValidations1BoxedVoid(Void data) { } } - public static final class ComposedAnyOfDifferentTypesNoValidations1BoxedBoolean extends ComposedAnyOfDifferentTypesNoValidations1Boxed { + public static final class ComposedAnyOfDifferentTypesNoValidations1BoxedBoolean implements ComposedAnyOfDifferentTypesNoValidations1Boxed { public final boolean data; private ComposedAnyOfDifferentTypesNoValidations1BoxedBoolean(boolean data) { this.data = data; @@ -407,7 +407,7 @@ private ComposedAnyOfDifferentTypesNoValidations1BoxedBoolean(boolean data) { } } - public static final class ComposedAnyOfDifferentTypesNoValidations1BoxedNumber extends ComposedAnyOfDifferentTypesNoValidations1Boxed { + public static final class ComposedAnyOfDifferentTypesNoValidations1BoxedNumber implements ComposedAnyOfDifferentTypesNoValidations1Boxed { public final Number data; private ComposedAnyOfDifferentTypesNoValidations1BoxedNumber(Number data) { this.data = data; @@ -418,7 +418,7 @@ private ComposedAnyOfDifferentTypesNoValidations1BoxedNumber(Number data) { } } - public static final class ComposedAnyOfDifferentTypesNoValidations1BoxedString extends ComposedAnyOfDifferentTypesNoValidations1Boxed { + public static final class ComposedAnyOfDifferentTypesNoValidations1BoxedString implements ComposedAnyOfDifferentTypesNoValidations1Boxed { public final String data; private ComposedAnyOfDifferentTypesNoValidations1BoxedString(String data) { this.data = data; @@ -429,7 +429,7 @@ private ComposedAnyOfDifferentTypesNoValidations1BoxedString(String data) { } } - public static final class ComposedAnyOfDifferentTypesNoValidations1BoxedList extends ComposedAnyOfDifferentTypesNoValidations1Boxed { + public static final class ComposedAnyOfDifferentTypesNoValidations1BoxedList implements ComposedAnyOfDifferentTypesNoValidations1Boxed { public final FrozenList<@Nullable Object> data; private ComposedAnyOfDifferentTypesNoValidations1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -440,7 +440,7 @@ private ComposedAnyOfDifferentTypesNoValidations1BoxedList(FrozenList<@Nullable } } - public static final class ComposedAnyOfDifferentTypesNoValidations1BoxedMap extends ComposedAnyOfDifferentTypesNoValidations1Boxed { + public static final class ComposedAnyOfDifferentTypesNoValidations1BoxedMap implements ComposedAnyOfDifferentTypesNoValidations1Boxed { public final FrozenMap<@Nullable Object> data; private ComposedAnyOfDifferentTypesNoValidations1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedArray.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedArray.java index 44aab844c66..471fb0cc3b9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedArray.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedArray.java @@ -107,11 +107,11 @@ public ComposedArrayListBuilder add(Map item) { } - public static abstract sealed class ComposedArray1Boxed permits ComposedArray1BoxedList { - public abstract @Nullable Object data(); + public sealed interface ComposedArray1Boxed permits ComposedArray1BoxedList { + @Nullable Object data(); } - public static final class ComposedArray1BoxedList extends ComposedArray1Boxed { + public static final class ComposedArray1BoxedList implements ComposedArray1Boxed { public final ComposedArrayList data; private ComposedArray1BoxedList(ComposedArrayList data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedBool.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedBool.java index c6df97b1ceb..852c6bae9b2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedBool.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedBool.java @@ -31,11 +31,11 @@ public static Schema0 getInstance() { } - public static abstract sealed class ComposedBool1Boxed permits ComposedBool1BoxedBoolean { - public abstract @Nullable Object data(); + public sealed interface ComposedBool1Boxed permits ComposedBool1BoxedBoolean { + @Nullable Object data(); } - public static final class ComposedBool1BoxedBoolean extends ComposedBool1Boxed { + public static final class ComposedBool1BoxedBoolean implements ComposedBool1Boxed { public final boolean data; private ComposedBool1BoxedBoolean(boolean data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNone.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNone.java index e4bb45b6768..6785081a8de 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNone.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNone.java @@ -31,11 +31,11 @@ public static Schema0 getInstance() { } - public static abstract sealed class ComposedNone1Boxed permits ComposedNone1BoxedVoid { - public abstract @Nullable Object data(); + public sealed interface ComposedNone1Boxed permits ComposedNone1BoxedVoid { + @Nullable Object data(); } - public static final class ComposedNone1BoxedVoid extends ComposedNone1Boxed { + public static final class ComposedNone1BoxedVoid implements ComposedNone1Boxed { public final Void data; private ComposedNone1BoxedVoid(Void data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNumber.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNumber.java index d3a7d9c807f..5de157647b4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNumber.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNumber.java @@ -31,11 +31,11 @@ public static Schema0 getInstance() { } - public static abstract sealed class ComposedNumber1Boxed permits ComposedNumber1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface ComposedNumber1Boxed permits ComposedNumber1BoxedNumber { + @Nullable Object data(); } - public static final class ComposedNumber1BoxedNumber extends ComposedNumber1Boxed { + public static final class ComposedNumber1BoxedNumber implements ComposedNumber1Boxed { public final Number data; private ComposedNumber1BoxedNumber(Number data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedObject.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedObject.java index e9f2e9ab7da..51d0666c91f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedObject.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedObject.java @@ -38,11 +38,11 @@ public static Schema0 getInstance() { } - public static abstract sealed class ComposedObject1Boxed permits ComposedObject1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface ComposedObject1Boxed permits ComposedObject1BoxedMap { + @Nullable Object data(); } - public static final class ComposedObject1BoxedMap extends ComposedObject1Boxed { + public static final class ComposedObject1BoxedMap implements ComposedObject1Boxed { public final FrozenMap<@Nullable Object> data; private ComposedObject1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypes.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypes.java index 6a5e4a09c00..90205c66eee 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypes.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypes.java @@ -61,11 +61,11 @@ public static Schema3 getInstance() { } - public static abstract sealed class Schema4Boxed permits Schema4BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema4Boxed permits Schema4BoxedMap { + @Nullable Object data(); } - public static final class Schema4BoxedMap extends Schema4Boxed { + public static final class Schema4BoxedMap implements Schema4Boxed { public final FrozenMap<@Nullable Object> data; private Schema4BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; @@ -233,11 +233,11 @@ public Schema5ListBuilder add(Map item) { } - public static abstract sealed class Schema5Boxed permits Schema5BoxedList { - public abstract @Nullable Object data(); + public sealed interface Schema5Boxed permits Schema5BoxedList { + @Nullable Object data(); } - public static final class Schema5BoxedList extends Schema5Boxed { + public static final class Schema5BoxedList implements Schema5Boxed { public final Schema5List data; private Schema5BoxedList(Schema5List data) { this.data = data; @@ -319,11 +319,11 @@ public Schema5BoxedList validateAndBox(List arg, SchemaConfiguration configur } } - public static abstract sealed class Schema6Boxed permits Schema6BoxedString { - public abstract @Nullable Object data(); + public sealed interface Schema6Boxed permits Schema6BoxedString { + @Nullable Object data(); } - public static final class Schema6BoxedString extends Schema6Boxed { + public static final class Schema6BoxedString implements Schema6Boxed { public final String data; private Schema6BoxedString(String data) { this.data = data; @@ -389,11 +389,11 @@ public Schema6BoxedString validateAndBox(String arg, SchemaConfiguration configu } } - public static abstract sealed class ComposedOneOfDifferentTypes1Boxed permits ComposedOneOfDifferentTypes1BoxedVoid, ComposedOneOfDifferentTypes1BoxedBoolean, ComposedOneOfDifferentTypes1BoxedNumber, ComposedOneOfDifferentTypes1BoxedString, ComposedOneOfDifferentTypes1BoxedList, ComposedOneOfDifferentTypes1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface ComposedOneOfDifferentTypes1Boxed permits ComposedOneOfDifferentTypes1BoxedVoid, ComposedOneOfDifferentTypes1BoxedBoolean, ComposedOneOfDifferentTypes1BoxedNumber, ComposedOneOfDifferentTypes1BoxedString, ComposedOneOfDifferentTypes1BoxedList, ComposedOneOfDifferentTypes1BoxedMap { + @Nullable Object data(); } - public static final class ComposedOneOfDifferentTypes1BoxedVoid extends ComposedOneOfDifferentTypes1Boxed { + public static final class ComposedOneOfDifferentTypes1BoxedVoid implements ComposedOneOfDifferentTypes1Boxed { public final Void data; private ComposedOneOfDifferentTypes1BoxedVoid(Void data) { this.data = data; @@ -404,7 +404,7 @@ private ComposedOneOfDifferentTypes1BoxedVoid(Void data) { } } - public static final class ComposedOneOfDifferentTypes1BoxedBoolean extends ComposedOneOfDifferentTypes1Boxed { + public static final class ComposedOneOfDifferentTypes1BoxedBoolean implements ComposedOneOfDifferentTypes1Boxed { public final boolean data; private ComposedOneOfDifferentTypes1BoxedBoolean(boolean data) { this.data = data; @@ -415,7 +415,7 @@ private ComposedOneOfDifferentTypes1BoxedBoolean(boolean data) { } } - public static final class ComposedOneOfDifferentTypes1BoxedNumber extends ComposedOneOfDifferentTypes1Boxed { + public static final class ComposedOneOfDifferentTypes1BoxedNumber implements ComposedOneOfDifferentTypes1Boxed { public final Number data; private ComposedOneOfDifferentTypes1BoxedNumber(Number data) { this.data = data; @@ -426,7 +426,7 @@ private ComposedOneOfDifferentTypes1BoxedNumber(Number data) { } } - public static final class ComposedOneOfDifferentTypes1BoxedString extends ComposedOneOfDifferentTypes1Boxed { + public static final class ComposedOneOfDifferentTypes1BoxedString implements ComposedOneOfDifferentTypes1Boxed { public final String data; private ComposedOneOfDifferentTypes1BoxedString(String data) { this.data = data; @@ -437,7 +437,7 @@ private ComposedOneOfDifferentTypes1BoxedString(String data) { } } - public static final class ComposedOneOfDifferentTypes1BoxedList extends ComposedOneOfDifferentTypes1Boxed { + public static final class ComposedOneOfDifferentTypes1BoxedList implements ComposedOneOfDifferentTypes1Boxed { public final FrozenList<@Nullable Object> data; private ComposedOneOfDifferentTypes1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -448,7 +448,7 @@ private ComposedOneOfDifferentTypes1BoxedList(FrozenList<@Nullable Object> data) } } - public static final class ComposedOneOfDifferentTypes1BoxedMap extends ComposedOneOfDifferentTypes1Boxed { + public static final class ComposedOneOfDifferentTypes1BoxedMap implements ComposedOneOfDifferentTypes1Boxed { public final FrozenMap<@Nullable Object> data; private ComposedOneOfDifferentTypes1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedString.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedString.java index 907ba037006..6461a1e03fa 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedString.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedString.java @@ -31,11 +31,11 @@ public static Schema0 getInstance() { } - public static abstract sealed class ComposedString1Boxed permits ComposedString1BoxedString { - public abstract @Nullable Object data(); + public sealed interface ComposedString1Boxed permits ComposedString1BoxedString { + @Nullable Object data(); } - public static final class ComposedString1BoxedString extends ComposedString1Boxed { + public static final class ComposedString1BoxedString implements ComposedString1Boxed { public final String data; private ComposedString1BoxedString(String data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Currency.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Currency.java index d779307a390..8a02acdeaca 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Currency.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Currency.java @@ -35,11 +35,11 @@ public String value() { } - public static abstract sealed class Currency1Boxed permits Currency1BoxedString { - public abstract @Nullable Object data(); + public sealed interface Currency1Boxed permits Currency1BoxedString { + @Nullable Object data(); } - public static final class Currency1BoxedString extends Currency1Boxed { + public static final class Currency1BoxedString implements Currency1Boxed { public final String data; private Currency1BoxedString(String data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DanishPig.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DanishPig.java index df6bf49c1cd..67984f7d549 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DanishPig.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DanishPig.java @@ -44,11 +44,11 @@ public String value() { } - public static abstract sealed class ClassNameBoxed permits ClassNameBoxedString { - public abstract @Nullable Object data(); + public sealed interface ClassNameBoxed permits ClassNameBoxedString { + @Nullable Object data(); } - public static final class ClassNameBoxedString extends ClassNameBoxed { + public static final class ClassNameBoxedString implements ClassNameBoxed { public final String data; private ClassNameBoxedString(String data) { this.data = data; @@ -198,11 +198,11 @@ public DanishPigMap0Builder getBuilderAfterClassName(Map arg, SchemaConfiguration configu } - public static abstract sealed class Dog1Boxed permits Dog1BoxedVoid, Dog1BoxedBoolean, Dog1BoxedNumber, Dog1BoxedString, Dog1BoxedList, Dog1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Dog1Boxed permits Dog1BoxedVoid, Dog1BoxedBoolean, Dog1BoxedNumber, Dog1BoxedString, Dog1BoxedList, Dog1BoxedMap { + @Nullable Object data(); } - public static final class Dog1BoxedVoid extends Dog1Boxed { + public static final class Dog1BoxedVoid implements Dog1Boxed { public final Void data; private Dog1BoxedVoid(Void data) { this.data = data; @@ -220,7 +220,7 @@ private Dog1BoxedVoid(Void data) { } } - public static final class Dog1BoxedBoolean extends Dog1Boxed { + public static final class Dog1BoxedBoolean implements Dog1Boxed { public final boolean data; private Dog1BoxedBoolean(boolean data) { this.data = data; @@ -231,7 +231,7 @@ private Dog1BoxedBoolean(boolean data) { } } - public static final class Dog1BoxedNumber extends Dog1Boxed { + public static final class Dog1BoxedNumber implements Dog1Boxed { public final Number data; private Dog1BoxedNumber(Number data) { this.data = data; @@ -242,7 +242,7 @@ private Dog1BoxedNumber(Number data) { } } - public static final class Dog1BoxedString extends Dog1Boxed { + public static final class Dog1BoxedString implements Dog1Boxed { public final String data; private Dog1BoxedString(String data) { this.data = data; @@ -253,7 +253,7 @@ private Dog1BoxedString(String data) { } } - public static final class Dog1BoxedList extends Dog1Boxed { + public static final class Dog1BoxedList implements Dog1Boxed { public final FrozenList<@Nullable Object> data; private Dog1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -264,7 +264,7 @@ private Dog1BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class Dog1BoxedMap extends Dog1Boxed { + public static final class Dog1BoxedMap implements Dog1Boxed { public final FrozenMap<@Nullable Object> data; private Dog1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Drawing.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Drawing.java index 42d7cd95c8f..58884848d5e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Drawing.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Drawing.java @@ -102,11 +102,11 @@ public ShapesListBuilder add(Map item) { } - public static abstract sealed class ShapesBoxed permits ShapesBoxedList { - public abstract @Nullable Object data(); + public sealed interface ShapesBoxed permits ShapesBoxedList { + @Nullable Object data(); } - public static final class ShapesBoxedList extends ShapesBoxed { + public static final class ShapesBoxedList implements ShapesBoxed { public final ShapesList data; private ShapesBoxedList(ShapesList data) { this.data = data; @@ -549,11 +549,11 @@ public DrawingMapBuilder getBuilderAfterAdditionalProperty(Map build() { } - public static abstract sealed class ArrayEnumBoxed permits ArrayEnumBoxedList { - public abstract @Nullable Object data(); + public sealed interface ArrayEnumBoxed permits ArrayEnumBoxedList { + @Nullable Object data(); } - public static final class ArrayEnumBoxedList extends ArrayEnumBoxed { + public static final class ArrayEnumBoxedList implements ArrayEnumBoxed { public final ArrayEnumList data; private ArrayEnumBoxedList(ArrayEnumList data) { this.data = data; @@ -432,11 +432,11 @@ public EnumArraysMapBuilder getBuilderAfterAdditionalProperty(Map arg, SchemaConfiguration configu } - public static abstract sealed class EquilateralTriangle1Boxed permits EquilateralTriangle1BoxedVoid, EquilateralTriangle1BoxedBoolean, EquilateralTriangle1BoxedNumber, EquilateralTriangle1BoxedString, EquilateralTriangle1BoxedList, EquilateralTriangle1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface EquilateralTriangle1Boxed permits EquilateralTriangle1BoxedVoid, EquilateralTriangle1BoxedBoolean, EquilateralTriangle1BoxedNumber, EquilateralTriangle1BoxedString, EquilateralTriangle1BoxedList, EquilateralTriangle1BoxedMap { + @Nullable Object data(); } - public static final class EquilateralTriangle1BoxedVoid extends EquilateralTriangle1Boxed { + public static final class EquilateralTriangle1BoxedVoid implements EquilateralTriangle1Boxed { public final Void data; private EquilateralTriangle1BoxedVoid(Void data) { this.data = data; @@ -303,7 +303,7 @@ private EquilateralTriangle1BoxedVoid(Void data) { } } - public static final class EquilateralTriangle1BoxedBoolean extends EquilateralTriangle1Boxed { + public static final class EquilateralTriangle1BoxedBoolean implements EquilateralTriangle1Boxed { public final boolean data; private EquilateralTriangle1BoxedBoolean(boolean data) { this.data = data; @@ -314,7 +314,7 @@ private EquilateralTriangle1BoxedBoolean(boolean data) { } } - public static final class EquilateralTriangle1BoxedNumber extends EquilateralTriangle1Boxed { + public static final class EquilateralTriangle1BoxedNumber implements EquilateralTriangle1Boxed { public final Number data; private EquilateralTriangle1BoxedNumber(Number data) { this.data = data; @@ -325,7 +325,7 @@ private EquilateralTriangle1BoxedNumber(Number data) { } } - public static final class EquilateralTriangle1BoxedString extends EquilateralTriangle1Boxed { + public static final class EquilateralTriangle1BoxedString implements EquilateralTriangle1Boxed { public final String data; private EquilateralTriangle1BoxedString(String data) { this.data = data; @@ -336,7 +336,7 @@ private EquilateralTriangle1BoxedString(String data) { } } - public static final class EquilateralTriangle1BoxedList extends EquilateralTriangle1Boxed { + public static final class EquilateralTriangle1BoxedList implements EquilateralTriangle1Boxed { public final FrozenList<@Nullable Object> data; private EquilateralTriangle1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -347,7 +347,7 @@ private EquilateralTriangle1BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class EquilateralTriangle1BoxedMap extends EquilateralTriangle1Boxed { + public static final class EquilateralTriangle1BoxedMap implements EquilateralTriangle1Boxed { public final FrozenMap<@Nullable Object> data; private EquilateralTriangle1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/File.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/File.java index 3a3c733a70c..028df55d090 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/File.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/File.java @@ -106,11 +106,11 @@ public FileMapBuilder getBuilderAfterAdditionalProperty(Map item) { } - public static abstract sealed class FilesBoxed permits FilesBoxedList { - public abstract @Nullable Object data(); + public sealed interface FilesBoxed permits FilesBoxedList { + @Nullable Object data(); } - public static final class FilesBoxedList extends FilesBoxed { + public static final class FilesBoxedList implements FilesBoxed { public final FilesList data; private FilesBoxedList(FilesList data) { this.data = data; @@ -241,11 +241,11 @@ public FileSchemaTestClassMapBuilder getBuilderAfterAdditionalProperty(Map build() { } - public static abstract sealed class ArrayWithUniqueItemsBoxed permits ArrayWithUniqueItemsBoxedList { - public abstract @Nullable Object data(); + public sealed interface ArrayWithUniqueItemsBoxed permits ArrayWithUniqueItemsBoxedList { + @Nullable Object data(); } - public static final class ArrayWithUniqueItemsBoxedList extends ArrayWithUniqueItemsBoxed { + public static final class ArrayWithUniqueItemsBoxedList implements ArrayWithUniqueItemsBoxed { public final ArrayWithUniqueItemsList data; private ArrayWithUniqueItemsBoxedList(ArrayWithUniqueItemsList data) { this.data = data; @@ -641,11 +641,11 @@ public ArrayWithUniqueItemsBoxedList validateAndBox(List arg, SchemaConfigura } } - public static abstract sealed class StringSchemaBoxed permits StringSchemaBoxedString { - public abstract @Nullable Object data(); + public sealed interface StringSchemaBoxed permits StringSchemaBoxedString { + @Nullable Object data(); } - public static final class StringSchemaBoxedString extends StringSchemaBoxed { + public static final class StringSchemaBoxedString implements StringSchemaBoxed { public final String data; private StringSchemaBoxedString(String data) { this.data = data; @@ -778,11 +778,11 @@ public static UuidNoExample getInstance() { } - public static abstract sealed class PasswordBoxed permits PasswordBoxedString { - public abstract @Nullable Object data(); + public sealed interface PasswordBoxed permits PasswordBoxedString { + @Nullable Object data(); } - public static final class PasswordBoxedString extends PasswordBoxed { + public static final class PasswordBoxedString implements PasswordBoxed { public final String data; private PasswordBoxedString(String data) { this.data = data; @@ -847,11 +847,11 @@ public PasswordBoxedString validateAndBox(String arg, SchemaConfiguration config } } - public static abstract sealed class PatternWithDigitsBoxed permits PatternWithDigitsBoxedString { - public abstract @Nullable Object data(); + public sealed interface PatternWithDigitsBoxed permits PatternWithDigitsBoxedString { + @Nullable Object data(); } - public static final class PatternWithDigitsBoxedString extends PatternWithDigitsBoxed { + public static final class PatternWithDigitsBoxedString implements PatternWithDigitsBoxed { public final String data; private PatternWithDigitsBoxedString(String data) { this.data = data; @@ -916,11 +916,11 @@ public PatternWithDigitsBoxedString validateAndBox(String arg, SchemaConfigurati } } - public static abstract sealed class PatternWithDigitsAndDelimiterBoxed permits PatternWithDigitsAndDelimiterBoxedString { - public abstract @Nullable Object data(); + public sealed interface PatternWithDigitsAndDelimiterBoxed permits PatternWithDigitsAndDelimiterBoxedString { + @Nullable Object data(); } - public static final class PatternWithDigitsAndDelimiterBoxedString extends PatternWithDigitsAndDelimiterBoxed { + public static final class PatternWithDigitsAndDelimiterBoxedString implements PatternWithDigitsAndDelimiterBoxed { public final String data; private PatternWithDigitsAndDelimiterBoxedString(String data) { this.data = data; @@ -1882,11 +1882,11 @@ public FormatTestMap1110Builder getBuilderAfterPassword(Map data; private Fruit1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -174,7 +174,7 @@ private Fruit1BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class Fruit1BoxedMap extends Fruit1Boxed { + public static final class Fruit1BoxedMap implements Fruit1Boxed { public final FruitMap data; private Fruit1BoxedMap(FruitMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FruitReq.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FruitReq.java index 0893dd2b246..185c416d872 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FruitReq.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FruitReq.java @@ -47,11 +47,11 @@ public static Schema0 getInstance() { } - public static abstract sealed class FruitReq1Boxed permits FruitReq1BoxedVoid, FruitReq1BoxedBoolean, FruitReq1BoxedNumber, FruitReq1BoxedString, FruitReq1BoxedList, FruitReq1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface FruitReq1Boxed permits FruitReq1BoxedVoid, FruitReq1BoxedBoolean, FruitReq1BoxedNumber, FruitReq1BoxedString, FruitReq1BoxedList, FruitReq1BoxedMap { + @Nullable Object data(); } - public static final class FruitReq1BoxedVoid extends FruitReq1Boxed { + public static final class FruitReq1BoxedVoid implements FruitReq1Boxed { public final Void data; private FruitReq1BoxedVoid(Void data) { this.data = data; @@ -62,7 +62,7 @@ private FruitReq1BoxedVoid(Void data) { } } - public static final class FruitReq1BoxedBoolean extends FruitReq1Boxed { + public static final class FruitReq1BoxedBoolean implements FruitReq1Boxed { public final boolean data; private FruitReq1BoxedBoolean(boolean data) { this.data = data; @@ -73,7 +73,7 @@ private FruitReq1BoxedBoolean(boolean data) { } } - public static final class FruitReq1BoxedNumber extends FruitReq1Boxed { + public static final class FruitReq1BoxedNumber implements FruitReq1Boxed { public final Number data; private FruitReq1BoxedNumber(Number data) { this.data = data; @@ -84,7 +84,7 @@ private FruitReq1BoxedNumber(Number data) { } } - public static final class FruitReq1BoxedString extends FruitReq1Boxed { + public static final class FruitReq1BoxedString implements FruitReq1Boxed { public final String data; private FruitReq1BoxedString(String data) { this.data = data; @@ -95,7 +95,7 @@ private FruitReq1BoxedString(String data) { } } - public static final class FruitReq1BoxedList extends FruitReq1Boxed { + public static final class FruitReq1BoxedList implements FruitReq1Boxed { public final FrozenList<@Nullable Object> data; private FruitReq1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -106,7 +106,7 @@ private FruitReq1BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class FruitReq1BoxedMap extends FruitReq1Boxed { + public static final class FruitReq1BoxedMap implements FruitReq1Boxed { public final FrozenMap<@Nullable Object> data; private FruitReq1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GmFruit.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GmFruit.java index 3ea54cff594..f8e29426b33 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GmFruit.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GmFruit.java @@ -115,11 +115,11 @@ public GmFruitMapBuilder getBuilderAfterAdditionalProperty(Map data; private GmFruit1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -174,7 +174,7 @@ private GmFruit1BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class GmFruit1BoxedMap extends GmFruit1Boxed { + public static final class GmFruit1BoxedMap implements GmFruit1Boxed { public final GmFruitMap data; private GmFruit1BoxedMap(GmFruitMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GrandparentAnimal.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GrandparentAnimal.java index c66c837aa4f..c017637169f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GrandparentAnimal.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GrandparentAnimal.java @@ -114,11 +114,11 @@ public GrandparentAnimalMap0Builder getBuilderAfterPetType(Map arg, SchemaConfiguration configu } - public static abstract sealed class IsoscelesTriangle1Boxed permits IsoscelesTriangle1BoxedVoid, IsoscelesTriangle1BoxedBoolean, IsoscelesTriangle1BoxedNumber, IsoscelesTriangle1BoxedString, IsoscelesTriangle1BoxedList, IsoscelesTriangle1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface IsoscelesTriangle1Boxed permits IsoscelesTriangle1BoxedVoid, IsoscelesTriangle1BoxedBoolean, IsoscelesTriangle1BoxedNumber, IsoscelesTriangle1BoxedString, IsoscelesTriangle1BoxedList, IsoscelesTriangle1BoxedMap { + @Nullable Object data(); } - public static final class IsoscelesTriangle1BoxedVoid extends IsoscelesTriangle1Boxed { + public static final class IsoscelesTriangle1BoxedVoid implements IsoscelesTriangle1Boxed { public final Void data; private IsoscelesTriangle1BoxedVoid(Void data) { this.data = data; @@ -303,7 +303,7 @@ private IsoscelesTriangle1BoxedVoid(Void data) { } } - public static final class IsoscelesTriangle1BoxedBoolean extends IsoscelesTriangle1Boxed { + public static final class IsoscelesTriangle1BoxedBoolean implements IsoscelesTriangle1Boxed { public final boolean data; private IsoscelesTriangle1BoxedBoolean(boolean data) { this.data = data; @@ -314,7 +314,7 @@ private IsoscelesTriangle1BoxedBoolean(boolean data) { } } - public static final class IsoscelesTriangle1BoxedNumber extends IsoscelesTriangle1Boxed { + public static final class IsoscelesTriangle1BoxedNumber implements IsoscelesTriangle1Boxed { public final Number data; private IsoscelesTriangle1BoxedNumber(Number data) { this.data = data; @@ -325,7 +325,7 @@ private IsoscelesTriangle1BoxedNumber(Number data) { } } - public static final class IsoscelesTriangle1BoxedString extends IsoscelesTriangle1Boxed { + public static final class IsoscelesTriangle1BoxedString implements IsoscelesTriangle1Boxed { public final String data; private IsoscelesTriangle1BoxedString(String data) { this.data = data; @@ -336,7 +336,7 @@ private IsoscelesTriangle1BoxedString(String data) { } } - public static final class IsoscelesTriangle1BoxedList extends IsoscelesTriangle1Boxed { + public static final class IsoscelesTriangle1BoxedList implements IsoscelesTriangle1Boxed { public final FrozenList<@Nullable Object> data; private IsoscelesTriangle1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -347,7 +347,7 @@ private IsoscelesTriangle1BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class IsoscelesTriangle1BoxedMap extends IsoscelesTriangle1Boxed { + public static final class IsoscelesTriangle1BoxedMap implements IsoscelesTriangle1Boxed { public final FrozenMap<@Nullable Object> data; private IsoscelesTriangle1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Items.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Items.java index 524bdbba8cd..793b0d6fd94 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Items.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Items.java @@ -68,11 +68,11 @@ public ItemsListBuilder add(Map item) { } - public static abstract sealed class Items1Boxed permits Items1BoxedList { - public abstract @Nullable Object data(); + public sealed interface Items1Boxed permits Items1BoxedList { + @Nullable Object data(); } - public static final class Items1BoxedList extends Items1Boxed { + public static final class Items1BoxedList implements Items1Boxed { public final ItemsList data; private Items1BoxedList(ItemsList data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequest.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequest.java index 23f30649b8a..be1974be7c3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequest.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequest.java @@ -35,11 +35,11 @@ public class JSONPatchRequest { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class ItemsBoxed permits ItemsBoxedVoid, ItemsBoxedBoolean, ItemsBoxedNumber, ItemsBoxedString, ItemsBoxedList, ItemsBoxedMap { - public abstract @Nullable Object data(); + public sealed interface ItemsBoxed permits ItemsBoxedVoid, ItemsBoxedBoolean, ItemsBoxedNumber, ItemsBoxedString, ItemsBoxedList, ItemsBoxedMap { + @Nullable Object data(); } - public static final class ItemsBoxedVoid extends ItemsBoxed { + public static final class ItemsBoxedVoid implements ItemsBoxed { public final Void data; private ItemsBoxedVoid(Void data) { this.data = data; @@ -50,7 +50,7 @@ private ItemsBoxedVoid(Void data) { } } - public static final class ItemsBoxedBoolean extends ItemsBoxed { + public static final class ItemsBoxedBoolean implements ItemsBoxed { public final boolean data; private ItemsBoxedBoolean(boolean data) { this.data = data; @@ -61,7 +61,7 @@ private ItemsBoxedBoolean(boolean data) { } } - public static final class ItemsBoxedNumber extends ItemsBoxed { + public static final class ItemsBoxedNumber implements ItemsBoxed { public final Number data; private ItemsBoxedNumber(Number data) { this.data = data; @@ -72,7 +72,7 @@ private ItemsBoxedNumber(Number data) { } } - public static final class ItemsBoxedString extends ItemsBoxed { + public static final class ItemsBoxedString implements ItemsBoxed { public final String data; private ItemsBoxedString(String data) { this.data = data; @@ -83,7 +83,7 @@ private ItemsBoxedString(String data) { } } - public static final class ItemsBoxedList extends ItemsBoxed { + public static final class ItemsBoxedList implements ItemsBoxed { public final FrozenList<@Nullable Object> data; private ItemsBoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -94,7 +94,7 @@ private ItemsBoxedList(FrozenList<@Nullable Object> data) { } } - public static final class ItemsBoxedMap extends ItemsBoxed { + public static final class ItemsBoxedMap implements ItemsBoxed { public final FrozenMap<@Nullable Object> data; private ItemsBoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; @@ -401,11 +401,11 @@ public JSONPatchRequestListBuilder add(Map item) { } - public static abstract sealed class JSONPatchRequest1Boxed permits JSONPatchRequest1BoxedList { - public abstract @Nullable Object data(); + public sealed interface JSONPatchRequest1Boxed permits JSONPatchRequest1BoxedList { + @Nullable Object data(); } - public static final class JSONPatchRequest1BoxedList extends JSONPatchRequest1Boxed { + public static final class JSONPatchRequest1BoxedList implements JSONPatchRequest1Boxed { public final JSONPatchRequestList data; private JSONPatchRequest1BoxedList(JSONPatchRequestList data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestAddReplaceTest.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestAddReplaceTest.java index 76983d02e22..e1b495fdfec 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestAddReplaceTest.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestAddReplaceTest.java @@ -82,11 +82,11 @@ public String value() { } - public static abstract sealed class OpBoxed permits OpBoxedString { - public abstract @Nullable Object data(); + public sealed interface OpBoxed permits OpBoxedString { + @Nullable Object data(); } - public static final class OpBoxedString extends OpBoxed { + public static final class OpBoxedString implements OpBoxed { public final String data; private OpBoxedString(String data) { this.data = data; @@ -405,11 +405,11 @@ public JSONPatchRequestAddReplaceTestMap110Builder getBuilderAfterValue(Map data; private Mammal1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -94,7 +94,7 @@ private Mammal1BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class Mammal1BoxedMap extends Mammal1Boxed { + public static final class Mammal1BoxedMap implements Mammal1Boxed { public final FrozenMap<@Nullable Object> data; private Mammal1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MapTest.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MapTest.java index 888642db4bb..be90d8f2634 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MapTest.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MapTest.java @@ -95,11 +95,11 @@ public AdditionalPropertiesMapBuilder1 getBuilderAfterAdditionalProperty(Map i } - public static abstract sealed class Money1Boxed permits Money1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Money1Boxed permits Money1BoxedMap { + @Nullable Object data(); } - public static final class Money1BoxedMap extends Money1Boxed { + public static final class Money1BoxedMap implements Money1Boxed { public final MoneyMap data; private Money1BoxedMap(MoneyMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MyObjectDto.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MyObjectDto.java index 5ba3d1e3e41..de8c2a80a4f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MyObjectDto.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MyObjectDto.java @@ -104,11 +104,11 @@ public MyObjectDtoMapBuilder getBuilderAfterId(Map instance) { } - public static abstract sealed class MyObjectDto1Boxed permits MyObjectDto1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface MyObjectDto1Boxed permits MyObjectDto1BoxedMap { + @Nullable Object data(); } - public static final class MyObjectDto1BoxedMap extends MyObjectDto1Boxed { + public static final class MyObjectDto1BoxedMap implements MyObjectDto1Boxed { public final MyObjectDtoMap data; private MyObjectDto1BoxedMap(MyObjectDtoMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Name.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Name.java index 98a6d9148f8..1967e95c87c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Name.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Name.java @@ -211,11 +211,11 @@ public NameMap0Builder getBuilderAfterName2(Map instan } - public static abstract sealed class Name1Boxed permits Name1BoxedVoid, Name1BoxedBoolean, Name1BoxedNumber, Name1BoxedString, Name1BoxedList, Name1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Name1Boxed permits Name1BoxedVoid, Name1BoxedBoolean, Name1BoxedNumber, Name1BoxedString, Name1BoxedList, Name1BoxedMap { + @Nullable Object data(); } - public static final class Name1BoxedVoid extends Name1Boxed { + public static final class Name1BoxedVoid implements Name1Boxed { public final Void data; private Name1BoxedVoid(Void data) { this.data = data; @@ -226,7 +226,7 @@ private Name1BoxedVoid(Void data) { } } - public static final class Name1BoxedBoolean extends Name1Boxed { + public static final class Name1BoxedBoolean implements Name1Boxed { public final boolean data; private Name1BoxedBoolean(boolean data) { this.data = data; @@ -237,7 +237,7 @@ private Name1BoxedBoolean(boolean data) { } } - public static final class Name1BoxedNumber extends Name1Boxed { + public static final class Name1BoxedNumber implements Name1Boxed { public final Number data; private Name1BoxedNumber(Number data) { this.data = data; @@ -248,7 +248,7 @@ private Name1BoxedNumber(Number data) { } } - public static final class Name1BoxedString extends Name1Boxed { + public static final class Name1BoxedString implements Name1Boxed { public final String data; private Name1BoxedString(String data) { this.data = data; @@ -259,7 +259,7 @@ private Name1BoxedString(String data) { } } - public static final class Name1BoxedList extends Name1Boxed { + public static final class Name1BoxedList implements Name1Boxed { public final FrozenList<@Nullable Object> data; private Name1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -270,7 +270,7 @@ private Name1BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class Name1BoxedMap extends Name1Boxed { + public static final class Name1BoxedMap implements Name1Boxed { public final NameMap data; private Name1BoxedMap(NameMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NoAdditionalProperties.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NoAdditionalProperties.java index 2fb470947dc..69f4282d2a0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NoAdditionalProperties.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NoAdditionalProperties.java @@ -182,11 +182,11 @@ public NoAdditionalPropertiesMap0Builder getBuilderAfterId(Map i } - public static abstract sealed class NoAdditionalProperties1Boxed permits NoAdditionalProperties1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface NoAdditionalProperties1Boxed permits NoAdditionalProperties1BoxedMap { + @Nullable Object data(); } - public static final class NoAdditionalProperties1BoxedMap extends NoAdditionalProperties1Boxed { + public static final class NoAdditionalProperties1BoxedMap implements NoAdditionalProperties1Boxed { public final NoAdditionalPropertiesMap data; private NoAdditionalProperties1BoxedMap(NoAdditionalPropertiesMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableClass.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableClass.java index bf6bad667f4..ad1693e7209 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableClass.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableClass.java @@ -38,11 +38,11 @@ public class NullableClass { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class AdditionalProperties3Boxed permits AdditionalProperties3BoxedVoid, AdditionalProperties3BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AdditionalProperties3Boxed permits AdditionalProperties3BoxedVoid, AdditionalProperties3BoxedMap { + @Nullable Object data(); } - public static final class AdditionalProperties3BoxedVoid extends AdditionalProperties3Boxed { + public static final class AdditionalProperties3BoxedVoid implements AdditionalProperties3Boxed { public final Void data; private AdditionalProperties3BoxedVoid(Void data) { this.data = data; @@ -53,7 +53,7 @@ private AdditionalProperties3BoxedVoid(Void data) { } } - public static final class AdditionalProperties3BoxedMap extends AdditionalProperties3Boxed { + public static final class AdditionalProperties3BoxedMap implements AdditionalProperties3Boxed { public final FrozenMap<@Nullable Object> data; private AdditionalProperties3BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; @@ -157,11 +157,11 @@ public AdditionalProperties3BoxedMap validateAndBox(Map arg, SchemaConfigu } } - public static abstract sealed class IntegerPropBoxed permits IntegerPropBoxedVoid, IntegerPropBoxedNumber { - public abstract @Nullable Object data(); + public sealed interface IntegerPropBoxed permits IntegerPropBoxedVoid, IntegerPropBoxedNumber { + @Nullable Object data(); } - public static final class IntegerPropBoxedVoid extends IntegerPropBoxed { + public static final class IntegerPropBoxedVoid implements IntegerPropBoxed { public final Void data; private IntegerPropBoxedVoid(Void data) { this.data = data; @@ -172,7 +172,7 @@ private IntegerPropBoxedVoid(Void data) { } } - public static final class IntegerPropBoxedNumber extends IntegerPropBoxed { + public static final class IntegerPropBoxedNumber implements IntegerPropBoxed { public final Number data; private IntegerPropBoxedNumber(Number data) { this.data = data; @@ -274,11 +274,11 @@ public IntegerPropBoxedNumber validateAndBox(Number arg, SchemaConfiguration con } } - public static abstract sealed class NumberPropBoxed permits NumberPropBoxedVoid, NumberPropBoxedNumber { - public abstract @Nullable Object data(); + public sealed interface NumberPropBoxed permits NumberPropBoxedVoid, NumberPropBoxedNumber { + @Nullable Object data(); } - public static final class NumberPropBoxedVoid extends NumberPropBoxed { + public static final class NumberPropBoxedVoid implements NumberPropBoxed { public final Void data; private NumberPropBoxedVoid(Void data) { this.data = data; @@ -289,7 +289,7 @@ private NumberPropBoxedVoid(Void data) { } } - public static final class NumberPropBoxedNumber extends NumberPropBoxed { + public static final class NumberPropBoxedNumber implements NumberPropBoxed { public final Number data; private NumberPropBoxedNumber(Number data) { this.data = data; @@ -390,11 +390,11 @@ public NumberPropBoxedNumber validateAndBox(Number arg, SchemaConfiguration conf } } - public static abstract sealed class BooleanPropBoxed permits BooleanPropBoxedVoid, BooleanPropBoxedBoolean { - public abstract @Nullable Object data(); + public sealed interface BooleanPropBoxed permits BooleanPropBoxedVoid, BooleanPropBoxedBoolean { + @Nullable Object data(); } - public static final class BooleanPropBoxedVoid extends BooleanPropBoxed { + public static final class BooleanPropBoxedVoid implements BooleanPropBoxed { public final Void data; private BooleanPropBoxedVoid(Void data) { this.data = data; @@ -405,7 +405,7 @@ private BooleanPropBoxedVoid(Void data) { } } - public static final class BooleanPropBoxedBoolean extends BooleanPropBoxed { + public static final class BooleanPropBoxedBoolean implements BooleanPropBoxed { public final boolean data; private BooleanPropBoxedBoolean(boolean data) { this.data = data; @@ -489,11 +489,11 @@ public BooleanPropBoxedBoolean validateAndBox(boolean arg, SchemaConfiguration c } } - public static abstract sealed class StringPropBoxed permits StringPropBoxedVoid, StringPropBoxedString { - public abstract @Nullable Object data(); + public sealed interface StringPropBoxed permits StringPropBoxedVoid, StringPropBoxedString { + @Nullable Object data(); } - public static final class StringPropBoxedVoid extends StringPropBoxed { + public static final class StringPropBoxedVoid implements StringPropBoxed { public final Void data; private StringPropBoxedVoid(Void data) { this.data = data; @@ -504,7 +504,7 @@ private StringPropBoxedVoid(Void data) { } } - public static final class StringPropBoxedString extends StringPropBoxed { + public static final class StringPropBoxedString implements StringPropBoxed { public final String data; private StringPropBoxedString(String data) { this.data = data; @@ -586,11 +586,11 @@ public StringPropBoxedString validateAndBox(String arg, SchemaConfiguration conf } } - public static abstract sealed class DatePropBoxed permits DatePropBoxedVoid, DatePropBoxedString { - public abstract @Nullable Object data(); + public sealed interface DatePropBoxed permits DatePropBoxedVoid, DatePropBoxedString { + @Nullable Object data(); } - public static final class DatePropBoxedVoid extends DatePropBoxed { + public static final class DatePropBoxedVoid implements DatePropBoxed { public final Void data; private DatePropBoxedVoid(Void data) { this.data = data; @@ -601,7 +601,7 @@ private DatePropBoxedVoid(Void data) { } } - public static final class DatePropBoxedString extends DatePropBoxed { + public static final class DatePropBoxedString implements DatePropBoxed { public final String data; private DatePropBoxedString(String data) { this.data = data; @@ -684,11 +684,11 @@ public DatePropBoxedString validateAndBox(String arg, SchemaConfiguration config } } - public static abstract sealed class DatetimePropBoxed permits DatetimePropBoxedVoid, DatetimePropBoxedString { - public abstract @Nullable Object data(); + public sealed interface DatetimePropBoxed permits DatetimePropBoxedVoid, DatetimePropBoxedString { + @Nullable Object data(); } - public static final class DatetimePropBoxedVoid extends DatetimePropBoxed { + public static final class DatetimePropBoxedVoid implements DatetimePropBoxed { public final Void data; private DatetimePropBoxedVoid(Void data) { this.data = data; @@ -699,7 +699,7 @@ private DatetimePropBoxedVoid(Void data) { } } - public static final class DatetimePropBoxedString extends DatetimePropBoxed { + public static final class DatetimePropBoxedString implements DatetimePropBoxed { public final String data; private DatetimePropBoxedString(String data) { this.data = data; @@ -825,11 +825,11 @@ public ArrayNullablePropListBuilder add(Map item) { } - public static abstract sealed class ArrayNullablePropBoxed permits ArrayNullablePropBoxedVoid, ArrayNullablePropBoxedList { - public abstract @Nullable Object data(); + public sealed interface ArrayNullablePropBoxed permits ArrayNullablePropBoxedVoid, ArrayNullablePropBoxedList { + @Nullable Object data(); } - public static final class ArrayNullablePropBoxedVoid extends ArrayNullablePropBoxed { + public static final class ArrayNullablePropBoxedVoid implements ArrayNullablePropBoxed { public final Void data; private ArrayNullablePropBoxedVoid(Void data) { this.data = data; @@ -840,7 +840,7 @@ private ArrayNullablePropBoxedVoid(Void data) { } } - public static final class ArrayNullablePropBoxedList extends ArrayNullablePropBoxed { + public static final class ArrayNullablePropBoxedList implements ArrayNullablePropBoxed { public final ArrayNullablePropList data; private ArrayNullablePropBoxedList(ArrayNullablePropList data) { this.data = data; @@ -945,11 +945,11 @@ public ArrayNullablePropBoxedList validateAndBox(List arg, SchemaConfiguratio } } - public static abstract sealed class Items1Boxed permits Items1BoxedVoid, Items1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Items1Boxed permits Items1BoxedVoid, Items1BoxedMap { + @Nullable Object data(); } - public static final class Items1BoxedVoid extends Items1Boxed { + public static final class Items1BoxedVoid implements Items1Boxed { public final Void data; private Items1BoxedVoid(Void data) { this.data = data; @@ -960,7 +960,7 @@ private Items1BoxedVoid(Void data) { } } - public static final class Items1BoxedMap extends Items1Boxed { + public static final class Items1BoxedMap implements Items1Boxed { public final FrozenMap<@Nullable Object> data; private Items1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; @@ -1101,11 +1101,11 @@ public ArrayAndItemsNullablePropListBuilder add(Map it } - public static abstract sealed class ArrayAndItemsNullablePropBoxed permits ArrayAndItemsNullablePropBoxedVoid, ArrayAndItemsNullablePropBoxedList { - public abstract @Nullable Object data(); + public sealed interface ArrayAndItemsNullablePropBoxed permits ArrayAndItemsNullablePropBoxedVoid, ArrayAndItemsNullablePropBoxedList { + @Nullable Object data(); } - public static final class ArrayAndItemsNullablePropBoxedVoid extends ArrayAndItemsNullablePropBoxed { + public static final class ArrayAndItemsNullablePropBoxedVoid implements ArrayAndItemsNullablePropBoxed { public final Void data; private ArrayAndItemsNullablePropBoxedVoid(Void data) { this.data = data; @@ -1116,7 +1116,7 @@ private ArrayAndItemsNullablePropBoxedVoid(Void data) { } } - public static final class ArrayAndItemsNullablePropBoxedList extends ArrayAndItemsNullablePropBoxed { + public static final class ArrayAndItemsNullablePropBoxedList implements ArrayAndItemsNullablePropBoxed { public final ArrayAndItemsNullablePropList data; private ArrayAndItemsNullablePropBoxedList(ArrayAndItemsNullablePropList data) { this.data = data; @@ -1221,11 +1221,11 @@ public ArrayAndItemsNullablePropBoxedList validateAndBox(List arg, SchemaConf } } - public static abstract sealed class Items2Boxed permits Items2BoxedVoid, Items2BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Items2Boxed permits Items2BoxedVoid, Items2BoxedMap { + @Nullable Object data(); } - public static final class Items2BoxedVoid extends Items2Boxed { + public static final class Items2BoxedVoid implements Items2Boxed { public final Void data; private Items2BoxedVoid(Void data) { this.data = data; @@ -1236,7 +1236,7 @@ private Items2BoxedVoid(Void data) { } } - public static final class Items2BoxedMap extends Items2Boxed { + public static final class Items2BoxedMap implements Items2Boxed { public final FrozenMap<@Nullable Object> data; private Items2BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; @@ -1377,11 +1377,11 @@ public ArrayItemsNullableListBuilder add(Map item) { } - public static abstract sealed class ArrayItemsNullableBoxed permits ArrayItemsNullableBoxedList { - public abstract @Nullable Object data(); + public sealed interface ArrayItemsNullableBoxed permits ArrayItemsNullableBoxedList { + @Nullable Object data(); } - public static final class ArrayItemsNullableBoxedList extends ArrayItemsNullableBoxed { + public static final class ArrayItemsNullableBoxedList implements ArrayItemsNullableBoxed { public final ArrayItemsNullableList data; private ArrayItemsNullableBoxedList(ArrayItemsNullableList data) { this.data = data; @@ -1524,11 +1524,11 @@ public ObjectNullablePropMapBuilder getBuilderAfterAdditionalProperty(Map arg, SchemaConfigurat } } - public static abstract sealed class AdditionalProperties1Boxed permits AdditionalProperties1BoxedVoid, AdditionalProperties1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AdditionalProperties1Boxed permits AdditionalProperties1BoxedVoid, AdditionalProperties1BoxedMap { + @Nullable Object data(); } - public static final class AdditionalProperties1BoxedVoid extends AdditionalProperties1Boxed { + public static final class AdditionalProperties1BoxedVoid implements AdditionalProperties1Boxed { public final Void data; private AdditionalProperties1BoxedVoid(Void data) { this.data = data; @@ -1662,7 +1662,7 @@ private AdditionalProperties1BoxedVoid(Void data) { } } - public static final class AdditionalProperties1BoxedMap extends AdditionalProperties1Boxed { + public static final class AdditionalProperties1BoxedMap implements AdditionalProperties1Boxed { public final FrozenMap<@Nullable Object> data; private AdditionalProperties1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; @@ -1822,11 +1822,11 @@ public ObjectAndItemsNullablePropMapBuilder getBuilderAfterAdditionalProperty(Ma } - public static abstract sealed class ObjectAndItemsNullablePropBoxed permits ObjectAndItemsNullablePropBoxedVoid, ObjectAndItemsNullablePropBoxedMap { - public abstract @Nullable Object data(); + public sealed interface ObjectAndItemsNullablePropBoxed permits ObjectAndItemsNullablePropBoxedVoid, ObjectAndItemsNullablePropBoxedMap { + @Nullable Object data(); } - public static final class ObjectAndItemsNullablePropBoxedVoid extends ObjectAndItemsNullablePropBoxed { + public static final class ObjectAndItemsNullablePropBoxedVoid implements ObjectAndItemsNullablePropBoxed { public final Void data; private ObjectAndItemsNullablePropBoxedVoid(Void data) { this.data = data; @@ -1837,7 +1837,7 @@ private ObjectAndItemsNullablePropBoxedVoid(Void data) { } } - public static final class ObjectAndItemsNullablePropBoxedMap extends ObjectAndItemsNullablePropBoxed { + public static final class ObjectAndItemsNullablePropBoxedMap implements ObjectAndItemsNullablePropBoxed { public final ObjectAndItemsNullablePropMap data; private ObjectAndItemsNullablePropBoxedMap(ObjectAndItemsNullablePropMap data) { this.data = data; @@ -1945,11 +1945,11 @@ public ObjectAndItemsNullablePropBoxedMap validateAndBox(Map arg, SchemaCo } } - public static abstract sealed class AdditionalProperties2Boxed permits AdditionalProperties2BoxedVoid, AdditionalProperties2BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AdditionalProperties2Boxed permits AdditionalProperties2BoxedVoid, AdditionalProperties2BoxedMap { + @Nullable Object data(); } - public static final class AdditionalProperties2BoxedVoid extends AdditionalProperties2Boxed { + public static final class AdditionalProperties2BoxedVoid implements AdditionalProperties2Boxed { public final Void data; private AdditionalProperties2BoxedVoid(Void data) { this.data = data; @@ -1960,7 +1960,7 @@ private AdditionalProperties2BoxedVoid(Void data) { } } - public static final class AdditionalProperties2BoxedMap extends AdditionalProperties2Boxed { + public static final class AdditionalProperties2BoxedMap implements AdditionalProperties2Boxed { public final FrozenMap<@Nullable Object> data; private AdditionalProperties2BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; @@ -2120,11 +2120,11 @@ public ObjectItemsNullableMapBuilder getBuilderAfterAdditionalProperty(Map data; private NullableShape1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -106,7 +106,7 @@ private NullableShape1BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class NullableShape1BoxedMap extends NullableShape1Boxed { + public static final class NullableShape1BoxedMap implements NullableShape1Boxed { public final FrozenMap<@Nullable Object> data; private NullableShape1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableString.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableString.java index 5dceb5f7446..5095e8133a6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableString.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableString.java @@ -21,11 +21,11 @@ public class NullableString { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class NullableString1Boxed permits NullableString1BoxedVoid, NullableString1BoxedString { - public abstract @Nullable Object data(); + public sealed interface NullableString1Boxed permits NullableString1BoxedVoid, NullableString1BoxedString { + @Nullable Object data(); } - public static final class NullableString1BoxedVoid extends NullableString1Boxed { + public static final class NullableString1BoxedVoid implements NullableString1Boxed { public final Void data; private NullableString1BoxedVoid(Void data) { this.data = data; @@ -36,7 +36,7 @@ private NullableString1BoxedVoid(Void data) { } } - public static final class NullableString1BoxedString extends NullableString1Boxed { + public static final class NullableString1BoxedString implements NullableString1Boxed { public final String data; private NullableString1BoxedString(String data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberOnly.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberOnly.java index 82f4bef89b1..57181d165bb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberOnly.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberOnly.java @@ -124,11 +124,11 @@ public NumberOnlyMapBuilder getBuilderAfterAdditionalProperty(Map inst } - public static abstract sealed class Schema1Boxed permits Schema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema1Boxed permits Schema1BoxedMap { + @Nullable Object data(); } - public static final class Schema1BoxedMap extends Schema1Boxed { + public static final class Schema1BoxedMap implements Schema1Boxed { public final Schema1Map data; private Schema1BoxedMap(Schema1Map data) { this.data = data; @@ -287,11 +287,11 @@ public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configu } - public static abstract sealed class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed permits ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedVoid, ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedBoolean, ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedNumber, ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedString, ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedList, ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed permits ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedVoid, ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedBoolean, ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedNumber, ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedString, ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedList, ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedMap { + @Nullable Object data(); } - public static final class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedVoid extends ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed { + public static final class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedVoid implements ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed { public final Void data; private ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedVoid(Void data) { this.data = data; @@ -302,7 +302,7 @@ private ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedVoid(Void data) { } } - public static final class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedBoolean extends ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed { + public static final class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedBoolean implements ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed { public final boolean data; private ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedBoolean(boolean data) { this.data = data; @@ -313,7 +313,7 @@ private ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedBoolean(boolean data } } - public static final class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedNumber extends ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed { + public static final class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedNumber implements ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed { public final Number data; private ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedNumber(Number data) { this.data = data; @@ -324,7 +324,7 @@ private ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedNumber(Number data) } } - public static final class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedString extends ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed { + public static final class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedString implements ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed { public final String data; private ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedString(String data) { this.data = data; @@ -335,7 +335,7 @@ private ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedString(String data) } } - public static final class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedList extends ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed { + public static final class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedList implements ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed { public final FrozenList<@Nullable Object> data; private ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -346,7 +346,7 @@ private ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedList(FrozenList<@Nul } } - public static final class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedMap extends ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed { + public static final class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedMap implements ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed { public final FrozenMap<@Nullable Object> data; private ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithCollidingProperties.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithCollidingProperties.java index e35a9b4dc0d..3d8e600f8ee 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithCollidingProperties.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithCollidingProperties.java @@ -143,11 +143,11 @@ public ObjectWithCollidingPropertiesMapBuilder getBuilderAfterAdditionalProperty } - public static abstract sealed class ObjectWithCollidingProperties1Boxed permits ObjectWithCollidingProperties1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface ObjectWithCollidingProperties1Boxed permits ObjectWithCollidingProperties1BoxedMap { + @Nullable Object data(); } - public static final class ObjectWithCollidingProperties1BoxedMap extends ObjectWithCollidingProperties1Boxed { + public static final class ObjectWithCollidingProperties1BoxedMap implements ObjectWithCollidingProperties1Boxed { public final ObjectWithCollidingPropertiesMap data; private ObjectWithCollidingProperties1BoxedMap(ObjectWithCollidingPropertiesMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDecimalProperties.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDecimalProperties.java index 08c18cd57af..3ff1798c02b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDecimalProperties.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDecimalProperties.java @@ -158,11 +158,11 @@ public ObjectWithDecimalPropertiesMapBuilder getBuilderAfterAdditionalProperty(M } - public static abstract sealed class ObjectWithDecimalProperties1Boxed permits ObjectWithDecimalProperties1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface ObjectWithDecimalProperties1Boxed permits ObjectWithDecimalProperties1BoxedMap { + @Nullable Object data(); } - public static final class ObjectWithDecimalProperties1BoxedMap extends ObjectWithDecimalProperties1Boxed { + public static final class ObjectWithDecimalProperties1BoxedMap implements ObjectWithDecimalProperties1Boxed { public final ObjectWithDecimalPropertiesMap data; private ObjectWithDecimalProperties1BoxedMap(ObjectWithDecimalPropertiesMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDifficultlyNamedProps.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDifficultlyNamedProps.java index fc43bb14709..d705b375cb3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDifficultlyNamedProps.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDifficultlyNamedProps.java @@ -199,11 +199,11 @@ public ObjectWithDifficultlyNamedPropsMap0Builder getBuilderAfterSchema123list(M } - public static abstract sealed class ObjectWithDifficultlyNamedProps1Boxed permits ObjectWithDifficultlyNamedProps1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface ObjectWithDifficultlyNamedProps1Boxed permits ObjectWithDifficultlyNamedProps1BoxedMap { + @Nullable Object data(); } - public static final class ObjectWithDifficultlyNamedProps1BoxedMap extends ObjectWithDifficultlyNamedProps1Boxed { + public static final class ObjectWithDifficultlyNamedProps1BoxedMap implements ObjectWithDifficultlyNamedProps1Boxed { public final ObjectWithDifficultlyNamedPropsMap data; private ObjectWithDifficultlyNamedProps1BoxedMap(ObjectWithDifficultlyNamedPropsMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionProperty.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionProperty.java index f54b69750b9..8c83ffcdf72 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionProperty.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionProperty.java @@ -37,11 +37,11 @@ public class ObjectWithInlineCompositionProperty { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class Schema0Boxed permits Schema0BoxedString { - public abstract @Nullable Object data(); + public sealed interface Schema0Boxed permits Schema0BoxedString { + @Nullable Object data(); } - public static final class Schema0BoxedString extends Schema0Boxed { + public static final class Schema0BoxedString implements Schema0Boxed { public final String data; private Schema0BoxedString(String data) { this.data = data; @@ -104,11 +104,11 @@ public Schema0BoxedString validateAndBox(String arg, SchemaConfiguration configu } } - public static abstract sealed class SomePropBoxed permits SomePropBoxedVoid, SomePropBoxedBoolean, SomePropBoxedNumber, SomePropBoxedString, SomePropBoxedList, SomePropBoxedMap { - public abstract @Nullable Object data(); + public sealed interface SomePropBoxed permits SomePropBoxedVoid, SomePropBoxedBoolean, SomePropBoxedNumber, SomePropBoxedString, SomePropBoxedList, SomePropBoxedMap { + @Nullable Object data(); } - public static final class SomePropBoxedVoid extends SomePropBoxed { + public static final class SomePropBoxedVoid implements SomePropBoxed { public final Void data; private SomePropBoxedVoid(Void data) { this.data = data; @@ -119,7 +119,7 @@ private SomePropBoxedVoid(Void data) { } } - public static final class SomePropBoxedBoolean extends SomePropBoxed { + public static final class SomePropBoxedBoolean implements SomePropBoxed { public final boolean data; private SomePropBoxedBoolean(boolean data) { this.data = data; @@ -130,7 +130,7 @@ private SomePropBoxedBoolean(boolean data) { } } - public static final class SomePropBoxedNumber extends SomePropBoxed { + public static final class SomePropBoxedNumber implements SomePropBoxed { public final Number data; private SomePropBoxedNumber(Number data) { this.data = data; @@ -141,7 +141,7 @@ private SomePropBoxedNumber(Number data) { } } - public static final class SomePropBoxedString extends SomePropBoxed { + public static final class SomePropBoxedString implements SomePropBoxed { public final String data; private SomePropBoxedString(String data) { this.data = data; @@ -152,7 +152,7 @@ private SomePropBoxedString(String data) { } } - public static final class SomePropBoxedList extends SomePropBoxed { + public static final class SomePropBoxedList implements SomePropBoxed { public final FrozenList<@Nullable Object> data; private SomePropBoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -163,7 +163,7 @@ private SomePropBoxedList(FrozenList<@Nullable Object> data) { } } - public static final class SomePropBoxedMap extends SomePropBoxed { + public static final class SomePropBoxedMap implements SomePropBoxed { public final FrozenMap<@Nullable Object> data; private SomePropBoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; @@ -504,11 +504,11 @@ public ObjectWithInlineCompositionPropertyMapBuilder getBuilderAfterAdditionalPr } - public static abstract sealed class ObjectWithInlineCompositionProperty1Boxed permits ObjectWithInlineCompositionProperty1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface ObjectWithInlineCompositionProperty1Boxed permits ObjectWithInlineCompositionProperty1BoxedMap { + @Nullable Object data(); } - public static final class ObjectWithInlineCompositionProperty1BoxedMap extends ObjectWithInlineCompositionProperty1Boxed { + public static final class ObjectWithInlineCompositionProperty1BoxedMap implements ObjectWithInlineCompositionProperty1Boxed { public final ObjectWithInlineCompositionPropertyMap data; private ObjectWithInlineCompositionProperty1BoxedMap(ObjectWithInlineCompositionPropertyMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInvalidNamedRefedProperties.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInvalidNamedRefedProperties.java index 94c2e93a413..d25501bd0e3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInvalidNamedRefedProperties.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInvalidNamedRefedProperties.java @@ -144,11 +144,11 @@ public ObjectWithInvalidNamedRefedPropertiesMap10Builder getBuilderAfterFrom(Map } - public static abstract sealed class ObjectWithInvalidNamedRefedProperties1Boxed permits ObjectWithInvalidNamedRefedProperties1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface ObjectWithInvalidNamedRefedProperties1Boxed permits ObjectWithInvalidNamedRefedProperties1BoxedMap { + @Nullable Object data(); } - public static final class ObjectWithInvalidNamedRefedProperties1BoxedMap extends ObjectWithInvalidNamedRefedProperties1Boxed { + public static final class ObjectWithInvalidNamedRefedProperties1BoxedMap implements ObjectWithInvalidNamedRefedProperties1Boxed { public final ObjectWithInvalidNamedRefedPropertiesMap data; private ObjectWithInvalidNamedRefedProperties1BoxedMap(ObjectWithInvalidNamedRefedPropertiesMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithNonIntersectingValues.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithNonIntersectingValues.java index 166d27b485d..8ed19934f85 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithNonIntersectingValues.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithNonIntersectingValues.java @@ -152,11 +152,11 @@ public ObjectWithNonIntersectingValuesMapBuilder getBuilderAfterAdditionalProper } - public static abstract sealed class ObjectWithNonIntersectingValues1Boxed permits ObjectWithNonIntersectingValues1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface ObjectWithNonIntersectingValues1Boxed permits ObjectWithNonIntersectingValues1BoxedMap { + @Nullable Object data(); } - public static final class ObjectWithNonIntersectingValues1BoxedMap extends ObjectWithNonIntersectingValues1Boxed { + public static final class ObjectWithNonIntersectingValues1BoxedMap implements ObjectWithNonIntersectingValues1Boxed { public final ObjectWithNonIntersectingValuesMap data; private ObjectWithNonIntersectingValues1BoxedMap(ObjectWithNonIntersectingValuesMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithOnlyOptionalProps.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithOnlyOptionalProps.java index dfe7aef987f..62ec11e5de2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithOnlyOptionalProps.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithOnlyOptionalProps.java @@ -166,11 +166,11 @@ public ObjectWithOnlyOptionalPropsMapBuilder getBuilderAfterB(Map data; private ObjectWithValidations1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Order.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Order.java index 461c00cc8ed..f7500ebb3a2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Order.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Order.java @@ -94,11 +94,11 @@ public String value() { } - public static abstract sealed class StatusBoxed permits StatusBoxedString { - public abstract @Nullable Object data(); + public sealed interface StatusBoxed permits StatusBoxedString { + @Nullable Object data(); } - public static final class StatusBoxedString extends StatusBoxed { + public static final class StatusBoxedString implements StatusBoxed { public final String data; private StatusBoxedString(String data) { this.data = data; @@ -425,11 +425,11 @@ public OrderMapBuilder getBuilderAfterAdditionalProperty(Map> build() { } - public static abstract sealed class ResultsBoxed permits ResultsBoxedList { - public abstract @Nullable Object data(); + public sealed interface ResultsBoxed permits ResultsBoxedList { + @Nullable Object data(); } - public static final class ResultsBoxedList extends ResultsBoxed { + public static final class ResultsBoxedList implements ResultsBoxed { public final ResultsList data; private ResultsBoxedList(ResultsList data) { this.data = data; @@ -304,11 +304,11 @@ public PaginatedResultMyObjectDtoMap10Builder getBuilderAfterResults(Map data; private ParentPet1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pet.java index a1e78cd8592..1d7370dc2b6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pet.java @@ -101,11 +101,11 @@ public List build() { } - public static abstract sealed class PhotoUrlsBoxed permits PhotoUrlsBoxedList { - public abstract @Nullable Object data(); + public sealed interface PhotoUrlsBoxed permits PhotoUrlsBoxedList { + @Nullable Object data(); } - public static final class PhotoUrlsBoxedList extends PhotoUrlsBoxed { + public static final class PhotoUrlsBoxedList implements PhotoUrlsBoxed { public final PhotoUrlsList data; private PhotoUrlsBoxedList(PhotoUrlsList data) { this.data = data; @@ -202,11 +202,11 @@ public String value() { } - public static abstract sealed class StatusBoxed permits StatusBoxedString { - public abstract @Nullable Object data(); + public sealed interface StatusBoxed permits StatusBoxedString { + @Nullable Object data(); } - public static final class StatusBoxedString extends StatusBoxed { + public static final class StatusBoxedString implements StatusBoxed { public final String data; private StatusBoxedString(String data) { this.data = data; @@ -310,11 +310,11 @@ public TagsListBuilder add(Map item) { } - public static abstract sealed class TagsBoxed permits TagsBoxedList { - public abstract @Nullable Object data(); + public sealed interface TagsBoxed permits TagsBoxedList { + @Nullable Object data(); } - public static final class TagsBoxedList extends TagsBoxed { + public static final class TagsBoxedList implements TagsBoxed { public final TagsList data; private TagsBoxedList(TagsList data) { this.data = data; @@ -650,11 +650,11 @@ public PetMap10Builder getBuilderAfterPhotoUrls(Map in } - public static abstract sealed class Pet1Boxed permits Pet1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Pet1Boxed permits Pet1BoxedMap { + @Nullable Object data(); } - public static final class Pet1BoxedMap extends Pet1Boxed { + public static final class Pet1BoxedMap implements Pet1Boxed { public final PetMap data; private Pet1BoxedMap(PetMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pig.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pig.java index d44f79ca023..1618b0373ff 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pig.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pig.java @@ -35,11 +35,11 @@ public class Pig { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class Pig1Boxed permits Pig1BoxedVoid, Pig1BoxedBoolean, Pig1BoxedNumber, Pig1BoxedString, Pig1BoxedList, Pig1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Pig1Boxed permits Pig1BoxedVoid, Pig1BoxedBoolean, Pig1BoxedNumber, Pig1BoxedString, Pig1BoxedList, Pig1BoxedMap { + @Nullable Object data(); } - public static final class Pig1BoxedVoid extends Pig1Boxed { + public static final class Pig1BoxedVoid implements Pig1Boxed { public final Void data; private Pig1BoxedVoid(Void data) { this.data = data; @@ -50,7 +50,7 @@ private Pig1BoxedVoid(Void data) { } } - public static final class Pig1BoxedBoolean extends Pig1Boxed { + public static final class Pig1BoxedBoolean implements Pig1Boxed { public final boolean data; private Pig1BoxedBoolean(boolean data) { this.data = data; @@ -61,7 +61,7 @@ private Pig1BoxedBoolean(boolean data) { } } - public static final class Pig1BoxedNumber extends Pig1Boxed { + public static final class Pig1BoxedNumber implements Pig1Boxed { public final Number data; private Pig1BoxedNumber(Number data) { this.data = data; @@ -72,7 +72,7 @@ private Pig1BoxedNumber(Number data) { } } - public static final class Pig1BoxedString extends Pig1Boxed { + public static final class Pig1BoxedString implements Pig1Boxed { public final String data; private Pig1BoxedString(String data) { this.data = data; @@ -83,7 +83,7 @@ private Pig1BoxedString(String data) { } } - public static final class Pig1BoxedList extends Pig1Boxed { + public static final class Pig1BoxedList implements Pig1Boxed { public final FrozenList<@Nullable Object> data; private Pig1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -94,7 +94,7 @@ private Pig1BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class Pig1BoxedMap extends Pig1Boxed { + public static final class Pig1BoxedMap implements Pig1Boxed { public final FrozenMap<@Nullable Object> data; private Pig1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Player.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Player.java index b4c7b3c9ee9..0293ad934ca 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Player.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Player.java @@ -132,11 +132,11 @@ public PlayerMapBuilder getBuilderAfterAdditionalProperty(Map data; private Quadrilateral1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -94,7 +94,7 @@ private Quadrilateral1BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class Quadrilateral1BoxedMap extends Quadrilateral1Boxed { + public static final class Quadrilateral1BoxedMap implements Quadrilateral1Boxed { public final FrozenMap<@Nullable Object> data; private Quadrilateral1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterface.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterface.java index 04ce14b728a..0802c989e11 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterface.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterface.java @@ -53,11 +53,11 @@ public String value() { } - public static abstract sealed class ShapeTypeBoxed permits ShapeTypeBoxedString { - public abstract @Nullable Object data(); + public sealed interface ShapeTypeBoxed permits ShapeTypeBoxedString { + @Nullable Object data(); } - public static final class ShapeTypeBoxedString extends ShapeTypeBoxed { + public static final class ShapeTypeBoxedString implements ShapeTypeBoxed { public final String data; private ShapeTypeBoxedString(String data) { this.data = data; @@ -268,11 +268,11 @@ public QuadrilateralInterfaceMap10Builder getBuilderAfterShapeType(Map data; private QuadrilateralInterface1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -327,7 +327,7 @@ private QuadrilateralInterface1BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class QuadrilateralInterface1BoxedMap extends QuadrilateralInterface1Boxed { + public static final class QuadrilateralInterface1BoxedMap implements QuadrilateralInterface1Boxed { public final QuadrilateralInterfaceMap data; private QuadrilateralInterface1BoxedMap(QuadrilateralInterfaceMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReadOnlyFirst.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReadOnlyFirst.java index 60a3869dd42..7339f040e79 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReadOnlyFirst.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReadOnlyFirst.java @@ -143,11 +143,11 @@ public ReadOnlyFirstMapBuilder getBuilderAfterAdditionalProperty(Map data; private ReturnSchema1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -170,7 +170,7 @@ private ReturnSchema1BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class ReturnSchema1BoxedMap extends ReturnSchema1Boxed { + public static final class ReturnSchema1BoxedMap implements ReturnSchema1Boxed { public final ReturnMap data; private ReturnSchema1BoxedMap(ReturnMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangle.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangle.java index 111d8cc20a8..c7a257e7567 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangle.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangle.java @@ -52,11 +52,11 @@ public String value() { } - public static abstract sealed class TriangleTypeBoxed permits TriangleTypeBoxedString { - public abstract @Nullable Object data(); + public sealed interface TriangleTypeBoxed permits TriangleTypeBoxedString { + @Nullable Object data(); } - public static final class TriangleTypeBoxedString extends TriangleTypeBoxed { + public static final class TriangleTypeBoxedString implements TriangleTypeBoxed { public final String data; private TriangleTypeBoxedString(String data) { this.data = data; @@ -198,11 +198,11 @@ public Schema1MapBuilder getBuilderAfterAdditionalProperty(Map arg, SchemaConfiguration configu } - public static abstract sealed class ScaleneTriangle1Boxed permits ScaleneTriangle1BoxedVoid, ScaleneTriangle1BoxedBoolean, ScaleneTriangle1BoxedNumber, ScaleneTriangle1BoxedString, ScaleneTriangle1BoxedList, ScaleneTriangle1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface ScaleneTriangle1Boxed permits ScaleneTriangle1BoxedVoid, ScaleneTriangle1BoxedBoolean, ScaleneTriangle1BoxedNumber, ScaleneTriangle1BoxedString, ScaleneTriangle1BoxedList, ScaleneTriangle1BoxedMap { + @Nullable Object data(); } - public static final class ScaleneTriangle1BoxedVoid extends ScaleneTriangle1Boxed { + public static final class ScaleneTriangle1BoxedVoid implements ScaleneTriangle1Boxed { public final Void data; private ScaleneTriangle1BoxedVoid(Void data) { this.data = data; @@ -303,7 +303,7 @@ private ScaleneTriangle1BoxedVoid(Void data) { } } - public static final class ScaleneTriangle1BoxedBoolean extends ScaleneTriangle1Boxed { + public static final class ScaleneTriangle1BoxedBoolean implements ScaleneTriangle1Boxed { public final boolean data; private ScaleneTriangle1BoxedBoolean(boolean data) { this.data = data; @@ -314,7 +314,7 @@ private ScaleneTriangle1BoxedBoolean(boolean data) { } } - public static final class ScaleneTriangle1BoxedNumber extends ScaleneTriangle1Boxed { + public static final class ScaleneTriangle1BoxedNumber implements ScaleneTriangle1Boxed { public final Number data; private ScaleneTriangle1BoxedNumber(Number data) { this.data = data; @@ -325,7 +325,7 @@ private ScaleneTriangle1BoxedNumber(Number data) { } } - public static final class ScaleneTriangle1BoxedString extends ScaleneTriangle1Boxed { + public static final class ScaleneTriangle1BoxedString implements ScaleneTriangle1Boxed { public final String data; private ScaleneTriangle1BoxedString(String data) { this.data = data; @@ -336,7 +336,7 @@ private ScaleneTriangle1BoxedString(String data) { } } - public static final class ScaleneTriangle1BoxedList extends ScaleneTriangle1Boxed { + public static final class ScaleneTriangle1BoxedList implements ScaleneTriangle1Boxed { public final FrozenList<@Nullable Object> data; private ScaleneTriangle1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -347,7 +347,7 @@ private ScaleneTriangle1BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class ScaleneTriangle1BoxedMap extends ScaleneTriangle1Boxed { + public static final class ScaleneTriangle1BoxedMap implements ScaleneTriangle1Boxed { public final FrozenMap<@Nullable Object> data; private ScaleneTriangle1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Schema200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Schema200Response.java index cb8685207bf..203006e9f2c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Schema200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Schema200Response.java @@ -149,11 +149,11 @@ public Schema200ResponseMapBuilder getBuilderAfterAdditionalProperty(Map data; private Schema200Response1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -208,7 +208,7 @@ private Schema200Response1BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class Schema200Response1BoxedMap extends Schema200Response1Boxed { + public static final class Schema200Response1BoxedMap implements Schema200Response1Boxed { public final Schema200ResponseMap data; private Schema200Response1BoxedMap(Schema200ResponseMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingArrayModel.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingArrayModel.java index 5f258da7002..a5668af2c60 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingArrayModel.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingArrayModel.java @@ -55,11 +55,11 @@ public List> build() { } - public static abstract sealed class SelfReferencingArrayModel1Boxed permits SelfReferencingArrayModel1BoxedList { - public abstract @Nullable Object data(); + public sealed interface SelfReferencingArrayModel1Boxed permits SelfReferencingArrayModel1BoxedList { + @Nullable Object data(); } - public static final class SelfReferencingArrayModel1BoxedList extends SelfReferencingArrayModel1Boxed { + public static final class SelfReferencingArrayModel1BoxedList implements SelfReferencingArrayModel1Boxed { public final SelfReferencingArrayModelList data; private SelfReferencingArrayModel1BoxedList(SelfReferencingArrayModelList data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingObjectModel.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingObjectModel.java index 32af112a2b5..a6bfa5badf7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingObjectModel.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingObjectModel.java @@ -110,11 +110,11 @@ public SelfReferencingObjectModelMapBuilder getBuilderAfterAdditionalProperty(Ma } - public static abstract sealed class SelfReferencingObjectModel1Boxed permits SelfReferencingObjectModel1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface SelfReferencingObjectModel1Boxed permits SelfReferencingObjectModel1BoxedMap { + @Nullable Object data(); } - public static final class SelfReferencingObjectModel1BoxedMap extends SelfReferencingObjectModel1Boxed { + public static final class SelfReferencingObjectModel1BoxedMap implements SelfReferencingObjectModel1Boxed { public final SelfReferencingObjectModelMap data; private SelfReferencingObjectModel1BoxedMap(SelfReferencingObjectModelMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Shape.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Shape.java index 71c071879e5..0d8e2bbfc6c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Shape.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Shape.java @@ -35,11 +35,11 @@ public class Shape { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class Shape1Boxed permits Shape1BoxedVoid, Shape1BoxedBoolean, Shape1BoxedNumber, Shape1BoxedString, Shape1BoxedList, Shape1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Shape1Boxed permits Shape1BoxedVoid, Shape1BoxedBoolean, Shape1BoxedNumber, Shape1BoxedString, Shape1BoxedList, Shape1BoxedMap { + @Nullable Object data(); } - public static final class Shape1BoxedVoid extends Shape1Boxed { + public static final class Shape1BoxedVoid implements Shape1Boxed { public final Void data; private Shape1BoxedVoid(Void data) { this.data = data; @@ -50,7 +50,7 @@ private Shape1BoxedVoid(Void data) { } } - public static final class Shape1BoxedBoolean extends Shape1Boxed { + public static final class Shape1BoxedBoolean implements Shape1Boxed { public final boolean data; private Shape1BoxedBoolean(boolean data) { this.data = data; @@ -61,7 +61,7 @@ private Shape1BoxedBoolean(boolean data) { } } - public static final class Shape1BoxedNumber extends Shape1Boxed { + public static final class Shape1BoxedNumber implements Shape1Boxed { public final Number data; private Shape1BoxedNumber(Number data) { this.data = data; @@ -72,7 +72,7 @@ private Shape1BoxedNumber(Number data) { } } - public static final class Shape1BoxedString extends Shape1Boxed { + public static final class Shape1BoxedString implements Shape1Boxed { public final String data; private Shape1BoxedString(String data) { this.data = data; @@ -83,7 +83,7 @@ private Shape1BoxedString(String data) { } } - public static final class Shape1BoxedList extends Shape1Boxed { + public static final class Shape1BoxedList implements Shape1Boxed { public final FrozenList<@Nullable Object> data; private Shape1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -94,7 +94,7 @@ private Shape1BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class Shape1BoxedMap extends Shape1Boxed { + public static final class Shape1BoxedMap implements Shape1Boxed { public final FrozenMap<@Nullable Object> data; private Shape1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ShapeOrNull.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ShapeOrNull.java index 6e7843466f3..237084e9ebf 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ShapeOrNull.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ShapeOrNull.java @@ -47,11 +47,11 @@ public static Schema0 getInstance() { } - public static abstract sealed class ShapeOrNull1Boxed permits ShapeOrNull1BoxedVoid, ShapeOrNull1BoxedBoolean, ShapeOrNull1BoxedNumber, ShapeOrNull1BoxedString, ShapeOrNull1BoxedList, ShapeOrNull1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface ShapeOrNull1Boxed permits ShapeOrNull1BoxedVoid, ShapeOrNull1BoxedBoolean, ShapeOrNull1BoxedNumber, ShapeOrNull1BoxedString, ShapeOrNull1BoxedList, ShapeOrNull1BoxedMap { + @Nullable Object data(); } - public static final class ShapeOrNull1BoxedVoid extends ShapeOrNull1Boxed { + public static final class ShapeOrNull1BoxedVoid implements ShapeOrNull1Boxed { public final Void data; private ShapeOrNull1BoxedVoid(Void data) { this.data = data; @@ -62,7 +62,7 @@ private ShapeOrNull1BoxedVoid(Void data) { } } - public static final class ShapeOrNull1BoxedBoolean extends ShapeOrNull1Boxed { + public static final class ShapeOrNull1BoxedBoolean implements ShapeOrNull1Boxed { public final boolean data; private ShapeOrNull1BoxedBoolean(boolean data) { this.data = data; @@ -73,7 +73,7 @@ private ShapeOrNull1BoxedBoolean(boolean data) { } } - public static final class ShapeOrNull1BoxedNumber extends ShapeOrNull1Boxed { + public static final class ShapeOrNull1BoxedNumber implements ShapeOrNull1Boxed { public final Number data; private ShapeOrNull1BoxedNumber(Number data) { this.data = data; @@ -84,7 +84,7 @@ private ShapeOrNull1BoxedNumber(Number data) { } } - public static final class ShapeOrNull1BoxedString extends ShapeOrNull1Boxed { + public static final class ShapeOrNull1BoxedString implements ShapeOrNull1Boxed { public final String data; private ShapeOrNull1BoxedString(String data) { this.data = data; @@ -95,7 +95,7 @@ private ShapeOrNull1BoxedString(String data) { } } - public static final class ShapeOrNull1BoxedList extends ShapeOrNull1Boxed { + public static final class ShapeOrNull1BoxedList implements ShapeOrNull1Boxed { public final FrozenList<@Nullable Object> data; private ShapeOrNull1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -106,7 +106,7 @@ private ShapeOrNull1BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class ShapeOrNull1BoxedMap extends ShapeOrNull1Boxed { + public static final class ShapeOrNull1BoxedMap implements ShapeOrNull1Boxed { public final FrozenMap<@Nullable Object> data; private ShapeOrNull1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateral.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateral.java index 1ba98c8b9d1..cf8eaa51c26 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateral.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateral.java @@ -52,11 +52,11 @@ public String value() { } - public static abstract sealed class QuadrilateralTypeBoxed permits QuadrilateralTypeBoxedString { - public abstract @Nullable Object data(); + public sealed interface QuadrilateralTypeBoxed permits QuadrilateralTypeBoxedString { + @Nullable Object data(); } - public static final class QuadrilateralTypeBoxedString extends QuadrilateralTypeBoxed { + public static final class QuadrilateralTypeBoxedString implements QuadrilateralTypeBoxed { public final String data; private QuadrilateralTypeBoxedString(String data) { this.data = data; @@ -198,11 +198,11 @@ public Schema1MapBuilder getBuilderAfterAdditionalProperty(Map arg, SchemaConfiguration configu } - public static abstract sealed class SimpleQuadrilateral1Boxed permits SimpleQuadrilateral1BoxedVoid, SimpleQuadrilateral1BoxedBoolean, SimpleQuadrilateral1BoxedNumber, SimpleQuadrilateral1BoxedString, SimpleQuadrilateral1BoxedList, SimpleQuadrilateral1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface SimpleQuadrilateral1Boxed permits SimpleQuadrilateral1BoxedVoid, SimpleQuadrilateral1BoxedBoolean, SimpleQuadrilateral1BoxedNumber, SimpleQuadrilateral1BoxedString, SimpleQuadrilateral1BoxedList, SimpleQuadrilateral1BoxedMap { + @Nullable Object data(); } - public static final class SimpleQuadrilateral1BoxedVoid extends SimpleQuadrilateral1Boxed { + public static final class SimpleQuadrilateral1BoxedVoid implements SimpleQuadrilateral1Boxed { public final Void data; private SimpleQuadrilateral1BoxedVoid(Void data) { this.data = data; @@ -303,7 +303,7 @@ private SimpleQuadrilateral1BoxedVoid(Void data) { } } - public static final class SimpleQuadrilateral1BoxedBoolean extends SimpleQuadrilateral1Boxed { + public static final class SimpleQuadrilateral1BoxedBoolean implements SimpleQuadrilateral1Boxed { public final boolean data; private SimpleQuadrilateral1BoxedBoolean(boolean data) { this.data = data; @@ -314,7 +314,7 @@ private SimpleQuadrilateral1BoxedBoolean(boolean data) { } } - public static final class SimpleQuadrilateral1BoxedNumber extends SimpleQuadrilateral1Boxed { + public static final class SimpleQuadrilateral1BoxedNumber implements SimpleQuadrilateral1Boxed { public final Number data; private SimpleQuadrilateral1BoxedNumber(Number data) { this.data = data; @@ -325,7 +325,7 @@ private SimpleQuadrilateral1BoxedNumber(Number data) { } } - public static final class SimpleQuadrilateral1BoxedString extends SimpleQuadrilateral1Boxed { + public static final class SimpleQuadrilateral1BoxedString implements SimpleQuadrilateral1Boxed { public final String data; private SimpleQuadrilateral1BoxedString(String data) { this.data = data; @@ -336,7 +336,7 @@ private SimpleQuadrilateral1BoxedString(String data) { } } - public static final class SimpleQuadrilateral1BoxedList extends SimpleQuadrilateral1Boxed { + public static final class SimpleQuadrilateral1BoxedList implements SimpleQuadrilateral1Boxed { public final FrozenList<@Nullable Object> data; private SimpleQuadrilateral1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -347,7 +347,7 @@ private SimpleQuadrilateral1BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class SimpleQuadrilateral1BoxedMap extends SimpleQuadrilateral1Boxed { + public static final class SimpleQuadrilateral1BoxedMap implements SimpleQuadrilateral1Boxed { public final FrozenMap<@Nullable Object> data; private SimpleQuadrilateral1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SomeObject.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SomeObject.java index a4cd76c800c..d595a747e72 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SomeObject.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SomeObject.java @@ -35,11 +35,11 @@ public class SomeObject { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class SomeObject1Boxed permits SomeObject1BoxedVoid, SomeObject1BoxedBoolean, SomeObject1BoxedNumber, SomeObject1BoxedString, SomeObject1BoxedList, SomeObject1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface SomeObject1Boxed permits SomeObject1BoxedVoid, SomeObject1BoxedBoolean, SomeObject1BoxedNumber, SomeObject1BoxedString, SomeObject1BoxedList, SomeObject1BoxedMap { + @Nullable Object data(); } - public static final class SomeObject1BoxedVoid extends SomeObject1Boxed { + public static final class SomeObject1BoxedVoid implements SomeObject1Boxed { public final Void data; private SomeObject1BoxedVoid(Void data) { this.data = data; @@ -50,7 +50,7 @@ private SomeObject1BoxedVoid(Void data) { } } - public static final class SomeObject1BoxedBoolean extends SomeObject1Boxed { + public static final class SomeObject1BoxedBoolean implements SomeObject1Boxed { public final boolean data; private SomeObject1BoxedBoolean(boolean data) { this.data = data; @@ -61,7 +61,7 @@ private SomeObject1BoxedBoolean(boolean data) { } } - public static final class SomeObject1BoxedNumber extends SomeObject1Boxed { + public static final class SomeObject1BoxedNumber implements SomeObject1Boxed { public final Number data; private SomeObject1BoxedNumber(Number data) { this.data = data; @@ -72,7 +72,7 @@ private SomeObject1BoxedNumber(Number data) { } } - public static final class SomeObject1BoxedString extends SomeObject1Boxed { + public static final class SomeObject1BoxedString implements SomeObject1Boxed { public final String data; private SomeObject1BoxedString(String data) { this.data = data; @@ -83,7 +83,7 @@ private SomeObject1BoxedString(String data) { } } - public static final class SomeObject1BoxedList extends SomeObject1Boxed { + public static final class SomeObject1BoxedList implements SomeObject1Boxed { public final FrozenList<@Nullable Object> data; private SomeObject1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -94,7 +94,7 @@ private SomeObject1BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class SomeObject1BoxedMap extends SomeObject1Boxed { + public static final class SomeObject1BoxedMap implements SomeObject1Boxed { public final FrozenMap<@Nullable Object> data; private SomeObject1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SpecialModelname.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SpecialModelname.java index 5aebdd2fc81..090baa02add 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SpecialModelname.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SpecialModelname.java @@ -106,11 +106,11 @@ public SpecialModelnameMapBuilder getBuilderAfterAdditionalProperty(Map data; private Triangle1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -94,7 +94,7 @@ private Triangle1BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class Triangle1BoxedMap extends Triangle1Boxed { + public static final class Triangle1BoxedMap implements Triangle1Boxed { public final FrozenMap<@Nullable Object> data; private Triangle1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/TriangleInterface.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/TriangleInterface.java index 905f0382b89..ca582cb8659 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/TriangleInterface.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/TriangleInterface.java @@ -53,11 +53,11 @@ public String value() { } - public static abstract sealed class ShapeTypeBoxed permits ShapeTypeBoxedString { - public abstract @Nullable Object data(); + public sealed interface ShapeTypeBoxed permits ShapeTypeBoxedString { + @Nullable Object data(); } - public static final class ShapeTypeBoxedString extends ShapeTypeBoxed { + public static final class ShapeTypeBoxedString implements ShapeTypeBoxed { public final String data; private ShapeTypeBoxedString(String data) { this.data = data; @@ -268,11 +268,11 @@ public TriangleInterfaceMap10Builder getBuilderAfterTriangleType(Map data; private TriangleInterface1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -327,7 +327,7 @@ private TriangleInterface1BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class TriangleInterface1BoxedMap extends TriangleInterface1Boxed { + public static final class TriangleInterface1BoxedMap implements TriangleInterface1Boxed { public final TriangleInterfaceMap data; private TriangleInterface1BoxedMap(TriangleInterfaceMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/UUIDString.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/UUIDString.java index cb841238b1b..5d775c83f36 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/UUIDString.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/UUIDString.java @@ -20,11 +20,11 @@ public class UUIDString { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class UUIDString1Boxed permits UUIDString1BoxedString { - public abstract @Nullable Object data(); + public sealed interface UUIDString1Boxed permits UUIDString1BoxedString { + @Nullable Object data(); } - public static final class UUIDString1BoxedString extends UUIDString1Boxed { + public static final class UUIDString1BoxedString implements UUIDString1Boxed { public final String data; private UUIDString1BoxedString(String data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/User.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/User.java index f787a2be117..78dee1d4c02 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/User.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/User.java @@ -142,11 +142,11 @@ public static ObjectWithNoDeclaredProps getInstance() { } - public static abstract sealed class ObjectWithNoDeclaredPropsNullableBoxed permits ObjectWithNoDeclaredPropsNullableBoxedVoid, ObjectWithNoDeclaredPropsNullableBoxedMap { - public abstract @Nullable Object data(); + public sealed interface ObjectWithNoDeclaredPropsNullableBoxed permits ObjectWithNoDeclaredPropsNullableBoxedVoid, ObjectWithNoDeclaredPropsNullableBoxedMap { + @Nullable Object data(); } - public static final class ObjectWithNoDeclaredPropsNullableBoxedVoid extends ObjectWithNoDeclaredPropsNullableBoxed { + public static final class ObjectWithNoDeclaredPropsNullableBoxedVoid implements ObjectWithNoDeclaredPropsNullableBoxed { public final Void data; private ObjectWithNoDeclaredPropsNullableBoxedVoid(Void data) { this.data = data; @@ -157,7 +157,7 @@ private ObjectWithNoDeclaredPropsNullableBoxedVoid(Void data) { } } - public static final class ObjectWithNoDeclaredPropsNullableBoxedMap extends ObjectWithNoDeclaredPropsNullableBoxed { + public static final class ObjectWithNoDeclaredPropsNullableBoxedMap implements ObjectWithNoDeclaredPropsNullableBoxed { public final FrozenMap<@Nullable Object> data; private ObjectWithNoDeclaredPropsNullableBoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; @@ -283,11 +283,11 @@ public static Not getInstance() { } - public static abstract sealed class AnyTypeExceptNullPropBoxed permits AnyTypeExceptNullPropBoxedVoid, AnyTypeExceptNullPropBoxedBoolean, AnyTypeExceptNullPropBoxedNumber, AnyTypeExceptNullPropBoxedString, AnyTypeExceptNullPropBoxedList, AnyTypeExceptNullPropBoxedMap { - public abstract @Nullable Object data(); + public sealed interface AnyTypeExceptNullPropBoxed permits AnyTypeExceptNullPropBoxedVoid, AnyTypeExceptNullPropBoxedBoolean, AnyTypeExceptNullPropBoxedNumber, AnyTypeExceptNullPropBoxedString, AnyTypeExceptNullPropBoxedList, AnyTypeExceptNullPropBoxedMap { + @Nullable Object data(); } - public static final class AnyTypeExceptNullPropBoxedVoid extends AnyTypeExceptNullPropBoxed { + public static final class AnyTypeExceptNullPropBoxedVoid implements AnyTypeExceptNullPropBoxed { public final Void data; private AnyTypeExceptNullPropBoxedVoid(Void data) { this.data = data; @@ -298,7 +298,7 @@ private AnyTypeExceptNullPropBoxedVoid(Void data) { } } - public static final class AnyTypeExceptNullPropBoxedBoolean extends AnyTypeExceptNullPropBoxed { + public static final class AnyTypeExceptNullPropBoxedBoolean implements AnyTypeExceptNullPropBoxed { public final boolean data; private AnyTypeExceptNullPropBoxedBoolean(boolean data) { this.data = data; @@ -309,7 +309,7 @@ private AnyTypeExceptNullPropBoxedBoolean(boolean data) { } } - public static final class AnyTypeExceptNullPropBoxedNumber extends AnyTypeExceptNullPropBoxed { + public static final class AnyTypeExceptNullPropBoxedNumber implements AnyTypeExceptNullPropBoxed { public final Number data; private AnyTypeExceptNullPropBoxedNumber(Number data) { this.data = data; @@ -320,7 +320,7 @@ private AnyTypeExceptNullPropBoxedNumber(Number data) { } } - public static final class AnyTypeExceptNullPropBoxedString extends AnyTypeExceptNullPropBoxed { + public static final class AnyTypeExceptNullPropBoxedString implements AnyTypeExceptNullPropBoxed { public final String data; private AnyTypeExceptNullPropBoxedString(String data) { this.data = data; @@ -331,7 +331,7 @@ private AnyTypeExceptNullPropBoxedString(String data) { } } - public static final class AnyTypeExceptNullPropBoxedList extends AnyTypeExceptNullPropBoxed { + public static final class AnyTypeExceptNullPropBoxedList implements AnyTypeExceptNullPropBoxed { public final FrozenList<@Nullable Object> data; private AnyTypeExceptNullPropBoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -342,7 +342,7 @@ private AnyTypeExceptNullPropBoxedList(FrozenList<@Nullable Object> data) { } } - public static final class AnyTypeExceptNullPropBoxedMap extends AnyTypeExceptNullPropBoxed { + public static final class AnyTypeExceptNullPropBoxedMap implements AnyTypeExceptNullPropBoxed { public final FrozenMap<@Nullable Object> data; private AnyTypeExceptNullPropBoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; @@ -1118,11 +1118,11 @@ public UserMapBuilder getBuilderAfterAdditionalProperty(Map i } - public static abstract sealed class Whale1Boxed permits Whale1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Whale1Boxed permits Whale1BoxedMap { + @Nullable Object data(); } - public static final class Whale1BoxedMap extends Whale1Boxed { + public static final class Whale1BoxedMap implements Whale1Boxed { public final WhaleMap data; private Whale1BoxedMap(WhaleMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Zebra.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Zebra.java index 4782de8affe..7b760b3d5a4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Zebra.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Zebra.java @@ -58,11 +58,11 @@ public String value() { } - public static abstract sealed class TypeBoxed permits TypeBoxedString { - public abstract @Nullable Object data(); + public sealed interface TypeBoxed permits TypeBoxedString { + @Nullable Object data(); } - public static final class TypeBoxedString extends TypeBoxed { + public static final class TypeBoxedString implements TypeBoxed { public final String data; private TypeBoxedString(String data) { this.data = data; @@ -146,11 +146,11 @@ public String value() { } - public static abstract sealed class ClassNameBoxed permits ClassNameBoxedString { - public abstract @Nullable Object data(); + public sealed interface ClassNameBoxed permits ClassNameBoxedString { + @Nullable Object data(); } - public static final class ClassNameBoxedString extends ClassNameBoxed { + public static final class ClassNameBoxedString implements ClassNameBoxed { public final String data; private ClassNameBoxedString(String data) { this.data = data; @@ -401,11 +401,11 @@ public ZebraMap0Builder getBuilderAfterClassName(Map i } - public static abstract sealed class Zebra1Boxed permits Zebra1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Zebra1Boxed permits Zebra1BoxedMap { + @Nullable Object data(); } - public static final class Zebra1BoxedMap extends Zebra1Boxed { + public static final class Zebra1BoxedMap implements Zebra1Boxed { public final ZebraMap data; private Zebra1BoxedMap(ZebraMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/HeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/HeaderParameters.java index cd8848fd37c..a97e281b3a9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/HeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/HeaderParameters.java @@ -93,11 +93,11 @@ public HeaderParametersMapBuilder getBuilderAfterSomeHeader(Map } - public static abstract sealed class HeaderParameters1Boxed permits HeaderParameters1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface HeaderParameters1Boxed permits HeaderParameters1BoxedMap { + @Nullable Object data(); } - public static final class HeaderParameters1BoxedMap extends HeaderParameters1Boxed { + public static final class HeaderParameters1BoxedMap implements HeaderParameters1Boxed { public final HeaderParametersMap data; private HeaderParameters1BoxedMap(HeaderParametersMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/PathParameters.java index b0270da0a2a..c130e20aecd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/PathParameters.java @@ -106,11 +106,11 @@ public PathParametersMap0Builder getBuilderAfterSubDir(Map insta } - public static abstract sealed class PathParameters1Boxed permits PathParameters1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { + @Nullable Object data(); } - public static final class PathParameters1BoxedMap extends PathParameters1Boxed { + public static final class PathParameters1BoxedMap implements PathParameters1Boxed { public final PathParametersMap data; private PathParameters1BoxedMap(PathParametersMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.java index dc6bf792213..7b38dd7f14f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.java @@ -35,11 +35,11 @@ public String value() { } - public static abstract sealed class Schema11Boxed permits Schema11BoxedString { - public abstract @Nullable Object data(); + public sealed interface Schema11Boxed permits Schema11BoxedString { + @Nullable Object data(); } - public static final class Schema11BoxedString extends Schema11Boxed { + public static final class Schema11BoxedString implements Schema11Boxed { public final String data; private Schema11BoxedString(String data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/PathParameters.java index a5ea19006a4..0383491087f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/PathParameters.java @@ -106,11 +106,11 @@ public PathParametersMap0Builder getBuilderAfterSubDir(Map insta } - public static abstract sealed class PathParameters1Boxed permits PathParameters1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { + @Nullable Object data(); } - public static final class PathParameters1BoxedMap extends PathParameters1Boxed { + public static final class PathParameters1BoxedMap implements PathParameters1Boxed { public final PathParametersMap data; private PathParameters1BoxedMap(PathParametersMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/QueryParameters.java index 74c006d1d34..a846d01f48b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/QueryParameters.java @@ -93,11 +93,11 @@ public QueryParametersMapBuilder getBuilderAfterSearchStr(Map in } - public static abstract sealed class QueryParameters1Boxed permits QueryParameters1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface QueryParameters1Boxed permits QueryParameters1BoxedMap { + @Nullable Object data(); } - public static final class QueryParameters1BoxedMap extends QueryParameters1Boxed { + public static final class QueryParameters1BoxedMap implements QueryParameters1Boxed { public final QueryParametersMap data; private QueryParameters1BoxedMap(QueryParametersMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.java index b50cad8cd17..7deba84b7ce 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.java @@ -35,11 +35,11 @@ public String value() { } - public static abstract sealed class PathParamSchema01Boxed permits PathParamSchema01BoxedString { - public abstract @Nullable Object data(); + public sealed interface PathParamSchema01Boxed permits PathParamSchema01BoxedString { + @Nullable Object data(); } - public static final class PathParamSchema01BoxedString extends PathParamSchema01Boxed { + public static final class PathParamSchema01BoxedString implements PathParamSchema01Boxed { public final String data; private PathParamSchema01BoxedString(String data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/HeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/HeaderParameters.java index 08534db2ef8..ed9f0f9d221 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/HeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/HeaderParameters.java @@ -93,11 +93,11 @@ public HeaderParametersMapBuilder getBuilderAfterSomeHeader(Map } - public static abstract sealed class HeaderParameters1Boxed permits HeaderParameters1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface HeaderParameters1Boxed permits HeaderParameters1BoxedMap { + @Nullable Object data(); } - public static final class HeaderParameters1BoxedMap extends HeaderParameters1Boxed { + public static final class HeaderParameters1BoxedMap implements HeaderParameters1Boxed { public final HeaderParametersMap data; private HeaderParameters1BoxedMap(HeaderParametersMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/PathParameters.java index 47d0634db96..1e332d50c58 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/PathParameters.java @@ -106,11 +106,11 @@ public PathParametersMap0Builder getBuilderAfterSubDir(Map insta } - public static abstract sealed class PathParameters1Boxed permits PathParameters1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { + @Nullable Object data(); } - public static final class PathParameters1BoxedMap extends PathParameters1Boxed { + public static final class PathParameters1BoxedMap implements PathParameters1Boxed { public final PathParametersMap data; private PathParameters1BoxedMap(PathParametersMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/HeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/HeaderParameters.java index 47ed9c9699c..371790f4e2e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/HeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/HeaderParameters.java @@ -147,11 +147,11 @@ public HeaderParametersMap0Builder getBuilderAfterRequiredBooleanGroup(Map build() { } - public static abstract sealed class Schema01Boxed permits Schema01BoxedList { - public abstract @Nullable Object data(); + public sealed interface Schema01Boxed permits Schema01BoxedList { + @Nullable Object data(); } - public static final class Schema01BoxedList extends Schema01Boxed { + public static final class Schema01BoxedList implements Schema01Boxed { public final SchemaList0 data; private Schema01BoxedList(SchemaList0 data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter1/Schema1.java index 56526ff1a40..e4a23d10208 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter1/Schema1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter1/Schema1.java @@ -37,11 +37,11 @@ public String value() { } - public static abstract sealed class Schema11Boxed permits Schema11BoxedString { - public abstract @Nullable Object data(); + public sealed interface Schema11Boxed permits Schema11BoxedString { + @Nullable Object data(); } - public static final class Schema11BoxedString extends Schema11Boxed { + public static final class Schema11BoxedString implements Schema11Boxed { public final String data; private Schema11BoxedString(String data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter2/Schema2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter2/Schema2.java index 925d0afe23b..51105923072 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter2/Schema2.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter2/Schema2.java @@ -40,11 +40,11 @@ public String value() { } - public static abstract sealed class Items2Boxed permits Items2BoxedString { - public abstract @Nullable Object data(); + public sealed interface Items2Boxed permits Items2BoxedString { + @Nullable Object data(); } - public static final class Items2BoxedString extends Items2Boxed { + public static final class Items2BoxedString implements Items2Boxed { public final String data; private Items2BoxedString(String data) { this.data = data; @@ -159,11 +159,11 @@ public List build() { } - public static abstract sealed class Schema21Boxed permits Schema21BoxedList { - public abstract @Nullable Object data(); + public sealed interface Schema21Boxed permits Schema21BoxedList { + @Nullable Object data(); } - public static final class Schema21BoxedList extends Schema21Boxed { + public static final class Schema21BoxedList implements Schema21Boxed { public final SchemaList2 data; private Schema21BoxedList(SchemaList2 data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter3/Schema3.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter3/Schema3.java index 6b24104bcd0..e345ef30cd1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter3/Schema3.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter3/Schema3.java @@ -37,11 +37,11 @@ public String value() { } - public static abstract sealed class Schema31Boxed permits Schema31BoxedString { - public abstract @Nullable Object data(); + public sealed interface Schema31Boxed permits Schema31BoxedString { + @Nullable Object data(); } - public static final class Schema31BoxedString extends Schema31Boxed { + public static final class Schema31BoxedString implements Schema31Boxed { public final String data; private Schema31BoxedString(String data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter4/Schema4.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter4/Schema4.java index 162470a74ae..be38f5721f7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter4/Schema4.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter4/Schema4.java @@ -81,11 +81,11 @@ public double value() { } - public static abstract sealed class Schema41Boxed permits Schema41BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface Schema41Boxed permits Schema41BoxedNumber { + @Nullable Object data(); } - public static final class Schema41BoxedNumber extends Schema41Boxed { + public static final class Schema41BoxedNumber implements Schema41Boxed { public final Number data; private Schema41BoxedNumber(Number data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter5/Schema5.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter5/Schema5.java index 11afd0a248b..4fb882da5b1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter5/Schema5.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter5/Schema5.java @@ -51,11 +51,11 @@ public float value() { } - public static abstract sealed class Schema51Boxed permits Schema51BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface Schema51Boxed permits Schema51BoxedNumber { + @Nullable Object data(); } - public static final class Schema51BoxedNumber extends Schema51Boxed { + public static final class Schema51BoxedNumber implements Schema51Boxed { public final Number data; private Schema51BoxedNumber(Number data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java index e1efa627279..e11d767aa01 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java @@ -48,11 +48,11 @@ public String value() { } - public static abstract sealed class ApplicationxwwwformurlencodedItemsBoxed permits ApplicationxwwwformurlencodedItemsBoxedString { - public abstract @Nullable Object data(); + public sealed interface ApplicationxwwwformurlencodedItemsBoxed permits ApplicationxwwwformurlencodedItemsBoxedString { + @Nullable Object data(); } - public static final class ApplicationxwwwformurlencodedItemsBoxedString extends ApplicationxwwwformurlencodedItemsBoxed { + public static final class ApplicationxwwwformurlencodedItemsBoxedString implements ApplicationxwwwformurlencodedItemsBoxed { public final String data; private ApplicationxwwwformurlencodedItemsBoxedString(String data) { this.data = data; @@ -167,11 +167,11 @@ public List build() { } - public static abstract sealed class ApplicationxwwwformurlencodedEnumFormStringArrayBoxed permits ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList { - public abstract @Nullable Object data(); + public sealed interface ApplicationxwwwformurlencodedEnumFormStringArrayBoxed permits ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList { + @Nullable Object data(); } - public static final class ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList extends ApplicationxwwwformurlencodedEnumFormStringArrayBoxed { + public static final class ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList implements ApplicationxwwwformurlencodedEnumFormStringArrayBoxed { public final ApplicationxwwwformurlencodedEnumFormStringArrayList data; private ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList(ApplicationxwwwformurlencodedEnumFormStringArrayList data) { this.data = data; @@ -268,11 +268,11 @@ public String value() { } - public static abstract sealed class ApplicationxwwwformurlencodedEnumFormStringBoxed permits ApplicationxwwwformurlencodedEnumFormStringBoxedString { - public abstract @Nullable Object data(); + public sealed interface ApplicationxwwwformurlencodedEnumFormStringBoxed permits ApplicationxwwwformurlencodedEnumFormStringBoxedString { + @Nullable Object data(); } - public static final class ApplicationxwwwformurlencodedEnumFormStringBoxedString extends ApplicationxwwwformurlencodedEnumFormStringBoxed { + public static final class ApplicationxwwwformurlencodedEnumFormStringBoxedString implements ApplicationxwwwformurlencodedEnumFormStringBoxed { public final String data; private ApplicationxwwwformurlencodedEnumFormStringBoxedString(String data) { this.data = data; @@ -449,11 +449,11 @@ public ApplicationxwwwformurlencodedSchemaMapBuilder getBuilderAfterAdditionalPr } - public static abstract sealed class ApplicationxwwwformurlencodedSchema1Boxed permits ApplicationxwwwformurlencodedSchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface ApplicationxwwwformurlencodedSchema1Boxed permits ApplicationxwwwformurlencodedSchema1BoxedMap { + @Nullable Object data(); } - public static final class ApplicationxwwwformurlencodedSchema1BoxedMap extends ApplicationxwwwformurlencodedSchema1Boxed { + public static final class ApplicationxwwwformurlencodedSchema1BoxedMap implements ApplicationxwwwformurlencodedSchema1Boxed { public final ApplicationxwwwformurlencodedSchemaMap data; private ApplicationxwwwformurlencodedSchema1BoxedMap(ApplicationxwwwformurlencodedSchemaMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java index e0b5d153f38..7bc496f3dc2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java @@ -36,11 +36,11 @@ public class ApplicationxwwwformurlencodedSchema { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class ApplicationxwwwformurlencodedIntegerBoxed permits ApplicationxwwwformurlencodedIntegerBoxedNumber { - public abstract @Nullable Object data(); + public sealed interface ApplicationxwwwformurlencodedIntegerBoxed permits ApplicationxwwwformurlencodedIntegerBoxedNumber { + @Nullable Object data(); } - public static final class ApplicationxwwwformurlencodedIntegerBoxedNumber extends ApplicationxwwwformurlencodedIntegerBoxed { + public static final class ApplicationxwwwformurlencodedIntegerBoxedNumber implements ApplicationxwwwformurlencodedIntegerBoxed { public final Number data; private ApplicationxwwwformurlencodedIntegerBoxedNumber(Number data) { this.data = data; @@ -124,11 +124,11 @@ public ApplicationxwwwformurlencodedIntegerBoxedNumber validateAndBox(Number arg } } - public static abstract sealed class ApplicationxwwwformurlencodedInt32Boxed permits ApplicationxwwwformurlencodedInt32BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface ApplicationxwwwformurlencodedInt32Boxed permits ApplicationxwwwformurlencodedInt32BoxedNumber { + @Nullable Object data(); } - public static final class ApplicationxwwwformurlencodedInt32BoxedNumber extends ApplicationxwwwformurlencodedInt32Boxed { + public static final class ApplicationxwwwformurlencodedInt32BoxedNumber implements ApplicationxwwwformurlencodedInt32Boxed { public final Number data; private ApplicationxwwwformurlencodedInt32BoxedNumber(Number data) { this.data = data; @@ -215,11 +215,11 @@ public static ApplicationxwwwformurlencodedInt64 getInstance() { } - public static abstract sealed class ApplicationxwwwformurlencodedNumberBoxed permits ApplicationxwwwformurlencodedNumberBoxedNumber { - public abstract @Nullable Object data(); + public sealed interface ApplicationxwwwformurlencodedNumberBoxed permits ApplicationxwwwformurlencodedNumberBoxedNumber { + @Nullable Object data(); } - public static final class ApplicationxwwwformurlencodedNumberBoxedNumber extends ApplicationxwwwformurlencodedNumberBoxed { + public static final class ApplicationxwwwformurlencodedNumberBoxedNumber implements ApplicationxwwwformurlencodedNumberBoxed { public final Number data; private ApplicationxwwwformurlencodedNumberBoxedNumber(Number data) { this.data = data; @@ -302,11 +302,11 @@ public ApplicationxwwwformurlencodedNumberBoxedNumber validateAndBox(Number arg, } } - public static abstract sealed class ApplicationxwwwformurlencodedFloatBoxed permits ApplicationxwwwformurlencodedFloatBoxedNumber { - public abstract @Nullable Object data(); + public sealed interface ApplicationxwwwformurlencodedFloatBoxed permits ApplicationxwwwformurlencodedFloatBoxedNumber { + @Nullable Object data(); } - public static final class ApplicationxwwwformurlencodedFloatBoxedNumber extends ApplicationxwwwformurlencodedFloatBoxed { + public static final class ApplicationxwwwformurlencodedFloatBoxedNumber implements ApplicationxwwwformurlencodedFloatBoxed { public final Number data; private ApplicationxwwwformurlencodedFloatBoxedNumber(Number data) { this.data = data; @@ -376,11 +376,11 @@ public ApplicationxwwwformurlencodedFloatBoxedNumber validateAndBox(Number arg, } } - public static abstract sealed class ApplicationxwwwformurlencodedDoubleBoxed permits ApplicationxwwwformurlencodedDoubleBoxedNumber { - public abstract @Nullable Object data(); + public sealed interface ApplicationxwwwformurlencodedDoubleBoxed permits ApplicationxwwwformurlencodedDoubleBoxedNumber { + @Nullable Object data(); } - public static final class ApplicationxwwwformurlencodedDoubleBoxedNumber extends ApplicationxwwwformurlencodedDoubleBoxed { + public static final class ApplicationxwwwformurlencodedDoubleBoxedNumber implements ApplicationxwwwformurlencodedDoubleBoxed { public final Number data; private ApplicationxwwwformurlencodedDoubleBoxedNumber(Number data) { this.data = data; @@ -451,11 +451,11 @@ public ApplicationxwwwformurlencodedDoubleBoxedNumber validateAndBox(Number arg, } } - public static abstract sealed class ApplicationxwwwformurlencodedStringBoxed permits ApplicationxwwwformurlencodedStringBoxedString { - public abstract @Nullable Object data(); + public sealed interface ApplicationxwwwformurlencodedStringBoxed permits ApplicationxwwwformurlencodedStringBoxedString { + @Nullable Object data(); } - public static final class ApplicationxwwwformurlencodedStringBoxedString extends ApplicationxwwwformurlencodedStringBoxed { + public static final class ApplicationxwwwformurlencodedStringBoxedString implements ApplicationxwwwformurlencodedStringBoxed { public final String data; private ApplicationxwwwformurlencodedStringBoxedString(String data) { this.data = data; @@ -521,11 +521,11 @@ public ApplicationxwwwformurlencodedStringBoxedString validateAndBox(String arg, } } - public static abstract sealed class ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed permits ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString { - public abstract @Nullable Object data(); + public sealed interface ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed permits ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString { + @Nullable Object data(); } - public static final class ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString extends ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed { + public static final class ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString implements ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed { public final String data; private ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString(String data) { this.data = data; @@ -624,11 +624,11 @@ public static ApplicationxwwwformurlencodedDate getInstance() { } - public static abstract sealed class ApplicationxwwwformurlencodedDateTimeBoxed permits ApplicationxwwwformurlencodedDateTimeBoxedString { - public abstract @Nullable Object data(); + public sealed interface ApplicationxwwwformurlencodedDateTimeBoxed permits ApplicationxwwwformurlencodedDateTimeBoxedString { + @Nullable Object data(); } - public static final class ApplicationxwwwformurlencodedDateTimeBoxedString extends ApplicationxwwwformurlencodedDateTimeBoxed { + public static final class ApplicationxwwwformurlencodedDateTimeBoxedString implements ApplicationxwwwformurlencodedDateTimeBoxed { public final String data; private ApplicationxwwwformurlencodedDateTimeBoxedString(String data) { this.data = data; @@ -698,11 +698,11 @@ public ApplicationxwwwformurlencodedDateTimeBoxedString validateAndBox(String ar } } - public static abstract sealed class ApplicationxwwwformurlencodedPasswordBoxed permits ApplicationxwwwformurlencodedPasswordBoxedString { - public abstract @Nullable Object data(); + public sealed interface ApplicationxwwwformurlencodedPasswordBoxed permits ApplicationxwwwformurlencodedPasswordBoxedString { + @Nullable Object data(); } - public static final class ApplicationxwwwformurlencodedPasswordBoxedString extends ApplicationxwwwformurlencodedPasswordBoxed { + public static final class ApplicationxwwwformurlencodedPasswordBoxedString implements ApplicationxwwwformurlencodedPasswordBoxed { public final String data; private ApplicationxwwwformurlencodedPasswordBoxedString(String data) { this.data = data; @@ -1451,11 +1451,11 @@ public ApplicationxwwwformurlencodedSchemaMap1110Builder getBuilderAfterApplicat } - public static abstract sealed class ApplicationxwwwformurlencodedSchema1Boxed permits ApplicationxwwwformurlencodedSchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface ApplicationxwwwformurlencodedSchema1Boxed permits ApplicationxwwwformurlencodedSchema1BoxedMap { + @Nullable Object data(); } - public static final class ApplicationxwwwformurlencodedSchema1BoxedMap extends ApplicationxwwwformurlencodedSchema1Boxed { + public static final class ApplicationxwwwformurlencodedSchema1BoxedMap implements ApplicationxwwwformurlencodedSchema1Boxed { public final ApplicationxwwwformurlencodedSchemaMap data; private ApplicationxwwwformurlencodedSchema1BoxedMap(ApplicationxwwwformurlencodedSchemaMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/QueryParameters.java index a7c73d7f2d8..9741d953970 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/QueryParameters.java @@ -100,11 +100,11 @@ public QueryParametersMap0Builder getBuilderAfterQuery(Map insta } - public static abstract sealed class QueryParameters1Boxed permits QueryParameters1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface QueryParameters1Boxed permits QueryParameters1BoxedMap { + @Nullable Object data(); } - public static final class QueryParameters1BoxedMap extends QueryParameters1Boxed { + public static final class QueryParameters1BoxedMap implements QueryParameters1Boxed { public final QueryParametersMap data; private QueryParameters1BoxedMap(QueryParametersMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/QueryParameters.java index cda2ba7f59b..a95fb8bd410 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/QueryParameters.java @@ -241,11 +241,11 @@ public QueryParametersMap110Builder getBuilderAfterSomeVar1(Map instance) } - public static abstract sealed class PathParameters1Boxed permits PathParameters1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { + @Nullable Object data(); } - public static final class PathParameters1BoxedMap extends PathParameters1Boxed { + public static final class PathParameters1BoxedMap implements PathParameters1Boxed { public final PathParametersMap data; private PathParameters1BoxedMap(PathParametersMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java index 0d2838e4923..5393f7c4a6b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java @@ -88,11 +88,11 @@ public ApplicationjsonSchemaMapBuilder getBuilderAfterAdditionalProperty(Map data; private Schema01BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -161,7 +161,7 @@ private Schema01BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class Schema01BoxedMap extends Schema01Boxed { + public static final class Schema01BoxedMap implements Schema01Boxed { public final FrozenMap<@Nullable Object> data; private Schema01BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java index b99ef5b4cde..a3e28a7fb09 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java @@ -37,11 +37,11 @@ public class Schema1 { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class Schema01Boxed permits Schema01BoxedString { - public abstract @Nullable Object data(); + public sealed interface Schema01Boxed permits Schema01BoxedString { + @Nullable Object data(); } - public static final class Schema01BoxedString extends Schema01Boxed { + public static final class Schema01BoxedString implements Schema01Boxed { public final String data; private Schema01BoxedString(String data) { this.data = data; @@ -104,11 +104,11 @@ public Schema01BoxedString validateAndBox(String arg, SchemaConfiguration config } } - public static abstract sealed class SomeProp1Boxed permits SomeProp1BoxedVoid, SomeProp1BoxedBoolean, SomeProp1BoxedNumber, SomeProp1BoxedString, SomeProp1BoxedList, SomeProp1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface SomeProp1Boxed permits SomeProp1BoxedVoid, SomeProp1BoxedBoolean, SomeProp1BoxedNumber, SomeProp1BoxedString, SomeProp1BoxedList, SomeProp1BoxedMap { + @Nullable Object data(); } - public static final class SomeProp1BoxedVoid extends SomeProp1Boxed { + public static final class SomeProp1BoxedVoid implements SomeProp1Boxed { public final Void data; private SomeProp1BoxedVoid(Void data) { this.data = data; @@ -119,7 +119,7 @@ private SomeProp1BoxedVoid(Void data) { } } - public static final class SomeProp1BoxedBoolean extends SomeProp1Boxed { + public static final class SomeProp1BoxedBoolean implements SomeProp1Boxed { public final boolean data; private SomeProp1BoxedBoolean(boolean data) { this.data = data; @@ -130,7 +130,7 @@ private SomeProp1BoxedBoolean(boolean data) { } } - public static final class SomeProp1BoxedNumber extends SomeProp1Boxed { + public static final class SomeProp1BoxedNumber implements SomeProp1Boxed { public final Number data; private SomeProp1BoxedNumber(Number data) { this.data = data; @@ -141,7 +141,7 @@ private SomeProp1BoxedNumber(Number data) { } } - public static final class SomeProp1BoxedString extends SomeProp1Boxed { + public static final class SomeProp1BoxedString implements SomeProp1Boxed { public final String data; private SomeProp1BoxedString(String data) { this.data = data; @@ -152,7 +152,7 @@ private SomeProp1BoxedString(String data) { } } - public static final class SomeProp1BoxedList extends SomeProp1Boxed { + public static final class SomeProp1BoxedList implements SomeProp1Boxed { public final FrozenList<@Nullable Object> data; private SomeProp1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -163,7 +163,7 @@ private SomeProp1BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class SomeProp1BoxedMap extends SomeProp1Boxed { + public static final class SomeProp1BoxedMap implements SomeProp1Boxed { public final FrozenMap<@Nullable Object> data; private SomeProp1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; @@ -504,11 +504,11 @@ public SchemaMapBuilder1 getBuilderAfterAdditionalProperty(Map data; private ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -161,7 +161,7 @@ private ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class ApplicationjsonSchema1BoxedMap extends ApplicationjsonSchema1Boxed { + public static final class ApplicationjsonSchema1BoxedMap implements ApplicationjsonSchema1Boxed { public final FrozenMap<@Nullable Object> data; private ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java index 6f0046bd2be..6af881596dd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -37,11 +37,11 @@ public class MultipartformdataSchema { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class Multipartformdata0Boxed permits Multipartformdata0BoxedString { - public abstract @Nullable Object data(); + public sealed interface Multipartformdata0Boxed permits Multipartformdata0BoxedString { + @Nullable Object data(); } - public static final class Multipartformdata0BoxedString extends Multipartformdata0Boxed { + public static final class Multipartformdata0BoxedString implements Multipartformdata0Boxed { public final String data; private Multipartformdata0BoxedString(String data) { this.data = data; @@ -104,11 +104,11 @@ public Multipartformdata0BoxedString validateAndBox(String arg, SchemaConfigurat } } - public static abstract sealed class MultipartformdataSomePropBoxed permits MultipartformdataSomePropBoxedVoid, MultipartformdataSomePropBoxedBoolean, MultipartformdataSomePropBoxedNumber, MultipartformdataSomePropBoxedString, MultipartformdataSomePropBoxedList, MultipartformdataSomePropBoxedMap { - public abstract @Nullable Object data(); + public sealed interface MultipartformdataSomePropBoxed permits MultipartformdataSomePropBoxedVoid, MultipartformdataSomePropBoxedBoolean, MultipartformdataSomePropBoxedNumber, MultipartformdataSomePropBoxedString, MultipartformdataSomePropBoxedList, MultipartformdataSomePropBoxedMap { + @Nullable Object data(); } - public static final class MultipartformdataSomePropBoxedVoid extends MultipartformdataSomePropBoxed { + public static final class MultipartformdataSomePropBoxedVoid implements MultipartformdataSomePropBoxed { public final Void data; private MultipartformdataSomePropBoxedVoid(Void data) { this.data = data; @@ -119,7 +119,7 @@ private MultipartformdataSomePropBoxedVoid(Void data) { } } - public static final class MultipartformdataSomePropBoxedBoolean extends MultipartformdataSomePropBoxed { + public static final class MultipartformdataSomePropBoxedBoolean implements MultipartformdataSomePropBoxed { public final boolean data; private MultipartformdataSomePropBoxedBoolean(boolean data) { this.data = data; @@ -130,7 +130,7 @@ private MultipartformdataSomePropBoxedBoolean(boolean data) { } } - public static final class MultipartformdataSomePropBoxedNumber extends MultipartformdataSomePropBoxed { + public static final class MultipartformdataSomePropBoxedNumber implements MultipartformdataSomePropBoxed { public final Number data; private MultipartformdataSomePropBoxedNumber(Number data) { this.data = data; @@ -141,7 +141,7 @@ private MultipartformdataSomePropBoxedNumber(Number data) { } } - public static final class MultipartformdataSomePropBoxedString extends MultipartformdataSomePropBoxed { + public static final class MultipartformdataSomePropBoxedString implements MultipartformdataSomePropBoxed { public final String data; private MultipartformdataSomePropBoxedString(String data) { this.data = data; @@ -152,7 +152,7 @@ private MultipartformdataSomePropBoxedString(String data) { } } - public static final class MultipartformdataSomePropBoxedList extends MultipartformdataSomePropBoxed { + public static final class MultipartformdataSomePropBoxedList implements MultipartformdataSomePropBoxed { public final FrozenList<@Nullable Object> data; private MultipartformdataSomePropBoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -163,7 +163,7 @@ private MultipartformdataSomePropBoxedList(FrozenList<@Nullable Object> data) { } } - public static final class MultipartformdataSomePropBoxedMap extends MultipartformdataSomePropBoxed { + public static final class MultipartformdataSomePropBoxedMap implements MultipartformdataSomePropBoxed { public final FrozenMap<@Nullable Object> data; private MultipartformdataSomePropBoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; @@ -504,11 +504,11 @@ public MultipartformdataSchemaMapBuilder getBuilderAfterAdditionalProperty(Map data; private ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -161,7 +161,7 @@ private ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data) { } } - public static final class ApplicationjsonSchema1BoxedMap extends ApplicationjsonSchema1Boxed { + public static final class ApplicationjsonSchema1BoxedMap implements ApplicationjsonSchema1Boxed { public final FrozenMap<@Nullable Object> data; private ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.java index 82d23910307..2496b2cc01f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.java @@ -37,11 +37,11 @@ public class MultipartformdataSchema { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class Multipartformdata0Boxed permits Multipartformdata0BoxedString { - public abstract @Nullable Object data(); + public sealed interface Multipartformdata0Boxed permits Multipartformdata0BoxedString { + @Nullable Object data(); } - public static final class Multipartformdata0BoxedString extends Multipartformdata0Boxed { + public static final class Multipartformdata0BoxedString implements Multipartformdata0Boxed { public final String data; private Multipartformdata0BoxedString(String data) { this.data = data; @@ -104,11 +104,11 @@ public Multipartformdata0BoxedString validateAndBox(String arg, SchemaConfigurat } } - public static abstract sealed class MultipartformdataSomePropBoxed permits MultipartformdataSomePropBoxedVoid, MultipartformdataSomePropBoxedBoolean, MultipartformdataSomePropBoxedNumber, MultipartformdataSomePropBoxedString, MultipartformdataSomePropBoxedList, MultipartformdataSomePropBoxedMap { - public abstract @Nullable Object data(); + public sealed interface MultipartformdataSomePropBoxed permits MultipartformdataSomePropBoxedVoid, MultipartformdataSomePropBoxedBoolean, MultipartformdataSomePropBoxedNumber, MultipartformdataSomePropBoxedString, MultipartformdataSomePropBoxedList, MultipartformdataSomePropBoxedMap { + @Nullable Object data(); } - public static final class MultipartformdataSomePropBoxedVoid extends MultipartformdataSomePropBoxed { + public static final class MultipartformdataSomePropBoxedVoid implements MultipartformdataSomePropBoxed { public final Void data; private MultipartformdataSomePropBoxedVoid(Void data) { this.data = data; @@ -119,7 +119,7 @@ private MultipartformdataSomePropBoxedVoid(Void data) { } } - public static final class MultipartformdataSomePropBoxedBoolean extends MultipartformdataSomePropBoxed { + public static final class MultipartformdataSomePropBoxedBoolean implements MultipartformdataSomePropBoxed { public final boolean data; private MultipartformdataSomePropBoxedBoolean(boolean data) { this.data = data; @@ -130,7 +130,7 @@ private MultipartformdataSomePropBoxedBoolean(boolean data) { } } - public static final class MultipartformdataSomePropBoxedNumber extends MultipartformdataSomePropBoxed { + public static final class MultipartformdataSomePropBoxedNumber implements MultipartformdataSomePropBoxed { public final Number data; private MultipartformdataSomePropBoxedNumber(Number data) { this.data = data; @@ -141,7 +141,7 @@ private MultipartformdataSomePropBoxedNumber(Number data) { } } - public static final class MultipartformdataSomePropBoxedString extends MultipartformdataSomePropBoxed { + public static final class MultipartformdataSomePropBoxedString implements MultipartformdataSomePropBoxed { public final String data; private MultipartformdataSomePropBoxedString(String data) { this.data = data; @@ -152,7 +152,7 @@ private MultipartformdataSomePropBoxedString(String data) { } } - public static final class MultipartformdataSomePropBoxedList extends MultipartformdataSomePropBoxed { + public static final class MultipartformdataSomePropBoxedList implements MultipartformdataSomePropBoxed { public final FrozenList<@Nullable Object> data; private MultipartformdataSomePropBoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -163,7 +163,7 @@ private MultipartformdataSomePropBoxedList(FrozenList<@Nullable Object> data) { } } - public static final class MultipartformdataSomePropBoxedMap extends MultipartformdataSomePropBoxed { + public static final class MultipartformdataSomePropBoxedMap implements MultipartformdataSomePropBoxed { public final FrozenMap<@Nullable Object> data; private MultipartformdataSomePropBoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; @@ -504,11 +504,11 @@ public MultipartformdataSchemaMapBuilder getBuilderAfterAdditionalProperty(Map instan } - public static abstract sealed class PathParameters1Boxed permits PathParameters1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { + @Nullable Object data(); } - public static final class PathParameters1BoxedMap extends PathParameters1Boxed { + public static final class PathParameters1BoxedMap implements PathParameters1Boxed { public final PathParametersMap data; private PathParameters1BoxedMap(PathParametersMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java index 1401af64f66..74e94503c1f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -153,11 +153,11 @@ public MultipartformdataSchemaMap0Builder getBuilderAfterMultipartformdataRequir } - public static abstract sealed class MultipartformdataSchema1Boxed permits MultipartformdataSchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface MultipartformdataSchema1Boxed permits MultipartformdataSchema1BoxedMap { + @Nullable Object data(); } - public static final class MultipartformdataSchema1BoxedMap extends MultipartformdataSchema1Boxed { + public static final class MultipartformdataSchema1BoxedMap implements MultipartformdataSchema1Boxed { public final MultipartformdataSchemaMap data; private MultipartformdataSchema1BoxedMap(MultipartformdataSchemaMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.java index b1184b9a807..59cabe26de3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.java @@ -148,11 +148,11 @@ public QueryParametersMap0Builder getBuilderAfterSomeParam(Map build() { } - public static abstract sealed class Schema01Boxed permits Schema01BoxedList { - public abstract @Nullable Object data(); + public sealed interface Schema01Boxed permits Schema01BoxedList { + @Nullable Object data(); } - public static final class Schema01BoxedList extends Schema01Boxed { + public static final class Schema01BoxedList implements Schema01Boxed { public final SchemaList0 data; private Schema01BoxedList(SchemaList0 data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.java index badd1707665..3651c7c2d5f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.java @@ -66,11 +66,11 @@ public List build() { } - public static abstract sealed class Schema11Boxed permits Schema11BoxedList { - public abstract @Nullable Object data(); + public sealed interface Schema11Boxed permits Schema11BoxedList { + @Nullable Object data(); } - public static final class Schema11BoxedList extends Schema11Boxed { + public static final class Schema11BoxedList implements Schema11Boxed { public final SchemaList1 data; private Schema11BoxedList(SchemaList1 data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.java index 2158eb018e6..f054a4eecb2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.java @@ -66,11 +66,11 @@ public List build() { } - public static abstract sealed class Schema21Boxed permits Schema21BoxedList { - public abstract @Nullable Object data(); + public sealed interface Schema21Boxed permits Schema21BoxedList { + @Nullable Object data(); } - public static final class Schema21BoxedList extends Schema21Boxed { + public static final class Schema21BoxedList implements Schema21Boxed { public final SchemaList2 data; private Schema21BoxedList(SchemaList2 data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.java index ce9acdad4cb..03732fd881c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.java @@ -66,11 +66,11 @@ public List build() { } - public static abstract sealed class Schema31Boxed permits Schema31BoxedList { - public abstract @Nullable Object data(); + public sealed interface Schema31Boxed permits Schema31BoxedList { + @Nullable Object data(); } - public static final class Schema31BoxedList extends Schema31Boxed { + public static final class Schema31BoxedList implements Schema31Boxed { public final SchemaList3 data; private Schema31BoxedList(SchemaList3 data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.java index cf4649ff7c8..bc1354e0816 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.java @@ -66,11 +66,11 @@ public List build() { } - public static abstract sealed class Schema41Boxed permits Schema41BoxedList { - public abstract @Nullable Object data(); + public sealed interface Schema41Boxed permits Schema41BoxedList { + @Nullable Object data(); } - public static final class Schema41BoxedList extends Schema41Boxed { + public static final class Schema41BoxedList implements Schema41Boxed { public final SchemaList4 data; private Schema41BoxedList(SchemaList4 data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java index 7175c1fc751..25a817d5bcd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -153,11 +153,11 @@ public MultipartformdataSchemaMap0Builder getBuilderAfterMultipartformdataFile(M } - public static abstract sealed class MultipartformdataSchema1Boxed permits MultipartformdataSchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface MultipartformdataSchema1Boxed permits MultipartformdataSchema1BoxedMap { + @Nullable Object data(); } - public static final class MultipartformdataSchema1BoxedMap extends MultipartformdataSchema1Boxed { + public static final class MultipartformdataSchema1BoxedMap implements MultipartformdataSchema1Boxed { public final MultipartformdataSchemaMap data; private MultipartformdataSchema1BoxedMap(MultipartformdataSchemaMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java index c6fa74941e9..fc986d4f518 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -75,11 +75,11 @@ public List build() { } - public static abstract sealed class MultipartformdataFilesBoxed permits MultipartformdataFilesBoxedList { - public abstract @Nullable Object data(); + public sealed interface MultipartformdataFilesBoxed permits MultipartformdataFilesBoxedList { + @Nullable Object data(); } - public static final class MultipartformdataFilesBoxedList extends MultipartformdataFilesBoxed { + public static final class MultipartformdataFilesBoxedList implements MultipartformdataFilesBoxed { public final MultipartformdataFilesList data; private MultipartformdataFilesBoxedList(MultipartformdataFilesList data) { this.data = data; @@ -228,11 +228,11 @@ public MultipartformdataSchemaMapBuilder getBuilderAfterAdditionalProperty(Map instance) } - public static abstract sealed class Variables1Boxed permits Variables1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Variables1Boxed permits Variables1BoxedMap { + @Nullable Object data(); } - public static final class Variables1BoxedMap extends Variables1Boxed { + public static final class Variables1BoxedMap implements Variables1Boxed { public final VariablesMap data; private Variables1BoxedMap(VariablesMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/QueryParameters.java index a5c9e3e092a..f6c940c8549 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/QueryParameters.java @@ -101,11 +101,11 @@ public QueryParametersMap0Builder getBuilderAfterStatus(Map } - public static abstract sealed class QueryParameters1Boxed permits QueryParameters1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface QueryParameters1Boxed permits QueryParameters1BoxedMap { + @Nullable Object data(); } - public static final class QueryParameters1BoxedMap extends QueryParameters1Boxed { + public static final class QueryParameters1BoxedMap implements QueryParameters1Boxed { public final QueryParametersMap data; private QueryParameters1BoxedMap(QueryParametersMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/parameter0/Schema0.java index d35e2ff93e5..34d131be791 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/parameter0/Schema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/parameter0/Schema0.java @@ -41,11 +41,11 @@ public String value() { } - public static abstract sealed class Items0Boxed permits Items0BoxedString { - public abstract @Nullable Object data(); + public sealed interface Items0Boxed permits Items0BoxedString { + @Nullable Object data(); } - public static final class Items0BoxedString extends Items0Boxed { + public static final class Items0BoxedString implements Items0Boxed { public final String data; private Items0BoxedString(String data) { this.data = data; @@ -161,11 +161,11 @@ public List build() { } - public static abstract sealed class Schema01Boxed permits Schema01BoxedList { - public abstract @Nullable Object data(); + public sealed interface Schema01Boxed permits Schema01BoxedList { + @Nullable Object data(); } - public static final class Schema01BoxedList extends Schema01Boxed { + public static final class Schema01BoxedList implements Schema01Boxed { public final SchemaList0 data; private Schema01BoxedList(SchemaList0 data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.java index 2efe9b4bf04..56f6908ef5a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.java @@ -59,11 +59,11 @@ public String value() { } - public static abstract sealed class VersionBoxed permits VersionBoxedString { - public abstract @Nullable Object data(); + public sealed interface VersionBoxed permits VersionBoxedString { + @Nullable Object data(); } - public static final class VersionBoxedString extends VersionBoxed { + public static final class VersionBoxedString implements VersionBoxed { public final String data; private VersionBoxedString(String data) { this.data = data; @@ -205,11 +205,11 @@ public VariablesMap0Builder getBuilderAfterVersion(Map instance) } - public static abstract sealed class Variables1Boxed permits Variables1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Variables1Boxed permits Variables1BoxedMap { + @Nullable Object data(); } - public static final class Variables1BoxedMap extends Variables1Boxed { + public static final class Variables1BoxedMap implements Variables1Boxed { public final VariablesMap data; private Variables1BoxedMap(VariablesMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/QueryParameters.java index ff64f7038e4..bd729209d1c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/QueryParameters.java @@ -101,11 +101,11 @@ public QueryParametersMap0Builder getBuilderAfterTags(Map> } - public static abstract sealed class QueryParameters1Boxed permits QueryParameters1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface QueryParameters1Boxed permits QueryParameters1BoxedMap { + @Nullable Object data(); } - public static final class QueryParameters1BoxedMap extends QueryParameters1Boxed { + public static final class QueryParameters1BoxedMap implements QueryParameters1Boxed { public final QueryParametersMap data; private QueryParameters1BoxedMap(QueryParametersMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/parameter0/Schema0.java index 28f0533af08..d6effbcad5b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/parameter0/Schema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/parameter0/Schema0.java @@ -66,11 +66,11 @@ public List build() { } - public static abstract sealed class Schema01Boxed permits Schema01BoxedList { - public abstract @Nullable Object data(); + public sealed interface Schema01Boxed permits Schema01BoxedList { + @Nullable Object data(); } - public static final class Schema01BoxedList extends Schema01Boxed { + public static final class Schema01BoxedList implements Schema01Boxed { public final SchemaList0 data; private Schema01BoxedList(SchemaList0 data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/HeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/HeaderParameters.java index ddfc02fcaf8..1183b5a9c35 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/HeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/HeaderParameters.java @@ -93,11 +93,11 @@ public HeaderParametersMapBuilder getBuilderAfterApiKey(Map inst } - public static abstract sealed class HeaderParameters1Boxed permits HeaderParameters1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface HeaderParameters1Boxed permits HeaderParameters1BoxedMap { + @Nullable Object data(); } - public static final class HeaderParameters1BoxedMap extends HeaderParameters1Boxed { + public static final class HeaderParameters1BoxedMap implements HeaderParameters1Boxed { public final HeaderParametersMap data; private HeaderParameters1BoxedMap(HeaderParametersMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PathParameters.java index a1779cef068..0f0c891cae9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PathParameters.java @@ -118,11 +118,11 @@ public PathParametersMap0Builder getBuilderAfterPetId(Map instan } - public static abstract sealed class PathParameters1Boxed permits PathParameters1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { + @Nullable Object data(); } - public static final class PathParameters1BoxedMap extends PathParameters1Boxed { + public static final class PathParameters1BoxedMap implements PathParameters1Boxed { public final PathParametersMap data; private PathParameters1BoxedMap(PathParametersMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PathParameters.java index 996d86639b4..8b2659e54ff 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PathParameters.java @@ -118,11 +118,11 @@ public PathParametersMap0Builder getBuilderAfterPetId(Map instan } - public static abstract sealed class PathParameters1Boxed permits PathParameters1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { + @Nullable Object data(); } - public static final class PathParameters1BoxedMap extends PathParameters1Boxed { + public static final class PathParameters1BoxedMap implements PathParameters1Boxed { public final PathParametersMap data; private PathParameters1BoxedMap(PathParametersMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PathParameters.java index 6a66cae2b52..cec5907c4a3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PathParameters.java @@ -118,11 +118,11 @@ public PathParametersMap0Builder getBuilderAfterPetId(Map instan } - public static abstract sealed class PathParameters1Boxed permits PathParameters1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { + @Nullable Object data(); } - public static final class PathParameters1BoxedMap extends PathParameters1Boxed { + public static final class PathParameters1BoxedMap implements PathParameters1Boxed { public final PathParametersMap data; private PathParameters1BoxedMap(PathParametersMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java index 0a75c293704..212be354622 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java @@ -143,11 +143,11 @@ public ApplicationxwwwformurlencodedSchemaMapBuilder getBuilderAfterAdditionalPr } - public static abstract sealed class ApplicationxwwwformurlencodedSchema1Boxed permits ApplicationxwwwformurlencodedSchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface ApplicationxwwwformurlencodedSchema1Boxed permits ApplicationxwwwformurlencodedSchema1BoxedMap { + @Nullable Object data(); } - public static final class ApplicationxwwwformurlencodedSchema1BoxedMap extends ApplicationxwwwformurlencodedSchema1Boxed { + public static final class ApplicationxwwwformurlencodedSchema1BoxedMap implements ApplicationxwwwformurlencodedSchema1Boxed { public final ApplicationxwwwformurlencodedSchemaMap data; private ApplicationxwwwformurlencodedSchema1BoxedMap(ApplicationxwwwformurlencodedSchemaMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PathParameters.java index 77c69fc2f6a..4a70ca78b84 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PathParameters.java @@ -118,11 +118,11 @@ public PathParametersMap0Builder getBuilderAfterPetId(Map instan } - public static abstract sealed class PathParameters1Boxed permits PathParameters1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { + @Nullable Object data(); } - public static final class PathParameters1BoxedMap extends PathParameters1Boxed { + public static final class PathParameters1BoxedMap implements PathParameters1Boxed { public final PathParametersMap data; private PathParameters1BoxedMap(PathParametersMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java index 5a8543bc019..0426a182293 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -144,11 +144,11 @@ public MultipartformdataSchemaMapBuilder getBuilderAfterAdditionalProperty(Map inst } - public static abstract sealed class PathParameters1Boxed permits PathParameters1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { + @Nullable Object data(); } - public static final class PathParameters1BoxedMap extends PathParameters1Boxed { + public static final class PathParameters1BoxedMap implements PathParameters1Boxed { public final PathParametersMap data; private PathParameters1BoxedMap(PathParametersMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/PathParameters.java index ce7a63a97bd..ba7bcfec24d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/PathParameters.java @@ -118,11 +118,11 @@ public PathParametersMap0Builder getBuilderAfterOrderId(Map inst } - public static abstract sealed class PathParameters1Boxed permits PathParameters1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { + @Nullable Object data(); } - public static final class PathParameters1BoxedMap extends PathParameters1Boxed { + public static final class PathParameters1BoxedMap implements PathParameters1Boxed { public final PathParametersMap data; private PathParameters1BoxedMap(PathParametersMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/parameter0/Schema0.java index 8854c892b6b..7ae1b592763 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/parameter0/Schema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/parameter0/Schema0.java @@ -19,11 +19,11 @@ public class Schema0 { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class Schema01Boxed permits Schema01BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface Schema01Boxed permits Schema01BoxedNumber { + @Nullable Object data(); } - public static final class Schema01BoxedNumber extends Schema01Boxed { + public static final class Schema01BoxedNumber implements Schema01Boxed { public final Number data; private Schema01BoxedNumber(Number data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/QueryParameters.java index 7e32294aabf..cb9cb3ecfe6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/QueryParameters.java @@ -155,11 +155,11 @@ public QueryParametersMap10Builder getBuilderAfterUsername(Map ins } - public static abstract sealed class PathParameters1Boxed permits PathParameters1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { + @Nullable Object data(); } - public static final class PathParameters1BoxedMap extends PathParameters1Boxed { + public static final class PathParameters1BoxedMap implements PathParameters1Boxed { public final PathParametersMap data; private PathParameters1BoxedMap(PathParametersMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/PathParameters.java index cddaad784cd..30de9a2041b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/PathParameters.java @@ -100,11 +100,11 @@ public PathParametersMap0Builder getBuilderAfterUsername(Map ins } - public static abstract sealed class PathParameters1Boxed permits PathParameters1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { + @Nullable Object data(); } - public static final class PathParameters1BoxedMap extends PathParameters1Boxed { + public static final class PathParameters1BoxedMap implements PathParameters1Boxed { public final PathParametersMap data; private PathParameters1BoxedMap(PathParametersMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/PathParameters.java index f215c8e51f0..71367c7f693 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/PathParameters.java @@ -100,11 +100,11 @@ public PathParametersMap0Builder getBuilderAfterUsername(Map ins } - public static abstract sealed class PathParameters1Boxed permits PathParameters1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { + @Nullable Object data(); } - public static final class PathParameters1BoxedMap extends PathParameters1Boxed { + public static final class PathParameters1BoxedMap implements PathParameters1Boxed { public final PathParametersMap data; private PathParameters1BoxedMap(PathParametersMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java index 538a7c77433..96de973b43c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java @@ -9,6 +9,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import com.google.gson.Gson; + import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.mediatype.MediaType; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Variables.java index 80b3d1b4dc3..5b9bc47a17a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Variables.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Variables.java @@ -60,11 +60,11 @@ public String value() { } - public static abstract sealed class ServerBoxed permits ServerBoxedString { - public abstract @Nullable Object data(); + public sealed interface ServerBoxed permits ServerBoxedString { + @Nullable Object data(); } - public static final class ServerBoxedString extends ServerBoxed { + public static final class ServerBoxedString implements ServerBoxed { public final String data; private ServerBoxedString(String data) { this.data = data; @@ -156,11 +156,11 @@ public String value() { } - public static abstract sealed class PortBoxed permits PortBoxedString { - public abstract @Nullable Object data(); + public sealed interface PortBoxed permits PortBoxedString { + @Nullable Object data(); } - public static final class PortBoxedString extends PortBoxed { + public static final class PortBoxedString implements PortBoxed { public final String data; private PortBoxedString(String data) { this.data = data; @@ -362,11 +362,11 @@ public VariablesMap10Builder getBuilderAfterServer(Map instance) } - public static abstract sealed class Variables1Boxed permits Variables1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Variables1Boxed permits Variables1BoxedMap { + @Nullable Object data(); } - public static final class Variables1BoxedMap extends Variables1Boxed { + public static final class Variables1BoxedMap implements Variables1Boxed { public final VariablesMap data; private Variables1BoxedMap(VariablesMap data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Variables.java index 9168b09f84d..3b98e30c4ed 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Variables.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Variables.java @@ -59,11 +59,11 @@ public String value() { } - public static abstract sealed class VersionBoxed permits VersionBoxedString { - public abstract @Nullable Object data(); + public sealed interface VersionBoxed permits VersionBoxedString { + @Nullable Object data(); } - public static final class VersionBoxedString extends VersionBoxed { + public static final class VersionBoxedString implements VersionBoxed { public final String data; private VersionBoxedString(String data) { this.data = data; @@ -205,11 +205,11 @@ public VariablesMap0Builder getBuilderAfterVersion(Map instance) } - public static abstract sealed class Variables1Boxed permits Variables1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Variables1Boxed permits Variables1BoxedMap { + @Nullable Object data(); } - public static final class Variables1BoxedMap extends Variables1Boxed { + public static final class Variables1BoxedMap implements Variables1Boxed { public final VariablesMap data; private Variables1BoxedMap(VariablesMap data) { this.data = data; diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedBoolean.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedBoolean.hbs index 6f27595b2ba..58b47479e2f 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedBoolean.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedBoolean.hbs @@ -1,7 +1,7 @@ {{#if forDocs}} {{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces (join jsonPathPiece.pascalCase "BoxedBoolean" "")) }} public static final class {{jsonPathPiece.pascalCase}}BoxedBoolean
-extends [{{jsonPathPiece.pascalCase}}Boxed](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxed" "")) }}) +implements [{{jsonPathPiece.pascalCase}}Boxed](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxed" "")) }}) a boxed class to store validated boolean payloads, sealed permits class implementation @@ -16,7 +16,7 @@ a boxed class to store validated boolean payloads, sealed permits class implemen | boolean | data
validated payload | {{else}} -public static final class {{jsonPathPiece.pascalCase}}BoxedBoolean extends {{jsonPathPiece.pascalCase}}Boxed { +public static final class {{jsonPathPiece.pascalCase}}BoxedBoolean implements {{jsonPathPiece.pascalCase}}Boxed { public final boolean data; private {{jsonPathPiece.pascalCase}}BoxedBoolean(boolean data) { this.data = data; diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedClass.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedClass.hbs index e1293b7db28..131bc2ea8b6 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedClass.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedClass.hbs @@ -1,6 +1,6 @@ {{#if forDocs}} {{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces (join jsonPathPiece.pascalCase "Boxed" "")) }} -public static abstract sealed class {{jsonPathPiece.pascalCase}}Boxed
+public sealed interface {{jsonPathPiece.pascalCase}}Boxed
permits
{{#each types}} {{#eq this "null"}} @@ -29,11 +29,11 @@ permits
[{{jsonPathPiece.pascalCase}}BoxedMap](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxedmap" ""))}}) {{/each}} -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes {{else}} -public static abstract sealed class {{jsonPathPiece.pascalCase}}Boxed permits {{#each types}}{{jsonPathPiece.pascalCase}}Boxed{{#eq this "null"}}Void{{/eq}}{{#eq this "boolean"}}Boolean{{/eq}}{{#or (eq this "number") (eq this "integer")}}Number{{/or}}{{#and (eq this "string") (neq ../format "binary") }}String{{/and}}{{#eq this "array"}}List{{/eq}}{{#eq this "object"}}Map{{/eq}}{{#unless @last}}, {{/unless}}{{else}}{{jsonPathPiece.pascalCase}}BoxedVoid, {{jsonPathPiece.pascalCase}}BoxedBoolean, {{jsonPathPiece.pascalCase}}BoxedNumber, {{jsonPathPiece.pascalCase}}BoxedString, {{jsonPathPiece.pascalCase}}BoxedList, {{jsonPathPiece.pascalCase}}BoxedMap{{/each}} { - public abstract @Nullable Object data(); +public sealed interface {{jsonPathPiece.pascalCase}}Boxed permits {{#each types}}{{jsonPathPiece.pascalCase}}Boxed{{#eq this "null"}}Void{{/eq}}{{#eq this "boolean"}}Boolean{{/eq}}{{#or (eq this "number") (eq this "integer")}}Number{{/or}}{{#and (eq this "string") (neq ../format "binary") }}String{{/and}}{{#eq this "array"}}List{{/eq}}{{#eq this "object"}}Map{{/eq}}{{#unless @last}}, {{/unless}}{{else}}{{jsonPathPiece.pascalCase}}BoxedVoid, {{jsonPathPiece.pascalCase}}BoxedBoolean, {{jsonPathPiece.pascalCase}}BoxedNumber, {{jsonPathPiece.pascalCase}}BoxedString, {{jsonPathPiece.pascalCase}}BoxedList, {{jsonPathPiece.pascalCase}}BoxedMap{{/each}} { + @Nullable Object data(); } {{/if}} \ No newline at end of file diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedList.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedList.hbs index 5a4312338d3..4d8a6bc57aa 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedList.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedList.hbs @@ -1,7 +1,7 @@ {{#if forDocs}} {{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces (join jsonPathPiece.pascalCase "BoxedList" "")) }} public static final class {{jsonPathPiece.pascalCase}}BoxedList
-extends [{{jsonPathPiece.pascalCase}}Boxed](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxed" "")) }}) +implements [{{jsonPathPiece.pascalCase}}Boxed](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxed" "")) }}) a boxed class to store validated List payloads, sealed permits class implementation @@ -16,7 +16,7 @@ a boxed class to store validated List payloads, sealed permits class implementat | {{#if arrayOutputJsonPathPiece}}[{{arrayOutputJsonPathPiece.pascalCase}}](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces arrayOutputJsonPathPiece) }}){{else}}FrozenList<@Nullable Object>{{/if}} | data
validated payload | {{else}} -public static final class {{jsonPathPiece.pascalCase}}BoxedList extends {{jsonPathPiece.pascalCase}}Boxed { +public static final class {{jsonPathPiece.pascalCase}}BoxedList implements {{jsonPathPiece.pascalCase}}Boxed { public final {{#if arrayOutputJsonPathPiece}}{{arrayOutputJsonPathPiece.pascalCase}}{{else}}FrozenList<@Nullable Object>{{/if}} data; private {{jsonPathPiece.pascalCase}}BoxedList({{#if arrayOutputJsonPathPiece}}{{arrayOutputJsonPathPiece.pascalCase}}{{else}}FrozenList<@Nullable Object>{{/if}} data) { this.data = data; diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedMap.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedMap.hbs index fee19a270c2..f2bdb1d16fa 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedMap.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedMap.hbs @@ -1,7 +1,7 @@ {{#if forDocs}} {{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces (join jsonPathPiece.pascalCase "BoxedMap" "")) }} public static final class {{jsonPathPiece.pascalCase}}BoxedMap
-extends [{{jsonPathPiece.pascalCase}}Boxed](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxed" "")) }}) +implements [{{jsonPathPiece.pascalCase}}Boxed](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxed" "")) }}) a boxed class to store validated Map payloads, sealed permits class implementation @@ -16,7 +16,7 @@ a boxed class to store validated Map payloads, sealed permits class implementati | {{#if mapOutputJsonPathPiece}}[{{mapOutputJsonPathPiece.pascalCase}}](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces mapOutputJsonPathPiece) }}){{else}}FrozenMap<@Nullable Object>{{/if}} | data
validated payload | {{else}} -public static final class {{jsonPathPiece.pascalCase}}BoxedMap extends {{jsonPathPiece.pascalCase}}Boxed { +public static final class {{jsonPathPiece.pascalCase}}BoxedMap implements {{jsonPathPiece.pascalCase}}Boxed { public final {{#if mapOutputJsonPathPiece}}{{mapOutputJsonPathPiece.pascalCase}}{{else}}FrozenMap<@Nullable Object>{{/if}} data; private {{jsonPathPiece.pascalCase}}BoxedMap({{#if mapOutputJsonPathPiece}}{{mapOutputJsonPathPiece.pascalCase}}{{else}}FrozenMap<@Nullable Object>{{/if}} data) { this.data = data; diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedNumber.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedNumber.hbs index c744815b3b2..a7bec7811c3 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedNumber.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedNumber.hbs @@ -1,7 +1,7 @@ {{#if forDocs}} {{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces (join jsonPathPiece.pascalCase "BoxedNumber" "")) }} public static final class {{jsonPathPiece.pascalCase}}BoxedNumber
-extends [{{jsonPathPiece.pascalCase}}Boxed](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxed" "")) }}) +implements [{{jsonPathPiece.pascalCase}}Boxed](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxed" "")) }}) a boxed class to store validated Number payloads, sealed permits class implementation @@ -16,7 +16,7 @@ a boxed class to store validated Number payloads, sealed permits class implement | Number | data
validated payload | {{else}} -public static final class {{jsonPathPiece.pascalCase}}BoxedNumber extends {{jsonPathPiece.pascalCase}}Boxed { +public static final class {{jsonPathPiece.pascalCase}}BoxedNumber implements {{jsonPathPiece.pascalCase}}Boxed { public final Number data; private {{jsonPathPiece.pascalCase}}BoxedNumber(Number data) { this.data = data; diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedString.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedString.hbs index a6db1ef7b54..47eb505ed1b 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedString.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedString.hbs @@ -1,7 +1,7 @@ {{#if forDocs}} {{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces (join jsonPathPiece.pascalCase "BoxedString" "")) }} public static final class {{jsonPathPiece.pascalCase}}BoxedString
-extends [{{jsonPathPiece.pascalCase}}Boxed](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxed" "")) }}) +implements [{{jsonPathPiece.pascalCase}}Boxed](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxed" "")) }}) a boxed class to store validated String payloads, sealed permits class implementation @@ -16,7 +16,7 @@ a boxed class to store validated String payloads, sealed permits class implement | String | data
validated payload | {{else}} -public static final class {{jsonPathPiece.pascalCase}}BoxedString extends {{jsonPathPiece.pascalCase}}Boxed { +public static final class {{jsonPathPiece.pascalCase}}BoxedString implements {{jsonPathPiece.pascalCase}}Boxed { public final String data; private {{jsonPathPiece.pascalCase}}BoxedString(String data) { this.data = data; diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedVoid.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedVoid.hbs index cd77ecdcdaa..5270ec70de9 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedVoid.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedVoid.hbs @@ -1,7 +1,7 @@ {{#if forDocs}} {{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces (join jsonPathPiece.pascalCase "BoxedVoid" "")) }} public static final class {{jsonPathPiece.pascalCase}}BoxedVoid
-extends [{{jsonPathPiece.pascalCase}}Boxed](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxed" "")) }}) +implements [{{jsonPathPiece.pascalCase}}Boxed](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxed" "")) }}) a boxed class to store validated null payloads, sealed permits class implementation @@ -16,7 +16,7 @@ a boxed class to store validated null payloads, sealed permits class implementat | Void | data
validated payload | {{else}} -public static final class {{jsonPathPiece.pascalCase}}BoxedVoid extends {{jsonPathPiece.pascalCase}}Boxed { +public static final class {{jsonPathPiece.pascalCase}}BoxedVoid implements {{jsonPathPiece.pascalCase}}Boxed { public final Void data; private {{jsonPathPiece.pascalCase}}BoxedVoid(Void data) { this.data = data; diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/Schema_doc.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/Schema_doc.hbs index 4e3b2d874d2..98ed0f441c3 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/Schema_doc.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/Schema_doc.hbs @@ -14,7 +14,7 @@ extends [{{refInfo.refClass}}]({{docRoot}}{{#with refInfo.ref}}{{pathFromDocRoot 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 +- abstract sealed interfaces which store validated payloads, java version of a sum type - boxed classes which store validated payloads, sealed permits class implementations {{#if containsArrayOutputClass}} - classes to store validated list payloads, extends FrozenList From 4c73ce3574eae476413a34f530fed4de45abe973 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Mon, 19 Feb 2024 20:31:03 -0800 Subject: [PATCH 05/50] Changes all json schema selead clases to sealed interfaces --- .../client/schemas/AnyTypeJsonSchema.java | 14 +++++++------- .../client/schemas/BooleanJsonSchema.java | 6 +++--- .../client/schemas/DateJsonSchema.java | 6 +++--- .../client/schemas/DateTimeJsonSchema.java | 6 +++--- .../client/schemas/DecimalJsonSchema.java | 6 +++--- .../client/schemas/DoubleJsonSchema.java | 6 +++--- .../client/schemas/FloatJsonSchema.java | 6 +++--- .../client/schemas/Int32JsonSchema.java | 6 +++--- .../client/schemas/Int64JsonSchema.java | 6 +++--- .../client/schemas/IntJsonSchema.java | 6 +++--- .../client/schemas/ListJsonSchema.java | 6 +++--- .../client/schemas/MapJsonSchema.java | 6 +++--- .../client/schemas/NotAnyTypeJsonSchema.java | 16 ++++++++-------- .../client/schemas/NullJsonSchema.java | 6 +++--- .../client/schemas/NumberJsonSchema.java | 6 +++--- .../client/schemas/StringJsonSchema.java | 6 +++--- .../client/schemas/UuidJsonSchema.java | 6 +++--- .../validation/UnsetAnyTypeJsonSchema.java | 16 ++++++++-------- .../packagename/schemas/AnyTypeJsonSchema.hbs | 14 +++++++------- .../packagename/schemas/BooleanJsonSchema.hbs | 6 +++--- .../java/packagename/schemas/DateJsonSchema.hbs | 6 +++--- .../packagename/schemas/DateTimeJsonSchema.hbs | 6 +++--- .../packagename/schemas/DecimalJsonSchema.hbs | 6 +++--- .../packagename/schemas/DoubleJsonSchema.hbs | 6 +++--- .../java/packagename/schemas/FloatJsonSchema.hbs | 6 +++--- .../java/packagename/schemas/Int32JsonSchema.hbs | 6 +++--- .../java/packagename/schemas/Int64JsonSchema.hbs | 6 +++--- .../java/packagename/schemas/IntJsonSchema.hbs | 6 +++--- .../java/packagename/schemas/ListJsonSchema.hbs | 6 +++--- .../java/packagename/schemas/MapJsonSchema.hbs | 6 +++--- .../packagename/schemas/NotAnyTypeJsonSchema.hbs | 16 ++++++++-------- .../java/packagename/schemas/NullJsonSchema.hbs | 6 +++--- .../packagename/schemas/NumberJsonSchema.hbs | 6 +++--- .../packagename/schemas/StringJsonSchema.hbs | 6 +++--- .../java/packagename/schemas/UuidJsonSchema.hbs | 6 +++--- .../validation/UnsetAnyTypeJsonSchema.hbs | 16 ++++++++-------- 36 files changed, 136 insertions(+), 136 deletions(-) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java index ee6800e54ad..7b0ffcbded5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java @@ -31,10 +31,10 @@ import java.util.UUID; public class AnyTypeJsonSchema { - public static abstract sealed class AnyTypeJsonSchema1Boxed permits AnyTypeJsonSchema1BoxedVoid, AnyTypeJsonSchema1BoxedBoolean, AnyTypeJsonSchema1BoxedNumber, AnyTypeJsonSchema1BoxedString, AnyTypeJsonSchema1BoxedList, AnyTypeJsonSchema1BoxedMap { + public sealed interface AnyTypeJsonSchema1Boxed permits AnyTypeJsonSchema1BoxedVoid, AnyTypeJsonSchema1BoxedBoolean, AnyTypeJsonSchema1BoxedNumber, AnyTypeJsonSchema1BoxedString, AnyTypeJsonSchema1BoxedList, AnyTypeJsonSchema1BoxedMap { public abstract @Nullable Object data(); } - public static final class AnyTypeJsonSchema1BoxedVoid extends AnyTypeJsonSchema1Boxed { + public static final class AnyTypeJsonSchema1BoxedVoid implements AnyTypeJsonSchema1Boxed { public final Void data; private AnyTypeJsonSchema1BoxedVoid(Void data) { this.data = data; @@ -44,7 +44,7 @@ private AnyTypeJsonSchema1BoxedVoid(Void data) { return data; } } - public static final class AnyTypeJsonSchema1BoxedBoolean extends AnyTypeJsonSchema1Boxed { + public static final class AnyTypeJsonSchema1BoxedBoolean implements AnyTypeJsonSchema1Boxed { public final boolean data; private AnyTypeJsonSchema1BoxedBoolean(boolean data) { this.data = data; @@ -54,7 +54,7 @@ private AnyTypeJsonSchema1BoxedBoolean(boolean data) { return data; } } - public static final class AnyTypeJsonSchema1BoxedNumber extends AnyTypeJsonSchema1Boxed { + public static final class AnyTypeJsonSchema1BoxedNumber implements AnyTypeJsonSchema1Boxed { public final Number data; private AnyTypeJsonSchema1BoxedNumber(Number data) { this.data = data; @@ -64,7 +64,7 @@ private AnyTypeJsonSchema1BoxedNumber(Number data) { return data; } } - public static final class AnyTypeJsonSchema1BoxedString extends AnyTypeJsonSchema1Boxed { + public static final class AnyTypeJsonSchema1BoxedString implements AnyTypeJsonSchema1Boxed { public final String data; private AnyTypeJsonSchema1BoxedString(String data) { this.data = data; @@ -74,7 +74,7 @@ private AnyTypeJsonSchema1BoxedString(String data) { return data; } } - public static final class AnyTypeJsonSchema1BoxedList extends AnyTypeJsonSchema1Boxed { + public static final class AnyTypeJsonSchema1BoxedList implements AnyTypeJsonSchema1Boxed { public final FrozenList<@Nullable Object> data; private AnyTypeJsonSchema1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -84,7 +84,7 @@ private AnyTypeJsonSchema1BoxedList(FrozenList<@Nullable Object> data) { return data; } } - public static final class AnyTypeJsonSchema1BoxedMap extends AnyTypeJsonSchema1Boxed { + public static final class AnyTypeJsonSchema1BoxedMap implements AnyTypeJsonSchema1Boxed { public final FrozenMap<@Nullable Object> data; private AnyTypeJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java index 9cb93203682..f98ea1300f1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java @@ -18,10 +18,10 @@ import java.util.Set; public class BooleanJsonSchema { - public static abstract sealed class BooleanJsonSchema1Boxed permits BooleanJsonSchema1BoxedBoolean { - public abstract @Nullable Object data(); + public sealed interface BooleanJsonSchema1Boxed permits BooleanJsonSchema1BoxedBoolean { + @Nullable Object data(); } - public static final class BooleanJsonSchema1BoxedBoolean extends BooleanJsonSchema1Boxed { + public static final class BooleanJsonSchema1BoxedBoolean implements BooleanJsonSchema1Boxed { public final boolean data; private BooleanJsonSchema1BoxedBoolean(boolean data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java index 48da817d9b1..d3945ea53a6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java @@ -19,10 +19,10 @@ import java.util.Set; public class DateJsonSchema { - public static abstract sealed class DateJsonSchema1Boxed permits DateJsonSchema1BoxedString { - public abstract @Nullable Object data(); + public sealed interface DateJsonSchema1Boxed permits DateJsonSchema1BoxedString { + @Nullable Object data(); } - public static final class DateJsonSchema1BoxedString extends DateJsonSchema1Boxed { + public static final class DateJsonSchema1BoxedString implements DateJsonSchema1Boxed { public final String data; private DateJsonSchema1BoxedString(String data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java index 9e048ab2c07..14397b104ff 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java @@ -19,10 +19,10 @@ import java.util.Set; public class DateTimeJsonSchema { - public static abstract sealed class DateTimeJsonSchema1Boxed permits DateTimeJsonSchema1BoxedString { - public abstract @Nullable Object data(); + public sealed interfaceDateTimeJsonSchema1Boxed permits DateTimeJsonSchema1BoxedString { + @Nullable Object data(); } - public static final class DateTimeJsonSchema1BoxedString extends DateTimeJsonSchema1Boxed { + public static final class DateTimeJsonSchema1BoxedString implements DateTimeJsonSchema1Boxed { public final String data; private DateTimeJsonSchema1BoxedString(String data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java index af820a6b251..14e2f698308 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java @@ -18,10 +18,10 @@ import java.util.Set; public class DecimalJsonSchema { - public static abstract sealed class DecimalJsonSchema1Boxed permits DecimalJsonSchema1BoxedString { - public abstract @Nullable Object data(); + public sealed interface DecimalJsonSchema1Boxed permits DecimalJsonSchema1BoxedString { + @Nullable Object data(); } - public static final class DecimalJsonSchema1BoxedString extends DecimalJsonSchema1Boxed { + public static final class DecimalJsonSchema1BoxedString implements DecimalJsonSchema1Boxed { public final String data; private DecimalJsonSchema1BoxedString(String data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java index 8219f3ca213..1f3e97218ce 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java @@ -18,10 +18,10 @@ import java.util.Set; public class DoubleJsonSchema { - public static abstract sealed class DoubleJsonSchema1Boxed permits DoubleJsonSchema1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface DoubleJsonSchema1Boxed permits DoubleJsonSchema1BoxedNumber { + @Nullable Object data(); } - public static final class DoubleJsonSchema1BoxedNumber extends DoubleJsonSchema1Boxed { + public static final class DoubleJsonSchema1BoxedNumber implements DoubleJsonSchema1Boxed { public final Number data; private DoubleJsonSchema1BoxedNumber(Number data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java index 42e3806e845..cf49e56e289 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java @@ -18,10 +18,10 @@ import java.util.Set; public class FloatJsonSchema { - public static abstract sealed class FloatJsonSchema1Boxed permits FloatJsonSchema1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface FloatJsonSchema1Boxed permits FloatJsonSchema1BoxedNumber { + @Nullable Object data(); } - public static final class FloatJsonSchema1BoxedNumber extends FloatJsonSchema1Boxed { + public static final class FloatJsonSchema1BoxedNumber implements FloatJsonSchema1Boxed { public final Number data; private FloatJsonSchema1BoxedNumber(Number data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java index c9ae84e53f4..c31511f9f33 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java @@ -18,10 +18,10 @@ import java.util.Set; public class Int32JsonSchema { - public static abstract sealed class Int32JsonSchema1Boxed permits Int32JsonSchema1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface Int32JsonSchema1Boxed permits Int32JsonSchema1BoxedNumber { + @Nullable Object data(); } - public static final class Int32JsonSchema1BoxedNumber extends Int32JsonSchema1Boxed { + public static final class Int32JsonSchema1BoxedNumber implements Int32JsonSchema1Boxed { public final Number data; private Int32JsonSchema1BoxedNumber(Number data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java index e74999992ef..c51dd1f94e5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java @@ -18,10 +18,10 @@ import java.util.Set; public class Int64JsonSchema { - public static abstract sealed class Int64JsonSchema1Boxed permits Int64JsonSchema1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface Int64JsonSchema1Boxed permits Int64JsonSchema1BoxedNumber { + @Nullable Object data(); } - public static final class Int64JsonSchema1BoxedNumber extends Int64JsonSchema1Boxed { + public static final class Int64JsonSchema1BoxedNumber implements Int64JsonSchema1Boxed { public final Number data; private Int64JsonSchema1BoxedNumber(Number data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java index 42568a55f34..4556a06da0a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java @@ -18,10 +18,10 @@ import java.util.Set; public class IntJsonSchema { - public static abstract sealed class IntJsonSchema1Boxed permits IntJsonSchema1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface IntJsonSchema1Boxed permits IntJsonSchema1BoxedNumber { + Object data(); } - public static final class IntJsonSchema1BoxedNumber extends IntJsonSchema1Boxed { + public static final class IntJsonSchema1BoxedNumber implements IntJsonSchema1Boxed { public final Number data; private IntJsonSchema1BoxedNumber(Number data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java index 855e63d6573..38ab9e0cc42 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java @@ -21,10 +21,10 @@ import java.util.Set; public class ListJsonSchema { - public static abstract sealed class ListJsonSchema1Boxed permits ListJsonSchema1BoxedList { - public abstract @Nullable Object data(); + public sealed interface ListJsonSchema1Boxed permits ListJsonSchema1BoxedList { + @Nullable Object data(); } - public static final class ListJsonSchema1BoxedList extends ListJsonSchema1Boxed { + public static final class ListJsonSchema1BoxedList implements ListJsonSchema1Boxed { public final FrozenList<@Nullable Object> data; private ListJsonSchema1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java index 568471e3c8d..ab2765a0862 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java @@ -22,10 +22,10 @@ import java.util.Set; public class MapJsonSchema { - public static abstract sealed class MapJsonSchema1Boxed permits MapJsonSchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface MapJsonSchema1Boxed permits MapJsonSchema1BoxedMap { + @Nullable Object data(); } - public static final class MapJsonSchema1BoxedMap extends MapJsonSchema1Boxed { + public static final class MapJsonSchema1BoxedMap implements MapJsonSchema1Boxed { public final FrozenMap<@Nullable Object> data; private MapJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java index 705bb7aa6b9..e790fba11f2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java @@ -31,10 +31,10 @@ import java.util.UUID; public class NotAnyTypeJsonSchema { - public static abstract sealed class NotAnyTypeJsonSchema1Boxed permits NotAnyTypeJsonSchema1BoxedVoid, NotAnyTypeJsonSchema1BoxedBoolean, NotAnyTypeJsonSchema1BoxedNumber, NotAnyTypeJsonSchema1BoxedString, NotAnyTypeJsonSchema1BoxedList, NotAnyTypeJsonSchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface NotAnyTypeJsonSchema1Boxed permits NotAnyTypeJsonSchema1BoxedVoid, NotAnyTypeJsonSchema1BoxedBoolean, NotAnyTypeJsonSchema1BoxedNumber, NotAnyTypeJsonSchema1BoxedString, NotAnyTypeJsonSchema1BoxedList, NotAnyTypeJsonSchema1BoxedMap { + @Nullable Object data(); } - public static final class NotAnyTypeJsonSchema1BoxedVoid extends NotAnyTypeJsonSchema1Boxed { + public static final class NotAnyTypeJsonSchema1BoxedVoid implements NotAnyTypeJsonSchema1Boxed { public final Void data; private NotAnyTypeJsonSchema1BoxedVoid(Void data) { this.data = data; @@ -44,7 +44,7 @@ private NotAnyTypeJsonSchema1BoxedVoid(Void data) { return data; } } - public static final class NotAnyTypeJsonSchema1BoxedBoolean extends NotAnyTypeJsonSchema1Boxed { + public static final class NotAnyTypeJsonSchema1BoxedBoolean implements NotAnyTypeJsonSchema1Boxed { public final boolean data; private NotAnyTypeJsonSchema1BoxedBoolean(boolean data) { this.data = data; @@ -54,7 +54,7 @@ private NotAnyTypeJsonSchema1BoxedBoolean(boolean data) { return data; } } - public static final class NotAnyTypeJsonSchema1BoxedNumber extends NotAnyTypeJsonSchema1Boxed { + public static final class NotAnyTypeJsonSchema1BoxedNumber implements NotAnyTypeJsonSchema1Boxed { public final Number data; private NotAnyTypeJsonSchema1BoxedNumber(Number data) { this.data = data; @@ -64,7 +64,7 @@ private NotAnyTypeJsonSchema1BoxedNumber(Number data) { return data; } } - public static final class NotAnyTypeJsonSchema1BoxedString extends NotAnyTypeJsonSchema1Boxed { + public static final class NotAnyTypeJsonSchema1BoxedString implements NotAnyTypeJsonSchema1Boxed { public final String data; private NotAnyTypeJsonSchema1BoxedString(String data) { this.data = data; @@ -74,7 +74,7 @@ private NotAnyTypeJsonSchema1BoxedString(String data) { return data; } } - public static final class NotAnyTypeJsonSchema1BoxedList extends NotAnyTypeJsonSchema1Boxed { + public static final class NotAnyTypeJsonSchema1BoxedList implements NotAnyTypeJsonSchema1Boxed { public final FrozenList<@Nullable Object> data; private NotAnyTypeJsonSchema1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -84,7 +84,7 @@ private NotAnyTypeJsonSchema1BoxedList(FrozenList<@Nullable Object> data) { return data; } } - public static final class NotAnyTypeJsonSchema1BoxedMap extends NotAnyTypeJsonSchema1Boxed { + public static final class NotAnyTypeJsonSchema1BoxedMap implements NotAnyTypeJsonSchema1Boxed { public final FrozenMap<@Nullable Object> data; private NotAnyTypeJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java index 5882a7f23e5..ef41ad1222a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java @@ -18,10 +18,10 @@ import java.util.Set; public class NullJsonSchema { - public static abstract sealed class NullJsonSchema1Boxed permits NullJsonSchema1BoxedVoid { - public abstract @Nullable Object data(); + public sealed interface NullJsonSchema1Boxed permits NullJsonSchema1BoxedVoid { + @Nullable Object data(); } - public static final class NullJsonSchema1BoxedVoid extends NullJsonSchema1Boxed { + public static final class NullJsonSchema1BoxedVoid implements NullJsonSchema1Boxed { public final Void data; private NullJsonSchema1BoxedVoid(Void data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java index 1340dcc4420..21df328050f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java @@ -18,10 +18,10 @@ import java.util.Set; public class NumberJsonSchema { - public static abstract sealed class NumberJsonSchema1Boxed permits NumberJsonSchema1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface NumberJsonSchema1Boxed permits NumberJsonSchema1BoxedNumber { + @Nullable Object data(); } - public static final class NumberJsonSchema1BoxedNumber extends NumberJsonSchema1Boxed { + public static final class NumberJsonSchema1BoxedNumber implements NumberJsonSchema1Boxed { public final Number data; private NumberJsonSchema1BoxedNumber(Number data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java index 2cd0e21f94d..c54e9bc6cb6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java @@ -21,10 +21,10 @@ import java.util.UUID; public class StringJsonSchema { - public static abstract sealed class StringJsonSchema1Boxed permits StringJsonSchema1BoxedString { - public abstract @Nullable Object data(); + public sealed interface StringJsonSchema1Boxed permits StringJsonSchema1BoxedString { + @Nullable Object data(); } - public static final class StringJsonSchema1BoxedString extends StringJsonSchema1Boxed { + public static final class StringJsonSchema1BoxedString implements StringJsonSchema1Boxed { public final String data; private StringJsonSchema1BoxedString(String data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java index 2506b53a958..808629740f5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java @@ -19,10 +19,10 @@ import java.util.UUID; public class UuidJsonSchema { - public static abstract sealed class UuidJsonSchema1Boxed permits UuidJsonSchema1BoxedString { - public abstract @Nullable Object data(); + public sealed interface UuidJsonSchema1Boxed permits UuidJsonSchema1BoxedString { + @Nullable Object data(); } - public static final class UuidJsonSchema1BoxedString extends UuidJsonSchema1Boxed { + public static final class UuidJsonSchema1BoxedString implements UuidJsonSchema1Boxed { public final String data; private UuidJsonSchema1BoxedString(String data) { this.data = data; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java index 90b9e3b1870..03ed469d101 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java @@ -19,10 +19,10 @@ import java.util.UUID; public class UnsetAnyTypeJsonSchema { - public static abstract sealed class UnsetAnyTypeJsonSchema1Boxed permits UnsetAnyTypeJsonSchema1BoxedVoid, UnsetAnyTypeJsonSchema1BoxedBoolean, UnsetAnyTypeJsonSchema1BoxedNumber, UnsetAnyTypeJsonSchema1BoxedString, UnsetAnyTypeJsonSchema1BoxedList, UnsetAnyTypeJsonSchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface UnsetAnyTypeJsonSchema1Boxed permits UnsetAnyTypeJsonSchema1BoxedVoid, UnsetAnyTypeJsonSchema1BoxedBoolean, UnsetAnyTypeJsonSchema1BoxedNumber, UnsetAnyTypeJsonSchema1BoxedString, UnsetAnyTypeJsonSchema1BoxedList, UnsetAnyTypeJsonSchema1BoxedMap { + @Nullable Object data(); } - public static final class UnsetAnyTypeJsonSchema1BoxedVoid extends UnsetAnyTypeJsonSchema1Boxed { + public static final class UnsetAnyTypeJsonSchema1BoxedVoid implements UnsetAnyTypeJsonSchema1Boxed { public final Void data; private UnsetAnyTypeJsonSchema1BoxedVoid(Void data) { this.data = data; @@ -32,7 +32,7 @@ private UnsetAnyTypeJsonSchema1BoxedVoid(Void data) { return data; } } - public static final class UnsetAnyTypeJsonSchema1BoxedBoolean extends UnsetAnyTypeJsonSchema1Boxed { + public static final class UnsetAnyTypeJsonSchema1BoxedBoolean implements UnsetAnyTypeJsonSchema1Boxed { public final boolean data; private UnsetAnyTypeJsonSchema1BoxedBoolean(boolean data) { this.data = data; @@ -42,7 +42,7 @@ private UnsetAnyTypeJsonSchema1BoxedBoolean(boolean data) { return data; } } - public static final class UnsetAnyTypeJsonSchema1BoxedNumber extends UnsetAnyTypeJsonSchema1Boxed { + public static final class UnsetAnyTypeJsonSchema1BoxedNumber implements UnsetAnyTypeJsonSchema1Boxed { public final Number data; private UnsetAnyTypeJsonSchema1BoxedNumber(Number data) { this.data = data; @@ -52,7 +52,7 @@ private UnsetAnyTypeJsonSchema1BoxedNumber(Number data) { return data; } } - public static final class UnsetAnyTypeJsonSchema1BoxedString extends UnsetAnyTypeJsonSchema1Boxed { + public static final class UnsetAnyTypeJsonSchema1BoxedString implements UnsetAnyTypeJsonSchema1Boxed { public final String data; private UnsetAnyTypeJsonSchema1BoxedString(String data) { this.data = data; @@ -62,7 +62,7 @@ private UnsetAnyTypeJsonSchema1BoxedString(String data) { return data; } } - public static final class UnsetAnyTypeJsonSchema1BoxedList extends UnsetAnyTypeJsonSchema1Boxed { + public static final class UnsetAnyTypeJsonSchema1BoxedList implements UnsetAnyTypeJsonSchema1Boxed { public final FrozenList<@Nullable Object> data; private UnsetAnyTypeJsonSchema1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -72,7 +72,7 @@ private UnsetAnyTypeJsonSchema1BoxedList(FrozenList<@Nullable Object> data) { return data; } } - public static final class UnsetAnyTypeJsonSchema1BoxedMap extends UnsetAnyTypeJsonSchema1Boxed { + public static final class UnsetAnyTypeJsonSchema1BoxedMap implements UnsetAnyTypeJsonSchema1Boxed { public final FrozenMap<@Nullable Object> data; private UnsetAnyTypeJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/src/main/resources/java/src/main/java/packagename/schemas/AnyTypeJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/AnyTypeJsonSchema.hbs index 7fd3788ea51..6469f2e9fb8 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/AnyTypeJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/AnyTypeJsonSchema.hbs @@ -31,10 +31,10 @@ import java.util.Objects; import java.util.UUID; public class AnyTypeJsonSchema { - public static abstract sealed class AnyTypeJsonSchema1Boxed permits AnyTypeJsonSchema1BoxedVoid, AnyTypeJsonSchema1BoxedBoolean, AnyTypeJsonSchema1BoxedNumber, AnyTypeJsonSchema1BoxedString, AnyTypeJsonSchema1BoxedList, AnyTypeJsonSchema1BoxedMap { + public sealed interface AnyTypeJsonSchema1Boxed permits AnyTypeJsonSchema1BoxedVoid, AnyTypeJsonSchema1BoxedBoolean, AnyTypeJsonSchema1BoxedNumber, AnyTypeJsonSchema1BoxedString, AnyTypeJsonSchema1BoxedList, AnyTypeJsonSchema1BoxedMap { public abstract @Nullable Object data(); } - public static final class AnyTypeJsonSchema1BoxedVoid extends AnyTypeJsonSchema1Boxed { + public static final class AnyTypeJsonSchema1BoxedVoid implements AnyTypeJsonSchema1Boxed { public final Void data; private AnyTypeJsonSchema1BoxedVoid(Void data) { this.data = data; @@ -44,7 +44,7 @@ public class AnyTypeJsonSchema { return data; } } - public static final class AnyTypeJsonSchema1BoxedBoolean extends AnyTypeJsonSchema1Boxed { + public static final class AnyTypeJsonSchema1BoxedBoolean implements AnyTypeJsonSchema1Boxed { public final boolean data; private AnyTypeJsonSchema1BoxedBoolean(boolean data) { this.data = data; @@ -54,7 +54,7 @@ public class AnyTypeJsonSchema { return data; } } - public static final class AnyTypeJsonSchema1BoxedNumber extends AnyTypeJsonSchema1Boxed { + public static final class AnyTypeJsonSchema1BoxedNumber implements AnyTypeJsonSchema1Boxed { public final Number data; private AnyTypeJsonSchema1BoxedNumber(Number data) { this.data = data; @@ -64,7 +64,7 @@ public class AnyTypeJsonSchema { return data; } } - public static final class AnyTypeJsonSchema1BoxedString extends AnyTypeJsonSchema1Boxed { + public static final class AnyTypeJsonSchema1BoxedString implements AnyTypeJsonSchema1Boxed { public final String data; private AnyTypeJsonSchema1BoxedString(String data) { this.data = data; @@ -74,7 +74,7 @@ public class AnyTypeJsonSchema { return data; } } - public static final class AnyTypeJsonSchema1BoxedList extends AnyTypeJsonSchema1Boxed { + public static final class AnyTypeJsonSchema1BoxedList implements AnyTypeJsonSchema1Boxed { public final FrozenList<@Nullable Object> data; private AnyTypeJsonSchema1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -84,7 +84,7 @@ public class AnyTypeJsonSchema { return data; } } - public static final class AnyTypeJsonSchema1BoxedMap extends AnyTypeJsonSchema1Boxed { + public static final class AnyTypeJsonSchema1BoxedMap implements AnyTypeJsonSchema1Boxed { public final FrozenMap<@Nullable Object> data; private AnyTypeJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/src/main/resources/java/src/main/java/packagename/schemas/BooleanJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/BooleanJsonSchema.hbs index 7f7c399e49d..d81e4502776 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/BooleanJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/BooleanJsonSchema.hbs @@ -18,10 +18,10 @@ import java.util.Objects; import java.util.Set; public class BooleanJsonSchema { - public static abstract sealed class BooleanJsonSchema1Boxed permits BooleanJsonSchema1BoxedBoolean { - public abstract @Nullable Object data(); + public sealed interface BooleanJsonSchema1Boxed permits BooleanJsonSchema1BoxedBoolean { + @Nullable Object data(); } - public static final class BooleanJsonSchema1BoxedBoolean extends BooleanJsonSchema1Boxed { + public static final class BooleanJsonSchema1BoxedBoolean implements BooleanJsonSchema1Boxed { public final boolean data; private BooleanJsonSchema1BoxedBoolean(boolean data) { this.data = data; diff --git a/src/main/resources/java/src/main/java/packagename/schemas/DateJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/DateJsonSchema.hbs index 51e64ae1b43..4b706688fae 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/DateJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/DateJsonSchema.hbs @@ -19,10 +19,10 @@ import java.util.Objects; import java.util.Set; public class DateJsonSchema { - public static abstract sealed class DateJsonSchema1Boxed permits DateJsonSchema1BoxedString { - public abstract @Nullable Object data(); + public sealed interface DateJsonSchema1Boxed permits DateJsonSchema1BoxedString { + @Nullable Object data(); } - public static final class DateJsonSchema1BoxedString extends DateJsonSchema1Boxed { + public static final class DateJsonSchema1BoxedString implements DateJsonSchema1Boxed { public final String data; private DateJsonSchema1BoxedString(String data) { this.data = data; diff --git a/src/main/resources/java/src/main/java/packagename/schemas/DateTimeJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/DateTimeJsonSchema.hbs index 1a9d9feaaa1..8ea649102aa 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/DateTimeJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/DateTimeJsonSchema.hbs @@ -19,10 +19,10 @@ import java.util.Objects; import java.util.Set; public class DateTimeJsonSchema { - public static abstract sealed class DateTimeJsonSchema1Boxed permits DateTimeJsonSchema1BoxedString { - public abstract @Nullable Object data(); + public sealed interfaceDateTimeJsonSchema1Boxed permits DateTimeJsonSchema1BoxedString { + @Nullable Object data(); } - public static final class DateTimeJsonSchema1BoxedString extends DateTimeJsonSchema1Boxed { + public static final class DateTimeJsonSchema1BoxedString implements DateTimeJsonSchema1Boxed { public final String data; private DateTimeJsonSchema1BoxedString(String data) { this.data = data; diff --git a/src/main/resources/java/src/main/java/packagename/schemas/DecimalJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/DecimalJsonSchema.hbs index 213b01df536..e78cfeb6e71 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/DecimalJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/DecimalJsonSchema.hbs @@ -18,10 +18,10 @@ import java.util.Objects; import java.util.Set; public class DecimalJsonSchema { - public static abstract sealed class DecimalJsonSchema1Boxed permits DecimalJsonSchema1BoxedString { - public abstract @Nullable Object data(); + public sealed interface DecimalJsonSchema1Boxed permits DecimalJsonSchema1BoxedString { + @Nullable Object data(); } - public static final class DecimalJsonSchema1BoxedString extends DecimalJsonSchema1Boxed { + public static final class DecimalJsonSchema1BoxedString implements DecimalJsonSchema1Boxed { public final String data; private DecimalJsonSchema1BoxedString(String data) { this.data = data; diff --git a/src/main/resources/java/src/main/java/packagename/schemas/DoubleJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/DoubleJsonSchema.hbs index 8bb8b1106e3..990015702dd 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/DoubleJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/DoubleJsonSchema.hbs @@ -18,10 +18,10 @@ import java.util.Objects; import java.util.Set; public class DoubleJsonSchema { - public static abstract sealed class DoubleJsonSchema1Boxed permits DoubleJsonSchema1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface DoubleJsonSchema1Boxed permits DoubleJsonSchema1BoxedNumber { + @Nullable Object data(); } - public static final class DoubleJsonSchema1BoxedNumber extends DoubleJsonSchema1Boxed { + public static final class DoubleJsonSchema1BoxedNumber implements DoubleJsonSchema1Boxed { public final Number data; private DoubleJsonSchema1BoxedNumber(Number data) { this.data = data; diff --git a/src/main/resources/java/src/main/java/packagename/schemas/FloatJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/FloatJsonSchema.hbs index 1a620c7165f..14b1e2f92b7 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/FloatJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/FloatJsonSchema.hbs @@ -18,10 +18,10 @@ import java.util.Objects; import java.util.Set; public class FloatJsonSchema { - public static abstract sealed class FloatJsonSchema1Boxed permits FloatJsonSchema1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface FloatJsonSchema1Boxed permits FloatJsonSchema1BoxedNumber { + @Nullable Object data(); } - public static final class FloatJsonSchema1BoxedNumber extends FloatJsonSchema1Boxed { + public static final class FloatJsonSchema1BoxedNumber implements FloatJsonSchema1Boxed { public final Number data; private FloatJsonSchema1BoxedNumber(Number data) { this.data = data; diff --git a/src/main/resources/java/src/main/java/packagename/schemas/Int32JsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/Int32JsonSchema.hbs index c805f1d1dd5..796069ba9dd 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/Int32JsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/Int32JsonSchema.hbs @@ -18,10 +18,10 @@ import java.util.Objects; import java.util.Set; public class Int32JsonSchema { - public static abstract sealed class Int32JsonSchema1Boxed permits Int32JsonSchema1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface Int32JsonSchema1Boxed permits Int32JsonSchema1BoxedNumber { + @Nullable Object data(); } - public static final class Int32JsonSchema1BoxedNumber extends Int32JsonSchema1Boxed { + public static final class Int32JsonSchema1BoxedNumber implements Int32JsonSchema1Boxed { public final Number data; private Int32JsonSchema1BoxedNumber(Number data) { this.data = data; diff --git a/src/main/resources/java/src/main/java/packagename/schemas/Int64JsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/Int64JsonSchema.hbs index 86bd2122275..0d8c6e21bc9 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/Int64JsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/Int64JsonSchema.hbs @@ -18,10 +18,10 @@ import java.util.Objects; import java.util.Set; public class Int64JsonSchema { - public static abstract sealed class Int64JsonSchema1Boxed permits Int64JsonSchema1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface Int64JsonSchema1Boxed permits Int64JsonSchema1BoxedNumber { + @Nullable Object data(); } - public static final class Int64JsonSchema1BoxedNumber extends Int64JsonSchema1Boxed { + public static final class Int64JsonSchema1BoxedNumber implements Int64JsonSchema1Boxed { public final Number data; private Int64JsonSchema1BoxedNumber(Number data) { this.data = data; diff --git a/src/main/resources/java/src/main/java/packagename/schemas/IntJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/IntJsonSchema.hbs index 66f8975e071..135a2136bb8 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/IntJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/IntJsonSchema.hbs @@ -18,10 +18,10 @@ import java.util.Objects; import java.util.Set; public class IntJsonSchema { - public static abstract sealed class IntJsonSchema1Boxed permits IntJsonSchema1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface IntJsonSchema1Boxed permits IntJsonSchema1BoxedNumber { + Object data(); } - public static final class IntJsonSchema1BoxedNumber extends IntJsonSchema1Boxed { + public static final class IntJsonSchema1BoxedNumber implements IntJsonSchema1Boxed { public final Number data; private IntJsonSchema1BoxedNumber(Number data) { this.data = data; diff --git a/src/main/resources/java/src/main/java/packagename/schemas/ListJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/ListJsonSchema.hbs index 5040979d98a..7e814340b9d 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/ListJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/ListJsonSchema.hbs @@ -21,10 +21,10 @@ import java.util.Objects; import java.util.Set; public class ListJsonSchema { - public static abstract sealed class ListJsonSchema1Boxed permits ListJsonSchema1BoxedList { - public abstract @Nullable Object data(); + public sealed interface ListJsonSchema1Boxed permits ListJsonSchema1BoxedList { + @Nullable Object data(); } - public static final class ListJsonSchema1BoxedList extends ListJsonSchema1Boxed { + public static final class ListJsonSchema1BoxedList implements ListJsonSchema1Boxed { public final FrozenList<@Nullable Object> data; private ListJsonSchema1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; diff --git a/src/main/resources/java/src/main/java/packagename/schemas/MapJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/MapJsonSchema.hbs index 5f1eca2bf9d..ad54d635bf6 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/MapJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/MapJsonSchema.hbs @@ -22,10 +22,10 @@ import java.util.Objects; import java.util.Set; public class MapJsonSchema { - public static abstract sealed class MapJsonSchema1Boxed permits MapJsonSchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface MapJsonSchema1Boxed permits MapJsonSchema1BoxedMap { + @Nullable Object data(); } - public static final class MapJsonSchema1BoxedMap extends MapJsonSchema1Boxed { + public static final class MapJsonSchema1BoxedMap implements MapJsonSchema1Boxed { public final FrozenMap<@Nullable Object> data; private MapJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/src/main/resources/java/src/main/java/packagename/schemas/NotAnyTypeJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/NotAnyTypeJsonSchema.hbs index 4537d2a44f7..f4b2a9323f4 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/NotAnyTypeJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/NotAnyTypeJsonSchema.hbs @@ -31,10 +31,10 @@ import java.util.Objects; import java.util.UUID; public class NotAnyTypeJsonSchema { - public static abstract sealed class NotAnyTypeJsonSchema1Boxed permits NotAnyTypeJsonSchema1BoxedVoid, NotAnyTypeJsonSchema1BoxedBoolean, NotAnyTypeJsonSchema1BoxedNumber, NotAnyTypeJsonSchema1BoxedString, NotAnyTypeJsonSchema1BoxedList, NotAnyTypeJsonSchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface NotAnyTypeJsonSchema1Boxed permits NotAnyTypeJsonSchema1BoxedVoid, NotAnyTypeJsonSchema1BoxedBoolean, NotAnyTypeJsonSchema1BoxedNumber, NotAnyTypeJsonSchema1BoxedString, NotAnyTypeJsonSchema1BoxedList, NotAnyTypeJsonSchema1BoxedMap { + @Nullable Object data(); } - public static final class NotAnyTypeJsonSchema1BoxedVoid extends NotAnyTypeJsonSchema1Boxed { + public static final class NotAnyTypeJsonSchema1BoxedVoid implements NotAnyTypeJsonSchema1Boxed { public final Void data; private NotAnyTypeJsonSchema1BoxedVoid(Void data) { this.data = data; @@ -44,7 +44,7 @@ public class NotAnyTypeJsonSchema { return data; } } - public static final class NotAnyTypeJsonSchema1BoxedBoolean extends NotAnyTypeJsonSchema1Boxed { + public static final class NotAnyTypeJsonSchema1BoxedBoolean implements NotAnyTypeJsonSchema1Boxed { public final boolean data; private NotAnyTypeJsonSchema1BoxedBoolean(boolean data) { this.data = data; @@ -54,7 +54,7 @@ public class NotAnyTypeJsonSchema { return data; } } - public static final class NotAnyTypeJsonSchema1BoxedNumber extends NotAnyTypeJsonSchema1Boxed { + public static final class NotAnyTypeJsonSchema1BoxedNumber implements NotAnyTypeJsonSchema1Boxed { public final Number data; private NotAnyTypeJsonSchema1BoxedNumber(Number data) { this.data = data; @@ -64,7 +64,7 @@ public class NotAnyTypeJsonSchema { return data; } } - public static final class NotAnyTypeJsonSchema1BoxedString extends NotAnyTypeJsonSchema1Boxed { + public static final class NotAnyTypeJsonSchema1BoxedString implements NotAnyTypeJsonSchema1Boxed { public final String data; private NotAnyTypeJsonSchema1BoxedString(String data) { this.data = data; @@ -74,7 +74,7 @@ public class NotAnyTypeJsonSchema { return data; } } - public static final class NotAnyTypeJsonSchema1BoxedList extends NotAnyTypeJsonSchema1Boxed { + public static final class NotAnyTypeJsonSchema1BoxedList implements NotAnyTypeJsonSchema1Boxed { public final FrozenList<@Nullable Object> data; private NotAnyTypeJsonSchema1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -84,7 +84,7 @@ public class NotAnyTypeJsonSchema { return data; } } - public static final class NotAnyTypeJsonSchema1BoxedMap extends NotAnyTypeJsonSchema1Boxed { + public static final class NotAnyTypeJsonSchema1BoxedMap implements NotAnyTypeJsonSchema1Boxed { public final FrozenMap<@Nullable Object> data; private NotAnyTypeJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; diff --git a/src/main/resources/java/src/main/java/packagename/schemas/NullJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/NullJsonSchema.hbs index 54129414205..2b21e0842e4 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/NullJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/NullJsonSchema.hbs @@ -18,10 +18,10 @@ import java.util.Objects; import java.util.Set; public class NullJsonSchema { - public static abstract sealed class NullJsonSchema1Boxed permits NullJsonSchema1BoxedVoid { - public abstract @Nullable Object data(); + public sealed interface NullJsonSchema1Boxed permits NullJsonSchema1BoxedVoid { + @Nullable Object data(); } - public static final class NullJsonSchema1BoxedVoid extends NullJsonSchema1Boxed { + public static final class NullJsonSchema1BoxedVoid implements NullJsonSchema1Boxed { public final Void data; private NullJsonSchema1BoxedVoid(Void data) { this.data = data; diff --git a/src/main/resources/java/src/main/java/packagename/schemas/NumberJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/NumberJsonSchema.hbs index 45cefb7740d..4ba9de4f7cd 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/NumberJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/NumberJsonSchema.hbs @@ -18,10 +18,10 @@ import java.util.Objects; import java.util.Set; public class NumberJsonSchema { - public static abstract sealed class NumberJsonSchema1Boxed permits NumberJsonSchema1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface NumberJsonSchema1Boxed permits NumberJsonSchema1BoxedNumber { + @Nullable Object data(); } - public static final class NumberJsonSchema1BoxedNumber extends NumberJsonSchema1Boxed { + public static final class NumberJsonSchema1BoxedNumber implements NumberJsonSchema1Boxed { public final Number data; private NumberJsonSchema1BoxedNumber(Number data) { this.data = data; diff --git a/src/main/resources/java/src/main/java/packagename/schemas/StringJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/StringJsonSchema.hbs index ca436fc1c29..8f9aa6a04ca 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/StringJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/StringJsonSchema.hbs @@ -21,10 +21,10 @@ import java.util.Set; import java.util.UUID; public class StringJsonSchema { - public static abstract sealed class StringJsonSchema1Boxed permits StringJsonSchema1BoxedString { - public abstract @Nullable Object data(); + public sealed interface StringJsonSchema1Boxed permits StringJsonSchema1BoxedString { + @Nullable Object data(); } - public static final class StringJsonSchema1BoxedString extends StringJsonSchema1Boxed { + public static final class StringJsonSchema1BoxedString implements StringJsonSchema1Boxed { public final String data; private StringJsonSchema1BoxedString(String data) { this.data = data; diff --git a/src/main/resources/java/src/main/java/packagename/schemas/UuidJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/UuidJsonSchema.hbs index e3ca0d8c4cb..542b72dbb4f 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/UuidJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/UuidJsonSchema.hbs @@ -19,10 +19,10 @@ import java.util.Set; import java.util.UUID; public class UuidJsonSchema { - public static abstract sealed class UuidJsonSchema1Boxed permits UuidJsonSchema1BoxedString { - public abstract @Nullable Object data(); + public sealed interface UuidJsonSchema1Boxed permits UuidJsonSchema1BoxedString { + @Nullable Object data(); } - public static final class UuidJsonSchema1BoxedString extends UuidJsonSchema1Boxed { + public static final class UuidJsonSchema1BoxedString implements UuidJsonSchema1Boxed { public final String data; private UuidJsonSchema1BoxedString(String data) { this.data = data; diff --git a/src/main/resources/java/src/main/java/packagename/schemas/validation/UnsetAnyTypeJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/validation/UnsetAnyTypeJsonSchema.hbs index c83d88147e2..78b06d81f4e 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/validation/UnsetAnyTypeJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/validation/UnsetAnyTypeJsonSchema.hbs @@ -19,10 +19,10 @@ import java.util.Objects; import java.util.UUID; public class UnsetAnyTypeJsonSchema { - public static abstract sealed class UnsetAnyTypeJsonSchema1Boxed permits UnsetAnyTypeJsonSchema1BoxedVoid, UnsetAnyTypeJsonSchema1BoxedBoolean, UnsetAnyTypeJsonSchema1BoxedNumber, UnsetAnyTypeJsonSchema1BoxedString, UnsetAnyTypeJsonSchema1BoxedList, UnsetAnyTypeJsonSchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface UnsetAnyTypeJsonSchema1Boxed permits UnsetAnyTypeJsonSchema1BoxedVoid, UnsetAnyTypeJsonSchema1BoxedBoolean, UnsetAnyTypeJsonSchema1BoxedNumber, UnsetAnyTypeJsonSchema1BoxedString, UnsetAnyTypeJsonSchema1BoxedList, UnsetAnyTypeJsonSchema1BoxedMap { + @Nullable Object data(); } - public static final class UnsetAnyTypeJsonSchema1BoxedVoid extends UnsetAnyTypeJsonSchema1Boxed { + public static final class UnsetAnyTypeJsonSchema1BoxedVoid implements UnsetAnyTypeJsonSchema1Boxed { public final Void data; private UnsetAnyTypeJsonSchema1BoxedVoid(Void data) { this.data = data; @@ -32,7 +32,7 @@ public class UnsetAnyTypeJsonSchema { return data; } } - public static final class UnsetAnyTypeJsonSchema1BoxedBoolean extends UnsetAnyTypeJsonSchema1Boxed { + public static final class UnsetAnyTypeJsonSchema1BoxedBoolean implements UnsetAnyTypeJsonSchema1Boxed { public final boolean data; private UnsetAnyTypeJsonSchema1BoxedBoolean(boolean data) { this.data = data; @@ -42,7 +42,7 @@ public class UnsetAnyTypeJsonSchema { return data; } } - public static final class UnsetAnyTypeJsonSchema1BoxedNumber extends UnsetAnyTypeJsonSchema1Boxed { + public static final class UnsetAnyTypeJsonSchema1BoxedNumber implements UnsetAnyTypeJsonSchema1Boxed { public final Number data; private UnsetAnyTypeJsonSchema1BoxedNumber(Number data) { this.data = data; @@ -52,7 +52,7 @@ public class UnsetAnyTypeJsonSchema { return data; } } - public static final class UnsetAnyTypeJsonSchema1BoxedString extends UnsetAnyTypeJsonSchema1Boxed { + public static final class UnsetAnyTypeJsonSchema1BoxedString implements UnsetAnyTypeJsonSchema1Boxed { public final String data; private UnsetAnyTypeJsonSchema1BoxedString(String data) { this.data = data; @@ -62,7 +62,7 @@ public class UnsetAnyTypeJsonSchema { return data; } } - public static final class UnsetAnyTypeJsonSchema1BoxedList extends UnsetAnyTypeJsonSchema1Boxed { + public static final class UnsetAnyTypeJsonSchema1BoxedList implements UnsetAnyTypeJsonSchema1Boxed { public final FrozenList<@Nullable Object> data; private UnsetAnyTypeJsonSchema1BoxedList(FrozenList<@Nullable Object> data) { this.data = data; @@ -72,7 +72,7 @@ public class UnsetAnyTypeJsonSchema { return data; } } - public static final class UnsetAnyTypeJsonSchema1BoxedMap extends UnsetAnyTypeJsonSchema1Boxed { + public static final class UnsetAnyTypeJsonSchema1BoxedMap implements UnsetAnyTypeJsonSchema1Boxed { public final FrozenMap<@Nullable Object> data; private UnsetAnyTypeJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) { this.data = data; From de64b7806f852b7738552010146bb64af4876254 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Mon, 19 Feb 2024 21:10:41 -0800 Subject: [PATCH 06/50] Updates sealed schema classes to use records --- .../client/schemas/AnyTypeJsonSchema.java | 10 ++-- .../components/requestbodies/RequestBody.hbs | 4 +- .../schemas/SchemaClass/_boxedBoolean.hbs | 8 +-- .../schemas/SchemaClass/_boxedClass.hbs | 2 +- .../schemas/SchemaClass/_boxedList.hbs | 8 +-- .../schemas/SchemaClass/_boxedMap.hbs | 8 +-- .../schemas/SchemaClass/_boxedNumber.hbs | 8 +-- .../schemas/SchemaClass/_boxedString.hbs | 8 +-- .../schemas/SchemaClass/_boxedVoid.hbs | 8 +-- .../packagename/schemas/AnyTypeJsonSchema.hbs | 50 +++++-------------- .../packagename/schemas/BooleanJsonSchema.hbs | 10 ++-- .../packagename/schemas/DateJsonSchema.hbs | 10 ++-- .../schemas/DateTimeJsonSchema.hbs | 10 ++-- .../packagename/schemas/DecimalJsonSchema.hbs | 10 ++-- .../packagename/schemas/DoubleJsonSchema.hbs | 10 ++-- .../packagename/schemas/FloatJsonSchema.hbs | 10 ++-- .../packagename/schemas/Int32JsonSchema.hbs | 10 ++-- .../packagename/schemas/Int64JsonSchema.hbs | 10 ++-- .../packagename/schemas/IntJsonSchema.hbs | 10 ++-- .../packagename/schemas/ListJsonSchema.hbs | 10 ++-- .../packagename/schemas/MapJsonSchema.hbs | 10 ++-- .../schemas/NotAnyTypeJsonSchema.hbs | 50 +++++-------------- .../packagename/schemas/NullJsonSchema.hbs | 10 ++-- .../packagename/schemas/NumberJsonSchema.hbs | 10 ++-- .../packagename/schemas/StringJsonSchema.hbs | 10 ++-- .../packagename/schemas/UuidJsonSchema.hbs | 10 ++-- .../validation/UnsetAnyTypeJsonSchema.hbs | 50 +++++-------------- .../schemas/ArrayTypeSchemaTest.hbs | 16 ++---- .../schemas/ObjectTypeSchemaTest.hbs | 32 +++--------- 29 files changed, 114 insertions(+), 298 deletions(-) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java index 7b0ffcbded5..2cfa0ef6ba2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java @@ -32,15 +32,11 @@ public class AnyTypeJsonSchema { public sealed interface AnyTypeJsonSchema1Boxed permits AnyTypeJsonSchema1BoxedVoid, AnyTypeJsonSchema1BoxedBoolean, AnyTypeJsonSchema1BoxedNumber, AnyTypeJsonSchema1BoxedString, AnyTypeJsonSchema1BoxedList, AnyTypeJsonSchema1BoxedMap { - public abstract @Nullable Object data(); + @Nullable Object getData(); } - public static final class AnyTypeJsonSchema1BoxedVoid implements AnyTypeJsonSchema1Boxed { - public final Void data; - private AnyTypeJsonSchema1BoxedVoid(Void data) { - this.data = data; - } + public record AnyTypeJsonSchema1BoxedVoid(Void data) implements AnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/src/main/resources/java/src/main/java/packagename/components/requestbodies/RequestBody.hbs b/src/main/resources/java/src/main/java/packagename/components/requestbodies/RequestBody.hbs index 6b0d2c616cc..39785aa9afc 100644 --- a/src/main/resources/java/src/main/java/packagename/components/requestbodies/RequestBody.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/requestbodies/RequestBody.hbs @@ -51,7 +51,7 @@ public class {{jsonPathPiece.pascalCase}} { {{#eq content.size 1}} {{#each content}} {{@key.pascalCase}}RequestBody requestBody{{@index}} = ({{@key.pascalCase}}RequestBody) requestBody; - return serialize(requestBody{{@index}}.contentType(), requestBody{{@index}}.body().data()); + return serialize(requestBody{{@index}}.contentType(), requestBody{{@index}}.body().getData()); {{/each}} {{else}} {{#each content}} @@ -65,7 +65,7 @@ public class {{jsonPathPiece.pascalCase}} { } else if (requestBody instanceof {{@key.pascalCase}}RequestBody requestBody{{@index}}) { {{/if}} {{/if}} - return serialize(requestBody{{@index}}.contentType(), requestBody{{@index}}.body().data()); + return serialize(requestBody{{@index}}.contentType(), requestBody{{@index}}.body().getData()); {{/each}} } {{/eq}} diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedBoolean.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedBoolean.hbs index 58b47479e2f..491032bbc73 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedBoolean.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedBoolean.hbs @@ -16,13 +16,9 @@ a boxed class to store validated boolean payloads, sealed permits class implemen | boolean | data
validated payload | {{else}} -public static final class {{jsonPathPiece.pascalCase}}BoxedBoolean implements {{jsonPathPiece.pascalCase}}Boxed { - public final boolean data; - private {{jsonPathPiece.pascalCase}}BoxedBoolean(boolean data) { - this.data = data; - } +public record {{jsonPathPiece.pascalCase}}BoxedBoolean(boolean data) implements {{jsonPathPiece.pascalCase}}Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedClass.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedClass.hbs index 131bc2ea8b6..ef06686eb03 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedClass.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedClass.hbs @@ -33,7 +33,7 @@ sealed interface that stores validated payloads using boxed classes {{else}} public sealed interface {{jsonPathPiece.pascalCase}}Boxed permits {{#each types}}{{jsonPathPiece.pascalCase}}Boxed{{#eq this "null"}}Void{{/eq}}{{#eq this "boolean"}}Boolean{{/eq}}{{#or (eq this "number") (eq this "integer")}}Number{{/or}}{{#and (eq this "string") (neq ../format "binary") }}String{{/and}}{{#eq this "array"}}List{{/eq}}{{#eq this "object"}}Map{{/eq}}{{#unless @last}}, {{/unless}}{{else}}{{jsonPathPiece.pascalCase}}BoxedVoid, {{jsonPathPiece.pascalCase}}BoxedBoolean, {{jsonPathPiece.pascalCase}}BoxedNumber, {{jsonPathPiece.pascalCase}}BoxedString, {{jsonPathPiece.pascalCase}}BoxedList, {{jsonPathPiece.pascalCase}}BoxedMap{{/each}} { - @Nullable Object data(); + @Nullable Object getData(); } {{/if}} \ No newline at end of file diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedList.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedList.hbs index 4d8a6bc57aa..ecefe0ac35e 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedList.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedList.hbs @@ -16,13 +16,9 @@ a boxed class to store validated List payloads, sealed permits class implementat | {{#if arrayOutputJsonPathPiece}}[{{arrayOutputJsonPathPiece.pascalCase}}](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces arrayOutputJsonPathPiece) }}){{else}}FrozenList<@Nullable Object>{{/if}} | data
validated payload | {{else}} -public static final class {{jsonPathPiece.pascalCase}}BoxedList implements {{jsonPathPiece.pascalCase}}Boxed { - public final {{#if arrayOutputJsonPathPiece}}{{arrayOutputJsonPathPiece.pascalCase}}{{else}}FrozenList<@Nullable Object>{{/if}} data; - private {{jsonPathPiece.pascalCase}}BoxedList({{#if arrayOutputJsonPathPiece}}{{arrayOutputJsonPathPiece.pascalCase}}{{else}}FrozenList<@Nullable Object>{{/if}} data) { - this.data = data; - } +public record {{jsonPathPiece.pascalCase}}BoxedList({{#if arrayOutputJsonPathPiece}}{{arrayOutputJsonPathPiece.pascalCase}}{{else}}FrozenList<@Nullable Object>{{/if}} data) implements {{jsonPathPiece.pascalCase}}Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedMap.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedMap.hbs index f2bdb1d16fa..46dd8976623 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedMap.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedMap.hbs @@ -16,13 +16,9 @@ a boxed class to store validated Map payloads, sealed permits class implementati | {{#if mapOutputJsonPathPiece}}[{{mapOutputJsonPathPiece.pascalCase}}](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces mapOutputJsonPathPiece) }}){{else}}FrozenMap<@Nullable Object>{{/if}} | data
validated payload | {{else}} -public static final class {{jsonPathPiece.pascalCase}}BoxedMap implements {{jsonPathPiece.pascalCase}}Boxed { - public final {{#if mapOutputJsonPathPiece}}{{mapOutputJsonPathPiece.pascalCase}}{{else}}FrozenMap<@Nullable Object>{{/if}} data; - private {{jsonPathPiece.pascalCase}}BoxedMap({{#if mapOutputJsonPathPiece}}{{mapOutputJsonPathPiece.pascalCase}}{{else}}FrozenMap<@Nullable Object>{{/if}} data) { - this.data = data; - } +public record {{jsonPathPiece.pascalCase}}BoxedMap({{#if mapOutputJsonPathPiece}}{{mapOutputJsonPathPiece.pascalCase}}{{else}}FrozenMap<@Nullable Object>{{/if}} data) implements {{jsonPathPiece.pascalCase}}Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedNumber.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedNumber.hbs index a7bec7811c3..f1a7b360fbf 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedNumber.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedNumber.hbs @@ -16,13 +16,9 @@ a boxed class to store validated Number payloads, sealed permits class implement | Number | data
validated payload | {{else}} -public static final class {{jsonPathPiece.pascalCase}}BoxedNumber implements {{jsonPathPiece.pascalCase}}Boxed { - public final Number data; - private {{jsonPathPiece.pascalCase}}BoxedNumber(Number data) { - this.data = data; - } +public record {{jsonPathPiece.pascalCase}}BoxedNumber(Number data) implements {{jsonPathPiece.pascalCase}}Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedString.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedString.hbs index 47eb505ed1b..53480932f0c 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedString.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedString.hbs @@ -16,13 +16,9 @@ a boxed class to store validated String payloads, sealed permits class implement | String | data
validated payload | {{else}} -public static final class {{jsonPathPiece.pascalCase}}BoxedString implements {{jsonPathPiece.pascalCase}}Boxed { - public final String data; - private {{jsonPathPiece.pascalCase}}BoxedString(String data) { - this.data = data; - } +public record {{jsonPathPiece.pascalCase}}BoxedString(String data) implements {{jsonPathPiece.pascalCase}}Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedVoid.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedVoid.hbs index 5270ec70de9..7219c885785 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedVoid.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedVoid.hbs @@ -16,13 +16,9 @@ a boxed class to store validated null payloads, sealed permits class implementat | Void | data
validated payload | {{else}} -public static final class {{jsonPathPiece.pascalCase}}BoxedVoid implements {{jsonPathPiece.pascalCase}}Boxed { - public final Void data; - private {{jsonPathPiece.pascalCase}}BoxedVoid(Void data) { - this.data = data; - } +public record {{jsonPathPiece.pascalCase}}BoxedVoid(Void data) implements {{jsonPathPiece.pascalCase}}Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/AnyTypeJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/AnyTypeJsonSchema.hbs index 6469f2e9fb8..76a3c3ff9c5 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/AnyTypeJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/AnyTypeJsonSchema.hbs @@ -32,65 +32,41 @@ import java.util.UUID; public class AnyTypeJsonSchema { public sealed interface AnyTypeJsonSchema1Boxed permits AnyTypeJsonSchema1BoxedVoid, AnyTypeJsonSchema1BoxedBoolean, AnyTypeJsonSchema1BoxedNumber, AnyTypeJsonSchema1BoxedString, AnyTypeJsonSchema1BoxedList, AnyTypeJsonSchema1BoxedMap { - public abstract @Nullable Object data(); + @Nullable Object getData(); } - public static final class AnyTypeJsonSchema1BoxedVoid implements AnyTypeJsonSchema1Boxed { - public final Void data; - private AnyTypeJsonSchema1BoxedVoid(Void data) { - this.data = data; - } + public record AnyTypeJsonSchema1BoxedVoid(Void data) implements AnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyTypeJsonSchema1BoxedBoolean implements AnyTypeJsonSchema1Boxed { - public final boolean data; - private AnyTypeJsonSchema1BoxedBoolean(boolean data) { - this.data = data; - } + public record AnyTypeJsonSchema1BoxedBoolean(boolean data) implements AnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyTypeJsonSchema1BoxedNumber implements AnyTypeJsonSchema1Boxed { - public final Number data; - private AnyTypeJsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record AnyTypeJsonSchema1BoxedNumber(Number data) implements AnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyTypeJsonSchema1BoxedString implements AnyTypeJsonSchema1Boxed { - public final String data; - private AnyTypeJsonSchema1BoxedString(String data) { - this.data = data; - } + public record AnyTypeJsonSchema1BoxedString(String data) implements AnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyTypeJsonSchema1BoxedList implements AnyTypeJsonSchema1Boxed { - public final FrozenList<@Nullable Object> data; - private AnyTypeJsonSchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record AnyTypeJsonSchema1BoxedList(FrozenList<@Nullable Object> data) implements AnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyTypeJsonSchema1BoxedMap implements AnyTypeJsonSchema1Boxed { - public final FrozenMap<@Nullable Object> data; - private AnyTypeJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record AnyTypeJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) implements AnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/BooleanJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/BooleanJsonSchema.hbs index d81e4502776..055f18de6eb 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/BooleanJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/BooleanJsonSchema.hbs @@ -19,15 +19,11 @@ import java.util.Set; public class BooleanJsonSchema { public sealed interface BooleanJsonSchema1Boxed permits BooleanJsonSchema1BoxedBoolean { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class BooleanJsonSchema1BoxedBoolean implements BooleanJsonSchema1Boxed { - public final boolean data; - private BooleanJsonSchema1BoxedBoolean(boolean data) { - this.data = data; - } + public record BooleanJsonSchema1BoxedBoolean(boolean data) implements BooleanJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/DateJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/DateJsonSchema.hbs index 4b706688fae..ffe4d57462a 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/DateJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/DateJsonSchema.hbs @@ -20,15 +20,11 @@ import java.util.Set; public class DateJsonSchema { public sealed interface DateJsonSchema1Boxed permits DateJsonSchema1BoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class DateJsonSchema1BoxedString implements DateJsonSchema1Boxed { - public final String data; - private DateJsonSchema1BoxedString(String data) { - this.data = data; - } + public record DateJsonSchema1BoxedString(String data) implements DateJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/DateTimeJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/DateTimeJsonSchema.hbs index 8ea649102aa..6cb3cc863b8 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/DateTimeJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/DateTimeJsonSchema.hbs @@ -20,15 +20,11 @@ import java.util.Set; public class DateTimeJsonSchema { public sealed interfaceDateTimeJsonSchema1Boxed permits DateTimeJsonSchema1BoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class DateTimeJsonSchema1BoxedString implements DateTimeJsonSchema1Boxed { - public final String data; - private DateTimeJsonSchema1BoxedString(String data) { - this.data = data; - } + public record DateTimeJsonSchema1BoxedString(String data) implements DateTimeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/DecimalJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/DecimalJsonSchema.hbs index e78cfeb6e71..81045e3fe9a 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/DecimalJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/DecimalJsonSchema.hbs @@ -19,15 +19,11 @@ import java.util.Set; public class DecimalJsonSchema { public sealed interface DecimalJsonSchema1Boxed permits DecimalJsonSchema1BoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class DecimalJsonSchema1BoxedString implements DecimalJsonSchema1Boxed { - public final String data; - private DecimalJsonSchema1BoxedString(String data) { - this.data = data; - } + public record DecimalJsonSchema1BoxedString(String data) implements DecimalJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/DoubleJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/DoubleJsonSchema.hbs index 990015702dd..f3645ede2f2 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/DoubleJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/DoubleJsonSchema.hbs @@ -19,15 +19,11 @@ import java.util.Set; public class DoubleJsonSchema { public sealed interface DoubleJsonSchema1Boxed permits DoubleJsonSchema1BoxedNumber { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class DoubleJsonSchema1BoxedNumber implements DoubleJsonSchema1Boxed { - public final Number data; - private DoubleJsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record DoubleJsonSchema1BoxedNumber(Number data) implements DoubleJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/FloatJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/FloatJsonSchema.hbs index 14b1e2f92b7..75d0983b989 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/FloatJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/FloatJsonSchema.hbs @@ -19,15 +19,11 @@ import java.util.Set; public class FloatJsonSchema { public sealed interface FloatJsonSchema1Boxed permits FloatJsonSchema1BoxedNumber { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class FloatJsonSchema1BoxedNumber implements FloatJsonSchema1Boxed { - public final Number data; - private FloatJsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record FloatJsonSchema1BoxedNumber(Number data) implements FloatJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/Int32JsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/Int32JsonSchema.hbs index 796069ba9dd..0112ce362b2 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/Int32JsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/Int32JsonSchema.hbs @@ -19,15 +19,11 @@ import java.util.Set; public class Int32JsonSchema { public sealed interface Int32JsonSchema1Boxed permits Int32JsonSchema1BoxedNumber { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Int32JsonSchema1BoxedNumber implements Int32JsonSchema1Boxed { - public final Number data; - private Int32JsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record Int32JsonSchema1BoxedNumber(Number data) implements Int32JsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/Int64JsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/Int64JsonSchema.hbs index 0d8c6e21bc9..2535b0e884c 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/Int64JsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/Int64JsonSchema.hbs @@ -19,15 +19,11 @@ import java.util.Set; public class Int64JsonSchema { public sealed interface Int64JsonSchema1Boxed permits Int64JsonSchema1BoxedNumber { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Int64JsonSchema1BoxedNumber implements Int64JsonSchema1Boxed { - public final Number data; - private Int64JsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record Int64JsonSchema1BoxedNumber(Number data) implements Int64JsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/IntJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/IntJsonSchema.hbs index 135a2136bb8..05986e9aedd 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/IntJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/IntJsonSchema.hbs @@ -19,15 +19,11 @@ import java.util.Set; public class IntJsonSchema { public sealed interface IntJsonSchema1Boxed permits IntJsonSchema1BoxedNumber { - Object data(); + @Nullable Object getData(); } - public static final class IntJsonSchema1BoxedNumber implements IntJsonSchema1Boxed { - public final Number data; - private IntJsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record IntJsonSchema1BoxedNumber(Number data) implements IntJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/ListJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/ListJsonSchema.hbs index 7e814340b9d..cd639cad0cb 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/ListJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/ListJsonSchema.hbs @@ -22,15 +22,11 @@ import java.util.Set; public class ListJsonSchema { public sealed interface ListJsonSchema1Boxed permits ListJsonSchema1BoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ListJsonSchema1BoxedList implements ListJsonSchema1Boxed { - public final FrozenList<@Nullable Object> data; - private ListJsonSchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ListJsonSchema1BoxedList(FrozenList<@Nullable Object> data) implements ListJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/MapJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/MapJsonSchema.hbs index ad54d635bf6..3ee35bbee8f 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/MapJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/MapJsonSchema.hbs @@ -23,15 +23,11 @@ import java.util.Set; public class MapJsonSchema { public sealed interface MapJsonSchema1Boxed permits MapJsonSchema1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class MapJsonSchema1BoxedMap implements MapJsonSchema1Boxed { - public final FrozenMap<@Nullable Object> data; - private MapJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record MapJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) implements MapJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/NotAnyTypeJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/NotAnyTypeJsonSchema.hbs index f4b2a9323f4..d16d8fa4030 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/NotAnyTypeJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/NotAnyTypeJsonSchema.hbs @@ -32,65 +32,41 @@ import java.util.UUID; public class NotAnyTypeJsonSchema { public sealed interface NotAnyTypeJsonSchema1Boxed permits NotAnyTypeJsonSchema1BoxedVoid, NotAnyTypeJsonSchema1BoxedBoolean, NotAnyTypeJsonSchema1BoxedNumber, NotAnyTypeJsonSchema1BoxedString, NotAnyTypeJsonSchema1BoxedList, NotAnyTypeJsonSchema1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class NotAnyTypeJsonSchema1BoxedVoid implements NotAnyTypeJsonSchema1Boxed { - public final Void data; - private NotAnyTypeJsonSchema1BoxedVoid(Void data) { - this.data = data; - } + public record NotAnyTypeJsonSchema1BoxedVoid(Void data) implements NotAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotAnyTypeJsonSchema1BoxedBoolean implements NotAnyTypeJsonSchema1Boxed { - public final boolean data; - private NotAnyTypeJsonSchema1BoxedBoolean(boolean data) { - this.data = data; - } + public record NotAnyTypeJsonSchema1BoxedBoolean(boolean data) implements NotAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotAnyTypeJsonSchema1BoxedNumber implements NotAnyTypeJsonSchema1Boxed { - public final Number data; - private NotAnyTypeJsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record NotAnyTypeJsonSchema1BoxedNumber(Number data) implements NotAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotAnyTypeJsonSchema1BoxedString implements NotAnyTypeJsonSchema1Boxed { - public final String data; - private NotAnyTypeJsonSchema1BoxedString(String data) { - this.data = data; - } + public record NotAnyTypeJsonSchema1BoxedString(String data) implements NotAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotAnyTypeJsonSchema1BoxedList implements NotAnyTypeJsonSchema1Boxed { - public final FrozenList<@Nullable Object> data; - private NotAnyTypeJsonSchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record NotAnyTypeJsonSchema1BoxedList(FrozenList<@Nullable Object> data) implements NotAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotAnyTypeJsonSchema1BoxedMap implements NotAnyTypeJsonSchema1Boxed { - public final FrozenMap<@Nullable Object> data; - private NotAnyTypeJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record NotAnyTypeJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) implements NotAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/NullJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/NullJsonSchema.hbs index 2b21e0842e4..6e7795f8e42 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/NullJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/NullJsonSchema.hbs @@ -19,15 +19,11 @@ import java.util.Set; public class NullJsonSchema { public sealed interface NullJsonSchema1Boxed permits NullJsonSchema1BoxedVoid { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class NullJsonSchema1BoxedVoid implements NullJsonSchema1Boxed { - public final Void data; - private NullJsonSchema1BoxedVoid(Void data) { - this.data = data; - } + public record NullJsonSchema1BoxedVoid(Void data) implements NullJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/NumberJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/NumberJsonSchema.hbs index 4ba9de4f7cd..281d887daa0 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/NumberJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/NumberJsonSchema.hbs @@ -19,15 +19,11 @@ import java.util.Set; public class NumberJsonSchema { public sealed interface NumberJsonSchema1Boxed permits NumberJsonSchema1BoxedNumber { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class NumberJsonSchema1BoxedNumber implements NumberJsonSchema1Boxed { - public final Number data; - private NumberJsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record NumberJsonSchema1BoxedNumber(Number data) implements NumberJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/StringJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/StringJsonSchema.hbs index 8f9aa6a04ca..56b32a27de9 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/StringJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/StringJsonSchema.hbs @@ -22,15 +22,11 @@ import java.util.UUID; public class StringJsonSchema { public sealed interface StringJsonSchema1Boxed permits StringJsonSchema1BoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class StringJsonSchema1BoxedString implements StringJsonSchema1Boxed { - public final String data; - private StringJsonSchema1BoxedString(String data) { - this.data = data; - } + public record StringJsonSchema1BoxedString(String data) implements StringJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/UuidJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/UuidJsonSchema.hbs index 542b72dbb4f..a7379d312ec 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/UuidJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/UuidJsonSchema.hbs @@ -20,15 +20,11 @@ import java.util.UUID; public class UuidJsonSchema { public sealed interface UuidJsonSchema1Boxed permits UuidJsonSchema1BoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class UuidJsonSchema1BoxedString implements UuidJsonSchema1Boxed { - public final String data; - private UuidJsonSchema1BoxedString(String data) { - this.data = data; - } + public record UuidJsonSchema1BoxedString(String data) implements UuidJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/validation/UnsetAnyTypeJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/validation/UnsetAnyTypeJsonSchema.hbs index 78b06d81f4e..a891258c3ff 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/validation/UnsetAnyTypeJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/validation/UnsetAnyTypeJsonSchema.hbs @@ -20,65 +20,41 @@ import java.util.UUID; public class UnsetAnyTypeJsonSchema { public sealed interface UnsetAnyTypeJsonSchema1Boxed permits UnsetAnyTypeJsonSchema1BoxedVoid, UnsetAnyTypeJsonSchema1BoxedBoolean, UnsetAnyTypeJsonSchema1BoxedNumber, UnsetAnyTypeJsonSchema1BoxedString, UnsetAnyTypeJsonSchema1BoxedList, UnsetAnyTypeJsonSchema1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class UnsetAnyTypeJsonSchema1BoxedVoid implements UnsetAnyTypeJsonSchema1Boxed { - public final Void data; - private UnsetAnyTypeJsonSchema1BoxedVoid(Void data) { - this.data = data; - } + public record UnsetAnyTypeJsonSchema1BoxedVoid(Void data) implements UnsetAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnsetAnyTypeJsonSchema1BoxedBoolean implements UnsetAnyTypeJsonSchema1Boxed { - public final boolean data; - private UnsetAnyTypeJsonSchema1BoxedBoolean(boolean data) { - this.data = data; - } + public record UnsetAnyTypeJsonSchema1BoxedBoolean(boolean data) implements UnsetAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnsetAnyTypeJsonSchema1BoxedNumber implements UnsetAnyTypeJsonSchema1Boxed { - public final Number data; - private UnsetAnyTypeJsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record UnsetAnyTypeJsonSchema1BoxedNumber(Number data) implements UnsetAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnsetAnyTypeJsonSchema1BoxedString implements UnsetAnyTypeJsonSchema1Boxed { - public final String data; - private UnsetAnyTypeJsonSchema1BoxedString(String data) { - this.data = data; - } + public record UnsetAnyTypeJsonSchema1BoxedString(String data) implements UnsetAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnsetAnyTypeJsonSchema1BoxedList implements UnsetAnyTypeJsonSchema1Boxed { - public final FrozenList<@Nullable Object> data; - private UnsetAnyTypeJsonSchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record UnsetAnyTypeJsonSchema1BoxedList(FrozenList<@Nullable Object> data) implements UnsetAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnsetAnyTypeJsonSchema1BoxedMap implements UnsetAnyTypeJsonSchema1Boxed { - public final FrozenMap<@Nullable Object> data; - private UnsetAnyTypeJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record UnsetAnyTypeJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) implements UnsetAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/src/main/resources/java/src/test/java/packagename/schemas/ArrayTypeSchemaTest.hbs b/src/main/resources/java/src/test/java/packagename/schemas/ArrayTypeSchemaTest.hbs index 931bd3751d7..250cef3fe1e 100644 --- a/src/main/resources/java/src/test/java/packagename/schemas/ArrayTypeSchemaTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/schemas/ArrayTypeSchemaTest.hbs @@ -31,13 +31,9 @@ public class ArrayTypeSchemaTest { new LinkedHashSet<>() ); - public static abstract sealed class ArrayWithItemsSchemaBoxed permits ArrayWithItemsSchemaBoxedList { + public sealed interface ArrayWithItemsSchemaBoxed permits ArrayWithItemsSchemaBoxedList { } - public static final class ArrayWithItemsSchemaBoxedList extends ArrayWithItemsSchemaBoxed { - public final FrozenList data; - private ArrayWithItemsSchemaBoxedList(FrozenList data) { - this.data = data; - } + public record ArrayWithItemsSchemaBoxedList(FrozenList data) implements ArrayWithItemsSchemaBoxed { } public static class ArrayWithItemsSchema extends JsonSchema implements ListSchemaValidator, ArrayWithItemsSchemaBoxedList> { @@ -112,13 +108,9 @@ public class ArrayTypeSchemaTest { } } - public static abstract sealed class ArrayWithOutputClsSchemaBoxed permits ArrayWithOutputClsSchemaBoxedList { + public sealed interface ArrayWithOutputClsSchemaBoxed permits ArrayWithOutputClsSchemaBoxedList { } - public static final class ArrayWithOutputClsSchemaBoxedList extends ArrayWithOutputClsSchemaBoxed { - public final ArrayWithOutputClsSchemaList data; - private ArrayWithOutputClsSchemaBoxedList(ArrayWithOutputClsSchemaList data) { - this.data = data; - } + public record ArrayWithOutputClsSchemaBoxedList(ArrayWithOutputClsSchemaList data) implements ArrayWithOutputClsSchemaBoxed { } public static class ArrayWithOutputClsSchema extends JsonSchema implements ListSchemaValidator { public ArrayWithOutputClsSchema() { diff --git a/src/main/resources/java/src/test/java/packagename/schemas/ObjectTypeSchemaTest.hbs b/src/main/resources/java/src/test/java/packagename/schemas/ObjectTypeSchemaTest.hbs index 3ba04f06025..286c4fb0058 100644 --- a/src/main/resources/java/src/test/java/packagename/schemas/ObjectTypeSchemaTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/schemas/ObjectTypeSchemaTest.hbs @@ -33,13 +33,9 @@ public class ObjectTypeSchemaTest { new LinkedHashSet<>() ); - public static abstract sealed class ObjectWithPropsSchemaBoxed permits ObjectWithPropsSchemaBoxedMap { + public sealed interface ObjectWithPropsSchemaBoxed permits ObjectWithPropsSchemaBoxedMap { } - public static final class ObjectWithPropsSchemaBoxedMap extends ObjectWithPropsSchemaBoxed { - public final FrozenMap<@Nullable Object> data; - private ObjectWithPropsSchemaBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ObjectWithPropsSchemaBoxedMap(FrozenMap<@Nullable Object> data) implements ObjectWithPropsSchemaBoxed { } public static class ObjectWithPropsSchema extends JsonSchema implements MapSchemaValidator, ObjectWithPropsSchemaBoxedMap> { private static @Nullable ObjectWithPropsSchema instance = null; @@ -115,13 +111,9 @@ public class ObjectTypeSchemaTest { } } - public static abstract sealed class ObjectWithAddpropsSchemaBoxed permits ObjectWithAddpropsSchemaBoxedMap { + public sealed interface ObjectWithAddpropsSchemaBoxed permits ObjectWithAddpropsSchemaBoxedMap { } - public static final class ObjectWithAddpropsSchemaBoxedMap extends ObjectWithAddpropsSchemaBoxed { - public final FrozenMap data; - private ObjectWithAddpropsSchemaBoxedMap(FrozenMap data) { - this.data = data; - } + public record ObjectWithAddpropsSchemaBoxedMap(FrozenMap data) implements ObjectWithAddpropsSchemaBoxed { } public static class ObjectWithAddpropsSchema extends JsonSchema implements MapSchemaValidator, ObjectWithAddpropsSchemaBoxedMap> { @@ -198,13 +190,9 @@ public class ObjectTypeSchemaTest { } } - public static abstract sealed class ObjectWithPropsAndAddpropsSchemaBoxed permits ObjectWithPropsAndAddpropsSchemaBoxedMap { + public sealed interface ObjectWithPropsAndAddpropsSchemaBoxed permits ObjectWithPropsAndAddpropsSchemaBoxedMap { } - public static final class ObjectWithPropsAndAddpropsSchemaBoxedMap extends ObjectWithPropsAndAddpropsSchemaBoxed { - public final FrozenMap<@Nullable Object> data; - private ObjectWithPropsAndAddpropsSchemaBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ObjectWithPropsAndAddpropsSchemaBoxedMap(FrozenMap<@Nullable Object> data) implements ObjectWithPropsAndAddpropsSchemaBoxed { } public static class ObjectWithPropsAndAddpropsSchema extends JsonSchema implements MapSchemaValidator, ObjectWithPropsAndAddpropsSchemaBoxedMap> { private static @Nullable ObjectWithPropsAndAddpropsSchema instance = null; @@ -290,13 +278,9 @@ public class ObjectTypeSchemaTest { } } - public static abstract sealed class ObjectWithOutputTypeSchemaBoxed permits ObjectWithOutputTypeSchemaBoxedMap { + public sealed interface ObjectWithOutputTypeSchemaBoxed permits ObjectWithOutputTypeSchemaBoxedMap { } - public static final class ObjectWithOutputTypeSchemaBoxedMap extends ObjectWithOutputTypeSchemaBoxed { - public final ObjectWithOutputTypeSchemaMap data; - private ObjectWithOutputTypeSchemaBoxedMap(ObjectWithOutputTypeSchemaMap data) { - this.data = data; - } + public record ObjectWithOutputTypeSchemaBoxedMap(ObjectWithOutputTypeSchemaMap data) implements ObjectWithOutputTypeSchemaBoxed { } public static class ObjectWithOutputTypeSchema extends JsonSchema implements MapSchemaValidator { private static @Nullable ObjectWithOutputTypeSchema instance = null; From d622baa1262ccb4cf2c36a1c0503fa24d9300eef Mon Sep 17 00:00:00 2001 From: Justin Black Date: Mon, 19 Feb 2024 21:17:56 -0800 Subject: [PATCH 07/50] Java petstore sample updated --- .../components/requestbodies/Client.java | 2 +- .../client/components/requestbodies/Pet.java | 4 +- .../components/requestbodies/UserArray.java | 2 +- .../ApplicationjsonSchema.java | 10 +- .../responses/headerswithnobody/Headers.java | 10 +- .../ApplicationjsonSchema.java | 10 +- .../applicationxml/ApplicationxmlSchema.java | 10 +- .../Headers.java | 10 +- .../ApplicationjsonSchema.java | 10 +- .../successwithjsonapiresponse/Headers.java | 10 +- .../schemas/AbstractStepMessage.java | 10 +- .../schemas/AdditionalPropertiesClass.java | 70 +-- .../schemas/AdditionalPropertiesSchema.java | 140 ++---- .../AdditionalPropertiesWithArrayOfEnums.java | 20 +- .../client/components/schemas/Address.java | 10 +- .../client/components/schemas/Animal.java | 20 +- .../client/components/schemas/AnimalFarm.java | 10 +- .../components/schemas/AnyTypeAndFormat.java | 460 +++++------------- .../components/schemas/AnyTypeNotString.java | 50 +- .../components/schemas/ApiResponseSchema.java | 10 +- .../client/components/schemas/Apple.java | 38 +- .../client/components/schemas/AppleReq.java | 10 +- .../schemas/ArrayHoldingAnyType.java | 10 +- .../schemas/ArrayOfArrayOfNumberOnly.java | 30 +- .../components/schemas/ArrayOfEnums.java | 10 +- .../components/schemas/ArrayOfNumberOnly.java | 20 +- .../client/components/schemas/ArrayTest.java | 60 +-- .../schemas/ArrayWithValidationsInItems.java | 20 +- .../client/components/schemas/Banana.java | 10 +- .../client/components/schemas/BananaReq.java | 10 +- .../client/components/schemas/Bar.java | 10 +- .../client/components/schemas/BasquePig.java | 20 +- .../components/schemas/BooleanEnum.java | 10 +- .../components/schemas/Capitalization.java | 10 +- .../client/components/schemas/Cat.java | 60 +-- .../client/components/schemas/Category.java | 20 +- .../client/components/schemas/ChildCat.java | 60 +-- .../client/components/schemas/ClassModel.java | 50 +- .../client/components/schemas/Client.java | 10 +- .../schemas/ComplexQuadrilateral.java | 70 +-- ...posedAnyOfDifferentTypesNoValidations.java | 60 +-- .../components/schemas/ComposedArray.java | 10 +- .../components/schemas/ComposedBool.java | 10 +- .../components/schemas/ComposedNone.java | 10 +- .../components/schemas/ComposedNumber.java | 10 +- .../components/schemas/ComposedObject.java | 10 +- .../schemas/ComposedOneOfDifferentTypes.java | 80 +-- .../components/schemas/ComposedString.java | 10 +- .../client/components/schemas/Currency.java | 10 +- .../client/components/schemas/DanishPig.java | 20 +- .../components/schemas/DateTimeTest.java | 10 +- .../schemas/DateTimeWithValidations.java | 10 +- .../schemas/DateWithValidations.java | 10 +- .../client/components/schemas/Dog.java | 60 +-- .../client/components/schemas/Drawing.java | 20 +- .../client/components/schemas/EnumArrays.java | 40 +- .../client/components/schemas/EnumClass.java | 10 +- .../client/components/schemas/EnumTest.java | 50 +- .../schemas/EquilateralTriangle.java | 70 +-- .../client/components/schemas/File.java | 10 +- .../schemas/FileSchemaTestClass.java | 20 +- .../client/components/schemas/Foo.java | 10 +- .../client/components/schemas/FormatTest.java | 110 ++--- .../client/components/schemas/FromSchema.java | 10 +- .../client/components/schemas/Fruit.java | 50 +- .../client/components/schemas/FruitReq.java | 50 +- .../client/components/schemas/GmFruit.java | 50 +- .../components/schemas/GrandparentAnimal.java | 10 +- .../components/schemas/HasOnlyReadOnly.java | 10 +- .../components/schemas/HealthCheckResult.java | 28 +- .../components/schemas/IntegerEnum.java | 10 +- .../components/schemas/IntegerEnumBig.java | 10 +- .../schemas/IntegerEnumOneValue.java | 10 +- .../schemas/IntegerEnumWithDefaultValue.java | 10 +- .../components/schemas/IntegerMax10.java | 10 +- .../components/schemas/IntegerMin15.java | 10 +- .../components/schemas/IsoscelesTriangle.java | 70 +-- .../client/components/schemas/Items.java | 10 +- .../components/schemas/JSONPatchRequest.java | 60 +-- .../JSONPatchRequestAddReplaceTest.java | 20 +- .../schemas/JSONPatchRequestMoveCopy.java | 20 +- .../schemas/JSONPatchRequestRemove.java | 20 +- .../client/components/schemas/Mammal.java | 50 +- .../client/components/schemas/MapTest.java | 60 +-- ...ropertiesAndAdditionalPropertiesClass.java | 20 +- .../client/components/schemas/Money.java | 10 +- .../components/schemas/MyObjectDto.java | 10 +- .../client/components/schemas/Name.java | 50 +- .../schemas/NoAdditionalProperties.java | 10 +- .../components/schemas/NullableClass.java | 300 ++++-------- .../components/schemas/NullableShape.java | 50 +- .../components/schemas/NullableString.java | 18 +- .../client/components/schemas/NumberOnly.java | 10 +- .../schemas/NumberWithExclusiveMinMax.java | 10 +- .../schemas/NumberWithValidations.java | 10 +- .../schemas/ObjWithRequiredProps.java | 10 +- .../schemas/ObjWithRequiredPropsBase.java | 10 +- .../ObjectModelWithArgAndArgsProperties.java | 10 +- .../schemas/ObjectModelWithRefProps.java | 10 +- ...hAllOfWithReqTestPropFromUnsetAddProp.java | 60 +-- .../ObjectWithCollidingProperties.java | 10 +- .../schemas/ObjectWithDecimalProperties.java | 10 +- .../ObjectWithDifficultlyNamedProps.java | 10 +- .../ObjectWithInlineCompositionProperty.java | 70 +-- ...ObjectWithInvalidNamedRefedProperties.java | 10 +- .../ObjectWithNonIntersectingValues.java | 10 +- .../schemas/ObjectWithOnlyOptionalProps.java | 10 +- .../schemas/ObjectWithOptionalTestProp.java | 10 +- .../schemas/ObjectWithValidations.java | 10 +- .../client/components/schemas/Order.java | 20 +- .../schemas/PaginatedResultMyObjectDto.java | 20 +- .../client/components/schemas/ParentPet.java | 10 +- .../client/components/schemas/Pet.java | 40 +- .../client/components/schemas/Pig.java | 50 +- .../client/components/schemas/Player.java | 10 +- .../client/components/schemas/PublicKey.java | 10 +- .../components/schemas/Quadrilateral.java | 50 +- .../schemas/QuadrilateralInterface.java | 60 +-- .../components/schemas/ReadOnlyFirst.java | 10 +- .../schemas/ReqPropsFromExplicitAddProps.java | 10 +- .../schemas/ReqPropsFromTrueAddProps.java | 10 +- .../schemas/ReqPropsFromUnsetAddProps.java | 10 +- .../components/schemas/ReturnSchema.java | 50 +- .../components/schemas/ScaleneTriangle.java | 70 +-- .../components/schemas/Schema200Response.java | 50 +- .../schemas/SelfReferencingArrayModel.java | 10 +- .../schemas/SelfReferencingObjectModel.java | 10 +- .../client/components/schemas/Shape.java | 50 +- .../components/schemas/ShapeOrNull.java | 50 +- .../schemas/SimpleQuadrilateral.java | 70 +-- .../client/components/schemas/SomeObject.java | 50 +- .../components/schemas/SpecialModelname.java | 10 +- .../components/schemas/StringBooleanMap.java | 10 +- .../client/components/schemas/StringEnum.java | 18 +- .../schemas/StringEnumWithDefaultValue.java | 10 +- .../schemas/StringWithValidation.java | 10 +- .../client/components/schemas/Tag.java | 10 +- .../client/components/schemas/Triangle.java | 50 +- .../components/schemas/TriangleInterface.java | 60 +-- .../client/components/schemas/UUIDString.java | 10 +- .../client/components/schemas/User.java | 78 +-- .../client/components/schemas/Whale.java | 20 +- .../client/components/schemas/Zebra.java | 30 +- .../delete/HeaderParameters.java | 10 +- .../delete/PathParameters.java | 10 +- .../delete/parameters/parameter1/Schema1.java | 10 +- .../commonparamsubdir/get/PathParameters.java | 10 +- .../get/QueryParameters.java | 10 +- .../parameter0/PathParamSchema0.java | 10 +- .../post/HeaderParameters.java | 10 +- .../post/PathParameters.java | 10 +- .../paths/fake/delete/HeaderParameters.java | 10 +- .../paths/fake/delete/QueryParameters.java | 10 +- .../delete/parameters/parameter1/Schema1.java | 10 +- .../delete/parameters/parameter4/Schema4.java | 10 +- .../paths/fake/get/HeaderParameters.java | 10 +- .../paths/fake/get/QueryParameters.java | 10 +- .../client/paths/fake/get/RequestBody.java | 2 +- .../get/parameters/parameter0/Schema0.java | 20 +- .../get/parameters/parameter1/Schema1.java | 10 +- .../get/parameters/parameter2/Schema2.java | 20 +- .../get/parameters/parameter3/Schema3.java | 10 +- .../get/parameters/parameter4/Schema4.java | 10 +- .../get/parameters/parameter5/Schema5.java | 10 +- .../ApplicationxwwwformurlencodedSchema.java | 40 +- .../client/paths/fake/post/RequestBody.java | 2 +- .../ApplicationxwwwformurlencodedSchema.java | 100 ++-- .../get/RequestBody.java | 2 +- .../put/RequestBody.java | 2 +- .../put/QueryParameters.java | 10 +- .../put/RequestBody.java | 2 +- .../put/QueryParameters.java | 10 +- .../delete/PathParameters.java | 10 +- .../post/RequestBody.java | 2 +- .../ApplicationjsonSchema.java | 10 +- .../post/QueryParameters.java | 10 +- .../post/RequestBody.java | 4 +- .../post/parameters/parameter0/Schema0.java | 60 +-- .../post/parameters/parameter1/Schema1.java | 70 +-- .../ApplicationjsonSchema.java | 60 +-- .../MultipartformdataSchema.java | 70 +-- .../ApplicationjsonSchema.java | 60 +-- .../MultipartformdataSchema.java | 70 +-- .../fakejsonformdata/get/RequestBody.java | 2 +- .../ApplicationxwwwformurlencodedSchema.java | 10 +- .../fakejsonpatch/patch/RequestBody.java | 2 +- .../fakejsonwithcharset/post/RequestBody.java | 2 +- .../post/RequestBody.java | 4 +- .../ApplicationjsonSchema.java | 10 +- .../MultipartformdataSchema.java | 10 +- .../fakeobjinquery/get/QueryParameters.java | 10 +- .../get/parameters/parameter0/Schema0.java | 10 +- .../post/CookieParameters.java | 10 +- .../post/HeaderParameters.java | 10 +- .../post/PathParameters.java | 10 +- .../post/QueryParameters.java | 10 +- .../post/RequestBody.java | 2 +- .../fakepemcontenttype/get/RequestBody.java | 2 +- .../post/PathParameters.java | 10 +- .../post/RequestBody.java | 2 +- .../MultipartformdataSchema.java | 10 +- .../get/QueryParameters.java | 10 +- .../get/QueryParameters.java | 10 +- .../fakerefsarraymodel/post/RequestBody.java | 2 +- .../post/RequestBody.java | 2 +- .../fakerefsboolean/post/RequestBody.java | 2 +- .../post/RequestBody.java | 2 +- .../paths/fakerefsenum/post/RequestBody.java | 2 +- .../fakerefsmammal/post/RequestBody.java | 2 +- .../fakerefsnumber/post/RequestBody.java | 2 +- .../post/RequestBody.java | 2 +- .../fakerefsstring/post/RequestBody.java | 2 +- .../put/QueryParameters.java | 10 +- .../put/parameters/parameter0/Schema0.java | 10 +- .../put/parameters/parameter1/Schema1.java | 10 +- .../put/parameters/parameter2/Schema2.java | 10 +- .../put/parameters/parameter3/Schema3.java | 10 +- .../put/parameters/parameter4/Schema4.java | 10 +- .../post/RequestBody.java | 2 +- .../fakeuploadfile/post/RequestBody.java | 2 +- .../MultipartformdataSchema.java | 10 +- .../fakeuploadfiles/post/RequestBody.java | 2 +- .../MultipartformdataSchema.java | 20 +- .../ApplicationjsonSchema.java | 10 +- .../foo/get/servers/server1/Variables.java | 20 +- .../petfindbystatus/get/QueryParameters.java | 10 +- .../get/parameters/parameter0/Schema0.java | 20 +- .../servers/server1/Variables.java | 20 +- .../petfindbytags/get/QueryParameters.java | 10 +- .../get/parameters/parameter0/Schema0.java | 10 +- .../petpetid/delete/HeaderParameters.java | 10 +- .../paths/petpetid/delete/PathParameters.java | 10 +- .../paths/petpetid/get/PathParameters.java | 10 +- .../paths/petpetid/post/PathParameters.java | 10 +- .../paths/petpetid/post/RequestBody.java | 2 +- .../ApplicationxwwwformurlencodedSchema.java | 10 +- .../post/PathParameters.java | 10 +- .../petpetiduploadimage/post/RequestBody.java | 2 +- .../MultipartformdataSchema.java | 10 +- .../paths/storeorder/post/RequestBody.java | 2 +- .../delete/PathParameters.java | 10 +- .../storeorderorderid/get/PathParameters.java | 10 +- .../get/parameters/parameter0/Schema0.java | 10 +- .../client/paths/user/post/RequestBody.java | 2 +- .../paths/userlogin/get/QueryParameters.java | 10 +- .../get/responses/response200/Headers.java | 10 +- .../userusername/delete/PathParameters.java | 10 +- .../userusername/get/PathParameters.java | 10 +- .../userusername/put/PathParameters.java | 10 +- .../paths/userusername/put/RequestBody.java | 2 +- .../client/schemas/AnyTypeJsonSchema.java | 40 +- .../client/schemas/BooleanJsonSchema.java | 10 +- .../client/schemas/DateJsonSchema.java | 10 +- .../client/schemas/DateTimeJsonSchema.java | 10 +- .../client/schemas/DecimalJsonSchema.java | 10 +- .../client/schemas/DoubleJsonSchema.java | 10 +- .../client/schemas/FloatJsonSchema.java | 10 +- .../client/schemas/Int32JsonSchema.java | 10 +- .../client/schemas/Int64JsonSchema.java | 10 +- .../client/schemas/IntJsonSchema.java | 10 +- .../client/schemas/ListJsonSchema.java | 10 +- .../client/schemas/MapJsonSchema.java | 10 +- .../client/schemas/NotAnyTypeJsonSchema.java | 50 +- .../client/schemas/NullJsonSchema.java | 10 +- .../client/schemas/NumberJsonSchema.java | 10 +- .../client/schemas/StringJsonSchema.java | 10 +- .../client/schemas/UuidJsonSchema.java | 10 +- .../validation/UnsetAnyTypeJsonSchema.java | 50 +- .../client/servers/server0/Variables.java | 30 +- .../client/servers/server1/Variables.java | 20 +- .../client/schemas/ArrayTypeSchemaTest.java | 16 +- .../client/schemas/ObjectTypeSchemaTest.java | 32 +- 272 files changed, 1749 insertions(+), 4413 deletions(-) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Client.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Client.java index bcaea3e38c3..3af90821835 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Client.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Client.java @@ -33,7 +33,7 @@ public Client1() { public SerializedRequestBody serialize(SealedRequestBody requestBody) { ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().data()); + return serialize(requestBody0.contentType(), requestBody0.body().getData()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Pet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Pet.java index 9f5c4af3529..8e496a8cb92 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Pet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Pet.java @@ -41,10 +41,10 @@ public Pet1() { public SerializedRequestBody serialize(SealedRequestBody requestBody) { if (requestBody instanceof ApplicationjsonRequestBody requestBody0) { - return serialize(requestBody0.contentType(), requestBody0.body().data()); + return serialize(requestBody0.contentType(), requestBody0.body().getData()); } else { ApplicationxmlRequestBody requestBody1 = (ApplicationxmlRequestBody) requestBody; - return serialize(requestBody1.contentType(), requestBody1.body().data()); + return serialize(requestBody1.contentType(), requestBody1.body().getData()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/UserArray.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/UserArray.java index 6869263d25c..8dd35d38d09 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/UserArray.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/UserArray.java @@ -33,7 +33,7 @@ public UserArray1() { public SerializedRequestBody serialize(SealedRequestBody requestBody) { ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().data()); + return serialize(requestBody0.contentType(), requestBody0.body().getData()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.java index e604a887914..16d6f5b5619 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.java @@ -58,16 +58,12 @@ public ApplicationjsonSchemaListBuilder add(Map item) public sealed interface ApplicationjsonSchema1Boxed permits ApplicationjsonSchema1BoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ApplicationjsonSchema1BoxedList implements ApplicationjsonSchema1Boxed { - public final ApplicationjsonSchemaList data; - private ApplicationjsonSchema1BoxedList(ApplicationjsonSchemaList data) { - this.data = data; - } + public record ApplicationjsonSchema1BoxedList(ApplicationjsonSchemaList data) implements ApplicationjsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody/Headers.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody/Headers.java index 4e9d1c0f5e1..79a77523e3d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody/Headers.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody/Headers.java @@ -94,16 +94,12 @@ public HeadersMapBuilder getBuilderAfterLocation(Map instance) { public sealed interface Headers1Boxed permits Headers1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Headers1BoxedMap implements Headers1Boxed { - public final HeadersMap data; - private Headers1BoxedMap(HeadersMap data) { - this.data = data; - } + public record Headers1BoxedMap(HeadersMap data) implements Headers1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.java index 8fe2aa6077d..8d086ad3563 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.java @@ -59,16 +59,12 @@ public ApplicationjsonSchemaListBuilder add(Map item) public sealed interface ApplicationjsonSchema1Boxed permits ApplicationjsonSchema1BoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ApplicationjsonSchema1BoxedList implements ApplicationjsonSchema1Boxed { - public final ApplicationjsonSchemaList data; - private ApplicationjsonSchema1BoxedList(ApplicationjsonSchemaList data) { - this.data = data; - } + public record ApplicationjsonSchema1BoxedList(ApplicationjsonSchemaList data) implements ApplicationjsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.java index fd0792347ab..8e754cdbfbb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.java @@ -58,16 +58,12 @@ public ApplicationxmlSchemaListBuilder add(Map item) { public sealed interface ApplicationxmlSchema1Boxed permits ApplicationxmlSchema1BoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ApplicationxmlSchema1BoxedList implements ApplicationxmlSchema1Boxed { - public final ApplicationxmlSchemaList data; - private ApplicationxmlSchema1BoxedList(ApplicationxmlSchemaList data) { - this.data = data; - } + public record ApplicationxmlSchema1BoxedList(ApplicationxmlSchemaList data) implements ApplicationxmlSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/Headers.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/Headers.java index 6d9ac3e700f..98f5c7d0d48 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/Headers.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/Headers.java @@ -94,16 +94,12 @@ public HeadersMapBuilder getBuilderAfterSomeHeader(Map instance) public sealed interface Headers1Boxed permits Headers1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Headers1BoxedMap implements Headers1Boxed { - public final HeadersMap data; - private Headers1BoxedMap(HeadersMap data) { - this.data = data; - } + public record Headers1BoxedMap(HeadersMap data) implements Headers1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.java index b02b1f32b2b..18e68b29811 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.java @@ -96,16 +96,12 @@ public ApplicationjsonSchemaMapBuilder getBuilderAfterAdditionalProperty(Map arg, SchemaConfiguration configu public sealed interface AdditionalProperties1Boxed permits AdditionalProperties1BoxedVoid, AdditionalProperties1BoxedBoolean, AdditionalProperties1BoxedNumber, AdditionalProperties1BoxedString, AdditionalProperties1BoxedList, AdditionalProperties1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class AdditionalProperties1BoxedVoid implements AdditionalProperties1Boxed { - public final Void data; - private AdditionalProperties1BoxedVoid(Void data) { - this.data = data; - } + public record AdditionalProperties1BoxedVoid(Void data) implements AdditionalProperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalProperties1BoxedBoolean implements AdditionalProperties1Boxed { - public final boolean data; - private AdditionalProperties1BoxedBoolean(boolean data) { - this.data = data; - } + public record AdditionalProperties1BoxedBoolean(boolean data) implements AdditionalProperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalProperties1BoxedNumber implements AdditionalProperties1Boxed { - public final Number data; - private AdditionalProperties1BoxedNumber(Number data) { - this.data = data; - } + public record AdditionalProperties1BoxedNumber(Number data) implements AdditionalProperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalProperties1BoxedString implements AdditionalProperties1Boxed { - public final String data; - private AdditionalProperties1BoxedString(String data) { - this.data = data; - } + public record AdditionalProperties1BoxedString(String data) implements AdditionalProperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalProperties1BoxedList implements AdditionalProperties1Boxed { - public final FrozenList<@Nullable Object> data; - private AdditionalProperties1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record AdditionalProperties1BoxedList(FrozenList<@Nullable Object> data) implements AdditionalProperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalProperties1BoxedMap implements AdditionalProperties1Boxed { - public final FrozenMap<@Nullable Object> data; - private AdditionalProperties1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record AdditionalProperties1BoxedMap(FrozenMap<@Nullable Object> data) implements AdditionalProperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -638,16 +610,12 @@ public Schema1MapBuilder getBuilderAfterAdditionalProperty(Map arg, SchemaConfiguration configu public sealed interface AdditionalProperties2Boxed permits AdditionalProperties2BoxedVoid, AdditionalProperties2BoxedBoolean, AdditionalProperties2BoxedNumber, AdditionalProperties2BoxedString, AdditionalProperties2BoxedList, AdditionalProperties2BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class AdditionalProperties2BoxedVoid implements AdditionalProperties2Boxed { - public final Void data; - private AdditionalProperties2BoxedVoid(Void data) { - this.data = data; - } + public record AdditionalProperties2BoxedVoid(Void data) implements AdditionalProperties2Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalProperties2BoxedBoolean implements AdditionalProperties2Boxed { - public final boolean data; - private AdditionalProperties2BoxedBoolean(boolean data) { - this.data = data; - } + public record AdditionalProperties2BoxedBoolean(boolean data) implements AdditionalProperties2Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalProperties2BoxedNumber implements AdditionalProperties2Boxed { - public final Number data; - private AdditionalProperties2BoxedNumber(Number data) { - this.data = data; - } + public record AdditionalProperties2BoxedNumber(Number data) implements AdditionalProperties2Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalProperties2BoxedString implements AdditionalProperties2Boxed { - public final String data; - private AdditionalProperties2BoxedString(String data) { - this.data = data; - } + public record AdditionalProperties2BoxedString(String data) implements AdditionalProperties2Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalProperties2BoxedList implements AdditionalProperties2Boxed { - public final FrozenList<@Nullable Object> data; - private AdditionalProperties2BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record AdditionalProperties2BoxedList(FrozenList<@Nullable Object> data) implements AdditionalProperties2Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalProperties2BoxedMap implements AdditionalProperties2Boxed { - public final FrozenMap<@Nullable Object> data; - private AdditionalProperties2BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record AdditionalProperties2BoxedMap(FrozenMap<@Nullable Object> data) implements AdditionalProperties2Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -1121,16 +1065,12 @@ public Schema2MapBuilder getBuilderAfterAdditionalProperty(Map arg, SchemaConfiguration configu public sealed interface AdditionalPropertiesSchema1Boxed permits AdditionalPropertiesSchema1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class AdditionalPropertiesSchema1BoxedMap implements AdditionalPropertiesSchema1Boxed { - public final FrozenMap<@Nullable Object> data; - private AdditionalPropertiesSchema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record AdditionalPropertiesSchema1BoxedMap(FrozenMap<@Nullable Object> data) implements AdditionalPropertiesSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesWithArrayOfEnums.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesWithArrayOfEnums.java index cc74305ac3e..3b99d9df35a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesWithArrayOfEnums.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesWithArrayOfEnums.java @@ -67,16 +67,12 @@ public List build() { public sealed interface AdditionalPropertiesBoxed permits AdditionalPropertiesBoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class AdditionalPropertiesBoxedList implements AdditionalPropertiesBoxed { - public final AdditionalPropertiesList data; - private AdditionalPropertiesBoxedList(AdditionalPropertiesList data) { - this.data = data; - } + public record AdditionalPropertiesBoxedList(AdditionalPropertiesList data) implements AdditionalPropertiesBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -207,16 +203,12 @@ public AdditionalPropertiesWithArrayOfEnumsMapBuilder getBuilderAfterAdditionalP public sealed interface AdditionalPropertiesWithArrayOfEnums1Boxed permits AdditionalPropertiesWithArrayOfEnums1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class AdditionalPropertiesWithArrayOfEnums1BoxedMap implements AdditionalPropertiesWithArrayOfEnums1Boxed { - public final AdditionalPropertiesWithArrayOfEnumsMap data; - private AdditionalPropertiesWithArrayOfEnums1BoxedMap(AdditionalPropertiesWithArrayOfEnumsMap data) { - this.data = data; - } + public record AdditionalPropertiesWithArrayOfEnums1BoxedMap(AdditionalPropertiesWithArrayOfEnumsMap data) implements AdditionalPropertiesWithArrayOfEnums1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Address.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Address.java index 5fc41ffac3d..8b6108c0a6a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Address.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Address.java @@ -110,16 +110,12 @@ public AddressMapBuilder getBuilderAfterAdditionalProperty(Map i public sealed interface Address1Boxed permits Address1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Address1BoxedMap implements Address1Boxed { - public final AddressMap data; - private Address1BoxedMap(AddressMap data) { - this.data = data; - } + public record Address1BoxedMap(AddressMap data) implements Address1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Animal.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Animal.java index 087aee9fb05..5d71394f6c0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Animal.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Animal.java @@ -43,16 +43,12 @@ public static ClassName getInstance() { public sealed interface ColorBoxed permits ColorBoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ColorBoxedString implements ColorBoxed { - public final String data; - private ColorBoxedString(String data) { - this.data = data; - } + public record ColorBoxedString(String data) implements ColorBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -217,16 +213,12 @@ public AnimalMap0Builder getBuilderAfterClassName(Map public sealed interface Animal1Boxed permits Animal1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Animal1BoxedMap implements Animal1Boxed { - public final AnimalMap data; - private Animal1BoxedMap(AnimalMap data) { - this.data = data; - } + public record Animal1BoxedMap(AnimalMap data) implements Animal1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnimalFarm.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnimalFarm.java index f5c15ff1d8a..818199e7265 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnimalFarm.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnimalFarm.java @@ -57,16 +57,12 @@ public AnimalFarmListBuilder add(Map item) { public sealed interface AnimalFarm1Boxed permits AnimalFarm1BoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class AnimalFarm1BoxedList implements AnimalFarm1Boxed { - public final AnimalFarmList data; - private AnimalFarm1BoxedList(AnimalFarmList data) { - this.data = data; - } + public record AnimalFarm1BoxedList(AnimalFarmList data) implements AnimalFarm1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormat.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormat.java index 7db55e82eea..e51500be2b7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormat.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormat.java @@ -38,71 +38,47 @@ public class AnyTypeAndFormat { public sealed interface UuidSchemaBoxed permits UuidSchemaBoxedVoid, UuidSchemaBoxedBoolean, UuidSchemaBoxedNumber, UuidSchemaBoxedString, UuidSchemaBoxedList, UuidSchemaBoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class UuidSchemaBoxedVoid implements UuidSchemaBoxed { - public final Void data; - private UuidSchemaBoxedVoid(Void data) { - this.data = data; - } + public record UuidSchemaBoxedVoid(Void data) implements UuidSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UuidSchemaBoxedBoolean implements UuidSchemaBoxed { - public final boolean data; - private UuidSchemaBoxedBoolean(boolean data) { - this.data = data; - } + public record UuidSchemaBoxedBoolean(boolean data) implements UuidSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UuidSchemaBoxedNumber implements UuidSchemaBoxed { - public final Number data; - private UuidSchemaBoxedNumber(Number data) { - this.data = data; - } + public record UuidSchemaBoxedNumber(Number data) implements UuidSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UuidSchemaBoxedString implements UuidSchemaBoxed { - public final String data; - private UuidSchemaBoxedString(String data) { - this.data = data; - } + public record UuidSchemaBoxedString(String data) implements UuidSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UuidSchemaBoxedList implements UuidSchemaBoxed { - public final FrozenList<@Nullable Object> data; - private UuidSchemaBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record UuidSchemaBoxedList(FrozenList<@Nullable Object> data) implements UuidSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UuidSchemaBoxedMap implements UuidSchemaBoxed { - public final FrozenMap<@Nullable Object> data; - private UuidSchemaBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record UuidSchemaBoxedMap(FrozenMap<@Nullable Object> data) implements UuidSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -328,71 +304,47 @@ public UuidSchemaBoxedMap validateAndBox(Map arg, SchemaConfiguration conf } public sealed interface DateBoxed permits DateBoxedVoid, DateBoxedBoolean, DateBoxedNumber, DateBoxedString, DateBoxedList, DateBoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class DateBoxedVoid implements DateBoxed { - public final Void data; - private DateBoxedVoid(Void data) { - this.data = data; - } + public record DateBoxedVoid(Void data) implements DateBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DateBoxedBoolean implements DateBoxed { - public final boolean data; - private DateBoxedBoolean(boolean data) { - this.data = data; - } + public record DateBoxedBoolean(boolean data) implements DateBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DateBoxedNumber implements DateBoxed { - public final Number data; - private DateBoxedNumber(Number data) { - this.data = data; - } + public record DateBoxedNumber(Number data) implements DateBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DateBoxedString implements DateBoxed { - public final String data; - private DateBoxedString(String data) { - this.data = data; - } + public record DateBoxedString(String data) implements DateBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DateBoxedList implements DateBoxed { - public final FrozenList<@Nullable Object> data; - private DateBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record DateBoxedList(FrozenList<@Nullable Object> data) implements DateBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DateBoxedMap implements DateBoxed { - public final FrozenMap<@Nullable Object> data; - private DateBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record DateBoxedMap(FrozenMap<@Nullable Object> data) implements DateBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -618,71 +570,47 @@ public DateBoxedMap validateAndBox(Map arg, SchemaConfiguration configurat } public sealed interface DatetimeBoxed permits DatetimeBoxedVoid, DatetimeBoxedBoolean, DatetimeBoxedNumber, DatetimeBoxedString, DatetimeBoxedList, DatetimeBoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class DatetimeBoxedVoid implements DatetimeBoxed { - public final Void data; - private DatetimeBoxedVoid(Void data) { - this.data = data; - } + public record DatetimeBoxedVoid(Void data) implements DatetimeBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DatetimeBoxedBoolean implements DatetimeBoxed { - public final boolean data; - private DatetimeBoxedBoolean(boolean data) { - this.data = data; - } + public record DatetimeBoxedBoolean(boolean data) implements DatetimeBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DatetimeBoxedNumber implements DatetimeBoxed { - public final Number data; - private DatetimeBoxedNumber(Number data) { - this.data = data; - } + public record DatetimeBoxedNumber(Number data) implements DatetimeBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DatetimeBoxedString implements DatetimeBoxed { - public final String data; - private DatetimeBoxedString(String data) { - this.data = data; - } + public record DatetimeBoxedString(String data) implements DatetimeBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DatetimeBoxedList implements DatetimeBoxed { - public final FrozenList<@Nullable Object> data; - private DatetimeBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record DatetimeBoxedList(FrozenList<@Nullable Object> data) implements DatetimeBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DatetimeBoxedMap implements DatetimeBoxed { - public final FrozenMap<@Nullable Object> data; - private DatetimeBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record DatetimeBoxedMap(FrozenMap<@Nullable Object> data) implements DatetimeBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -908,71 +836,47 @@ public DatetimeBoxedMap validateAndBox(Map arg, SchemaConfiguration config } public sealed interface NumberSchemaBoxed permits NumberSchemaBoxedVoid, NumberSchemaBoxedBoolean, NumberSchemaBoxedNumber, NumberSchemaBoxedString, NumberSchemaBoxedList, NumberSchemaBoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class NumberSchemaBoxedVoid implements NumberSchemaBoxed { - public final Void data; - private NumberSchemaBoxedVoid(Void data) { - this.data = data; - } + public record NumberSchemaBoxedVoid(Void data) implements NumberSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NumberSchemaBoxedBoolean implements NumberSchemaBoxed { - public final boolean data; - private NumberSchemaBoxedBoolean(boolean data) { - this.data = data; - } + public record NumberSchemaBoxedBoolean(boolean data) implements NumberSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NumberSchemaBoxedNumber implements NumberSchemaBoxed { - public final Number data; - private NumberSchemaBoxedNumber(Number data) { - this.data = data; - } + public record NumberSchemaBoxedNumber(Number data) implements NumberSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NumberSchemaBoxedString implements NumberSchemaBoxed { - public final String data; - private NumberSchemaBoxedString(String data) { - this.data = data; - } + public record NumberSchemaBoxedString(String data) implements NumberSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NumberSchemaBoxedList implements NumberSchemaBoxed { - public final FrozenList<@Nullable Object> data; - private NumberSchemaBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record NumberSchemaBoxedList(FrozenList<@Nullable Object> data) implements NumberSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NumberSchemaBoxedMap implements NumberSchemaBoxed { - public final FrozenMap<@Nullable Object> data; - private NumberSchemaBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record NumberSchemaBoxedMap(FrozenMap<@Nullable Object> data) implements NumberSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -1198,71 +1102,47 @@ public NumberSchemaBoxedMap validateAndBox(Map arg, SchemaConfiguration co } public sealed interface BinaryBoxed permits BinaryBoxedVoid, BinaryBoxedBoolean, BinaryBoxedNumber, BinaryBoxedString, BinaryBoxedList, BinaryBoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class BinaryBoxedVoid implements BinaryBoxed { - public final Void data; - private BinaryBoxedVoid(Void data) { - this.data = data; - } + public record BinaryBoxedVoid(Void data) implements BinaryBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class BinaryBoxedBoolean implements BinaryBoxed { - public final boolean data; - private BinaryBoxedBoolean(boolean data) { - this.data = data; - } + public record BinaryBoxedBoolean(boolean data) implements BinaryBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class BinaryBoxedNumber implements BinaryBoxed { - public final Number data; - private BinaryBoxedNumber(Number data) { - this.data = data; - } + public record BinaryBoxedNumber(Number data) implements BinaryBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class BinaryBoxedString implements BinaryBoxed { - public final String data; - private BinaryBoxedString(String data) { - this.data = data; - } + public record BinaryBoxedString(String data) implements BinaryBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class BinaryBoxedList implements BinaryBoxed { - public final FrozenList<@Nullable Object> data; - private BinaryBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record BinaryBoxedList(FrozenList<@Nullable Object> data) implements BinaryBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class BinaryBoxedMap implements BinaryBoxed { - public final FrozenMap<@Nullable Object> data; - private BinaryBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record BinaryBoxedMap(FrozenMap<@Nullable Object> data) implements BinaryBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -1488,71 +1368,47 @@ public BinaryBoxedMap validateAndBox(Map arg, SchemaConfiguration configur } public sealed interface Int32Boxed permits Int32BoxedVoid, Int32BoxedBoolean, Int32BoxedNumber, Int32BoxedString, Int32BoxedList, Int32BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Int32BoxedVoid implements Int32Boxed { - public final Void data; - private Int32BoxedVoid(Void data) { - this.data = data; - } + public record Int32BoxedVoid(Void data) implements Int32Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Int32BoxedBoolean implements Int32Boxed { - public final boolean data; - private Int32BoxedBoolean(boolean data) { - this.data = data; - } + public record Int32BoxedBoolean(boolean data) implements Int32Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Int32BoxedNumber implements Int32Boxed { - public final Number data; - private Int32BoxedNumber(Number data) { - this.data = data; - } + public record Int32BoxedNumber(Number data) implements Int32Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Int32BoxedString implements Int32Boxed { - public final String data; - private Int32BoxedString(String data) { - this.data = data; - } + public record Int32BoxedString(String data) implements Int32Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Int32BoxedList implements Int32Boxed { - public final FrozenList<@Nullable Object> data; - private Int32BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Int32BoxedList(FrozenList<@Nullable Object> data) implements Int32Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Int32BoxedMap implements Int32Boxed { - public final FrozenMap<@Nullable Object> data; - private Int32BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Int32BoxedMap(FrozenMap<@Nullable Object> data) implements Int32Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -1778,71 +1634,47 @@ public Int32BoxedMap validateAndBox(Map arg, SchemaConfiguration configura } public sealed interface Int64Boxed permits Int64BoxedVoid, Int64BoxedBoolean, Int64BoxedNumber, Int64BoxedString, Int64BoxedList, Int64BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Int64BoxedVoid implements Int64Boxed { - public final Void data; - private Int64BoxedVoid(Void data) { - this.data = data; - } + public record Int64BoxedVoid(Void data) implements Int64Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Int64BoxedBoolean implements Int64Boxed { - public final boolean data; - private Int64BoxedBoolean(boolean data) { - this.data = data; - } + public record Int64BoxedBoolean(boolean data) implements Int64Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Int64BoxedNumber implements Int64Boxed { - public final Number data; - private Int64BoxedNumber(Number data) { - this.data = data; - } + public record Int64BoxedNumber(Number data) implements Int64Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Int64BoxedString implements Int64Boxed { - public final String data; - private Int64BoxedString(String data) { - this.data = data; - } + public record Int64BoxedString(String data) implements Int64Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Int64BoxedList implements Int64Boxed { - public final FrozenList<@Nullable Object> data; - private Int64BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Int64BoxedList(FrozenList<@Nullable Object> data) implements Int64Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Int64BoxedMap implements Int64Boxed { - public final FrozenMap<@Nullable Object> data; - private Int64BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Int64BoxedMap(FrozenMap<@Nullable Object> data) implements Int64Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -2068,71 +1900,47 @@ public Int64BoxedMap validateAndBox(Map arg, SchemaConfiguration configura } public sealed interface DoubleSchemaBoxed permits DoubleSchemaBoxedVoid, DoubleSchemaBoxedBoolean, DoubleSchemaBoxedNumber, DoubleSchemaBoxedString, DoubleSchemaBoxedList, DoubleSchemaBoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class DoubleSchemaBoxedVoid implements DoubleSchemaBoxed { - public final Void data; - private DoubleSchemaBoxedVoid(Void data) { - this.data = data; - } + public record DoubleSchemaBoxedVoid(Void data) implements DoubleSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DoubleSchemaBoxedBoolean implements DoubleSchemaBoxed { - public final boolean data; - private DoubleSchemaBoxedBoolean(boolean data) { - this.data = data; - } + public record DoubleSchemaBoxedBoolean(boolean data) implements DoubleSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DoubleSchemaBoxedNumber implements DoubleSchemaBoxed { - public final Number data; - private DoubleSchemaBoxedNumber(Number data) { - this.data = data; - } + public record DoubleSchemaBoxedNumber(Number data) implements DoubleSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DoubleSchemaBoxedString implements DoubleSchemaBoxed { - public final String data; - private DoubleSchemaBoxedString(String data) { - this.data = data; - } + public record DoubleSchemaBoxedString(String data) implements DoubleSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DoubleSchemaBoxedList implements DoubleSchemaBoxed { - public final FrozenList<@Nullable Object> data; - private DoubleSchemaBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record DoubleSchemaBoxedList(FrozenList<@Nullable Object> data) implements DoubleSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DoubleSchemaBoxedMap implements DoubleSchemaBoxed { - public final FrozenMap<@Nullable Object> data; - private DoubleSchemaBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record DoubleSchemaBoxedMap(FrozenMap<@Nullable Object> data) implements DoubleSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -2358,71 +2166,47 @@ public DoubleSchemaBoxedMap validateAndBox(Map arg, SchemaConfiguration co } public sealed interface FloatSchemaBoxed permits FloatSchemaBoxedVoid, FloatSchemaBoxedBoolean, FloatSchemaBoxedNumber, FloatSchemaBoxedString, FloatSchemaBoxedList, FloatSchemaBoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class FloatSchemaBoxedVoid implements FloatSchemaBoxed { - public final Void data; - private FloatSchemaBoxedVoid(Void data) { - this.data = data; - } + public record FloatSchemaBoxedVoid(Void data) implements FloatSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class FloatSchemaBoxedBoolean implements FloatSchemaBoxed { - public final boolean data; - private FloatSchemaBoxedBoolean(boolean data) { - this.data = data; - } + public record FloatSchemaBoxedBoolean(boolean data) implements FloatSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class FloatSchemaBoxedNumber implements FloatSchemaBoxed { - public final Number data; - private FloatSchemaBoxedNumber(Number data) { - this.data = data; - } + public record FloatSchemaBoxedNumber(Number data) implements FloatSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class FloatSchemaBoxedString implements FloatSchemaBoxed { - public final String data; - private FloatSchemaBoxedString(String data) { - this.data = data; - } + public record FloatSchemaBoxedString(String data) implements FloatSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class FloatSchemaBoxedList implements FloatSchemaBoxed { - public final FrozenList<@Nullable Object> data; - private FloatSchemaBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record FloatSchemaBoxedList(FrozenList<@Nullable Object> data) implements FloatSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class FloatSchemaBoxedMap implements FloatSchemaBoxed { - public final FrozenMap<@Nullable Object> data; - private FloatSchemaBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record FloatSchemaBoxedMap(FrozenMap<@Nullable Object> data) implements FloatSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -3280,16 +3064,12 @@ public AnyTypeAndFormatMapBuilder getBuilderAfterAdditionalProperty(Map data; - private AnyTypeNotString1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record AnyTypeNotString1BoxedList(FrozenList<@Nullable Object> data) implements AnyTypeNotString1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyTypeNotString1BoxedMap implements AnyTypeNotString1Boxed { - public final FrozenMap<@Nullable Object> data; - private AnyTypeNotString1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record AnyTypeNotString1BoxedMap(FrozenMap<@Nullable Object> data) implements AnyTypeNotString1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ApiResponseSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ApiResponseSchema.java index f0fbb38eef7..cf78c09eaf9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ApiResponseSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ApiResponseSchema.java @@ -188,16 +188,12 @@ public ApiResponseMapBuilder getBuilderAfterAdditionalProperty(Map in public sealed interface Apple1Boxed permits Apple1BoxedVoid, Apple1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Apple1BoxedVoid implements Apple1Boxed { - public final Void data; - private Apple1BoxedVoid(Void data) { - this.data = data; - } + public record Apple1BoxedVoid(Void data) implements Apple1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Apple1BoxedMap implements Apple1Boxed { - public final AppleMap data; - private Apple1BoxedMap(AppleMap data) { - this.data = data; - } + public record Apple1BoxedMap(AppleMap data) implements Apple1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AppleReq.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AppleReq.java index 08f3dfed34a..fd5c5565600 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AppleReq.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AppleReq.java @@ -158,16 +158,12 @@ public AppleReqMap0Builder getBuilderAfterCultivar(Map instance) public sealed interface AppleReq1Boxed permits AppleReq1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class AppleReq1BoxedMap implements AppleReq1Boxed { - public final AppleReqMap data; - private AppleReq1BoxedMap(AppleReqMap data) { - this.data = data; - } + public record AppleReq1BoxedMap(AppleReqMap data) implements AppleReq1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayHoldingAnyType.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayHoldingAnyType.java index 788bf3ac65e..fde3bc8b23a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayHoldingAnyType.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayHoldingAnyType.java @@ -108,16 +108,12 @@ public ArrayHoldingAnyTypeListBuilder add(Map item) { public sealed interface ArrayHoldingAnyType1Boxed permits ArrayHoldingAnyType1BoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ArrayHoldingAnyType1BoxedList implements ArrayHoldingAnyType1Boxed { - public final ArrayHoldingAnyTypeList data; - private ArrayHoldingAnyType1BoxedList(ArrayHoldingAnyTypeList data) { - this.data = data; - } + public record ArrayHoldingAnyType1BoxedList(ArrayHoldingAnyTypeList data) implements ArrayHoldingAnyType1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfArrayOfNumberOnly.java index 28e301edef8..37532ed307b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfArrayOfNumberOnly.java @@ -90,16 +90,12 @@ public List build() { public sealed interface ItemsBoxed permits ItemsBoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ItemsBoxedList implements ItemsBoxed { - public final ItemsList data; - private ItemsBoxedList(ItemsList data) { - this.data = data; - } + public record ItemsBoxedList(ItemsList data) implements ItemsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -209,16 +205,12 @@ public List> build() { public sealed interface ArrayArrayNumberBoxed permits ArrayArrayNumberBoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ArrayArrayNumberBoxedList implements ArrayArrayNumberBoxed { - public final ArrayArrayNumberList data; - private ArrayArrayNumberBoxedList(ArrayArrayNumberList data) { - this.data = data; - } + public record ArrayArrayNumberBoxedList(ArrayArrayNumberList data) implements ArrayArrayNumberBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -362,16 +354,12 @@ public ArrayOfArrayOfNumberOnlyMapBuilder getBuilderAfterAdditionalProperty(Map< public sealed interface ArrayOfArrayOfNumberOnly1Boxed permits ArrayOfArrayOfNumberOnly1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ArrayOfArrayOfNumberOnly1BoxedMap implements ArrayOfArrayOfNumberOnly1Boxed { - public final ArrayOfArrayOfNumberOnlyMap data; - private ArrayOfArrayOfNumberOnly1BoxedMap(ArrayOfArrayOfNumberOnlyMap data) { - this.data = data; - } + public record ArrayOfArrayOfNumberOnly1BoxedMap(ArrayOfArrayOfNumberOnlyMap data) implements ArrayOfArrayOfNumberOnly1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfEnums.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfEnums.java index 40292b4e362..370f50458ff 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfEnums.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfEnums.java @@ -70,16 +70,12 @@ public ArrayOfEnumsListBuilder add(StringEnum.NullStringEnumEnums item) { public sealed interface ArrayOfEnums1Boxed permits ArrayOfEnums1BoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ArrayOfEnums1BoxedList implements ArrayOfEnums1Boxed { - public final ArrayOfEnumsList data; - private ArrayOfEnums1BoxedList(ArrayOfEnumsList data) { - this.data = data; - } + public record ArrayOfEnums1BoxedList(ArrayOfEnumsList data) implements ArrayOfEnums1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfNumberOnly.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfNumberOnly.java index 86fb6a6632f..21d0b580344 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfNumberOnly.java @@ -90,16 +90,12 @@ public List build() { public sealed interface ArrayNumberBoxed permits ArrayNumberBoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ArrayNumberBoxedList implements ArrayNumberBoxed { - public final ArrayNumberList data; - private ArrayNumberBoxedList(ArrayNumberList data) { - this.data = data; - } + public record ArrayNumberBoxedList(ArrayNumberList data) implements ArrayNumberBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -243,16 +239,12 @@ public ArrayOfNumberOnlyMapBuilder getBuilderAfterAdditionalProperty(Map build() { public sealed interface ArrayOfStringBoxed permits ArrayOfStringBoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ArrayOfStringBoxedList implements ArrayOfStringBoxed { - public final ArrayOfStringList data; - private ArrayOfStringBoxedList(ArrayOfStringList data) { - this.data = data; - } + public record ArrayOfStringBoxedList(ArrayOfStringList data) implements ArrayOfStringBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -221,16 +217,12 @@ public List build() { public sealed interface Items1Boxed permits Items1BoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Items1BoxedList implements Items1Boxed { - public final ItemsList data; - private Items1BoxedList(ItemsList data) { - this.data = data; - } + public record Items1BoxedList(ItemsList data) implements Items1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -340,16 +332,12 @@ public List> build() { public sealed interface ArrayArrayOfIntegerBoxed permits ArrayArrayOfIntegerBoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ArrayArrayOfIntegerBoxedList implements ArrayArrayOfIntegerBoxed { - public final ArrayArrayOfIntegerList data; - private ArrayArrayOfIntegerBoxedList(ArrayArrayOfIntegerList data) { - this.data = data; - } + public record ArrayArrayOfIntegerBoxedList(ArrayArrayOfIntegerList data) implements ArrayArrayOfIntegerBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -459,16 +447,12 @@ public ItemsListBuilder1 add(Map item) { public sealed interface Items3Boxed permits Items3BoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Items3BoxedList implements Items3Boxed { - public final ItemsList1 data; - private Items3BoxedList(ItemsList1 data) { - this.data = data; - } + public record Items3BoxedList(ItemsList1 data) implements Items3Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -578,16 +562,12 @@ public ArrayArrayOfModelListBuilder add(List> item public sealed interface ArrayArrayOfModelBoxed permits ArrayArrayOfModelBoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ArrayArrayOfModelBoxedList implements ArrayArrayOfModelBoxed { - public final ArrayArrayOfModelList data; - private ArrayArrayOfModelBoxedList(ArrayArrayOfModelList data) { - this.data = data; - } + public record ArrayArrayOfModelBoxedList(ArrayArrayOfModelList data) implements ArrayArrayOfModelBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -783,16 +763,12 @@ public ArrayTestMapBuilder getBuilderAfterAdditionalProperty(Map build() { public sealed interface ArrayWithValidationsInItems1Boxed permits ArrayWithValidationsInItems1BoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ArrayWithValidationsInItems1BoxedList implements ArrayWithValidationsInItems1Boxed { - public final ArrayWithValidationsInItemsList data; - private ArrayWithValidationsInItems1BoxedList(ArrayWithValidationsInItemsList data) { - this.data = data; - } + public record ArrayWithValidationsInItems1BoxedList(ArrayWithValidationsInItemsList data) implements ArrayWithValidationsInItems1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Banana.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Banana.java index 642a83769f0..02e95a5b4bd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Banana.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Banana.java @@ -133,16 +133,12 @@ public BananaMap0Builder getBuilderAfterLengthCm(Map i public sealed interface Banana1Boxed permits Banana1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Banana1BoxedMap implements Banana1Boxed { - public final BananaMap data; - private Banana1BoxedMap(BananaMap data) { - this.data = data; - } + public record Banana1BoxedMap(BananaMap data) implements Banana1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BananaReq.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BananaReq.java index e5a83b96766..0d771f6c5e5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BananaReq.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BananaReq.java @@ -176,16 +176,12 @@ public BananaReqMap0Builder getBuilderAfterLengthCm(Map instance public sealed interface BananaReq1Boxed permits BananaReq1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class BananaReq1BoxedMap implements BananaReq1Boxed { - public final BananaReqMap data; - private BananaReq1BoxedMap(BananaReqMap data) { - this.data = data; - } + public record BananaReq1BoxedMap(BananaReqMap data) implements BananaReq1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Bar.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Bar.java index b9f8e7509d4..d4e3e1858f0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Bar.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Bar.java @@ -21,16 +21,12 @@ public class Bar { public sealed interface Bar1Boxed permits Bar1BoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Bar1BoxedString implements Bar1Boxed { - public final String data; - private Bar1BoxedString(String data) { - this.data = data; - } + public record Bar1BoxedString(String data) implements Bar1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BasquePig.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BasquePig.java index 6947677afcb..36cbac19130 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BasquePig.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BasquePig.java @@ -45,16 +45,12 @@ public String value() { public sealed interface ClassNameBoxed permits ClassNameBoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ClassNameBoxedString implements ClassNameBoxed { - public final String data; - private ClassNameBoxedString(String data) { - this.data = data; - } + public record ClassNameBoxedString(String data) implements ClassNameBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -199,16 +195,12 @@ public BasquePigMap0Builder getBuilderAfterClassName(Map arg, SchemaConfiguration configu public sealed interface Cat1Boxed permits Cat1BoxedVoid, Cat1BoxedBoolean, Cat1BoxedNumber, Cat1BoxedString, Cat1BoxedList, Cat1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Cat1BoxedVoid implements Cat1Boxed { - public final Void data; - private Cat1BoxedVoid(Void data) { - this.data = data; - } + public record Cat1BoxedVoid(Void data) implements Cat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Cat1BoxedBoolean implements Cat1Boxed { - public final boolean data; - private Cat1BoxedBoolean(boolean data) { - this.data = data; - } + public record Cat1BoxedBoolean(boolean data) implements Cat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Cat1BoxedNumber implements Cat1Boxed { - public final Number data; - private Cat1BoxedNumber(Number data) { - this.data = data; - } + public record Cat1BoxedNumber(Number data) implements Cat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Cat1BoxedString implements Cat1Boxed { - public final String data; - private Cat1BoxedString(String data) { - this.data = data; - } + public record Cat1BoxedString(String data) implements Cat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Cat1BoxedList implements Cat1Boxed { - public final FrozenList<@Nullable Object> data; - private Cat1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Cat1BoxedList(FrozenList<@Nullable Object> data) implements Cat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Cat1BoxedMap implements Cat1Boxed { - public final FrozenMap<@Nullable Object> data; - private Cat1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Cat1BoxedMap(FrozenMap<@Nullable Object> data) implements Cat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Category.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Category.java index 5f0f7edcfb9..14300928c9c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Category.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Category.java @@ -43,16 +43,12 @@ public static Id getInstance() { public sealed interface NameBoxed permits NameBoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class NameBoxedString implements NameBoxed { - public final String data; - private NameBoxedString(String data) { - this.data = data; - } + public record NameBoxedString(String data) implements NameBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -235,16 +231,12 @@ public CategoryMap0Builder getBuilderAfterName(Map ins public sealed interface Category1Boxed permits Category1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Category1BoxedMap implements Category1Boxed { - public final CategoryMap data; - private Category1BoxedMap(CategoryMap data) { - this.data = data; - } + public record Category1BoxedMap(CategoryMap data) implements Category1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ChildCat.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ChildCat.java index efa914f6f17..871ba8f3495 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ChildCat.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ChildCat.java @@ -116,16 +116,12 @@ public Schema1MapBuilder getBuilderAfterAdditionalProperty(Map arg, SchemaConfiguration configu public sealed interface ChildCat1Boxed permits ChildCat1BoxedVoid, ChildCat1BoxedBoolean, ChildCat1BoxedNumber, ChildCat1BoxedString, ChildCat1BoxedList, ChildCat1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ChildCat1BoxedVoid implements ChildCat1Boxed { - public final Void data; - private ChildCat1BoxedVoid(Void data) { - this.data = data; - } + public record ChildCat1BoxedVoid(Void data) implements ChildCat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ChildCat1BoxedBoolean implements ChildCat1Boxed { - public final boolean data; - private ChildCat1BoxedBoolean(boolean data) { - this.data = data; - } + public record ChildCat1BoxedBoolean(boolean data) implements ChildCat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ChildCat1BoxedNumber implements ChildCat1Boxed { - public final Number data; - private ChildCat1BoxedNumber(Number data) { - this.data = data; - } + public record ChildCat1BoxedNumber(Number data) implements ChildCat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ChildCat1BoxedString implements ChildCat1Boxed { - public final String data; - private ChildCat1BoxedString(String data) { - this.data = data; - } + public record ChildCat1BoxedString(String data) implements ChildCat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ChildCat1BoxedList implements ChildCat1Boxed { - public final FrozenList<@Nullable Object> data; - private ChildCat1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ChildCat1BoxedList(FrozenList<@Nullable Object> data) implements ChildCat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ChildCat1BoxedMap implements ChildCat1Boxed { - public final FrozenMap<@Nullable Object> data; - private ChildCat1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ChildCat1BoxedMap(FrozenMap<@Nullable Object> data) implements ChildCat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ClassModel.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ClassModel.java index e97ed4a73aa..a498b40447a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ClassModel.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ClassModel.java @@ -106,71 +106,47 @@ public ClassModelMapBuilder getBuilderAfterAdditionalProperty(Map data; - private ClassModel1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ClassModel1BoxedList(FrozenList<@Nullable Object> data) implements ClassModel1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ClassModel1BoxedMap implements ClassModel1Boxed { - public final ClassModelMap data; - private ClassModel1BoxedMap(ClassModelMap data) { - this.data = data; - } + public record ClassModel1BoxedMap(ClassModelMap data) implements ClassModel1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Client.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Client.java index b495738fc07..a3c368c3b9b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Client.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Client.java @@ -107,16 +107,12 @@ public ClientMapBuilder1 getBuilderAfterAdditionalProperty(Map arg, SchemaConfiguration configu public sealed interface ComplexQuadrilateral1Boxed permits ComplexQuadrilateral1BoxedVoid, ComplexQuadrilateral1BoxedBoolean, ComplexQuadrilateral1BoxedNumber, ComplexQuadrilateral1BoxedString, ComplexQuadrilateral1BoxedList, ComplexQuadrilateral1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ComplexQuadrilateral1BoxedVoid implements ComplexQuadrilateral1Boxed { - public final Void data; - private ComplexQuadrilateral1BoxedVoid(Void data) { - this.data = data; - } + public record ComplexQuadrilateral1BoxedVoid(Void data) implements ComplexQuadrilateral1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ComplexQuadrilateral1BoxedBoolean implements ComplexQuadrilateral1Boxed { - public final boolean data; - private ComplexQuadrilateral1BoxedBoolean(boolean data) { - this.data = data; - } + public record ComplexQuadrilateral1BoxedBoolean(boolean data) implements ComplexQuadrilateral1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ComplexQuadrilateral1BoxedNumber implements ComplexQuadrilateral1Boxed { - public final Number data; - private ComplexQuadrilateral1BoxedNumber(Number data) { - this.data = data; - } + public record ComplexQuadrilateral1BoxedNumber(Number data) implements ComplexQuadrilateral1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ComplexQuadrilateral1BoxedString implements ComplexQuadrilateral1Boxed { - public final String data; - private ComplexQuadrilateral1BoxedString(String data) { - this.data = data; - } + public record ComplexQuadrilateral1BoxedString(String data) implements ComplexQuadrilateral1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ComplexQuadrilateral1BoxedList implements ComplexQuadrilateral1Boxed { - public final FrozenList<@Nullable Object> data; - private ComplexQuadrilateral1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ComplexQuadrilateral1BoxedList(FrozenList<@Nullable Object> data) implements ComplexQuadrilateral1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ComplexQuadrilateral1BoxedMap implements ComplexQuadrilateral1Boxed { - public final FrozenMap<@Nullable Object> data; - private ComplexQuadrilateral1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ComplexQuadrilateral1BoxedMap(FrozenMap<@Nullable Object> data) implements ComplexQuadrilateral1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidations.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidations.java index deb03f85a24..3bb5d8af4b9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidations.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidations.java @@ -232,16 +232,12 @@ public Schema9ListBuilder add(Map item) { public sealed interface Schema9Boxed permits Schema9BoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Schema9BoxedList implements Schema9Boxed { - public final Schema9List data; - private Schema9BoxedList(Schema9List data) { - this.data = data; - } + public record Schema9BoxedList(Schema9List data) implements Schema9Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -382,71 +378,47 @@ public static Schema15 getInstance() { public sealed interface ComposedAnyOfDifferentTypesNoValidations1Boxed permits ComposedAnyOfDifferentTypesNoValidations1BoxedVoid, ComposedAnyOfDifferentTypesNoValidations1BoxedBoolean, ComposedAnyOfDifferentTypesNoValidations1BoxedNumber, ComposedAnyOfDifferentTypesNoValidations1BoxedString, ComposedAnyOfDifferentTypesNoValidations1BoxedList, ComposedAnyOfDifferentTypesNoValidations1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ComposedAnyOfDifferentTypesNoValidations1BoxedVoid implements ComposedAnyOfDifferentTypesNoValidations1Boxed { - public final Void data; - private ComposedAnyOfDifferentTypesNoValidations1BoxedVoid(Void data) { - this.data = data; - } + public record ComposedAnyOfDifferentTypesNoValidations1BoxedVoid(Void data) implements ComposedAnyOfDifferentTypesNoValidations1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ComposedAnyOfDifferentTypesNoValidations1BoxedBoolean implements ComposedAnyOfDifferentTypesNoValidations1Boxed { - public final boolean data; - private ComposedAnyOfDifferentTypesNoValidations1BoxedBoolean(boolean data) { - this.data = data; - } + public record ComposedAnyOfDifferentTypesNoValidations1BoxedBoolean(boolean data) implements ComposedAnyOfDifferentTypesNoValidations1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ComposedAnyOfDifferentTypesNoValidations1BoxedNumber implements ComposedAnyOfDifferentTypesNoValidations1Boxed { - public final Number data; - private ComposedAnyOfDifferentTypesNoValidations1BoxedNumber(Number data) { - this.data = data; - } + public record ComposedAnyOfDifferentTypesNoValidations1BoxedNumber(Number data) implements ComposedAnyOfDifferentTypesNoValidations1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ComposedAnyOfDifferentTypesNoValidations1BoxedString implements ComposedAnyOfDifferentTypesNoValidations1Boxed { - public final String data; - private ComposedAnyOfDifferentTypesNoValidations1BoxedString(String data) { - this.data = data; - } + public record ComposedAnyOfDifferentTypesNoValidations1BoxedString(String data) implements ComposedAnyOfDifferentTypesNoValidations1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ComposedAnyOfDifferentTypesNoValidations1BoxedList implements ComposedAnyOfDifferentTypesNoValidations1Boxed { - public final FrozenList<@Nullable Object> data; - private ComposedAnyOfDifferentTypesNoValidations1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ComposedAnyOfDifferentTypesNoValidations1BoxedList(FrozenList<@Nullable Object> data) implements ComposedAnyOfDifferentTypesNoValidations1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ComposedAnyOfDifferentTypesNoValidations1BoxedMap implements ComposedAnyOfDifferentTypesNoValidations1Boxed { - public final FrozenMap<@Nullable Object> data; - private ComposedAnyOfDifferentTypesNoValidations1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ComposedAnyOfDifferentTypesNoValidations1BoxedMap(FrozenMap<@Nullable Object> data) implements ComposedAnyOfDifferentTypesNoValidations1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedArray.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedArray.java index 471fb0cc3b9..223e8c885ba 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedArray.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedArray.java @@ -108,16 +108,12 @@ public ComposedArrayListBuilder add(Map item) { public sealed interface ComposedArray1Boxed permits ComposedArray1BoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ComposedArray1BoxedList implements ComposedArray1Boxed { - public final ComposedArrayList data; - private ComposedArray1BoxedList(ComposedArrayList data) { - this.data = data; - } + public record ComposedArray1BoxedList(ComposedArrayList data) implements ComposedArray1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedBool.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedBool.java index 852c6bae9b2..b5d802b5be2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedBool.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedBool.java @@ -32,16 +32,12 @@ public static Schema0 getInstance() { public sealed interface ComposedBool1Boxed permits ComposedBool1BoxedBoolean { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ComposedBool1BoxedBoolean implements ComposedBool1Boxed { - public final boolean data; - private ComposedBool1BoxedBoolean(boolean data) { - this.data = data; - } + public record ComposedBool1BoxedBoolean(boolean data) implements ComposedBool1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNone.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNone.java index 6785081a8de..6265ae947b8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNone.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNone.java @@ -32,16 +32,12 @@ public static Schema0 getInstance() { public sealed interface ComposedNone1Boxed permits ComposedNone1BoxedVoid { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ComposedNone1BoxedVoid implements ComposedNone1Boxed { - public final Void data; - private ComposedNone1BoxedVoid(Void data) { - this.data = data; - } + public record ComposedNone1BoxedVoid(Void data) implements ComposedNone1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNumber.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNumber.java index 5de157647b4..fac8446ceb7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNumber.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNumber.java @@ -32,16 +32,12 @@ public static Schema0 getInstance() { public sealed interface ComposedNumber1Boxed permits ComposedNumber1BoxedNumber { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ComposedNumber1BoxedNumber implements ComposedNumber1Boxed { - public final Number data; - private ComposedNumber1BoxedNumber(Number data) { - this.data = data; - } + public record ComposedNumber1BoxedNumber(Number data) implements ComposedNumber1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedObject.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedObject.java index 51d0666c91f..7616eed1f3a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedObject.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedObject.java @@ -39,16 +39,12 @@ public static Schema0 getInstance() { public sealed interface ComposedObject1Boxed permits ComposedObject1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ComposedObject1BoxedMap implements ComposedObject1Boxed { - public final FrozenMap<@Nullable Object> data; - private ComposedObject1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ComposedObject1BoxedMap(FrozenMap<@Nullable Object> data) implements ComposedObject1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypes.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypes.java index 90205c66eee..b9f4f10b5d7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypes.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypes.java @@ -62,16 +62,12 @@ public static Schema3 getInstance() { public sealed interface Schema4Boxed permits Schema4BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Schema4BoxedMap implements Schema4Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema4BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema4BoxedMap(FrozenMap<@Nullable Object> data) implements Schema4Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -234,16 +230,12 @@ public Schema5ListBuilder add(Map item) { public sealed interface Schema5Boxed permits Schema5BoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Schema5BoxedList implements Schema5Boxed { - public final Schema5List data; - private Schema5BoxedList(Schema5List data) { - this.data = data; - } + public record Schema5BoxedList(Schema5List data) implements Schema5Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -320,16 +312,12 @@ public Schema5BoxedList validateAndBox(List arg, SchemaConfiguration configur } public sealed interface Schema6Boxed permits Schema6BoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Schema6BoxedString implements Schema6Boxed { - public final String data; - private Schema6BoxedString(String data) { - this.data = data; - } + public record Schema6BoxedString(String data) implements Schema6Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -390,71 +378,47 @@ public Schema6BoxedString validateAndBox(String arg, SchemaConfiguration configu } public sealed interface ComposedOneOfDifferentTypes1Boxed permits ComposedOneOfDifferentTypes1BoxedVoid, ComposedOneOfDifferentTypes1BoxedBoolean, ComposedOneOfDifferentTypes1BoxedNumber, ComposedOneOfDifferentTypes1BoxedString, ComposedOneOfDifferentTypes1BoxedList, ComposedOneOfDifferentTypes1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ComposedOneOfDifferentTypes1BoxedVoid implements ComposedOneOfDifferentTypes1Boxed { - public final Void data; - private ComposedOneOfDifferentTypes1BoxedVoid(Void data) { - this.data = data; - } + public record ComposedOneOfDifferentTypes1BoxedVoid(Void data) implements ComposedOneOfDifferentTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ComposedOneOfDifferentTypes1BoxedBoolean implements ComposedOneOfDifferentTypes1Boxed { - public final boolean data; - private ComposedOneOfDifferentTypes1BoxedBoolean(boolean data) { - this.data = data; - } + public record ComposedOneOfDifferentTypes1BoxedBoolean(boolean data) implements ComposedOneOfDifferentTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ComposedOneOfDifferentTypes1BoxedNumber implements ComposedOneOfDifferentTypes1Boxed { - public final Number data; - private ComposedOneOfDifferentTypes1BoxedNumber(Number data) { - this.data = data; - } + public record ComposedOneOfDifferentTypes1BoxedNumber(Number data) implements ComposedOneOfDifferentTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ComposedOneOfDifferentTypes1BoxedString implements ComposedOneOfDifferentTypes1Boxed { - public final String data; - private ComposedOneOfDifferentTypes1BoxedString(String data) { - this.data = data; - } + public record ComposedOneOfDifferentTypes1BoxedString(String data) implements ComposedOneOfDifferentTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ComposedOneOfDifferentTypes1BoxedList implements ComposedOneOfDifferentTypes1Boxed { - public final FrozenList<@Nullable Object> data; - private ComposedOneOfDifferentTypes1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ComposedOneOfDifferentTypes1BoxedList(FrozenList<@Nullable Object> data) implements ComposedOneOfDifferentTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ComposedOneOfDifferentTypes1BoxedMap implements ComposedOneOfDifferentTypes1Boxed { - public final FrozenMap<@Nullable Object> data; - private ComposedOneOfDifferentTypes1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ComposedOneOfDifferentTypes1BoxedMap(FrozenMap<@Nullable Object> data) implements ComposedOneOfDifferentTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedString.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedString.java index 6461a1e03fa..6839333aced 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedString.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedString.java @@ -32,16 +32,12 @@ public static Schema0 getInstance() { public sealed interface ComposedString1Boxed permits ComposedString1BoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ComposedString1BoxedString implements ComposedString1Boxed { - public final String data; - private ComposedString1BoxedString(String data) { - this.data = data; - } + public record ComposedString1BoxedString(String data) implements ComposedString1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Currency.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Currency.java index 8a02acdeaca..f14aadf180f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Currency.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Currency.java @@ -36,16 +36,12 @@ public String value() { public sealed interface Currency1Boxed permits Currency1BoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Currency1BoxedString implements Currency1Boxed { - public final String data; - private Currency1BoxedString(String data) { - this.data = data; - } + public record Currency1BoxedString(String data) implements Currency1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DanishPig.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DanishPig.java index 67984f7d549..99a783805a9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DanishPig.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DanishPig.java @@ -45,16 +45,12 @@ public String value() { public sealed interface ClassNameBoxed permits ClassNameBoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ClassNameBoxedString implements ClassNameBoxed { - public final String data; - private ClassNameBoxedString(String data) { - this.data = data; - } + public record ClassNameBoxedString(String data) implements ClassNameBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -199,16 +195,12 @@ public DanishPigMap0Builder getBuilderAfterClassName(Map arg, SchemaConfiguration configu public sealed interface Dog1Boxed permits Dog1BoxedVoid, Dog1BoxedBoolean, Dog1BoxedNumber, Dog1BoxedString, Dog1BoxedList, Dog1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Dog1BoxedVoid implements Dog1Boxed { - public final Void data; - private Dog1BoxedVoid(Void data) { - this.data = data; - } + public record Dog1BoxedVoid(Void data) implements Dog1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Dog1BoxedBoolean implements Dog1Boxed { - public final boolean data; - private Dog1BoxedBoolean(boolean data) { - this.data = data; - } + public record Dog1BoxedBoolean(boolean data) implements Dog1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Dog1BoxedNumber implements Dog1Boxed { - public final Number data; - private Dog1BoxedNumber(Number data) { - this.data = data; - } + public record Dog1BoxedNumber(Number data) implements Dog1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Dog1BoxedString implements Dog1Boxed { - public final String data; - private Dog1BoxedString(String data) { - this.data = data; - } + public record Dog1BoxedString(String data) implements Dog1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Dog1BoxedList implements Dog1Boxed { - public final FrozenList<@Nullable Object> data; - private Dog1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Dog1BoxedList(FrozenList<@Nullable Object> data) implements Dog1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Dog1BoxedMap implements Dog1Boxed { - public final FrozenMap<@Nullable Object> data; - private Dog1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Dog1BoxedMap(FrozenMap<@Nullable Object> data) implements Dog1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Drawing.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Drawing.java index 58884848d5e..3b0e8b2d885 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Drawing.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Drawing.java @@ -103,16 +103,12 @@ public ShapesListBuilder add(Map item) { public sealed interface ShapesBoxed permits ShapesBoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ShapesBoxedList implements ShapesBoxed { - public final ShapesList data; - private ShapesBoxedList(ShapesList data) { - this.data = data; - } + public record ShapesBoxedList(ShapesList data) implements ShapesBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -550,16 +546,12 @@ public DrawingMapBuilder getBuilderAfterAdditionalProperty(Map build() { public sealed interface ArrayEnumBoxed permits ArrayEnumBoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ArrayEnumBoxedList implements ArrayEnumBoxed { - public final ArrayEnumList data; - private ArrayEnumBoxedList(ArrayEnumList data) { - this.data = data; - } + public record ArrayEnumBoxedList(ArrayEnumList data) implements ArrayEnumBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -433,16 +421,12 @@ public EnumArraysMapBuilder getBuilderAfterAdditionalProperty(Map arg, SchemaConfiguration configu public sealed interface EquilateralTriangle1Boxed permits EquilateralTriangle1BoxedVoid, EquilateralTriangle1BoxedBoolean, EquilateralTriangle1BoxedNumber, EquilateralTriangle1BoxedString, EquilateralTriangle1BoxedList, EquilateralTriangle1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class EquilateralTriangle1BoxedVoid implements EquilateralTriangle1Boxed { - public final Void data; - private EquilateralTriangle1BoxedVoid(Void data) { - this.data = data; - } + public record EquilateralTriangle1BoxedVoid(Void data) implements EquilateralTriangle1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class EquilateralTriangle1BoxedBoolean implements EquilateralTriangle1Boxed { - public final boolean data; - private EquilateralTriangle1BoxedBoolean(boolean data) { - this.data = data; - } + public record EquilateralTriangle1BoxedBoolean(boolean data) implements EquilateralTriangle1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class EquilateralTriangle1BoxedNumber implements EquilateralTriangle1Boxed { - public final Number data; - private EquilateralTriangle1BoxedNumber(Number data) { - this.data = data; - } + public record EquilateralTriangle1BoxedNumber(Number data) implements EquilateralTriangle1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class EquilateralTriangle1BoxedString implements EquilateralTriangle1Boxed { - public final String data; - private EquilateralTriangle1BoxedString(String data) { - this.data = data; - } + public record EquilateralTriangle1BoxedString(String data) implements EquilateralTriangle1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class EquilateralTriangle1BoxedList implements EquilateralTriangle1Boxed { - public final FrozenList<@Nullable Object> data; - private EquilateralTriangle1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record EquilateralTriangle1BoxedList(FrozenList<@Nullable Object> data) implements EquilateralTriangle1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class EquilateralTriangle1BoxedMap implements EquilateralTriangle1Boxed { - public final FrozenMap<@Nullable Object> data; - private EquilateralTriangle1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record EquilateralTriangle1BoxedMap(FrozenMap<@Nullable Object> data) implements EquilateralTriangle1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/File.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/File.java index 028df55d090..7bfb8274c71 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/File.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/File.java @@ -107,16 +107,12 @@ public FileMapBuilder getBuilderAfterAdditionalProperty(Map item) { public sealed interface FilesBoxed permits FilesBoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class FilesBoxedList implements FilesBoxed { - public final FilesList data; - private FilesBoxedList(FilesList data) { - this.data = data; - } + public record FilesBoxedList(FilesList data) implements FilesBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -242,16 +238,12 @@ public FileSchemaTestClassMapBuilder getBuilderAfterAdditionalProperty(Map build() { public sealed interface ArrayWithUniqueItemsBoxed permits ArrayWithUniqueItemsBoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ArrayWithUniqueItemsBoxedList implements ArrayWithUniqueItemsBoxed { - public final ArrayWithUniqueItemsList data; - private ArrayWithUniqueItemsBoxedList(ArrayWithUniqueItemsList data) { - this.data = data; - } + public record ArrayWithUniqueItemsBoxedList(ArrayWithUniqueItemsList data) implements ArrayWithUniqueItemsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -642,16 +618,12 @@ public ArrayWithUniqueItemsBoxedList validateAndBox(List arg, SchemaConfigura } public sealed interface StringSchemaBoxed permits StringSchemaBoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class StringSchemaBoxedString implements StringSchemaBoxed { - public final String data; - private StringSchemaBoxedString(String data) { - this.data = data; - } + public record StringSchemaBoxedString(String data) implements StringSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -779,16 +751,12 @@ public static UuidNoExample getInstance() { public sealed interface PasswordBoxed permits PasswordBoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class PasswordBoxedString implements PasswordBoxed { - public final String data; - private PasswordBoxedString(String data) { - this.data = data; - } + public record PasswordBoxedString(String data) implements PasswordBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -848,16 +816,12 @@ public PasswordBoxedString validateAndBox(String arg, SchemaConfiguration config } public sealed interface PatternWithDigitsBoxed permits PatternWithDigitsBoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class PatternWithDigitsBoxedString implements PatternWithDigitsBoxed { - public final String data; - private PatternWithDigitsBoxedString(String data) { - this.data = data; - } + public record PatternWithDigitsBoxedString(String data) implements PatternWithDigitsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -917,16 +881,12 @@ public PatternWithDigitsBoxedString validateAndBox(String arg, SchemaConfigurati } public sealed interface PatternWithDigitsAndDelimiterBoxed permits PatternWithDigitsAndDelimiterBoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class PatternWithDigitsAndDelimiterBoxedString implements PatternWithDigitsAndDelimiterBoxed { - public final String data; - private PatternWithDigitsAndDelimiterBoxedString(String data) { - this.data = data; - } + public record PatternWithDigitsAndDelimiterBoxedString(String data) implements PatternWithDigitsAndDelimiterBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -1883,16 +1843,12 @@ public FormatTestMap1110Builder getBuilderAfterPassword(Map data; - private Fruit1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Fruit1BoxedList(FrozenList<@Nullable Object> data) implements Fruit1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Fruit1BoxedMap implements Fruit1Boxed { - public final FruitMap data; - private Fruit1BoxedMap(FruitMap data) { - this.data = data; - } + public record Fruit1BoxedMap(FruitMap data) implements Fruit1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FruitReq.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FruitReq.java index 185c416d872..6f9f085a952 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FruitReq.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FruitReq.java @@ -48,71 +48,47 @@ public static Schema0 getInstance() { public sealed interface FruitReq1Boxed permits FruitReq1BoxedVoid, FruitReq1BoxedBoolean, FruitReq1BoxedNumber, FruitReq1BoxedString, FruitReq1BoxedList, FruitReq1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class FruitReq1BoxedVoid implements FruitReq1Boxed { - public final Void data; - private FruitReq1BoxedVoid(Void data) { - this.data = data; - } + public record FruitReq1BoxedVoid(Void data) implements FruitReq1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class FruitReq1BoxedBoolean implements FruitReq1Boxed { - public final boolean data; - private FruitReq1BoxedBoolean(boolean data) { - this.data = data; - } + public record FruitReq1BoxedBoolean(boolean data) implements FruitReq1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class FruitReq1BoxedNumber implements FruitReq1Boxed { - public final Number data; - private FruitReq1BoxedNumber(Number data) { - this.data = data; - } + public record FruitReq1BoxedNumber(Number data) implements FruitReq1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class FruitReq1BoxedString implements FruitReq1Boxed { - public final String data; - private FruitReq1BoxedString(String data) { - this.data = data; - } + public record FruitReq1BoxedString(String data) implements FruitReq1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class FruitReq1BoxedList implements FruitReq1Boxed { - public final FrozenList<@Nullable Object> data; - private FruitReq1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record FruitReq1BoxedList(FrozenList<@Nullable Object> data) implements FruitReq1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class FruitReq1BoxedMap implements FruitReq1Boxed { - public final FrozenMap<@Nullable Object> data; - private FruitReq1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record FruitReq1BoxedMap(FrozenMap<@Nullable Object> data) implements FruitReq1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GmFruit.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GmFruit.java index f8e29426b33..66e4f0b53ee 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GmFruit.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GmFruit.java @@ -116,71 +116,47 @@ public GmFruitMapBuilder getBuilderAfterAdditionalProperty(Map data; - private GmFruit1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record GmFruit1BoxedList(FrozenList<@Nullable Object> data) implements GmFruit1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class GmFruit1BoxedMap implements GmFruit1Boxed { - public final GmFruitMap data; - private GmFruit1BoxedMap(GmFruitMap data) { - this.data = data; - } + public record GmFruit1BoxedMap(GmFruitMap data) implements GmFruit1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GrandparentAnimal.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GrandparentAnimal.java index c017637169f..45d2aba0831 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GrandparentAnimal.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GrandparentAnimal.java @@ -115,16 +115,12 @@ public GrandparentAnimalMap0Builder getBuilderAfterPetType(Map arg, SchemaConfiguration configu public sealed interface IsoscelesTriangle1Boxed permits IsoscelesTriangle1BoxedVoid, IsoscelesTriangle1BoxedBoolean, IsoscelesTriangle1BoxedNumber, IsoscelesTriangle1BoxedString, IsoscelesTriangle1BoxedList, IsoscelesTriangle1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class IsoscelesTriangle1BoxedVoid implements IsoscelesTriangle1Boxed { - public final Void data; - private IsoscelesTriangle1BoxedVoid(Void data) { - this.data = data; - } + public record IsoscelesTriangle1BoxedVoid(Void data) implements IsoscelesTriangle1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IsoscelesTriangle1BoxedBoolean implements IsoscelesTriangle1Boxed { - public final boolean data; - private IsoscelesTriangle1BoxedBoolean(boolean data) { - this.data = data; - } + public record IsoscelesTriangle1BoxedBoolean(boolean data) implements IsoscelesTriangle1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IsoscelesTriangle1BoxedNumber implements IsoscelesTriangle1Boxed { - public final Number data; - private IsoscelesTriangle1BoxedNumber(Number data) { - this.data = data; - } + public record IsoscelesTriangle1BoxedNumber(Number data) implements IsoscelesTriangle1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IsoscelesTriangle1BoxedString implements IsoscelesTriangle1Boxed { - public final String data; - private IsoscelesTriangle1BoxedString(String data) { - this.data = data; - } + public record IsoscelesTriangle1BoxedString(String data) implements IsoscelesTriangle1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IsoscelesTriangle1BoxedList implements IsoscelesTriangle1Boxed { - public final FrozenList<@Nullable Object> data; - private IsoscelesTriangle1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record IsoscelesTriangle1BoxedList(FrozenList<@Nullable Object> data) implements IsoscelesTriangle1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IsoscelesTriangle1BoxedMap implements IsoscelesTriangle1Boxed { - public final FrozenMap<@Nullable Object> data; - private IsoscelesTriangle1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record IsoscelesTriangle1BoxedMap(FrozenMap<@Nullable Object> data) implements IsoscelesTriangle1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Items.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Items.java index 793b0d6fd94..9e2383dca17 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Items.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Items.java @@ -69,16 +69,12 @@ public ItemsListBuilder add(Map item) { public sealed interface Items1Boxed permits Items1BoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Items1BoxedList implements Items1Boxed { - public final ItemsList data; - private Items1BoxedList(ItemsList data) { - this.data = data; - } + public record Items1BoxedList(ItemsList data) implements Items1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequest.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequest.java index be1974be7c3..7c9cc7833de 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequest.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequest.java @@ -36,71 +36,47 @@ public class JSONPatchRequest { public sealed interface ItemsBoxed permits ItemsBoxedVoid, ItemsBoxedBoolean, ItemsBoxedNumber, ItemsBoxedString, ItemsBoxedList, ItemsBoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ItemsBoxedVoid implements ItemsBoxed { - public final Void data; - private ItemsBoxedVoid(Void data) { - this.data = data; - } + public record ItemsBoxedVoid(Void data) implements ItemsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ItemsBoxedBoolean implements ItemsBoxed { - public final boolean data; - private ItemsBoxedBoolean(boolean data) { - this.data = data; - } + public record ItemsBoxedBoolean(boolean data) implements ItemsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ItemsBoxedNumber implements ItemsBoxed { - public final Number data; - private ItemsBoxedNumber(Number data) { - this.data = data; - } + public record ItemsBoxedNumber(Number data) implements ItemsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ItemsBoxedString implements ItemsBoxed { - public final String data; - private ItemsBoxedString(String data) { - this.data = data; - } + public record ItemsBoxedString(String data) implements ItemsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ItemsBoxedList implements ItemsBoxed { - public final FrozenList<@Nullable Object> data; - private ItemsBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ItemsBoxedList(FrozenList<@Nullable Object> data) implements ItemsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ItemsBoxedMap implements ItemsBoxed { - public final FrozenMap<@Nullable Object> data; - private ItemsBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ItemsBoxedMap(FrozenMap<@Nullable Object> data) implements ItemsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -402,16 +378,12 @@ public JSONPatchRequestListBuilder add(Map item) { public sealed interface JSONPatchRequest1Boxed permits JSONPatchRequest1BoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class JSONPatchRequest1BoxedList implements JSONPatchRequest1Boxed { - public final JSONPatchRequestList data; - private JSONPatchRequest1BoxedList(JSONPatchRequestList data) { - this.data = data; - } + public record JSONPatchRequest1BoxedList(JSONPatchRequestList data) implements JSONPatchRequest1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestAddReplaceTest.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestAddReplaceTest.java index e1b495fdfec..a7494d0c7ed 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestAddReplaceTest.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestAddReplaceTest.java @@ -83,16 +83,12 @@ public String value() { public sealed interface OpBoxed permits OpBoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class OpBoxedString implements OpBoxed { - public final String data; - private OpBoxedString(String data) { - this.data = data; - } + public record OpBoxedString(String data) implements OpBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -406,16 +402,12 @@ public JSONPatchRequestAddReplaceTestMap110Builder getBuilderAfterValue(Map data; - private Mammal1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Mammal1BoxedList(FrozenList<@Nullable Object> data) implements Mammal1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Mammal1BoxedMap implements Mammal1Boxed { - public final FrozenMap<@Nullable Object> data; - private Mammal1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Mammal1BoxedMap(FrozenMap<@Nullable Object> data) implements Mammal1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MapTest.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MapTest.java index be90d8f2634..ec574d49874 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MapTest.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MapTest.java @@ -96,16 +96,12 @@ public AdditionalPropertiesMapBuilder1 getBuilderAfterAdditionalProperty(Map i public sealed interface Money1Boxed permits Money1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Money1BoxedMap implements Money1Boxed { - public final MoneyMap data; - private Money1BoxedMap(MoneyMap data) { - this.data = data; - } + public record Money1BoxedMap(MoneyMap data) implements Money1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MyObjectDto.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MyObjectDto.java index de8c2a80a4f..e8da6982f7d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MyObjectDto.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MyObjectDto.java @@ -105,16 +105,12 @@ public MyObjectDtoMapBuilder getBuilderAfterId(Map instance) { public sealed interface MyObjectDto1Boxed permits MyObjectDto1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class MyObjectDto1BoxedMap implements MyObjectDto1Boxed { - public final MyObjectDtoMap data; - private MyObjectDto1BoxedMap(MyObjectDtoMap data) { - this.data = data; - } + public record MyObjectDto1BoxedMap(MyObjectDtoMap data) implements MyObjectDto1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Name.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Name.java index 1967e95c87c..06dca9ea2bd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Name.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Name.java @@ -212,71 +212,47 @@ public NameMap0Builder getBuilderAfterName2(Map instan public sealed interface Name1Boxed permits Name1BoxedVoid, Name1BoxedBoolean, Name1BoxedNumber, Name1BoxedString, Name1BoxedList, Name1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Name1BoxedVoid implements Name1Boxed { - public final Void data; - private Name1BoxedVoid(Void data) { - this.data = data; - } + public record Name1BoxedVoid(Void data) implements Name1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Name1BoxedBoolean implements Name1Boxed { - public final boolean data; - private Name1BoxedBoolean(boolean data) { - this.data = data; - } + public record Name1BoxedBoolean(boolean data) implements Name1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Name1BoxedNumber implements Name1Boxed { - public final Number data; - private Name1BoxedNumber(Number data) { - this.data = data; - } + public record Name1BoxedNumber(Number data) implements Name1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Name1BoxedString implements Name1Boxed { - public final String data; - private Name1BoxedString(String data) { - this.data = data; - } + public record Name1BoxedString(String data) implements Name1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Name1BoxedList implements Name1Boxed { - public final FrozenList<@Nullable Object> data; - private Name1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Name1BoxedList(FrozenList<@Nullable Object> data) implements Name1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Name1BoxedMap implements Name1Boxed { - public final NameMap data; - private Name1BoxedMap(NameMap data) { - this.data = data; - } + public record Name1BoxedMap(NameMap data) implements Name1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NoAdditionalProperties.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NoAdditionalProperties.java index 69f4282d2a0..016ea77a573 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NoAdditionalProperties.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NoAdditionalProperties.java @@ -183,16 +183,12 @@ public NoAdditionalPropertiesMap0Builder getBuilderAfterId(Map i public sealed interface NoAdditionalProperties1Boxed permits NoAdditionalProperties1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class NoAdditionalProperties1BoxedMap implements NoAdditionalProperties1Boxed { - public final NoAdditionalPropertiesMap data; - private NoAdditionalProperties1BoxedMap(NoAdditionalPropertiesMap data) { - this.data = data; - } + public record NoAdditionalProperties1BoxedMap(NoAdditionalPropertiesMap data) implements NoAdditionalProperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableClass.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableClass.java index ad1693e7209..d8d2cadd529 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableClass.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableClass.java @@ -39,27 +39,19 @@ public class NullableClass { public sealed interface AdditionalProperties3Boxed permits AdditionalProperties3BoxedVoid, AdditionalProperties3BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class AdditionalProperties3BoxedVoid implements AdditionalProperties3Boxed { - public final Void data; - private AdditionalProperties3BoxedVoid(Void data) { - this.data = data; - } + public record AdditionalProperties3BoxedVoid(Void data) implements AdditionalProperties3Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalProperties3BoxedMap implements AdditionalProperties3Boxed { - public final FrozenMap<@Nullable Object> data; - private AdditionalProperties3BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record AdditionalProperties3BoxedMap(FrozenMap<@Nullable Object> data) implements AdditionalProperties3Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -158,27 +150,19 @@ public AdditionalProperties3BoxedMap validateAndBox(Map arg, SchemaConfigu } public sealed interface IntegerPropBoxed permits IntegerPropBoxedVoid, IntegerPropBoxedNumber { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class IntegerPropBoxedVoid implements IntegerPropBoxed { - public final Void data; - private IntegerPropBoxedVoid(Void data) { - this.data = data; - } + public record IntegerPropBoxedVoid(Void data) implements IntegerPropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IntegerPropBoxedNumber implements IntegerPropBoxed { - public final Number data; - private IntegerPropBoxedNumber(Number data) { - this.data = data; - } + public record IntegerPropBoxedNumber(Number data) implements IntegerPropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -275,27 +259,19 @@ public IntegerPropBoxedNumber validateAndBox(Number arg, SchemaConfiguration con } public sealed interface NumberPropBoxed permits NumberPropBoxedVoid, NumberPropBoxedNumber { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class NumberPropBoxedVoid implements NumberPropBoxed { - public final Void data; - private NumberPropBoxedVoid(Void data) { - this.data = data; - } + public record NumberPropBoxedVoid(Void data) implements NumberPropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NumberPropBoxedNumber implements NumberPropBoxed { - public final Number data; - private NumberPropBoxedNumber(Number data) { - this.data = data; - } + public record NumberPropBoxedNumber(Number data) implements NumberPropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -391,27 +367,19 @@ public NumberPropBoxedNumber validateAndBox(Number arg, SchemaConfiguration conf } public sealed interface BooleanPropBoxed permits BooleanPropBoxedVoid, BooleanPropBoxedBoolean { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class BooleanPropBoxedVoid implements BooleanPropBoxed { - public final Void data; - private BooleanPropBoxedVoid(Void data) { - this.data = data; - } + public record BooleanPropBoxedVoid(Void data) implements BooleanPropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class BooleanPropBoxedBoolean implements BooleanPropBoxed { - public final boolean data; - private BooleanPropBoxedBoolean(boolean data) { - this.data = data; - } + public record BooleanPropBoxedBoolean(boolean data) implements BooleanPropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -490,27 +458,19 @@ public BooleanPropBoxedBoolean validateAndBox(boolean arg, SchemaConfiguration c } public sealed interface StringPropBoxed permits StringPropBoxedVoid, StringPropBoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class StringPropBoxedVoid implements StringPropBoxed { - public final Void data; - private StringPropBoxedVoid(Void data) { - this.data = data; - } + public record StringPropBoxedVoid(Void data) implements StringPropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class StringPropBoxedString implements StringPropBoxed { - public final String data; - private StringPropBoxedString(String data) { - this.data = data; - } + public record StringPropBoxedString(String data) implements StringPropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -587,27 +547,19 @@ public StringPropBoxedString validateAndBox(String arg, SchemaConfiguration conf } public sealed interface DatePropBoxed permits DatePropBoxedVoid, DatePropBoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class DatePropBoxedVoid implements DatePropBoxed { - public final Void data; - private DatePropBoxedVoid(Void data) { - this.data = data; - } + public record DatePropBoxedVoid(Void data) implements DatePropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DatePropBoxedString implements DatePropBoxed { - public final String data; - private DatePropBoxedString(String data) { - this.data = data; - } + public record DatePropBoxedString(String data) implements DatePropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -685,27 +637,19 @@ public DatePropBoxedString validateAndBox(String arg, SchemaConfiguration config } public sealed interface DatetimePropBoxed permits DatetimePropBoxedVoid, DatetimePropBoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class DatetimePropBoxedVoid implements DatetimePropBoxed { - public final Void data; - private DatetimePropBoxedVoid(Void data) { - this.data = data; - } + public record DatetimePropBoxedVoid(Void data) implements DatetimePropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DatetimePropBoxedString implements DatetimePropBoxed { - public final String data; - private DatetimePropBoxedString(String data) { - this.data = data; - } + public record DatetimePropBoxedString(String data) implements DatetimePropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -826,27 +770,19 @@ public ArrayNullablePropListBuilder add(Map item) { public sealed interface ArrayNullablePropBoxed permits ArrayNullablePropBoxedVoid, ArrayNullablePropBoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ArrayNullablePropBoxedVoid implements ArrayNullablePropBoxed { - public final Void data; - private ArrayNullablePropBoxedVoid(Void data) { - this.data = data; - } + public record ArrayNullablePropBoxedVoid(Void data) implements ArrayNullablePropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ArrayNullablePropBoxedList implements ArrayNullablePropBoxed { - public final ArrayNullablePropList data; - private ArrayNullablePropBoxedList(ArrayNullablePropList data) { - this.data = data; - } + public record ArrayNullablePropBoxedList(ArrayNullablePropList data) implements ArrayNullablePropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -946,27 +882,19 @@ public ArrayNullablePropBoxedList validateAndBox(List arg, SchemaConfiguratio } public sealed interface Items1Boxed permits Items1BoxedVoid, Items1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Items1BoxedVoid implements Items1Boxed { - public final Void data; - private Items1BoxedVoid(Void data) { - this.data = data; - } + public record Items1BoxedVoid(Void data) implements Items1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Items1BoxedMap implements Items1Boxed { - public final FrozenMap<@Nullable Object> data; - private Items1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Items1BoxedMap(FrozenMap<@Nullable Object> data) implements Items1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -1102,27 +1030,19 @@ public ArrayAndItemsNullablePropListBuilder add(Map it public sealed interface ArrayAndItemsNullablePropBoxed permits ArrayAndItemsNullablePropBoxedVoid, ArrayAndItemsNullablePropBoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ArrayAndItemsNullablePropBoxedVoid implements ArrayAndItemsNullablePropBoxed { - public final Void data; - private ArrayAndItemsNullablePropBoxedVoid(Void data) { - this.data = data; - } + public record ArrayAndItemsNullablePropBoxedVoid(Void data) implements ArrayAndItemsNullablePropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ArrayAndItemsNullablePropBoxedList implements ArrayAndItemsNullablePropBoxed { - public final ArrayAndItemsNullablePropList data; - private ArrayAndItemsNullablePropBoxedList(ArrayAndItemsNullablePropList data) { - this.data = data; - } + public record ArrayAndItemsNullablePropBoxedList(ArrayAndItemsNullablePropList data) implements ArrayAndItemsNullablePropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -1222,27 +1142,19 @@ public ArrayAndItemsNullablePropBoxedList validateAndBox(List arg, SchemaConf } public sealed interface Items2Boxed permits Items2BoxedVoid, Items2BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Items2BoxedVoid implements Items2Boxed { - public final Void data; - private Items2BoxedVoid(Void data) { - this.data = data; - } + public record Items2BoxedVoid(Void data) implements Items2Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Items2BoxedMap implements Items2Boxed { - public final FrozenMap<@Nullable Object> data; - private Items2BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Items2BoxedMap(FrozenMap<@Nullable Object> data) implements Items2Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -1378,16 +1290,12 @@ public ArrayItemsNullableListBuilder add(Map item) { public sealed interface ArrayItemsNullableBoxed permits ArrayItemsNullableBoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ArrayItemsNullableBoxedList implements ArrayItemsNullableBoxed { - public final ArrayItemsNullableList data; - private ArrayItemsNullableBoxedList(ArrayItemsNullableList data) { - this.data = data; - } + public record ArrayItemsNullableBoxedList(ArrayItemsNullableList data) implements ArrayItemsNullableBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -1525,27 +1433,19 @@ public ObjectNullablePropMapBuilder getBuilderAfterAdditionalProperty(Map arg, SchemaConfigurat } public sealed interface AdditionalProperties1Boxed permits AdditionalProperties1BoxedVoid, AdditionalProperties1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class AdditionalProperties1BoxedVoid implements AdditionalProperties1Boxed { - public final Void data; - private AdditionalProperties1BoxedVoid(Void data) { - this.data = data; - } + public record AdditionalProperties1BoxedVoid(Void data) implements AdditionalProperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalProperties1BoxedMap implements AdditionalProperties1Boxed { - public final FrozenMap<@Nullable Object> data; - private AdditionalProperties1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record AdditionalProperties1BoxedMap(FrozenMap<@Nullable Object> data) implements AdditionalProperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -1823,27 +1715,19 @@ public ObjectAndItemsNullablePropMapBuilder getBuilderAfterAdditionalProperty(Ma public sealed interface ObjectAndItemsNullablePropBoxed permits ObjectAndItemsNullablePropBoxedVoid, ObjectAndItemsNullablePropBoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ObjectAndItemsNullablePropBoxedVoid implements ObjectAndItemsNullablePropBoxed { - public final Void data; - private ObjectAndItemsNullablePropBoxedVoid(Void data) { - this.data = data; - } + public record ObjectAndItemsNullablePropBoxedVoid(Void data) implements ObjectAndItemsNullablePropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ObjectAndItemsNullablePropBoxedMap implements ObjectAndItemsNullablePropBoxed { - public final ObjectAndItemsNullablePropMap data; - private ObjectAndItemsNullablePropBoxedMap(ObjectAndItemsNullablePropMap data) { - this.data = data; - } + public record ObjectAndItemsNullablePropBoxedMap(ObjectAndItemsNullablePropMap data) implements ObjectAndItemsNullablePropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -1946,27 +1830,19 @@ public ObjectAndItemsNullablePropBoxedMap validateAndBox(Map arg, SchemaCo } public sealed interface AdditionalProperties2Boxed permits AdditionalProperties2BoxedVoid, AdditionalProperties2BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class AdditionalProperties2BoxedVoid implements AdditionalProperties2Boxed { - public final Void data; - private AdditionalProperties2BoxedVoid(Void data) { - this.data = data; - } + public record AdditionalProperties2BoxedVoid(Void data) implements AdditionalProperties2Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalProperties2BoxedMap implements AdditionalProperties2Boxed { - public final FrozenMap<@Nullable Object> data; - private AdditionalProperties2BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record AdditionalProperties2BoxedMap(FrozenMap<@Nullable Object> data) implements AdditionalProperties2Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -2121,16 +1997,12 @@ public ObjectItemsNullableMapBuilder getBuilderAfterAdditionalProperty(Map data; - private NullableShape1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record NullableShape1BoxedList(FrozenList<@Nullable Object> data) implements NullableShape1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NullableShape1BoxedMap implements NullableShape1Boxed { - public final FrozenMap<@Nullable Object> data; - private NullableShape1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record NullableShape1BoxedMap(FrozenMap<@Nullable Object> data) implements NullableShape1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableString.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableString.java index 5095e8133a6..6e7a1f00ef0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableString.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableString.java @@ -22,27 +22,19 @@ public class NullableString { public sealed interface NullableString1Boxed permits NullableString1BoxedVoid, NullableString1BoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class NullableString1BoxedVoid implements NullableString1Boxed { - public final Void data; - private NullableString1BoxedVoid(Void data) { - this.data = data; - } + public record NullableString1BoxedVoid(Void data) implements NullableString1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NullableString1BoxedString implements NullableString1Boxed { - public final String data; - private NullableString1BoxedString(String data) { - this.data = data; - } + public record NullableString1BoxedString(String data) implements NullableString1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberOnly.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberOnly.java index 57181d165bb..02999c0ddad 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberOnly.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberOnly.java @@ -125,16 +125,12 @@ public NumberOnlyMapBuilder getBuilderAfterAdditionalProperty(Map inst public sealed interface Schema1Boxed permits Schema1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Schema1BoxedMap implements Schema1Boxed { - public final Schema1Map data; - private Schema1BoxedMap(Schema1Map data) { - this.data = data; - } + public record Schema1BoxedMap(Schema1Map data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -288,71 +284,47 @@ public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configu public sealed interface ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed permits ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedVoid, ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedBoolean, ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedNumber, ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedString, ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedList, ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedVoid implements ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed { - public final Void data; - private ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedVoid(Void data) { - this.data = data; - } + public record ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedVoid(Void data) implements ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedBoolean implements ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed { - public final boolean data; - private ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedBoolean(boolean data) { - this.data = data; - } + public record ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedBoolean(boolean data) implements ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedNumber implements ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed { - public final Number data; - private ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedNumber(Number data) { - this.data = data; - } + public record ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedNumber(Number data) implements ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedString implements ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed { - public final String data; - private ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedString(String data) { - this.data = data; - } + public record ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedString(String data) implements ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedList implements ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed { - public final FrozenList<@Nullable Object> data; - private ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedList(FrozenList<@Nullable Object> data) implements ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedMap implements ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed { - public final FrozenMap<@Nullable Object> data; - private ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedMap(FrozenMap<@Nullable Object> data) implements ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithCollidingProperties.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithCollidingProperties.java index 3d8e600f8ee..ce1c428b29a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithCollidingProperties.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithCollidingProperties.java @@ -144,16 +144,12 @@ public ObjectWithCollidingPropertiesMapBuilder getBuilderAfterAdditionalProperty public sealed interface ObjectWithCollidingProperties1Boxed permits ObjectWithCollidingProperties1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ObjectWithCollidingProperties1BoxedMap implements ObjectWithCollidingProperties1Boxed { - public final ObjectWithCollidingPropertiesMap data; - private ObjectWithCollidingProperties1BoxedMap(ObjectWithCollidingPropertiesMap data) { - this.data = data; - } + public record ObjectWithCollidingProperties1BoxedMap(ObjectWithCollidingPropertiesMap data) implements ObjectWithCollidingProperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDecimalProperties.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDecimalProperties.java index 3ff1798c02b..4af1e5bb1c9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDecimalProperties.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDecimalProperties.java @@ -159,16 +159,12 @@ public ObjectWithDecimalPropertiesMapBuilder getBuilderAfterAdditionalProperty(M public sealed interface ObjectWithDecimalProperties1Boxed permits ObjectWithDecimalProperties1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ObjectWithDecimalProperties1BoxedMap implements ObjectWithDecimalProperties1Boxed { - public final ObjectWithDecimalPropertiesMap data; - private ObjectWithDecimalProperties1BoxedMap(ObjectWithDecimalPropertiesMap data) { - this.data = data; - } + public record ObjectWithDecimalProperties1BoxedMap(ObjectWithDecimalPropertiesMap data) implements ObjectWithDecimalProperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDifficultlyNamedProps.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDifficultlyNamedProps.java index d705b375cb3..cf96daa8a99 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDifficultlyNamedProps.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDifficultlyNamedProps.java @@ -200,16 +200,12 @@ public ObjectWithDifficultlyNamedPropsMap0Builder getBuilderAfterSchema123list(M public sealed interface ObjectWithDifficultlyNamedProps1Boxed permits ObjectWithDifficultlyNamedProps1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ObjectWithDifficultlyNamedProps1BoxedMap implements ObjectWithDifficultlyNamedProps1Boxed { - public final ObjectWithDifficultlyNamedPropsMap data; - private ObjectWithDifficultlyNamedProps1BoxedMap(ObjectWithDifficultlyNamedPropsMap data) { - this.data = data; - } + public record ObjectWithDifficultlyNamedProps1BoxedMap(ObjectWithDifficultlyNamedPropsMap data) implements ObjectWithDifficultlyNamedProps1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionProperty.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionProperty.java index 8c83ffcdf72..b2d264a236c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionProperty.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionProperty.java @@ -38,16 +38,12 @@ public class ObjectWithInlineCompositionProperty { public sealed interface Schema0Boxed permits Schema0BoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Schema0BoxedString implements Schema0Boxed { - public final String data; - private Schema0BoxedString(String data) { - this.data = data; - } + public record Schema0BoxedString(String data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -105,71 +101,47 @@ public Schema0BoxedString validateAndBox(String arg, SchemaConfiguration configu } public sealed interface SomePropBoxed permits SomePropBoxedVoid, SomePropBoxedBoolean, SomePropBoxedNumber, SomePropBoxedString, SomePropBoxedList, SomePropBoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class SomePropBoxedVoid implements SomePropBoxed { - public final Void data; - private SomePropBoxedVoid(Void data) { - this.data = data; - } + public record SomePropBoxedVoid(Void data) implements SomePropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class SomePropBoxedBoolean implements SomePropBoxed { - public final boolean data; - private SomePropBoxedBoolean(boolean data) { - this.data = data; - } + public record SomePropBoxedBoolean(boolean data) implements SomePropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class SomePropBoxedNumber implements SomePropBoxed { - public final Number data; - private SomePropBoxedNumber(Number data) { - this.data = data; - } + public record SomePropBoxedNumber(Number data) implements SomePropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class SomePropBoxedString implements SomePropBoxed { - public final String data; - private SomePropBoxedString(String data) { - this.data = data; - } + public record SomePropBoxedString(String data) implements SomePropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class SomePropBoxedList implements SomePropBoxed { - public final FrozenList<@Nullable Object> data; - private SomePropBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record SomePropBoxedList(FrozenList<@Nullable Object> data) implements SomePropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class SomePropBoxedMap implements SomePropBoxed { - public final FrozenMap<@Nullable Object> data; - private SomePropBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record SomePropBoxedMap(FrozenMap<@Nullable Object> data) implements SomePropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -505,16 +477,12 @@ public ObjectWithInlineCompositionPropertyMapBuilder getBuilderAfterAdditionalPr public sealed interface ObjectWithInlineCompositionProperty1Boxed permits ObjectWithInlineCompositionProperty1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ObjectWithInlineCompositionProperty1BoxedMap implements ObjectWithInlineCompositionProperty1Boxed { - public final ObjectWithInlineCompositionPropertyMap data; - private ObjectWithInlineCompositionProperty1BoxedMap(ObjectWithInlineCompositionPropertyMap data) { - this.data = data; - } + public record ObjectWithInlineCompositionProperty1BoxedMap(ObjectWithInlineCompositionPropertyMap data) implements ObjectWithInlineCompositionProperty1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInvalidNamedRefedProperties.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInvalidNamedRefedProperties.java index d25501bd0e3..9ecbd5ac05a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInvalidNamedRefedProperties.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInvalidNamedRefedProperties.java @@ -145,16 +145,12 @@ public ObjectWithInvalidNamedRefedPropertiesMap10Builder getBuilderAfterFrom(Map public sealed interface ObjectWithInvalidNamedRefedProperties1Boxed permits ObjectWithInvalidNamedRefedProperties1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ObjectWithInvalidNamedRefedProperties1BoxedMap implements ObjectWithInvalidNamedRefedProperties1Boxed { - public final ObjectWithInvalidNamedRefedPropertiesMap data; - private ObjectWithInvalidNamedRefedProperties1BoxedMap(ObjectWithInvalidNamedRefedPropertiesMap data) { - this.data = data; - } + public record ObjectWithInvalidNamedRefedProperties1BoxedMap(ObjectWithInvalidNamedRefedPropertiesMap data) implements ObjectWithInvalidNamedRefedProperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithNonIntersectingValues.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithNonIntersectingValues.java index 8ed19934f85..c1737bd495e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithNonIntersectingValues.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithNonIntersectingValues.java @@ -153,16 +153,12 @@ public ObjectWithNonIntersectingValuesMapBuilder getBuilderAfterAdditionalProper public sealed interface ObjectWithNonIntersectingValues1Boxed permits ObjectWithNonIntersectingValues1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ObjectWithNonIntersectingValues1BoxedMap implements ObjectWithNonIntersectingValues1Boxed { - public final ObjectWithNonIntersectingValuesMap data; - private ObjectWithNonIntersectingValues1BoxedMap(ObjectWithNonIntersectingValuesMap data) { - this.data = data; - } + public record ObjectWithNonIntersectingValues1BoxedMap(ObjectWithNonIntersectingValuesMap data) implements ObjectWithNonIntersectingValues1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithOnlyOptionalProps.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithOnlyOptionalProps.java index 62ec11e5de2..992fb5a5726 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithOnlyOptionalProps.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithOnlyOptionalProps.java @@ -167,16 +167,12 @@ public ObjectWithOnlyOptionalPropsMapBuilder getBuilderAfterB(Map data; - private ObjectWithValidations1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ObjectWithValidations1BoxedMap(FrozenMap<@Nullable Object> data) implements ObjectWithValidations1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Order.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Order.java index f7500ebb3a2..7ad51cc77d4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Order.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Order.java @@ -95,16 +95,12 @@ public String value() { public sealed interface StatusBoxed permits StatusBoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class StatusBoxedString implements StatusBoxed { - public final String data; - private StatusBoxedString(String data) { - this.data = data; - } + public record StatusBoxedString(String data) implements StatusBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -426,16 +422,12 @@ public OrderMapBuilder getBuilderAfterAdditionalProperty(Map> build() { public sealed interface ResultsBoxed permits ResultsBoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ResultsBoxedList implements ResultsBoxed { - public final ResultsList data; - private ResultsBoxedList(ResultsList data) { - this.data = data; - } + public record ResultsBoxedList(ResultsList data) implements ResultsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -305,16 +301,12 @@ public PaginatedResultMyObjectDtoMap10Builder getBuilderAfterResults(Map data; - private ParentPet1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ParentPet1BoxedMap(FrozenMap<@Nullable Object> data) implements ParentPet1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pet.java index 1d7370dc2b6..3369e27472b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pet.java @@ -102,16 +102,12 @@ public List build() { public sealed interface PhotoUrlsBoxed permits PhotoUrlsBoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class PhotoUrlsBoxedList implements PhotoUrlsBoxed { - public final PhotoUrlsList data; - private PhotoUrlsBoxedList(PhotoUrlsList data) { - this.data = data; - } + public record PhotoUrlsBoxedList(PhotoUrlsList data) implements PhotoUrlsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -203,16 +199,12 @@ public String value() { public sealed interface StatusBoxed permits StatusBoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class StatusBoxedString implements StatusBoxed { - public final String data; - private StatusBoxedString(String data) { - this.data = data; - } + public record StatusBoxedString(String data) implements StatusBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -311,16 +303,12 @@ public TagsListBuilder add(Map item) { public sealed interface TagsBoxed permits TagsBoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class TagsBoxedList implements TagsBoxed { - public final TagsList data; - private TagsBoxedList(TagsList data) { - this.data = data; - } + public record TagsBoxedList(TagsList data) implements TagsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -651,16 +639,12 @@ public PetMap10Builder getBuilderAfterPhotoUrls(Map in public sealed interface Pet1Boxed permits Pet1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Pet1BoxedMap implements Pet1Boxed { - public final PetMap data; - private Pet1BoxedMap(PetMap data) { - this.data = data; - } + public record Pet1BoxedMap(PetMap data) implements Pet1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pig.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pig.java index 1618b0373ff..6b895a2880d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pig.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pig.java @@ -36,71 +36,47 @@ public class Pig { public sealed interface Pig1Boxed permits Pig1BoxedVoid, Pig1BoxedBoolean, Pig1BoxedNumber, Pig1BoxedString, Pig1BoxedList, Pig1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Pig1BoxedVoid implements Pig1Boxed { - public final Void data; - private Pig1BoxedVoid(Void data) { - this.data = data; - } + public record Pig1BoxedVoid(Void data) implements Pig1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Pig1BoxedBoolean implements Pig1Boxed { - public final boolean data; - private Pig1BoxedBoolean(boolean data) { - this.data = data; - } + public record Pig1BoxedBoolean(boolean data) implements Pig1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Pig1BoxedNumber implements Pig1Boxed { - public final Number data; - private Pig1BoxedNumber(Number data) { - this.data = data; - } + public record Pig1BoxedNumber(Number data) implements Pig1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Pig1BoxedString implements Pig1Boxed { - public final String data; - private Pig1BoxedString(String data) { - this.data = data; - } + public record Pig1BoxedString(String data) implements Pig1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Pig1BoxedList implements Pig1Boxed { - public final FrozenList<@Nullable Object> data; - private Pig1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Pig1BoxedList(FrozenList<@Nullable Object> data) implements Pig1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Pig1BoxedMap implements Pig1Boxed { - public final FrozenMap<@Nullable Object> data; - private Pig1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Pig1BoxedMap(FrozenMap<@Nullable Object> data) implements Pig1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Player.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Player.java index 0293ad934ca..e7512f66ff9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Player.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Player.java @@ -133,16 +133,12 @@ public PlayerMapBuilder getBuilderAfterAdditionalProperty(Map data; - private Quadrilateral1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Quadrilateral1BoxedList(FrozenList<@Nullable Object> data) implements Quadrilateral1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Quadrilateral1BoxedMap implements Quadrilateral1Boxed { - public final FrozenMap<@Nullable Object> data; - private Quadrilateral1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Quadrilateral1BoxedMap(FrozenMap<@Nullable Object> data) implements Quadrilateral1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterface.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterface.java index 0802c989e11..6f61bc472a7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterface.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterface.java @@ -54,16 +54,12 @@ public String value() { public sealed interface ShapeTypeBoxed permits ShapeTypeBoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ShapeTypeBoxedString implements ShapeTypeBoxed { - public final String data; - private ShapeTypeBoxedString(String data) { - this.data = data; - } + public record ShapeTypeBoxedString(String data) implements ShapeTypeBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -269,71 +265,47 @@ public QuadrilateralInterfaceMap10Builder getBuilderAfterShapeType(Map data; - private QuadrilateralInterface1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record QuadrilateralInterface1BoxedList(FrozenList<@Nullable Object> data) implements QuadrilateralInterface1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class QuadrilateralInterface1BoxedMap implements QuadrilateralInterface1Boxed { - public final QuadrilateralInterfaceMap data; - private QuadrilateralInterface1BoxedMap(QuadrilateralInterfaceMap data) { - this.data = data; - } + public record QuadrilateralInterface1BoxedMap(QuadrilateralInterfaceMap data) implements QuadrilateralInterface1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReadOnlyFirst.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReadOnlyFirst.java index 7339f040e79..bdeafc99b43 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReadOnlyFirst.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReadOnlyFirst.java @@ -144,16 +144,12 @@ public ReadOnlyFirstMapBuilder getBuilderAfterAdditionalProperty(Map data; - private ReturnSchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ReturnSchema1BoxedList(FrozenList<@Nullable Object> data) implements ReturnSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ReturnSchema1BoxedMap implements ReturnSchema1Boxed { - public final ReturnMap data; - private ReturnSchema1BoxedMap(ReturnMap data) { - this.data = data; - } + public record ReturnSchema1BoxedMap(ReturnMap data) implements ReturnSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangle.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangle.java index c7a257e7567..c7183ce2021 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangle.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangle.java @@ -53,16 +53,12 @@ public String value() { public sealed interface TriangleTypeBoxed permits TriangleTypeBoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class TriangleTypeBoxedString implements TriangleTypeBoxed { - public final String data; - private TriangleTypeBoxedString(String data) { - this.data = data; - } + public record TriangleTypeBoxedString(String data) implements TriangleTypeBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -199,16 +195,12 @@ public Schema1MapBuilder getBuilderAfterAdditionalProperty(Map arg, SchemaConfiguration configu public sealed interface ScaleneTriangle1Boxed permits ScaleneTriangle1BoxedVoid, ScaleneTriangle1BoxedBoolean, ScaleneTriangle1BoxedNumber, ScaleneTriangle1BoxedString, ScaleneTriangle1BoxedList, ScaleneTriangle1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ScaleneTriangle1BoxedVoid implements ScaleneTriangle1Boxed { - public final Void data; - private ScaleneTriangle1BoxedVoid(Void data) { - this.data = data; - } + public record ScaleneTriangle1BoxedVoid(Void data) implements ScaleneTriangle1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ScaleneTriangle1BoxedBoolean implements ScaleneTriangle1Boxed { - public final boolean data; - private ScaleneTriangle1BoxedBoolean(boolean data) { - this.data = data; - } + public record ScaleneTriangle1BoxedBoolean(boolean data) implements ScaleneTriangle1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ScaleneTriangle1BoxedNumber implements ScaleneTriangle1Boxed { - public final Number data; - private ScaleneTriangle1BoxedNumber(Number data) { - this.data = data; - } + public record ScaleneTriangle1BoxedNumber(Number data) implements ScaleneTriangle1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ScaleneTriangle1BoxedString implements ScaleneTriangle1Boxed { - public final String data; - private ScaleneTriangle1BoxedString(String data) { - this.data = data; - } + public record ScaleneTriangle1BoxedString(String data) implements ScaleneTriangle1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ScaleneTriangle1BoxedList implements ScaleneTriangle1Boxed { - public final FrozenList<@Nullable Object> data; - private ScaleneTriangle1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ScaleneTriangle1BoxedList(FrozenList<@Nullable Object> data) implements ScaleneTriangle1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ScaleneTriangle1BoxedMap implements ScaleneTriangle1Boxed { - public final FrozenMap<@Nullable Object> data; - private ScaleneTriangle1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ScaleneTriangle1BoxedMap(FrozenMap<@Nullable Object> data) implements ScaleneTriangle1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Schema200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Schema200Response.java index 203006e9f2c..145b7341f81 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Schema200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Schema200Response.java @@ -150,71 +150,47 @@ public Schema200ResponseMapBuilder getBuilderAfterAdditionalProperty(Map data; - private Schema200Response1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema200Response1BoxedList(FrozenList<@Nullable Object> data) implements Schema200Response1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema200Response1BoxedMap implements Schema200Response1Boxed { - public final Schema200ResponseMap data; - private Schema200Response1BoxedMap(Schema200ResponseMap data) { - this.data = data; - } + public record Schema200Response1BoxedMap(Schema200ResponseMap data) implements Schema200Response1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingArrayModel.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingArrayModel.java index a5668af2c60..becab53f2ea 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingArrayModel.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingArrayModel.java @@ -56,16 +56,12 @@ public List> build() { public sealed interface SelfReferencingArrayModel1Boxed permits SelfReferencingArrayModel1BoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class SelfReferencingArrayModel1BoxedList implements SelfReferencingArrayModel1Boxed { - public final SelfReferencingArrayModelList data; - private SelfReferencingArrayModel1BoxedList(SelfReferencingArrayModelList data) { - this.data = data; - } + public record SelfReferencingArrayModel1BoxedList(SelfReferencingArrayModelList data) implements SelfReferencingArrayModel1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingObjectModel.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingObjectModel.java index a6bfa5badf7..c7a9fb1bed9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingObjectModel.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingObjectModel.java @@ -111,16 +111,12 @@ public SelfReferencingObjectModelMapBuilder getBuilderAfterAdditionalProperty(Ma public sealed interface SelfReferencingObjectModel1Boxed permits SelfReferencingObjectModel1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class SelfReferencingObjectModel1BoxedMap implements SelfReferencingObjectModel1Boxed { - public final SelfReferencingObjectModelMap data; - private SelfReferencingObjectModel1BoxedMap(SelfReferencingObjectModelMap data) { - this.data = data; - } + public record SelfReferencingObjectModel1BoxedMap(SelfReferencingObjectModelMap data) implements SelfReferencingObjectModel1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Shape.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Shape.java index 0d8e2bbfc6c..8a39ed8c4a2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Shape.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Shape.java @@ -36,71 +36,47 @@ public class Shape { public sealed interface Shape1Boxed permits Shape1BoxedVoid, Shape1BoxedBoolean, Shape1BoxedNumber, Shape1BoxedString, Shape1BoxedList, Shape1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Shape1BoxedVoid implements Shape1Boxed { - public final Void data; - private Shape1BoxedVoid(Void data) { - this.data = data; - } + public record Shape1BoxedVoid(Void data) implements Shape1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Shape1BoxedBoolean implements Shape1Boxed { - public final boolean data; - private Shape1BoxedBoolean(boolean data) { - this.data = data; - } + public record Shape1BoxedBoolean(boolean data) implements Shape1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Shape1BoxedNumber implements Shape1Boxed { - public final Number data; - private Shape1BoxedNumber(Number data) { - this.data = data; - } + public record Shape1BoxedNumber(Number data) implements Shape1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Shape1BoxedString implements Shape1Boxed { - public final String data; - private Shape1BoxedString(String data) { - this.data = data; - } + public record Shape1BoxedString(String data) implements Shape1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Shape1BoxedList implements Shape1Boxed { - public final FrozenList<@Nullable Object> data; - private Shape1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Shape1BoxedList(FrozenList<@Nullable Object> data) implements Shape1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Shape1BoxedMap implements Shape1Boxed { - public final FrozenMap<@Nullable Object> data; - private Shape1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Shape1BoxedMap(FrozenMap<@Nullable Object> data) implements Shape1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ShapeOrNull.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ShapeOrNull.java index 237084e9ebf..880fda98938 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ShapeOrNull.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ShapeOrNull.java @@ -48,71 +48,47 @@ public static Schema0 getInstance() { public sealed interface ShapeOrNull1Boxed permits ShapeOrNull1BoxedVoid, ShapeOrNull1BoxedBoolean, ShapeOrNull1BoxedNumber, ShapeOrNull1BoxedString, ShapeOrNull1BoxedList, ShapeOrNull1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ShapeOrNull1BoxedVoid implements ShapeOrNull1Boxed { - public final Void data; - private ShapeOrNull1BoxedVoid(Void data) { - this.data = data; - } + public record ShapeOrNull1BoxedVoid(Void data) implements ShapeOrNull1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ShapeOrNull1BoxedBoolean implements ShapeOrNull1Boxed { - public final boolean data; - private ShapeOrNull1BoxedBoolean(boolean data) { - this.data = data; - } + public record ShapeOrNull1BoxedBoolean(boolean data) implements ShapeOrNull1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ShapeOrNull1BoxedNumber implements ShapeOrNull1Boxed { - public final Number data; - private ShapeOrNull1BoxedNumber(Number data) { - this.data = data; - } + public record ShapeOrNull1BoxedNumber(Number data) implements ShapeOrNull1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ShapeOrNull1BoxedString implements ShapeOrNull1Boxed { - public final String data; - private ShapeOrNull1BoxedString(String data) { - this.data = data; - } + public record ShapeOrNull1BoxedString(String data) implements ShapeOrNull1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ShapeOrNull1BoxedList implements ShapeOrNull1Boxed { - public final FrozenList<@Nullable Object> data; - private ShapeOrNull1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ShapeOrNull1BoxedList(FrozenList<@Nullable Object> data) implements ShapeOrNull1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ShapeOrNull1BoxedMap implements ShapeOrNull1Boxed { - public final FrozenMap<@Nullable Object> data; - private ShapeOrNull1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ShapeOrNull1BoxedMap(FrozenMap<@Nullable Object> data) implements ShapeOrNull1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateral.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateral.java index cf8eaa51c26..db1b9184382 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateral.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateral.java @@ -53,16 +53,12 @@ public String value() { public sealed interface QuadrilateralTypeBoxed permits QuadrilateralTypeBoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class QuadrilateralTypeBoxedString implements QuadrilateralTypeBoxed { - public final String data; - private QuadrilateralTypeBoxedString(String data) { - this.data = data; - } + public record QuadrilateralTypeBoxedString(String data) implements QuadrilateralTypeBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -199,16 +195,12 @@ public Schema1MapBuilder getBuilderAfterAdditionalProperty(Map arg, SchemaConfiguration configu public sealed interface SimpleQuadrilateral1Boxed permits SimpleQuadrilateral1BoxedVoid, SimpleQuadrilateral1BoxedBoolean, SimpleQuadrilateral1BoxedNumber, SimpleQuadrilateral1BoxedString, SimpleQuadrilateral1BoxedList, SimpleQuadrilateral1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class SimpleQuadrilateral1BoxedVoid implements SimpleQuadrilateral1Boxed { - public final Void data; - private SimpleQuadrilateral1BoxedVoid(Void data) { - this.data = data; - } + public record SimpleQuadrilateral1BoxedVoid(Void data) implements SimpleQuadrilateral1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class SimpleQuadrilateral1BoxedBoolean implements SimpleQuadrilateral1Boxed { - public final boolean data; - private SimpleQuadrilateral1BoxedBoolean(boolean data) { - this.data = data; - } + public record SimpleQuadrilateral1BoxedBoolean(boolean data) implements SimpleQuadrilateral1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class SimpleQuadrilateral1BoxedNumber implements SimpleQuadrilateral1Boxed { - public final Number data; - private SimpleQuadrilateral1BoxedNumber(Number data) { - this.data = data; - } + public record SimpleQuadrilateral1BoxedNumber(Number data) implements SimpleQuadrilateral1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class SimpleQuadrilateral1BoxedString implements SimpleQuadrilateral1Boxed { - public final String data; - private SimpleQuadrilateral1BoxedString(String data) { - this.data = data; - } + public record SimpleQuadrilateral1BoxedString(String data) implements SimpleQuadrilateral1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class SimpleQuadrilateral1BoxedList implements SimpleQuadrilateral1Boxed { - public final FrozenList<@Nullable Object> data; - private SimpleQuadrilateral1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record SimpleQuadrilateral1BoxedList(FrozenList<@Nullable Object> data) implements SimpleQuadrilateral1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class SimpleQuadrilateral1BoxedMap implements SimpleQuadrilateral1Boxed { - public final FrozenMap<@Nullable Object> data; - private SimpleQuadrilateral1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record SimpleQuadrilateral1BoxedMap(FrozenMap<@Nullable Object> data) implements SimpleQuadrilateral1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SomeObject.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SomeObject.java index d595a747e72..70db78eaafc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SomeObject.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SomeObject.java @@ -36,71 +36,47 @@ public class SomeObject { public sealed interface SomeObject1Boxed permits SomeObject1BoxedVoid, SomeObject1BoxedBoolean, SomeObject1BoxedNumber, SomeObject1BoxedString, SomeObject1BoxedList, SomeObject1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class SomeObject1BoxedVoid implements SomeObject1Boxed { - public final Void data; - private SomeObject1BoxedVoid(Void data) { - this.data = data; - } + public record SomeObject1BoxedVoid(Void data) implements SomeObject1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class SomeObject1BoxedBoolean implements SomeObject1Boxed { - public final boolean data; - private SomeObject1BoxedBoolean(boolean data) { - this.data = data; - } + public record SomeObject1BoxedBoolean(boolean data) implements SomeObject1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class SomeObject1BoxedNumber implements SomeObject1Boxed { - public final Number data; - private SomeObject1BoxedNumber(Number data) { - this.data = data; - } + public record SomeObject1BoxedNumber(Number data) implements SomeObject1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class SomeObject1BoxedString implements SomeObject1Boxed { - public final String data; - private SomeObject1BoxedString(String data) { - this.data = data; - } + public record SomeObject1BoxedString(String data) implements SomeObject1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class SomeObject1BoxedList implements SomeObject1Boxed { - public final FrozenList<@Nullable Object> data; - private SomeObject1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record SomeObject1BoxedList(FrozenList<@Nullable Object> data) implements SomeObject1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class SomeObject1BoxedMap implements SomeObject1Boxed { - public final FrozenMap<@Nullable Object> data; - private SomeObject1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record SomeObject1BoxedMap(FrozenMap<@Nullable Object> data) implements SomeObject1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SpecialModelname.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SpecialModelname.java index 090baa02add..857c089c4a0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SpecialModelname.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SpecialModelname.java @@ -107,16 +107,12 @@ public SpecialModelnameMapBuilder getBuilderAfterAdditionalProperty(Map data; - private Triangle1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Triangle1BoxedList(FrozenList<@Nullable Object> data) implements Triangle1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Triangle1BoxedMap implements Triangle1Boxed { - public final FrozenMap<@Nullable Object> data; - private Triangle1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Triangle1BoxedMap(FrozenMap<@Nullable Object> data) implements Triangle1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/TriangleInterface.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/TriangleInterface.java index ca582cb8659..f70541ba3a4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/TriangleInterface.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/TriangleInterface.java @@ -54,16 +54,12 @@ public String value() { public sealed interface ShapeTypeBoxed permits ShapeTypeBoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ShapeTypeBoxedString implements ShapeTypeBoxed { - public final String data; - private ShapeTypeBoxedString(String data) { - this.data = data; - } + public record ShapeTypeBoxedString(String data) implements ShapeTypeBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -269,71 +265,47 @@ public TriangleInterfaceMap10Builder getBuilderAfterTriangleType(Map data; - private TriangleInterface1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record TriangleInterface1BoxedList(FrozenList<@Nullable Object> data) implements TriangleInterface1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class TriangleInterface1BoxedMap implements TriangleInterface1Boxed { - public final TriangleInterfaceMap data; - private TriangleInterface1BoxedMap(TriangleInterfaceMap data) { - this.data = data; - } + public record TriangleInterface1BoxedMap(TriangleInterfaceMap data) implements TriangleInterface1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/UUIDString.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/UUIDString.java index 5d775c83f36..e33fdee647b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/UUIDString.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/UUIDString.java @@ -21,16 +21,12 @@ public class UUIDString { public sealed interface UUIDString1Boxed permits UUIDString1BoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class UUIDString1BoxedString implements UUIDString1Boxed { - public final String data; - private UUIDString1BoxedString(String data) { - this.data = data; - } + public record UUIDString1BoxedString(String data) implements UUIDString1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/User.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/User.java index 78dee1d4c02..e082c7c0fac 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/User.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/User.java @@ -143,27 +143,19 @@ public static ObjectWithNoDeclaredProps getInstance() { public sealed interface ObjectWithNoDeclaredPropsNullableBoxed permits ObjectWithNoDeclaredPropsNullableBoxedVoid, ObjectWithNoDeclaredPropsNullableBoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ObjectWithNoDeclaredPropsNullableBoxedVoid implements ObjectWithNoDeclaredPropsNullableBoxed { - public final Void data; - private ObjectWithNoDeclaredPropsNullableBoxedVoid(Void data) { - this.data = data; - } + public record ObjectWithNoDeclaredPropsNullableBoxedVoid(Void data) implements ObjectWithNoDeclaredPropsNullableBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ObjectWithNoDeclaredPropsNullableBoxedMap implements ObjectWithNoDeclaredPropsNullableBoxed { - public final FrozenMap<@Nullable Object> data; - private ObjectWithNoDeclaredPropsNullableBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ObjectWithNoDeclaredPropsNullableBoxedMap(FrozenMap<@Nullable Object> data) implements ObjectWithNoDeclaredPropsNullableBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -284,71 +276,47 @@ public static Not getInstance() { public sealed interface AnyTypeExceptNullPropBoxed permits AnyTypeExceptNullPropBoxedVoid, AnyTypeExceptNullPropBoxedBoolean, AnyTypeExceptNullPropBoxedNumber, AnyTypeExceptNullPropBoxedString, AnyTypeExceptNullPropBoxedList, AnyTypeExceptNullPropBoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class AnyTypeExceptNullPropBoxedVoid implements AnyTypeExceptNullPropBoxed { - public final Void data; - private AnyTypeExceptNullPropBoxedVoid(Void data) { - this.data = data; - } + public record AnyTypeExceptNullPropBoxedVoid(Void data) implements AnyTypeExceptNullPropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyTypeExceptNullPropBoxedBoolean implements AnyTypeExceptNullPropBoxed { - public final boolean data; - private AnyTypeExceptNullPropBoxedBoolean(boolean data) { - this.data = data; - } + public record AnyTypeExceptNullPropBoxedBoolean(boolean data) implements AnyTypeExceptNullPropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyTypeExceptNullPropBoxedNumber implements AnyTypeExceptNullPropBoxed { - public final Number data; - private AnyTypeExceptNullPropBoxedNumber(Number data) { - this.data = data; - } + public record AnyTypeExceptNullPropBoxedNumber(Number data) implements AnyTypeExceptNullPropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyTypeExceptNullPropBoxedString implements AnyTypeExceptNullPropBoxed { - public final String data; - private AnyTypeExceptNullPropBoxedString(String data) { - this.data = data; - } + public record AnyTypeExceptNullPropBoxedString(String data) implements AnyTypeExceptNullPropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyTypeExceptNullPropBoxedList implements AnyTypeExceptNullPropBoxed { - public final FrozenList<@Nullable Object> data; - private AnyTypeExceptNullPropBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record AnyTypeExceptNullPropBoxedList(FrozenList<@Nullable Object> data) implements AnyTypeExceptNullPropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyTypeExceptNullPropBoxedMap implements AnyTypeExceptNullPropBoxed { - public final FrozenMap<@Nullable Object> data; - private AnyTypeExceptNullPropBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record AnyTypeExceptNullPropBoxedMap(FrozenMap<@Nullable Object> data) implements AnyTypeExceptNullPropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -1119,16 +1087,12 @@ public UserMapBuilder getBuilderAfterAdditionalProperty(Map i public sealed interface Whale1Boxed permits Whale1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Whale1BoxedMap implements Whale1Boxed { - public final WhaleMap data; - private Whale1BoxedMap(WhaleMap data) { - this.data = data; - } + public record Whale1BoxedMap(WhaleMap data) implements Whale1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Zebra.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Zebra.java index 7b760b3d5a4..077501bfd68 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Zebra.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Zebra.java @@ -59,16 +59,12 @@ public String value() { public sealed interface TypeBoxed permits TypeBoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class TypeBoxedString implements TypeBoxed { - public final String data; - private TypeBoxedString(String data) { - this.data = data; - } + public record TypeBoxedString(String data) implements TypeBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -147,16 +143,12 @@ public String value() { public sealed interface ClassNameBoxed permits ClassNameBoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ClassNameBoxedString implements ClassNameBoxed { - public final String data; - private ClassNameBoxedString(String data) { - this.data = data; - } + public record ClassNameBoxedString(String data) implements ClassNameBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -402,16 +394,12 @@ public ZebraMap0Builder getBuilderAfterClassName(Map i public sealed interface Zebra1Boxed permits Zebra1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Zebra1BoxedMap implements Zebra1Boxed { - public final ZebraMap data; - private Zebra1BoxedMap(ZebraMap data) { - this.data = data; - } + public record Zebra1BoxedMap(ZebraMap data) implements Zebra1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/HeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/HeaderParameters.java index a97e281b3a9..f534ffafd2e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/HeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/HeaderParameters.java @@ -94,16 +94,12 @@ public HeaderParametersMapBuilder getBuilderAfterSomeHeader(Map public sealed interface HeaderParameters1Boxed permits HeaderParameters1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class HeaderParameters1BoxedMap implements HeaderParameters1Boxed { - public final HeaderParametersMap data; - private HeaderParameters1BoxedMap(HeaderParametersMap data) { - this.data = data; - } + public record HeaderParameters1BoxedMap(HeaderParametersMap data) implements HeaderParameters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/PathParameters.java index c130e20aecd..72e91298197 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/PathParameters.java @@ -107,16 +107,12 @@ public PathParametersMap0Builder getBuilderAfterSubDir(Map insta public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class PathParameters1BoxedMap implements PathParameters1Boxed { - public final PathParametersMap data; - private PathParameters1BoxedMap(PathParametersMap data) { - this.data = data; - } + public record PathParameters1BoxedMap(PathParametersMap data) implements PathParameters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.java index 7b38dd7f14f..663db88fd49 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.java @@ -36,16 +36,12 @@ public String value() { public sealed interface Schema11Boxed permits Schema11BoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Schema11BoxedString implements Schema11Boxed { - public final String data; - private Schema11BoxedString(String data) { - this.data = data; - } + public record Schema11BoxedString(String data) implements Schema11Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/PathParameters.java index 0383491087f..4401a26e63e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/PathParameters.java @@ -107,16 +107,12 @@ public PathParametersMap0Builder getBuilderAfterSubDir(Map insta public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class PathParameters1BoxedMap implements PathParameters1Boxed { - public final PathParametersMap data; - private PathParameters1BoxedMap(PathParametersMap data) { - this.data = data; - } + public record PathParameters1BoxedMap(PathParametersMap data) implements PathParameters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/QueryParameters.java index a846d01f48b..2a7425dc66e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/QueryParameters.java @@ -94,16 +94,12 @@ public QueryParametersMapBuilder getBuilderAfterSearchStr(Map in public sealed interface QueryParameters1Boxed permits QueryParameters1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class QueryParameters1BoxedMap implements QueryParameters1Boxed { - public final QueryParametersMap data; - private QueryParameters1BoxedMap(QueryParametersMap data) { - this.data = data; - } + public record QueryParameters1BoxedMap(QueryParametersMap data) implements QueryParameters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.java index 7deba84b7ce..a6ab29bd379 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.java @@ -36,16 +36,12 @@ public String value() { public sealed interface PathParamSchema01Boxed permits PathParamSchema01BoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class PathParamSchema01BoxedString implements PathParamSchema01Boxed { - public final String data; - private PathParamSchema01BoxedString(String data) { - this.data = data; - } + public record PathParamSchema01BoxedString(String data) implements PathParamSchema01Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/HeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/HeaderParameters.java index ed9f0f9d221..eb2e3565bc5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/HeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/HeaderParameters.java @@ -94,16 +94,12 @@ public HeaderParametersMapBuilder getBuilderAfterSomeHeader(Map public sealed interface HeaderParameters1Boxed permits HeaderParameters1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class HeaderParameters1BoxedMap implements HeaderParameters1Boxed { - public final HeaderParametersMap data; - private HeaderParameters1BoxedMap(HeaderParametersMap data) { - this.data = data; - } + public record HeaderParameters1BoxedMap(HeaderParametersMap data) implements HeaderParameters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/PathParameters.java index 1e332d50c58..bff9621aac5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/PathParameters.java @@ -107,16 +107,12 @@ public PathParametersMap0Builder getBuilderAfterSubDir(Map insta public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class PathParameters1BoxedMap implements PathParameters1Boxed { - public final PathParametersMap data; - private PathParameters1BoxedMap(PathParametersMap data) { - this.data = data; - } + public record PathParameters1BoxedMap(PathParametersMap data) implements PathParameters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/HeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/HeaderParameters.java index 371790f4e2e..7a06c7bc8f6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/HeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/HeaderParameters.java @@ -148,16 +148,12 @@ public HeaderParametersMap0Builder getBuilderAfterRequiredBooleanGroup(Map build() { public sealed interface Schema01Boxed permits Schema01BoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Schema01BoxedList implements Schema01Boxed { - public final SchemaList0 data; - private Schema01BoxedList(SchemaList0 data) { - this.data = data; - } + public record Schema01BoxedList(SchemaList0 data) implements Schema01Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter1/Schema1.java index e4a23d10208..1c7146cbe1f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter1/Schema1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter1/Schema1.java @@ -38,16 +38,12 @@ public String value() { public sealed interface Schema11Boxed permits Schema11BoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Schema11BoxedString implements Schema11Boxed { - public final String data; - private Schema11BoxedString(String data) { - this.data = data; - } + public record Schema11BoxedString(String data) implements Schema11Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter2/Schema2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter2/Schema2.java index 51105923072..0f0217cbc8b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter2/Schema2.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter2/Schema2.java @@ -41,16 +41,12 @@ public String value() { public sealed interface Items2Boxed permits Items2BoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Items2BoxedString implements Items2Boxed { - public final String data; - private Items2BoxedString(String data) { - this.data = data; - } + public record Items2BoxedString(String data) implements Items2Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -160,16 +156,12 @@ public List build() { public sealed interface Schema21Boxed permits Schema21BoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Schema21BoxedList implements Schema21Boxed { - public final SchemaList2 data; - private Schema21BoxedList(SchemaList2 data) { - this.data = data; - } + public record Schema21BoxedList(SchemaList2 data) implements Schema21Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter3/Schema3.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter3/Schema3.java index e345ef30cd1..220702b867a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter3/Schema3.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter3/Schema3.java @@ -38,16 +38,12 @@ public String value() { public sealed interface Schema31Boxed permits Schema31BoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Schema31BoxedString implements Schema31Boxed { - public final String data; - private Schema31BoxedString(String data) { - this.data = data; - } + public record Schema31BoxedString(String data) implements Schema31Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter4/Schema4.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter4/Schema4.java index be38f5721f7..080d1a97005 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter4/Schema4.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter4/Schema4.java @@ -82,16 +82,12 @@ public double value() { public sealed interface Schema41Boxed permits Schema41BoxedNumber { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Schema41BoxedNumber implements Schema41Boxed { - public final Number data; - private Schema41BoxedNumber(Number data) { - this.data = data; - } + public record Schema41BoxedNumber(Number data) implements Schema41Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter5/Schema5.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter5/Schema5.java index 4fb882da5b1..664bf3b7db2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter5/Schema5.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter5/Schema5.java @@ -52,16 +52,12 @@ public float value() { public sealed interface Schema51Boxed permits Schema51BoxedNumber { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Schema51BoxedNumber implements Schema51Boxed { - public final Number data; - private Schema51BoxedNumber(Number data) { - this.data = data; - } + public record Schema51BoxedNumber(Number data) implements Schema51Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java index e11d767aa01..caa33910743 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java @@ -49,16 +49,12 @@ public String value() { public sealed interface ApplicationxwwwformurlencodedItemsBoxed permits ApplicationxwwwformurlencodedItemsBoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ApplicationxwwwformurlencodedItemsBoxedString implements ApplicationxwwwformurlencodedItemsBoxed { - public final String data; - private ApplicationxwwwformurlencodedItemsBoxedString(String data) { - this.data = data; - } + public record ApplicationxwwwformurlencodedItemsBoxedString(String data) implements ApplicationxwwwformurlencodedItemsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -168,16 +164,12 @@ public List build() { public sealed interface ApplicationxwwwformurlencodedEnumFormStringArrayBoxed permits ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList implements ApplicationxwwwformurlencodedEnumFormStringArrayBoxed { - public final ApplicationxwwwformurlencodedEnumFormStringArrayList data; - private ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList(ApplicationxwwwformurlencodedEnumFormStringArrayList data) { - this.data = data; - } + public record ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList(ApplicationxwwwformurlencodedEnumFormStringArrayList data) implements ApplicationxwwwformurlencodedEnumFormStringArrayBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -269,16 +261,12 @@ public String value() { public sealed interface ApplicationxwwwformurlencodedEnumFormStringBoxed permits ApplicationxwwwformurlencodedEnumFormStringBoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ApplicationxwwwformurlencodedEnumFormStringBoxedString implements ApplicationxwwwformurlencodedEnumFormStringBoxed { - public final String data; - private ApplicationxwwwformurlencodedEnumFormStringBoxedString(String data) { - this.data = data; - } + public record ApplicationxwwwformurlencodedEnumFormStringBoxedString(String data) implements ApplicationxwwwformurlencodedEnumFormStringBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -450,16 +438,12 @@ public ApplicationxwwwformurlencodedSchemaMapBuilder getBuilderAfterAdditionalPr public sealed interface ApplicationxwwwformurlencodedSchema1Boxed permits ApplicationxwwwformurlencodedSchema1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ApplicationxwwwformurlencodedSchema1BoxedMap implements ApplicationxwwwformurlencodedSchema1Boxed { - public final ApplicationxwwwformurlencodedSchemaMap data; - private ApplicationxwwwformurlencodedSchema1BoxedMap(ApplicationxwwwformurlencodedSchemaMap data) { - this.data = data; - } + public record ApplicationxwwwformurlencodedSchema1BoxedMap(ApplicationxwwwformurlencodedSchemaMap data) implements ApplicationxwwwformurlencodedSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/RequestBody.java index 61c1aea140a..1039c56b893 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/RequestBody.java @@ -33,7 +33,7 @@ public RequestBody1() { public SerializedRequestBody serialize(SealedRequestBody requestBody) { ApplicationxwwwformurlencodedRequestBody requestBody0 = (ApplicationxwwwformurlencodedRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().data()); + return serialize(requestBody0.contentType(), requestBody0.body().getData()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java index 7bc496f3dc2..32d0ace5f94 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java @@ -37,16 +37,12 @@ public class ApplicationxwwwformurlencodedSchema { public sealed interface ApplicationxwwwformurlencodedIntegerBoxed permits ApplicationxwwwformurlencodedIntegerBoxedNumber { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ApplicationxwwwformurlencodedIntegerBoxedNumber implements ApplicationxwwwformurlencodedIntegerBoxed { - public final Number data; - private ApplicationxwwwformurlencodedIntegerBoxedNumber(Number data) { - this.data = data; - } + public record ApplicationxwwwformurlencodedIntegerBoxedNumber(Number data) implements ApplicationxwwwformurlencodedIntegerBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -125,16 +121,12 @@ public ApplicationxwwwformurlencodedIntegerBoxedNumber validateAndBox(Number arg } public sealed interface ApplicationxwwwformurlencodedInt32Boxed permits ApplicationxwwwformurlencodedInt32BoxedNumber { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ApplicationxwwwformurlencodedInt32BoxedNumber implements ApplicationxwwwformurlencodedInt32Boxed { - public final Number data; - private ApplicationxwwwformurlencodedInt32BoxedNumber(Number data) { - this.data = data; - } + public record ApplicationxwwwformurlencodedInt32BoxedNumber(Number data) implements ApplicationxwwwformurlencodedInt32Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -216,16 +208,12 @@ public static ApplicationxwwwformurlencodedInt64 getInstance() { public sealed interface ApplicationxwwwformurlencodedNumberBoxed permits ApplicationxwwwformurlencodedNumberBoxedNumber { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ApplicationxwwwformurlencodedNumberBoxedNumber implements ApplicationxwwwformurlencodedNumberBoxed { - public final Number data; - private ApplicationxwwwformurlencodedNumberBoxedNumber(Number data) { - this.data = data; - } + public record ApplicationxwwwformurlencodedNumberBoxedNumber(Number data) implements ApplicationxwwwformurlencodedNumberBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -303,16 +291,12 @@ public ApplicationxwwwformurlencodedNumberBoxedNumber validateAndBox(Number arg, } public sealed interface ApplicationxwwwformurlencodedFloatBoxed permits ApplicationxwwwformurlencodedFloatBoxedNumber { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ApplicationxwwwformurlencodedFloatBoxedNumber implements ApplicationxwwwformurlencodedFloatBoxed { - public final Number data; - private ApplicationxwwwformurlencodedFloatBoxedNumber(Number data) { - this.data = data; - } + public record ApplicationxwwwformurlencodedFloatBoxedNumber(Number data) implements ApplicationxwwwformurlencodedFloatBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -377,16 +361,12 @@ public ApplicationxwwwformurlencodedFloatBoxedNumber validateAndBox(Number arg, } public sealed interface ApplicationxwwwformurlencodedDoubleBoxed permits ApplicationxwwwformurlencodedDoubleBoxedNumber { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ApplicationxwwwformurlencodedDoubleBoxedNumber implements ApplicationxwwwformurlencodedDoubleBoxed { - public final Number data; - private ApplicationxwwwformurlencodedDoubleBoxedNumber(Number data) { - this.data = data; - } + public record ApplicationxwwwformurlencodedDoubleBoxedNumber(Number data) implements ApplicationxwwwformurlencodedDoubleBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -452,16 +432,12 @@ public ApplicationxwwwformurlencodedDoubleBoxedNumber validateAndBox(Number arg, } public sealed interface ApplicationxwwwformurlencodedStringBoxed permits ApplicationxwwwformurlencodedStringBoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ApplicationxwwwformurlencodedStringBoxedString implements ApplicationxwwwformurlencodedStringBoxed { - public final String data; - private ApplicationxwwwformurlencodedStringBoxedString(String data) { - this.data = data; - } + public record ApplicationxwwwformurlencodedStringBoxedString(String data) implements ApplicationxwwwformurlencodedStringBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -522,16 +498,12 @@ public ApplicationxwwwformurlencodedStringBoxedString validateAndBox(String arg, } public sealed interface ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed permits ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString implements ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed { - public final String data; - private ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString(String data) { - this.data = data; - } + public record ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString(String data) implements ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -625,16 +597,12 @@ public static ApplicationxwwwformurlencodedDate getInstance() { public sealed interface ApplicationxwwwformurlencodedDateTimeBoxed permits ApplicationxwwwformurlencodedDateTimeBoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ApplicationxwwwformurlencodedDateTimeBoxedString implements ApplicationxwwwformurlencodedDateTimeBoxed { - public final String data; - private ApplicationxwwwformurlencodedDateTimeBoxedString(String data) { - this.data = data; - } + public record ApplicationxwwwformurlencodedDateTimeBoxedString(String data) implements ApplicationxwwwformurlencodedDateTimeBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -699,16 +667,12 @@ public ApplicationxwwwformurlencodedDateTimeBoxedString validateAndBox(String ar } public sealed interface ApplicationxwwwformurlencodedPasswordBoxed permits ApplicationxwwwformurlencodedPasswordBoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ApplicationxwwwformurlencodedPasswordBoxedString implements ApplicationxwwwformurlencodedPasswordBoxed { - public final String data; - private ApplicationxwwwformurlencodedPasswordBoxedString(String data) { - this.data = data; - } + public record ApplicationxwwwformurlencodedPasswordBoxedString(String data) implements ApplicationxwwwformurlencodedPasswordBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -1452,16 +1416,12 @@ public ApplicationxwwwformurlencodedSchemaMap1110Builder getBuilderAfterApplicat public sealed interface ApplicationxwwwformurlencodedSchema1Boxed permits ApplicationxwwwformurlencodedSchema1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ApplicationxwwwformurlencodedSchema1BoxedMap implements ApplicationxwwwformurlencodedSchema1Boxed { - public final ApplicationxwwwformurlencodedSchemaMap data; - private ApplicationxwwwformurlencodedSchema1BoxedMap(ApplicationxwwwformurlencodedSchemaMap data) { - this.data = data; - } + public record ApplicationxwwwformurlencodedSchema1BoxedMap(ApplicationxwwwformurlencodedSchemaMap data) implements ApplicationxwwwformurlencodedSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/RequestBody.java index d10ff982ed2..548f2485241 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/RequestBody.java @@ -33,7 +33,7 @@ public RequestBody1() { public SerializedRequestBody serialize(SealedRequestBody requestBody) { ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().data()); + return serialize(requestBody0.contentType(), requestBody0.body().getData()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/RequestBody.java index 62e2ddc6c26..56c86c75ce9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/RequestBody.java @@ -33,7 +33,7 @@ public RequestBody1() { public SerializedRequestBody serialize(SealedRequestBody requestBody) { ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().data()); + return serialize(requestBody0.contentType(), requestBody0.body().getData()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/QueryParameters.java index 9741d953970..4623bb91635 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/QueryParameters.java @@ -101,16 +101,12 @@ public QueryParametersMap0Builder getBuilderAfterQuery(Map insta public sealed interface QueryParameters1Boxed permits QueryParameters1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class QueryParameters1BoxedMap implements QueryParameters1Boxed { - public final QueryParametersMap data; - private QueryParameters1BoxedMap(QueryParametersMap data) { - this.data = data; - } + public record QueryParameters1BoxedMap(QueryParametersMap data) implements QueryParameters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/RequestBody.java index 5ad9d18cc56..df60bdb3e77 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/RequestBody.java @@ -33,7 +33,7 @@ public RequestBody1() { public SerializedRequestBody serialize(SealedRequestBody requestBody) { ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().data()); + return serialize(requestBody0.contentType(), requestBody0.body().getData()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/QueryParameters.java index a95fb8bd410..9458c39e664 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/QueryParameters.java @@ -242,16 +242,12 @@ public QueryParametersMap110Builder getBuilderAfterSomeVar1(Map instance) public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class PathParameters1BoxedMap implements PathParameters1Boxed { - public final PathParametersMap data; - private PathParameters1BoxedMap(PathParametersMap data) { - this.data = data; - } + public record PathParameters1BoxedMap(PathParametersMap data) implements PathParameters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/RequestBody.java index 623ace3cc69..414ca55ae99 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/RequestBody.java @@ -33,7 +33,7 @@ public RequestBody1() { public SerializedRequestBody serialize(SealedRequestBody requestBody) { ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().data()); + return serialize(requestBody0.contentType(), requestBody0.body().getData()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java index 5393f7c4a6b..8f87100eb88 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java @@ -89,16 +89,12 @@ public ApplicationjsonSchemaMapBuilder getBuilderAfterAdditionalProperty(Map data; - private Schema01BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema01BoxedList(FrozenList<@Nullable Object> data) implements Schema01Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema01BoxedMap implements Schema01Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema01BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema01BoxedMap(FrozenMap<@Nullable Object> data) implements Schema01Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java index a3e28a7fb09..dcb1aca82e7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java @@ -38,16 +38,12 @@ public class Schema1 { public sealed interface Schema01Boxed permits Schema01BoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Schema01BoxedString implements Schema01Boxed { - public final String data; - private Schema01BoxedString(String data) { - this.data = data; - } + public record Schema01BoxedString(String data) implements Schema01Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -105,71 +101,47 @@ public Schema01BoxedString validateAndBox(String arg, SchemaConfiguration config } public sealed interface SomeProp1Boxed permits SomeProp1BoxedVoid, SomeProp1BoxedBoolean, SomeProp1BoxedNumber, SomeProp1BoxedString, SomeProp1BoxedList, SomeProp1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class SomeProp1BoxedVoid implements SomeProp1Boxed { - public final Void data; - private SomeProp1BoxedVoid(Void data) { - this.data = data; - } + public record SomeProp1BoxedVoid(Void data) implements SomeProp1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class SomeProp1BoxedBoolean implements SomeProp1Boxed { - public final boolean data; - private SomeProp1BoxedBoolean(boolean data) { - this.data = data; - } + public record SomeProp1BoxedBoolean(boolean data) implements SomeProp1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class SomeProp1BoxedNumber implements SomeProp1Boxed { - public final Number data; - private SomeProp1BoxedNumber(Number data) { - this.data = data; - } + public record SomeProp1BoxedNumber(Number data) implements SomeProp1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class SomeProp1BoxedString implements SomeProp1Boxed { - public final String data; - private SomeProp1BoxedString(String data) { - this.data = data; - } + public record SomeProp1BoxedString(String data) implements SomeProp1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class SomeProp1BoxedList implements SomeProp1Boxed { - public final FrozenList<@Nullable Object> data; - private SomeProp1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record SomeProp1BoxedList(FrozenList<@Nullable Object> data) implements SomeProp1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class SomeProp1BoxedMap implements SomeProp1Boxed { - public final FrozenMap<@Nullable Object> data; - private SomeProp1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record SomeProp1BoxedMap(FrozenMap<@Nullable Object> data) implements SomeProp1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -505,16 +477,12 @@ public SchemaMapBuilder1 getBuilderAfterAdditionalProperty(Map data; - private ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data) implements ApplicationjsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ApplicationjsonSchema1BoxedMap implements ApplicationjsonSchema1Boxed { - public final FrozenMap<@Nullable Object> data; - private ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) implements ApplicationjsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java index 6af881596dd..68dd8cf179f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -38,16 +38,12 @@ public class MultipartformdataSchema { public sealed interface Multipartformdata0Boxed permits Multipartformdata0BoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Multipartformdata0BoxedString implements Multipartformdata0Boxed { - public final String data; - private Multipartformdata0BoxedString(String data) { - this.data = data; - } + public record Multipartformdata0BoxedString(String data) implements Multipartformdata0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -105,71 +101,47 @@ public Multipartformdata0BoxedString validateAndBox(String arg, SchemaConfigurat } public sealed interface MultipartformdataSomePropBoxed permits MultipartformdataSomePropBoxedVoid, MultipartformdataSomePropBoxedBoolean, MultipartformdataSomePropBoxedNumber, MultipartformdataSomePropBoxedString, MultipartformdataSomePropBoxedList, MultipartformdataSomePropBoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class MultipartformdataSomePropBoxedVoid implements MultipartformdataSomePropBoxed { - public final Void data; - private MultipartformdataSomePropBoxedVoid(Void data) { - this.data = data; - } + public record MultipartformdataSomePropBoxedVoid(Void data) implements MultipartformdataSomePropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MultipartformdataSomePropBoxedBoolean implements MultipartformdataSomePropBoxed { - public final boolean data; - private MultipartformdataSomePropBoxedBoolean(boolean data) { - this.data = data; - } + public record MultipartformdataSomePropBoxedBoolean(boolean data) implements MultipartformdataSomePropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MultipartformdataSomePropBoxedNumber implements MultipartformdataSomePropBoxed { - public final Number data; - private MultipartformdataSomePropBoxedNumber(Number data) { - this.data = data; - } + public record MultipartformdataSomePropBoxedNumber(Number data) implements MultipartformdataSomePropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MultipartformdataSomePropBoxedString implements MultipartformdataSomePropBoxed { - public final String data; - private MultipartformdataSomePropBoxedString(String data) { - this.data = data; - } + public record MultipartformdataSomePropBoxedString(String data) implements MultipartformdataSomePropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MultipartformdataSomePropBoxedList implements MultipartformdataSomePropBoxed { - public final FrozenList<@Nullable Object> data; - private MultipartformdataSomePropBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record MultipartformdataSomePropBoxedList(FrozenList<@Nullable Object> data) implements MultipartformdataSomePropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MultipartformdataSomePropBoxedMap implements MultipartformdataSomePropBoxed { - public final FrozenMap<@Nullable Object> data; - private MultipartformdataSomePropBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record MultipartformdataSomePropBoxedMap(FrozenMap<@Nullable Object> data) implements MultipartformdataSomePropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -505,16 +477,12 @@ public MultipartformdataSchemaMapBuilder getBuilderAfterAdditionalProperty(Map data; - private ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data) implements ApplicationjsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ApplicationjsonSchema1BoxedMap implements ApplicationjsonSchema1Boxed { - public final FrozenMap<@Nullable Object> data; - private ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) implements ApplicationjsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.java index 2496b2cc01f..961c1629626 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.java @@ -38,16 +38,12 @@ public class MultipartformdataSchema { public sealed interface Multipartformdata0Boxed permits Multipartformdata0BoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Multipartformdata0BoxedString implements Multipartformdata0Boxed { - public final String data; - private Multipartformdata0BoxedString(String data) { - this.data = data; - } + public record Multipartformdata0BoxedString(String data) implements Multipartformdata0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -105,71 +101,47 @@ public Multipartformdata0BoxedString validateAndBox(String arg, SchemaConfigurat } public sealed interface MultipartformdataSomePropBoxed permits MultipartformdataSomePropBoxedVoid, MultipartformdataSomePropBoxedBoolean, MultipartformdataSomePropBoxedNumber, MultipartformdataSomePropBoxedString, MultipartformdataSomePropBoxedList, MultipartformdataSomePropBoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class MultipartformdataSomePropBoxedVoid implements MultipartformdataSomePropBoxed { - public final Void data; - private MultipartformdataSomePropBoxedVoid(Void data) { - this.data = data; - } + public record MultipartformdataSomePropBoxedVoid(Void data) implements MultipartformdataSomePropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MultipartformdataSomePropBoxedBoolean implements MultipartformdataSomePropBoxed { - public final boolean data; - private MultipartformdataSomePropBoxedBoolean(boolean data) { - this.data = data; - } + public record MultipartformdataSomePropBoxedBoolean(boolean data) implements MultipartformdataSomePropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MultipartformdataSomePropBoxedNumber implements MultipartformdataSomePropBoxed { - public final Number data; - private MultipartformdataSomePropBoxedNumber(Number data) { - this.data = data; - } + public record MultipartformdataSomePropBoxedNumber(Number data) implements MultipartformdataSomePropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MultipartformdataSomePropBoxedString implements MultipartformdataSomePropBoxed { - public final String data; - private MultipartformdataSomePropBoxedString(String data) { - this.data = data; - } + public record MultipartformdataSomePropBoxedString(String data) implements MultipartformdataSomePropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MultipartformdataSomePropBoxedList implements MultipartformdataSomePropBoxed { - public final FrozenList<@Nullable Object> data; - private MultipartformdataSomePropBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record MultipartformdataSomePropBoxedList(FrozenList<@Nullable Object> data) implements MultipartformdataSomePropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MultipartformdataSomePropBoxedMap implements MultipartformdataSomePropBoxed { - public final FrozenMap<@Nullable Object> data; - private MultipartformdataSomePropBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record MultipartformdataSomePropBoxedMap(FrozenMap<@Nullable Object> data) implements MultipartformdataSomePropBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -505,16 +477,12 @@ public MultipartformdataSchemaMapBuilder getBuilderAfterAdditionalProperty(Map instan public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class PathParameters1BoxedMap implements PathParameters1Boxed { - public final PathParametersMap data; - private PathParameters1BoxedMap(PathParametersMap data) { - this.data = data; - } + public record PathParameters1BoxedMap(PathParametersMap data) implements PathParameters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/RequestBody.java index 7429fc34020..3241bf0ea56 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/RequestBody.java @@ -33,7 +33,7 @@ public RequestBody1() { public SerializedRequestBody serialize(SealedRequestBody requestBody) { MultipartformdataRequestBody requestBody0 = (MultipartformdataRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().data()); + return serialize(requestBody0.contentType(), requestBody0.body().getData()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java index 74e94503c1f..8609af7bb98 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -154,16 +154,12 @@ public MultipartformdataSchemaMap0Builder getBuilderAfterMultipartformdataRequir public sealed interface MultipartformdataSchema1Boxed permits MultipartformdataSchema1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class MultipartformdataSchema1BoxedMap implements MultipartformdataSchema1Boxed { - public final MultipartformdataSchemaMap data; - private MultipartformdataSchema1BoxedMap(MultipartformdataSchemaMap data) { - this.data = data; - } + public record MultipartformdataSchema1BoxedMap(MultipartformdataSchemaMap data) implements MultipartformdataSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.java index 59cabe26de3..dc8c359c18e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.java @@ -149,16 +149,12 @@ public QueryParametersMap0Builder getBuilderAfterSomeParam(Map build() { public sealed interface Schema01Boxed permits Schema01BoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Schema01BoxedList implements Schema01Boxed { - public final SchemaList0 data; - private Schema01BoxedList(SchemaList0 data) { - this.data = data; - } + public record Schema01BoxedList(SchemaList0 data) implements Schema01Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.java index 3651c7c2d5f..043462a5e1f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.java @@ -67,16 +67,12 @@ public List build() { public sealed interface Schema11Boxed permits Schema11BoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Schema11BoxedList implements Schema11Boxed { - public final SchemaList1 data; - private Schema11BoxedList(SchemaList1 data) { - this.data = data; - } + public record Schema11BoxedList(SchemaList1 data) implements Schema11Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.java index f054a4eecb2..061bd11e80e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.java @@ -67,16 +67,12 @@ public List build() { public sealed interface Schema21Boxed permits Schema21BoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Schema21BoxedList implements Schema21Boxed { - public final SchemaList2 data; - private Schema21BoxedList(SchemaList2 data) { - this.data = data; - } + public record Schema21BoxedList(SchemaList2 data) implements Schema21Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.java index 03732fd881c..04acb3dcd31 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.java @@ -67,16 +67,12 @@ public List build() { public sealed interface Schema31Boxed permits Schema31BoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Schema31BoxedList implements Schema31Boxed { - public final SchemaList3 data; - private Schema31BoxedList(SchemaList3 data) { - this.data = data; - } + public record Schema31BoxedList(SchemaList3 data) implements Schema31Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.java index bc1354e0816..93f2dc3cfa8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.java @@ -67,16 +67,12 @@ public List build() { public sealed interface Schema41Boxed permits Schema41BoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Schema41BoxedList implements Schema41Boxed { - public final SchemaList4 data; - private Schema41BoxedList(SchemaList4 data) { - this.data = data; - } + public record Schema41BoxedList(SchemaList4 data) implements Schema41Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/RequestBody.java index b2aaf8e7bcf..704b7b04fc1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/RequestBody.java @@ -33,7 +33,7 @@ public RequestBody1() { public SerializedRequestBody serialize(SealedRequestBody requestBody) { ApplicationoctetstreamRequestBody requestBody0 = (ApplicationoctetstreamRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().data()); + return serialize(requestBody0.contentType(), requestBody0.body().getData()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/RequestBody.java index 9936337d4ef..4db90bc7264 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/RequestBody.java @@ -33,7 +33,7 @@ public RequestBody1() { public SerializedRequestBody serialize(SealedRequestBody requestBody) { MultipartformdataRequestBody requestBody0 = (MultipartformdataRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().data()); + return serialize(requestBody0.contentType(), requestBody0.body().getData()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java index 25a817d5bcd..190ff1368be 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -154,16 +154,12 @@ public MultipartformdataSchemaMap0Builder getBuilderAfterMultipartformdataFile(M public sealed interface MultipartformdataSchema1Boxed permits MultipartformdataSchema1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class MultipartformdataSchema1BoxedMap implements MultipartformdataSchema1Boxed { - public final MultipartformdataSchemaMap data; - private MultipartformdataSchema1BoxedMap(MultipartformdataSchemaMap data) { - this.data = data; - } + public record MultipartformdataSchema1BoxedMap(MultipartformdataSchemaMap data) implements MultipartformdataSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/RequestBody.java index 6361c2a763a..dfb6f357512 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/RequestBody.java @@ -33,7 +33,7 @@ public RequestBody1() { public SerializedRequestBody serialize(SealedRequestBody requestBody) { MultipartformdataRequestBody requestBody0 = (MultipartformdataRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().data()); + return serialize(requestBody0.contentType(), requestBody0.body().getData()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java index fc986d4f518..5f305f3e814 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -76,16 +76,12 @@ public List build() { public sealed interface MultipartformdataFilesBoxed permits MultipartformdataFilesBoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class MultipartformdataFilesBoxedList implements MultipartformdataFilesBoxed { - public final MultipartformdataFilesList data; - private MultipartformdataFilesBoxedList(MultipartformdataFilesList data) { - this.data = data; - } + public record MultipartformdataFilesBoxedList(MultipartformdataFilesList data) implements MultipartformdataFilesBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -229,16 +225,12 @@ public MultipartformdataSchemaMapBuilder getBuilderAfterAdditionalProperty(Map instance) public sealed interface Variables1Boxed permits Variables1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Variables1BoxedMap implements Variables1Boxed { - public final VariablesMap data; - private Variables1BoxedMap(VariablesMap data) { - this.data = data; - } + public record Variables1BoxedMap(VariablesMap data) implements Variables1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/QueryParameters.java index f6c940c8549..b9a6a81f75a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/QueryParameters.java @@ -102,16 +102,12 @@ public QueryParametersMap0Builder getBuilderAfterStatus(Map public sealed interface QueryParameters1Boxed permits QueryParameters1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class QueryParameters1BoxedMap implements QueryParameters1Boxed { - public final QueryParametersMap data; - private QueryParameters1BoxedMap(QueryParametersMap data) { - this.data = data; - } + public record QueryParameters1BoxedMap(QueryParametersMap data) implements QueryParameters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/parameter0/Schema0.java index 34d131be791..2276300f19c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/parameter0/Schema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/parameter0/Schema0.java @@ -42,16 +42,12 @@ public String value() { public sealed interface Items0Boxed permits Items0BoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Items0BoxedString implements Items0Boxed { - public final String data; - private Items0BoxedString(String data) { - this.data = data; - } + public record Items0BoxedString(String data) implements Items0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -162,16 +158,12 @@ public List build() { public sealed interface Schema01Boxed permits Schema01BoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Schema01BoxedList implements Schema01Boxed { - public final SchemaList0 data; - private Schema01BoxedList(SchemaList0 data) { - this.data = data; - } + public record Schema01BoxedList(SchemaList0 data) implements Schema01Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.java index 56f6908ef5a..139729730ab 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.java @@ -60,16 +60,12 @@ public String value() { public sealed interface VersionBoxed permits VersionBoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class VersionBoxedString implements VersionBoxed { - public final String data; - private VersionBoxedString(String data) { - this.data = data; - } + public record VersionBoxedString(String data) implements VersionBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -206,16 +202,12 @@ public VariablesMap0Builder getBuilderAfterVersion(Map instance) public sealed interface Variables1Boxed permits Variables1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Variables1BoxedMap implements Variables1Boxed { - public final VariablesMap data; - private Variables1BoxedMap(VariablesMap data) { - this.data = data; - } + public record Variables1BoxedMap(VariablesMap data) implements Variables1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/QueryParameters.java index bd729209d1c..ec12ead3d02 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/QueryParameters.java @@ -102,16 +102,12 @@ public QueryParametersMap0Builder getBuilderAfterTags(Map> public sealed interface QueryParameters1Boxed permits QueryParameters1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class QueryParameters1BoxedMap implements QueryParameters1Boxed { - public final QueryParametersMap data; - private QueryParameters1BoxedMap(QueryParametersMap data) { - this.data = data; - } + public record QueryParameters1BoxedMap(QueryParametersMap data) implements QueryParameters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/parameter0/Schema0.java index d6effbcad5b..344b768315a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/parameter0/Schema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/parameter0/Schema0.java @@ -67,16 +67,12 @@ public List build() { public sealed interface Schema01Boxed permits Schema01BoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Schema01BoxedList implements Schema01Boxed { - public final SchemaList0 data; - private Schema01BoxedList(SchemaList0 data) { - this.data = data; - } + public record Schema01BoxedList(SchemaList0 data) implements Schema01Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/HeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/HeaderParameters.java index 1183b5a9c35..cfdfb27a7ef 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/HeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/HeaderParameters.java @@ -94,16 +94,12 @@ public HeaderParametersMapBuilder getBuilderAfterApiKey(Map inst public sealed interface HeaderParameters1Boxed permits HeaderParameters1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class HeaderParameters1BoxedMap implements HeaderParameters1Boxed { - public final HeaderParametersMap data; - private HeaderParameters1BoxedMap(HeaderParametersMap data) { - this.data = data; - } + public record HeaderParameters1BoxedMap(HeaderParametersMap data) implements HeaderParameters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PathParameters.java index 0f0c891cae9..d94b04b8040 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PathParameters.java @@ -119,16 +119,12 @@ public PathParametersMap0Builder getBuilderAfterPetId(Map instan public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class PathParameters1BoxedMap implements PathParameters1Boxed { - public final PathParametersMap data; - private PathParameters1BoxedMap(PathParametersMap data) { - this.data = data; - } + public record PathParameters1BoxedMap(PathParametersMap data) implements PathParameters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PathParameters.java index 8b2659e54ff..f039154d59e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PathParameters.java @@ -119,16 +119,12 @@ public PathParametersMap0Builder getBuilderAfterPetId(Map instan public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class PathParameters1BoxedMap implements PathParameters1Boxed { - public final PathParametersMap data; - private PathParameters1BoxedMap(PathParametersMap data) { - this.data = data; - } + public record PathParameters1BoxedMap(PathParametersMap data) implements PathParameters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PathParameters.java index cec5907c4a3..bc30cb1b96d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PathParameters.java @@ -119,16 +119,12 @@ public PathParametersMap0Builder getBuilderAfterPetId(Map instan public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class PathParameters1BoxedMap implements PathParameters1Boxed { - public final PathParametersMap data; - private PathParameters1BoxedMap(PathParametersMap data) { - this.data = data; - } + public record PathParameters1BoxedMap(PathParametersMap data) implements PathParameters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/RequestBody.java index 04f5f296b2a..bdaa1ca6b76 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/RequestBody.java @@ -33,7 +33,7 @@ public RequestBody1() { public SerializedRequestBody serialize(SealedRequestBody requestBody) { ApplicationxwwwformurlencodedRequestBody requestBody0 = (ApplicationxwwwformurlencodedRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().data()); + return serialize(requestBody0.contentType(), requestBody0.body().getData()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java index 212be354622..fe847c5eb0d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java @@ -144,16 +144,12 @@ public ApplicationxwwwformurlencodedSchemaMapBuilder getBuilderAfterAdditionalPr public sealed interface ApplicationxwwwformurlencodedSchema1Boxed permits ApplicationxwwwformurlencodedSchema1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ApplicationxwwwformurlencodedSchema1BoxedMap implements ApplicationxwwwformurlencodedSchema1Boxed { - public final ApplicationxwwwformurlencodedSchemaMap data; - private ApplicationxwwwformurlencodedSchema1BoxedMap(ApplicationxwwwformurlencodedSchemaMap data) { - this.data = data; - } + public record ApplicationxwwwformurlencodedSchema1BoxedMap(ApplicationxwwwformurlencodedSchemaMap data) implements ApplicationxwwwformurlencodedSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PathParameters.java index 4a70ca78b84..09ab3cb5ab3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PathParameters.java @@ -119,16 +119,12 @@ public PathParametersMap0Builder getBuilderAfterPetId(Map instan public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class PathParameters1BoxedMap implements PathParameters1Boxed { - public final PathParametersMap data; - private PathParameters1BoxedMap(PathParametersMap data) { - this.data = data; - } + public record PathParameters1BoxedMap(PathParametersMap data) implements PathParameters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/RequestBody.java index 880f1b7db53..7f9e39423fb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/RequestBody.java @@ -33,7 +33,7 @@ public RequestBody1() { public SerializedRequestBody serialize(SealedRequestBody requestBody) { MultipartformdataRequestBody requestBody0 = (MultipartformdataRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().data()); + return serialize(requestBody0.contentType(), requestBody0.body().getData()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java index 0426a182293..f1370071d83 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -145,16 +145,12 @@ public MultipartformdataSchemaMapBuilder getBuilderAfterAdditionalProperty(Map inst public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class PathParameters1BoxedMap implements PathParameters1Boxed { - public final PathParametersMap data; - private PathParameters1BoxedMap(PathParametersMap data) { - this.data = data; - } + public record PathParameters1BoxedMap(PathParametersMap data) implements PathParameters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/PathParameters.java index ba7bcfec24d..59a4ba3a744 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/PathParameters.java @@ -119,16 +119,12 @@ public PathParametersMap0Builder getBuilderAfterOrderId(Map inst public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class PathParameters1BoxedMap implements PathParameters1Boxed { - public final PathParametersMap data; - private PathParameters1BoxedMap(PathParametersMap data) { - this.data = data; - } + public record PathParameters1BoxedMap(PathParametersMap data) implements PathParameters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/parameter0/Schema0.java index 7ae1b592763..d16f20d4a7e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/parameter0/Schema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/parameter0/Schema0.java @@ -20,16 +20,12 @@ public class Schema0 { public sealed interface Schema01Boxed permits Schema01BoxedNumber { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Schema01BoxedNumber implements Schema01Boxed { - public final Number data; - private Schema01BoxedNumber(Number data) { - this.data = data; - } + public record Schema01BoxedNumber(Number data) implements Schema01Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/RequestBody.java index 4391f619118..5b12358525a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/RequestBody.java @@ -33,7 +33,7 @@ public RequestBody1() { public SerializedRequestBody serialize(SealedRequestBody requestBody) { ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().data()); + return serialize(requestBody0.contentType(), requestBody0.body().getData()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/QueryParameters.java index cb9cb3ecfe6..b5328c73bde 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/QueryParameters.java @@ -156,16 +156,12 @@ public QueryParametersMap10Builder getBuilderAfterUsername(Map ins public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class PathParameters1BoxedMap implements PathParameters1Boxed { - public final PathParametersMap data; - private PathParameters1BoxedMap(PathParametersMap data) { - this.data = data; - } + public record PathParameters1BoxedMap(PathParametersMap data) implements PathParameters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/PathParameters.java index 30de9a2041b..b03a1859955 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/PathParameters.java @@ -101,16 +101,12 @@ public PathParametersMap0Builder getBuilderAfterUsername(Map ins public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class PathParameters1BoxedMap implements PathParameters1Boxed { - public final PathParametersMap data; - private PathParameters1BoxedMap(PathParametersMap data) { - this.data = data; - } + public record PathParameters1BoxedMap(PathParametersMap data) implements PathParameters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/PathParameters.java index 71367c7f693..b231eb6164f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/PathParameters.java @@ -101,16 +101,12 @@ public PathParametersMap0Builder getBuilderAfterUsername(Map ins public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class PathParameters1BoxedMap implements PathParameters1Boxed { - public final PathParametersMap data; - private PathParameters1BoxedMap(PathParametersMap data) { - this.data = data; - } + public record PathParameters1BoxedMap(PathParametersMap data) implements PathParameters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/RequestBody.java index 26409d872b6..74a4bca2645 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/RequestBody.java @@ -33,7 +33,7 @@ public RequestBody1() { public SerializedRequestBody serialize(SealedRequestBody requestBody) { ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().data()); + return serialize(requestBody0.contentType(), requestBody0.body().getData()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java index 2cfa0ef6ba2..820e29db646 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java @@ -40,53 +40,33 @@ public record AnyTypeJsonSchema1BoxedVoid(Void data) implements AnyTypeJsonSchem return data; } } - public static final class AnyTypeJsonSchema1BoxedBoolean implements AnyTypeJsonSchema1Boxed { - public final boolean data; - private AnyTypeJsonSchema1BoxedBoolean(boolean data) { - this.data = data; - } + public record AnyTypeJsonSchema1BoxedBoolean(boolean data) implements AnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyTypeJsonSchema1BoxedNumber implements AnyTypeJsonSchema1Boxed { - public final Number data; - private AnyTypeJsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record AnyTypeJsonSchema1BoxedNumber(Number data) implements AnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyTypeJsonSchema1BoxedString implements AnyTypeJsonSchema1Boxed { - public final String data; - private AnyTypeJsonSchema1BoxedString(String data) { - this.data = data; - } + public record AnyTypeJsonSchema1BoxedString(String data) implements AnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyTypeJsonSchema1BoxedList implements AnyTypeJsonSchema1Boxed { - public final FrozenList<@Nullable Object> data; - private AnyTypeJsonSchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record AnyTypeJsonSchema1BoxedList(FrozenList<@Nullable Object> data) implements AnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyTypeJsonSchema1BoxedMap implements AnyTypeJsonSchema1Boxed { - public final FrozenMap<@Nullable Object> data; - private AnyTypeJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record AnyTypeJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) implements AnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java index f98ea1300f1..4a83464adec 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java @@ -19,15 +19,11 @@ public class BooleanJsonSchema { public sealed interface BooleanJsonSchema1Boxed permits BooleanJsonSchema1BoxedBoolean { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class BooleanJsonSchema1BoxedBoolean implements BooleanJsonSchema1Boxed { - public final boolean data; - private BooleanJsonSchema1BoxedBoolean(boolean data) { - this.data = data; - } + public record BooleanJsonSchema1BoxedBoolean(boolean data) implements BooleanJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java index d3945ea53a6..c700352ded0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java @@ -20,15 +20,11 @@ public class DateJsonSchema { public sealed interface DateJsonSchema1Boxed permits DateJsonSchema1BoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class DateJsonSchema1BoxedString implements DateJsonSchema1Boxed { - public final String data; - private DateJsonSchema1BoxedString(String data) { - this.data = data; - } + public record DateJsonSchema1BoxedString(String data) implements DateJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java index 14397b104ff..ab6da41ef19 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java @@ -20,15 +20,11 @@ public class DateTimeJsonSchema { public sealed interfaceDateTimeJsonSchema1Boxed permits DateTimeJsonSchema1BoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class DateTimeJsonSchema1BoxedString implements DateTimeJsonSchema1Boxed { - public final String data; - private DateTimeJsonSchema1BoxedString(String data) { - this.data = data; - } + public record DateTimeJsonSchema1BoxedString(String data) implements DateTimeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java index 14e2f698308..a18cb3fb125 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java @@ -19,15 +19,11 @@ public class DecimalJsonSchema { public sealed interface DecimalJsonSchema1Boxed permits DecimalJsonSchema1BoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class DecimalJsonSchema1BoxedString implements DecimalJsonSchema1Boxed { - public final String data; - private DecimalJsonSchema1BoxedString(String data) { - this.data = data; - } + public record DecimalJsonSchema1BoxedString(String data) implements DecimalJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java index 1f3e97218ce..a63bbf3f2fa 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java @@ -19,15 +19,11 @@ public class DoubleJsonSchema { public sealed interface DoubleJsonSchema1Boxed permits DoubleJsonSchema1BoxedNumber { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class DoubleJsonSchema1BoxedNumber implements DoubleJsonSchema1Boxed { - public final Number data; - private DoubleJsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record DoubleJsonSchema1BoxedNumber(Number data) implements DoubleJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java index cf49e56e289..cd8eea856b0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java @@ -19,15 +19,11 @@ public class FloatJsonSchema { public sealed interface FloatJsonSchema1Boxed permits FloatJsonSchema1BoxedNumber { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class FloatJsonSchema1BoxedNumber implements FloatJsonSchema1Boxed { - public final Number data; - private FloatJsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record FloatJsonSchema1BoxedNumber(Number data) implements FloatJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java index c31511f9f33..8cee69701a4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java @@ -19,15 +19,11 @@ public class Int32JsonSchema { public sealed interface Int32JsonSchema1Boxed permits Int32JsonSchema1BoxedNumber { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Int32JsonSchema1BoxedNumber implements Int32JsonSchema1Boxed { - public final Number data; - private Int32JsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record Int32JsonSchema1BoxedNumber(Number data) implements Int32JsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java index c51dd1f94e5..9b3dabfe2d8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java @@ -19,15 +19,11 @@ public class Int64JsonSchema { public sealed interface Int64JsonSchema1Boxed permits Int64JsonSchema1BoxedNumber { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Int64JsonSchema1BoxedNumber implements Int64JsonSchema1Boxed { - public final Number data; - private Int64JsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record Int64JsonSchema1BoxedNumber(Number data) implements Int64JsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java index 4556a06da0a..1f293330202 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java @@ -19,15 +19,11 @@ public class IntJsonSchema { public sealed interface IntJsonSchema1Boxed permits IntJsonSchema1BoxedNumber { - Object data(); + @Nullable Object getData(); } - public static final class IntJsonSchema1BoxedNumber implements IntJsonSchema1Boxed { - public final Number data; - private IntJsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record IntJsonSchema1BoxedNumber(Number data) implements IntJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java index 38ab9e0cc42..4884437db5e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java @@ -22,15 +22,11 @@ public class ListJsonSchema { public sealed interface ListJsonSchema1Boxed permits ListJsonSchema1BoxedList { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ListJsonSchema1BoxedList implements ListJsonSchema1Boxed { - public final FrozenList<@Nullable Object> data; - private ListJsonSchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ListJsonSchema1BoxedList(FrozenList<@Nullable Object> data) implements ListJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java index ab2765a0862..5a667bb8564 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java @@ -23,15 +23,11 @@ public class MapJsonSchema { public sealed interface MapJsonSchema1Boxed permits MapJsonSchema1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class MapJsonSchema1BoxedMap implements MapJsonSchema1Boxed { - public final FrozenMap<@Nullable Object> data; - private MapJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record MapJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) implements MapJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java index e790fba11f2..c61203a749d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java @@ -32,65 +32,41 @@ public class NotAnyTypeJsonSchema { public sealed interface NotAnyTypeJsonSchema1Boxed permits NotAnyTypeJsonSchema1BoxedVoid, NotAnyTypeJsonSchema1BoxedBoolean, NotAnyTypeJsonSchema1BoxedNumber, NotAnyTypeJsonSchema1BoxedString, NotAnyTypeJsonSchema1BoxedList, NotAnyTypeJsonSchema1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class NotAnyTypeJsonSchema1BoxedVoid implements NotAnyTypeJsonSchema1Boxed { - public final Void data; - private NotAnyTypeJsonSchema1BoxedVoid(Void data) { - this.data = data; - } + public record NotAnyTypeJsonSchema1BoxedVoid(Void data) implements NotAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotAnyTypeJsonSchema1BoxedBoolean implements NotAnyTypeJsonSchema1Boxed { - public final boolean data; - private NotAnyTypeJsonSchema1BoxedBoolean(boolean data) { - this.data = data; - } + public record NotAnyTypeJsonSchema1BoxedBoolean(boolean data) implements NotAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotAnyTypeJsonSchema1BoxedNumber implements NotAnyTypeJsonSchema1Boxed { - public final Number data; - private NotAnyTypeJsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record NotAnyTypeJsonSchema1BoxedNumber(Number data) implements NotAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotAnyTypeJsonSchema1BoxedString implements NotAnyTypeJsonSchema1Boxed { - public final String data; - private NotAnyTypeJsonSchema1BoxedString(String data) { - this.data = data; - } + public record NotAnyTypeJsonSchema1BoxedString(String data) implements NotAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotAnyTypeJsonSchema1BoxedList implements NotAnyTypeJsonSchema1Boxed { - public final FrozenList<@Nullable Object> data; - private NotAnyTypeJsonSchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record NotAnyTypeJsonSchema1BoxedList(FrozenList<@Nullable Object> data) implements NotAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotAnyTypeJsonSchema1BoxedMap implements NotAnyTypeJsonSchema1Boxed { - public final FrozenMap<@Nullable Object> data; - private NotAnyTypeJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record NotAnyTypeJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) implements NotAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java index ef41ad1222a..ceb4402e3d1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java @@ -19,15 +19,11 @@ public class NullJsonSchema { public sealed interface NullJsonSchema1Boxed permits NullJsonSchema1BoxedVoid { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class NullJsonSchema1BoxedVoid implements NullJsonSchema1Boxed { - public final Void data; - private NullJsonSchema1BoxedVoid(Void data) { - this.data = data; - } + public record NullJsonSchema1BoxedVoid(Void data) implements NullJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java index 21df328050f..77d3d039a78 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java @@ -19,15 +19,11 @@ public class NumberJsonSchema { public sealed interface NumberJsonSchema1Boxed permits NumberJsonSchema1BoxedNumber { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class NumberJsonSchema1BoxedNumber implements NumberJsonSchema1Boxed { - public final Number data; - private NumberJsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record NumberJsonSchema1BoxedNumber(Number data) implements NumberJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java index c54e9bc6cb6..8a4e5536488 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java @@ -22,15 +22,11 @@ public class StringJsonSchema { public sealed interface StringJsonSchema1Boxed permits StringJsonSchema1BoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class StringJsonSchema1BoxedString implements StringJsonSchema1Boxed { - public final String data; - private StringJsonSchema1BoxedString(String data) { - this.data = data; - } + public record StringJsonSchema1BoxedString(String data) implements StringJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java index 808629740f5..5e6a2918a25 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java @@ -20,15 +20,11 @@ public class UuidJsonSchema { public sealed interface UuidJsonSchema1Boxed permits UuidJsonSchema1BoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class UuidJsonSchema1BoxedString implements UuidJsonSchema1Boxed { - public final String data; - private UuidJsonSchema1BoxedString(String data) { - this.data = data; - } + public record UuidJsonSchema1BoxedString(String data) implements UuidJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java index 03ed469d101..d27dc1ebe23 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java @@ -20,65 +20,41 @@ public class UnsetAnyTypeJsonSchema { public sealed interface UnsetAnyTypeJsonSchema1Boxed permits UnsetAnyTypeJsonSchema1BoxedVoid, UnsetAnyTypeJsonSchema1BoxedBoolean, UnsetAnyTypeJsonSchema1BoxedNumber, UnsetAnyTypeJsonSchema1BoxedString, UnsetAnyTypeJsonSchema1BoxedList, UnsetAnyTypeJsonSchema1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class UnsetAnyTypeJsonSchema1BoxedVoid implements UnsetAnyTypeJsonSchema1Boxed { - public final Void data; - private UnsetAnyTypeJsonSchema1BoxedVoid(Void data) { - this.data = data; - } + public record UnsetAnyTypeJsonSchema1BoxedVoid(Void data) implements UnsetAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnsetAnyTypeJsonSchema1BoxedBoolean implements UnsetAnyTypeJsonSchema1Boxed { - public final boolean data; - private UnsetAnyTypeJsonSchema1BoxedBoolean(boolean data) { - this.data = data; - } + public record UnsetAnyTypeJsonSchema1BoxedBoolean(boolean data) implements UnsetAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnsetAnyTypeJsonSchema1BoxedNumber implements UnsetAnyTypeJsonSchema1Boxed { - public final Number data; - private UnsetAnyTypeJsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record UnsetAnyTypeJsonSchema1BoxedNumber(Number data) implements UnsetAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnsetAnyTypeJsonSchema1BoxedString implements UnsetAnyTypeJsonSchema1Boxed { - public final String data; - private UnsetAnyTypeJsonSchema1BoxedString(String data) { - this.data = data; - } + public record UnsetAnyTypeJsonSchema1BoxedString(String data) implements UnsetAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnsetAnyTypeJsonSchema1BoxedList implements UnsetAnyTypeJsonSchema1Boxed { - public final FrozenList<@Nullable Object> data; - private UnsetAnyTypeJsonSchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record UnsetAnyTypeJsonSchema1BoxedList(FrozenList<@Nullable Object> data) implements UnsetAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnsetAnyTypeJsonSchema1BoxedMap implements UnsetAnyTypeJsonSchema1Boxed { - public final FrozenMap<@Nullable Object> data; - private UnsetAnyTypeJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record UnsetAnyTypeJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) implements UnsetAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Variables.java index 5b9bc47a17a..a9445a4c9a0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Variables.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Variables.java @@ -61,16 +61,12 @@ public String value() { public sealed interface ServerBoxed permits ServerBoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class ServerBoxedString implements ServerBoxed { - public final String data; - private ServerBoxedString(String data) { - this.data = data; - } + public record ServerBoxedString(String data) implements ServerBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -157,16 +153,12 @@ public String value() { public sealed interface PortBoxed permits PortBoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class PortBoxedString implements PortBoxed { - public final String data; - private PortBoxedString(String data) { - this.data = data; - } + public record PortBoxedString(String data) implements PortBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -363,16 +355,12 @@ public VariablesMap10Builder getBuilderAfterServer(Map instance) public sealed interface Variables1Boxed permits Variables1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Variables1BoxedMap implements Variables1Boxed { - public final VariablesMap data; - private Variables1BoxedMap(VariablesMap data) { - this.data = data; - } + public record Variables1BoxedMap(VariablesMap data) implements Variables1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Variables.java index 3b98e30c4ed..ae89b194e01 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Variables.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Variables.java @@ -60,16 +60,12 @@ public String value() { public sealed interface VersionBoxed permits VersionBoxedString { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class VersionBoxedString implements VersionBoxed { - public final String data; - private VersionBoxedString(String data) { - this.data = data; - } + public record VersionBoxedString(String data) implements VersionBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } @@ -206,16 +202,12 @@ public VariablesMap0Builder getBuilderAfterVersion(Map instance) public sealed interface Variables1Boxed permits Variables1BoxedMap { - @Nullable Object data(); + @Nullable Object getData(); } - public static final class Variables1BoxedMap implements Variables1Boxed { - public final VariablesMap data; - private Variables1BoxedMap(VariablesMap data) { - this.data = data; - } + public record Variables1BoxedMap(VariablesMap data) implements Variables1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java index a5cb7cd0519..d03a7f68fdb 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java @@ -31,13 +31,9 @@ public class ArrayTypeSchemaTest { new LinkedHashSet<>() ); - public static abstract sealed class ArrayWithItemsSchemaBoxed permits ArrayWithItemsSchemaBoxedList { + public sealed interface ArrayWithItemsSchemaBoxed permits ArrayWithItemsSchemaBoxedList { } - public static final class ArrayWithItemsSchemaBoxedList extends ArrayWithItemsSchemaBoxed { - public final FrozenList data; - private ArrayWithItemsSchemaBoxedList(FrozenList data) { - this.data = data; - } + public record ArrayWithItemsSchemaBoxedList(FrozenList data) implements ArrayWithItemsSchemaBoxed { } public static class ArrayWithItemsSchema extends JsonSchema implements ListSchemaValidator, ArrayWithItemsSchemaBoxedList> { @@ -112,13 +108,9 @@ public static ArrayWithOutputClsSchemaList of(List arg, SchemaConfigurat } } - public static abstract sealed class ArrayWithOutputClsSchemaBoxed permits ArrayWithOutputClsSchemaBoxedList { + public sealed interface ArrayWithOutputClsSchemaBoxed permits ArrayWithOutputClsSchemaBoxedList { } - public static final class ArrayWithOutputClsSchemaBoxedList extends ArrayWithOutputClsSchemaBoxed { - public final ArrayWithOutputClsSchemaList data; - private ArrayWithOutputClsSchemaBoxedList(ArrayWithOutputClsSchemaList data) { - this.data = data; - } + public record ArrayWithOutputClsSchemaBoxedList(ArrayWithOutputClsSchemaList data) implements ArrayWithOutputClsSchemaBoxed { } public static class ArrayWithOutputClsSchema extends JsonSchema implements ListSchemaValidator { public ArrayWithOutputClsSchema() { diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ObjectTypeSchemaTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ObjectTypeSchemaTest.java index acd412b00d1..a1d21cbf429 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ObjectTypeSchemaTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ObjectTypeSchemaTest.java @@ -33,13 +33,9 @@ public class ObjectTypeSchemaTest { new LinkedHashSet<>() ); - public static abstract sealed class ObjectWithPropsSchemaBoxed permits ObjectWithPropsSchemaBoxedMap { + public sealed interface ObjectWithPropsSchemaBoxed permits ObjectWithPropsSchemaBoxedMap { } - public static final class ObjectWithPropsSchemaBoxedMap extends ObjectWithPropsSchemaBoxed { - public final FrozenMap<@Nullable Object> data; - private ObjectWithPropsSchemaBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ObjectWithPropsSchemaBoxedMap(FrozenMap<@Nullable Object> data) implements ObjectWithPropsSchemaBoxed { } public static class ObjectWithPropsSchema extends JsonSchema implements MapSchemaValidator, ObjectWithPropsSchemaBoxedMap> { private static @Nullable ObjectWithPropsSchema instance = null; @@ -115,13 +111,9 @@ public Object getNewInstance(@Nullable Object arg, List pathToItem, Path } } - public static abstract sealed class ObjectWithAddpropsSchemaBoxed permits ObjectWithAddpropsSchemaBoxedMap { + public sealed interface ObjectWithAddpropsSchemaBoxed permits ObjectWithAddpropsSchemaBoxedMap { } - public static final class ObjectWithAddpropsSchemaBoxedMap extends ObjectWithAddpropsSchemaBoxed { - public final FrozenMap data; - private ObjectWithAddpropsSchemaBoxedMap(FrozenMap data) { - this.data = data; - } + public record ObjectWithAddpropsSchemaBoxedMap(FrozenMap data) implements ObjectWithAddpropsSchemaBoxed { } public static class ObjectWithAddpropsSchema extends JsonSchema implements MapSchemaValidator, ObjectWithAddpropsSchemaBoxedMap> { @@ -198,13 +190,9 @@ public Object getNewInstance(@Nullable Object arg, List pathToItem, Path } } - public static abstract sealed class ObjectWithPropsAndAddpropsSchemaBoxed permits ObjectWithPropsAndAddpropsSchemaBoxedMap { + public sealed interface ObjectWithPropsAndAddpropsSchemaBoxed permits ObjectWithPropsAndAddpropsSchemaBoxedMap { } - public static final class ObjectWithPropsAndAddpropsSchemaBoxedMap extends ObjectWithPropsAndAddpropsSchemaBoxed { - public final FrozenMap<@Nullable Object> data; - private ObjectWithPropsAndAddpropsSchemaBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ObjectWithPropsAndAddpropsSchemaBoxedMap(FrozenMap<@Nullable Object> data) implements ObjectWithPropsAndAddpropsSchemaBoxed { } public static class ObjectWithPropsAndAddpropsSchema extends JsonSchema implements MapSchemaValidator, ObjectWithPropsAndAddpropsSchemaBoxedMap> { private static @Nullable ObjectWithPropsAndAddpropsSchema instance = null; @@ -290,13 +278,9 @@ public static ObjectWithOutputTypeSchemaMap of(Map arg, SchemaCo } } - public static abstract sealed class ObjectWithOutputTypeSchemaBoxed permits ObjectWithOutputTypeSchemaBoxedMap { + public sealed interface ObjectWithOutputTypeSchemaBoxed permits ObjectWithOutputTypeSchemaBoxedMap { } - public static final class ObjectWithOutputTypeSchemaBoxedMap extends ObjectWithOutputTypeSchemaBoxed { - public final ObjectWithOutputTypeSchemaMap data; - private ObjectWithOutputTypeSchemaBoxedMap(ObjectWithOutputTypeSchemaMap data) { - this.data = data; - } + public record ObjectWithOutputTypeSchemaBoxedMap(ObjectWithOutputTypeSchemaMap data) implements ObjectWithOutputTypeSchemaBoxed { } public static class ObjectWithOutputTypeSchema extends JsonSchema implements MapSchemaValidator { private static @Nullable ObjectWithOutputTypeSchema instance = null; From 27d5654ef5b000c4b6665817855b8f1199a3f570 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Mon, 19 Feb 2024 21:42:06 -0800 Subject: [PATCH 08/50] Fixes typo --- .../client/schemas/DateTimeJsonSchema.java | 2 +- .../src/main/java/packagename/schemas/DateTimeJsonSchema.hbs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java index ab6da41ef19..05a2d674459 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java @@ -19,7 +19,7 @@ import java.util.Set; public class DateTimeJsonSchema { - public sealed interfaceDateTimeJsonSchema1Boxed permits DateTimeJsonSchema1BoxedString { + public sealed interface DateTimeJsonSchema1Boxed permits DateTimeJsonSchema1BoxedString { @Nullable Object getData(); } public record DateTimeJsonSchema1BoxedString(String data) implements DateTimeJsonSchema1Boxed { diff --git a/src/main/resources/java/src/main/java/packagename/schemas/DateTimeJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/DateTimeJsonSchema.hbs index 6cb3cc863b8..7b8bda66dfe 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/DateTimeJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/DateTimeJsonSchema.hbs @@ -19,7 +19,7 @@ import java.util.Objects; import java.util.Set; public class DateTimeJsonSchema { - public sealed interfaceDateTimeJsonSchema1Boxed permits DateTimeJsonSchema1BoxedString { + public sealed interface DateTimeJsonSchema1Boxed permits DateTimeJsonSchema1BoxedString { @Nullable Object getData(); } public record DateTimeJsonSchema1BoxedString(String data) implements DateTimeJsonSchema1Boxed { From eebf5ecd8e00ea1dcf4cd1d30a22a532cfd95a04 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Tue, 20 Feb 2024 10:44:15 -0800 Subject: [PATCH 09/50] Adds validateAndBox method to all generated schemas --- .../schemas/AdditionalPropertiesSchema.java | 36 ++++ .../components/schemas/AnyTypeAndFormat.java | 162 ++++++++++++++++++ .../components/schemas/AnyTypeNotString.java | 18 ++ .../client/components/schemas/Apple.java | 8 + .../client/components/schemas/Cat.java | 18 ++ .../client/components/schemas/ChildCat.java | 18 ++ .../client/components/schemas/ClassModel.java | 18 ++ .../schemas/ComplexQuadrilateral.java | 18 ++ ...posedAnyOfDifferentTypesNoValidations.java | 18 ++ .../schemas/ComposedOneOfDifferentTypes.java | 18 ++ .../client/components/schemas/Dog.java | 18 ++ .../schemas/EquilateralTriangle.java | 18 ++ .../client/components/schemas/Fruit.java | 18 ++ .../client/components/schemas/FruitReq.java | 18 ++ .../client/components/schemas/GmFruit.java | 18 ++ .../components/schemas/HealthCheckResult.java | 8 + .../components/schemas/IsoscelesTriangle.java | 18 ++ .../components/schemas/JSONPatchRequest.java | 18 ++ .../client/components/schemas/Mammal.java | 18 ++ .../client/components/schemas/Name.java | 18 ++ .../components/schemas/NullableClass.java | 121 +++++++++++++ .../components/schemas/NullableShape.java | 18 ++ .../components/schemas/NullableString.java | 8 + ...hAllOfWithReqTestPropFromUnsetAddProp.java | 18 ++ .../ObjectWithInlineCompositionProperty.java | 18 ++ .../client/components/schemas/Pig.java | 18 ++ .../components/schemas/Quadrilateral.java | 18 ++ .../schemas/QuadrilateralInterface.java | 18 ++ .../components/schemas/ReturnSchema.java | 18 ++ .../components/schemas/ScaleneTriangle.java | 18 ++ .../components/schemas/Schema200Response.java | 18 ++ .../client/components/schemas/Shape.java | 18 ++ .../components/schemas/ShapeOrNull.java | 18 ++ .../schemas/SimpleQuadrilateral.java | 18 ++ .../client/components/schemas/SomeObject.java | 18 ++ .../client/components/schemas/StringEnum.java | 8 + .../client/components/schemas/Triangle.java | 18 ++ .../components/schemas/TriangleInterface.java | 18 ++ .../client/components/schemas/User.java | 26 +++ .../post/parameters/parameter0/Schema0.java | 18 ++ .../post/parameters/parameter1/Schema1.java | 18 ++ .../ApplicationjsonSchema.java | 18 ++ .../MultipartformdataSchema.java | 18 ++ .../ApplicationjsonSchema.java | 18 ++ .../MultipartformdataSchema.java | 18 ++ .../schemas/SchemaClass/_validateAndBox.hbs | 67 ++++++++ 46 files changed, 1110 insertions(+) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesSchema.java index 43b48d913ca..ac1d9eb05ca 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesSchema.java @@ -502,6 +502,24 @@ public AdditionalProperties1BoxedList validateAndBox(List arg, SchemaConfigur public AdditionalProperties1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AdditionalProperties1BoxedMap(validate(arg, configuration)); } + public AdditionalProperties1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class Schema1Map extends FrozenMap<@Nullable Object> { @@ -957,6 +975,24 @@ public AdditionalProperties2BoxedList validateAndBox(List arg, SchemaConfigur public AdditionalProperties2BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AdditionalProperties2BoxedMap(validate(arg, configuration)); } + public AdditionalProperties2Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class Schema2Map extends FrozenMap<@Nullable Object> { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormat.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormat.java index e51500be2b7..74b013be266 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormat.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormat.java @@ -301,6 +301,24 @@ public UuidSchemaBoxedList validateAndBox(List arg, SchemaConfiguration confi public UuidSchemaBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UuidSchemaBoxedMap(validate(arg, configuration)); } + public UuidSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface DateBoxed permits DateBoxedVoid, DateBoxedBoolean, DateBoxedNumber, DateBoxedString, DateBoxedList, DateBoxedMap { @@ -567,6 +585,24 @@ public DateBoxedList validateAndBox(List arg, SchemaConfiguration configurati public DateBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DateBoxedMap(validate(arg, configuration)); } + public DateBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface DatetimeBoxed permits DatetimeBoxedVoid, DatetimeBoxedBoolean, DatetimeBoxedNumber, DatetimeBoxedString, DatetimeBoxedList, DatetimeBoxedMap { @@ -833,6 +869,24 @@ public DatetimeBoxedList validateAndBox(List arg, SchemaConfiguration configu public DatetimeBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DatetimeBoxedMap(validate(arg, configuration)); } + public DatetimeBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface NumberSchemaBoxed permits NumberSchemaBoxedVoid, NumberSchemaBoxedBoolean, NumberSchemaBoxedNumber, NumberSchemaBoxedString, NumberSchemaBoxedList, NumberSchemaBoxedMap { @@ -1099,6 +1153,24 @@ public NumberSchemaBoxedList validateAndBox(List arg, SchemaConfiguration con public NumberSchemaBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NumberSchemaBoxedMap(validate(arg, configuration)); } + public NumberSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface BinaryBoxed permits BinaryBoxedVoid, BinaryBoxedBoolean, BinaryBoxedNumber, BinaryBoxedString, BinaryBoxedList, BinaryBoxedMap { @@ -1365,6 +1437,24 @@ public BinaryBoxedList validateAndBox(List arg, SchemaConfiguration configura public BinaryBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new BinaryBoxedMap(validate(arg, configuration)); } + public BinaryBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface Int32Boxed permits Int32BoxedVoid, Int32BoxedBoolean, Int32BoxedNumber, Int32BoxedString, Int32BoxedList, Int32BoxedMap { @@ -1631,6 +1721,24 @@ public Int32BoxedList validateAndBox(List arg, SchemaConfiguration configurat public Int32BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Int32BoxedMap(validate(arg, configuration)); } + public Int32Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface Int64Boxed permits Int64BoxedVoid, Int64BoxedBoolean, Int64BoxedNumber, Int64BoxedString, Int64BoxedList, Int64BoxedMap { @@ -1897,6 +2005,24 @@ public Int64BoxedList validateAndBox(List arg, SchemaConfiguration configurat public Int64BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Int64BoxedMap(validate(arg, configuration)); } + public Int64Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface DoubleSchemaBoxed permits DoubleSchemaBoxedVoid, DoubleSchemaBoxedBoolean, DoubleSchemaBoxedNumber, DoubleSchemaBoxedString, DoubleSchemaBoxedList, DoubleSchemaBoxedMap { @@ -2163,6 +2289,24 @@ public DoubleSchemaBoxedList validateAndBox(List arg, SchemaConfiguration con public DoubleSchemaBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DoubleSchemaBoxedMap(validate(arg, configuration)); } + public DoubleSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface FloatSchemaBoxed permits FloatSchemaBoxedVoid, FloatSchemaBoxedBoolean, FloatSchemaBoxedNumber, FloatSchemaBoxedString, FloatSchemaBoxedList, FloatSchemaBoxedMap { @@ -2429,6 +2573,24 @@ public FloatSchemaBoxedList validateAndBox(List arg, SchemaConfiguration conf public FloatSchemaBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new FloatSchemaBoxedMap(validate(arg, configuration)); } + public FloatSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class AnyTypeAndFormatMap extends FrozenMap<@Nullable Object> { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeNotString.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeNotString.java index 731abe7405e..b047f96128e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeNotString.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeNotString.java @@ -317,5 +317,23 @@ public AnyTypeNotString1BoxedList validateAndBox(List arg, SchemaConfiguratio public AnyTypeNotString1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyTypeNotString1BoxedMap(validate(arg, configuration)); } + public AnyTypeNotString1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Apple.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Apple.java index 195cbb0778a..61a8b552ea2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Apple.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Apple.java @@ -385,5 +385,13 @@ public Apple1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuratio public Apple1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Apple1BoxedMap(validate(arg, configuration)); } + public Apple1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Cat.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Cat.java index 574352aeb12..58bd9194d88 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Cat.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Cat.java @@ -474,5 +474,23 @@ public Cat1BoxedList validateAndBox(List arg, SchemaConfiguration configurati public Cat1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Cat1BoxedMap(validate(arg, configuration)); } + public Cat1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ChildCat.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ChildCat.java index 871ba8f3495..ca4f11a591d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ChildCat.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ChildCat.java @@ -474,5 +474,23 @@ public ChildCat1BoxedList validateAndBox(List arg, SchemaConfiguration config public ChildCat1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ChildCat1BoxedMap(validate(arg, configuration)); } + public ChildCat1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ClassModel.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ClassModel.java index a498b40447a..eaf0845e118 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ClassModel.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ClassModel.java @@ -379,5 +379,23 @@ public ClassModel1BoxedList validateAndBox(List arg, SchemaConfiguration conf public ClassModel1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ClassModel1BoxedMap(validate(arg, configuration)); } + public ClassModel1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComplexQuadrilateral.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComplexQuadrilateral.java index 74aba1f2b9f..ff67eb9bd43 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComplexQuadrilateral.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComplexQuadrilateral.java @@ -553,5 +553,23 @@ public ComplexQuadrilateral1BoxedList validateAndBox(List arg, SchemaConfigur public ComplexQuadrilateral1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ComplexQuadrilateral1BoxedMap(validate(arg, configuration)); } + public ComplexQuadrilateral1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidations.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidations.java index 3bb5d8af4b9..43259ced108 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidations.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidations.java @@ -664,5 +664,23 @@ public ComposedAnyOfDifferentTypesNoValidations1BoxedList validateAndBox(List public ComposedAnyOfDifferentTypesNoValidations1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ComposedAnyOfDifferentTypesNoValidations1BoxedMap(validate(arg, configuration)); } + public ComposedAnyOfDifferentTypesNoValidations1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypes.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypes.java index b9f4f10b5d7..872a4145cd1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypes.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypes.java @@ -657,5 +657,23 @@ public ComposedOneOfDifferentTypes1BoxedList validateAndBox(List arg, SchemaC public ComposedOneOfDifferentTypes1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ComposedOneOfDifferentTypes1BoxedMap(validate(arg, configuration)); } + public ComposedOneOfDifferentTypes1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Dog.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Dog.java index 9b567cc1323..e665685969a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Dog.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Dog.java @@ -474,5 +474,23 @@ public Dog1BoxedList validateAndBox(List arg, SchemaConfiguration configurati public Dog1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Dog1BoxedMap(validate(arg, configuration)); } + public Dog1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EquilateralTriangle.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EquilateralTriangle.java index e09b1b3f636..d912e9aadea 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EquilateralTriangle.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EquilateralTriangle.java @@ -553,5 +553,23 @@ public EquilateralTriangle1BoxedList validateAndBox(List arg, SchemaConfigura public EquilateralTriangle1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new EquilateralTriangle1BoxedMap(validate(arg, configuration)); } + public EquilateralTriangle1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Fruit.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Fruit.java index 587eb51f427..7c463c3e71c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Fruit.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Fruit.java @@ -391,5 +391,23 @@ public Fruit1BoxedList validateAndBox(List arg, SchemaConfiguration configura public Fruit1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Fruit1BoxedMap(validate(arg, configuration)); } + public Fruit1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FruitReq.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FruitReq.java index 6f9f085a952..eee6a73df53 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FruitReq.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FruitReq.java @@ -321,5 +321,23 @@ public FruitReq1BoxedList validateAndBox(List arg, SchemaConfiguration config public FruitReq1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new FruitReq1BoxedMap(validate(arg, configuration)); } + public FruitReq1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GmFruit.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GmFruit.java index 66e4f0b53ee..8793046154a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GmFruit.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GmFruit.java @@ -391,5 +391,23 @@ public GmFruit1BoxedList validateAndBox(List arg, SchemaConfiguration configu public GmFruit1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new GmFruit1BoxedMap(validate(arg, configuration)); } + public GmFruit1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HealthCheckResult.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HealthCheckResult.java index 3fd45f70b3a..a70f37791eb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HealthCheckResult.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HealthCheckResult.java @@ -117,6 +117,14 @@ public NullableMessageBoxedVoid validateAndBox(Void arg, SchemaConfiguration con public NullableMessageBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NullableMessageBoxedString(validate(arg, configuration)); } + public NullableMessageBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class HealthCheckResultMap extends FrozenMap<@Nullable Object> { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IsoscelesTriangle.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IsoscelesTriangle.java index 5a6295c5b60..fa3f840f592 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IsoscelesTriangle.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IsoscelesTriangle.java @@ -553,5 +553,23 @@ public IsoscelesTriangle1BoxedList validateAndBox(List arg, SchemaConfigurati public IsoscelesTriangle1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new IsoscelesTriangle1BoxedMap(validate(arg, configuration)); } + public IsoscelesTriangle1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequest.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequest.java index 7c9cc7833de..967aa9a8a36 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequest.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequest.java @@ -303,6 +303,24 @@ public ItemsBoxedList validateAndBox(List arg, SchemaConfiguration configurat public ItemsBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ItemsBoxedMap(validate(arg, configuration)); } + public ItemsBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class JSONPatchRequestList extends FrozenList<@Nullable Object> { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Mammal.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Mammal.java index 4db4937ef24..67ce0e24a54 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Mammal.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Mammal.java @@ -309,5 +309,23 @@ public Mammal1BoxedList validateAndBox(List arg, SchemaConfiguration configur public Mammal1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Mammal1BoxedMap(validate(arg, configuration)); } + public Mammal1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Name.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Name.java index 06dca9ea2bd..3445fa832e7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Name.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Name.java @@ -490,5 +490,23 @@ public Name1BoxedList validateAndBox(List arg, SchemaConfiguration configurat public Name1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Name1BoxedMap(validate(arg, configuration)); } + public Name1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableClass.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableClass.java index d8d2cadd529..f9e4cf38e40 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableClass.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableClass.java @@ -147,6 +147,14 @@ public AdditionalProperties3BoxedVoid validateAndBox(Void arg, SchemaConfigurati public AdditionalProperties3BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AdditionalProperties3BoxedMap(validate(arg, configuration)); } + public AdditionalProperties3Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface IntegerPropBoxed permits IntegerPropBoxedVoid, IntegerPropBoxedNumber { @@ -256,6 +264,14 @@ public IntegerPropBoxedVoid validateAndBox(Void arg, SchemaConfiguration configu public IntegerPropBoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new IntegerPropBoxedNumber(validate(arg, configuration)); } + public IntegerPropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface NumberPropBoxed permits NumberPropBoxedVoid, NumberPropBoxedNumber { @@ -364,6 +380,14 @@ public NumberPropBoxedVoid validateAndBox(Void arg, SchemaConfiguration configur public NumberPropBoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NumberPropBoxedNumber(validate(arg, configuration)); } + public NumberPropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface BooleanPropBoxed permits BooleanPropBoxedVoid, BooleanPropBoxedBoolean { @@ -455,6 +479,15 @@ public BooleanPropBoxedVoid validateAndBox(Void arg, SchemaConfiguration configu public BooleanPropBoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new BooleanPropBoxedBoolean(validate(arg, configuration)); } + public BooleanPropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface StringPropBoxed permits StringPropBoxedVoid, StringPropBoxedString { @@ -544,6 +577,14 @@ public StringPropBoxedVoid validateAndBox(Void arg, SchemaConfiguration configur public StringPropBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new StringPropBoxedString(validate(arg, configuration)); } + public StringPropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface DatePropBoxed permits DatePropBoxedVoid, DatePropBoxedString { @@ -634,6 +675,14 @@ public DatePropBoxedVoid validateAndBox(Void arg, SchemaConfiguration configurat public DatePropBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DatePropBoxedString(validate(arg, configuration)); } + public DatePropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface DatetimePropBoxed permits DatetimePropBoxedVoid, DatetimePropBoxedString { @@ -724,6 +773,14 @@ public DatetimePropBoxedVoid validateAndBox(Void arg, SchemaConfiguration config public DatetimePropBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DatetimePropBoxedString(validate(arg, configuration)); } + public DatetimePropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class Items extends MapJsonSchema.MapJsonSchema1 { @@ -879,6 +936,14 @@ public ArrayNullablePropBoxedVoid validateAndBox(Void arg, SchemaConfiguration c public ArrayNullablePropBoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ArrayNullablePropBoxedList(validate(arg, configuration)); } + public ArrayNullablePropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface Items1Boxed permits Items1BoxedVoid, Items1BoxedMap { @@ -990,6 +1055,14 @@ public Items1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuratio public Items1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Items1BoxedMap(validate(arg, configuration)); } + public Items1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class ArrayAndItemsNullablePropList extends FrozenList<@Nullable FrozenMap> { @@ -1139,6 +1212,14 @@ public ArrayAndItemsNullablePropBoxedVoid validateAndBox(Void arg, SchemaConfigu public ArrayAndItemsNullablePropBoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ArrayAndItemsNullablePropBoxedList(validate(arg, configuration)); } + public ArrayAndItemsNullablePropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface Items2Boxed permits Items2BoxedVoid, Items2BoxedMap { @@ -1250,6 +1331,14 @@ public Items2BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuratio public Items2BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Items2BoxedMap(validate(arg, configuration)); } + public Items2Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class ArrayItemsNullableList extends FrozenList<@Nullable FrozenMap> { @@ -1545,6 +1634,14 @@ public ObjectNullablePropBoxedVoid validateAndBox(Void arg, SchemaConfiguration public ObjectNullablePropBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ObjectNullablePropBoxedMap(validate(arg, configuration)); } + public ObjectNullablePropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface AdditionalProperties1Boxed permits AdditionalProperties1BoxedVoid, AdditionalProperties1BoxedMap { @@ -1656,6 +1753,14 @@ public AdditionalProperties1BoxedVoid validateAndBox(Void arg, SchemaConfigurati public AdditionalProperties1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AdditionalProperties1BoxedMap(validate(arg, configuration)); } + public AdditionalProperties1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class ObjectAndItemsNullablePropMap extends FrozenMap<@Nullable FrozenMap> { @@ -1827,6 +1932,14 @@ public ObjectAndItemsNullablePropBoxedVoid validateAndBox(Void arg, SchemaConfig public ObjectAndItemsNullablePropBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ObjectAndItemsNullablePropBoxedMap(validate(arg, configuration)); } + public ObjectAndItemsNullablePropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface AdditionalProperties2Boxed permits AdditionalProperties2BoxedVoid, AdditionalProperties2BoxedMap { @@ -1938,6 +2051,14 @@ public AdditionalProperties2BoxedVoid validateAndBox(Void arg, SchemaConfigurati public AdditionalProperties2BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AdditionalProperties2BoxedMap(validate(arg, configuration)); } + public AdditionalProperties2Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class ObjectItemsNullableMap extends FrozenMap<@Nullable FrozenMap> { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableShape.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableShape.java index 8cade70e8a6..2c30837c7f7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableShape.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableShape.java @@ -323,5 +323,23 @@ public NullableShape1BoxedList validateAndBox(List arg, SchemaConfiguration c public NullableShape1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NullableShape1BoxedMap(validate(arg, configuration)); } + public NullableShape1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableString.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableString.java index 6e7a1f00ef0..879737aaf07 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableString.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableString.java @@ -114,5 +114,13 @@ public NullableString1BoxedVoid validateAndBox(Void arg, SchemaConfiguration con public NullableString1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NullableString1BoxedString(validate(arg, configuration)); } + public NullableString1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.java index c6ce56b41b6..bad8d81d9f7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.java @@ -556,5 +556,23 @@ public ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedList validateAndBox(L public ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedMap(validate(arg, configuration)); } + public ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionProperty.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionProperty.java index b2d264a236c..55a453cb63e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionProperty.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionProperty.java @@ -366,6 +366,24 @@ public SomePropBoxedList validateAndBox(List arg, SchemaConfiguration configu public SomePropBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new SomePropBoxedMap(validate(arg, configuration)); } + public SomePropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class ObjectWithInlineCompositionPropertyMap extends FrozenMap<@Nullable Object> { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pig.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pig.java index 6b895a2880d..59db379b5c6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pig.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pig.java @@ -308,5 +308,23 @@ public Pig1BoxedList validateAndBox(List arg, SchemaConfiguration configurati public Pig1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Pig1BoxedMap(validate(arg, configuration)); } + public Pig1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Quadrilateral.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Quadrilateral.java index 13e95092001..f7b0ed13188 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Quadrilateral.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Quadrilateral.java @@ -308,5 +308,23 @@ public Quadrilateral1BoxedList validateAndBox(List arg, SchemaConfiguration c public Quadrilateral1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Quadrilateral1BoxedMap(validate(arg, configuration)); } + public Quadrilateral1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterface.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterface.java index 6f61bc472a7..6ae021582e3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterface.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterface.java @@ -541,5 +541,23 @@ public QuadrilateralInterface1BoxedList validateAndBox(List arg, SchemaConfig public QuadrilateralInterface1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new QuadrilateralInterface1BoxedMap(validate(arg, configuration)); } + public QuadrilateralInterface1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReturnSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReturnSchema.java index 61d8af1d734..89dfbace220 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReturnSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReturnSchema.java @@ -385,5 +385,23 @@ public ReturnSchema1BoxedList validateAndBox(List arg, SchemaConfiguration co public ReturnSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ReturnSchema1BoxedMap(validate(arg, configuration)); } + public ReturnSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangle.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangle.java index c7183ce2021..1944fb43206 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangle.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangle.java @@ -553,5 +553,23 @@ public ScaleneTriangle1BoxedList validateAndBox(List arg, SchemaConfiguration public ScaleneTriangle1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ScaleneTriangle1BoxedMap(validate(arg, configuration)); } + public ScaleneTriangle1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Schema200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Schema200Response.java index 145b7341f81..f955a0903ff 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Schema200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Schema200Response.java @@ -424,5 +424,23 @@ public Schema200Response1BoxedList validateAndBox(List arg, SchemaConfigurati public Schema200Response1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema200Response1BoxedMap(validate(arg, configuration)); } + public Schema200Response1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Shape.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Shape.java index 8a39ed8c4a2..bc684e7c57a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Shape.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Shape.java @@ -308,5 +308,23 @@ public Shape1BoxedList validateAndBox(List arg, SchemaConfiguration configura public Shape1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Shape1BoxedMap(validate(arg, configuration)); } + public Shape1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ShapeOrNull.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ShapeOrNull.java index 880fda98938..afdcb1e2114 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ShapeOrNull.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ShapeOrNull.java @@ -323,5 +323,23 @@ public ShapeOrNull1BoxedList validateAndBox(List arg, SchemaConfiguration con public ShapeOrNull1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ShapeOrNull1BoxedMap(validate(arg, configuration)); } + public ShapeOrNull1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateral.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateral.java index db1b9184382..63673787ae2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateral.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateral.java @@ -553,5 +553,23 @@ public SimpleQuadrilateral1BoxedList validateAndBox(List arg, SchemaConfigura public SimpleQuadrilateral1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new SimpleQuadrilateral1BoxedMap(validate(arg, configuration)); } + public SimpleQuadrilateral1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SomeObject.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SomeObject.java index 70db78eaafc..527f1d8c022 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SomeObject.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SomeObject.java @@ -307,5 +307,23 @@ public SomeObject1BoxedList validateAndBox(List arg, SchemaConfiguration conf public SomeObject1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new SomeObject1BoxedMap(validate(arg, configuration)); } + public SomeObject1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringEnum.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringEnum.java index ec6122c4925..22319787fc7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringEnum.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringEnum.java @@ -167,5 +167,13 @@ public StringEnum1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configu public StringEnum1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new StringEnum1BoxedString(validate(arg, configuration)); } + public StringEnum1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Triangle.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Triangle.java index 486b12b0c0d..bb7c88c2a61 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Triangle.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Triangle.java @@ -309,5 +309,23 @@ public Triangle1BoxedList validateAndBox(List arg, SchemaConfiguration config public Triangle1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Triangle1BoxedMap(validate(arg, configuration)); } + public Triangle1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/TriangleInterface.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/TriangleInterface.java index f70541ba3a4..9ec46e7f88c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/TriangleInterface.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/TriangleInterface.java @@ -541,5 +541,23 @@ public TriangleInterface1BoxedList validateAndBox(List arg, SchemaConfigurati public TriangleInterface1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new TriangleInterface1BoxedMap(validate(arg, configuration)); } + public TriangleInterface1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/User.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/User.java index e082c7c0fac..1663911dc8b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/User.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/User.java @@ -251,6 +251,14 @@ public ObjectWithNoDeclaredPropsNullableBoxedVoid validateAndBox(Void arg, Schem public ObjectWithNoDeclaredPropsNullableBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ObjectWithNoDeclaredPropsNullableBoxedMap(validate(arg, configuration)); } + public ObjectWithNoDeclaredPropsNullableBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class AnyTypeProp extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { @@ -539,6 +547,24 @@ public AnyTypeExceptNullPropBoxedList validateAndBox(List arg, SchemaConfigur public AnyTypeExceptNullPropBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyTypeExceptNullPropBoxedMap(validate(arg, configuration)); } + public AnyTypeExceptNullPropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class AnyTypePropNullable extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.java index 00ca7c2044e..b809448b1b1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.java @@ -364,5 +364,23 @@ public Schema01BoxedList validateAndBox(List arg, SchemaConfiguration configu public Schema01BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema01BoxedMap(validate(arg, configuration)); } + public Schema01Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java index dcb1aca82e7..fe88b2bcf8f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java @@ -366,6 +366,24 @@ public SomeProp1BoxedList validateAndBox(List arg, SchemaConfiguration config public SomeProp1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new SomeProp1BoxedMap(validate(arg, configuration)); } + public SomeProp1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class SchemaMap1 extends FrozenMap<@Nullable Object> { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.java index d3838c80268..b25cb41efe6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.java @@ -364,5 +364,23 @@ public ApplicationjsonSchema1BoxedList validateAndBox(List arg, SchemaConfigu public ApplicationjsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ApplicationjsonSchema1BoxedMap(validate(arg, configuration)); } + public ApplicationjsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java index 68dd8cf179f..ce0d62ebd95 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -366,6 +366,24 @@ public MultipartformdataSomePropBoxedList validateAndBox(List arg, SchemaConf public MultipartformdataSomePropBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MultipartformdataSomePropBoxedMap(validate(arg, configuration)); } + public MultipartformdataSomePropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class MultipartformdataSchemaMap extends FrozenMap<@Nullable Object> { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java index d65b3ac3e1d..0628b53de68 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java @@ -364,5 +364,23 @@ public ApplicationjsonSchema1BoxedList validateAndBox(List arg, SchemaConfigu public ApplicationjsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ApplicationjsonSchema1BoxedMap(validate(arg, configuration)); } + public ApplicationjsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.java index 961c1629626..682ac451f33 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.java @@ -366,6 +366,24 @@ public MultipartformdataSomePropBoxedList validateAndBox(List arg, SchemaConf public MultipartformdataSomePropBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MultipartformdataSomePropBoxedMap(validate(arg, configuration)); } + public MultipartformdataSomePropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class MultipartformdataSchemaMap extends FrozenMap<@Nullable Object> { diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_validateAndBox.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_validateAndBox.hbs index 3776aeb7bbd..5fb13b0a8f6 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_validateAndBox.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_validateAndBox.hbs @@ -19,6 +19,55 @@ {{> src/main/java/packagename/components/schemas/SchemaClass/_validateAndBoxMap }} {{/eq}} {{/each}} +public {{jsonPathPiece.pascalCase}}Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + {{#each types}} + {{#if @first}} + {{#eq this "null"}} + if (arg == null) { + Void castArg = (Void) arg; + {{/eq}} + {{#eq this "boolean"}} + if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + {{/eq}} + {{#and (eq this "string") (neq ../format "binary") }} + if (arg instanceof String castArg) { + {{/and}} + {{#or (eq this "number") (eq this "integer")}} + if (arg instanceof Number castArg) { + {{/or}} + {{#eq this "array"}} + if (arg instanceof List castArg) { + {{/eq}} + {{#eq this "object"}} + if (arg instanceof Map castArg) { + {{/eq}} + {{else}} + {{#eq this "null"}} + } else if (arg == null) { + Void castArg = (Void) arg; + {{/eq}} + {{#eq this "boolean"}} + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + {{/eq}} + {{#and (eq this "string") (neq ../format "binary") }} + } else if (arg instanceof String castArg) { + {{/and}} + {{#or (eq this "number") (eq this "integer")}} + } else if (arg instanceof Number castArg) { + {{/or}} + {{#eq this "array"}} + } else if (arg instanceof List castArg) { + {{/eq}} + {{#eq this "object"}} + } else if (arg instanceof Map castArg) { + {{/eq}} + {{/if}} + return validateAndBox(castArg, configuration); + {{/each}} + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); +} {{else}} {{> src/main/java/packagename/components/schemas/SchemaClass/_validateAndBoxVoid }} {{> src/main/java/packagename/components/schemas/SchemaClass/_validateAndBoxBoolean }} @@ -26,4 +75,22 @@ {{> src/main/java/packagename/components/schemas/SchemaClass/_validateAndBoxString }} {{> src/main/java/packagename/components/schemas/SchemaClass/_validateAndBoxList }} {{> src/main/java/packagename/components/schemas/SchemaClass/_validateAndBoxMap }} +public {{jsonPathPiece.pascalCase}}Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); +} {{/if}} \ No newline at end of file From 8708c65d2cc1d9e504b8c7faf6057e31c0dcd8ee Mon Sep 17 00:00:00 2001 From: Justin Black Date: Tue, 20 Feb 2024 11:09:11 -0800 Subject: [PATCH 10/50] Adds validateAndBox to all schemas --- .../client/schemas/AnyTypeJsonSchema.java | 18 ++++++++++++++++++ .../client/schemas/BooleanJsonSchema.java | 7 +++++++ .../client/schemas/DateJsonSchema.java | 7 +++++++ .../client/schemas/DateTimeJsonSchema.java | 7 +++++++ .../client/schemas/DecimalJsonSchema.java | 7 +++++++ .../client/schemas/DoubleJsonSchema.java | 5 +++++ .../client/schemas/FloatJsonSchema.java | 5 +++++ .../client/schemas/Int32JsonSchema.java | 6 ++++++ .../client/schemas/Int64JsonSchema.java | 6 ++++++ .../client/schemas/IntJsonSchema.java | 6 ++++++ .../client/schemas/ListJsonSchema.java | 7 +++++++ .../client/schemas/MapJsonSchema.java | 7 +++++++ .../client/schemas/NotAnyTypeJsonSchema.java | 18 ++++++++++++++++++ .../client/schemas/NullJsonSchema.java | 7 +++++++ .../client/schemas/NumberJsonSchema.java | 5 +++++ .../client/schemas/StringJsonSchema.java | 7 +++++++ .../client/schemas/UuidJsonSchema.java | 7 +++++++ .../validation/UnsetAnyTypeJsonSchema.java | 18 ++++++++++++++++++ .../packagename/schemas/AnyTypeJsonSchema.hbs | 18 ++++++++++++++++++ .../packagename/schemas/BooleanJsonSchema.hbs | 7 +++++++ .../packagename/schemas/DateJsonSchema.hbs | 7 +++++++ .../packagename/schemas/DateTimeJsonSchema.hbs | 7 +++++++ .../packagename/schemas/DecimalJsonSchema.hbs | 7 +++++++ .../packagename/schemas/DoubleJsonSchema.hbs | 5 +++++ .../packagename/schemas/FloatJsonSchema.hbs | 5 +++++ .../packagename/schemas/Int32JsonSchema.hbs | 6 ++++++ .../packagename/schemas/Int64JsonSchema.hbs | 6 ++++++ .../java/packagename/schemas/IntJsonSchema.hbs | 6 ++++++ .../packagename/schemas/ListJsonSchema.hbs | 7 +++++++ .../java/packagename/schemas/MapJsonSchema.hbs | 7 +++++++ .../schemas/NotAnyTypeJsonSchema.hbs | 18 ++++++++++++++++++ .../packagename/schemas/NullJsonSchema.hbs | 7 +++++++ .../packagename/schemas/NumberJsonSchema.hbs | 5 +++++ .../packagename/schemas/StringJsonSchema.hbs | 7 +++++++ .../packagename/schemas/UuidJsonSchema.hbs | 7 +++++++ .../validation/UnsetAnyTypeJsonSchema.hbs | 18 ++++++++++++++++++ 36 files changed, 300 insertions(+) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java index 820e29db646..8d7b491c7a6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java @@ -287,5 +287,23 @@ public AnyTypeJsonSchema1BoxedList validateAndBox(List arg, SchemaConfigurati public AnyTypeJsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyTypeJsonSchema1BoxedMap(validate(arg, configuration)); } + public AnyTypeJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java index 4a83464adec..e7f622dc945 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java @@ -76,5 +76,12 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V public BooleanJsonSchema1BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new BooleanJsonSchema1BoxedBoolean(validate(arg, configuration)); } + public BooleanJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java index c700352ded0..4ff2b87a81b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java @@ -83,5 +83,12 @@ public String validate(LocalDate arg, SchemaConfiguration configuration) throws public DateJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DateJsonSchema1BoxedString(validate(arg, configuration)); } + + public DateJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java index 05a2d674459..565d5dc6f3a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java @@ -83,5 +83,12 @@ public String validate(ZonedDateTime arg, SchemaConfiguration configuration) thr public DateTimeJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DateTimeJsonSchema1BoxedString(validate(arg, configuration)); } + + public DateTimeJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java index a18cb3fb125..9de87659925 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java @@ -76,5 +76,12 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val public DecimalJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DecimalJsonSchema1BoxedString(validate(arg, configuration)); } + + public DecimalJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java index a63bbf3f2fa..29c69011c6c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java @@ -80,5 +80,10 @@ public double validate(double arg, SchemaConfiguration configuration) { public DoubleJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DoubleJsonSchema1BoxedNumber(validate(arg, configuration)); } + public DoubleJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java index cd8eea856b0..9a827eb0755 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java @@ -80,5 +80,10 @@ public float validate(float arg, SchemaConfiguration configuration) { public FloatJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new FloatJsonSchema1BoxedNumber(validate(arg, configuration)); } + public FloatJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java index 8cee69701a4..f4bf9b39c34 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java @@ -87,5 +87,11 @@ public float validate(float arg, SchemaConfiguration configuration) throws Valid public Int32JsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Int32JsonSchema1BoxedNumber(validate(arg, configuration)); } + + public Int32JsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java index 9b3dabfe2d8..4c21d563d77 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java @@ -97,5 +97,11 @@ public double validate(double arg, SchemaConfiguration configuration) throws Val public Int64JsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Int64JsonSchema1BoxedNumber(validate(arg, configuration)); } + + public Int64JsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java index 1f293330202..99e5cd24acd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java @@ -97,5 +97,11 @@ public double validate(double arg, SchemaConfiguration configuration) throws Val public IntJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new IntJsonSchema1BoxedNumber(validate(arg, configuration)); } + + public IntJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java index 4884437db5e..e58d6a166e8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java @@ -97,5 +97,12 @@ public static ListJsonSchema1 getInstance() { public ListJsonSchema1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ListJsonSchema1BoxedList(validate(arg, configuration)); } + + public ListJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java index 5a667bb8564..bb2a3fd718a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java @@ -101,5 +101,12 @@ public static MapJsonSchema1 getInstance() { public MapJsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MapJsonSchema1BoxedMap(validate(arg, configuration)); } + + public MapJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java index c61203a749d..333620c81c1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java @@ -289,5 +289,23 @@ public NotAnyTypeJsonSchema1BoxedList validateAndBox(List arg, SchemaConfigur public NotAnyTypeJsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NotAnyTypeJsonSchema1BoxedMap(validate(arg, configuration)); } + public NotAnyTypeJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java index ceb4402e3d1..5051ed4b972 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java @@ -75,5 +75,12 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat public NullJsonSchema1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NullJsonSchema1BoxedVoid(validate(arg, configuration)); } + public NullJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java index 77d3d039a78..f1330af46ea 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java @@ -96,5 +96,10 @@ public double validate(double arg, SchemaConfiguration configuration) { public NumberJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NumberJsonSchema1BoxedNumber(validate(arg, configuration)); } + public NumberJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java index 8a4e5536488..34e9cd3cf4d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java @@ -95,5 +95,12 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid public StringJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new StringJsonSchema1BoxedString(validate(arg, configuration)); } + + public StringJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java index 5e6a2918a25..b4c8ca15f02 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java @@ -83,5 +83,12 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid public UuidJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UuidJsonSchema1BoxedString(validate(arg, configuration)); } + + public UuidJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java index d27dc1ebe23..50933bf2645 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java @@ -274,5 +274,23 @@ public UnsetAnyTypeJsonSchema1BoxedList validateAndBox(List arg, SchemaConfig public UnsetAnyTypeJsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnsetAnyTypeJsonSchema1BoxedMap(validate(arg, configuration)); } + public UnsetAnyTypeJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/src/main/resources/java/src/main/java/packagename/schemas/AnyTypeJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/AnyTypeJsonSchema.hbs index 76a3c3ff9c5..d4cf3ee9c24 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/AnyTypeJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/AnyTypeJsonSchema.hbs @@ -287,5 +287,23 @@ public class AnyTypeJsonSchema { public AnyTypeJsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyTypeJsonSchema1BoxedMap(validate(arg, configuration)); } + public AnyTypeJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/src/main/resources/java/src/main/java/packagename/schemas/BooleanJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/BooleanJsonSchema.hbs index 055f18de6eb..55d9fb83873 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/BooleanJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/BooleanJsonSchema.hbs @@ -76,5 +76,12 @@ public class BooleanJsonSchema { public BooleanJsonSchema1BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new BooleanJsonSchema1BoxedBoolean(validate(arg, configuration)); } + public BooleanJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/src/main/resources/java/src/main/java/packagename/schemas/DateJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/DateJsonSchema.hbs index ffe4d57462a..0531ad25fa5 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/DateJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/DateJsonSchema.hbs @@ -83,5 +83,12 @@ public class DateJsonSchema { public DateJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DateJsonSchema1BoxedString(validate(arg, configuration)); } + + public DateJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/src/main/resources/java/src/main/java/packagename/schemas/DateTimeJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/DateTimeJsonSchema.hbs index 7b8bda66dfe..e45b49a71d5 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/DateTimeJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/DateTimeJsonSchema.hbs @@ -83,5 +83,12 @@ public class DateTimeJsonSchema { public DateTimeJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DateTimeJsonSchema1BoxedString(validate(arg, configuration)); } + + public DateTimeJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/src/main/resources/java/src/main/java/packagename/schemas/DecimalJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/DecimalJsonSchema.hbs index 81045e3fe9a..8e4987d8c51 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/DecimalJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/DecimalJsonSchema.hbs @@ -76,5 +76,12 @@ public class DecimalJsonSchema { public DecimalJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DecimalJsonSchema1BoxedString(validate(arg, configuration)); } + + public DecimalJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/src/main/resources/java/src/main/java/packagename/schemas/DoubleJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/DoubleJsonSchema.hbs index f3645ede2f2..351f2c6a81c 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/DoubleJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/DoubleJsonSchema.hbs @@ -80,5 +80,10 @@ public class DoubleJsonSchema { public DoubleJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DoubleJsonSchema1BoxedNumber(validate(arg, configuration)); } + public DoubleJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/src/main/resources/java/src/main/java/packagename/schemas/FloatJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/FloatJsonSchema.hbs index 75d0983b989..ce0f95b2ebf 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/FloatJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/FloatJsonSchema.hbs @@ -80,5 +80,10 @@ public class FloatJsonSchema { public FloatJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new FloatJsonSchema1BoxedNumber(validate(arg, configuration)); } + public FloatJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/Int32JsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/Int32JsonSchema.hbs index 0112ce362b2..1146ac0e5cd 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/Int32JsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/Int32JsonSchema.hbs @@ -87,5 +87,11 @@ public class Int32JsonSchema { public Int32JsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Int32JsonSchema1BoxedNumber(validate(arg, configuration)); } + + public Int32JsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/src/main/resources/java/src/main/java/packagename/schemas/Int64JsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/Int64JsonSchema.hbs index 2535b0e884c..988ad82c1d1 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/Int64JsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/Int64JsonSchema.hbs @@ -97,5 +97,11 @@ public class Int64JsonSchema { public Int64JsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Int64JsonSchema1BoxedNumber(validate(arg, configuration)); } + + public Int64JsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/src/main/resources/java/src/main/java/packagename/schemas/IntJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/IntJsonSchema.hbs index 05986e9aedd..016ded66765 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/IntJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/IntJsonSchema.hbs @@ -97,5 +97,11 @@ public class IntJsonSchema { public IntJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new IntJsonSchema1BoxedNumber(validate(arg, configuration)); } + + public IntJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/src/main/resources/java/src/main/java/packagename/schemas/ListJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/ListJsonSchema.hbs index cd639cad0cb..0338635965f 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/ListJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/ListJsonSchema.hbs @@ -97,5 +97,12 @@ public class ListJsonSchema { public ListJsonSchema1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ListJsonSchema1BoxedList(validate(arg, configuration)); } + + public ListJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/MapJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/MapJsonSchema.hbs index 3ee35bbee8f..71c56a471e7 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/MapJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/MapJsonSchema.hbs @@ -101,5 +101,12 @@ public class MapJsonSchema { public MapJsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MapJsonSchema1BoxedMap(validate(arg, configuration)); } + + public MapJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/NotAnyTypeJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/NotAnyTypeJsonSchema.hbs index d16d8fa4030..3050b4a2766 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/NotAnyTypeJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/NotAnyTypeJsonSchema.hbs @@ -289,5 +289,23 @@ public class NotAnyTypeJsonSchema { public NotAnyTypeJsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NotAnyTypeJsonSchema1BoxedMap(validate(arg, configuration)); } + public NotAnyTypeJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/src/main/resources/java/src/main/java/packagename/schemas/NullJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/NullJsonSchema.hbs index 6e7795f8e42..488996cdb73 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/NullJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/NullJsonSchema.hbs @@ -75,5 +75,12 @@ public class NullJsonSchema { public NullJsonSchema1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NullJsonSchema1BoxedVoid(validate(arg, configuration)); } + public NullJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/NumberJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/NumberJsonSchema.hbs index 281d887daa0..65ee2cd633d 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/NumberJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/NumberJsonSchema.hbs @@ -96,5 +96,10 @@ public class NumberJsonSchema { public NumberJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NumberJsonSchema1BoxedNumber(validate(arg, configuration)); } + public NumberJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/src/main/resources/java/src/main/java/packagename/schemas/StringJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/StringJsonSchema.hbs index 56b32a27de9..08b456bd225 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/StringJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/StringJsonSchema.hbs @@ -95,5 +95,12 @@ public class StringJsonSchema { public StringJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new StringJsonSchema1BoxedString(validate(arg, configuration)); } + + public StringJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/UuidJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/UuidJsonSchema.hbs index a7379d312ec..a1b05d8d6d7 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/UuidJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/UuidJsonSchema.hbs @@ -83,5 +83,12 @@ public class UuidJsonSchema { public UuidJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UuidJsonSchema1BoxedString(validate(arg, configuration)); } + + public UuidJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/src/main/resources/java/src/main/java/packagename/schemas/validation/UnsetAnyTypeJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/validation/UnsetAnyTypeJsonSchema.hbs index a891258c3ff..b7811868825 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/validation/UnsetAnyTypeJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/validation/UnsetAnyTypeJsonSchema.hbs @@ -274,5 +274,23 @@ public class UnsetAnyTypeJsonSchema { public UnsetAnyTypeJsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnsetAnyTypeJsonSchema1BoxedMap(validate(arg, configuration)); } + public UnsetAnyTypeJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file From 8bd875405fa4ef4ebdb0931897864eb2c92a9b9a Mon Sep 17 00:00:00 2001 From: Justin Black Date: Tue, 20 Feb 2024 12:58:48 -0800 Subject: [PATCH 11/50] Fixes json deserialization of numbers into doubles and longs --- .../client/components/schemas/Apple.java | 1 + .../components/schemas/HealthCheckResult.java | 1 + .../components/schemas/NullableClass.java | 15 ++ .../components/schemas/NullableString.java | 1 + .../client/components/schemas/StringEnum.java | 1 + .../client/components/schemas/User.java | 1 + .../requestbody/RequestBodySerializer.java | 3 +- .../client/response/ResponseDeserializer.java | 8 +- .../client/schemas/DoubleJsonSchema.java | 1 + .../client/schemas/FloatJsonSchema.java | 1 + .../client/schemas/Int32JsonSchema.java | 1 + .../client/schemas/Int64JsonSchema.java | 1 + .../client/schemas/IntJsonSchema.java | 1 + .../client/schemas/NumberJsonSchema.java | 1 + .../response/ResponseDeserializerTest.java | 144 +++++++---- .../generators/JavaClientGenerator.java | 4 + .../schemas/SchemaClass/_validateAndBox.hbs | 1 + .../requestbody/RequestBodySerializer.hbs | 10 +- .../packagename/schemas/DoubleJsonSchema.hbs | 1 + .../packagename/schemas/FloatJsonSchema.hbs | 1 + .../packagename/schemas/Int32JsonSchema.hbs | 1 + .../packagename/schemas/Int64JsonSchema.hbs | 1 + .../packagename/schemas/IntJsonSchema.hbs | 1 + .../packagename/schemas/NumberJsonSchema.hbs | 1 + .../response/ResponseDeserializerTest.hbs | 227 ++++++++++++++++++ 25 files changed, 379 insertions(+), 50 deletions(-) create mode 100644 src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Apple.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Apple.java index 61a8b552ea2..efac8325ebe 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Apple.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Apple.java @@ -391,6 +391,7 @@ public Apple1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration conf return validateAndBox(castArg, configuration); } else if (arg instanceof Map castArg) { return validateAndBox(castArg, configuration); + } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HealthCheckResult.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HealthCheckResult.java index a70f37791eb..a9448985070 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HealthCheckResult.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HealthCheckResult.java @@ -123,6 +123,7 @@ public NullableMessageBoxed validateAndBox(@Nullable Object arg, SchemaConfigura return validateAndBox(castArg, configuration); } else if (arg instanceof String castArg) { return validateAndBox(castArg, configuration); + } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableClass.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableClass.java index f9e4cf38e40..e19fccbdc3d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableClass.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableClass.java @@ -153,6 +153,7 @@ public AdditionalProperties3Boxed validateAndBox(@Nullable Object arg, SchemaCon return validateAndBox(castArg, configuration); } else if (arg instanceof Map castArg) { return validateAndBox(castArg, configuration); + } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } @@ -270,6 +271,7 @@ public IntegerPropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration return validateAndBox(castArg, configuration); } else if (arg instanceof Number castArg) { return validateAndBox(castArg, configuration); + } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } @@ -386,6 +388,7 @@ public NumberPropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration return validateAndBox(castArg, configuration); } else if (arg instanceof Number castArg) { return validateAndBox(castArg, configuration); + } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } @@ -486,6 +489,7 @@ public BooleanPropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration } else if (arg instanceof Boolean booleanArg) { boolean castArg = booleanArg; return validateAndBox(castArg, configuration); + } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } @@ -583,6 +587,7 @@ public StringPropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration return validateAndBox(castArg, configuration); } else if (arg instanceof String castArg) { return validateAndBox(castArg, configuration); + } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } @@ -681,6 +686,7 @@ public DatePropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration co return validateAndBox(castArg, configuration); } else if (arg instanceof String castArg) { return validateAndBox(castArg, configuration); + } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } @@ -779,6 +785,7 @@ public DatetimePropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguratio return validateAndBox(castArg, configuration); } else if (arg instanceof String castArg) { return validateAndBox(castArg, configuration); + } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } @@ -942,6 +949,7 @@ public ArrayNullablePropBoxed validateAndBox(@Nullable Object arg, SchemaConfigu return validateAndBox(castArg, configuration); } else if (arg instanceof List castArg) { return validateAndBox(castArg, configuration); + } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } @@ -1061,6 +1069,7 @@ public Items1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration conf return validateAndBox(castArg, configuration); } else if (arg instanceof Map castArg) { return validateAndBox(castArg, configuration); + } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } @@ -1218,6 +1227,7 @@ public ArrayAndItemsNullablePropBoxed validateAndBox(@Nullable Object arg, Schem return validateAndBox(castArg, configuration); } else if (arg instanceof List castArg) { return validateAndBox(castArg, configuration); + } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } @@ -1337,6 +1347,7 @@ public Items2Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration conf return validateAndBox(castArg, configuration); } else if (arg instanceof Map castArg) { return validateAndBox(castArg, configuration); + } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } @@ -1640,6 +1651,7 @@ public ObjectNullablePropBoxed validateAndBox(@Nullable Object arg, SchemaConfig return validateAndBox(castArg, configuration); } else if (arg instanceof Map castArg) { return validateAndBox(castArg, configuration); + } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } @@ -1759,6 +1771,7 @@ public AdditionalProperties1Boxed validateAndBox(@Nullable Object arg, SchemaCon return validateAndBox(castArg, configuration); } else if (arg instanceof Map castArg) { return validateAndBox(castArg, configuration); + } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } @@ -1938,6 +1951,7 @@ public ObjectAndItemsNullablePropBoxed validateAndBox(@Nullable Object arg, Sche return validateAndBox(castArg, configuration); } else if (arg instanceof Map castArg) { return validateAndBox(castArg, configuration); + } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } @@ -2057,6 +2071,7 @@ public AdditionalProperties2Boxed validateAndBox(@Nullable Object arg, SchemaCon return validateAndBox(castArg, configuration); } else if (arg instanceof Map castArg) { return validateAndBox(castArg, configuration); + } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableString.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableString.java index 879737aaf07..88f0b44411c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableString.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableString.java @@ -120,6 +120,7 @@ public NullableString1Boxed validateAndBox(@Nullable Object arg, SchemaConfigura return validateAndBox(castArg, configuration); } else if (arg instanceof String castArg) { return validateAndBox(castArg, configuration); + } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringEnum.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringEnum.java index 22319787fc7..e2261968321 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringEnum.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringEnum.java @@ -173,6 +173,7 @@ public StringEnum1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration return validateAndBox(castArg, configuration); } else if (arg instanceof String castArg) { return validateAndBox(castArg, configuration); + } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/User.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/User.java index 1663911dc8b..4d1cafc2684 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/User.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/User.java @@ -257,6 +257,7 @@ public ObjectWithNoDeclaredPropsNullableBoxed validateAndBox(@Nullable Object ar return validateAndBox(castArg, configuration); } else if (arg instanceof Map castArg) { return validateAndBox(castArg, configuration); + } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java index 3fdbcdbfde4..2fd0573cd3d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java @@ -5,6 +5,7 @@ import java.net.http.HttpRequest; import org.checkerframework.checker.nullness.qual.Nullable; import com.google.gson.Gson; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; import java.util.Map; import java.util.regex.Pattern; @@ -40,7 +41,7 @@ private SerializedRequestBody serializeTextPlain(String contentType, @Nullable O if (body instanceof String stringBody) { return new SerializedRequestBody(contentType, HttpRequest.BodyPublishers.ofString(stringBody)); } - throw new RuntimeException("Invalid non-string data type of "+body.getClass().getName()+" for text/plain body serialization"); + throw new RuntimeException("Invalid non-string data type of "+ JsonSchema.getClass(body) +" for text/plain body serialization"); } protected SerializedRequestBody serialize(String contentType, @Nullable Object body) { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java index 96de973b43c..4cbb5bb6a5e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java @@ -7,6 +7,9 @@ import java.util.Optional; import java.util.regex.Pattern; +import com.google.gson.GsonBuilder; +import com.google.gson.ToNumberPolicy; +import com.google.gson.ToNumberStrategy; import org.checkerframework.checker.nullness.qual.Nullable; import com.google.gson.Gson; @@ -19,7 +22,10 @@ public abstract class ResponseDeserializer { private static final Pattern jsonContentTypePattern = Pattern.compile( "application/[^+]*[+]?(json);?.*" ); - private static final Gson gson = new Gson(); + private static final Gson gson = new GsonBuilder() + .setObjectToNumberStrategy(ToNumberPolicy.LONG_OR_DOUBLE) + .setNumberToNumberStrategy(ToNumberPolicy.LONG_OR_DOUBLE) + .create(); protected static final String textPlainContentType = "text/plain"; public ResponseDeserializer(@Nullable Map> content) { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java index 29c69011c6c..d043bc6923b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java @@ -83,6 +83,7 @@ public DoubleJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfigurati public DoubleJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof Number castArg) { return validateAndBox(castArg, configuration); + } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java index 9a827eb0755..0e6204d6f6a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java @@ -83,6 +83,7 @@ public FloatJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguratio public FloatJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof Number castArg) { return validateAndBox(castArg, configuration); + } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java index f4bf9b39c34..f7f37bc3ce1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java @@ -91,6 +91,7 @@ public Int32JsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguratio public Int32JsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof Number castArg) { return validateAndBox(castArg, configuration); + } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java index 4c21d563d77..234bc1355c8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java @@ -101,6 +101,7 @@ public Int64JsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguratio public Int64JsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof Number castArg) { return validateAndBox(castArg, configuration); + } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java index 99e5cd24acd..2ff327f55ba 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java @@ -101,6 +101,7 @@ public IntJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration public IntJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof Number castArg) { return validateAndBox(castArg, configuration); + } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java index f1330af46ea..df7b9894039 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java @@ -99,6 +99,7 @@ public NumberJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfigurati public NumberJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof Number castArg) { return validateAndBox(castArg, configuration); + } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java index 2f0eae98ee4..85918009931 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java @@ -1,6 +1,8 @@ package org.openapijsonschematools.client.response; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.ToNumberPolicy; import org.checkerframework.checker.nullness.qual.Nullable; import org.junit.Assert; import org.junit.Test; @@ -23,6 +25,10 @@ import java.util.function.BiPredicate; public class ResponseDeserializerTest { + private static final Gson gson = new GsonBuilder() + .setObjectToNumberStrategy(ToNumberPolicy.LONG_OR_DOUBLE) + .setNumberToNumberStrategy(ToNumberPolicy.LONG_OR_DOUBLE) + .create(); public sealed interface SealedResponseBody permits ApplicationjsonBody, TextplainBody { } public record ApplicationjsonBody(AnyTypeJsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } @@ -52,10 +58,7 @@ public MyResponseDeserializer() { public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { if (contentTypeIsJson(contentType)) { @Nullable Object bodyData = deserializeJson(body); - if (!(bodyData instanceof Number numberBodyData)) { - throw new RuntimeException("invalid type"); - } - var deserializedBody = AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(numberBodyData, configuration); + var deserializedBody = AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(bodyData, configuration); return new ApplicationjsonBody(deserializedBody); } else { String bodyData = deserializeTextPlain(body); @@ -75,9 +78,7 @@ public static class BytesHttpResponse implements HttpResponse { private final HttpHeaders headers; public BytesHttpResponse(byte[] body, String contentType) { this.body = body; - BiPredicate headerFilter = (key, val) -> { - return true; - }; + BiPredicate headerFilter = (key, val) -> true; this.headers = HttpHeaders.of(Map.of("Content-Type", List.of(contentType)), headerFilter); } @@ -123,8 +124,58 @@ public HttpClient.Version version() { } @Test - public void testSerializeApplicationJson() { - Gson gson = new Gson(); + public void testDeserializeApplicationJsonNull() { + var deserializer = new MyResponseDeserializer(); + byte[] bodyBytes = gson.toJson(null).getBytes(StandardCharsets.UTF_8); + BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); + SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + ApiResponse apiResponse = deserializer.deserialize(response, configuration); + Assert.assertEquals(response, apiResponse.response()); + if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { + throw new RuntimeException("body must be type ApplicationjsonBody"); + } + if (!(jsonBody.body() instanceof AnyTypeJsonSchema.AnyTypeJsonSchema1BoxedVoid boxedVoid)) { + throw new RuntimeException("body must be type AnyTypeJsonSchema1BoxedVoid"); + } + Assert.assertNull(boxedVoid.data()); + } + + @Test + public void testDeserializeApplicationJsonTrue() { + var deserializer = new MyResponseDeserializer(); + byte[] bodyBytes = gson.toJson(true).getBytes(StandardCharsets.UTF_8); + BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); + SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + ApiResponse apiResponse = deserializer.deserialize(response, configuration); + Assert.assertEquals(response, apiResponse.response()); + if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { + throw new RuntimeException("body must be type ApplicationjsonBody"); + } + if (!(jsonBody.body() instanceof AnyTypeJsonSchema.AnyTypeJsonSchema1BoxedBoolean boxedBoolean)) { + throw new RuntimeException("body must be type AnyTypeJsonSchema1BoxedBoolean"); + } + Assert.assertTrue(boxedBoolean.data()); + } + + @Test + public void testDeserializeApplicationJsonFalse() { + var deserializer = new MyResponseDeserializer(); + byte[] bodyBytes = gson.toJson(false).getBytes(StandardCharsets.UTF_8); + BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); + SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + ApiResponse apiResponse = deserializer.deserialize(response, configuration); + Assert.assertEquals(response, apiResponse.response()); + if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { + throw new RuntimeException("body must be type ApplicationjsonBody"); + } + if (!(jsonBody.body() instanceof AnyTypeJsonSchema.AnyTypeJsonSchema1BoxedBoolean boxedBoolean)) { + throw new RuntimeException("body must be type AnyTypeJsonSchema1BoxedBoolean"); + } + Assert.assertFalse(boxedBoolean.data()); + } + + @Test + public void testDeserializeApplicationJsonInt() { var deserializer = new MyResponseDeserializer(); byte[] bodyBytes = gson.toJson(1).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); @@ -134,42 +185,43 @@ public void testSerializeApplicationJson() { if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { throw new RuntimeException("body must be type ApplicationjsonBody"); } - Assert.assertTrue(jsonBody.body() instanceof AnyTypeJsonSchema.AnyTypeJsonSchema1BoxedNumber); -// ((ApplicationjsonBody) deserializedBody).body -// Assert.assertEquals("application/json", requestBody.contentType); -// jsonBody = getJsonBody(requestBody); -// Assert.assertEquals(jsonBody, "1"); -// -// requestBody = serializer.serialize(new RequestBodySerializerTest.ApplicationjsonRequestBody(3.14)); -// jsonBody = getJsonBody(requestBody); -// Assert.assertEquals(jsonBody, "3.14"); -// -// requestBody = serializer.serialize(new RequestBodySerializerTest.ApplicationjsonRequestBody(null)); -// jsonBody = getJsonBody(requestBody); -// Assert.assertEquals(jsonBody, "null"); -// -// requestBody = serializer.serialize(new RequestBodySerializerTest.ApplicationjsonRequestBody(true)); -// jsonBody = getJsonBody(requestBody); -// Assert.assertEquals(jsonBody, "true"); -// -// requestBody = serializer.serialize(new RequestBodySerializerTest.ApplicationjsonRequestBody(false)); -// jsonBody = getJsonBody(requestBody); -// Assert.assertEquals(jsonBody, "false"); -// -// -// requestBody = serializer.serialize(new RequestBodySerializerTest.ApplicationjsonRequestBody(List.of())); -// jsonBody = getJsonBody(requestBody); -// Assert.assertEquals(jsonBody, "[]"); -// -// requestBody = serializer.serialize(new RequestBodySerializerTest.ApplicationjsonRequestBody(Map.of())); -// jsonBody = getJsonBody(requestBody); -// Assert.assertEquals(jsonBody, "{}"); -// -// SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); -// MapJsonSchema.MapJsonSchema1 mapJsonSchema = MapJsonSchema.MapJsonSchema1.getInstance(); -// var frozenMap = mapJsonSchema.validate(Map.of("k1", "v1", "k2", "v2"), configuration); -// requestBody = serializer.serialize(new RequestBodySerializerTest.ApplicationjsonRequestBody(frozenMap)); -// jsonBody = getJsonBody(requestBody); -// Assert.assertEquals(jsonBody, "{\"k2\":\"v2\",\"k1\":\"v1\"}"); + if (!(jsonBody.body() instanceof AnyTypeJsonSchema.AnyTypeJsonSchema1BoxedNumber boxedNumber)) { + throw new RuntimeException("body must be type AnyTypeJsonSchema1BoxedNumber"); + } + Assert.assertEquals(boxedNumber.data(), 1L); + } + + @Test + public void testDeserializeApplicationJsonFloat() { + var deserializer = new MyResponseDeserializer(); + byte[] bodyBytes = gson.toJson(3.14).getBytes(StandardCharsets.UTF_8); + BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); + SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + ApiResponse apiResponse = deserializer.deserialize(response, configuration); + Assert.assertEquals(response, apiResponse.response()); + if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { + throw new RuntimeException("body must be type ApplicationjsonBody"); + } + if (!(jsonBody.body() instanceof AnyTypeJsonSchema.AnyTypeJsonSchema1BoxedNumber boxedNumber)) { + throw new RuntimeException("body must be type AnyTypeJsonSchema1BoxedNumber"); + } + Assert.assertEquals(boxedNumber.data(), 3.14); + } + + @Test + public void testDeserializeApplicationJsonString() { + var deserializer = new MyResponseDeserializer(); + byte[] bodyBytes = gson.toJson("a").getBytes(StandardCharsets.UTF_8); + BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); + SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + ApiResponse apiResponse = deserializer.deserialize(response, configuration); + Assert.assertEquals(response, apiResponse.response()); + if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { + throw new RuntimeException("body must be type ApplicationjsonBody"); + } + if (!(jsonBody.body() instanceof AnyTypeJsonSchema.AnyTypeJsonSchema1BoxedString boxedString)) { + throw new RuntimeException("body must be type AnyTypeJsonSchema1BoxedString"); + } + Assert.assertEquals(boxedString.data(), "a"); } } \ No newline at end of file diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java index a5e6b4af4fc..3dd8ce49393 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java @@ -775,6 +775,10 @@ public void processOpts() { "src/main/java/packagename/response/ResponseDeserializer.hbs", packagePath() + File.separatorChar + "response", "ResponseDeserializer.java")); + supportingFiles.add(new SupportingFile( + "src/test/java/packagename/response/ResponseDeserializerTest.hbs", + testPackagePath() + File.separatorChar + "response", + "ResponseDeserializerTest.java")); // jsonPaths // requestbodies diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_validateAndBox.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_validateAndBox.hbs index 5fb13b0a8f6..da5fa7d6fe4 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_validateAndBox.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_validateAndBox.hbs @@ -66,6 +66,7 @@ public {{jsonPathPiece.pascalCase}}Boxed validateAndBox(@Nullable Object arg, Sc {{/if}} return validateAndBox(castArg, configuration); {{/each}} + } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } {{else}} diff --git a/src/main/resources/java/src/main/java/packagename/requestbody/RequestBodySerializer.hbs b/src/main/resources/java/src/main/java/packagename/requestbody/RequestBodySerializer.hbs index 9af45e792a7..31e9b98154f 100644 --- a/src/main/resources/java/src/main/java/packagename/requestbody/RequestBodySerializer.hbs +++ b/src/main/resources/java/src/main/java/packagename/requestbody/RequestBodySerializer.hbs @@ -5,6 +5,9 @@ import {{{packageName}}}.mediatype.MediaType; import java.net.http.HttpRequest; import org.checkerframework.checker.nullness.qual.Nullable; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.ToNumberPolicy; +import {{{packageName}}}.schemas.validation.JsonSchema; import java.util.Map; import java.util.regex.Pattern; @@ -19,7 +22,10 @@ public abstract class RequestBodySerializer { private static final Pattern jsonContentTypePattern = Pattern.compile( "application/[^+]*[+]?(json);?.*" ); - private static final Gson gson = new Gson(); + private static final Gson gson = new GsonBuilder() + .setObjectToNumberStrategy(ToNumberPolicy.LONG_OR_DOUBLE) + .setNumberToNumberStrategy(ToNumberPolicy.LONG_OR_DOUBLE) + .create(); private static final String textPlainContentType = "text/plain"; public RequestBodySerializer(Map> content, boolean required) { @@ -40,7 +46,7 @@ public abstract class RequestBodySerializer { if (body instanceof String stringBody) { return new SerializedRequestBody(contentType, HttpRequest.BodyPublishers.ofString(stringBody)); } - throw new RuntimeException("Invalid non-string data type of "+body.getClass().getName()+" for text/plain body serialization"); + throw new RuntimeException("Invalid non-string data type of "+JsonSchema.getClass(body)+" for text/plain body serialization"); } protected SerializedRequestBody serialize(String contentType, @Nullable Object body) { diff --git a/src/main/resources/java/src/main/java/packagename/schemas/DoubleJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/DoubleJsonSchema.hbs index 351f2c6a81c..285c6fb7e64 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/DoubleJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/DoubleJsonSchema.hbs @@ -83,6 +83,7 @@ public class DoubleJsonSchema { public DoubleJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof Number castArg) { return validateAndBox(castArg, configuration); + } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/FloatJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/FloatJsonSchema.hbs index ce0f95b2ebf..7c06fac50c8 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/FloatJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/FloatJsonSchema.hbs @@ -83,6 +83,7 @@ public class FloatJsonSchema { public FloatJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof Number castArg) { return validateAndBox(castArg, configuration); + } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/Int32JsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/Int32JsonSchema.hbs index 1146ac0e5cd..818ac6408ac 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/Int32JsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/Int32JsonSchema.hbs @@ -91,6 +91,7 @@ public class Int32JsonSchema { public Int32JsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof Number castArg) { return validateAndBox(castArg, configuration); + } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/Int64JsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/Int64JsonSchema.hbs index 988ad82c1d1..b265d9a1f17 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/Int64JsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/Int64JsonSchema.hbs @@ -101,6 +101,7 @@ public class Int64JsonSchema { public Int64JsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof Number castArg) { return validateAndBox(castArg, configuration); + } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/IntJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/IntJsonSchema.hbs index 016ded66765..47404e49ec2 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/IntJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/IntJsonSchema.hbs @@ -101,6 +101,7 @@ public class IntJsonSchema { public IntJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof Number castArg) { return validateAndBox(castArg, configuration); + } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/NumberJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/NumberJsonSchema.hbs index 65ee2cd633d..b0954de1ea8 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/NumberJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/NumberJsonSchema.hbs @@ -99,6 +99,7 @@ public class NumberJsonSchema { public NumberJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof Number castArg) { return validateAndBox(castArg, configuration); + } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } diff --git a/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs b/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs new file mode 100644 index 00000000000..47050aa3193 --- /dev/null +++ b/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs @@ -0,0 +1,227 @@ +package {{{packageName}}}.response; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.ToNumberPolicy; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.junit.Assert; +import org.junit.Test; +import {{{packageName}}}.configurations.JsonSchemaKeywordFlags; +import {{{packageName}}}.configurations.SchemaConfiguration; +import {{{packageName}}}.mediatype.MediaType; +import {{{packageName}}}.schemas.AnyTypeJsonSchema; +import {{{packageName}}}.schemas.StringJsonSchema; + +import javax.net.ssl.SSLSession; +import java.net.URI; +import java.net.http.HttpClient; +import java.net.http.HttpHeaders; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.nio.charset.StandardCharsets; +import java.util.List; +import java.util.Map; +import java.util.Optional; +import java.util.function.BiPredicate; + +public class ResponseDeserializerTest { + private static final Gson gson = new GsonBuilder() + .setObjectToNumberStrategy(ToNumberPolicy.LONG_OR_DOUBLE) + .setNumberToNumberStrategy(ToNumberPolicy.LONG_OR_DOUBLE) + .create(); + public sealed interface SealedResponseBody permits ApplicationjsonBody, TextplainBody { } + + public record ApplicationjsonBody(AnyTypeJsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } + + public record TextplainBody(StringJsonSchema.StringJsonSchema1Boxed body) implements SealedResponseBody {} + + public static class ApplicationjsonMediatype extends MediaType { + public ApplicationjsonMediatype() { + super(AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance()); + } + } + + public static class TextplainMediatype extends MediaType { + public TextplainMediatype() { + super(StringJsonSchema.StringJsonSchema1.getInstance()); + } + } + + + public static class MyResponseDeserializer extends ResponseDeserializer { + + public MyResponseDeserializer() { + super(Map.of("application/json", new ApplicationjsonMediatype(), "text/plain", new TextplainMediatype())); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if (contentTypeIsJson(contentType)) { + @Nullable Object bodyData = deserializeJson(body); + var deserializedBody = AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(bodyData, configuration); + return new ApplicationjsonBody(deserializedBody); + } else { + String bodyData = deserializeTextPlain(body); + var deserializedBody = StringJsonSchema.StringJsonSchema1.getInstance().validateAndBox(bodyData, configuration); + return new TextplainBody(deserializedBody); + } + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } + + public static class BytesHttpResponse implements HttpResponse { + private final byte[] body; + private final HttpHeaders headers; + public BytesHttpResponse(byte[] body, String contentType) { + this.body = body; + BiPredicate headerFilter = (key, val) -> true; + this.headers = HttpHeaders.of(Map.of("Content-Type", List.of(contentType)), headerFilter); + } + + @Override + public int statusCode() { + return 202; + } + + @Override + public HttpRequest request() { + return null; + } + + @Override + public Optional> previousResponse() { + return Optional.empty(); + } + + @Override + public HttpHeaders headers() { + return headers; + } + + @Override + public byte[] body() { + return body; + } + + @Override + public Optional sslSession() { + return Optional.empty(); + } + + @Override + public URI uri() { + return null; + } + + @Override + public HttpClient.Version version() { + return null; + } + } + + @Test + public void testDeserializeApplicationJsonNull() { + var deserializer = new MyResponseDeserializer(); + byte[] bodyBytes = gson.toJson(null).getBytes(StandardCharsets.UTF_8); + BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); + SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + ApiResponse apiResponse = deserializer.deserialize(response, configuration); + Assert.assertEquals(response, apiResponse.response()); + if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { + throw new RuntimeException("body must be type ApplicationjsonBody"); + } + if (!(jsonBody.body() instanceof AnyTypeJsonSchema.AnyTypeJsonSchema1BoxedVoid boxedVoid)) { + throw new RuntimeException("body must be type AnyTypeJsonSchema1BoxedVoid"); + } + Assert.assertNull(boxedVoid.data()); + } + + @Test + public void testDeserializeApplicationJsonTrue() { + var deserializer = new MyResponseDeserializer(); + byte[] bodyBytes = gson.toJson(true).getBytes(StandardCharsets.UTF_8); + BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); + SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + ApiResponse apiResponse = deserializer.deserialize(response, configuration); + Assert.assertEquals(response, apiResponse.response()); + if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { + throw new RuntimeException("body must be type ApplicationjsonBody"); + } + if (!(jsonBody.body() instanceof AnyTypeJsonSchema.AnyTypeJsonSchema1BoxedBoolean boxedBoolean)) { + throw new RuntimeException("body must be type AnyTypeJsonSchema1BoxedBoolean"); + } + Assert.assertTrue(boxedBoolean.data()); + } + + @Test + public void testDeserializeApplicationJsonFalse() { + var deserializer = new MyResponseDeserializer(); + byte[] bodyBytes = gson.toJson(false).getBytes(StandardCharsets.UTF_8); + BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); + SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + ApiResponse apiResponse = deserializer.deserialize(response, configuration); + Assert.assertEquals(response, apiResponse.response()); + if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { + throw new RuntimeException("body must be type ApplicationjsonBody"); + } + if (!(jsonBody.body() instanceof AnyTypeJsonSchema.AnyTypeJsonSchema1BoxedBoolean boxedBoolean)) { + throw new RuntimeException("body must be type AnyTypeJsonSchema1BoxedBoolean"); + } + Assert.assertFalse(boxedBoolean.data()); + } + + @Test + public void testDeserializeApplicationJsonInt() { + var deserializer = new MyResponseDeserializer(); + byte[] bodyBytes = gson.toJson(1).getBytes(StandardCharsets.UTF_8); + BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); + SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + ApiResponse apiResponse = deserializer.deserialize(response, configuration); + Assert.assertEquals(response, apiResponse.response()); + if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { + throw new RuntimeException("body must be type ApplicationjsonBody"); + } + if (!(jsonBody.body() instanceof AnyTypeJsonSchema.AnyTypeJsonSchema1BoxedNumber boxedNumber)) { + throw new RuntimeException("body must be type AnyTypeJsonSchema1BoxedNumber"); + } + Assert.assertEquals(boxedNumber.data(), 1L); + } + + @Test + public void testDeserializeApplicationJsonFloat() { + var deserializer = new MyResponseDeserializer(); + byte[] bodyBytes = gson.toJson(3.14).getBytes(StandardCharsets.UTF_8); + BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); + SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + ApiResponse apiResponse = deserializer.deserialize(response, configuration); + Assert.assertEquals(response, apiResponse.response()); + if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { + throw new RuntimeException("body must be type ApplicationjsonBody"); + } + if (!(jsonBody.body() instanceof AnyTypeJsonSchema.AnyTypeJsonSchema1BoxedNumber boxedNumber)) { + throw new RuntimeException("body must be type AnyTypeJsonSchema1BoxedNumber"); + } + Assert.assertEquals(boxedNumber.data(), 3.14); + } + + @Test + public void testDeserializeApplicationJsonString() { + var deserializer = new MyResponseDeserializer(); + byte[] bodyBytes = gson.toJson("a").getBytes(StandardCharsets.UTF_8); + BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); + SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + ApiResponse apiResponse = deserializer.deserialize(response, configuration); + Assert.assertEquals(response, apiResponse.response()); + if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { + throw new RuntimeException("body must be type ApplicationjsonBody"); + } + if (!(jsonBody.body() instanceof AnyTypeJsonSchema.AnyTypeJsonSchema1BoxedString boxedString)) { + throw new RuntimeException("body must be type AnyTypeJsonSchema1BoxedString"); + } + Assert.assertEquals(boxedString.data(), "a"); + } +} \ No newline at end of file From 66a67eda2f7257cfd25079df01a157a554885704 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Tue, 20 Feb 2024 13:45:07 -0800 Subject: [PATCH 12/50] Changes request bodies to use sealed interface nd record, updates schema and request body docs --- .../petstore/java/.openapi-generator/FILES | 1 + .../Int32JsonContentTypeHeaderSchema.md | 15 +- .../numberheader/NumberHeaderSchema.md | 15 +- .../stringheader/StringHeaderSchema.md | 15 +- .../parameters/pathusername/Schema.md | 15 +- .../docs/components/requestbodies/Client.md | 20 +- .../java/docs/components/requestbodies/Pet.md | 30 +- .../components/requestbodies/UserArray.md | 20 +- .../applicationjson/ApplicationjsonSchema.md | 15 +- .../headers/location/LocationSchema.md | 15 +- .../applicationjson/ApplicationjsonSchema.md | 15 +- .../applicationxml/ApplicationxmlSchema.md | 15 +- .../applicationjson/ApplicationjsonSchema.md | 30 +- .../headers/someheader/SomeHeaderSchema.md | 15 +- .../components/schemas/AbstractStepMessage.md | 30 +- .../schemas/AdditionalPropertiesClass.md | 420 +++++----- .../schemas/AdditionalPropertiesSchema.md | 300 +++---- .../AdditionalPropertiesWithArrayOfEnums.md | 30 +- .../java/docs/components/schemas/Address.md | 30 +- .../java/docs/components/schemas/Animal.md | 45 +- .../docs/components/schemas/AnimalFarm.md | 15 +- .../components/schemas/AnyTypeAndFormat.md | 735 ++++++++++-------- .../components/schemas/AnyTypeNotString.md | 95 +-- .../components/schemas/ApiResponseSchema.md | 60 +- .../java/docs/components/schemas/Apple.md | 58 +- .../java/docs/components/schemas/AppleReq.md | 125 +-- .../components/schemas/ArrayHoldingAnyType.md | 95 +-- .../schemas/ArrayOfArrayOfNumberOnly.md | 60 +- .../docs/components/schemas/ArrayOfEnums.md | 15 +- .../components/schemas/ArrayOfNumberOnly.md | 45 +- .../java/docs/components/schemas/ArrayTest.md | 120 +-- .../schemas/ArrayWithValidationsInItems.md | 30 +- .../java/docs/components/schemas/Banana.md | 30 +- .../java/docs/components/schemas/BananaReq.md | 125 +-- .../java/docs/components/schemas/Bar.md | 15 +- .../java/docs/components/schemas/BasquePig.md | 30 +- .../docs/components/schemas/BooleanEnum.md | 15 +- .../docs/components/schemas/BooleanSchema.md | 15 +- .../docs/components/schemas/Capitalization.md | 105 +-- .../java/docs/components/schemas/Cat.md | 110 +-- .../java/docs/components/schemas/Category.md | 45 +- .../java/docs/components/schemas/ChildCat.md | 110 +-- .../docs/components/schemas/ClassModel.md | 95 +-- .../java/docs/components/schemas/Client.md | 30 +- .../schemas/ComplexQuadrilateral.md | 110 +-- ...omposedAnyOfDifferentTypesNoValidations.md | 387 ++++----- .../docs/components/schemas/ComposedArray.md | 95 +-- .../docs/components/schemas/ComposedBool.md | 95 +-- .../docs/components/schemas/ComposedNone.md | 95 +-- .../docs/components/schemas/ComposedNumber.md | 95 +-- .../docs/components/schemas/ComposedObject.md | 95 +-- .../schemas/ComposedOneOfDifferentTypes.md | 235 +++--- .../docs/components/schemas/ComposedString.md | 95 +-- .../java/docs/components/schemas/Currency.md | 15 +- .../java/docs/components/schemas/DanishPig.md | 30 +- .../docs/components/schemas/DateTimeTest.md | 15 +- .../schemas/DateTimeWithValidations.md | 15 +- .../components/schemas/DateWithValidations.md | 15 +- .../docs/components/schemas/DecimalPayload.md | 15 +- .../java/docs/components/schemas/Dog.md | 110 +-- .../java/docs/components/schemas/Drawing.md | 30 +- .../docs/components/schemas/EnumArrays.md | 60 +- .../java/docs/components/schemas/EnumClass.md | 15 +- .../java/docs/components/schemas/EnumTest.md | 75 +- .../components/schemas/EquilateralTriangle.md | 110 +-- .../java/docs/components/schemas/File.md | 30 +- .../components/schemas/FileSchemaTestClass.md | 30 +- .../java/docs/components/schemas/Foo.md | 15 +- .../docs/components/schemas/FormatTest.md | 332 ++++---- .../docs/components/schemas/FromSchema.md | 45 +- .../java/docs/components/schemas/Fruit.md | 95 +-- .../java/docs/components/schemas/FruitReq.md | 95 +-- .../java/docs/components/schemas/GmFruit.md | 95 +-- .../components/schemas/GrandparentAnimal.md | 30 +- .../components/schemas/HasOnlyReadOnly.md | 45 +- .../components/schemas/HealthCheckResult.md | 43 +- .../docs/components/schemas/IntegerEnum.md | 15 +- .../docs/components/schemas/IntegerEnumBig.md | 15 +- .../components/schemas/IntegerEnumOneValue.md | 15 +- .../schemas/IntegerEnumWithDefaultValue.md | 15 +- .../docs/components/schemas/IntegerMax10.md | 15 +- .../docs/components/schemas/IntegerMin15.md | 15 +- .../components/schemas/IsoscelesTriangle.md | 110 +-- .../java/docs/components/schemas/Items.md | 30 +- .../components/schemas/JSONPatchRequest.md | 95 +-- .../schemas/JSONPatchRequestAddReplaceTest.md | 205 ++--- .../schemas/JSONPatchRequestMoveCopy.md | 140 ++-- .../schemas/JSONPatchRequestRemove.md | 125 +-- .../java/docs/components/schemas/Mammal.md | 80 +- .../java/docs/components/schemas/MapTest.md | 120 +-- ...dPropertiesAndAdditionalPropertiesClass.md | 60 +- .../java/docs/components/schemas/Money.md | 110 +-- .../docs/components/schemas/MyObjectDto.md | 110 +-- .../java/docs/components/schemas/Name.md | 125 +-- .../schemas/NoAdditionalProperties.md | 125 +-- .../docs/components/schemas/NullableClass.md | 495 ++++++------ .../docs/components/schemas/NullableShape.md | 95 +-- .../docs/components/schemas/NullableString.md | 28 +- .../docs/components/schemas/NumberOnly.md | 30 +- .../docs/components/schemas/NumberSchema.md | 15 +- .../schemas/NumberWithExclusiveMinMax.md | 15 +- .../schemas/NumberWithValidations.md | 15 +- .../schemas/ObjWithRequiredProps.md | 30 +- .../schemas/ObjWithRequiredPropsBase.md | 30 +- .../components/schemas/ObjectInterface.md | 15 +- .../ObjectModelWithArgAndArgsProperties.md | 45 +- .../schemas/ObjectModelWithRefProps.md | 15 +- ...ithAllOfWithReqTestPropFromUnsetAddProp.md | 110 +-- .../schemas/ObjectWithCollidingProperties.md | 45 +- .../schemas/ObjectWithDecimalProperties.md | 30 +- .../ObjectWithDifficultlyNamedProps.md | 60 +- .../ObjectWithInlineCompositionProperty.md | 110 +-- .../ObjectWithInvalidNamedRefedProperties.md | 15 +- .../ObjectWithNonIntersectingValues.md | 45 +- .../schemas/ObjectWithOnlyOptionalProps.md | 125 +-- .../schemas/ObjectWithOptionalTestProp.md | 30 +- .../schemas/ObjectWithValidations.md | 15 +- .../java/docs/components/schemas/Order.md | 105 +-- .../schemas/PaginatedResultMyObjectDto.md | 125 +-- .../java/docs/components/schemas/ParentPet.md | 15 +- .../java/docs/components/schemas/Pet.md | 105 +-- .../java/docs/components/schemas/Pig.md | 80 +- .../java/docs/components/schemas/Player.md | 30 +- .../java/docs/components/schemas/PublicKey.md | 30 +- .../docs/components/schemas/Quadrilateral.md | 80 +- .../schemas/QuadrilateralInterface.md | 110 +-- .../docs/components/schemas/ReadOnlyFirst.md | 45 +- .../schemas/ReqPropsFromExplicitAddProps.md | 30 +- .../schemas/ReqPropsFromTrueAddProps.md | 95 +-- .../schemas/ReqPropsFromUnsetAddProps.md | 15 +- .../docs/components/schemas/ReturnSchema.md | 95 +-- .../components/schemas/ScaleneTriangle.md | 110 +-- .../components/schemas/Schema200Response.md | 110 +-- .../schemas/SelfReferencingArrayModel.md | 15 +- .../schemas/SelfReferencingObjectModel.md | 15 +- .../java/docs/components/schemas/Shape.md | 80 +- .../docs/components/schemas/ShapeOrNull.md | 95 +-- .../components/schemas/SimpleQuadrilateral.md | 110 +-- .../docs/components/schemas/SomeObject.md | 80 +- .../components/schemas/SpecialModelname.md | 30 +- .../components/schemas/StringBooleanMap.md | 30 +- .../docs/components/schemas/StringEnum.md | 28 +- .../schemas/StringEnumWithDefaultValue.md | 15 +- .../docs/components/schemas/StringSchema.md | 15 +- .../schemas/StringWithValidation.md | 15 +- .../java/docs/components/schemas/Tag.md | 45 +- .../java/docs/components/schemas/Triangle.md | 80 +- .../components/schemas/TriangleInterface.md | 110 +-- .../docs/components/schemas/UUIDString.md | 15 +- .../java/docs/components/schemas/User.md | 433 ++++++----- .../java/docs/components/schemas/Whale.md | 60 +- .../java/docs/components/schemas/Zebra.md | 125 +-- .../delete/parameters/parameter0/Schema0.md | 15 +- .../delete/parameters/parameter1/Schema1.md | 15 +- .../get/parameters/parameter0/Schema0.md | 15 +- .../parameters/parameter0/PathParamSchema0.md | 15 +- .../post/parameters/parameter0/Schema0.md | 15 +- .../delete/parameters/parameter0/Schema0.md | 15 +- .../delete/parameters/parameter1/Schema1.md | 15 +- .../delete/parameters/parameter2/Schema2.md | 15 +- .../delete/parameters/parameter3/Schema3.md | 15 +- .../delete/parameters/parameter4/Schema4.md | 15 +- .../delete/parameters/parameter5/Schema5.md | 15 +- .../fake/get/parameters/parameter0/Schema0.md | 30 +- .../fake/get/parameters/parameter1/Schema1.md | 15 +- .../fake/get/parameters/parameter2/Schema2.md | 30 +- .../fake/get/parameters/parameter3/Schema3.md | 15 +- .../fake/get/parameters/parameter4/Schema4.md | 15 +- .../fake/get/parameters/parameter5/Schema5.md | 15 +- .../ApplicationxwwwformurlencodedSchema.md | 60 +- .../applicationjson/ApplicationjsonSchema.md | 15 +- .../ApplicationxwwwformurlencodedSchema.md | 212 ++--- .../put/parameters/parameter0/Schema0.md | 15 +- .../put/parameters/parameter0/Schema0.md | 15 +- .../put/parameters/parameter1/Schema1.md | 15 +- .../put/parameters/parameter2/Schema2.md | 15 +- .../delete/parameters/parameter0/Schema0.md | 15 +- .../applicationjson/ApplicationjsonSchema.md | 30 +- .../post/parameters/parameter0/Schema0.md | 95 +-- .../post/parameters/parameter1/Schema1.md | 110 +-- .../applicationjson/ApplicationjsonSchema.md | 95 +-- .../MultipartformdataSchema.md | 110 +-- .../applicationjson/ApplicationjsonSchema.md | 95 +-- .../MultipartformdataSchema.md | 110 +-- .../ApplicationxwwwformurlencodedSchema.md | 45 +- .../Applicationjsoncharsetutf8Schema.md | 80 +- .../Applicationjsoncharsetutf8Schema.md | 80 +- .../applicationjson/ApplicationjsonSchema.md | 30 +- .../MultipartformdataSchema.md | 30 +- .../applicationjson/ApplicationjsonSchema.md | 80 +- .../applicationjson/ApplicationjsonSchema.md | 80 +- .../applicationjson/ApplicationjsonSchema.md | 80 +- .../applicationjson/ApplicationjsonSchema.md | 80 +- .../get/parameters/parameter0/Schema0.md | 30 +- .../post/parameters/parameter0/Schema0.md | 15 +- .../post/parameters/parameter1/Schema1.md | 15 +- .../post/parameters/parameter10/Schema10.md | 15 +- .../post/parameters/parameter11/Schema11.md | 15 +- .../post/parameters/parameter12/Schema12.md | 15 +- .../post/parameters/parameter13/Schema13.md | 15 +- .../post/parameters/parameter14/Schema14.md | 15 +- .../post/parameters/parameter15/Schema15.md | 15 +- .../post/parameters/parameter16/Schema16.md | 15 +- .../post/parameters/parameter17/Schema17.md | 15 +- .../post/parameters/parameter18/Schema18.md | 15 +- .../post/parameters/parameter2/Schema2.md | 15 +- .../post/parameters/parameter3/Schema3.md | 15 +- .../post/parameters/parameter4/Schema4.md | 15 +- .../post/parameters/parameter5/Schema5.md | 15 +- .../post/parameters/parameter6/Schema6.md | 15 +- .../post/parameters/parameter7/Schema7.md | 15 +- .../post/parameters/parameter8/Schema8.md | 15 +- .../post/parameters/parameter9/Schema9.md | 15 +- .../applicationjson/ApplicationjsonSchema.md | 80 +- .../applicationjson/ApplicationjsonSchema.md | 80 +- .../ApplicationxpemfileSchema.md | 15 +- .../ApplicationxpemfileSchema.md | 15 +- .../post/parameters/parameter0/Schema0.md | 15 +- .../MultipartformdataSchema.md | 32 +- .../content/applicationjson/Schema0.md | 80 +- .../applicationjson/ApplicationjsonSchema.md | 80 +- .../put/parameters/parameter0/Schema0.md | 30 +- .../put/parameters/parameter1/Schema1.md | 30 +- .../put/parameters/parameter2/Schema2.md | 30 +- .../put/parameters/parameter3/Schema3.md | 30 +- .../put/parameters/parameter4/Schema4.md | 30 +- .../ApplicationoctetstreamSchema.md | 2 +- .../ApplicationoctetstreamSchema.md | 2 +- .../MultipartformdataSchema.md | 32 +- .../MultipartformdataSchema.md | 32 +- .../applicationjson/ApplicationjsonSchema.md | 80 +- .../applicationjson/ApplicationjsonSchema.md | 80 +- .../applicationjson/ApplicationjsonSchema.md | 80 +- .../applicationjson/ApplicationjsonSchema.md | 80 +- .../applicationjson/ApplicationjsonSchema.md | 80 +- .../applicationjson/ApplicationjsonSchema.md | 80 +- .../applicationjson/ApplicationjsonSchema.md | 15 +- .../get/parameters/parameter0/Schema0.md | 30 +- .../get/parameters/parameter0/Schema0.md | 30 +- .../delete/parameters/parameter0/Schema0.md | 15 +- .../delete/parameters/parameter1/Schema1.md | 15 +- .../get/parameters/parameter0/Schema0.md | 15 +- .../post/parameters/parameter0/Schema0.md | 15 +- .../ApplicationxwwwformurlencodedSchema.md | 45 +- .../post/parameters/parameter0/Schema0.md | 15 +- .../MultipartformdataSchema.md | 32 +- .../delete/parameters/parameter0/Schema0.md | 15 +- .../get/parameters/parameter0/Schema0.md | 15 +- .../get/parameters/parameter0/Schema0.md | 15 +- .../get/parameters/parameter1/Schema1.md | 15 +- .../applicationjson/ApplicationjsonSchema.md | 15 +- .../applicationxml/ApplicationxmlSchema.md | 15 +- .../xexpiresafter/XExpiresAfterSchema.md | 15 +- .../applicationjson/XRateLimitSchema.md | 15 +- .../petstore/java/docs/servers/Server0.md | 125 +-- .../petstore/java/docs/servers/Server1.md | 110 +-- .../components/requestbodies/Client.java | 17 +- .../client/components/requestbodies/Pet.java | 32 +- .../components/requestbodies/UserArray.java | 17 +- .../client/paths/fake/get/RequestBody.java | 17 +- .../client/paths/fake/post/RequestBody.java | 17 +- .../get/RequestBody.java | 17 +- .../put/RequestBody.java | 17 +- .../put/RequestBody.java | 17 +- .../post/RequestBody.java | 17 +- .../post/RequestBody.java | 32 +- .../fakejsonformdata/get/RequestBody.java | 17 +- .../fakejsonpatch/patch/RequestBody.java | 17 +- .../fakejsonwithcharset/post/RequestBody.java | 17 +- .../post/RequestBody.java | 32 +- .../post/RequestBody.java | 17 +- .../fakepemcontenttype/get/RequestBody.java | 17 +- .../post/RequestBody.java | 17 +- .../fakerefsarraymodel/post/RequestBody.java | 17 +- .../post/RequestBody.java | 17 +- .../fakerefsboolean/post/RequestBody.java | 17 +- .../post/RequestBody.java | 17 +- .../paths/fakerefsenum/post/RequestBody.java | 17 +- .../fakerefsmammal/post/RequestBody.java | 17 +- .../fakerefsnumber/post/RequestBody.java | 17 +- .../post/RequestBody.java | 17 +- .../fakerefsstring/post/RequestBody.java | 17 +- .../post/RequestBody.java | 17 +- .../fakeuploadfile/post/RequestBody.java | 17 +- .../fakeuploadfiles/post/RequestBody.java | 17 +- .../paths/petpetid/post/RequestBody.java | 17 +- .../petpetiduploadimage/post/RequestBody.java | 17 +- .../paths/storeorder/post/RequestBody.java | 17 +- .../client/paths/user/post/RequestBody.java | 17 +- .../paths/userusername/put/RequestBody.java | 17 +- .../requestbody/RequestBodySerializer.java | 9 +- .../client/response/ResponseDeserializer.java | 8 +- .../RequestBodySerializerTest.java | 6 +- .../components/requestbodies/RequestBody.hbs | 17 +- .../requestbodies/RequestBodyDoc.hbs | 20 +- .../schemas/SchemaClass/_boxedBoolean.hbs | 11 +- .../schemas/SchemaClass/_boxedList.hbs | 11 +- .../schemas/SchemaClass/_boxedMap.hbs | 11 +- .../schemas/SchemaClass/_boxedNumber.hbs | 11 +- .../schemas/SchemaClass/_boxedString.hbs | 11 +- .../schemas/SchemaClass/_boxedVoid.hbs | 11 +- .../components/schemas/Schema_doc.hbs | 26 +- .../requestbody/RequestBodySerializerTest.hbs | 6 +- 303 files changed, 8382 insertions(+), 7713 deletions(-) diff --git a/samples/client/petstore/java/.openapi-generator/FILES b/samples/client/petstore/java/.openapi-generator/FILES index 32854a1ed96..96483db3518 100644 --- a/samples/client/petstore/java/.openapi-generator/FILES +++ b/samples/client/petstore/java/.openapi-generator/FILES @@ -890,6 +890,7 @@ src/main/java/org/openapijsonschematools/client/servers/server0/Variables.java src/main/java/org/openapijsonschematools/client/servers/server1/Variables.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/petstore/java/docs/components/headers/int32jsoncontenttypeheader/content/applicationjson/Int32JsonContentTypeHeaderSchema.md b/samples/client/petstore/java/docs/components/headers/int32jsoncontenttypeheader/content/applicationjson/Int32JsonContentTypeHeaderSchema.md index a7e5e97e79e..89018d8c7cc 100644 --- a/samples/client/petstore/java/docs/components/headers/int32jsoncontenttypeheader/content/applicationjson/Int32JsonContentTypeHeaderSchema.md +++ b/samples/client/petstore/java/docs/components/headers/int32jsoncontenttypeheader/content/applicationjson/Int32JsonContentTypeHeaderSchema.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Int32JsonContentTypeHeaderSchema.Int32JsonContentTypeHeaderSchema1Boxed](#int32jsoncontenttypeheaderschema1boxed)
abstract sealed validated payload class | -| static class | [Int32JsonContentTypeHeaderSchema.Int32JsonContentTypeHeaderSchema1BoxedNumber](#int32jsoncontenttypeheaderschema1boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [Int32JsonContentTypeHeaderSchema.Int32JsonContentTypeHeaderSchema1Boxed](#int32jsoncontenttypeheaderschema1boxed)
abstract sealed validated payload class | +| record | [Int32JsonContentTypeHeaderSchema.Int32JsonContentTypeHeaderSchema1BoxedNumber](#int32jsoncontenttypeheaderschema1boxednumber)
boxed class to store validated Number payloads | | static class | [Int32JsonContentTypeHeaderSchema.Int32JsonContentTypeHeaderSchema1](#int32jsoncontenttypeheaderschema1)
schema class | ## Int32JsonContentTypeHeaderSchema1Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Int32JsonContentTypeHeaderSchema1BoxedNumber -public static final class Int32JsonContentTypeHeaderSchema1BoxedNumber
+public record Int32JsonContentTypeHeaderSchema1BoxedNumber
implements [Int32JsonContentTypeHeaderSchema1Boxed](#int32jsoncontenttypeheaderschema1boxed) -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 | | --------------------------- | | Int32JsonContentTypeHeaderSchema1BoxedNumber(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 | ## Int32JsonContentTypeHeaderSchema1 public static class Int32JsonContentTypeHeaderSchema1
diff --git a/samples/client/petstore/java/docs/components/headers/numberheader/NumberHeaderSchema.md b/samples/client/petstore/java/docs/components/headers/numberheader/NumberHeaderSchema.md index f23f0fffaad..316f1fb3db7 100644 --- a/samples/client/petstore/java/docs/components/headers/numberheader/NumberHeaderSchema.md +++ b/samples/client/petstore/java/docs/components/headers/numberheader/NumberHeaderSchema.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [NumberHeaderSchema.NumberHeaderSchema1Boxed](#numberheaderschema1boxed)
abstract sealed validated payload class | -| static class | [NumberHeaderSchema.NumberHeaderSchema1BoxedString](#numberheaderschema1boxedstring)
boxed class to store validated String payloads | +| sealed interface | [NumberHeaderSchema.NumberHeaderSchema1Boxed](#numberheaderschema1boxed)
abstract sealed validated payload class | +| record | [NumberHeaderSchema.NumberHeaderSchema1BoxedString](#numberheaderschema1boxedstring)
boxed class to store validated String payloads | | static class | [NumberHeaderSchema.NumberHeaderSchema1](#numberheaderschema1)
schema class | ## NumberHeaderSchema1Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## NumberHeaderSchema1BoxedString -public static final class NumberHeaderSchema1BoxedString
+public record NumberHeaderSchema1BoxedString
implements [NumberHeaderSchema1Boxed](#numberheaderschema1boxed) -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 | | --------------------------- | | NumberHeaderSchema1BoxedString(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 | ## NumberHeaderSchema1 public static class NumberHeaderSchema1
diff --git a/samples/client/petstore/java/docs/components/headers/stringheader/StringHeaderSchema.md b/samples/client/petstore/java/docs/components/headers/stringheader/StringHeaderSchema.md index 466ffc37fcc..820e1014414 100644 --- a/samples/client/petstore/java/docs/components/headers/stringheader/StringHeaderSchema.md +++ b/samples/client/petstore/java/docs/components/headers/stringheader/StringHeaderSchema.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [StringHeaderSchema.StringHeaderSchema1Boxed](#stringheaderschema1boxed)
abstract sealed validated payload class | -| static class | [StringHeaderSchema.StringHeaderSchema1BoxedString](#stringheaderschema1boxedstring)
boxed class to store validated String payloads | +| sealed interface | [StringHeaderSchema.StringHeaderSchema1Boxed](#stringheaderschema1boxed)
abstract sealed validated payload class | +| record | [StringHeaderSchema.StringHeaderSchema1BoxedString](#stringheaderschema1boxedstring)
boxed class to store validated String payloads | | static class | [StringHeaderSchema.StringHeaderSchema1](#stringheaderschema1)
schema class | ## StringHeaderSchema1Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## StringHeaderSchema1BoxedString -public static final class StringHeaderSchema1BoxedString
+public record StringHeaderSchema1BoxedString
implements [StringHeaderSchema1Boxed](#stringheaderschema1boxed) -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 | | --------------------------- | | StringHeaderSchema1BoxedString(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 | ## StringHeaderSchema1 public static class StringHeaderSchema1
diff --git a/samples/client/petstore/java/docs/components/parameters/pathusername/Schema.md b/samples/client/petstore/java/docs/components/parameters/pathusername/Schema.md index 92b7e0da260..9fa3d3ee2f2 100644 --- a/samples/client/petstore/java/docs/components/parameters/pathusername/Schema.md +++ b/samples/client/petstore/java/docs/components/parameters/pathusername/Schema.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | -| static class | [Schema.Schema1BoxedString](#schema1boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | +| record | [Schema.Schema1BoxedString](#schema1boxedstring)
boxed class to store validated String payloads | | static class | [Schema.Schema1](#schema1)
schema class | ## Schema1Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema1BoxedString -public static final class Schema1BoxedString
+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 | ## Schema1 public static class Schema1
diff --git a/samples/client/petstore/java/docs/components/requestbodies/Client.md b/samples/client/petstore/java/docs/components/requestbodies/Client.md index 994b42ed642..a81aa8ffbd9 100644 --- a/samples/client/petstore/java/docs/components/requestbodies/Client.md +++ b/samples/client/petstore/java/docs/components/requestbodies/Client.md @@ -6,16 +6,16 @@ public class Client A class that contains necessary nested request body classes - supporting XMediaType classes which store the openapi request body contentType to schema information - a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody class, an abstract sealed class which contains all the contentType/schema input types -- final classes which extend SealedRequestBody, the concrete request body types +- SealedRequestBody class, a sealed interface which contains all the contentType/schema input types +- final classes which implement SealedRequestBody, the concrete request body types ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | | static class | [Client.ApplicationjsonMediaType](#applicationjsonmediatype)
class storing schema info for a specific contentType | | static class | [Client.Client1](#client1)
class that serializes request bodies | -| static class | [Client.SealedRequestBody](#sealedrequestbody)
abstract sealed request body class | -| static class | [Client.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implementing sealed class to store request body input | +| sealed interface | [Client.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [Client.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | ## ApplicationjsonMediaType public static class ApplicationjsonMediaType
@@ -55,18 +55,18 @@ a class that serializes SealedRequestBody request bodies | SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | ## SealedRequestBody -public static abstract sealed class SealedRequestBody
+public sealed interface SealedRequestBody
permits
[ApplicationjsonRequestBody](#applicationjsonrequestbody) -abstract sealed class that stores request contentType + validated schema data +sealed interface that stores request contentType + validated schema data ## ApplicationjsonRequestBody -public static final class ApplicationjsonRequestBody
-extends [SealedRequestBody](#sealedrequestbody)
-implements GenericRequestBody
+public record ApplicationjsonRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
-A final class to store request body input for contentType="application/json" +A record class to store request body input for contentType="application/json" ### Constructor Summary | Constructor and Description | diff --git a/samples/client/petstore/java/docs/components/requestbodies/Pet.md b/samples/client/petstore/java/docs/components/requestbodies/Pet.md index d8d122607e1..77e7db81f87 100644 --- a/samples/client/petstore/java/docs/components/requestbodies/Pet.md +++ b/samples/client/petstore/java/docs/components/requestbodies/Pet.md @@ -6,8 +6,8 @@ public class Pet A class that contains necessary nested request body classes - supporting XMediaType classes which store the openapi request body contentType to schema information - a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody class, an abstract sealed class which contains all the contentType/schema input types -- final classes which extend SealedRequestBody, the concrete request body types +- SealedRequestBody class, a sealed interface which contains all the contentType/schema input types +- final classes which implement SealedRequestBody, the concrete request body types ## Nested Class Summary | Modifier and Type | Class and Description | @@ -15,9 +15,9 @@ A class that contains necessary nested request body classes | static class | [Pet.ApplicationjsonMediaType](#applicationjsonmediatype)
class storing schema info for a specific contentType | | static class | [Pet.ApplicationxmlMediaType](#applicationxmlmediatype)
class storing schema info for a specific contentType | | static class | [Pet.Pet1](#pet1)
class that serializes request bodies | -| static class | [Pet.SealedRequestBody](#sealedrequestbody)
abstract sealed request body class | -| static class | [Pet.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implementing sealed class to store request body input | -| static class | [Pet.ApplicationxmlRequestBody](#applicationxmlrequestbody)
implementing sealed class to store request body input | +| sealed interface | [Pet.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [Pet.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | +| record | [Pet.ApplicationxmlRequestBody](#applicationxmlrequestbody)
implements sealed interface to store request body input | ## ApplicationjsonMediaType public static class ApplicationjsonMediaType
@@ -73,19 +73,19 @@ a class that serializes SealedRequestBody request bodies | SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | ## SealedRequestBody -public static abstract sealed class SealedRequestBody
+public sealed interface SealedRequestBody
permits
[ApplicationjsonRequestBody](#applicationjsonrequestbody), [ApplicationxmlRequestBody](#applicationxmlrequestbody) -abstract sealed class that stores request contentType + validated schema data +sealed interface that stores request contentType + validated schema data ## ApplicationjsonRequestBody -public static final class ApplicationjsonRequestBody
-extends [SealedRequestBody](#sealedrequestbody)
-implements GenericRequestBody
+public record ApplicationjsonRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
-A final class to store request body input for contentType="application/json" +A record class to store request body input for contentType="application/json" ### Constructor Summary | Constructor and Description | @@ -98,11 +98,11 @@ A final class to store request body input for contentType="application/json" | String | contentType()
always returns "application/json" | | ApplicationjsonSchema.[Pet1Boxed](../../components/schemas/Pet.md#pet1boxed) | body()
returns the body passed in in the constructor | ## ApplicationxmlRequestBody -public static final class ApplicationxmlRequestBody
-extends [SealedRequestBody](#sealedrequestbody)
-implements GenericRequestBody
+public record ApplicationxmlRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
-A final class to store request body input for contentType="application/xml" +A record class to store request body input for contentType="application/xml" ### Constructor Summary | Constructor and Description | diff --git a/samples/client/petstore/java/docs/components/requestbodies/UserArray.md b/samples/client/petstore/java/docs/components/requestbodies/UserArray.md index c36097f63e5..1b1f12d598e 100644 --- a/samples/client/petstore/java/docs/components/requestbodies/UserArray.md +++ b/samples/client/petstore/java/docs/components/requestbodies/UserArray.md @@ -6,16 +6,16 @@ public class UserArray A class that contains necessary nested request body classes - supporting XMediaType classes which store the openapi request body contentType to schema information - a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody class, an abstract sealed class which contains all the contentType/schema input types -- final classes which extend SealedRequestBody, the concrete request body types +- SealedRequestBody class, a sealed interface which contains all the contentType/schema input types +- final classes which implement SealedRequestBody, the concrete request body types ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | | static class | [UserArray.ApplicationjsonMediaType](#applicationjsonmediatype)
class storing schema info for a specific contentType | | static class | [UserArray.UserArray1](#userarray1)
class that serializes request bodies | -| static class | [UserArray.SealedRequestBody](#sealedrequestbody)
abstract sealed request body class | -| static class | [UserArray.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implementing sealed class to store request body input | +| sealed interface | [UserArray.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [UserArray.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | ## ApplicationjsonMediaType public static class ApplicationjsonMediaType
@@ -55,18 +55,18 @@ a class that serializes SealedRequestBody request bodies | SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | ## SealedRequestBody -public static abstract sealed class SealedRequestBody
+public sealed interface SealedRequestBody
permits
[ApplicationjsonRequestBody](#applicationjsonrequestbody) -abstract sealed class that stores request contentType + validated schema data +sealed interface that stores request contentType + validated schema data ## ApplicationjsonRequestBody -public static final class ApplicationjsonRequestBody
-extends [SealedRequestBody](#sealedrequestbody)
-implements GenericRequestBody
+public record ApplicationjsonRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
-A final class to store request body input for contentType="application/json" +A record class to store request body input for contentType="application/json" ### Constructor Summary | Constructor and Description | diff --git a/samples/client/petstore/java/docs/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.md index 3e16f7f4598..705a1c00d0c 100644 --- a/samples/client/petstore/java/docs/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.md @@ -11,8 +11,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | | static class | [ApplicationjsonSchema.ApplicationjsonSchemaListBuilder](#applicationjsonschemalistbuilder)
builder for List payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchemaList](#applicationjsonschemalist)
output class for List payloads | @@ -25,20 +25,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedList -public static final class ApplicationjsonSchema1BoxedList
+public record ApplicationjsonSchema1BoxedList
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedList([ApplicationjsonSchemaList](#applicationjsonschemalist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchemaList](#applicationjsonschemalist) | data
validated payload | +| [ApplicationjsonSchemaList](#applicationjsonschemalist) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
diff --git a/samples/client/petstore/java/docs/components/responses/headerswithnobody/headers/location/LocationSchema.md b/samples/client/petstore/java/docs/components/responses/headerswithnobody/headers/location/LocationSchema.md index 9257a7983ee..3dd333e87d6 100644 --- a/samples/client/petstore/java/docs/components/responses/headerswithnobody/headers/location/LocationSchema.md +++ b/samples/client/petstore/java/docs/components/responses/headerswithnobody/headers/location/LocationSchema.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [LocationSchema.LocationSchema1Boxed](#locationschema1boxed)
abstract sealed validated payload class | -| static class | [LocationSchema.LocationSchema1BoxedString](#locationschema1boxedstring)
boxed class to store validated String payloads | +| sealed interface | [LocationSchema.LocationSchema1Boxed](#locationschema1boxed)
abstract sealed validated payload class | +| record | [LocationSchema.LocationSchema1BoxedString](#locationschema1boxedstring)
boxed class to store validated String payloads | | static class | [LocationSchema.LocationSchema1](#locationschema1)
schema class | ## LocationSchema1Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## LocationSchema1BoxedString -public static final class LocationSchema1BoxedString
+public record LocationSchema1BoxedString
implements [LocationSchema1Boxed](#locationschema1boxed) -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 | | --------------------------- | | LocationSchema1BoxedString(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 | ## LocationSchema1 public static class LocationSchema1
diff --git a/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.md index 3bb0c3c7723..aaf79686de6 100644 --- a/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.md @@ -11,8 +11,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | | static class | [ApplicationjsonSchema.ApplicationjsonSchemaListBuilder](#applicationjsonschemalistbuilder)
builder for List payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchemaList](#applicationjsonschemalist)
output class for List payloads | @@ -25,20 +25,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedList -public static final class ApplicationjsonSchema1BoxedList
+public record ApplicationjsonSchema1BoxedList
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedList([ApplicationjsonSchemaList](#applicationjsonschemalist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchemaList](#applicationjsonschemalist) | data
validated payload | +| [ApplicationjsonSchemaList](#applicationjsonschemalist) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
diff --git a/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.md index d09be9c2426..57a1a6dd3f5 100644 --- a/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.md +++ b/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.md @@ -11,8 +11,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApplicationxmlSchema.ApplicationxmlSchema1Boxed](#applicationxmlschema1boxed)
abstract sealed validated payload class | -| static class | [ApplicationxmlSchema.ApplicationxmlSchema1BoxedList](#applicationxmlschema1boxedlist)
boxed class to store validated List payloads | +| sealed interface | [ApplicationxmlSchema.ApplicationxmlSchema1Boxed](#applicationxmlschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationxmlSchema.ApplicationxmlSchema1BoxedList](#applicationxmlschema1boxedlist)
boxed class to store validated List payloads | | static class | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | | static class | [ApplicationxmlSchema.ApplicationxmlSchemaListBuilder](#applicationxmlschemalistbuilder)
builder for List payloads | | static class | [ApplicationxmlSchema.ApplicationxmlSchemaList](#applicationxmlschemalist)
output class for List payloads | @@ -25,20 +25,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationxmlSchema1BoxedList -public static final class ApplicationxmlSchema1BoxedList
+public record ApplicationxmlSchema1BoxedList
implements [ApplicationxmlSchema1Boxed](#applicationxmlschema1boxed) -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 | | --------------------------- | | ApplicationxmlSchema1BoxedList([ApplicationxmlSchemaList](#applicationxmlschemalist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationxmlSchemaList](#applicationxmlschemalist) | data
validated payload | +| [ApplicationxmlSchemaList](#applicationxmlschemalist) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ApplicationxmlSchema1 public static class ApplicationxmlSchema1
diff --git a/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.md index 3d86ed3acfe..ce6aaa0ecdd 100644 --- a/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.md @@ -11,13 +11,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | | static class | [ApplicationjsonSchema.ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder)
builder for Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchemaMap](#applicationjsonschemamap)
output class for Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonAdditionalPropertiesBoxed](#applicationjsonadditionalpropertiesboxed)
abstract sealed validated payload class | -| static class | [ApplicationjsonSchema.ApplicationjsonAdditionalPropertiesBoxedNumber](#applicationjsonadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonAdditionalPropertiesBoxed](#applicationjsonadditionalpropertiesboxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonAdditionalPropertiesBoxedNumber](#applicationjsonadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | | static class | [ApplicationjsonSchema.ApplicationjsonAdditionalProperties](#applicationjsonadditionalproperties)
schema class | ## ApplicationjsonSchema1Boxed @@ -28,20 +28,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedMap -public static final class ApplicationjsonSchema1BoxedMap
+public record ApplicationjsonSchema1BoxedMap
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedMap([ApplicationjsonSchemaMap](#applicationjsonschemamap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchemaMap](#applicationjsonschemamap) | data
validated payload | +| [ApplicationjsonSchemaMap](#applicationjsonschemamap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
@@ -125,20 +126,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationjsonAdditionalPropertiesBoxedNumber -public static final class ApplicationjsonAdditionalPropertiesBoxedNumber
+public record ApplicationjsonAdditionalPropertiesBoxedNumber
implements [ApplicationjsonAdditionalPropertiesBoxed](#applicationjsonadditionalpropertiesboxed) -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 | | --------------------------- | | ApplicationjsonAdditionalPropertiesBoxedNumber(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 | ## ApplicationjsonAdditionalProperties public static class ApplicationjsonAdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/headers/someheader/SomeHeaderSchema.md b/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/headers/someheader/SomeHeaderSchema.md index 77c36ae4cd0..f8503e302a3 100644 --- a/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/headers/someheader/SomeHeaderSchema.md +++ b/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/headers/someheader/SomeHeaderSchema.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [SomeHeaderSchema.SomeHeaderSchema1Boxed](#someheaderschema1boxed)
abstract sealed validated payload class | -| static class | [SomeHeaderSchema.SomeHeaderSchema1BoxedString](#someheaderschema1boxedstring)
boxed class to store validated String payloads | +| sealed interface | [SomeHeaderSchema.SomeHeaderSchema1Boxed](#someheaderschema1boxed)
abstract sealed validated payload class | +| record | [SomeHeaderSchema.SomeHeaderSchema1BoxedString](#someheaderschema1boxedstring)
boxed class to store validated String payloads | | static class | [SomeHeaderSchema.SomeHeaderSchema1](#someheaderschema1)
schema class | ## SomeHeaderSchema1Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## SomeHeaderSchema1BoxedString -public static final class SomeHeaderSchema1BoxedString
+public record SomeHeaderSchema1BoxedString
implements [SomeHeaderSchema1Boxed](#someheaderschema1boxed) -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 | | --------------------------- | | SomeHeaderSchema1BoxedString(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 | ## SomeHeaderSchema1 public static class SomeHeaderSchema1
diff --git a/samples/client/petstore/java/docs/components/schemas/AbstractStepMessage.md b/samples/client/petstore/java/docs/components/schemas/AbstractStepMessage.md index b7c191b8992..7345e1a8bac 100644 --- a/samples/client/petstore/java/docs/components/schemas/AbstractStepMessage.md +++ b/samples/client/petstore/java/docs/components/schemas/AbstractStepMessage.md @@ -12,13 +12,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [AbstractStepMessage.AbstractStepMessage1Boxed](#abstractstepmessage1boxed)
abstract sealed validated payload class | -| static class | [AbstractStepMessage.AbstractStepMessage1BoxedMap](#abstractstepmessage1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AbstractStepMessage.AbstractStepMessage1Boxed](#abstractstepmessage1boxed)
abstract sealed validated payload class | +| record | [AbstractStepMessage.AbstractStepMessage1BoxedMap](#abstractstepmessage1boxedmap)
boxed class to store validated Map payloads | | static class | [AbstractStepMessage.AbstractStepMessage1](#abstractstepmessage1)
schema class | | static class | [AbstractStepMessage.AbstractStepMessageMapBuilder](#abstractstepmessagemapbuilder)
builder for Map payloads | | static class | [AbstractStepMessage.AbstractStepMessageMap](#abstractstepmessagemap)
output class for Map payloads | -| static class | [AbstractStepMessage.DiscriminatorBoxed](#discriminatorboxed)
abstract sealed validated payload class | -| static class | [AbstractStepMessage.DiscriminatorBoxedString](#discriminatorboxedstring)
boxed class to store validated String payloads | +| sealed interface | [AbstractStepMessage.DiscriminatorBoxed](#discriminatorboxed)
abstract sealed validated payload class | +| record | [AbstractStepMessage.DiscriminatorBoxedString](#discriminatorboxedstring)
boxed class to store validated String payloads | | static class | [AbstractStepMessage.Discriminator](#discriminator)
schema class | ## AbstractStepMessage1Boxed @@ -29,20 +29,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## AbstractStepMessage1BoxedMap -public static final class AbstractStepMessage1BoxedMap
+public record AbstractStepMessage1BoxedMap
implements [AbstractStepMessage1Boxed](#abstractstepmessage1boxed) -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 | | --------------------------- | | AbstractStepMessage1BoxedMap([AbstractStepMessageMap](#abstractstepmessagemap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [AbstractStepMessageMap](#abstractstepmessagemap) | data
validated payload | +| [AbstractStepMessageMap](#abstractstepmessagemap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## AbstractStepMessage1 public static class AbstractStepMessage1
@@ -322,20 +323,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## DiscriminatorBoxedString -public static final class DiscriminatorBoxedString
+public record DiscriminatorBoxedString
implements [DiscriminatorBoxed](#discriminatorboxed) -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 | | --------------------------- | | DiscriminatorBoxedString(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 | ## Discriminator public static class Discriminator
diff --git a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesClass.md b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesClass.md index 5644bfabfbf..1567a58d274 100644 --- a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesClass.md +++ b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesClass.md @@ -12,79 +12,79 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [AdditionalPropertiesClass.AdditionalPropertiesClass1Boxed](#additionalpropertiesclass1boxed)
abstract sealed validated payload class | -| static class | [AdditionalPropertiesClass.AdditionalPropertiesClass1BoxedMap](#additionalpropertiesclass1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AdditionalPropertiesClass.AdditionalPropertiesClass1Boxed](#additionalpropertiesclass1boxed)
abstract sealed validated payload class | +| record | [AdditionalPropertiesClass.AdditionalPropertiesClass1BoxedMap](#additionalpropertiesclass1boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesClass.AdditionalPropertiesClass1](#additionalpropertiesclass1)
schema class | | static class | [AdditionalPropertiesClass.AdditionalPropertiesClassMapBuilder](#additionalpropertiesclassmapbuilder)
builder for Map payloads | | static class | [AdditionalPropertiesClass.AdditionalPropertiesClassMap](#additionalpropertiesclassmap)
output class for Map payloads | -| static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesStringBoxed](#mapwithundeclaredpropertiesstringboxed)
abstract sealed validated payload class | -| static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesStringBoxedMap](#mapwithundeclaredpropertiesstringboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesStringBoxed](#mapwithundeclaredpropertiesstringboxed)
abstract sealed validated payload class | +| record | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesStringBoxedMap](#mapwithundeclaredpropertiesstringboxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesString](#mapwithundeclaredpropertiesstring)
schema class | | static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesStringMapBuilder](#mapwithundeclaredpropertiesstringmapbuilder)
builder for Map payloads | | static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesStringMap](#mapwithundeclaredpropertiesstringmap)
output class for Map payloads | -| static class | [AdditionalPropertiesClass.AdditionalProperties5Boxed](#additionalproperties5boxed)
abstract sealed validated payload class | -| static class | [AdditionalPropertiesClass.AdditionalProperties5BoxedString](#additionalproperties5boxedstring)
boxed class to store validated String payloads | +| sealed interface | [AdditionalPropertiesClass.AdditionalProperties5Boxed](#additionalproperties5boxed)
abstract sealed validated payload class | +| record | [AdditionalPropertiesClass.AdditionalProperties5BoxedString](#additionalproperties5boxedstring)
boxed class to store validated String payloads | | static class | [AdditionalPropertiesClass.AdditionalProperties5](#additionalproperties5)
schema class | -| static class | [AdditionalPropertiesClass.EmptyMapBoxed](#emptymapboxed)
abstract sealed validated payload class | -| static class | [AdditionalPropertiesClass.EmptyMapBoxedMap](#emptymapboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AdditionalPropertiesClass.EmptyMapBoxed](#emptymapboxed)
abstract sealed validated payload class | +| record | [AdditionalPropertiesClass.EmptyMapBoxedMap](#emptymapboxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesClass.EmptyMap](#emptymap)
schema class | | static class | [AdditionalPropertiesClass.EmptyMapMapBuilder](#emptymapmapbuilder)
builder for Map payloads | | static class | [AdditionalPropertiesClass.EmptyMapMap](#emptymapmap)
output class for Map payloads | -| static class | [AdditionalPropertiesClass.AdditionalProperties4Boxed](#additionalproperties4boxed)
abstract sealed validated payload class | -| static class | [AdditionalPropertiesClass.AdditionalProperties4BoxedVoid](#additionalproperties4boxedvoid)
boxed class to store validated null payloads | -| static class | [AdditionalPropertiesClass.AdditionalProperties4BoxedBoolean](#additionalproperties4boxedboolean)
boxed class to store validated boolean payloads | -| static class | [AdditionalPropertiesClass.AdditionalProperties4BoxedNumber](#additionalproperties4boxednumber)
boxed class to store validated Number payloads | -| static class | [AdditionalPropertiesClass.AdditionalProperties4BoxedString](#additionalproperties4boxedstring)
boxed class to store validated String payloads | -| static class | [AdditionalPropertiesClass.AdditionalProperties4BoxedList](#additionalproperties4boxedlist)
boxed class to store validated List payloads | -| static class | [AdditionalPropertiesClass.AdditionalProperties4BoxedMap](#additionalproperties4boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AdditionalPropertiesClass.AdditionalProperties4Boxed](#additionalproperties4boxed)
abstract sealed validated payload class | +| record | [AdditionalPropertiesClass.AdditionalProperties4BoxedVoid](#additionalproperties4boxedvoid)
boxed class to store validated null payloads | +| record | [AdditionalPropertiesClass.AdditionalProperties4BoxedBoolean](#additionalproperties4boxedboolean)
boxed class to store validated boolean payloads | +| record | [AdditionalPropertiesClass.AdditionalProperties4BoxedNumber](#additionalproperties4boxednumber)
boxed class to store validated Number payloads | +| record | [AdditionalPropertiesClass.AdditionalProperties4BoxedString](#additionalproperties4boxedstring)
boxed class to store validated String payloads | +| record | [AdditionalPropertiesClass.AdditionalProperties4BoxedList](#additionalproperties4boxedlist)
boxed class to store validated List payloads | +| record | [AdditionalPropertiesClass.AdditionalProperties4BoxedMap](#additionalproperties4boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesClass.AdditionalProperties4](#additionalproperties4)
schema class | -| static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype3Boxed](#mapwithundeclaredpropertiesanytype3boxed)
abstract sealed validated payload class | -| static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype3BoxedMap](#mapwithundeclaredpropertiesanytype3boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype3Boxed](#mapwithundeclaredpropertiesanytype3boxed)
abstract sealed validated payload class | +| record | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype3BoxedMap](#mapwithundeclaredpropertiesanytype3boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype3](#mapwithundeclaredpropertiesanytype3)
schema class | | static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype3MapBuilder](#mapwithundeclaredpropertiesanytype3mapbuilder)
builder for Map payloads | | static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype3Map](#mapwithundeclaredpropertiesanytype3map)
output class for Map payloads | -| static class | [AdditionalPropertiesClass.AdditionalProperties3Boxed](#additionalproperties3boxed)
abstract sealed validated payload class | -| static class | [AdditionalPropertiesClass.AdditionalProperties3BoxedVoid](#additionalproperties3boxedvoid)
boxed class to store validated null payloads | -| static class | [AdditionalPropertiesClass.AdditionalProperties3BoxedBoolean](#additionalproperties3boxedboolean)
boxed class to store validated boolean payloads | -| static class | [AdditionalPropertiesClass.AdditionalProperties3BoxedNumber](#additionalproperties3boxednumber)
boxed class to store validated Number payloads | -| static class | [AdditionalPropertiesClass.AdditionalProperties3BoxedString](#additionalproperties3boxedstring)
boxed class to store validated String payloads | -| static class | [AdditionalPropertiesClass.AdditionalProperties3BoxedList](#additionalproperties3boxedlist)
boxed class to store validated List payloads | -| static class | [AdditionalPropertiesClass.AdditionalProperties3BoxedMap](#additionalproperties3boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AdditionalPropertiesClass.AdditionalProperties3Boxed](#additionalproperties3boxed)
abstract sealed validated payload class | +| record | [AdditionalPropertiesClass.AdditionalProperties3BoxedVoid](#additionalproperties3boxedvoid)
boxed class to store validated null payloads | +| record | [AdditionalPropertiesClass.AdditionalProperties3BoxedBoolean](#additionalproperties3boxedboolean)
boxed class to store validated boolean payloads | +| record | [AdditionalPropertiesClass.AdditionalProperties3BoxedNumber](#additionalproperties3boxednumber)
boxed class to store validated Number payloads | +| record | [AdditionalPropertiesClass.AdditionalProperties3BoxedString](#additionalproperties3boxedstring)
boxed class to store validated String payloads | +| record | [AdditionalPropertiesClass.AdditionalProperties3BoxedList](#additionalproperties3boxedlist)
boxed class to store validated List payloads | +| record | [AdditionalPropertiesClass.AdditionalProperties3BoxedMap](#additionalproperties3boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesClass.AdditionalProperties3](#additionalproperties3)
schema class | -| static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype2Boxed](#mapwithundeclaredpropertiesanytype2boxed)
abstract sealed validated payload class | -| static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype2BoxedMap](#mapwithundeclaredpropertiesanytype2boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype2Boxed](#mapwithundeclaredpropertiesanytype2boxed)
abstract sealed validated payload class | +| record | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype2BoxedMap](#mapwithundeclaredpropertiesanytype2boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype2](#mapwithundeclaredpropertiesanytype2)
schema class | -| static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype1Boxed](#mapwithundeclaredpropertiesanytype1boxed)
abstract sealed validated payload class | -| static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype1BoxedMap](#mapwithundeclaredpropertiesanytype1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype1Boxed](#mapwithundeclaredpropertiesanytype1boxed)
abstract sealed validated payload class | +| record | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype1BoxedMap](#mapwithundeclaredpropertiesanytype1boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype1](#mapwithundeclaredpropertiesanytype1)
schema class | -| static class | [AdditionalPropertiesClass.Anytype1Boxed](#anytype1boxed)
abstract sealed validated payload class | -| static class | [AdditionalPropertiesClass.Anytype1BoxedVoid](#anytype1boxedvoid)
boxed class to store validated null payloads | -| static class | [AdditionalPropertiesClass.Anytype1BoxedBoolean](#anytype1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [AdditionalPropertiesClass.Anytype1BoxedNumber](#anytype1boxednumber)
boxed class to store validated Number payloads | -| static class | [AdditionalPropertiesClass.Anytype1BoxedString](#anytype1boxedstring)
boxed class to store validated String payloads | -| static class | [AdditionalPropertiesClass.Anytype1BoxedList](#anytype1boxedlist)
boxed class to store validated List payloads | -| static class | [AdditionalPropertiesClass.Anytype1BoxedMap](#anytype1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AdditionalPropertiesClass.Anytype1Boxed](#anytype1boxed)
abstract sealed validated payload class | +| record | [AdditionalPropertiesClass.Anytype1BoxedVoid](#anytype1boxedvoid)
boxed class to store validated null payloads | +| record | [AdditionalPropertiesClass.Anytype1BoxedBoolean](#anytype1boxedboolean)
boxed class to store validated boolean payloads | +| record | [AdditionalPropertiesClass.Anytype1BoxedNumber](#anytype1boxednumber)
boxed class to store validated Number payloads | +| record | [AdditionalPropertiesClass.Anytype1BoxedString](#anytype1boxedstring)
boxed class to store validated String payloads | +| record | [AdditionalPropertiesClass.Anytype1BoxedList](#anytype1boxedlist)
boxed class to store validated List payloads | +| record | [AdditionalPropertiesClass.Anytype1BoxedMap](#anytype1boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesClass.Anytype1](#anytype1)
schema class | -| static class | [AdditionalPropertiesClass.MapOfMapPropertyBoxed](#mapofmappropertyboxed)
abstract sealed validated payload class | -| static class | [AdditionalPropertiesClass.MapOfMapPropertyBoxedMap](#mapofmappropertyboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AdditionalPropertiesClass.MapOfMapPropertyBoxed](#mapofmappropertyboxed)
abstract sealed validated payload class | +| record | [AdditionalPropertiesClass.MapOfMapPropertyBoxedMap](#mapofmappropertyboxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesClass.MapOfMapProperty](#mapofmapproperty)
schema class | | static class | [AdditionalPropertiesClass.MapOfMapPropertyMapBuilder](#mapofmappropertymapbuilder)
builder for Map payloads | | static class | [AdditionalPropertiesClass.MapOfMapPropertyMap](#mapofmappropertymap)
output class for Map payloads | -| static class | [AdditionalPropertiesClass.AdditionalProperties1Boxed](#additionalproperties1boxed)
abstract sealed validated payload class | -| static class | [AdditionalPropertiesClass.AdditionalProperties1BoxedMap](#additionalproperties1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AdditionalPropertiesClass.AdditionalProperties1Boxed](#additionalproperties1boxed)
abstract sealed validated payload class | +| record | [AdditionalPropertiesClass.AdditionalProperties1BoxedMap](#additionalproperties1boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesClass.AdditionalProperties1](#additionalproperties1)
schema class | | static class | [AdditionalPropertiesClass.AdditionalPropertiesMapBuilder2](#additionalpropertiesmapbuilder2)
builder for Map payloads | | static class | [AdditionalPropertiesClass.AdditionalPropertiesMap](#additionalpropertiesmap)
output class for Map payloads | -| static class | [AdditionalPropertiesClass.AdditionalProperties2Boxed](#additionalproperties2boxed)
abstract sealed validated payload class | -| static class | [AdditionalPropertiesClass.AdditionalProperties2BoxedString](#additionalproperties2boxedstring)
boxed class to store validated String payloads | +| sealed interface | [AdditionalPropertiesClass.AdditionalProperties2Boxed](#additionalproperties2boxed)
abstract sealed validated payload class | +| record | [AdditionalPropertiesClass.AdditionalProperties2BoxedString](#additionalproperties2boxedstring)
boxed class to store validated String payloads | | static class | [AdditionalPropertiesClass.AdditionalProperties2](#additionalproperties2)
schema class | -| static class | [AdditionalPropertiesClass.MapPropertyBoxed](#mappropertyboxed)
abstract sealed validated payload class | -| static class | [AdditionalPropertiesClass.MapPropertyBoxedMap](#mappropertyboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AdditionalPropertiesClass.MapPropertyBoxed](#mappropertyboxed)
abstract sealed validated payload class | +| record | [AdditionalPropertiesClass.MapPropertyBoxedMap](#mappropertyboxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesClass.MapProperty](#mapproperty)
schema class | | static class | [AdditionalPropertiesClass.MapPropertyMapBuilder](#mappropertymapbuilder)
builder for Map payloads | | static class | [AdditionalPropertiesClass.MapPropertyMap](#mappropertymap)
output class for Map payloads | -| static class | [AdditionalPropertiesClass.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | -| static class | [AdditionalPropertiesClass.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| sealed interface | [AdditionalPropertiesClass.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| record | [AdditionalPropertiesClass.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | | static class | [AdditionalPropertiesClass.AdditionalProperties](#additionalproperties)
schema class | ## AdditionalPropertiesClass1Boxed @@ -95,20 +95,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesClass1BoxedMap -public static final class AdditionalPropertiesClass1BoxedMap
+public record AdditionalPropertiesClass1BoxedMap
implements [AdditionalPropertiesClass1Boxed](#additionalpropertiesclass1boxed) -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 | | --------------------------- | | AdditionalPropertiesClass1BoxedMap([AdditionalPropertiesClassMap](#additionalpropertiesclassmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [AdditionalPropertiesClassMap](#additionalpropertiesclassmap) | data
validated payload | +| [AdditionalPropertiesClassMap](#additionalpropertiesclassmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## AdditionalPropertiesClass1 public static class AdditionalPropertiesClass1
@@ -258,20 +259,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## MapWithUndeclaredPropertiesStringBoxedMap -public static final class MapWithUndeclaredPropertiesStringBoxedMap
+public record MapWithUndeclaredPropertiesStringBoxedMap
implements [MapWithUndeclaredPropertiesStringBoxed](#mapwithundeclaredpropertiesstringboxed) -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 | | --------------------------- | | MapWithUndeclaredPropertiesStringBoxedMap([MapWithUndeclaredPropertiesStringMap](#mapwithundeclaredpropertiesstringmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [MapWithUndeclaredPropertiesStringMap](#mapwithundeclaredpropertiesstringmap) | data
validated payload | +| [MapWithUndeclaredPropertiesStringMap](#mapwithundeclaredpropertiesstringmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## MapWithUndeclaredPropertiesString public static class MapWithUndeclaredPropertiesString
@@ -354,20 +356,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalProperties5BoxedString -public static final class AdditionalProperties5BoxedString
+public record AdditionalProperties5BoxedString
implements [AdditionalProperties5Boxed](#additionalproperties5boxed) -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 | | --------------------------- | | AdditionalProperties5BoxedString(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 | ## AdditionalProperties5 public static class AdditionalProperties5
@@ -388,20 +391,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## EmptyMapBoxedMap -public static final class EmptyMapBoxedMap
+public record EmptyMapBoxedMap
implements [EmptyMapBoxed](#emptymapboxed) -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 | | --------------------------- | | EmptyMapBoxedMap([EmptyMapMap](#emptymapmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [EmptyMapMap](#emptymapmap) | data
validated payload | +| [EmptyMapMap](#emptymapmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## EmptyMap public static class EmptyMap
@@ -488,100 +492,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalProperties4BoxedVoid -public static final class AdditionalProperties4BoxedVoid
+public record AdditionalProperties4BoxedVoid
implements [AdditionalProperties4Boxed](#additionalproperties4boxed) -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 | | --------------------------- | | AdditionalProperties4BoxedVoid(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 | ## AdditionalProperties4BoxedBoolean -public static final class AdditionalProperties4BoxedBoolean
+public record AdditionalProperties4BoxedBoolean
implements [AdditionalProperties4Boxed](#additionalproperties4boxed) -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 | | --------------------------- | | AdditionalProperties4BoxedBoolean(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 | ## AdditionalProperties4BoxedNumber -public static final class AdditionalProperties4BoxedNumber
+public record AdditionalProperties4BoxedNumber
implements [AdditionalProperties4Boxed](#additionalproperties4boxed) -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 | | --------------------------- | | AdditionalProperties4BoxedNumber(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 | ## AdditionalProperties4BoxedString -public static final class AdditionalProperties4BoxedString
+public record AdditionalProperties4BoxedString
implements [AdditionalProperties4Boxed](#additionalproperties4boxed) -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 | | --------------------------- | | AdditionalProperties4BoxedString(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 | ## AdditionalProperties4BoxedList -public static final class AdditionalProperties4BoxedList
+public record AdditionalProperties4BoxedList
implements [AdditionalProperties4Boxed](#additionalproperties4boxed) -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 | | --------------------------- | | AdditionalProperties4BoxedList(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 | ## AdditionalProperties4BoxedMap -public static final class AdditionalProperties4BoxedMap
+public record AdditionalProperties4BoxedMap
implements [AdditionalProperties4Boxed](#additionalproperties4boxed) -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 | | --------------------------- | | AdditionalProperties4BoxedMap(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 | ## AdditionalProperties4 public static class AdditionalProperties4
@@ -602,20 +612,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## MapWithUndeclaredPropertiesAnytype3BoxedMap -public static final class MapWithUndeclaredPropertiesAnytype3BoxedMap
+public record MapWithUndeclaredPropertiesAnytype3BoxedMap
implements [MapWithUndeclaredPropertiesAnytype3Boxed](#mapwithundeclaredpropertiesanytype3boxed) -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 | | --------------------------- | | MapWithUndeclaredPropertiesAnytype3BoxedMap([MapWithUndeclaredPropertiesAnytype3Map](#mapwithundeclaredpropertiesanytype3map) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [MapWithUndeclaredPropertiesAnytype3Map](#mapwithundeclaredpropertiesanytype3map) | data
validated payload | +| [MapWithUndeclaredPropertiesAnytype3Map](#mapwithundeclaredpropertiesanytype3map) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## MapWithUndeclaredPropertiesAnytype3 public static class MapWithUndeclaredPropertiesAnytype3
@@ -709,100 +720,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalProperties3BoxedVoid -public static final class AdditionalProperties3BoxedVoid
+public record AdditionalProperties3BoxedVoid
implements [AdditionalProperties3Boxed](#additionalproperties3boxed) -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 | | --------------------------- | | AdditionalProperties3BoxedVoid(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 | ## AdditionalProperties3BoxedBoolean -public static final class AdditionalProperties3BoxedBoolean
+public record AdditionalProperties3BoxedBoolean
implements [AdditionalProperties3Boxed](#additionalproperties3boxed) -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 | | --------------------------- | | AdditionalProperties3BoxedBoolean(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 | ## AdditionalProperties3BoxedNumber -public static final class AdditionalProperties3BoxedNumber
+public record AdditionalProperties3BoxedNumber
implements [AdditionalProperties3Boxed](#additionalproperties3boxed) -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 | | --------------------------- | | AdditionalProperties3BoxedNumber(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 | ## AdditionalProperties3BoxedString -public static final class AdditionalProperties3BoxedString
+public record AdditionalProperties3BoxedString
implements [AdditionalProperties3Boxed](#additionalproperties3boxed) -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 | | --------------------------- | | AdditionalProperties3BoxedString(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 | ## AdditionalProperties3BoxedList -public static final class AdditionalProperties3BoxedList
+public record AdditionalProperties3BoxedList
implements [AdditionalProperties3Boxed](#additionalproperties3boxed) -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 | | --------------------------- | | AdditionalProperties3BoxedList(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 | ## AdditionalProperties3BoxedMap -public static final class AdditionalProperties3BoxedMap
+public record AdditionalProperties3BoxedMap
implements [AdditionalProperties3Boxed](#additionalproperties3boxed) -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 | | --------------------------- | | AdditionalProperties3BoxedMap(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 | ## AdditionalProperties3 public static class AdditionalProperties3
@@ -823,20 +840,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## MapWithUndeclaredPropertiesAnytype2BoxedMap -public static final class MapWithUndeclaredPropertiesAnytype2BoxedMap
+public record MapWithUndeclaredPropertiesAnytype2BoxedMap
implements [MapWithUndeclaredPropertiesAnytype2Boxed](#mapwithundeclaredpropertiesanytype2boxed) -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 | | --------------------------- | | MapWithUndeclaredPropertiesAnytype2BoxedMap(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 | ## MapWithUndeclaredPropertiesAnytype2 public static class MapWithUndeclaredPropertiesAnytype2
@@ -857,20 +875,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## MapWithUndeclaredPropertiesAnytype1BoxedMap -public static final class MapWithUndeclaredPropertiesAnytype1BoxedMap
+public record MapWithUndeclaredPropertiesAnytype1BoxedMap
implements [MapWithUndeclaredPropertiesAnytype1Boxed](#mapwithundeclaredpropertiesanytype1boxed) -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 | | --------------------------- | | MapWithUndeclaredPropertiesAnytype1BoxedMap(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 | ## MapWithUndeclaredPropertiesAnytype1 public static class MapWithUndeclaredPropertiesAnytype1
@@ -896,100 +915,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## Anytype1BoxedVoid -public static final class Anytype1BoxedVoid
+public record Anytype1BoxedVoid
implements [Anytype1Boxed](#anytype1boxed) -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 | | --------------------------- | | Anytype1BoxedVoid(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 | ## Anytype1BoxedBoolean -public static final class Anytype1BoxedBoolean
+public record Anytype1BoxedBoolean
implements [Anytype1Boxed](#anytype1boxed) -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 | | --------------------------- | | Anytype1BoxedBoolean(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 | ## Anytype1BoxedNumber -public static final class Anytype1BoxedNumber
+public record Anytype1BoxedNumber
implements [Anytype1Boxed](#anytype1boxed) -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 | | --------------------------- | | Anytype1BoxedNumber(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 | ## Anytype1BoxedString -public static final class Anytype1BoxedString
+public record Anytype1BoxedString
implements [Anytype1Boxed](#anytype1boxed) -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 | | --------------------------- | | Anytype1BoxedString(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 | ## Anytype1BoxedList -public static final class Anytype1BoxedList
+public record Anytype1BoxedList
implements [Anytype1Boxed](#anytype1boxed) -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 | | --------------------------- | | Anytype1BoxedList(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 | ## Anytype1BoxedMap -public static final class Anytype1BoxedMap
+public record Anytype1BoxedMap
implements [Anytype1Boxed](#anytype1boxed) -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 | | --------------------------- | | Anytype1BoxedMap(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 | ## Anytype1 public static class Anytype1
@@ -1010,20 +1035,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## MapOfMapPropertyBoxedMap -public static final class MapOfMapPropertyBoxedMap
+public record MapOfMapPropertyBoxedMap
implements [MapOfMapPropertyBoxed](#mapofmappropertyboxed) -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 | | --------------------------- | | MapOfMapPropertyBoxedMap([MapOfMapPropertyMap](#mapofmappropertymap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [MapOfMapPropertyMap](#mapofmappropertymap) | data
validated payload | +| [MapOfMapPropertyMap](#mapofmappropertymap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## MapOfMapProperty public static class MapOfMapProperty
@@ -1113,20 +1139,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalProperties1BoxedMap -public static final class AdditionalProperties1BoxedMap
+public record AdditionalProperties1BoxedMap
implements [AdditionalProperties1Boxed](#additionalproperties1boxed) -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 | | --------------------------- | | AdditionalProperties1BoxedMap([AdditionalPropertiesMap](#additionalpropertiesmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [AdditionalPropertiesMap](#additionalpropertiesmap) | data
validated payload | +| [AdditionalPropertiesMap](#additionalpropertiesmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## AdditionalProperties1 public static class AdditionalProperties1
@@ -1209,20 +1236,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalProperties2BoxedString -public static final class AdditionalProperties2BoxedString
+public record AdditionalProperties2BoxedString
implements [AdditionalProperties2Boxed](#additionalproperties2boxed) -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 | | --------------------------- | | AdditionalProperties2BoxedString(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 | ## AdditionalProperties2 public static class AdditionalProperties2
@@ -1243,20 +1271,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## MapPropertyBoxedMap -public static final class MapPropertyBoxedMap
+public record MapPropertyBoxedMap
implements [MapPropertyBoxed](#mappropertyboxed) -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 | | --------------------------- | | MapPropertyBoxedMap([MapPropertyMap](#mappropertymap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [MapPropertyMap](#mappropertymap) | data
validated payload | +| [MapPropertyMap](#mappropertymap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## MapProperty public static class MapProperty
@@ -1339,20 +1368,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedString -public static final class AdditionalPropertiesBoxedString
+public record AdditionalPropertiesBoxedString
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedString(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 | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesSchema.md b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesSchema.md index 4811335dcf3..db195321b6e 100644 --- a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesSchema.md @@ -12,47 +12,47 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [AdditionalPropertiesSchema.AdditionalPropertiesSchema1Boxed](#additionalpropertiesschema1boxed)
abstract sealed validated payload class | -| static class | [AdditionalPropertiesSchema.AdditionalPropertiesSchema1BoxedMap](#additionalpropertiesschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AdditionalPropertiesSchema.AdditionalPropertiesSchema1Boxed](#additionalpropertiesschema1boxed)
abstract sealed validated payload class | +| record | [AdditionalPropertiesSchema.AdditionalPropertiesSchema1BoxedMap](#additionalpropertiesschema1boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesSchema.AdditionalPropertiesSchema1](#additionalpropertiesschema1)
schema class | -| static class | [AdditionalPropertiesSchema.Schema2Boxed](#schema2boxed)
abstract sealed validated payload class | -| static class | [AdditionalPropertiesSchema.Schema2BoxedMap](#schema2boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AdditionalPropertiesSchema.Schema2Boxed](#schema2boxed)
abstract sealed validated payload class | +| record | [AdditionalPropertiesSchema.Schema2BoxedMap](#schema2boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesSchema.Schema2](#schema2)
schema class | | static class | [AdditionalPropertiesSchema.Schema2MapBuilder](#schema2mapbuilder)
builder for Map payloads | | static class | [AdditionalPropertiesSchema.Schema2Map](#schema2map)
output class for Map payloads | -| static class | [AdditionalPropertiesSchema.AdditionalProperties2Boxed](#additionalproperties2boxed)
abstract sealed validated payload class | -| static class | [AdditionalPropertiesSchema.AdditionalProperties2BoxedVoid](#additionalproperties2boxedvoid)
boxed class to store validated null payloads | -| static class | [AdditionalPropertiesSchema.AdditionalProperties2BoxedBoolean](#additionalproperties2boxedboolean)
boxed class to store validated boolean payloads | -| static class | [AdditionalPropertiesSchema.AdditionalProperties2BoxedNumber](#additionalproperties2boxednumber)
boxed class to store validated Number payloads | -| static class | [AdditionalPropertiesSchema.AdditionalProperties2BoxedString](#additionalproperties2boxedstring)
boxed class to store validated String payloads | -| static class | [AdditionalPropertiesSchema.AdditionalProperties2BoxedList](#additionalproperties2boxedlist)
boxed class to store validated List payloads | -| static class | [AdditionalPropertiesSchema.AdditionalProperties2BoxedMap](#additionalproperties2boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AdditionalPropertiesSchema.AdditionalProperties2Boxed](#additionalproperties2boxed)
abstract sealed validated payload class | +| record | [AdditionalPropertiesSchema.AdditionalProperties2BoxedVoid](#additionalproperties2boxedvoid)
boxed class to store validated null payloads | +| record | [AdditionalPropertiesSchema.AdditionalProperties2BoxedBoolean](#additionalproperties2boxedboolean)
boxed class to store validated boolean payloads | +| record | [AdditionalPropertiesSchema.AdditionalProperties2BoxedNumber](#additionalproperties2boxednumber)
boxed class to store validated Number payloads | +| record | [AdditionalPropertiesSchema.AdditionalProperties2BoxedString](#additionalproperties2boxedstring)
boxed class to store validated String payloads | +| record | [AdditionalPropertiesSchema.AdditionalProperties2BoxedList](#additionalproperties2boxedlist)
boxed class to store validated List payloads | +| record | [AdditionalPropertiesSchema.AdditionalProperties2BoxedMap](#additionalproperties2boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesSchema.AdditionalProperties2](#additionalproperties2)
schema class | -| static class | [AdditionalPropertiesSchema.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | -| static class | [AdditionalPropertiesSchema.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AdditionalPropertiesSchema.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | +| record | [AdditionalPropertiesSchema.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesSchema.Schema1](#schema1)
schema class | | static class | [AdditionalPropertiesSchema.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [AdditionalPropertiesSchema.Schema1Map](#schema1map)
output class for Map payloads | -| static class | [AdditionalPropertiesSchema.AdditionalProperties1Boxed](#additionalproperties1boxed)
abstract sealed validated payload class | -| static class | [AdditionalPropertiesSchema.AdditionalProperties1BoxedVoid](#additionalproperties1boxedvoid)
boxed class to store validated null payloads | -| static class | [AdditionalPropertiesSchema.AdditionalProperties1BoxedBoolean](#additionalproperties1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [AdditionalPropertiesSchema.AdditionalProperties1BoxedNumber](#additionalproperties1boxednumber)
boxed class to store validated Number payloads | -| static class | [AdditionalPropertiesSchema.AdditionalProperties1BoxedString](#additionalproperties1boxedstring)
boxed class to store validated String payloads | -| static class | [AdditionalPropertiesSchema.AdditionalProperties1BoxedList](#additionalproperties1boxedlist)
boxed class to store validated List payloads | -| static class | [AdditionalPropertiesSchema.AdditionalProperties1BoxedMap](#additionalproperties1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AdditionalPropertiesSchema.AdditionalProperties1Boxed](#additionalproperties1boxed)
abstract sealed validated payload class | +| record | [AdditionalPropertiesSchema.AdditionalProperties1BoxedVoid](#additionalproperties1boxedvoid)
boxed class to store validated null payloads | +| record | [AdditionalPropertiesSchema.AdditionalProperties1BoxedBoolean](#additionalproperties1boxedboolean)
boxed class to store validated boolean payloads | +| record | [AdditionalPropertiesSchema.AdditionalProperties1BoxedNumber](#additionalproperties1boxednumber)
boxed class to store validated Number payloads | +| record | [AdditionalPropertiesSchema.AdditionalProperties1BoxedString](#additionalproperties1boxedstring)
boxed class to store validated String payloads | +| record | [AdditionalPropertiesSchema.AdditionalProperties1BoxedList](#additionalproperties1boxedlist)
boxed class to store validated List payloads | +| record | [AdditionalPropertiesSchema.AdditionalProperties1BoxedMap](#additionalproperties1boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesSchema.AdditionalProperties1](#additionalproperties1)
schema class | -| static class | [AdditionalPropertiesSchema.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | -| static class | [AdditionalPropertiesSchema.Schema0BoxedMap](#schema0boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AdditionalPropertiesSchema.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | +| record | [AdditionalPropertiesSchema.Schema0BoxedMap](#schema0boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesSchema.Schema0](#schema0)
schema class | | static class | [AdditionalPropertiesSchema.Schema0MapBuilder](#schema0mapbuilder)
builder for Map payloads | | static class | [AdditionalPropertiesSchema.Schema0Map](#schema0map)
output class for Map payloads | -| static class | [AdditionalPropertiesSchema.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | -| static class | [AdditionalPropertiesSchema.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| static class | [AdditionalPropertiesSchema.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| static class | [AdditionalPropertiesSchema.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| static class | [AdditionalPropertiesSchema.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| static class | [AdditionalPropertiesSchema.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| static class | [AdditionalPropertiesSchema.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AdditionalPropertiesSchema.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| record | [AdditionalPropertiesSchema.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [AdditionalPropertiesSchema.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [AdditionalPropertiesSchema.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [AdditionalPropertiesSchema.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [AdditionalPropertiesSchema.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [AdditionalPropertiesSchema.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesSchema.AdditionalProperties](#additionalproperties)
schema class | ## AdditionalPropertiesSchema1Boxed @@ -63,20 +63,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesSchema1BoxedMap -public static final class AdditionalPropertiesSchema1BoxedMap
+public record AdditionalPropertiesSchema1BoxedMap
implements [AdditionalPropertiesSchema1Boxed](#additionalpropertiesschema1boxed) -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 | | --------------------------- | | AdditionalPropertiesSchema1BoxedMap(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 | ## AdditionalPropertiesSchema1 public static class AdditionalPropertiesSchema1
@@ -104,20 +105,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema2BoxedMap -public static final class Schema2BoxedMap
+public record Schema2BoxedMap
implements [Schema2Boxed](#schema2boxed) -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 | | --------------------------- | | Schema2BoxedMap([Schema2Map](#schema2map) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Schema2Map](#schema2map) | data
validated payload | +| [Schema2Map](#schema2map) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Schema2 public static class Schema2
@@ -211,100 +213,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalProperties2BoxedVoid -public static final class AdditionalProperties2BoxedVoid
+public record AdditionalProperties2BoxedVoid
implements [AdditionalProperties2Boxed](#additionalproperties2boxed) -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 | | --------------------------- | | AdditionalProperties2BoxedVoid(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 | ## AdditionalProperties2BoxedBoolean -public static final class AdditionalProperties2BoxedBoolean
+public record AdditionalProperties2BoxedBoolean
implements [AdditionalProperties2Boxed](#additionalproperties2boxed) -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 | | --------------------------- | | AdditionalProperties2BoxedBoolean(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 | ## AdditionalProperties2BoxedNumber -public static final class AdditionalProperties2BoxedNumber
+public record AdditionalProperties2BoxedNumber
implements [AdditionalProperties2Boxed](#additionalproperties2boxed) -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 | | --------------------------- | | AdditionalProperties2BoxedNumber(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 | ## AdditionalProperties2BoxedString -public static final class AdditionalProperties2BoxedString
+public record AdditionalProperties2BoxedString
implements [AdditionalProperties2Boxed](#additionalproperties2boxed) -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 | | --------------------------- | | AdditionalProperties2BoxedString(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 | ## AdditionalProperties2BoxedList -public static final class AdditionalProperties2BoxedList
+public record AdditionalProperties2BoxedList
implements [AdditionalProperties2Boxed](#additionalproperties2boxed) -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 | | --------------------------- | | AdditionalProperties2BoxedList(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 | ## AdditionalProperties2BoxedMap -public static final class AdditionalProperties2BoxedMap
+public record AdditionalProperties2BoxedMap
implements [AdditionalProperties2Boxed](#additionalproperties2boxed) -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 | | --------------------------- | | AdditionalProperties2BoxedMap(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 | ## AdditionalProperties2 public static class AdditionalProperties2
@@ -345,20 +353,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema1BoxedMap -public static final class Schema1BoxedMap
+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
@@ -452,100 +461,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalProperties1BoxedVoid -public static final class AdditionalProperties1BoxedVoid
+public record AdditionalProperties1BoxedVoid
implements [AdditionalProperties1Boxed](#additionalproperties1boxed) -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 | | --------------------------- | | AdditionalProperties1BoxedVoid(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 | ## AdditionalProperties1BoxedBoolean -public static final class AdditionalProperties1BoxedBoolean
+public record AdditionalProperties1BoxedBoolean
implements [AdditionalProperties1Boxed](#additionalproperties1boxed) -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 | | --------------------------- | | AdditionalProperties1BoxedBoolean(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 | ## AdditionalProperties1BoxedNumber -public static final class AdditionalProperties1BoxedNumber
+public record AdditionalProperties1BoxedNumber
implements [AdditionalProperties1Boxed](#additionalproperties1boxed) -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 | | --------------------------- | | AdditionalProperties1BoxedNumber(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 | ## AdditionalProperties1BoxedString -public static final class AdditionalProperties1BoxedString
+public record AdditionalProperties1BoxedString
implements [AdditionalProperties1Boxed](#additionalproperties1boxed) -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 | | --------------------------- | | AdditionalProperties1BoxedString(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 | ## AdditionalProperties1BoxedList -public static final class AdditionalProperties1BoxedList
+public record AdditionalProperties1BoxedList
implements [AdditionalProperties1Boxed](#additionalproperties1boxed) -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 | | --------------------------- | | AdditionalProperties1BoxedList(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 | ## AdditionalProperties1BoxedMap -public static final class AdditionalProperties1BoxedMap
+public record AdditionalProperties1BoxedMap
implements [AdditionalProperties1Boxed](#additionalproperties1boxed) -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 | | --------------------------- | | AdditionalProperties1BoxedMap(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 | ## AdditionalProperties1 public static class AdditionalProperties1
@@ -586,20 +601,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema0BoxedMap -public static final class Schema0BoxedMap
+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
@@ -693,100 +709,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedVoid -public static final class AdditionalPropertiesBoxedVoid
+public record AdditionalPropertiesBoxedVoid
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedVoid(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 | ## AdditionalPropertiesBoxedBoolean -public static final class AdditionalPropertiesBoxedBoolean
+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 | ## AdditionalPropertiesBoxedNumber -public static final class AdditionalPropertiesBoxedNumber
+public record AdditionalPropertiesBoxedNumber
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedNumber(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 | ## AdditionalPropertiesBoxedString -public static final class AdditionalPropertiesBoxedString
+public record AdditionalPropertiesBoxedString
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedString(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 | ## AdditionalPropertiesBoxedList -public static final class AdditionalPropertiesBoxedList
+public record AdditionalPropertiesBoxedList
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedList(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 | ## AdditionalPropertiesBoxedMap -public static final class AdditionalPropertiesBoxedMap
+public record AdditionalPropertiesBoxedMap
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedMap(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 | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesWithArrayOfEnums.md b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesWithArrayOfEnums.md index 36e42afdcb5..5f77650bab9 100644 --- a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesWithArrayOfEnums.md +++ b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesWithArrayOfEnums.md @@ -14,13 +14,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesWithArrayOfEnums1Boxed](#additionalpropertieswitharrayofenums1boxed)
abstract sealed validated payload class | -| static class | [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesWithArrayOfEnums1BoxedMap](#additionalpropertieswitharrayofenums1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesWithArrayOfEnums1Boxed](#additionalpropertieswitharrayofenums1boxed)
abstract sealed validated payload class | +| record | [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesWithArrayOfEnums1BoxedMap](#additionalpropertieswitharrayofenums1boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesWithArrayOfEnums1](#additionalpropertieswitharrayofenums1)
schema class | | static class | [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesWithArrayOfEnumsMapBuilder](#additionalpropertieswitharrayofenumsmapbuilder)
builder for Map payloads | | static class | [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesWithArrayOfEnumsMap](#additionalpropertieswitharrayofenumsmap)
output class for Map payloads | -| static class | [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | -| static class | [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| sealed interface | [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| record | [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | | static class | [AdditionalPropertiesWithArrayOfEnums.AdditionalProperties](#additionalproperties)
schema class | | static class | [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesListBuilder](#additionalpropertieslistbuilder)
builder for List payloads | | static class | [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesList](#additionalpropertieslist)
output class for List payloads | @@ -33,20 +33,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesWithArrayOfEnums1BoxedMap -public static final class AdditionalPropertiesWithArrayOfEnums1BoxedMap
+public record AdditionalPropertiesWithArrayOfEnums1BoxedMap
implements [AdditionalPropertiesWithArrayOfEnums1Boxed](#additionalpropertieswitharrayofenums1boxed) -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 | | --------------------------- | | AdditionalPropertiesWithArrayOfEnums1BoxedMap([AdditionalPropertiesWithArrayOfEnumsMap](#additionalpropertieswitharrayofenumsmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [AdditionalPropertiesWithArrayOfEnumsMap](#additionalpropertieswitharrayofenumsmap) | data
validated payload | +| [AdditionalPropertiesWithArrayOfEnumsMap](#additionalpropertieswitharrayofenumsmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## AdditionalPropertiesWithArrayOfEnums1 public static class AdditionalPropertiesWithArrayOfEnums1
@@ -133,20 +134,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedList -public static final class AdditionalPropertiesBoxedList
+public record AdditionalPropertiesBoxedList
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedList([AdditionalPropertiesList](#additionalpropertieslist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [AdditionalPropertiesList](#additionalpropertieslist) | data
validated payload | +| [AdditionalPropertiesList](#additionalpropertieslist) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/Address.md b/samples/client/petstore/java/docs/components/schemas/Address.md index c559711d41e..4615ad59ddb 100644 --- a/samples/client/petstore/java/docs/components/schemas/Address.md +++ b/samples/client/petstore/java/docs/components/schemas/Address.md @@ -12,13 +12,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Address.Address1Boxed](#address1boxed)
abstract sealed validated payload class | -| static class | [Address.Address1BoxedMap](#address1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Address.Address1Boxed](#address1boxed)
abstract sealed validated payload class | +| record | [Address.Address1BoxedMap](#address1boxedmap)
boxed class to store validated Map payloads | | static class | [Address.Address1](#address1)
schema class | | static class | [Address.AddressMapBuilder](#addressmapbuilder)
builder for Map payloads | | static class | [Address.AddressMap](#addressmap)
output class for Map payloads | -| static class | [Address.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | -| static class | [Address.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [Address.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| record | [Address.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | | static class | [Address.AdditionalProperties](#additionalproperties)
schema class | ## Address1Boxed @@ -29,20 +29,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Address1BoxedMap -public static final class Address1BoxedMap
+public record Address1BoxedMap
implements [Address1Boxed](#address1boxed) -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 | | --------------------------- | | Address1BoxedMap([AddressMap](#addressmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [AddressMap](#addressmap) | data
validated payload | +| [AddressMap](#addressmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Address1 public static class Address1
@@ -128,20 +129,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedNumber -public static final class AdditionalPropertiesBoxedNumber
+public record AdditionalPropertiesBoxedNumber
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedNumber(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 | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/Animal.md b/samples/client/petstore/java/docs/components/schemas/Animal.md index 1daa2967c4d..a24a2e1e397 100644 --- a/samples/client/petstore/java/docs/components/schemas/Animal.md +++ b/samples/client/petstore/java/docs/components/schemas/Animal.md @@ -12,16 +12,16 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Animal.Animal1Boxed](#animal1boxed)
abstract sealed validated payload class | -| static class | [Animal.Animal1BoxedMap](#animal1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Animal.Animal1Boxed](#animal1boxed)
abstract sealed validated payload class | +| record | [Animal.Animal1BoxedMap](#animal1boxedmap)
boxed class to store validated Map payloads | | static class | [Animal.Animal1](#animal1)
schema class | | static class | [Animal.AnimalMapBuilder](#animalmapbuilder)
builder for Map payloads | | static class | [Animal.AnimalMap](#animalmap)
output class for Map payloads | -| static class | [Animal.ColorBoxed](#colorboxed)
abstract sealed validated payload class | -| static class | [Animal.ColorBoxedString](#colorboxedstring)
boxed class to store validated String payloads | +| sealed interface | [Animal.ColorBoxed](#colorboxed)
abstract sealed validated payload class | +| record | [Animal.ColorBoxedString](#colorboxedstring)
boxed class to store validated String payloads | | static class | [Animal.Color](#color)
schema class | -| static class | [Animal.ClassNameBoxed](#classnameboxed)
abstract sealed validated payload class | -| static class | [Animal.ClassNameBoxedString](#classnameboxedstring)
boxed class to store validated String payloads | +| sealed interface | [Animal.ClassNameBoxed](#classnameboxed)
abstract sealed validated payload class | +| record | [Animal.ClassNameBoxedString](#classnameboxedstring)
boxed class to store validated String payloads | | static class | [Animal.ClassName](#classname)
schema class | ## Animal1Boxed @@ -32,20 +32,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Animal1BoxedMap -public static final class Animal1BoxedMap
+public record Animal1BoxedMap
implements [Animal1Boxed](#animal1boxed) -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 | | --------------------------- | | Animal1BoxedMap([AnimalMap](#animalmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [AnimalMap](#animalmap) | data
validated payload | +| [AnimalMap](#animalmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Animal1 public static class Animal1
@@ -158,20 +159,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ColorBoxedString -public static final class ColorBoxedString
+public record ColorBoxedString
implements [ColorBoxed](#colorboxed) -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 | | --------------------------- | | ColorBoxedString(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 | ## Color public static class Color
@@ -221,20 +223,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ClassNameBoxedString -public static final class ClassNameBoxedString
+public record ClassNameBoxedString
implements [ClassNameBoxed](#classnameboxed) -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 | | --------------------------- | | ClassNameBoxedString(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 | ## ClassName public static class ClassName
diff --git a/samples/client/petstore/java/docs/components/schemas/AnimalFarm.md b/samples/client/petstore/java/docs/components/schemas/AnimalFarm.md index f3710853ff1..894f3ecf152 100644 --- a/samples/client/petstore/java/docs/components/schemas/AnimalFarm.md +++ b/samples/client/petstore/java/docs/components/schemas/AnimalFarm.md @@ -12,8 +12,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [AnimalFarm.AnimalFarm1Boxed](#animalfarm1boxed)
abstract sealed validated payload class | -| static class | [AnimalFarm.AnimalFarm1BoxedList](#animalfarm1boxedlist)
boxed class to store validated List payloads | +| sealed interface | [AnimalFarm.AnimalFarm1Boxed](#animalfarm1boxed)
abstract sealed validated payload class | +| record | [AnimalFarm.AnimalFarm1BoxedList](#animalfarm1boxedlist)
boxed class to store validated List payloads | | static class | [AnimalFarm.AnimalFarm1](#animalfarm1)
schema class | | static class | [AnimalFarm.AnimalFarmListBuilder](#animalfarmlistbuilder)
builder for List payloads | | static class | [AnimalFarm.AnimalFarmList](#animalfarmlist)
output class for List payloads | @@ -26,20 +26,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## AnimalFarm1BoxedList -public static final class AnimalFarm1BoxedList
+public record AnimalFarm1BoxedList
implements [AnimalFarm1Boxed](#animalfarm1boxed) -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 | | --------------------------- | | AnimalFarm1BoxedList([AnimalFarmList](#animalfarmlist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [AnimalFarmList](#animalfarmlist) | data
validated payload | +| [AnimalFarmList](#animalfarmlist) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## AnimalFarm1 public static class AnimalFarm1
diff --git a/samples/client/petstore/java/docs/components/schemas/AnyTypeAndFormat.md b/samples/client/petstore/java/docs/components/schemas/AnyTypeAndFormat.md index b860b25241e..1783d0b7ab1 100644 --- a/samples/client/petstore/java/docs/components/schemas/AnyTypeAndFormat.md +++ b/samples/client/petstore/java/docs/components/schemas/AnyTypeAndFormat.md @@ -12,82 +12,82 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [AnyTypeAndFormat.AnyTypeAndFormat1Boxed](#anytypeandformat1boxed)
abstract sealed validated payload class | -| static class | [AnyTypeAndFormat.AnyTypeAndFormat1BoxedMap](#anytypeandformat1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AnyTypeAndFormat.AnyTypeAndFormat1Boxed](#anytypeandformat1boxed)
abstract sealed validated payload class | +| record | [AnyTypeAndFormat.AnyTypeAndFormat1BoxedMap](#anytypeandformat1boxedmap)
boxed class to store validated Map payloads | | static class | [AnyTypeAndFormat.AnyTypeAndFormat1](#anytypeandformat1)
schema class | | static class | [AnyTypeAndFormat.AnyTypeAndFormatMapBuilder](#anytypeandformatmapbuilder)
builder for Map payloads | | static class | [AnyTypeAndFormat.AnyTypeAndFormatMap](#anytypeandformatmap)
output class for Map payloads | -| static class | [AnyTypeAndFormat.FloatSchemaBoxed](#floatschemaboxed)
abstract sealed validated payload class | -| static class | [AnyTypeAndFormat.FloatSchemaBoxedVoid](#floatschemaboxedvoid)
boxed class to store validated null payloads | -| static class | [AnyTypeAndFormat.FloatSchemaBoxedBoolean](#floatschemaboxedboolean)
boxed class to store validated boolean payloads | -| static class | [AnyTypeAndFormat.FloatSchemaBoxedNumber](#floatschemaboxednumber)
boxed class to store validated Number payloads | -| static class | [AnyTypeAndFormat.FloatSchemaBoxedString](#floatschemaboxedstring)
boxed class to store validated String payloads | -| static class | [AnyTypeAndFormat.FloatSchemaBoxedList](#floatschemaboxedlist)
boxed class to store validated List payloads | -| static class | [AnyTypeAndFormat.FloatSchemaBoxedMap](#floatschemaboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AnyTypeAndFormat.FloatSchemaBoxed](#floatschemaboxed)
abstract sealed validated payload class | +| record | [AnyTypeAndFormat.FloatSchemaBoxedVoid](#floatschemaboxedvoid)
boxed class to store validated null payloads | +| record | [AnyTypeAndFormat.FloatSchemaBoxedBoolean](#floatschemaboxedboolean)
boxed class to store validated boolean payloads | +| record | [AnyTypeAndFormat.FloatSchemaBoxedNumber](#floatschemaboxednumber)
boxed class to store validated Number payloads | +| record | [AnyTypeAndFormat.FloatSchemaBoxedString](#floatschemaboxedstring)
boxed class to store validated String payloads | +| record | [AnyTypeAndFormat.FloatSchemaBoxedList](#floatschemaboxedlist)
boxed class to store validated List payloads | +| record | [AnyTypeAndFormat.FloatSchemaBoxedMap](#floatschemaboxedmap)
boxed class to store validated Map payloads | | static class | [AnyTypeAndFormat.FloatSchema](#floatschema)
schema class | -| static class | [AnyTypeAndFormat.DoubleSchemaBoxed](#doubleschemaboxed)
abstract sealed validated payload class | -| static class | [AnyTypeAndFormat.DoubleSchemaBoxedVoid](#doubleschemaboxedvoid)
boxed class to store validated null payloads | -| static class | [AnyTypeAndFormat.DoubleSchemaBoxedBoolean](#doubleschemaboxedboolean)
boxed class to store validated boolean payloads | -| static class | [AnyTypeAndFormat.DoubleSchemaBoxedNumber](#doubleschemaboxednumber)
boxed class to store validated Number payloads | -| static class | [AnyTypeAndFormat.DoubleSchemaBoxedString](#doubleschemaboxedstring)
boxed class to store validated String payloads | -| static class | [AnyTypeAndFormat.DoubleSchemaBoxedList](#doubleschemaboxedlist)
boxed class to store validated List payloads | -| static class | [AnyTypeAndFormat.DoubleSchemaBoxedMap](#doubleschemaboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AnyTypeAndFormat.DoubleSchemaBoxed](#doubleschemaboxed)
abstract sealed validated payload class | +| record | [AnyTypeAndFormat.DoubleSchemaBoxedVoid](#doubleschemaboxedvoid)
boxed class to store validated null payloads | +| record | [AnyTypeAndFormat.DoubleSchemaBoxedBoolean](#doubleschemaboxedboolean)
boxed class to store validated boolean payloads | +| record | [AnyTypeAndFormat.DoubleSchemaBoxedNumber](#doubleschemaboxednumber)
boxed class to store validated Number payloads | +| record | [AnyTypeAndFormat.DoubleSchemaBoxedString](#doubleschemaboxedstring)
boxed class to store validated String payloads | +| record | [AnyTypeAndFormat.DoubleSchemaBoxedList](#doubleschemaboxedlist)
boxed class to store validated List payloads | +| record | [AnyTypeAndFormat.DoubleSchemaBoxedMap](#doubleschemaboxedmap)
boxed class to store validated Map payloads | | static class | [AnyTypeAndFormat.DoubleSchema](#doubleschema)
schema class | -| static class | [AnyTypeAndFormat.Int64Boxed](#int64boxed)
abstract sealed validated payload class | -| static class | [AnyTypeAndFormat.Int64BoxedVoid](#int64boxedvoid)
boxed class to store validated null payloads | -| static class | [AnyTypeAndFormat.Int64BoxedBoolean](#int64boxedboolean)
boxed class to store validated boolean payloads | -| static class | [AnyTypeAndFormat.Int64BoxedNumber](#int64boxednumber)
boxed class to store validated Number payloads | -| static class | [AnyTypeAndFormat.Int64BoxedString](#int64boxedstring)
boxed class to store validated String payloads | -| static class | [AnyTypeAndFormat.Int64BoxedList](#int64boxedlist)
boxed class to store validated List payloads | -| static class | [AnyTypeAndFormat.Int64BoxedMap](#int64boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AnyTypeAndFormat.Int64Boxed](#int64boxed)
abstract sealed validated payload class | +| record | [AnyTypeAndFormat.Int64BoxedVoid](#int64boxedvoid)
boxed class to store validated null payloads | +| record | [AnyTypeAndFormat.Int64BoxedBoolean](#int64boxedboolean)
boxed class to store validated boolean payloads | +| record | [AnyTypeAndFormat.Int64BoxedNumber](#int64boxednumber)
boxed class to store validated Number payloads | +| record | [AnyTypeAndFormat.Int64BoxedString](#int64boxedstring)
boxed class to store validated String payloads | +| record | [AnyTypeAndFormat.Int64BoxedList](#int64boxedlist)
boxed class to store validated List payloads | +| record | [AnyTypeAndFormat.Int64BoxedMap](#int64boxedmap)
boxed class to store validated Map payloads | | static class | [AnyTypeAndFormat.Int64](#int64)
schema class | -| static class | [AnyTypeAndFormat.Int32Boxed](#int32boxed)
abstract sealed validated payload class | -| static class | [AnyTypeAndFormat.Int32BoxedVoid](#int32boxedvoid)
boxed class to store validated null payloads | -| static class | [AnyTypeAndFormat.Int32BoxedBoolean](#int32boxedboolean)
boxed class to store validated boolean payloads | -| static class | [AnyTypeAndFormat.Int32BoxedNumber](#int32boxednumber)
boxed class to store validated Number payloads | -| static class | [AnyTypeAndFormat.Int32BoxedString](#int32boxedstring)
boxed class to store validated String payloads | -| static class | [AnyTypeAndFormat.Int32BoxedList](#int32boxedlist)
boxed class to store validated List payloads | -| static class | [AnyTypeAndFormat.Int32BoxedMap](#int32boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AnyTypeAndFormat.Int32Boxed](#int32boxed)
abstract sealed validated payload class | +| record | [AnyTypeAndFormat.Int32BoxedVoid](#int32boxedvoid)
boxed class to store validated null payloads | +| record | [AnyTypeAndFormat.Int32BoxedBoolean](#int32boxedboolean)
boxed class to store validated boolean payloads | +| record | [AnyTypeAndFormat.Int32BoxedNumber](#int32boxednumber)
boxed class to store validated Number payloads | +| record | [AnyTypeAndFormat.Int32BoxedString](#int32boxedstring)
boxed class to store validated String payloads | +| record | [AnyTypeAndFormat.Int32BoxedList](#int32boxedlist)
boxed class to store validated List payloads | +| record | [AnyTypeAndFormat.Int32BoxedMap](#int32boxedmap)
boxed class to store validated Map payloads | | static class | [AnyTypeAndFormat.Int32](#int32)
schema class | -| static class | [AnyTypeAndFormat.BinaryBoxed](#binaryboxed)
abstract sealed validated payload class | -| static class | [AnyTypeAndFormat.BinaryBoxedVoid](#binaryboxedvoid)
boxed class to store validated null payloads | -| static class | [AnyTypeAndFormat.BinaryBoxedBoolean](#binaryboxedboolean)
boxed class to store validated boolean payloads | -| static class | [AnyTypeAndFormat.BinaryBoxedNumber](#binaryboxednumber)
boxed class to store validated Number payloads | -| static class | [AnyTypeAndFormat.BinaryBoxedString](#binaryboxedstring)
boxed class to store validated String payloads | -| static class | [AnyTypeAndFormat.BinaryBoxedList](#binaryboxedlist)
boxed class to store validated List payloads | -| static class | [AnyTypeAndFormat.BinaryBoxedMap](#binaryboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AnyTypeAndFormat.BinaryBoxed](#binaryboxed)
abstract sealed validated payload class | +| record | [AnyTypeAndFormat.BinaryBoxedVoid](#binaryboxedvoid)
boxed class to store validated null payloads | +| record | [AnyTypeAndFormat.BinaryBoxedBoolean](#binaryboxedboolean)
boxed class to store validated boolean payloads | +| record | [AnyTypeAndFormat.BinaryBoxedNumber](#binaryboxednumber)
boxed class to store validated Number payloads | +| record | [AnyTypeAndFormat.BinaryBoxedString](#binaryboxedstring)
boxed class to store validated String payloads | +| record | [AnyTypeAndFormat.BinaryBoxedList](#binaryboxedlist)
boxed class to store validated List payloads | +| record | [AnyTypeAndFormat.BinaryBoxedMap](#binaryboxedmap)
boxed class to store validated Map payloads | | static class | [AnyTypeAndFormat.Binary](#binary)
schema class | -| static class | [AnyTypeAndFormat.NumberSchemaBoxed](#numberschemaboxed)
abstract sealed validated payload class | -| static class | [AnyTypeAndFormat.NumberSchemaBoxedVoid](#numberschemaboxedvoid)
boxed class to store validated null payloads | -| static class | [AnyTypeAndFormat.NumberSchemaBoxedBoolean](#numberschemaboxedboolean)
boxed class to store validated boolean payloads | -| static class | [AnyTypeAndFormat.NumberSchemaBoxedNumber](#numberschemaboxednumber)
boxed class to store validated Number payloads | -| static class | [AnyTypeAndFormat.NumberSchemaBoxedString](#numberschemaboxedstring)
boxed class to store validated String payloads | -| static class | [AnyTypeAndFormat.NumberSchemaBoxedList](#numberschemaboxedlist)
boxed class to store validated List payloads | -| static class | [AnyTypeAndFormat.NumberSchemaBoxedMap](#numberschemaboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AnyTypeAndFormat.NumberSchemaBoxed](#numberschemaboxed)
abstract sealed validated payload class | +| record | [AnyTypeAndFormat.NumberSchemaBoxedVoid](#numberschemaboxedvoid)
boxed class to store validated null payloads | +| record | [AnyTypeAndFormat.NumberSchemaBoxedBoolean](#numberschemaboxedboolean)
boxed class to store validated boolean payloads | +| record | [AnyTypeAndFormat.NumberSchemaBoxedNumber](#numberschemaboxednumber)
boxed class to store validated Number payloads | +| record | [AnyTypeAndFormat.NumberSchemaBoxedString](#numberschemaboxedstring)
boxed class to store validated String payloads | +| record | [AnyTypeAndFormat.NumberSchemaBoxedList](#numberschemaboxedlist)
boxed class to store validated List payloads | +| record | [AnyTypeAndFormat.NumberSchemaBoxedMap](#numberschemaboxedmap)
boxed class to store validated Map payloads | | static class | [AnyTypeAndFormat.NumberSchema](#numberschema)
schema class | -| static class | [AnyTypeAndFormat.DatetimeBoxed](#datetimeboxed)
abstract sealed validated payload class | -| static class | [AnyTypeAndFormat.DatetimeBoxedVoid](#datetimeboxedvoid)
boxed class to store validated null payloads | -| static class | [AnyTypeAndFormat.DatetimeBoxedBoolean](#datetimeboxedboolean)
boxed class to store validated boolean payloads | -| static class | [AnyTypeAndFormat.DatetimeBoxedNumber](#datetimeboxednumber)
boxed class to store validated Number payloads | -| static class | [AnyTypeAndFormat.DatetimeBoxedString](#datetimeboxedstring)
boxed class to store validated String payloads | -| static class | [AnyTypeAndFormat.DatetimeBoxedList](#datetimeboxedlist)
boxed class to store validated List payloads | -| static class | [AnyTypeAndFormat.DatetimeBoxedMap](#datetimeboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AnyTypeAndFormat.DatetimeBoxed](#datetimeboxed)
abstract sealed validated payload class | +| record | [AnyTypeAndFormat.DatetimeBoxedVoid](#datetimeboxedvoid)
boxed class to store validated null payloads | +| record | [AnyTypeAndFormat.DatetimeBoxedBoolean](#datetimeboxedboolean)
boxed class to store validated boolean payloads | +| record | [AnyTypeAndFormat.DatetimeBoxedNumber](#datetimeboxednumber)
boxed class to store validated Number payloads | +| record | [AnyTypeAndFormat.DatetimeBoxedString](#datetimeboxedstring)
boxed class to store validated String payloads | +| record | [AnyTypeAndFormat.DatetimeBoxedList](#datetimeboxedlist)
boxed class to store validated List payloads | +| record | [AnyTypeAndFormat.DatetimeBoxedMap](#datetimeboxedmap)
boxed class to store validated Map payloads | | static class | [AnyTypeAndFormat.Datetime](#datetime)
schema class | -| static class | [AnyTypeAndFormat.DateBoxed](#dateboxed)
abstract sealed validated payload class | -| static class | [AnyTypeAndFormat.DateBoxedVoid](#dateboxedvoid)
boxed class to store validated null payloads | -| static class | [AnyTypeAndFormat.DateBoxedBoolean](#dateboxedboolean)
boxed class to store validated boolean payloads | -| static class | [AnyTypeAndFormat.DateBoxedNumber](#dateboxednumber)
boxed class to store validated Number payloads | -| static class | [AnyTypeAndFormat.DateBoxedString](#dateboxedstring)
boxed class to store validated String payloads | -| static class | [AnyTypeAndFormat.DateBoxedList](#dateboxedlist)
boxed class to store validated List payloads | -| static class | [AnyTypeAndFormat.DateBoxedMap](#dateboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AnyTypeAndFormat.DateBoxed](#dateboxed)
abstract sealed validated payload class | +| record | [AnyTypeAndFormat.DateBoxedVoid](#dateboxedvoid)
boxed class to store validated null payloads | +| record | [AnyTypeAndFormat.DateBoxedBoolean](#dateboxedboolean)
boxed class to store validated boolean payloads | +| record | [AnyTypeAndFormat.DateBoxedNumber](#dateboxednumber)
boxed class to store validated Number payloads | +| record | [AnyTypeAndFormat.DateBoxedString](#dateboxedstring)
boxed class to store validated String payloads | +| record | [AnyTypeAndFormat.DateBoxedList](#dateboxedlist)
boxed class to store validated List payloads | +| record | [AnyTypeAndFormat.DateBoxedMap](#dateboxedmap)
boxed class to store validated Map payloads | | static class | [AnyTypeAndFormat.Date](#date)
schema class | -| static class | [AnyTypeAndFormat.UuidSchemaBoxed](#uuidschemaboxed)
abstract sealed validated payload class | -| static class | [AnyTypeAndFormat.UuidSchemaBoxedVoid](#uuidschemaboxedvoid)
boxed class to store validated null payloads | -| static class | [AnyTypeAndFormat.UuidSchemaBoxedBoolean](#uuidschemaboxedboolean)
boxed class to store validated boolean payloads | -| static class | [AnyTypeAndFormat.UuidSchemaBoxedNumber](#uuidschemaboxednumber)
boxed class to store validated Number payloads | -| static class | [AnyTypeAndFormat.UuidSchemaBoxedString](#uuidschemaboxedstring)
boxed class to store validated String payloads | -| static class | [AnyTypeAndFormat.UuidSchemaBoxedList](#uuidschemaboxedlist)
boxed class to store validated List payloads | -| static class | [AnyTypeAndFormat.UuidSchemaBoxedMap](#uuidschemaboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AnyTypeAndFormat.UuidSchemaBoxed](#uuidschemaboxed)
abstract sealed validated payload class | +| record | [AnyTypeAndFormat.UuidSchemaBoxedVoid](#uuidschemaboxedvoid)
boxed class to store validated null payloads | +| record | [AnyTypeAndFormat.UuidSchemaBoxedBoolean](#uuidschemaboxedboolean)
boxed class to store validated boolean payloads | +| record | [AnyTypeAndFormat.UuidSchemaBoxedNumber](#uuidschemaboxednumber)
boxed class to store validated Number payloads | +| record | [AnyTypeAndFormat.UuidSchemaBoxedString](#uuidschemaboxedstring)
boxed class to store validated String payloads | +| record | [AnyTypeAndFormat.UuidSchemaBoxedList](#uuidschemaboxedlist)
boxed class to store validated List payloads | +| record | [AnyTypeAndFormat.UuidSchemaBoxedMap](#uuidschemaboxedmap)
boxed class to store validated Map payloads | | static class | [AnyTypeAndFormat.UuidSchema](#uuidschema)
schema class | ## AnyTypeAndFormat1Boxed @@ -98,20 +98,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## AnyTypeAndFormat1BoxedMap -public static final class AnyTypeAndFormat1BoxedMap
+public record AnyTypeAndFormat1BoxedMap
implements [AnyTypeAndFormat1Boxed](#anytypeandformat1boxed) -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 | | --------------------------- | | AnyTypeAndFormat1BoxedMap([AnyTypeAndFormatMap](#anytypeandformatmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [AnyTypeAndFormatMap](#anytypeandformatmap) | data
validated payload | +| [AnyTypeAndFormatMap](#anytypeandformatmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## AnyTypeAndFormat1 public static class AnyTypeAndFormat1
@@ -291,100 +292,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## FloatSchemaBoxedVoid -public static final class FloatSchemaBoxedVoid
+public record FloatSchemaBoxedVoid
implements [FloatSchemaBoxed](#floatschemaboxed) -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 | | --------------------------- | | FloatSchemaBoxedVoid(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 | ## FloatSchemaBoxedBoolean -public static final class FloatSchemaBoxedBoolean
+public record FloatSchemaBoxedBoolean
implements [FloatSchemaBoxed](#floatschemaboxed) -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 | | --------------------------- | | FloatSchemaBoxedBoolean(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 | ## FloatSchemaBoxedNumber -public static final class FloatSchemaBoxedNumber
+public record FloatSchemaBoxedNumber
implements [FloatSchemaBoxed](#floatschemaboxed) -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 | | --------------------------- | | FloatSchemaBoxedNumber(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 | ## FloatSchemaBoxedString -public static final class FloatSchemaBoxedString
+public record FloatSchemaBoxedString
implements [FloatSchemaBoxed](#floatschemaboxed) -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 | | --------------------------- | | FloatSchemaBoxedString(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 | ## FloatSchemaBoxedList -public static final class FloatSchemaBoxedList
+public record FloatSchemaBoxedList
implements [FloatSchemaBoxed](#floatschemaboxed) -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 | | --------------------------- | | FloatSchemaBoxedList(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 | ## FloatSchemaBoxedMap -public static final class FloatSchemaBoxedMap
+public record FloatSchemaBoxedMap
implements [FloatSchemaBoxed](#floatschemaboxed) -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 | | --------------------------- | | FloatSchemaBoxedMap(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 | ## FloatSchema public static class FloatSchema
@@ -430,100 +437,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## DoubleSchemaBoxedVoid -public static final class DoubleSchemaBoxedVoid
+public record DoubleSchemaBoxedVoid
implements [DoubleSchemaBoxed](#doubleschemaboxed) -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 | | --------------------------- | | DoubleSchemaBoxedVoid(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 | ## DoubleSchemaBoxedBoolean -public static final class DoubleSchemaBoxedBoolean
+public record DoubleSchemaBoxedBoolean
implements [DoubleSchemaBoxed](#doubleschemaboxed) -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 | | --------------------------- | | DoubleSchemaBoxedBoolean(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 | ## DoubleSchemaBoxedNumber -public static final class DoubleSchemaBoxedNumber
+public record DoubleSchemaBoxedNumber
implements [DoubleSchemaBoxed](#doubleschemaboxed) -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 | | --------------------------- | | DoubleSchemaBoxedNumber(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 | ## DoubleSchemaBoxedString -public static final class DoubleSchemaBoxedString
+public record DoubleSchemaBoxedString
implements [DoubleSchemaBoxed](#doubleschemaboxed) -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 | | --------------------------- | | DoubleSchemaBoxedString(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 | ## DoubleSchemaBoxedList -public static final class DoubleSchemaBoxedList
+public record DoubleSchemaBoxedList
implements [DoubleSchemaBoxed](#doubleschemaboxed) -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 | | --------------------------- | | DoubleSchemaBoxedList(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 | ## DoubleSchemaBoxedMap -public static final class DoubleSchemaBoxedMap
+public record DoubleSchemaBoxedMap
implements [DoubleSchemaBoxed](#doubleschemaboxed) -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 | | --------------------------- | | DoubleSchemaBoxedMap(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 | ## DoubleSchema public static class DoubleSchema
@@ -569,100 +582,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## Int64BoxedVoid -public static final class Int64BoxedVoid
+public record Int64BoxedVoid
implements [Int64Boxed](#int64boxed) -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 | | --------------------------- | | Int64BoxedVoid(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 | ## Int64BoxedBoolean -public static final class Int64BoxedBoolean
+public record Int64BoxedBoolean
implements [Int64Boxed](#int64boxed) -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 | | --------------------------- | | Int64BoxedBoolean(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 | ## Int64BoxedNumber -public static final class Int64BoxedNumber
+public record Int64BoxedNumber
implements [Int64Boxed](#int64boxed) -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 | | --------------------------- | | Int64BoxedNumber(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 | ## Int64BoxedString -public static final class Int64BoxedString
+public record Int64BoxedString
implements [Int64Boxed](#int64boxed) -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 | | --------------------------- | | Int64BoxedString(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 | ## Int64BoxedList -public static final class Int64BoxedList
+public record Int64BoxedList
implements [Int64Boxed](#int64boxed) -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 | | --------------------------- | | Int64BoxedList(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 | ## Int64BoxedMap -public static final class Int64BoxedMap
+public record Int64BoxedMap
implements [Int64Boxed](#int64boxed) -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 | | --------------------------- | | Int64BoxedMap(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 | ## Int64 public static class Int64
@@ -708,100 +727,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## Int32BoxedVoid -public static final class Int32BoxedVoid
+public record Int32BoxedVoid
implements [Int32Boxed](#int32boxed) -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 | | --------------------------- | | Int32BoxedVoid(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 | ## Int32BoxedBoolean -public static final class Int32BoxedBoolean
+public record Int32BoxedBoolean
implements [Int32Boxed](#int32boxed) -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 | | --------------------------- | | Int32BoxedBoolean(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 | ## Int32BoxedNumber -public static final class Int32BoxedNumber
+public record Int32BoxedNumber
implements [Int32Boxed](#int32boxed) -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 | | --------------------------- | | Int32BoxedNumber(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 | ## Int32BoxedString -public static final class Int32BoxedString
+public record Int32BoxedString
implements [Int32Boxed](#int32boxed) -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 | | --------------------------- | | Int32BoxedString(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 | ## Int32BoxedList -public static final class Int32BoxedList
+public record Int32BoxedList
implements [Int32Boxed](#int32boxed) -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 | | --------------------------- | | Int32BoxedList(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 | ## Int32BoxedMap -public static final class Int32BoxedMap
+public record Int32BoxedMap
implements [Int32Boxed](#int32boxed) -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 | | --------------------------- | | Int32BoxedMap(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 | ## Int32 public static class Int32
@@ -847,100 +872,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## BinaryBoxedVoid -public static final class BinaryBoxedVoid
+public record BinaryBoxedVoid
implements [BinaryBoxed](#binaryboxed) -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 | | --------------------------- | | BinaryBoxedVoid(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 | ## BinaryBoxedBoolean -public static final class BinaryBoxedBoolean
+public record BinaryBoxedBoolean
implements [BinaryBoxed](#binaryboxed) -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 | | --------------------------- | | BinaryBoxedBoolean(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 | ## BinaryBoxedNumber -public static final class BinaryBoxedNumber
+public record BinaryBoxedNumber
implements [BinaryBoxed](#binaryboxed) -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 | | --------------------------- | | BinaryBoxedNumber(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 | ## BinaryBoxedString -public static final class BinaryBoxedString
+public record BinaryBoxedString
implements [BinaryBoxed](#binaryboxed) -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 | | --------------------------- | | BinaryBoxedString(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 | ## BinaryBoxedList -public static final class BinaryBoxedList
+public record BinaryBoxedList
implements [BinaryBoxed](#binaryboxed) -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 | | --------------------------- | | BinaryBoxedList(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 | ## BinaryBoxedMap -public static final class BinaryBoxedMap
+public record BinaryBoxedMap
implements [BinaryBoxed](#binaryboxed) -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 | | --------------------------- | | BinaryBoxedMap(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 | ## Binary public static class Binary
@@ -986,100 +1017,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## NumberSchemaBoxedVoid -public static final class NumberSchemaBoxedVoid
+public record NumberSchemaBoxedVoid
implements [NumberSchemaBoxed](#numberschemaboxed) -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 | | --------------------------- | | NumberSchemaBoxedVoid(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 | ## NumberSchemaBoxedBoolean -public static final class NumberSchemaBoxedBoolean
+public record NumberSchemaBoxedBoolean
implements [NumberSchemaBoxed](#numberschemaboxed) -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 | | --------------------------- | | NumberSchemaBoxedBoolean(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 | ## NumberSchemaBoxedNumber -public static final class NumberSchemaBoxedNumber
+public record NumberSchemaBoxedNumber
implements [NumberSchemaBoxed](#numberschemaboxed) -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 | | --------------------------- | | NumberSchemaBoxedNumber(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 | ## NumberSchemaBoxedString -public static final class NumberSchemaBoxedString
+public record NumberSchemaBoxedString
implements [NumberSchemaBoxed](#numberschemaboxed) -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 | | --------------------------- | | NumberSchemaBoxedString(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 | ## NumberSchemaBoxedList -public static final class NumberSchemaBoxedList
+public record NumberSchemaBoxedList
implements [NumberSchemaBoxed](#numberschemaboxed) -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 | | --------------------------- | | NumberSchemaBoxedList(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 | ## NumberSchemaBoxedMap -public static final class NumberSchemaBoxedMap
+public record NumberSchemaBoxedMap
implements [NumberSchemaBoxed](#numberschemaboxed) -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 | | --------------------------- | | NumberSchemaBoxedMap(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 | ## NumberSchema public static class NumberSchema
@@ -1125,100 +1162,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## DatetimeBoxedVoid -public static final class DatetimeBoxedVoid
+public record DatetimeBoxedVoid
implements [DatetimeBoxed](#datetimeboxed) -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 | | --------------------------- | | DatetimeBoxedVoid(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 | ## DatetimeBoxedBoolean -public static final class DatetimeBoxedBoolean
+public record DatetimeBoxedBoolean
implements [DatetimeBoxed](#datetimeboxed) -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 | | --------------------------- | | DatetimeBoxedBoolean(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 | ## DatetimeBoxedNumber -public static final class DatetimeBoxedNumber
+public record DatetimeBoxedNumber
implements [DatetimeBoxed](#datetimeboxed) -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 | | --------------------------- | | DatetimeBoxedNumber(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 | ## DatetimeBoxedString -public static final class DatetimeBoxedString
+public record DatetimeBoxedString
implements [DatetimeBoxed](#datetimeboxed) -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 | | --------------------------- | | DatetimeBoxedString(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 | ## DatetimeBoxedList -public static final class DatetimeBoxedList
+public record DatetimeBoxedList
implements [DatetimeBoxed](#datetimeboxed) -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 | | --------------------------- | | DatetimeBoxedList(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 | ## DatetimeBoxedMap -public static final class DatetimeBoxedMap
+public record DatetimeBoxedMap
implements [DatetimeBoxed](#datetimeboxed) -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 | | --------------------------- | | DatetimeBoxedMap(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 | ## Datetime public static class Datetime
@@ -1264,100 +1307,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## DateBoxedVoid -public static final class DateBoxedVoid
+public record DateBoxedVoid
implements [DateBoxed](#dateboxed) -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 | | --------------------------- | | DateBoxedVoid(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 | ## DateBoxedBoolean -public static final class DateBoxedBoolean
+public record DateBoxedBoolean
implements [DateBoxed](#dateboxed) -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 | | --------------------------- | | DateBoxedBoolean(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 | ## DateBoxedNumber -public static final class DateBoxedNumber
+public record DateBoxedNumber
implements [DateBoxed](#dateboxed) -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 | | --------------------------- | | DateBoxedNumber(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 | ## DateBoxedString -public static final class DateBoxedString
+public record DateBoxedString
implements [DateBoxed](#dateboxed) -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 | | --------------------------- | | DateBoxedString(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 | ## DateBoxedList -public static final class DateBoxedList
+public record DateBoxedList
implements [DateBoxed](#dateboxed) -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 | | --------------------------- | | DateBoxedList(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 | ## DateBoxedMap -public static final class DateBoxedMap
+public record DateBoxedMap
implements [DateBoxed](#dateboxed) -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 | | --------------------------- | | DateBoxedMap(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 | ## Date public static class Date
@@ -1403,100 +1452,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## UuidSchemaBoxedVoid -public static final class UuidSchemaBoxedVoid
+public record UuidSchemaBoxedVoid
implements [UuidSchemaBoxed](#uuidschemaboxed) -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 | | --------------------------- | | UuidSchemaBoxedVoid(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 | ## UuidSchemaBoxedBoolean -public static final class UuidSchemaBoxedBoolean
+public record UuidSchemaBoxedBoolean
implements [UuidSchemaBoxed](#uuidschemaboxed) -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 | | --------------------------- | | UuidSchemaBoxedBoolean(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 | ## UuidSchemaBoxedNumber -public static final class UuidSchemaBoxedNumber
+public record UuidSchemaBoxedNumber
implements [UuidSchemaBoxed](#uuidschemaboxed) -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 | | --------------------------- | | UuidSchemaBoxedNumber(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 | ## UuidSchemaBoxedString -public static final class UuidSchemaBoxedString
+public record UuidSchemaBoxedString
implements [UuidSchemaBoxed](#uuidschemaboxed) -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 | | --------------------------- | | UuidSchemaBoxedString(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 | ## UuidSchemaBoxedList -public static final class UuidSchemaBoxedList
+public record UuidSchemaBoxedList
implements [UuidSchemaBoxed](#uuidschemaboxed) -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 | | --------------------------- | | UuidSchemaBoxedList(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 | ## UuidSchemaBoxedMap -public static final class UuidSchemaBoxedMap
+public record UuidSchemaBoxedMap
implements [UuidSchemaBoxed](#uuidschemaboxed) -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 | | --------------------------- | | UuidSchemaBoxedMap(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 | ## UuidSchema public static class UuidSchema
diff --git a/samples/client/petstore/java/docs/components/schemas/AnyTypeNotString.md b/samples/client/petstore/java/docs/components/schemas/AnyTypeNotString.md index 04fc4ee18f9..8e3a08f4225 100644 --- a/samples/client/petstore/java/docs/components/schemas/AnyTypeNotString.md +++ b/samples/client/petstore/java/docs/components/schemas/AnyTypeNotString.md @@ -10,16 +10,16 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [AnyTypeNotString.AnyTypeNotString1Boxed](#anytypenotstring1boxed)
abstract sealed validated payload class | -| static class | [AnyTypeNotString.AnyTypeNotString1BoxedVoid](#anytypenotstring1boxedvoid)
boxed class to store validated null payloads | -| static class | [AnyTypeNotString.AnyTypeNotString1BoxedBoolean](#anytypenotstring1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [AnyTypeNotString.AnyTypeNotString1BoxedNumber](#anytypenotstring1boxednumber)
boxed class to store validated Number payloads | -| static class | [AnyTypeNotString.AnyTypeNotString1BoxedString](#anytypenotstring1boxedstring)
boxed class to store validated String payloads | -| static class | [AnyTypeNotString.AnyTypeNotString1BoxedList](#anytypenotstring1boxedlist)
boxed class to store validated List payloads | -| static class | [AnyTypeNotString.AnyTypeNotString1BoxedMap](#anytypenotstring1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AnyTypeNotString.AnyTypeNotString1Boxed](#anytypenotstring1boxed)
abstract sealed validated payload class | +| record | [AnyTypeNotString.AnyTypeNotString1BoxedVoid](#anytypenotstring1boxedvoid)
boxed class to store validated null payloads | +| record | [AnyTypeNotString.AnyTypeNotString1BoxedBoolean](#anytypenotstring1boxedboolean)
boxed class to store validated boolean payloads | +| record | [AnyTypeNotString.AnyTypeNotString1BoxedNumber](#anytypenotstring1boxednumber)
boxed class to store validated Number payloads | +| record | [AnyTypeNotString.AnyTypeNotString1BoxedString](#anytypenotstring1boxedstring)
boxed class to store validated String payloads | +| record | [AnyTypeNotString.AnyTypeNotString1BoxedList](#anytypenotstring1boxedlist)
boxed class to store validated List payloads | +| record | [AnyTypeNotString.AnyTypeNotString1BoxedMap](#anytypenotstring1boxedmap)
boxed class to store validated Map payloads | | static class | [AnyTypeNotString.AnyTypeNotString1](#anytypenotstring1)
schema class | -| static class | [AnyTypeNotString.NotBoxed](#notboxed)
abstract sealed validated payload class | -| static class | [AnyTypeNotString.NotBoxedString](#notboxedstring)
boxed class to store validated String payloads | +| sealed interface | [AnyTypeNotString.NotBoxed](#notboxed)
abstract sealed validated payload class | +| record | [AnyTypeNotString.NotBoxedString](#notboxedstring)
boxed class to store validated String payloads | | static class | [AnyTypeNotString.Not](#not)
schema class | ## AnyTypeNotString1Boxed @@ -35,100 +35,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## AnyTypeNotString1BoxedVoid -public static final class AnyTypeNotString1BoxedVoid
+public record AnyTypeNotString1BoxedVoid
implements [AnyTypeNotString1Boxed](#anytypenotstring1boxed) -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 | | --------------------------- | | AnyTypeNotString1BoxedVoid(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 | ## AnyTypeNotString1BoxedBoolean -public static final class AnyTypeNotString1BoxedBoolean
+public record AnyTypeNotString1BoxedBoolean
implements [AnyTypeNotString1Boxed](#anytypenotstring1boxed) -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 | | --------------------------- | | AnyTypeNotString1BoxedBoolean(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 | ## AnyTypeNotString1BoxedNumber -public static final class AnyTypeNotString1BoxedNumber
+public record AnyTypeNotString1BoxedNumber
implements [AnyTypeNotString1Boxed](#anytypenotstring1boxed) -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 | | --------------------------- | | AnyTypeNotString1BoxedNumber(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 | ## AnyTypeNotString1BoxedString -public static final class AnyTypeNotString1BoxedString
+public record AnyTypeNotString1BoxedString
implements [AnyTypeNotString1Boxed](#anytypenotstring1boxed) -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 | | --------------------------- | | AnyTypeNotString1BoxedString(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 | ## AnyTypeNotString1BoxedList -public static final class AnyTypeNotString1BoxedList
+public record AnyTypeNotString1BoxedList
implements [AnyTypeNotString1Boxed](#anytypenotstring1boxed) -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 | | --------------------------- | | AnyTypeNotString1BoxedList(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 | ## AnyTypeNotString1BoxedMap -public static final class AnyTypeNotString1BoxedMap
+public record AnyTypeNotString1BoxedMap
implements [AnyTypeNotString1Boxed](#anytypenotstring1boxed) -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 | | --------------------------- | | AnyTypeNotString1BoxedMap(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 | ## AnyTypeNotString1 public static class AnyTypeNotString1
@@ -169,20 +175,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## NotBoxedString -public static final class NotBoxedString
+public record NotBoxedString
implements [NotBoxed](#notboxed) -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 | | --------------------------- | | NotBoxedString(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 | ## Not public static class Not
diff --git a/samples/client/petstore/java/docs/components/schemas/ApiResponseSchema.md b/samples/client/petstore/java/docs/components/schemas/ApiResponseSchema.md index 7e597ddc59b..010125ef94a 100644 --- a/samples/client/petstore/java/docs/components/schemas/ApiResponseSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/ApiResponseSchema.md @@ -12,19 +12,19 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApiResponseSchema.ApiResponseSchema1Boxed](#apiresponseschema1boxed)
abstract sealed validated payload class | -| static class | [ApiResponseSchema.ApiResponseSchema1BoxedMap](#apiresponseschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ApiResponseSchema.ApiResponseSchema1Boxed](#apiresponseschema1boxed)
abstract sealed validated payload class | +| record | [ApiResponseSchema.ApiResponseSchema1BoxedMap](#apiresponseschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApiResponseSchema.ApiResponseSchema1](#apiresponseschema1)
schema class | | static class | [ApiResponseSchema.ApiResponseMapBuilder](#apiresponsemapbuilder)
builder for Map payloads | | static class | [ApiResponseSchema.ApiResponseMap](#apiresponsemap)
output class for Map payloads | -| static class | [ApiResponseSchema.MessageBoxed](#messageboxed)
abstract sealed validated payload class | -| static class | [ApiResponseSchema.MessageBoxedString](#messageboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ApiResponseSchema.MessageBoxed](#messageboxed)
abstract sealed validated payload class | +| record | [ApiResponseSchema.MessageBoxedString](#messageboxedstring)
boxed class to store validated String payloads | | static class | [ApiResponseSchema.Message](#message)
schema class | -| static class | [ApiResponseSchema.TypeBoxed](#typeboxed)
abstract sealed validated payload class | -| static class | [ApiResponseSchema.TypeBoxedString](#typeboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ApiResponseSchema.TypeBoxed](#typeboxed)
abstract sealed validated payload class | +| record | [ApiResponseSchema.TypeBoxedString](#typeboxedstring)
boxed class to store validated String payloads | | static class | [ApiResponseSchema.Type](#type)
schema class | -| static class | [ApiResponseSchema.CodeBoxed](#codeboxed)
abstract sealed validated payload class | -| static class | [ApiResponseSchema.CodeBoxedNumber](#codeboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [ApiResponseSchema.CodeBoxed](#codeboxed)
abstract sealed validated payload class | +| record | [ApiResponseSchema.CodeBoxedNumber](#codeboxednumber)
boxed class to store validated Number payloads | | static class | [ApiResponseSchema.Code](#code)
schema class | ## ApiResponseSchema1Boxed @@ -35,20 +35,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApiResponseSchema1BoxedMap -public static final class ApiResponseSchema1BoxedMap
+public record ApiResponseSchema1BoxedMap
implements [ApiResponseSchema1Boxed](#apiresponseschema1boxed) -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 | | --------------------------- | | ApiResponseSchema1BoxedMap([ApiResponseMap](#apiresponsemap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApiResponseMap](#apiresponsemap) | data
validated payload | +| [ApiResponseMap](#apiresponsemap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ApiResponseSchema1 public static class ApiResponseSchema1
@@ -150,20 +151,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## MessageBoxedString -public static final class MessageBoxedString
+public record MessageBoxedString
implements [MessageBoxed](#messageboxed) -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 | | --------------------------- | | MessageBoxedString(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 | ## Message public static class Message
@@ -184,20 +186,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## TypeBoxedString -public static final class TypeBoxedString
+public record TypeBoxedString
implements [TypeBoxed](#typeboxed) -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 | | --------------------------- | | TypeBoxedString(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 | ## Type public static class Type
@@ -218,20 +221,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## CodeBoxedNumber -public static final class CodeBoxedNumber
+public record CodeBoxedNumber
implements [CodeBoxed](#codeboxed) -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 | | --------------------------- | | CodeBoxedNumber(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 | ## Code public static class Code
diff --git a/samples/client/petstore/java/docs/components/schemas/Apple.md b/samples/client/petstore/java/docs/components/schemas/Apple.md index a1cbed31310..2457d550595 100644 --- a/samples/client/petstore/java/docs/components/schemas/Apple.md +++ b/samples/client/petstore/java/docs/components/schemas/Apple.md @@ -12,17 +12,17 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Apple.Apple1Boxed](#apple1boxed)
abstract sealed validated payload class | -| static class | [Apple.Apple1BoxedVoid](#apple1boxedvoid)
boxed class to store validated null payloads | -| static class | [Apple.Apple1BoxedMap](#apple1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Apple.Apple1Boxed](#apple1boxed)
abstract sealed validated payload class | +| record | [Apple.Apple1BoxedVoid](#apple1boxedvoid)
boxed class to store validated null payloads | +| record | [Apple.Apple1BoxedMap](#apple1boxedmap)
boxed class to store validated Map payloads | | static class | [Apple.Apple1](#apple1)
schema class | | static class | [Apple.AppleMapBuilder](#applemapbuilder)
builder for Map payloads | | static class | [Apple.AppleMap](#applemap)
output class for Map payloads | -| static class | [Apple.OriginBoxed](#originboxed)
abstract sealed validated payload class | -| static class | [Apple.OriginBoxedString](#originboxedstring)
boxed class to store validated String payloads | +| sealed interface | [Apple.OriginBoxed](#originboxed)
abstract sealed validated payload class | +| record | [Apple.OriginBoxedString](#originboxedstring)
boxed class to store validated String payloads | | static class | [Apple.Origin](#origin)
schema class | -| static class | [Apple.CultivarBoxed](#cultivarboxed)
abstract sealed validated payload class | -| static class | [Apple.CultivarBoxedString](#cultivarboxedstring)
boxed class to store validated String payloads | +| sealed interface | [Apple.CultivarBoxed](#cultivarboxed)
abstract sealed validated payload class | +| record | [Apple.CultivarBoxedString](#cultivarboxedstring)
boxed class to store validated String payloads | | static class | [Apple.Cultivar](#cultivar)
schema class | ## Apple1Boxed @@ -34,36 +34,38 @@ permits
sealed interface that stores validated payloads using boxed classes ## Apple1BoxedVoid -public static final class Apple1BoxedVoid
+public record Apple1BoxedVoid
implements [Apple1Boxed](#apple1boxed) -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 | | --------------------------- | | Apple1BoxedVoid(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 | ## Apple1BoxedMap -public static final class Apple1BoxedMap
+public record Apple1BoxedMap
implements [Apple1Boxed](#apple1boxed) -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 | | --------------------------- | | Apple1BoxedMap([AppleMap](#applemap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [AppleMap](#applemap) | data
validated payload | +| [AppleMap](#applemap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Apple1 public static class Apple1
@@ -184,20 +186,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## OriginBoxedString -public static final class OriginBoxedString
+public record OriginBoxedString
implements [OriginBoxed](#originboxed) -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 | | --------------------------- | | OriginBoxedString(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 | ## Origin public static class Origin
@@ -247,20 +250,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## CultivarBoxedString -public static final class CultivarBoxedString
+public record CultivarBoxedString
implements [CultivarBoxed](#cultivarboxed) -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 | | --------------------------- | | CultivarBoxedString(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 | ## Cultivar public static class Cultivar
diff --git a/samples/client/petstore/java/docs/components/schemas/AppleReq.md b/samples/client/petstore/java/docs/components/schemas/AppleReq.md index 9e728077d84..4c5ab12fe2d 100644 --- a/samples/client/petstore/java/docs/components/schemas/AppleReq.md +++ b/samples/client/petstore/java/docs/components/schemas/AppleReq.md @@ -12,24 +12,24 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [AppleReq.AppleReq1Boxed](#applereq1boxed)
abstract sealed validated payload class | -| static class | [AppleReq.AppleReq1BoxedMap](#applereq1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AppleReq.AppleReq1Boxed](#applereq1boxed)
abstract sealed validated payload class | +| record | [AppleReq.AppleReq1BoxedMap](#applereq1boxedmap)
boxed class to store validated Map payloads | | static class | [AppleReq.AppleReq1](#applereq1)
schema class | | static class | [AppleReq.AppleReqMapBuilder](#applereqmapbuilder)
builder for Map payloads | | static class | [AppleReq.AppleReqMap](#applereqmap)
output class for Map payloads | -| static class | [AppleReq.MealyBoxed](#mealyboxed)
abstract sealed validated payload class | -| static class | [AppleReq.MealyBoxedBoolean](#mealyboxedboolean)
boxed class to store validated boolean payloads | +| sealed interface | [AppleReq.MealyBoxed](#mealyboxed)
abstract sealed validated payload class | +| record | [AppleReq.MealyBoxedBoolean](#mealyboxedboolean)
boxed class to store validated boolean payloads | | static class | [AppleReq.Mealy](#mealy)
schema class | -| static class | [AppleReq.CultivarBoxed](#cultivarboxed)
abstract sealed validated payload class | -| static class | [AppleReq.CultivarBoxedString](#cultivarboxedstring)
boxed class to store validated String payloads | +| sealed interface | [AppleReq.CultivarBoxed](#cultivarboxed)
abstract sealed validated payload class | +| record | [AppleReq.CultivarBoxedString](#cultivarboxedstring)
boxed class to store validated String payloads | | static class | [AppleReq.Cultivar](#cultivar)
schema class | -| static class | [AppleReq.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | -| static class | [AppleReq.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| static class | [AppleReq.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| static class | [AppleReq.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| static class | [AppleReq.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| static class | [AppleReq.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| static class | [AppleReq.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AppleReq.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| record | [AppleReq.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [AppleReq.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [AppleReq.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [AppleReq.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [AppleReq.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [AppleReq.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | | static class | [AppleReq.AdditionalProperties](#additionalproperties)
schema class | ## AppleReq1Boxed @@ -40,20 +40,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## AppleReq1BoxedMap -public static final class AppleReq1BoxedMap
+public record AppleReq1BoxedMap
implements [AppleReq1Boxed](#applereq1boxed) -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 | | --------------------------- | | AppleReq1BoxedMap([AppleReqMap](#applereqmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [AppleReqMap](#applereqmap) | data
validated payload | +| [AppleReqMap](#applereqmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## AppleReq1 public static class AppleReq1
@@ -157,20 +158,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## MealyBoxedBoolean -public static final class MealyBoxedBoolean
+public record MealyBoxedBoolean
implements [MealyBoxed](#mealyboxed) -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 | | --------------------------- | | MealyBoxedBoolean(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 | ## Mealy public static class Mealy
@@ -191,20 +193,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## CultivarBoxedString -public static final class CultivarBoxedString
+public record CultivarBoxedString
implements [CultivarBoxed](#cultivarboxed) -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 | | --------------------------- | | CultivarBoxedString(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 | ## Cultivar public static class Cultivar
@@ -230,100 +233,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedVoid -public static final class AdditionalPropertiesBoxedVoid
+public record AdditionalPropertiesBoxedVoid
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedVoid(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 | ## AdditionalPropertiesBoxedBoolean -public static final class AdditionalPropertiesBoxedBoolean
+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 | ## AdditionalPropertiesBoxedNumber -public static final class AdditionalPropertiesBoxedNumber
+public record AdditionalPropertiesBoxedNumber
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedNumber(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 | ## AdditionalPropertiesBoxedString -public static final class AdditionalPropertiesBoxedString
+public record AdditionalPropertiesBoxedString
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedString(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 | ## AdditionalPropertiesBoxedList -public static final class AdditionalPropertiesBoxedList
+public record AdditionalPropertiesBoxedList
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedList(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 | ## AdditionalPropertiesBoxedMap -public static final class AdditionalPropertiesBoxedMap
+public record AdditionalPropertiesBoxedMap
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedMap(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 | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayHoldingAnyType.md b/samples/client/petstore/java/docs/components/schemas/ArrayHoldingAnyType.md index 803a566e32f..7402ed74f9f 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayHoldingAnyType.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayHoldingAnyType.md @@ -12,18 +12,18 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ArrayHoldingAnyType.ArrayHoldingAnyType1Boxed](#arrayholdinganytype1boxed)
abstract sealed validated payload class | -| static class | [ArrayHoldingAnyType.ArrayHoldingAnyType1BoxedList](#arrayholdinganytype1boxedlist)
boxed class to store validated List payloads | +| sealed interface | [ArrayHoldingAnyType.ArrayHoldingAnyType1Boxed](#arrayholdinganytype1boxed)
abstract sealed validated payload class | +| record | [ArrayHoldingAnyType.ArrayHoldingAnyType1BoxedList](#arrayholdinganytype1boxedlist)
boxed class to store validated List payloads | | static class | [ArrayHoldingAnyType.ArrayHoldingAnyType1](#arrayholdinganytype1)
schema class | | static class | [ArrayHoldingAnyType.ArrayHoldingAnyTypeListBuilder](#arrayholdinganytypelistbuilder)
builder for List payloads | | static class | [ArrayHoldingAnyType.ArrayHoldingAnyTypeList](#arrayholdinganytypelist)
output class for List payloads | -| static class | [ArrayHoldingAnyType.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | -| static class | [ArrayHoldingAnyType.ItemsBoxedVoid](#itemsboxedvoid)
boxed class to store validated null payloads | -| static class | [ArrayHoldingAnyType.ItemsBoxedBoolean](#itemsboxedboolean)
boxed class to store validated boolean payloads | -| static class | [ArrayHoldingAnyType.ItemsBoxedNumber](#itemsboxednumber)
boxed class to store validated Number payloads | -| static class | [ArrayHoldingAnyType.ItemsBoxedString](#itemsboxedstring)
boxed class to store validated String payloads | -| static class | [ArrayHoldingAnyType.ItemsBoxedList](#itemsboxedlist)
boxed class to store validated List payloads | -| static class | [ArrayHoldingAnyType.ItemsBoxedMap](#itemsboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ArrayHoldingAnyType.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | +| record | [ArrayHoldingAnyType.ItemsBoxedVoid](#itemsboxedvoid)
boxed class to store validated null payloads | +| record | [ArrayHoldingAnyType.ItemsBoxedBoolean](#itemsboxedboolean)
boxed class to store validated boolean payloads | +| record | [ArrayHoldingAnyType.ItemsBoxedNumber](#itemsboxednumber)
boxed class to store validated Number payloads | +| record | [ArrayHoldingAnyType.ItemsBoxedString](#itemsboxedstring)
boxed class to store validated String payloads | +| record | [ArrayHoldingAnyType.ItemsBoxedList](#itemsboxedlist)
boxed class to store validated List payloads | +| record | [ArrayHoldingAnyType.ItemsBoxedMap](#itemsboxedmap)
boxed class to store validated Map payloads | | static class | [ArrayHoldingAnyType.Items](#items)
schema class | ## ArrayHoldingAnyType1Boxed @@ -34,20 +34,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ArrayHoldingAnyType1BoxedList -public static final class ArrayHoldingAnyType1BoxedList
+public record ArrayHoldingAnyType1BoxedList
implements [ArrayHoldingAnyType1Boxed](#arrayholdinganytype1boxed) -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 | | --------------------------- | | ArrayHoldingAnyType1BoxedList([ArrayHoldingAnyTypeList](#arrayholdinganytypelist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ArrayHoldingAnyTypeList](#arrayholdinganytypelist) | data
validated payload | +| [ArrayHoldingAnyTypeList](#arrayholdinganytypelist) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ArrayHoldingAnyType1 public static class ArrayHoldingAnyType1
@@ -141,100 +142,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## ItemsBoxedVoid -public static final class ItemsBoxedVoid
+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
+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
+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
+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
+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
+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/petstore/java/docs/components/schemas/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/java/docs/components/schemas/ArrayOfArrayOfNumberOnly.md index 609db4c65f8..8164625f791 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayOfArrayOfNumberOnly.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayOfArrayOfNumberOnly.md @@ -14,23 +14,23 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ArrayOfArrayOfNumberOnly.ArrayOfArrayOfNumberOnly1Boxed](#arrayofarrayofnumberonly1boxed)
abstract sealed validated payload class | -| static class | [ArrayOfArrayOfNumberOnly.ArrayOfArrayOfNumberOnly1BoxedMap](#arrayofarrayofnumberonly1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ArrayOfArrayOfNumberOnly.ArrayOfArrayOfNumberOnly1Boxed](#arrayofarrayofnumberonly1boxed)
abstract sealed validated payload class | +| record | [ArrayOfArrayOfNumberOnly.ArrayOfArrayOfNumberOnly1BoxedMap](#arrayofarrayofnumberonly1boxedmap)
boxed class to store validated Map payloads | | static class | [ArrayOfArrayOfNumberOnly.ArrayOfArrayOfNumberOnly1](#arrayofarrayofnumberonly1)
schema class | | static class | [ArrayOfArrayOfNumberOnly.ArrayOfArrayOfNumberOnlyMapBuilder](#arrayofarrayofnumberonlymapbuilder)
builder for Map payloads | | static class | [ArrayOfArrayOfNumberOnly.ArrayOfArrayOfNumberOnlyMap](#arrayofarrayofnumberonlymap)
output class for Map payloads | -| static class | [ArrayOfArrayOfNumberOnly.ArrayArrayNumberBoxed](#arrayarraynumberboxed)
abstract sealed validated payload class | -| static class | [ArrayOfArrayOfNumberOnly.ArrayArrayNumberBoxedList](#arrayarraynumberboxedlist)
boxed class to store validated List payloads | +| sealed interface | [ArrayOfArrayOfNumberOnly.ArrayArrayNumberBoxed](#arrayarraynumberboxed)
abstract sealed validated payload class | +| record | [ArrayOfArrayOfNumberOnly.ArrayArrayNumberBoxedList](#arrayarraynumberboxedlist)
boxed class to store validated List payloads | | static class | [ArrayOfArrayOfNumberOnly.ArrayArrayNumber](#arrayarraynumber)
schema class | | static class | [ArrayOfArrayOfNumberOnly.ArrayArrayNumberListBuilder](#arrayarraynumberlistbuilder)
builder for List payloads | | static class | [ArrayOfArrayOfNumberOnly.ArrayArrayNumberList](#arrayarraynumberlist)
output class for List payloads | -| static class | [ArrayOfArrayOfNumberOnly.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | -| static class | [ArrayOfArrayOfNumberOnly.ItemsBoxedList](#itemsboxedlist)
boxed class to store validated List payloads | +| sealed interface | [ArrayOfArrayOfNumberOnly.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | +| record | [ArrayOfArrayOfNumberOnly.ItemsBoxedList](#itemsboxedlist)
boxed class to store validated List payloads | | static class | [ArrayOfArrayOfNumberOnly.Items](#items)
schema class | | static class | [ArrayOfArrayOfNumberOnly.ItemsListBuilder](#itemslistbuilder)
builder for List payloads | | static class | [ArrayOfArrayOfNumberOnly.ItemsList](#itemslist)
output class for List payloads | -| static class | [ArrayOfArrayOfNumberOnly.Items1Boxed](#items1boxed)
abstract sealed validated payload class | -| static class | [ArrayOfArrayOfNumberOnly.Items1BoxedNumber](#items1boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [ArrayOfArrayOfNumberOnly.Items1Boxed](#items1boxed)
abstract sealed validated payload class | +| record | [ArrayOfArrayOfNumberOnly.Items1BoxedNumber](#items1boxednumber)
boxed class to store validated Number payloads | | static class | [ArrayOfArrayOfNumberOnly.Items1](#items1)
schema class | ## ArrayOfArrayOfNumberOnly1Boxed @@ -41,20 +41,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ArrayOfArrayOfNumberOnly1BoxedMap -public static final class ArrayOfArrayOfNumberOnly1BoxedMap
+public record ArrayOfArrayOfNumberOnly1BoxedMap
implements [ArrayOfArrayOfNumberOnly1Boxed](#arrayofarrayofnumberonly1boxed) -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 | | --------------------------- | | ArrayOfArrayOfNumberOnly1BoxedMap([ArrayOfArrayOfNumberOnlyMap](#arrayofarrayofnumberonlymap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ArrayOfArrayOfNumberOnlyMap](#arrayofarrayofnumberonlymap) | data
validated payload | +| [ArrayOfArrayOfNumberOnlyMap](#arrayofarrayofnumberonlymap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ArrayOfArrayOfNumberOnly1 public static class ArrayOfArrayOfNumberOnly1
@@ -152,20 +153,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ArrayArrayNumberBoxedList -public static final class ArrayArrayNumberBoxedList
+public record ArrayArrayNumberBoxedList
implements [ArrayArrayNumberBoxed](#arrayarraynumberboxed) -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 | | --------------------------- | | ArrayArrayNumberBoxedList([ArrayArrayNumberList](#arrayarraynumberlist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ArrayArrayNumberList](#arrayarraynumberlist) | data
validated payload | +| [ArrayArrayNumberList](#arrayarraynumberlist) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ArrayArrayNumber public static class ArrayArrayNumber
@@ -251,20 +253,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ItemsBoxedList -public static final class ItemsBoxedList
+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([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 | ## Items public static class Items
@@ -350,20 +353,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Items1BoxedNumber -public static final class Items1BoxedNumber
+public record Items1BoxedNumber
implements [Items1Boxed](#items1boxed) -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 | | --------------------------- | | Items1BoxedNumber(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 | ## Items1 public static class Items1
diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayOfEnums.md b/samples/client/petstore/java/docs/components/schemas/ArrayOfEnums.md index 8a295ec85ff..5197111ed9c 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayOfEnums.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayOfEnums.md @@ -12,8 +12,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ArrayOfEnums.ArrayOfEnums1Boxed](#arrayofenums1boxed)
abstract sealed validated payload class | -| static class | [ArrayOfEnums.ArrayOfEnums1BoxedList](#arrayofenums1boxedlist)
boxed class to store validated List payloads | +| sealed interface | [ArrayOfEnums.ArrayOfEnums1Boxed](#arrayofenums1boxed)
abstract sealed validated payload class | +| record | [ArrayOfEnums.ArrayOfEnums1BoxedList](#arrayofenums1boxedlist)
boxed class to store validated List payloads | | static class | [ArrayOfEnums.ArrayOfEnums1](#arrayofenums1)
schema class | | static class | [ArrayOfEnums.ArrayOfEnumsListBuilder](#arrayofenumslistbuilder)
builder for List payloads | | static class | [ArrayOfEnums.ArrayOfEnumsList](#arrayofenumslist)
output class for List payloads | @@ -26,20 +26,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ArrayOfEnums1BoxedList -public static final class ArrayOfEnums1BoxedList
+public record ArrayOfEnums1BoxedList
implements [ArrayOfEnums1Boxed](#arrayofenums1boxed) -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 | | --------------------------- | | ArrayOfEnums1BoxedList([ArrayOfEnumsList](#arrayofenumslist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ArrayOfEnumsList](#arrayofenumslist) | data
validated payload | +| [ArrayOfEnumsList](#arrayofenumslist) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ArrayOfEnums1 public static class ArrayOfEnums1
diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayOfNumberOnly.md b/samples/client/petstore/java/docs/components/schemas/ArrayOfNumberOnly.md index 4e393d0e003..baf857de624 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayOfNumberOnly.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayOfNumberOnly.md @@ -14,18 +14,18 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ArrayOfNumberOnly.ArrayOfNumberOnly1Boxed](#arrayofnumberonly1boxed)
abstract sealed validated payload class | -| static class | [ArrayOfNumberOnly.ArrayOfNumberOnly1BoxedMap](#arrayofnumberonly1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ArrayOfNumberOnly.ArrayOfNumberOnly1Boxed](#arrayofnumberonly1boxed)
abstract sealed validated payload class | +| record | [ArrayOfNumberOnly.ArrayOfNumberOnly1BoxedMap](#arrayofnumberonly1boxedmap)
boxed class to store validated Map payloads | | static class | [ArrayOfNumberOnly.ArrayOfNumberOnly1](#arrayofnumberonly1)
schema class | | static class | [ArrayOfNumberOnly.ArrayOfNumberOnlyMapBuilder](#arrayofnumberonlymapbuilder)
builder for Map payloads | | static class | [ArrayOfNumberOnly.ArrayOfNumberOnlyMap](#arrayofnumberonlymap)
output class for Map payloads | -| static class | [ArrayOfNumberOnly.ArrayNumberBoxed](#arraynumberboxed)
abstract sealed validated payload class | -| static class | [ArrayOfNumberOnly.ArrayNumberBoxedList](#arraynumberboxedlist)
boxed class to store validated List payloads | +| sealed interface | [ArrayOfNumberOnly.ArrayNumberBoxed](#arraynumberboxed)
abstract sealed validated payload class | +| record | [ArrayOfNumberOnly.ArrayNumberBoxedList](#arraynumberboxedlist)
boxed class to store validated List payloads | | static class | [ArrayOfNumberOnly.ArrayNumber](#arraynumber)
schema class | | static class | [ArrayOfNumberOnly.ArrayNumberListBuilder](#arraynumberlistbuilder)
builder for List payloads | | static class | [ArrayOfNumberOnly.ArrayNumberList](#arraynumberlist)
output class for List payloads | -| static class | [ArrayOfNumberOnly.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | -| static class | [ArrayOfNumberOnly.ItemsBoxedNumber](#itemsboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [ArrayOfNumberOnly.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | +| record | [ArrayOfNumberOnly.ItemsBoxedNumber](#itemsboxednumber)
boxed class to store validated Number payloads | | static class | [ArrayOfNumberOnly.Items](#items)
schema class | ## ArrayOfNumberOnly1Boxed @@ -36,20 +36,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ArrayOfNumberOnly1BoxedMap -public static final class ArrayOfNumberOnly1BoxedMap
+public record ArrayOfNumberOnly1BoxedMap
implements [ArrayOfNumberOnly1Boxed](#arrayofnumberonly1boxed) -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 | | --------------------------- | | ArrayOfNumberOnly1BoxedMap([ArrayOfNumberOnlyMap](#arrayofnumberonlymap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ArrayOfNumberOnlyMap](#arrayofnumberonlymap) | data
validated payload | +| [ArrayOfNumberOnlyMap](#arrayofnumberonlymap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ArrayOfNumberOnly1 public static class ArrayOfNumberOnly1
@@ -145,20 +146,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ArrayNumberBoxedList -public static final class ArrayNumberBoxedList
+public record ArrayNumberBoxedList
implements [ArrayNumberBoxed](#arraynumberboxed) -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 | | --------------------------- | | ArrayNumberBoxedList([ArrayNumberList](#arraynumberlist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ArrayNumberList](#arraynumberlist) | data
validated payload | +| [ArrayNumberList](#arraynumberlist) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ArrayNumber public static class ArrayNumber
@@ -244,20 +246,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ItemsBoxedNumber -public static final class ItemsBoxedNumber
+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 | ## Items public static class Items
diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayTest.md b/samples/client/petstore/java/docs/components/schemas/ArrayTest.md index c91b4f88f64..624ee4d0df9 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayTest.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayTest.md @@ -14,41 +14,41 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ArrayTest.ArrayTest1Boxed](#arraytest1boxed)
abstract sealed validated payload class | -| static class | [ArrayTest.ArrayTest1BoxedMap](#arraytest1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ArrayTest.ArrayTest1Boxed](#arraytest1boxed)
abstract sealed validated payload class | +| record | [ArrayTest.ArrayTest1BoxedMap](#arraytest1boxedmap)
boxed class to store validated Map payloads | | static class | [ArrayTest.ArrayTest1](#arraytest1)
schema class | | static class | [ArrayTest.ArrayTestMapBuilder](#arraytestmapbuilder)
builder for Map payloads | | static class | [ArrayTest.ArrayTestMap](#arraytestmap)
output class for Map payloads | -| static class | [ArrayTest.ArrayArrayOfModelBoxed](#arrayarrayofmodelboxed)
abstract sealed validated payload class | -| static class | [ArrayTest.ArrayArrayOfModelBoxedList](#arrayarrayofmodelboxedlist)
boxed class to store validated List payloads | +| sealed interface | [ArrayTest.ArrayArrayOfModelBoxed](#arrayarrayofmodelboxed)
abstract sealed validated payload class | +| record | [ArrayTest.ArrayArrayOfModelBoxedList](#arrayarrayofmodelboxedlist)
boxed class to store validated List payloads | | static class | [ArrayTest.ArrayArrayOfModel](#arrayarrayofmodel)
schema class | | static class | [ArrayTest.ArrayArrayOfModelListBuilder](#arrayarrayofmodellistbuilder)
builder for List payloads | | static class | [ArrayTest.ArrayArrayOfModelList](#arrayarrayofmodellist)
output class for List payloads | -| static class | [ArrayTest.Items3Boxed](#items3boxed)
abstract sealed validated payload class | -| static class | [ArrayTest.Items3BoxedList](#items3boxedlist)
boxed class to store validated List payloads | +| sealed interface | [ArrayTest.Items3Boxed](#items3boxed)
abstract sealed validated payload class | +| record | [ArrayTest.Items3BoxedList](#items3boxedlist)
boxed class to store validated List payloads | | static class | [ArrayTest.Items3](#items3)
schema class | | static class | [ArrayTest.ItemsListBuilder1](#itemslistbuilder1)
builder for List payloads | | static class | [ArrayTest.ItemsList1](#itemslist1)
output class for List payloads | -| static class | [ArrayTest.ArrayArrayOfIntegerBoxed](#arrayarrayofintegerboxed)
abstract sealed validated payload class | -| static class | [ArrayTest.ArrayArrayOfIntegerBoxedList](#arrayarrayofintegerboxedlist)
boxed class to store validated List payloads | +| sealed interface | [ArrayTest.ArrayArrayOfIntegerBoxed](#arrayarrayofintegerboxed)
abstract sealed validated payload class | +| record | [ArrayTest.ArrayArrayOfIntegerBoxedList](#arrayarrayofintegerboxedlist)
boxed class to store validated List payloads | | static class | [ArrayTest.ArrayArrayOfInteger](#arrayarrayofinteger)
schema class | | static class | [ArrayTest.ArrayArrayOfIntegerListBuilder](#arrayarrayofintegerlistbuilder)
builder for List payloads | | static class | [ArrayTest.ArrayArrayOfIntegerList](#arrayarrayofintegerlist)
output class for List payloads | -| static class | [ArrayTest.Items1Boxed](#items1boxed)
abstract sealed validated payload class | -| static class | [ArrayTest.Items1BoxedList](#items1boxedlist)
boxed class to store validated List payloads | +| sealed interface | [ArrayTest.Items1Boxed](#items1boxed)
abstract sealed validated payload class | +| record | [ArrayTest.Items1BoxedList](#items1boxedlist)
boxed class to store validated List payloads | | static class | [ArrayTest.Items1](#items1)
schema class | | static class | [ArrayTest.ItemsListBuilder](#itemslistbuilder)
builder for List payloads | | static class | [ArrayTest.ItemsList](#itemslist)
output class for List payloads | -| static class | [ArrayTest.Items2Boxed](#items2boxed)
abstract sealed validated payload class | -| static class | [ArrayTest.Items2BoxedNumber](#items2boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [ArrayTest.Items2Boxed](#items2boxed)
abstract sealed validated payload class | +| record | [ArrayTest.Items2BoxedNumber](#items2boxednumber)
boxed class to store validated Number payloads | | static class | [ArrayTest.Items2](#items2)
schema class | -| static class | [ArrayTest.ArrayOfStringBoxed](#arrayofstringboxed)
abstract sealed validated payload class | -| static class | [ArrayTest.ArrayOfStringBoxedList](#arrayofstringboxedlist)
boxed class to store validated List payloads | +| sealed interface | [ArrayTest.ArrayOfStringBoxed](#arrayofstringboxed)
abstract sealed validated payload class | +| record | [ArrayTest.ArrayOfStringBoxedList](#arrayofstringboxedlist)
boxed class to store validated List payloads | | static class | [ArrayTest.ArrayOfString](#arrayofstring)
schema class | | static class | [ArrayTest.ArrayOfStringListBuilder](#arrayofstringlistbuilder)
builder for List payloads | | static class | [ArrayTest.ArrayOfStringList](#arrayofstringlist)
output class for List payloads | -| static class | [ArrayTest.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | -| static class | [ArrayTest.ItemsBoxedString](#itemsboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ArrayTest.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | +| record | [ArrayTest.ItemsBoxedString](#itemsboxedstring)
boxed class to store validated String payloads | | static class | [ArrayTest.Items](#items)
schema class | ## ArrayTest1Boxed @@ -59,20 +59,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ArrayTest1BoxedMap -public static final class ArrayTest1BoxedMap
+public record ArrayTest1BoxedMap
implements [ArrayTest1Boxed](#arraytest1boxed) -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 | | --------------------------- | | ArrayTest1BoxedMap([ArrayTestMap](#arraytestmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ArrayTestMap](#arraytestmap) | data
validated payload | +| [ArrayTestMap](#arraytestmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ArrayTest1 public static class ArrayTest1
@@ -195,20 +196,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ArrayArrayOfModelBoxedList -public static final class ArrayArrayOfModelBoxedList
+public record ArrayArrayOfModelBoxedList
implements [ArrayArrayOfModelBoxed](#arrayarrayofmodelboxed) -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 | | --------------------------- | | ArrayArrayOfModelBoxedList([ArrayArrayOfModelList](#arrayarrayofmodellist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ArrayArrayOfModelList](#arrayarrayofmodellist) | data
validated payload | +| [ArrayArrayOfModelList](#arrayarrayofmodellist) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ArrayArrayOfModel public static class ArrayArrayOfModel
@@ -303,20 +305,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Items3BoxedList -public static final class Items3BoxedList
+public record Items3BoxedList
implements [Items3Boxed](#items3boxed) -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 | | --------------------------- | | Items3BoxedList([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 | ## Items3 public static class Items3
@@ -409,20 +412,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ArrayArrayOfIntegerBoxedList -public static final class ArrayArrayOfIntegerBoxedList
+public record ArrayArrayOfIntegerBoxedList
implements [ArrayArrayOfIntegerBoxed](#arrayarrayofintegerboxed) -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 | | --------------------------- | | ArrayArrayOfIntegerBoxedList([ArrayArrayOfIntegerList](#arrayarrayofintegerlist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ArrayArrayOfIntegerList](#arrayarrayofintegerlist) | data
validated payload | +| [ArrayArrayOfIntegerList](#arrayarrayofintegerlist) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ArrayArrayOfInteger public static class ArrayArrayOfInteger
@@ -508,20 +512,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Items1BoxedList -public static final class Items1BoxedList
+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([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 | ## Items1 public static class Items1
@@ -607,20 +612,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Items2BoxedNumber -public static final class Items2BoxedNumber
+public record Items2BoxedNumber
implements [Items2Boxed](#items2boxed) -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 | | --------------------------- | | Items2BoxedNumber(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 | ## Items2 public static class Items2
@@ -641,20 +647,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ArrayOfStringBoxedList -public static final class ArrayOfStringBoxedList
+public record ArrayOfStringBoxedList
implements [ArrayOfStringBoxed](#arrayofstringboxed) -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 | | --------------------------- | | ArrayOfStringBoxedList([ArrayOfStringList](#arrayofstringlist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ArrayOfStringList](#arrayofstringlist) | data
validated payload | +| [ArrayOfStringList](#arrayofstringlist) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ArrayOfString public static class ArrayOfString
@@ -737,20 +744,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ItemsBoxedString -public static final class ItemsBoxedString
+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 | ## Items public static class Items
diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayWithValidationsInItems.md b/samples/client/petstore/java/docs/components/schemas/ArrayWithValidationsInItems.md index 7ce4f1f4a20..d1bb1424c79 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayWithValidationsInItems.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayWithValidationsInItems.md @@ -12,13 +12,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ArrayWithValidationsInItems.ArrayWithValidationsInItems1Boxed](#arraywithvalidationsinitems1boxed)
abstract sealed validated payload class | -| static class | [ArrayWithValidationsInItems.ArrayWithValidationsInItems1BoxedList](#arraywithvalidationsinitems1boxedlist)
boxed class to store validated List payloads | +| sealed interface | [ArrayWithValidationsInItems.ArrayWithValidationsInItems1Boxed](#arraywithvalidationsinitems1boxed)
abstract sealed validated payload class | +| record | [ArrayWithValidationsInItems.ArrayWithValidationsInItems1BoxedList](#arraywithvalidationsinitems1boxedlist)
boxed class to store validated List payloads | | static class | [ArrayWithValidationsInItems.ArrayWithValidationsInItems1](#arraywithvalidationsinitems1)
schema class | | static class | [ArrayWithValidationsInItems.ArrayWithValidationsInItemsListBuilder](#arraywithvalidationsinitemslistbuilder)
builder for List payloads | | static class | [ArrayWithValidationsInItems.ArrayWithValidationsInItemsList](#arraywithvalidationsinitemslist)
output class for List payloads | -| static class | [ArrayWithValidationsInItems.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | -| static class | [ArrayWithValidationsInItems.ItemsBoxedNumber](#itemsboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [ArrayWithValidationsInItems.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | +| record | [ArrayWithValidationsInItems.ItemsBoxedNumber](#itemsboxednumber)
boxed class to store validated Number payloads | | static class | [ArrayWithValidationsInItems.Items](#items)
schema class | ## ArrayWithValidationsInItems1Boxed @@ -29,20 +29,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ArrayWithValidationsInItems1BoxedList -public static final class ArrayWithValidationsInItems1BoxedList
+public record ArrayWithValidationsInItems1BoxedList
implements [ArrayWithValidationsInItems1Boxed](#arraywithvalidationsinitems1boxed) -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 | | --------------------------- | | ArrayWithValidationsInItems1BoxedList([ArrayWithValidationsInItemsList](#arraywithvalidationsinitemslist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ArrayWithValidationsInItemsList](#arraywithvalidationsinitemslist) | data
validated payload | +| [ArrayWithValidationsInItemsList](#arraywithvalidationsinitemslist) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ArrayWithValidationsInItems1 public static class ArrayWithValidationsInItems1
@@ -129,20 +130,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ItemsBoxedNumber -public static final class ItemsBoxedNumber
+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 | ## Items public static class Items
diff --git a/samples/client/petstore/java/docs/components/schemas/Banana.md b/samples/client/petstore/java/docs/components/schemas/Banana.md index a8a8a3fcfe0..d99b6849168 100644 --- a/samples/client/petstore/java/docs/components/schemas/Banana.md +++ b/samples/client/petstore/java/docs/components/schemas/Banana.md @@ -12,13 +12,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Banana.Banana1Boxed](#banana1boxed)
abstract sealed validated payload class | -| static class | [Banana.Banana1BoxedMap](#banana1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Banana.Banana1Boxed](#banana1boxed)
abstract sealed validated payload class | +| record | [Banana.Banana1BoxedMap](#banana1boxedmap)
boxed class to store validated Map payloads | | static class | [Banana.Banana1](#banana1)
schema class | | static class | [Banana.BananaMapBuilder](#bananamapbuilder)
builder for Map payloads | | static class | [Banana.BananaMap](#bananamap)
output class for Map payloads | -| static class | [Banana.LengthCmBoxed](#lengthcmboxed)
abstract sealed validated payload class | -| static class | [Banana.LengthCmBoxedNumber](#lengthcmboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [Banana.LengthCmBoxed](#lengthcmboxed)
abstract sealed validated payload class | +| record | [Banana.LengthCmBoxedNumber](#lengthcmboxednumber)
boxed class to store validated Number payloads | | static class | [Banana.LengthCm](#lengthcm)
schema class | ## Banana1Boxed @@ -29,20 +29,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Banana1BoxedMap -public static final class Banana1BoxedMap
+public record Banana1BoxedMap
implements [Banana1Boxed](#banana1boxed) -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 | | --------------------------- | | Banana1BoxedMap([BananaMap](#bananamap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [BananaMap](#bananamap) | data
validated payload | +| [BananaMap](#bananamap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Banana1 public static class Banana1
@@ -154,20 +155,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## LengthCmBoxedNumber -public static final class LengthCmBoxedNumber
+public record LengthCmBoxedNumber
implements [LengthCmBoxed](#lengthcmboxed) -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 | | --------------------------- | | LengthCmBoxedNumber(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 | ## LengthCm public static class LengthCm
diff --git a/samples/client/petstore/java/docs/components/schemas/BananaReq.md b/samples/client/petstore/java/docs/components/schemas/BananaReq.md index 14d699e944e..c55a7a1f465 100644 --- a/samples/client/petstore/java/docs/components/schemas/BananaReq.md +++ b/samples/client/petstore/java/docs/components/schemas/BananaReq.md @@ -12,24 +12,24 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [BananaReq.BananaReq1Boxed](#bananareq1boxed)
abstract sealed validated payload class | -| static class | [BananaReq.BananaReq1BoxedMap](#bananareq1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [BananaReq.BananaReq1Boxed](#bananareq1boxed)
abstract sealed validated payload class | +| record | [BananaReq.BananaReq1BoxedMap](#bananareq1boxedmap)
boxed class to store validated Map payloads | | static class | [BananaReq.BananaReq1](#bananareq1)
schema class | | static class | [BananaReq.BananaReqMapBuilder](#bananareqmapbuilder)
builder for Map payloads | | static class | [BananaReq.BananaReqMap](#bananareqmap)
output class for Map payloads | -| static class | [BananaReq.SweetBoxed](#sweetboxed)
abstract sealed validated payload class | -| static class | [BananaReq.SweetBoxedBoolean](#sweetboxedboolean)
boxed class to store validated boolean payloads | +| sealed interface | [BananaReq.SweetBoxed](#sweetboxed)
abstract sealed validated payload class | +| record | [BananaReq.SweetBoxedBoolean](#sweetboxedboolean)
boxed class to store validated boolean payloads | | static class | [BananaReq.Sweet](#sweet)
schema class | -| static class | [BananaReq.LengthCmBoxed](#lengthcmboxed)
abstract sealed validated payload class | -| static class | [BananaReq.LengthCmBoxedNumber](#lengthcmboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [BananaReq.LengthCmBoxed](#lengthcmboxed)
abstract sealed validated payload class | +| record | [BananaReq.LengthCmBoxedNumber](#lengthcmboxednumber)
boxed class to store validated Number payloads | | static class | [BananaReq.LengthCm](#lengthcm)
schema class | -| static class | [BananaReq.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | -| static class | [BananaReq.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| static class | [BananaReq.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| static class | [BananaReq.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| static class | [BananaReq.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| static class | [BananaReq.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| static class | [BananaReq.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [BananaReq.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| record | [BananaReq.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [BananaReq.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [BananaReq.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [BananaReq.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [BananaReq.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [BananaReq.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | | static class | [BananaReq.AdditionalProperties](#additionalproperties)
schema class | ## BananaReq1Boxed @@ -40,20 +40,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## BananaReq1BoxedMap -public static final class BananaReq1BoxedMap
+public record BananaReq1BoxedMap
implements [BananaReq1Boxed](#bananareq1boxed) -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 | | --------------------------- | | BananaReq1BoxedMap([BananaReqMap](#bananareqmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [BananaReqMap](#bananareqmap) | data
validated payload | +| [BananaReqMap](#bananareqmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## BananaReq1 public static class BananaReq1
@@ -160,20 +161,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## SweetBoxedBoolean -public static final class SweetBoxedBoolean
+public record SweetBoxedBoolean
implements [SweetBoxed](#sweetboxed) -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 | | --------------------------- | | SweetBoxedBoolean(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 | ## Sweet public static class Sweet
@@ -194,20 +196,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## LengthCmBoxedNumber -public static final class LengthCmBoxedNumber
+public record LengthCmBoxedNumber
implements [LengthCmBoxed](#lengthcmboxed) -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 | | --------------------------- | | LengthCmBoxedNumber(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 | ## LengthCm public static class LengthCm
@@ -233,100 +236,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedVoid -public static final class AdditionalPropertiesBoxedVoid
+public record AdditionalPropertiesBoxedVoid
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedVoid(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 | ## AdditionalPropertiesBoxedBoolean -public static final class AdditionalPropertiesBoxedBoolean
+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 | ## AdditionalPropertiesBoxedNumber -public static final class AdditionalPropertiesBoxedNumber
+public record AdditionalPropertiesBoxedNumber
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedNumber(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 | ## AdditionalPropertiesBoxedString -public static final class AdditionalPropertiesBoxedString
+public record AdditionalPropertiesBoxedString
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedString(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 | ## AdditionalPropertiesBoxedList -public static final class AdditionalPropertiesBoxedList
+public record AdditionalPropertiesBoxedList
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedList(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 | ## AdditionalPropertiesBoxedMap -public static final class AdditionalPropertiesBoxedMap
+public record AdditionalPropertiesBoxedMap
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedMap(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 | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/Bar.md b/samples/client/petstore/java/docs/components/schemas/Bar.md index f0ebcb23b0d..191939af7fb 100644 --- a/samples/client/petstore/java/docs/components/schemas/Bar.md +++ b/samples/client/petstore/java/docs/components/schemas/Bar.md @@ -10,8 +10,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Bar.Bar1Boxed](#bar1boxed)
abstract sealed validated payload class | -| static class | [Bar.Bar1BoxedString](#bar1boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Bar.Bar1Boxed](#bar1boxed)
abstract sealed validated payload class | +| record | [Bar.Bar1BoxedString](#bar1boxedstring)
boxed class to store validated String payloads | | static class | [Bar.Bar1](#bar1)
schema class | ## Bar1Boxed @@ -22,20 +22,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Bar1BoxedString -public static final class Bar1BoxedString
+public record Bar1BoxedString
implements [Bar1Boxed](#bar1boxed) -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 | | --------------------------- | | Bar1BoxedString(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 | ## Bar1 public static class Bar1
diff --git a/samples/client/petstore/java/docs/components/schemas/BasquePig.md b/samples/client/petstore/java/docs/components/schemas/BasquePig.md index 2e99f34805f..f14feb72d8a 100644 --- a/samples/client/petstore/java/docs/components/schemas/BasquePig.md +++ b/samples/client/petstore/java/docs/components/schemas/BasquePig.md @@ -13,13 +13,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [BasquePig.BasquePig1Boxed](#basquepig1boxed)
abstract sealed validated payload class | -| static class | [BasquePig.BasquePig1BoxedMap](#basquepig1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [BasquePig.BasquePig1Boxed](#basquepig1boxed)
abstract sealed validated payload class | +| record | [BasquePig.BasquePig1BoxedMap](#basquepig1boxedmap)
boxed class to store validated Map payloads | | static class | [BasquePig.BasquePig1](#basquepig1)
schema class | | static class | [BasquePig.BasquePigMapBuilder](#basquepigmapbuilder)
builder for Map payloads | | static class | [BasquePig.BasquePigMap](#basquepigmap)
output class for Map payloads | -| static class | [BasquePig.ClassNameBoxed](#classnameboxed)
abstract sealed validated payload class | -| static class | [BasquePig.ClassNameBoxedString](#classnameboxedstring)
boxed class to store validated String payloads | +| sealed interface | [BasquePig.ClassNameBoxed](#classnameboxed)
abstract sealed validated payload class | +| record | [BasquePig.ClassNameBoxedString](#classnameboxedstring)
boxed class to store validated String payloads | | static class | [BasquePig.ClassName](#classname)
schema class | | enum | [BasquePig.StringClassNameEnums](#stringclassnameenums)
String enum | @@ -31,20 +31,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## BasquePig1BoxedMap -public static final class BasquePig1BoxedMap
+public record BasquePig1BoxedMap
implements [BasquePig1Boxed](#basquepig1boxed) -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 | | --------------------------- | | BasquePig1BoxedMap([BasquePigMap](#basquepigmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [BasquePigMap](#basquepigmap) | data
validated payload | +| [BasquePigMap](#basquepigmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## BasquePig1 public static class BasquePig1
@@ -154,20 +155,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ClassNameBoxedString -public static final class ClassNameBoxedString
+public record ClassNameBoxedString
implements [ClassNameBoxed](#classnameboxed) -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 | | --------------------------- | | ClassNameBoxedString(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 | ## ClassName public static class ClassName
diff --git a/samples/client/petstore/java/docs/components/schemas/BooleanEnum.md b/samples/client/petstore/java/docs/components/schemas/BooleanEnum.md index 4cc55a8f3ff..6ae209d1153 100644 --- a/samples/client/petstore/java/docs/components/schemas/BooleanEnum.md +++ b/samples/client/petstore/java/docs/components/schemas/BooleanEnum.md @@ -11,8 +11,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [BooleanEnum.BooleanEnum1Boxed](#booleanenum1boxed)
abstract sealed validated payload class | -| static class | [BooleanEnum.BooleanEnum1BoxedBoolean](#booleanenum1boxedboolean)
boxed class to store validated boolean payloads | +| sealed interface | [BooleanEnum.BooleanEnum1Boxed](#booleanenum1boxed)
abstract sealed validated payload class | +| record | [BooleanEnum.BooleanEnum1BoxedBoolean](#booleanenum1boxedboolean)
boxed class to store validated boolean payloads | | static class | [BooleanEnum.BooleanEnum1](#booleanenum1)
schema class | | enum | [BooleanEnum.BooleanBooleanEnumEnums](#booleanbooleanenumenums)
boolean enum | @@ -24,20 +24,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## BooleanEnum1BoxedBoolean -public static final class BooleanEnum1BoxedBoolean
+public record BooleanEnum1BoxedBoolean
implements [BooleanEnum1Boxed](#booleanenum1boxed) -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 | | --------------------------- | | BooleanEnum1BoxedBoolean(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 | ## BooleanEnum1 public static class BooleanEnum1
diff --git a/samples/client/petstore/java/docs/components/schemas/BooleanSchema.md b/samples/client/petstore/java/docs/components/schemas/BooleanSchema.md index 554ffe89b10..bb3641bdb9d 100644 --- a/samples/client/petstore/java/docs/components/schemas/BooleanSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/BooleanSchema.md @@ -10,8 +10,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [BooleanSchema.BooleanSchema1Boxed](#booleanschema1boxed)
abstract sealed validated payload class | -| static class | [BooleanSchema.BooleanSchema1BoxedBoolean](#booleanschema1boxedboolean)
boxed class to store validated boolean payloads | +| sealed interface | [BooleanSchema.BooleanSchema1Boxed](#booleanschema1boxed)
abstract sealed validated payload class | +| record | [BooleanSchema.BooleanSchema1BoxedBoolean](#booleanschema1boxedboolean)
boxed class to store validated boolean payloads | | static class | [BooleanSchema.BooleanSchema1](#booleanschema1)
schema class | ## BooleanSchema1Boxed @@ -22,20 +22,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## BooleanSchema1BoxedBoolean -public static final class BooleanSchema1BoxedBoolean
+public record BooleanSchema1BoxedBoolean
implements [BooleanSchema1Boxed](#booleanschema1boxed) -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 | | --------------------------- | | BooleanSchema1BoxedBoolean(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 | ## BooleanSchema1 public static class BooleanSchema1
diff --git a/samples/client/petstore/java/docs/components/schemas/Capitalization.md b/samples/client/petstore/java/docs/components/schemas/Capitalization.md index 57a2584e4aa..824d5205452 100644 --- a/samples/client/petstore/java/docs/components/schemas/Capitalization.md +++ b/samples/client/petstore/java/docs/components/schemas/Capitalization.md @@ -12,28 +12,28 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Capitalization.Capitalization1Boxed](#capitalization1boxed)
abstract sealed validated payload class | -| static class | [Capitalization.Capitalization1BoxedMap](#capitalization1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Capitalization.Capitalization1Boxed](#capitalization1boxed)
abstract sealed validated payload class | +| record | [Capitalization.Capitalization1BoxedMap](#capitalization1boxedmap)
boxed class to store validated Map payloads | | static class | [Capitalization.Capitalization1](#capitalization1)
schema class | | static class | [Capitalization.CapitalizationMapBuilder](#capitalizationmapbuilder)
builder for Map payloads | | static class | [Capitalization.CapitalizationMap](#capitalizationmap)
output class for Map payloads | -| static class | [Capitalization.ATTNAMEBoxed](#attnameboxed)
abstract sealed validated payload class | -| static class | [Capitalization.ATTNAMEBoxedString](#attnameboxedstring)
boxed class to store validated String payloads | +| sealed interface | [Capitalization.ATTNAMEBoxed](#attnameboxed)
abstract sealed validated payload class | +| record | [Capitalization.ATTNAMEBoxedString](#attnameboxedstring)
boxed class to store validated String payloads | | static class | [Capitalization.ATTNAME](#attname)
schema class | -| static class | [Capitalization.SCAETHFlowPointsBoxed](#scaethflowpointsboxed)
abstract sealed validated payload class | -| static class | [Capitalization.SCAETHFlowPointsBoxedString](#scaethflowpointsboxedstring)
boxed class to store validated String payloads | +| sealed interface | [Capitalization.SCAETHFlowPointsBoxed](#scaethflowpointsboxed)
abstract sealed validated payload class | +| record | [Capitalization.SCAETHFlowPointsBoxedString](#scaethflowpointsboxedstring)
boxed class to store validated String payloads | | static class | [Capitalization.SCAETHFlowPoints](#scaethflowpoints)
schema class | -| static class | [Capitalization.CapitalSnakeBoxed](#capitalsnakeboxed)
abstract sealed validated payload class | -| static class | [Capitalization.CapitalSnakeBoxedString](#capitalsnakeboxedstring)
boxed class to store validated String payloads | +| sealed interface | [Capitalization.CapitalSnakeBoxed](#capitalsnakeboxed)
abstract sealed validated payload class | +| record | [Capitalization.CapitalSnakeBoxedString](#capitalsnakeboxedstring)
boxed class to store validated String payloads | | static class | [Capitalization.CapitalSnake](#capitalsnake)
schema class | -| static class | [Capitalization.SmallSnakeBoxed](#smallsnakeboxed)
abstract sealed validated payload class | -| static class | [Capitalization.SmallSnakeBoxedString](#smallsnakeboxedstring)
boxed class to store validated String payloads | +| sealed interface | [Capitalization.SmallSnakeBoxed](#smallsnakeboxed)
abstract sealed validated payload class | +| record | [Capitalization.SmallSnakeBoxedString](#smallsnakeboxedstring)
boxed class to store validated String payloads | | static class | [Capitalization.SmallSnake](#smallsnake)
schema class | -| static class | [Capitalization.CapitalCamelBoxed](#capitalcamelboxed)
abstract sealed validated payload class | -| static class | [Capitalization.CapitalCamelBoxedString](#capitalcamelboxedstring)
boxed class to store validated String payloads | +| sealed interface | [Capitalization.CapitalCamelBoxed](#capitalcamelboxed)
abstract sealed validated payload class | +| record | [Capitalization.CapitalCamelBoxedString](#capitalcamelboxedstring)
boxed class to store validated String payloads | | static class | [Capitalization.CapitalCamel](#capitalcamel)
schema class | -| static class | [Capitalization.SmallCamelBoxed](#smallcamelboxed)
abstract sealed validated payload class | -| static class | [Capitalization.SmallCamelBoxedString](#smallcamelboxedstring)
boxed class to store validated String payloads | +| sealed interface | [Capitalization.SmallCamelBoxed](#smallcamelboxed)
abstract sealed validated payload class | +| record | [Capitalization.SmallCamelBoxedString](#smallcamelboxedstring)
boxed class to store validated String payloads | | static class | [Capitalization.SmallCamel](#smallcamel)
schema class | ## Capitalization1Boxed @@ -44,20 +44,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Capitalization1BoxedMap -public static final class Capitalization1BoxedMap
+public record Capitalization1BoxedMap
implements [Capitalization1Boxed](#capitalization1boxed) -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 | | --------------------------- | | Capitalization1BoxedMap([CapitalizationMap](#capitalizationmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CapitalizationMap](#capitalizationmap) | data
validated payload | +| [CapitalizationMap](#capitalizationmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Capitalization1 public static class Capitalization1
@@ -170,20 +171,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ATTNAMEBoxedString -public static final class ATTNAMEBoxedString
+public record ATTNAMEBoxedString
implements [ATTNAMEBoxed](#attnameboxed) -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 | | --------------------------- | | ATTNAMEBoxedString(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 | ## ATTNAME public static class ATTNAME
@@ -207,20 +209,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## SCAETHFlowPointsBoxedString -public static final class SCAETHFlowPointsBoxedString
+public record SCAETHFlowPointsBoxedString
implements [SCAETHFlowPointsBoxed](#scaethflowpointsboxed) -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 | | --------------------------- | | SCAETHFlowPointsBoxedString(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 | ## SCAETHFlowPoints public static class SCAETHFlowPoints
@@ -241,20 +244,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## CapitalSnakeBoxedString -public static final class CapitalSnakeBoxedString
+public record CapitalSnakeBoxedString
implements [CapitalSnakeBoxed](#capitalsnakeboxed) -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 | | --------------------------- | | CapitalSnakeBoxedString(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 | ## CapitalSnake public static class CapitalSnake
@@ -275,20 +279,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## SmallSnakeBoxedString -public static final class SmallSnakeBoxedString
+public record SmallSnakeBoxedString
implements [SmallSnakeBoxed](#smallsnakeboxed) -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 | | --------------------------- | | SmallSnakeBoxedString(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 | ## SmallSnake public static class SmallSnake
@@ -309,20 +314,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## CapitalCamelBoxedString -public static final class CapitalCamelBoxedString
+public record CapitalCamelBoxedString
implements [CapitalCamelBoxed](#capitalcamelboxed) -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 | | --------------------------- | | CapitalCamelBoxedString(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 | ## CapitalCamel public static class CapitalCamel
@@ -343,20 +349,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## SmallCamelBoxedString -public static final class SmallCamelBoxedString
+public record SmallCamelBoxedString
implements [SmallCamelBoxed](#smallcamelboxed) -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 | | --------------------------- | | SmallCamelBoxedString(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 | ## SmallCamel public static class SmallCamel
diff --git a/samples/client/petstore/java/docs/components/schemas/Cat.md b/samples/client/petstore/java/docs/components/schemas/Cat.md index ba0cf825269..33da04fbd40 100644 --- a/samples/client/petstore/java/docs/components/schemas/Cat.md +++ b/samples/client/petstore/java/docs/components/schemas/Cat.md @@ -12,21 +12,21 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Cat.Cat1Boxed](#cat1boxed)
abstract sealed validated payload class | -| static class | [Cat.Cat1BoxedVoid](#cat1boxedvoid)
boxed class to store validated null payloads | -| static class | [Cat.Cat1BoxedBoolean](#cat1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [Cat.Cat1BoxedNumber](#cat1boxednumber)
boxed class to store validated Number payloads | -| static class | [Cat.Cat1BoxedString](#cat1boxedstring)
boxed class to store validated String payloads | -| static class | [Cat.Cat1BoxedList](#cat1boxedlist)
boxed class to store validated List payloads | -| static class | [Cat.Cat1BoxedMap](#cat1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Cat.Cat1Boxed](#cat1boxed)
abstract sealed validated payload class | +| record | [Cat.Cat1BoxedVoid](#cat1boxedvoid)
boxed class to store validated null payloads | +| record | [Cat.Cat1BoxedBoolean](#cat1boxedboolean)
boxed class to store validated boolean payloads | +| record | [Cat.Cat1BoxedNumber](#cat1boxednumber)
boxed class to store validated Number payloads | +| record | [Cat.Cat1BoxedString](#cat1boxedstring)
boxed class to store validated String payloads | +| record | [Cat.Cat1BoxedList](#cat1boxedlist)
boxed class to store validated List payloads | +| record | [Cat.Cat1BoxedMap](#cat1boxedmap)
boxed class to store validated Map payloads | | static class | [Cat.Cat1](#cat1)
schema class | -| static class | [Cat.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | -| static class | [Cat.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Cat.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | +| record | [Cat.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | | static class | [Cat.Schema1](#schema1)
schema class | | static class | [Cat.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [Cat.Schema1Map](#schema1map)
output class for Map payloads | -| static class | [Cat.DeclawedBoxed](#declawedboxed)
abstract sealed validated payload class | -| static class | [Cat.DeclawedBoxedBoolean](#declawedboxedboolean)
boxed class to store validated boolean payloads | +| sealed interface | [Cat.DeclawedBoxed](#declawedboxed)
abstract sealed validated payload class | +| record | [Cat.DeclawedBoxedBoolean](#declawedboxedboolean)
boxed class to store validated boolean payloads | | static class | [Cat.Declawed](#declawed)
schema class | ## Cat1Boxed @@ -42,100 +42,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## Cat1BoxedVoid -public static final class Cat1BoxedVoid
+public record Cat1BoxedVoid
implements [Cat1Boxed](#cat1boxed) -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 | | --------------------------- | | Cat1BoxedVoid(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 | ## Cat1BoxedBoolean -public static final class Cat1BoxedBoolean
+public record Cat1BoxedBoolean
implements [Cat1Boxed](#cat1boxed) -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 | | --------------------------- | | Cat1BoxedBoolean(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 | ## Cat1BoxedNumber -public static final class Cat1BoxedNumber
+public record Cat1BoxedNumber
implements [Cat1Boxed](#cat1boxed) -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 | | --------------------------- | | Cat1BoxedNumber(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 | ## Cat1BoxedString -public static final class Cat1BoxedString
+public record Cat1BoxedString
implements [Cat1Boxed](#cat1boxed) -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 | | --------------------------- | | Cat1BoxedString(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 | ## Cat1BoxedList -public static final class Cat1BoxedList
+public record Cat1BoxedList
implements [Cat1Boxed](#cat1boxed) -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 | | --------------------------- | | Cat1BoxedList(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 | ## Cat1BoxedMap -public static final class Cat1BoxedMap
+public record Cat1BoxedMap
implements [Cat1Boxed](#cat1boxed) -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 | | --------------------------- | | Cat1BoxedMap(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 | ## Cat1 public static class Cat1
@@ -176,20 +182,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema1BoxedMap -public static final class Schema1BoxedMap
+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
@@ -282,20 +289,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## DeclawedBoxedBoolean -public static final class DeclawedBoxedBoolean
+public record DeclawedBoxedBoolean
implements [DeclawedBoxed](#declawedboxed) -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 | | --------------------------- | | DeclawedBoxedBoolean(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 | ## Declawed public static class Declawed
diff --git a/samples/client/petstore/java/docs/components/schemas/Category.md b/samples/client/petstore/java/docs/components/schemas/Category.md index 7b375468633..fd082995a52 100644 --- a/samples/client/petstore/java/docs/components/schemas/Category.md +++ b/samples/client/petstore/java/docs/components/schemas/Category.md @@ -12,16 +12,16 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Category.Category1Boxed](#category1boxed)
abstract sealed validated payload class | -| static class | [Category.Category1BoxedMap](#category1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Category.Category1Boxed](#category1boxed)
abstract sealed validated payload class | +| record | [Category.Category1BoxedMap](#category1boxedmap)
boxed class to store validated Map payloads | | static class | [Category.Category1](#category1)
schema class | | static class | [Category.CategoryMapBuilder](#categorymapbuilder)
builder for Map payloads | | static class | [Category.CategoryMap](#categorymap)
output class for Map payloads | -| static class | [Category.NameBoxed](#nameboxed)
abstract sealed validated payload class | -| static class | [Category.NameBoxedString](#nameboxedstring)
boxed class to store validated String payloads | +| sealed interface | [Category.NameBoxed](#nameboxed)
abstract sealed validated payload class | +| record | [Category.NameBoxedString](#nameboxedstring)
boxed class to store validated String payloads | | static class | [Category.Name](#name)
schema class | -| static class | [Category.IdBoxed](#idboxed)
abstract sealed validated payload class | -| static class | [Category.IdBoxedNumber](#idboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [Category.IdBoxed](#idboxed)
abstract sealed validated payload class | +| record | [Category.IdBoxedNumber](#idboxednumber)
boxed class to store validated Number payloads | | static class | [Category.Id](#id)
schema class | ## Category1Boxed @@ -32,20 +32,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Category1BoxedMap -public static final class Category1BoxedMap
+public record Category1BoxedMap
implements [Category1Boxed](#category1boxed) -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 | | --------------------------- | | Category1BoxedMap([CategoryMap](#categorymap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CategoryMap](#categorymap) | data
validated payload | +| [CategoryMap](#categorymap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Category1 public static class Category1
@@ -161,20 +162,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## NameBoxedString -public static final class NameBoxedString
+public record NameBoxedString
implements [NameBoxed](#nameboxed) -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 | | --------------------------- | | NameBoxedString(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 | ## Name public static class Name
@@ -224,20 +226,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## IdBoxedNumber -public static final class IdBoxedNumber
+public record IdBoxedNumber
implements [IdBoxed](#idboxed) -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 | | --------------------------- | | IdBoxedNumber(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 | ## Id public static class Id
diff --git a/samples/client/petstore/java/docs/components/schemas/ChildCat.md b/samples/client/petstore/java/docs/components/schemas/ChildCat.md index 32e0ac7e843..9c2947c385b 100644 --- a/samples/client/petstore/java/docs/components/schemas/ChildCat.md +++ b/samples/client/petstore/java/docs/components/schemas/ChildCat.md @@ -12,21 +12,21 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ChildCat.ChildCat1Boxed](#childcat1boxed)
abstract sealed validated payload class | -| static class | [ChildCat.ChildCat1BoxedVoid](#childcat1boxedvoid)
boxed class to store validated null payloads | -| static class | [ChildCat.ChildCat1BoxedBoolean](#childcat1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ChildCat.ChildCat1BoxedNumber](#childcat1boxednumber)
boxed class to store validated Number payloads | -| static class | [ChildCat.ChildCat1BoxedString](#childcat1boxedstring)
boxed class to store validated String payloads | -| static class | [ChildCat.ChildCat1BoxedList](#childcat1boxedlist)
boxed class to store validated List payloads | -| static class | [ChildCat.ChildCat1BoxedMap](#childcat1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ChildCat.ChildCat1Boxed](#childcat1boxed)
abstract sealed validated payload class | +| record | [ChildCat.ChildCat1BoxedVoid](#childcat1boxedvoid)
boxed class to store validated null payloads | +| record | [ChildCat.ChildCat1BoxedBoolean](#childcat1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ChildCat.ChildCat1BoxedNumber](#childcat1boxednumber)
boxed class to store validated Number payloads | +| record | [ChildCat.ChildCat1BoxedString](#childcat1boxedstring)
boxed class to store validated String payloads | +| record | [ChildCat.ChildCat1BoxedList](#childcat1boxedlist)
boxed class to store validated List payloads | +| record | [ChildCat.ChildCat1BoxedMap](#childcat1boxedmap)
boxed class to store validated Map payloads | | static class | [ChildCat.ChildCat1](#childcat1)
schema class | -| static class | [ChildCat.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | -| static class | [ChildCat.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ChildCat.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | +| record | [ChildCat.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | | static class | [ChildCat.Schema1](#schema1)
schema class | | static class | [ChildCat.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [ChildCat.Schema1Map](#schema1map)
output class for Map payloads | -| static class | [ChildCat.NameBoxed](#nameboxed)
abstract sealed validated payload class | -| static class | [ChildCat.NameBoxedString](#nameboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ChildCat.NameBoxed](#nameboxed)
abstract sealed validated payload class | +| record | [ChildCat.NameBoxedString](#nameboxedstring)
boxed class to store validated String payloads | | static class | [ChildCat.Name](#name)
schema class | ## ChildCat1Boxed @@ -42,100 +42,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## ChildCat1BoxedVoid -public static final class ChildCat1BoxedVoid
+public record ChildCat1BoxedVoid
implements [ChildCat1Boxed](#childcat1boxed) -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 | | --------------------------- | | ChildCat1BoxedVoid(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 | ## ChildCat1BoxedBoolean -public static final class ChildCat1BoxedBoolean
+public record ChildCat1BoxedBoolean
implements [ChildCat1Boxed](#childcat1boxed) -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 | | --------------------------- | | ChildCat1BoxedBoolean(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 | ## ChildCat1BoxedNumber -public static final class ChildCat1BoxedNumber
+public record ChildCat1BoxedNumber
implements [ChildCat1Boxed](#childcat1boxed) -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 | | --------------------------- | | ChildCat1BoxedNumber(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 | ## ChildCat1BoxedString -public static final class ChildCat1BoxedString
+public record ChildCat1BoxedString
implements [ChildCat1Boxed](#childcat1boxed) -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 | | --------------------------- | | ChildCat1BoxedString(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 | ## ChildCat1BoxedList -public static final class ChildCat1BoxedList
+public record ChildCat1BoxedList
implements [ChildCat1Boxed](#childcat1boxed) -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 | | --------------------------- | | ChildCat1BoxedList(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 | ## ChildCat1BoxedMap -public static final class ChildCat1BoxedMap
+public record ChildCat1BoxedMap
implements [ChildCat1Boxed](#childcat1boxed) -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 | | --------------------------- | | ChildCat1BoxedMap(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 | ## ChildCat1 public static class ChildCat1
@@ -176,20 +182,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema1BoxedMap -public static final class Schema1BoxedMap
+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
@@ -282,20 +289,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## NameBoxedString -public static final class NameBoxedString
+public record NameBoxedString
implements [NameBoxed](#nameboxed) -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 | | --------------------------- | | NameBoxedString(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 | ## Name public static class Name
diff --git a/samples/client/petstore/java/docs/components/schemas/ClassModel.md b/samples/client/petstore/java/docs/components/schemas/ClassModel.md index 068d77a785e..71f0ec72a68 100644 --- a/samples/client/petstore/java/docs/components/schemas/ClassModel.md +++ b/samples/client/petstore/java/docs/components/schemas/ClassModel.md @@ -12,18 +12,18 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ClassModel.ClassModel1Boxed](#classmodel1boxed)
abstract sealed validated payload class | -| static class | [ClassModel.ClassModel1BoxedVoid](#classmodel1boxedvoid)
boxed class to store validated null payloads | -| static class | [ClassModel.ClassModel1BoxedBoolean](#classmodel1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ClassModel.ClassModel1BoxedNumber](#classmodel1boxednumber)
boxed class to store validated Number payloads | -| static class | [ClassModel.ClassModel1BoxedString](#classmodel1boxedstring)
boxed class to store validated String payloads | -| static class | [ClassModel.ClassModel1BoxedList](#classmodel1boxedlist)
boxed class to store validated List payloads | -| static class | [ClassModel.ClassModel1BoxedMap](#classmodel1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ClassModel.ClassModel1Boxed](#classmodel1boxed)
abstract sealed validated payload class | +| record | [ClassModel.ClassModel1BoxedVoid](#classmodel1boxedvoid)
boxed class to store validated null payloads | +| record | [ClassModel.ClassModel1BoxedBoolean](#classmodel1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ClassModel.ClassModel1BoxedNumber](#classmodel1boxednumber)
boxed class to store validated Number payloads | +| record | [ClassModel.ClassModel1BoxedString](#classmodel1boxedstring)
boxed class to store validated String payloads | +| record | [ClassModel.ClassModel1BoxedList](#classmodel1boxedlist)
boxed class to store validated List payloads | +| record | [ClassModel.ClassModel1BoxedMap](#classmodel1boxedmap)
boxed class to store validated Map payloads | | static class | [ClassModel.ClassModel1](#classmodel1)
schema class | | static class | [ClassModel.ClassModelMapBuilder](#classmodelmapbuilder)
builder for Map payloads | | static class | [ClassModel.ClassModelMap](#classmodelmap)
output class for Map payloads | -| static class | [ClassModel.ClassSchemaBoxed](#classschemaboxed)
abstract sealed validated payload class | -| static class | [ClassModel.ClassSchemaBoxedString](#classschemaboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ClassModel.ClassSchemaBoxed](#classschemaboxed)
abstract sealed validated payload class | +| record | [ClassModel.ClassSchemaBoxedString](#classschemaboxedstring)
boxed class to store validated String payloads | | static class | [ClassModel.ClassSchema](#classschema)
schema class | ## ClassModel1Boxed @@ -39,100 +39,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## ClassModel1BoxedVoid -public static final class ClassModel1BoxedVoid
+public record ClassModel1BoxedVoid
implements [ClassModel1Boxed](#classmodel1boxed) -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 | | --------------------------- | | ClassModel1BoxedVoid(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 | ## ClassModel1BoxedBoolean -public static final class ClassModel1BoxedBoolean
+public record ClassModel1BoxedBoolean
implements [ClassModel1Boxed](#classmodel1boxed) -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 | | --------------------------- | | ClassModel1BoxedBoolean(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 | ## ClassModel1BoxedNumber -public static final class ClassModel1BoxedNumber
+public record ClassModel1BoxedNumber
implements [ClassModel1Boxed](#classmodel1boxed) -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 | | --------------------------- | | ClassModel1BoxedNumber(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 | ## ClassModel1BoxedString -public static final class ClassModel1BoxedString
+public record ClassModel1BoxedString
implements [ClassModel1Boxed](#classmodel1boxed) -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 | | --------------------------- | | ClassModel1BoxedString(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 | ## ClassModel1BoxedList -public static final class ClassModel1BoxedList
+public record ClassModel1BoxedList
implements [ClassModel1Boxed](#classmodel1boxed) -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 | | --------------------------- | | ClassModel1BoxedList(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 | ## ClassModel1BoxedMap -public static final class ClassModel1BoxedMap
+public record ClassModel1BoxedMap
implements [ClassModel1Boxed](#classmodel1boxed) -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 | | --------------------------- | | ClassModel1BoxedMap([ClassModelMap](#classmodelmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ClassModelMap](#classmodelmap) | data
validated payload | +| [ClassModelMap](#classmodelmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ClassModel1 public static class ClassModel1
@@ -215,20 +221,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ClassSchemaBoxedString -public static final class ClassSchemaBoxedString
+public record ClassSchemaBoxedString
implements [ClassSchemaBoxed](#classschemaboxed) -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 | | --------------------------- | | ClassSchemaBoxedString(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 | ## ClassSchema public static class ClassSchema
diff --git a/samples/client/petstore/java/docs/components/schemas/Client.md b/samples/client/petstore/java/docs/components/schemas/Client.md index 909aeeb4e62..e6e5ae67f53 100644 --- a/samples/client/petstore/java/docs/components/schemas/Client.md +++ b/samples/client/petstore/java/docs/components/schemas/Client.md @@ -12,13 +12,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Client.Client1Boxed](#client1boxed)
abstract sealed validated payload class | -| static class | [Client.Client1BoxedMap](#client1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Client.Client1Boxed](#client1boxed)
abstract sealed validated payload class | +| record | [Client.Client1BoxedMap](#client1boxedmap)
boxed class to store validated Map payloads | | static class | [Client.Client1](#client1)
schema class | | static class | [Client.ClientMapBuilder1](#clientmapbuilder1)
builder for Map payloads | | static class | [Client.ClientMap](#clientmap)
output class for Map payloads | -| static class | [Client.Client2Boxed](#client2boxed)
abstract sealed validated payload class | -| static class | [Client.Client2BoxedString](#client2boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Client.Client2Boxed](#client2boxed)
abstract sealed validated payload class | +| record | [Client.Client2BoxedString](#client2boxedstring)
boxed class to store validated String payloads | | static class | [Client.Client2](#client2)
schema class | ## Client1Boxed @@ -29,20 +29,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Client1BoxedMap -public static final class Client1BoxedMap
+public record Client1BoxedMap
implements [Client1Boxed](#client1boxed) -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 | | --------------------------- | | Client1BoxedMap([ClientMap](#clientmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ClientMap](#clientmap) | data
validated payload | +| [ClientMap](#clientmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Client1 public static class Client1
@@ -135,20 +136,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Client2BoxedString -public static final class Client2BoxedString
+public record Client2BoxedString
implements [Client2Boxed](#client2boxed) -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 | | --------------------------- | | Client2BoxedString(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 | ## Client2 public static class Client2
diff --git a/samples/client/petstore/java/docs/components/schemas/ComplexQuadrilateral.md b/samples/client/petstore/java/docs/components/schemas/ComplexQuadrilateral.md index f300b200318..366690f608f 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComplexQuadrilateral.md +++ b/samples/client/petstore/java/docs/components/schemas/ComplexQuadrilateral.md @@ -13,21 +13,21 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ComplexQuadrilateral.ComplexQuadrilateral1Boxed](#complexquadrilateral1boxed)
abstract sealed validated payload class | -| static class | [ComplexQuadrilateral.ComplexQuadrilateral1BoxedVoid](#complexquadrilateral1boxedvoid)
boxed class to store validated null payloads | -| static class | [ComplexQuadrilateral.ComplexQuadrilateral1BoxedBoolean](#complexquadrilateral1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ComplexQuadrilateral.ComplexQuadrilateral1BoxedNumber](#complexquadrilateral1boxednumber)
boxed class to store validated Number payloads | -| static class | [ComplexQuadrilateral.ComplexQuadrilateral1BoxedString](#complexquadrilateral1boxedstring)
boxed class to store validated String payloads | -| static class | [ComplexQuadrilateral.ComplexQuadrilateral1BoxedList](#complexquadrilateral1boxedlist)
boxed class to store validated List payloads | -| static class | [ComplexQuadrilateral.ComplexQuadrilateral1BoxedMap](#complexquadrilateral1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ComplexQuadrilateral.ComplexQuadrilateral1Boxed](#complexquadrilateral1boxed)
abstract sealed validated payload class | +| record | [ComplexQuadrilateral.ComplexQuadrilateral1BoxedVoid](#complexquadrilateral1boxedvoid)
boxed class to store validated null payloads | +| record | [ComplexQuadrilateral.ComplexQuadrilateral1BoxedBoolean](#complexquadrilateral1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ComplexQuadrilateral.ComplexQuadrilateral1BoxedNumber](#complexquadrilateral1boxednumber)
boxed class to store validated Number payloads | +| record | [ComplexQuadrilateral.ComplexQuadrilateral1BoxedString](#complexquadrilateral1boxedstring)
boxed class to store validated String payloads | +| record | [ComplexQuadrilateral.ComplexQuadrilateral1BoxedList](#complexquadrilateral1boxedlist)
boxed class to store validated List payloads | +| record | [ComplexQuadrilateral.ComplexQuadrilateral1BoxedMap](#complexquadrilateral1boxedmap)
boxed class to store validated Map payloads | | static class | [ComplexQuadrilateral.ComplexQuadrilateral1](#complexquadrilateral1)
schema class | -| static class | [ComplexQuadrilateral.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | -| static class | [ComplexQuadrilateral.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ComplexQuadrilateral.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | +| record | [ComplexQuadrilateral.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | | static class | [ComplexQuadrilateral.Schema1](#schema1)
schema class | | static class | [ComplexQuadrilateral.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [ComplexQuadrilateral.Schema1Map](#schema1map)
output class for Map payloads | -| static class | [ComplexQuadrilateral.QuadrilateralTypeBoxed](#quadrilateraltypeboxed)
abstract sealed validated payload class | -| static class | [ComplexQuadrilateral.QuadrilateralTypeBoxedString](#quadrilateraltypeboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ComplexQuadrilateral.QuadrilateralTypeBoxed](#quadrilateraltypeboxed)
abstract sealed validated payload class | +| record | [ComplexQuadrilateral.QuadrilateralTypeBoxedString](#quadrilateraltypeboxedstring)
boxed class to store validated String payloads | | static class | [ComplexQuadrilateral.QuadrilateralType](#quadrilateraltype)
schema class | | enum | [ComplexQuadrilateral.StringQuadrilateralTypeEnums](#stringquadrilateraltypeenums)
String enum | @@ -44,100 +44,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## ComplexQuadrilateral1BoxedVoid -public static final class ComplexQuadrilateral1BoxedVoid
+public record ComplexQuadrilateral1BoxedVoid
implements [ComplexQuadrilateral1Boxed](#complexquadrilateral1boxed) -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 | | --------------------------- | | ComplexQuadrilateral1BoxedVoid(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 | ## ComplexQuadrilateral1BoxedBoolean -public static final class ComplexQuadrilateral1BoxedBoolean
+public record ComplexQuadrilateral1BoxedBoolean
implements [ComplexQuadrilateral1Boxed](#complexquadrilateral1boxed) -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 | | --------------------------- | | ComplexQuadrilateral1BoxedBoolean(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 | ## ComplexQuadrilateral1BoxedNumber -public static final class ComplexQuadrilateral1BoxedNumber
+public record ComplexQuadrilateral1BoxedNumber
implements [ComplexQuadrilateral1Boxed](#complexquadrilateral1boxed) -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 | | --------------------------- | | ComplexQuadrilateral1BoxedNumber(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 | ## ComplexQuadrilateral1BoxedString -public static final class ComplexQuadrilateral1BoxedString
+public record ComplexQuadrilateral1BoxedString
implements [ComplexQuadrilateral1Boxed](#complexquadrilateral1boxed) -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 | | --------------------------- | | ComplexQuadrilateral1BoxedString(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 | ## ComplexQuadrilateral1BoxedList -public static final class ComplexQuadrilateral1BoxedList
+public record ComplexQuadrilateral1BoxedList
implements [ComplexQuadrilateral1Boxed](#complexquadrilateral1boxed) -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 | | --------------------------- | | ComplexQuadrilateral1BoxedList(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 | ## ComplexQuadrilateral1BoxedMap -public static final class ComplexQuadrilateral1BoxedMap
+public record ComplexQuadrilateral1BoxedMap
implements [ComplexQuadrilateral1Boxed](#complexquadrilateral1boxed) -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 | | --------------------------- | | ComplexQuadrilateral1BoxedMap(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 | ## ComplexQuadrilateral1 public static class ComplexQuadrilateral1
@@ -178,20 +184,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema1BoxedMap -public static final class Schema1BoxedMap
+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
@@ -285,20 +292,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## QuadrilateralTypeBoxedString -public static final class QuadrilateralTypeBoxedString
+public record QuadrilateralTypeBoxedString
implements [QuadrilateralTypeBoxed](#quadrilateraltypeboxed) -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 | | --------------------------- | | QuadrilateralTypeBoxedString(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 | ## QuadrilateralType public static class QuadrilateralType
diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedAnyOfDifferentTypesNoValidations.md b/samples/client/petstore/java/docs/components/schemas/ComposedAnyOfDifferentTypesNoValidations.md index 71753a32a2b..bec6c28c970 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedAnyOfDifferentTypesNoValidations.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedAnyOfDifferentTypesNoValidations.md @@ -12,70 +12,70 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ComposedAnyOfDifferentTypesNoValidations.ComposedAnyOfDifferentTypesNoValidations1Boxed](#composedanyofdifferenttypesnovalidations1boxed)
abstract sealed validated payload class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.ComposedAnyOfDifferentTypesNoValidations1BoxedVoid](#composedanyofdifferenttypesnovalidations1boxedvoid)
boxed class to store validated null payloads | -| static class | [ComposedAnyOfDifferentTypesNoValidations.ComposedAnyOfDifferentTypesNoValidations1BoxedBoolean](#composedanyofdifferenttypesnovalidations1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ComposedAnyOfDifferentTypesNoValidations.ComposedAnyOfDifferentTypesNoValidations1BoxedNumber](#composedanyofdifferenttypesnovalidations1boxednumber)
boxed class to store validated Number payloads | -| static class | [ComposedAnyOfDifferentTypesNoValidations.ComposedAnyOfDifferentTypesNoValidations1BoxedString](#composedanyofdifferenttypesnovalidations1boxedstring)
boxed class to store validated String payloads | -| static class | [ComposedAnyOfDifferentTypesNoValidations.ComposedAnyOfDifferentTypesNoValidations1BoxedList](#composedanyofdifferenttypesnovalidations1boxedlist)
boxed class to store validated List payloads | -| static class | [ComposedAnyOfDifferentTypesNoValidations.ComposedAnyOfDifferentTypesNoValidations1BoxedMap](#composedanyofdifferenttypesnovalidations1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.ComposedAnyOfDifferentTypesNoValidations1Boxed](#composedanyofdifferenttypesnovalidations1boxed)
abstract sealed validated payload class | +| record | [ComposedAnyOfDifferentTypesNoValidations.ComposedAnyOfDifferentTypesNoValidations1BoxedVoid](#composedanyofdifferenttypesnovalidations1boxedvoid)
boxed class to store validated null payloads | +| record | [ComposedAnyOfDifferentTypesNoValidations.ComposedAnyOfDifferentTypesNoValidations1BoxedBoolean](#composedanyofdifferenttypesnovalidations1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ComposedAnyOfDifferentTypesNoValidations.ComposedAnyOfDifferentTypesNoValidations1BoxedNumber](#composedanyofdifferenttypesnovalidations1boxednumber)
boxed class to store validated Number payloads | +| record | [ComposedAnyOfDifferentTypesNoValidations.ComposedAnyOfDifferentTypesNoValidations1BoxedString](#composedanyofdifferenttypesnovalidations1boxedstring)
boxed class to store validated String payloads | +| record | [ComposedAnyOfDifferentTypesNoValidations.ComposedAnyOfDifferentTypesNoValidations1BoxedList](#composedanyofdifferenttypesnovalidations1boxedlist)
boxed class to store validated List payloads | +| record | [ComposedAnyOfDifferentTypesNoValidations.ComposedAnyOfDifferentTypesNoValidations1BoxedMap](#composedanyofdifferenttypesnovalidations1boxedmap)
boxed class to store validated Map payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.ComposedAnyOfDifferentTypesNoValidations1](#composedanyofdifferenttypesnovalidations1)
schema class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.Schema15Boxed](#schema15boxed)
abstract sealed validated payload class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.Schema15BoxedNumber](#schema15boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema15Boxed](#schema15boxed)
abstract sealed validated payload class | +| record | [ComposedAnyOfDifferentTypesNoValidations.Schema15BoxedNumber](#schema15boxednumber)
boxed class to store validated Number payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema15](#schema15)
schema class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.Schema14Boxed](#schema14boxed)
abstract sealed validated payload class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.Schema14BoxedNumber](#schema14boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema14Boxed](#schema14boxed)
abstract sealed validated payload class | +| record | [ComposedAnyOfDifferentTypesNoValidations.Schema14BoxedNumber](#schema14boxednumber)
boxed class to store validated Number payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema14](#schema14)
schema class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.Schema13Boxed](#schema13boxed)
abstract sealed validated payload class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.Schema13BoxedNumber](#schema13boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema13Boxed](#schema13boxed)
abstract sealed validated payload class | +| record | [ComposedAnyOfDifferentTypesNoValidations.Schema13BoxedNumber](#schema13boxednumber)
boxed class to store validated Number payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema13](#schema13)
schema class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.Schema12Boxed](#schema12boxed)
abstract sealed validated payload class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.Schema12BoxedNumber](#schema12boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema12Boxed](#schema12boxed)
abstract sealed validated payload class | +| record | [ComposedAnyOfDifferentTypesNoValidations.Schema12BoxedNumber](#schema12boxednumber)
boxed class to store validated Number payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema12](#schema12)
schema class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.Schema11Boxed](#schema11boxed)
abstract sealed validated payload class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.Schema11BoxedNumber](#schema11boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema11Boxed](#schema11boxed)
abstract sealed validated payload class | +| record | [ComposedAnyOfDifferentTypesNoValidations.Schema11BoxedNumber](#schema11boxednumber)
boxed class to store validated Number payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema11](#schema11)
schema class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.Schema10Boxed](#schema10boxed)
abstract sealed validated payload class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.Schema10BoxedNumber](#schema10boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema10Boxed](#schema10boxed)
abstract sealed validated payload class | +| record | [ComposedAnyOfDifferentTypesNoValidations.Schema10BoxedNumber](#schema10boxednumber)
boxed class to store validated Number payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema10](#schema10)
schema class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.Schema9Boxed](#schema9boxed)
abstract sealed validated payload class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.Schema9BoxedList](#schema9boxedlist)
boxed class to store validated List payloads | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema9Boxed](#schema9boxed)
abstract sealed validated payload class | +| record | [ComposedAnyOfDifferentTypesNoValidations.Schema9BoxedList](#schema9boxedlist)
boxed class to store validated List payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema9](#schema9)
schema class | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema9ListBuilder](#schema9listbuilder)
builder for List payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema9List](#schema9list)
output class for List payloads | -| static class | [ComposedAnyOfDifferentTypesNoValidations.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.ItemsBoxedVoid](#itemsboxedvoid)
boxed class to store validated null payloads | -| static class | [ComposedAnyOfDifferentTypesNoValidations.ItemsBoxedBoolean](#itemsboxedboolean)
boxed class to store validated boolean payloads | -| static class | [ComposedAnyOfDifferentTypesNoValidations.ItemsBoxedNumber](#itemsboxednumber)
boxed class to store validated Number payloads | -| static class | [ComposedAnyOfDifferentTypesNoValidations.ItemsBoxedString](#itemsboxedstring)
boxed class to store validated String payloads | -| static class | [ComposedAnyOfDifferentTypesNoValidations.ItemsBoxedList](#itemsboxedlist)
boxed class to store validated List payloads | -| static class | [ComposedAnyOfDifferentTypesNoValidations.ItemsBoxedMap](#itemsboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | +| record | [ComposedAnyOfDifferentTypesNoValidations.ItemsBoxedVoid](#itemsboxedvoid)
boxed class to store validated null payloads | +| record | [ComposedAnyOfDifferentTypesNoValidations.ItemsBoxedBoolean](#itemsboxedboolean)
boxed class to store validated boolean payloads | +| record | [ComposedAnyOfDifferentTypesNoValidations.ItemsBoxedNumber](#itemsboxednumber)
boxed class to store validated Number payloads | +| record | [ComposedAnyOfDifferentTypesNoValidations.ItemsBoxedString](#itemsboxedstring)
boxed class to store validated String payloads | +| record | [ComposedAnyOfDifferentTypesNoValidations.ItemsBoxedList](#itemsboxedlist)
boxed class to store validated List payloads | +| record | [ComposedAnyOfDifferentTypesNoValidations.ItemsBoxedMap](#itemsboxedmap)
boxed class to store validated Map payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Items](#items)
schema class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.Schema8Boxed](#schema8boxed)
abstract sealed validated payload class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.Schema8BoxedVoid](#schema8boxedvoid)
boxed class to store validated null payloads | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema8Boxed](#schema8boxed)
abstract sealed validated payload class | +| record | [ComposedAnyOfDifferentTypesNoValidations.Schema8BoxedVoid](#schema8boxedvoid)
boxed class to store validated null payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema8](#schema8)
schema class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.Schema7Boxed](#schema7boxed)
abstract sealed validated payload class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.Schema7BoxedBoolean](#schema7boxedboolean)
boxed class to store validated boolean payloads | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema7Boxed](#schema7boxed)
abstract sealed validated payload class | +| record | [ComposedAnyOfDifferentTypesNoValidations.Schema7BoxedBoolean](#schema7boxedboolean)
boxed class to store validated boolean payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema7](#schema7)
schema class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.Schema6Boxed](#schema6boxed)
abstract sealed validated payload class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.Schema6BoxedMap](#schema6boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema6Boxed](#schema6boxed)
abstract sealed validated payload class | +| record | [ComposedAnyOfDifferentTypesNoValidations.Schema6BoxedMap](#schema6boxedmap)
boxed class to store validated Map payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema6](#schema6)
schema class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.Schema5Boxed](#schema5boxed)
abstract sealed validated payload class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.Schema5BoxedString](#schema5boxedstring)
boxed class to store validated String payloads | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema5Boxed](#schema5boxed)
abstract sealed validated payload class | +| record | [ComposedAnyOfDifferentTypesNoValidations.Schema5BoxedString](#schema5boxedstring)
boxed class to store validated String payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema5](#schema5)
schema class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.Schema4Boxed](#schema4boxed)
abstract sealed validated payload class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.Schema4BoxedString](#schema4boxedstring)
boxed class to store validated String payloads | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema4Boxed](#schema4boxed)
abstract sealed validated payload class | +| record | [ComposedAnyOfDifferentTypesNoValidations.Schema4BoxedString](#schema4boxedstring)
boxed class to store validated String payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema4](#schema4)
schema class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.Schema3Boxed](#schema3boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema3Boxed](#schema3boxed)
abstract sealed validated payload class | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema3](#schema3)
schema class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.Schema2Boxed](#schema2boxed)
abstract sealed validated payload class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.Schema2BoxedString](#schema2boxedstring)
boxed class to store validated String payloads | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema2Boxed](#schema2boxed)
abstract sealed validated payload class | +| record | [ComposedAnyOfDifferentTypesNoValidations.Schema2BoxedString](#schema2boxedstring)
boxed class to store validated String payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema2](#schema2)
schema class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.Schema1BoxedString](#schema1boxedstring)
boxed class to store validated String payloads | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | +| record | [ComposedAnyOfDifferentTypesNoValidations.Schema1BoxedString](#schema1boxedstring)
boxed class to store validated String payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema1](#schema1)
schema class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.Schema0BoxedMap](#schema0boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | +| record | [ComposedAnyOfDifferentTypesNoValidations.Schema0BoxedMap](#schema0boxedmap)
boxed class to store validated Map payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema0](#schema0)
schema class | ## ComposedAnyOfDifferentTypesNoValidations1Boxed @@ -91,100 +91,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## ComposedAnyOfDifferentTypesNoValidations1BoxedVoid -public static final class ComposedAnyOfDifferentTypesNoValidations1BoxedVoid
+public record ComposedAnyOfDifferentTypesNoValidations1BoxedVoid
implements [ComposedAnyOfDifferentTypesNoValidations1Boxed](#composedanyofdifferenttypesnovalidations1boxed) -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 | | --------------------------- | | ComposedAnyOfDifferentTypesNoValidations1BoxedVoid(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 | ## ComposedAnyOfDifferentTypesNoValidations1BoxedBoolean -public static final class ComposedAnyOfDifferentTypesNoValidations1BoxedBoolean
+public record ComposedAnyOfDifferentTypesNoValidations1BoxedBoolean
implements [ComposedAnyOfDifferentTypesNoValidations1Boxed](#composedanyofdifferenttypesnovalidations1boxed) -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 | | --------------------------- | | ComposedAnyOfDifferentTypesNoValidations1BoxedBoolean(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 | ## ComposedAnyOfDifferentTypesNoValidations1BoxedNumber -public static final class ComposedAnyOfDifferentTypesNoValidations1BoxedNumber
+public record ComposedAnyOfDifferentTypesNoValidations1BoxedNumber
implements [ComposedAnyOfDifferentTypesNoValidations1Boxed](#composedanyofdifferenttypesnovalidations1boxed) -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 | | --------------------------- | | ComposedAnyOfDifferentTypesNoValidations1BoxedNumber(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 | ## ComposedAnyOfDifferentTypesNoValidations1BoxedString -public static final class ComposedAnyOfDifferentTypesNoValidations1BoxedString
+public record ComposedAnyOfDifferentTypesNoValidations1BoxedString
implements [ComposedAnyOfDifferentTypesNoValidations1Boxed](#composedanyofdifferenttypesnovalidations1boxed) -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 | | --------------------------- | | ComposedAnyOfDifferentTypesNoValidations1BoxedString(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 | ## ComposedAnyOfDifferentTypesNoValidations1BoxedList -public static final class ComposedAnyOfDifferentTypesNoValidations1BoxedList
+public record ComposedAnyOfDifferentTypesNoValidations1BoxedList
implements [ComposedAnyOfDifferentTypesNoValidations1Boxed](#composedanyofdifferenttypesnovalidations1boxed) -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 | | --------------------------- | | ComposedAnyOfDifferentTypesNoValidations1BoxedList(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 | ## ComposedAnyOfDifferentTypesNoValidations1BoxedMap -public static final class ComposedAnyOfDifferentTypesNoValidations1BoxedMap
+public record ComposedAnyOfDifferentTypesNoValidations1BoxedMap
implements [ComposedAnyOfDifferentTypesNoValidations1Boxed](#composedanyofdifferenttypesnovalidations1boxed) -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 | | --------------------------- | | ComposedAnyOfDifferentTypesNoValidations1BoxedMap(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 | ## ComposedAnyOfDifferentTypesNoValidations1 public static class ComposedAnyOfDifferentTypesNoValidations1
@@ -225,20 +231,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema15BoxedNumber -public static final class Schema15BoxedNumber
+public record Schema15BoxedNumber
implements [Schema15Boxed](#schema15boxed) -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 | | --------------------------- | | Schema15BoxedNumber(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 | ## Schema15 public static class Schema15
@@ -259,20 +266,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema14BoxedNumber -public static final class Schema14BoxedNumber
+public record Schema14BoxedNumber
implements [Schema14Boxed](#schema14boxed) -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 | | --------------------------- | | Schema14BoxedNumber(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 | ## Schema14 public static class Schema14
@@ -293,20 +301,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema13BoxedNumber -public static final class Schema13BoxedNumber
+public record Schema13BoxedNumber
implements [Schema13Boxed](#schema13boxed) -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 | | --------------------------- | | Schema13BoxedNumber(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 | ## Schema13 public static class Schema13
@@ -327,20 +336,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema12BoxedNumber -public static final class Schema12BoxedNumber
+public record Schema12BoxedNumber
implements [Schema12Boxed](#schema12boxed) -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 | | --------------------------- | | Schema12BoxedNumber(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 | ## Schema12 public static class Schema12
@@ -361,20 +371,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema11BoxedNumber -public static final class Schema11BoxedNumber
+public record Schema11BoxedNumber
implements [Schema11Boxed](#schema11boxed) -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 | | --------------------------- | | Schema11BoxedNumber(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 | ## Schema11 public static class Schema11
@@ -395,20 +406,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema10BoxedNumber -public static final class Schema10BoxedNumber
+public record Schema10BoxedNumber
implements [Schema10Boxed](#schema10boxed) -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 | | --------------------------- | | Schema10BoxedNumber(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 | ## Schema10 public static class Schema10
@@ -429,20 +441,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema9BoxedList -public static final class Schema9BoxedList
+public record Schema9BoxedList
implements [Schema9Boxed](#schema9boxed) -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 | | --------------------------- | | Schema9BoxedList([Schema9List](#schema9list) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Schema9List](#schema9list) | data
validated payload | +| [Schema9List](#schema9list) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Schema9 public static class Schema9
@@ -536,100 +549,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## ItemsBoxedVoid -public static final class ItemsBoxedVoid
+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
+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
+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
+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
+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
+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
@@ -650,20 +669,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema8BoxedVoid -public static final class Schema8BoxedVoid
+public record Schema8BoxedVoid
implements [Schema8Boxed](#schema8boxed) -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 | | --------------------------- | | Schema8BoxedVoid(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 | ## Schema8 public static class Schema8
@@ -684,20 +704,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema7BoxedBoolean -public static final class Schema7BoxedBoolean
+public record Schema7BoxedBoolean
implements [Schema7Boxed](#schema7boxed) -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 | | --------------------------- | | Schema7BoxedBoolean(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 | ## Schema7 public static class Schema7
@@ -718,20 +739,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema6BoxedMap -public static final class Schema6BoxedMap
+public record Schema6BoxedMap
implements [Schema6Boxed](#schema6boxed) -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 | | --------------------------- | | Schema6BoxedMap(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 | ## Schema6 public static class Schema6
@@ -752,20 +774,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema5BoxedString -public static final class Schema5BoxedString
+public record Schema5BoxedString
implements [Schema5Boxed](#schema5boxed) -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 | | --------------------------- | | Schema5BoxedString(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 | ## Schema5 public static class Schema5
@@ -786,20 +809,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema4BoxedString -public static final class Schema4BoxedString
+public record Schema4BoxedString
implements [Schema4Boxed](#schema4boxed) -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 | | --------------------------- | | Schema4BoxedString(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 | ## Schema4 public static class Schema4
@@ -827,20 +851,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema2BoxedString -public static final class Schema2BoxedString
+public record Schema2BoxedString
implements [Schema2Boxed](#schema2boxed) -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 | | --------------------------- | | Schema2BoxedString(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 | ## Schema2 public static class Schema2
@@ -861,20 +886,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema1BoxedString -public static final class Schema1BoxedString
+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 | ## Schema1 public static class Schema1
@@ -895,20 +921,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema0BoxedMap -public static final class Schema0BoxedMap
+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/petstore/java/docs/components/schemas/ComposedArray.md b/samples/client/petstore/java/docs/components/schemas/ComposedArray.md index b484c4b432e..c499d2adfad 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedArray.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedArray.md @@ -12,18 +12,18 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ComposedArray.ComposedArray1Boxed](#composedarray1boxed)
abstract sealed validated payload class | -| static class | [ComposedArray.ComposedArray1BoxedList](#composedarray1boxedlist)
boxed class to store validated List payloads | +| sealed interface | [ComposedArray.ComposedArray1Boxed](#composedarray1boxed)
abstract sealed validated payload class | +| record | [ComposedArray.ComposedArray1BoxedList](#composedarray1boxedlist)
boxed class to store validated List payloads | | static class | [ComposedArray.ComposedArray1](#composedarray1)
schema class | | static class | [ComposedArray.ComposedArrayListBuilder](#composedarraylistbuilder)
builder for List payloads | | static class | [ComposedArray.ComposedArrayList](#composedarraylist)
output class for List payloads | -| static class | [ComposedArray.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | -| static class | [ComposedArray.ItemsBoxedVoid](#itemsboxedvoid)
boxed class to store validated null payloads | -| static class | [ComposedArray.ItemsBoxedBoolean](#itemsboxedboolean)
boxed class to store validated boolean payloads | -| static class | [ComposedArray.ItemsBoxedNumber](#itemsboxednumber)
boxed class to store validated Number payloads | -| static class | [ComposedArray.ItemsBoxedString](#itemsboxedstring)
boxed class to store validated String payloads | -| static class | [ComposedArray.ItemsBoxedList](#itemsboxedlist)
boxed class to store validated List payloads | -| static class | [ComposedArray.ItemsBoxedMap](#itemsboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ComposedArray.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | +| record | [ComposedArray.ItemsBoxedVoid](#itemsboxedvoid)
boxed class to store validated null payloads | +| record | [ComposedArray.ItemsBoxedBoolean](#itemsboxedboolean)
boxed class to store validated boolean payloads | +| record | [ComposedArray.ItemsBoxedNumber](#itemsboxednumber)
boxed class to store validated Number payloads | +| record | [ComposedArray.ItemsBoxedString](#itemsboxedstring)
boxed class to store validated String payloads | +| record | [ComposedArray.ItemsBoxedList](#itemsboxedlist)
boxed class to store validated List payloads | +| record | [ComposedArray.ItemsBoxedMap](#itemsboxedmap)
boxed class to store validated Map payloads | | static class | [ComposedArray.Items](#items)
schema class | ## ComposedArray1Boxed @@ -34,20 +34,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ComposedArray1BoxedList -public static final class ComposedArray1BoxedList
+public record ComposedArray1BoxedList
implements [ComposedArray1Boxed](#composedarray1boxed) -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 | | --------------------------- | | ComposedArray1BoxedList([ComposedArrayList](#composedarraylist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ComposedArrayList](#composedarraylist) | data
validated payload | +| [ComposedArrayList](#composedarraylist) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ComposedArray1 public static class ComposedArray1
@@ -141,100 +142,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## ItemsBoxedVoid -public static final class ItemsBoxedVoid
+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
+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
+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
+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
+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
+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/petstore/java/docs/components/schemas/ComposedBool.md b/samples/client/petstore/java/docs/components/schemas/ComposedBool.md index 27f83914a58..dea7d96e241 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedBool.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedBool.md @@ -10,16 +10,16 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ComposedBool.ComposedBool1Boxed](#composedbool1boxed)
abstract sealed validated payload class | -| static class | [ComposedBool.ComposedBool1BoxedBoolean](#composedbool1boxedboolean)
boxed class to store validated boolean payloads | +| sealed interface | [ComposedBool.ComposedBool1Boxed](#composedbool1boxed)
abstract sealed validated payload class | +| record | [ComposedBool.ComposedBool1BoxedBoolean](#composedbool1boxedboolean)
boxed class to store validated boolean payloads | | static class | [ComposedBool.ComposedBool1](#composedbool1)
schema class | -| static class | [ComposedBool.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | -| static class | [ComposedBool.Schema0BoxedVoid](#schema0boxedvoid)
boxed class to store validated null payloads | -| static class | [ComposedBool.Schema0BoxedBoolean](#schema0boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ComposedBool.Schema0BoxedNumber](#schema0boxednumber)
boxed class to store validated Number payloads | -| static class | [ComposedBool.Schema0BoxedString](#schema0boxedstring)
boxed class to store validated String payloads | -| static class | [ComposedBool.Schema0BoxedList](#schema0boxedlist)
boxed class to store validated List payloads | -| static class | [ComposedBool.Schema0BoxedMap](#schema0boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ComposedBool.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | +| record | [ComposedBool.Schema0BoxedVoid](#schema0boxedvoid)
boxed class to store validated null payloads | +| record | [ComposedBool.Schema0BoxedBoolean](#schema0boxedboolean)
boxed class to store validated boolean payloads | +| record | [ComposedBool.Schema0BoxedNumber](#schema0boxednumber)
boxed class to store validated Number payloads | +| record | [ComposedBool.Schema0BoxedString](#schema0boxedstring)
boxed class to store validated String payloads | +| record | [ComposedBool.Schema0BoxedList](#schema0boxedlist)
boxed class to store validated List payloads | +| record | [ComposedBool.Schema0BoxedMap](#schema0boxedmap)
boxed class to store validated Map payloads | | static class | [ComposedBool.Schema0](#schema0)
schema class | ## ComposedBool1Boxed @@ -30,20 +30,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ComposedBool1BoxedBoolean -public static final class ComposedBool1BoxedBoolean
+public record ComposedBool1BoxedBoolean
implements [ComposedBool1Boxed](#composedbool1boxed) -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 | | --------------------------- | | ComposedBool1BoxedBoolean(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 | ## ComposedBool1 public static class ComposedBool1
@@ -98,100 +99,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema0BoxedVoid -public static final class Schema0BoxedVoid
+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
+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
+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
+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
+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
+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/petstore/java/docs/components/schemas/ComposedNone.md b/samples/client/petstore/java/docs/components/schemas/ComposedNone.md index a44fce45abc..9b4a09857bc 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedNone.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedNone.md @@ -10,16 +10,16 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ComposedNone.ComposedNone1Boxed](#composednone1boxed)
abstract sealed validated payload class | -| static class | [ComposedNone.ComposedNone1BoxedVoid](#composednone1boxedvoid)
boxed class to store validated null payloads | +| sealed interface | [ComposedNone.ComposedNone1Boxed](#composednone1boxed)
abstract sealed validated payload class | +| record | [ComposedNone.ComposedNone1BoxedVoid](#composednone1boxedvoid)
boxed class to store validated null payloads | | static class | [ComposedNone.ComposedNone1](#composednone1)
schema class | -| static class | [ComposedNone.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | -| static class | [ComposedNone.Schema0BoxedVoid](#schema0boxedvoid)
boxed class to store validated null payloads | -| static class | [ComposedNone.Schema0BoxedBoolean](#schema0boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ComposedNone.Schema0BoxedNumber](#schema0boxednumber)
boxed class to store validated Number payloads | -| static class | [ComposedNone.Schema0BoxedString](#schema0boxedstring)
boxed class to store validated String payloads | -| static class | [ComposedNone.Schema0BoxedList](#schema0boxedlist)
boxed class to store validated List payloads | -| static class | [ComposedNone.Schema0BoxedMap](#schema0boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ComposedNone.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | +| record | [ComposedNone.Schema0BoxedVoid](#schema0boxedvoid)
boxed class to store validated null payloads | +| record | [ComposedNone.Schema0BoxedBoolean](#schema0boxedboolean)
boxed class to store validated boolean payloads | +| record | [ComposedNone.Schema0BoxedNumber](#schema0boxednumber)
boxed class to store validated Number payloads | +| record | [ComposedNone.Schema0BoxedString](#schema0boxedstring)
boxed class to store validated String payloads | +| record | [ComposedNone.Schema0BoxedList](#schema0boxedlist)
boxed class to store validated List payloads | +| record | [ComposedNone.Schema0BoxedMap](#schema0boxedmap)
boxed class to store validated Map payloads | | static class | [ComposedNone.Schema0](#schema0)
schema class | ## ComposedNone1Boxed @@ -30,20 +30,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ComposedNone1BoxedVoid -public static final class ComposedNone1BoxedVoid
+public record ComposedNone1BoxedVoid
implements [ComposedNone1Boxed](#composednone1boxed) -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 | | --------------------------- | | ComposedNone1BoxedVoid(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 | ## ComposedNone1 public static class ComposedNone1
@@ -98,100 +99,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema0BoxedVoid -public static final class Schema0BoxedVoid
+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
+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
+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
+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
+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
+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/petstore/java/docs/components/schemas/ComposedNumber.md b/samples/client/petstore/java/docs/components/schemas/ComposedNumber.md index f3b600f91fe..a8a0e278ef1 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedNumber.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedNumber.md @@ -10,16 +10,16 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ComposedNumber.ComposedNumber1Boxed](#composednumber1boxed)
abstract sealed validated payload class | -| static class | [ComposedNumber.ComposedNumber1BoxedNumber](#composednumber1boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [ComposedNumber.ComposedNumber1Boxed](#composednumber1boxed)
abstract sealed validated payload class | +| record | [ComposedNumber.ComposedNumber1BoxedNumber](#composednumber1boxednumber)
boxed class to store validated Number payloads | | static class | [ComposedNumber.ComposedNumber1](#composednumber1)
schema class | -| static class | [ComposedNumber.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | -| static class | [ComposedNumber.Schema0BoxedVoid](#schema0boxedvoid)
boxed class to store validated null payloads | -| static class | [ComposedNumber.Schema0BoxedBoolean](#schema0boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ComposedNumber.Schema0BoxedNumber](#schema0boxednumber)
boxed class to store validated Number payloads | -| static class | [ComposedNumber.Schema0BoxedString](#schema0boxedstring)
boxed class to store validated String payloads | -| static class | [ComposedNumber.Schema0BoxedList](#schema0boxedlist)
boxed class to store validated List payloads | -| static class | [ComposedNumber.Schema0BoxedMap](#schema0boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ComposedNumber.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | +| record | [ComposedNumber.Schema0BoxedVoid](#schema0boxedvoid)
boxed class to store validated null payloads | +| record | [ComposedNumber.Schema0BoxedBoolean](#schema0boxedboolean)
boxed class to store validated boolean payloads | +| record | [ComposedNumber.Schema0BoxedNumber](#schema0boxednumber)
boxed class to store validated Number payloads | +| record | [ComposedNumber.Schema0BoxedString](#schema0boxedstring)
boxed class to store validated String payloads | +| record | [ComposedNumber.Schema0BoxedList](#schema0boxedlist)
boxed class to store validated List payloads | +| record | [ComposedNumber.Schema0BoxedMap](#schema0boxedmap)
boxed class to store validated Map payloads | | static class | [ComposedNumber.Schema0](#schema0)
schema class | ## ComposedNumber1Boxed @@ -30,20 +30,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ComposedNumber1BoxedNumber -public static final class ComposedNumber1BoxedNumber
+public record ComposedNumber1BoxedNumber
implements [ComposedNumber1Boxed](#composednumber1boxed) -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 | | --------------------------- | | ComposedNumber1BoxedNumber(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 | ## ComposedNumber1 public static class ComposedNumber1
@@ -98,100 +99,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema0BoxedVoid -public static final class Schema0BoxedVoid
+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
+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
+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
+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
+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
+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/petstore/java/docs/components/schemas/ComposedObject.md b/samples/client/petstore/java/docs/components/schemas/ComposedObject.md index 74dc2ed36bd..83f3ea5d231 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedObject.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedObject.md @@ -10,16 +10,16 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ComposedObject.ComposedObject1Boxed](#composedobject1boxed)
abstract sealed validated payload class | -| static class | [ComposedObject.ComposedObject1BoxedMap](#composedobject1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ComposedObject.ComposedObject1Boxed](#composedobject1boxed)
abstract sealed validated payload class | +| record | [ComposedObject.ComposedObject1BoxedMap](#composedobject1boxedmap)
boxed class to store validated Map payloads | | static class | [ComposedObject.ComposedObject1](#composedobject1)
schema class | -| static class | [ComposedObject.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | -| static class | [ComposedObject.Schema0BoxedVoid](#schema0boxedvoid)
boxed class to store validated null payloads | -| static class | [ComposedObject.Schema0BoxedBoolean](#schema0boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ComposedObject.Schema0BoxedNumber](#schema0boxednumber)
boxed class to store validated Number payloads | -| static class | [ComposedObject.Schema0BoxedString](#schema0boxedstring)
boxed class to store validated String payloads | -| static class | [ComposedObject.Schema0BoxedList](#schema0boxedlist)
boxed class to store validated List payloads | -| static class | [ComposedObject.Schema0BoxedMap](#schema0boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ComposedObject.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | +| record | [ComposedObject.Schema0BoxedVoid](#schema0boxedvoid)
boxed class to store validated null payloads | +| record | [ComposedObject.Schema0BoxedBoolean](#schema0boxedboolean)
boxed class to store validated boolean payloads | +| record | [ComposedObject.Schema0BoxedNumber](#schema0boxednumber)
boxed class to store validated Number payloads | +| record | [ComposedObject.Schema0BoxedString](#schema0boxedstring)
boxed class to store validated String payloads | +| record | [ComposedObject.Schema0BoxedList](#schema0boxedlist)
boxed class to store validated List payloads | +| record | [ComposedObject.Schema0BoxedMap](#schema0boxedmap)
boxed class to store validated Map payloads | | static class | [ComposedObject.Schema0](#schema0)
schema class | ## ComposedObject1Boxed @@ -30,20 +30,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ComposedObject1BoxedMap -public static final class ComposedObject1BoxedMap
+public record ComposedObject1BoxedMap
implements [ComposedObject1Boxed](#composedobject1boxed) -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 | | --------------------------- | | ComposedObject1BoxedMap(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 | ## ComposedObject1 public static class ComposedObject1
@@ -76,100 +77,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema0BoxedVoid -public static final class Schema0BoxedVoid
+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
+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
+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
+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
+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
+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/petstore/java/docs/components/schemas/ComposedOneOfDifferentTypes.md b/samples/client/petstore/java/docs/components/schemas/ComposedOneOfDifferentTypes.md index fc1ef3a26e7..cc6652d3bd7 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedOneOfDifferentTypes.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedOneOfDifferentTypes.md @@ -12,38 +12,38 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1Boxed](#composedoneofdifferenttypes1boxed)
abstract sealed validated payload class | -| static class | [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1BoxedVoid](#composedoneofdifferenttypes1boxedvoid)
boxed class to store validated null payloads | -| static class | [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1BoxedBoolean](#composedoneofdifferenttypes1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1BoxedNumber](#composedoneofdifferenttypes1boxednumber)
boxed class to store validated Number payloads | -| static class | [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1BoxedString](#composedoneofdifferenttypes1boxedstring)
boxed class to store validated String payloads | -| static class | [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1BoxedList](#composedoneofdifferenttypes1boxedlist)
boxed class to store validated List payloads | -| static class | [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1BoxedMap](#composedoneofdifferenttypes1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1Boxed](#composedoneofdifferenttypes1boxed)
abstract sealed validated payload class | +| record | [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1BoxedVoid](#composedoneofdifferenttypes1boxedvoid)
boxed class to store validated null payloads | +| record | [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1BoxedBoolean](#composedoneofdifferenttypes1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1BoxedNumber](#composedoneofdifferenttypes1boxednumber)
boxed class to store validated Number payloads | +| record | [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1BoxedString](#composedoneofdifferenttypes1boxedstring)
boxed class to store validated String payloads | +| record | [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1BoxedList](#composedoneofdifferenttypes1boxedlist)
boxed class to store validated List payloads | +| record | [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1BoxedMap](#composedoneofdifferenttypes1boxedmap)
boxed class to store validated Map payloads | | static class | [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1](#composedoneofdifferenttypes1)
schema class | -| static class | [ComposedOneOfDifferentTypes.Schema6Boxed](#schema6boxed)
abstract sealed validated payload class | -| static class | [ComposedOneOfDifferentTypes.Schema6BoxedString](#schema6boxedstring)
boxed class to store validated String payloads | +| sealed interface | [ComposedOneOfDifferentTypes.Schema6Boxed](#schema6boxed)
abstract sealed validated payload class | +| record | [ComposedOneOfDifferentTypes.Schema6BoxedString](#schema6boxedstring)
boxed class to store validated String payloads | | static class | [ComposedOneOfDifferentTypes.Schema6](#schema6)
schema class | -| static class | [ComposedOneOfDifferentTypes.Schema5Boxed](#schema5boxed)
abstract sealed validated payload class | -| static class | [ComposedOneOfDifferentTypes.Schema5BoxedList](#schema5boxedlist)
boxed class to store validated List payloads | +| sealed interface | [ComposedOneOfDifferentTypes.Schema5Boxed](#schema5boxed)
abstract sealed validated payload class | +| record | [ComposedOneOfDifferentTypes.Schema5BoxedList](#schema5boxedlist)
boxed class to store validated List payloads | | static class | [ComposedOneOfDifferentTypes.Schema5](#schema5)
schema class | | static class | [ComposedOneOfDifferentTypes.Schema5ListBuilder](#schema5listbuilder)
builder for List payloads | | static class | [ComposedOneOfDifferentTypes.Schema5List](#schema5list)
output class for List payloads | -| static class | [ComposedOneOfDifferentTypes.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | -| static class | [ComposedOneOfDifferentTypes.ItemsBoxedVoid](#itemsboxedvoid)
boxed class to store validated null payloads | -| static class | [ComposedOneOfDifferentTypes.ItemsBoxedBoolean](#itemsboxedboolean)
boxed class to store validated boolean payloads | -| static class | [ComposedOneOfDifferentTypes.ItemsBoxedNumber](#itemsboxednumber)
boxed class to store validated Number payloads | -| static class | [ComposedOneOfDifferentTypes.ItemsBoxedString](#itemsboxedstring)
boxed class to store validated String payloads | -| static class | [ComposedOneOfDifferentTypes.ItemsBoxedList](#itemsboxedlist)
boxed class to store validated List payloads | -| static class | [ComposedOneOfDifferentTypes.ItemsBoxedMap](#itemsboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ComposedOneOfDifferentTypes.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | +| record | [ComposedOneOfDifferentTypes.ItemsBoxedVoid](#itemsboxedvoid)
boxed class to store validated null payloads | +| record | [ComposedOneOfDifferentTypes.ItemsBoxedBoolean](#itemsboxedboolean)
boxed class to store validated boolean payloads | +| record | [ComposedOneOfDifferentTypes.ItemsBoxedNumber](#itemsboxednumber)
boxed class to store validated Number payloads | +| record | [ComposedOneOfDifferentTypes.ItemsBoxedString](#itemsboxedstring)
boxed class to store validated String payloads | +| record | [ComposedOneOfDifferentTypes.ItemsBoxedList](#itemsboxedlist)
boxed class to store validated List payloads | +| record | [ComposedOneOfDifferentTypes.ItemsBoxedMap](#itemsboxedmap)
boxed class to store validated Map payloads | | static class | [ComposedOneOfDifferentTypes.Items](#items)
schema class | -| static class | [ComposedOneOfDifferentTypes.Schema4Boxed](#schema4boxed)
abstract sealed validated payload class | -| static class | [ComposedOneOfDifferentTypes.Schema4BoxedMap](#schema4boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ComposedOneOfDifferentTypes.Schema4Boxed](#schema4boxed)
abstract sealed validated payload class | +| record | [ComposedOneOfDifferentTypes.Schema4BoxedMap](#schema4boxedmap)
boxed class to store validated Map payloads | | static class | [ComposedOneOfDifferentTypes.Schema4](#schema4)
schema class | -| static class | [ComposedOneOfDifferentTypes.Schema3Boxed](#schema3boxed)
abstract sealed validated payload class | -| static class | [ComposedOneOfDifferentTypes.Schema3BoxedString](#schema3boxedstring)
boxed class to store validated String payloads | +| sealed interface | [ComposedOneOfDifferentTypes.Schema3Boxed](#schema3boxed)
abstract sealed validated payload class | +| record | [ComposedOneOfDifferentTypes.Schema3BoxedString](#schema3boxedstring)
boxed class to store validated String payloads | | static class | [ComposedOneOfDifferentTypes.Schema3](#schema3)
schema class | -| static class | [ComposedOneOfDifferentTypes.Schema2Boxed](#schema2boxed)
abstract sealed validated payload class | -| static class | [ComposedOneOfDifferentTypes.Schema2BoxedVoid](#schema2boxedvoid)
boxed class to store validated null payloads | +| sealed interface | [ComposedOneOfDifferentTypes.Schema2Boxed](#schema2boxed)
abstract sealed validated payload class | +| record | [ComposedOneOfDifferentTypes.Schema2BoxedVoid](#schema2boxedvoid)
boxed class to store validated null payloads | | static class | [ComposedOneOfDifferentTypes.Schema2](#schema2)
schema class | ## ComposedOneOfDifferentTypes1Boxed @@ -59,100 +59,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## ComposedOneOfDifferentTypes1BoxedVoid -public static final class ComposedOneOfDifferentTypes1BoxedVoid
+public record ComposedOneOfDifferentTypes1BoxedVoid
implements [ComposedOneOfDifferentTypes1Boxed](#composedoneofdifferenttypes1boxed) -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 | | --------------------------- | | ComposedOneOfDifferentTypes1BoxedVoid(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 | ## ComposedOneOfDifferentTypes1BoxedBoolean -public static final class ComposedOneOfDifferentTypes1BoxedBoolean
+public record ComposedOneOfDifferentTypes1BoxedBoolean
implements [ComposedOneOfDifferentTypes1Boxed](#composedoneofdifferenttypes1boxed) -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 | | --------------------------- | | ComposedOneOfDifferentTypes1BoxedBoolean(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 | ## ComposedOneOfDifferentTypes1BoxedNumber -public static final class ComposedOneOfDifferentTypes1BoxedNumber
+public record ComposedOneOfDifferentTypes1BoxedNumber
implements [ComposedOneOfDifferentTypes1Boxed](#composedoneofdifferenttypes1boxed) -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 | | --------------------------- | | ComposedOneOfDifferentTypes1BoxedNumber(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 | ## ComposedOneOfDifferentTypes1BoxedString -public static final class ComposedOneOfDifferentTypes1BoxedString
+public record ComposedOneOfDifferentTypes1BoxedString
implements [ComposedOneOfDifferentTypes1Boxed](#composedoneofdifferenttypes1boxed) -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 | | --------------------------- | | ComposedOneOfDifferentTypes1BoxedString(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 | ## ComposedOneOfDifferentTypes1BoxedList -public static final class ComposedOneOfDifferentTypes1BoxedList
+public record ComposedOneOfDifferentTypes1BoxedList
implements [ComposedOneOfDifferentTypes1Boxed](#composedoneofdifferenttypes1boxed) -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 | | --------------------------- | | ComposedOneOfDifferentTypes1BoxedList(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 | ## ComposedOneOfDifferentTypes1BoxedMap -public static final class ComposedOneOfDifferentTypes1BoxedMap
+public record ComposedOneOfDifferentTypes1BoxedMap
implements [ComposedOneOfDifferentTypes1Boxed](#composedoneofdifferenttypes1boxed) -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 | | --------------------------- | | ComposedOneOfDifferentTypes1BoxedMap(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 | ## ComposedOneOfDifferentTypes1 public static class ComposedOneOfDifferentTypes1
@@ -196,20 +202,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema6BoxedString -public static final class Schema6BoxedString
+public record Schema6BoxedString
implements [Schema6Boxed](#schema6boxed) -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 | | --------------------------- | | Schema6BoxedString(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 | ## Schema6 public static class Schema6
@@ -260,20 +267,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema5BoxedList -public static final class Schema5BoxedList
+public record Schema5BoxedList
implements [Schema5Boxed](#schema5boxed) -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 | | --------------------------- | | Schema5BoxedList([Schema5List](#schema5list) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Schema5List](#schema5list) | data
validated payload | +| [Schema5List](#schema5list) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Schema5 public static class Schema5
@@ -369,100 +377,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## ItemsBoxedVoid -public static final class ItemsBoxedVoid
+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
+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
+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
+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
+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
+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
@@ -483,20 +497,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema4BoxedMap -public static final class Schema4BoxedMap
+public record Schema4BoxedMap
implements [Schema4Boxed](#schema4boxed) -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 | | --------------------------- | | Schema4BoxedMap(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 | ## Schema4 public static class Schema4
@@ -525,20 +540,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema3BoxedString -public static final class Schema3BoxedString
+public record Schema3BoxedString
implements [Schema3Boxed](#schema3boxed) -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 | | --------------------------- | | Schema3BoxedString(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 | ## Schema3 public static class Schema3
@@ -559,20 +575,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema2BoxedVoid -public static final class Schema2BoxedVoid
+public record Schema2BoxedVoid
implements [Schema2Boxed](#schema2boxed) -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 | | --------------------------- | | Schema2BoxedVoid(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 | ## Schema2 public static class Schema2
diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedString.md b/samples/client/petstore/java/docs/components/schemas/ComposedString.md index 460d094866c..db92cd47ccd 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedString.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedString.md @@ -10,16 +10,16 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ComposedString.ComposedString1Boxed](#composedstring1boxed)
abstract sealed validated payload class | -| static class | [ComposedString.ComposedString1BoxedString](#composedstring1boxedstring)
boxed class to store validated String payloads | +| sealed interface | [ComposedString.ComposedString1Boxed](#composedstring1boxed)
abstract sealed validated payload class | +| record | [ComposedString.ComposedString1BoxedString](#composedstring1boxedstring)
boxed class to store validated String payloads | | static class | [ComposedString.ComposedString1](#composedstring1)
schema class | -| static class | [ComposedString.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | -| static class | [ComposedString.Schema0BoxedVoid](#schema0boxedvoid)
boxed class to store validated null payloads | -| static class | [ComposedString.Schema0BoxedBoolean](#schema0boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ComposedString.Schema0BoxedNumber](#schema0boxednumber)
boxed class to store validated Number payloads | -| static class | [ComposedString.Schema0BoxedString](#schema0boxedstring)
boxed class to store validated String payloads | -| static class | [ComposedString.Schema0BoxedList](#schema0boxedlist)
boxed class to store validated List payloads | -| static class | [ComposedString.Schema0BoxedMap](#schema0boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ComposedString.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | +| record | [ComposedString.Schema0BoxedVoid](#schema0boxedvoid)
boxed class to store validated null payloads | +| record | [ComposedString.Schema0BoxedBoolean](#schema0boxedboolean)
boxed class to store validated boolean payloads | +| record | [ComposedString.Schema0BoxedNumber](#schema0boxednumber)
boxed class to store validated Number payloads | +| record | [ComposedString.Schema0BoxedString](#schema0boxedstring)
boxed class to store validated String payloads | +| record | [ComposedString.Schema0BoxedList](#schema0boxedlist)
boxed class to store validated List payloads | +| record | [ComposedString.Schema0BoxedMap](#schema0boxedmap)
boxed class to store validated Map payloads | | static class | [ComposedString.Schema0](#schema0)
schema class | ## ComposedString1Boxed @@ -30,20 +30,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ComposedString1BoxedString -public static final class ComposedString1BoxedString
+public record ComposedString1BoxedString
implements [ComposedString1Boxed](#composedstring1boxed) -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 | | --------------------------- | | ComposedString1BoxedString(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 | ## ComposedString1 public static class ComposedString1
@@ -98,100 +99,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema0BoxedVoid -public static final class Schema0BoxedVoid
+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
+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
+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
+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
+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
+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/petstore/java/docs/components/schemas/Currency.md b/samples/client/petstore/java/docs/components/schemas/Currency.md index aa3f00549b4..07e12559e93 100644 --- a/samples/client/petstore/java/docs/components/schemas/Currency.md +++ b/samples/client/petstore/java/docs/components/schemas/Currency.md @@ -11,8 +11,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Currency.Currency1Boxed](#currency1boxed)
abstract sealed validated payload class | -| static class | [Currency.Currency1BoxedString](#currency1boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Currency.Currency1Boxed](#currency1boxed)
abstract sealed validated payload class | +| record | [Currency.Currency1BoxedString](#currency1boxedstring)
boxed class to store validated String payloads | | static class | [Currency.Currency1](#currency1)
schema class | | enum | [Currency.StringCurrencyEnums](#stringcurrencyenums)
String enum | @@ -24,20 +24,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Currency1BoxedString -public static final class Currency1BoxedString
+public record Currency1BoxedString
implements [Currency1Boxed](#currency1boxed) -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 | | --------------------------- | | Currency1BoxedString(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 | ## Currency1 public static class Currency1
diff --git a/samples/client/petstore/java/docs/components/schemas/DanishPig.md b/samples/client/petstore/java/docs/components/schemas/DanishPig.md index c6627185186..17740f898f8 100644 --- a/samples/client/petstore/java/docs/components/schemas/DanishPig.md +++ b/samples/client/petstore/java/docs/components/schemas/DanishPig.md @@ -13,13 +13,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [DanishPig.DanishPig1Boxed](#danishpig1boxed)
abstract sealed validated payload class | -| static class | [DanishPig.DanishPig1BoxedMap](#danishpig1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [DanishPig.DanishPig1Boxed](#danishpig1boxed)
abstract sealed validated payload class | +| record | [DanishPig.DanishPig1BoxedMap](#danishpig1boxedmap)
boxed class to store validated Map payloads | | static class | [DanishPig.DanishPig1](#danishpig1)
schema class | | static class | [DanishPig.DanishPigMapBuilder](#danishpigmapbuilder)
builder for Map payloads | | static class | [DanishPig.DanishPigMap](#danishpigmap)
output class for Map payloads | -| static class | [DanishPig.ClassNameBoxed](#classnameboxed)
abstract sealed validated payload class | -| static class | [DanishPig.ClassNameBoxedString](#classnameboxedstring)
boxed class to store validated String payloads | +| sealed interface | [DanishPig.ClassNameBoxed](#classnameboxed)
abstract sealed validated payload class | +| record | [DanishPig.ClassNameBoxedString](#classnameboxedstring)
boxed class to store validated String payloads | | static class | [DanishPig.ClassName](#classname)
schema class | | enum | [DanishPig.StringClassNameEnums](#stringclassnameenums)
String enum | @@ -31,20 +31,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## DanishPig1BoxedMap -public static final class DanishPig1BoxedMap
+public record DanishPig1BoxedMap
implements [DanishPig1Boxed](#danishpig1boxed) -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 | | --------------------------- | | DanishPig1BoxedMap([DanishPigMap](#danishpigmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [DanishPigMap](#danishpigmap) | data
validated payload | +| [DanishPigMap](#danishpigmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## DanishPig1 public static class DanishPig1
@@ -154,20 +155,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ClassNameBoxedString -public static final class ClassNameBoxedString
+public record ClassNameBoxedString
implements [ClassNameBoxed](#classnameboxed) -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 | | --------------------------- | | ClassNameBoxedString(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 | ## ClassName public static class ClassName
diff --git a/samples/client/petstore/java/docs/components/schemas/DateTimeTest.md b/samples/client/petstore/java/docs/components/schemas/DateTimeTest.md index 6b3c82cdcb5..44ba2f4b4b7 100644 --- a/samples/client/petstore/java/docs/components/schemas/DateTimeTest.md +++ b/samples/client/petstore/java/docs/components/schemas/DateTimeTest.md @@ -10,8 +10,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [DateTimeTest.DateTimeTest1Boxed](#datetimetest1boxed)
abstract sealed validated payload class | -| static class | [DateTimeTest.DateTimeTest1BoxedString](#datetimetest1boxedstring)
boxed class to store validated String payloads | +| sealed interface | [DateTimeTest.DateTimeTest1Boxed](#datetimetest1boxed)
abstract sealed validated payload class | +| record | [DateTimeTest.DateTimeTest1BoxedString](#datetimetest1boxedstring)
boxed class to store validated String payloads | | static class | [DateTimeTest.DateTimeTest1](#datetimetest1)
schema class | ## DateTimeTest1Boxed @@ -22,20 +22,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## DateTimeTest1BoxedString -public static final class DateTimeTest1BoxedString
+public record DateTimeTest1BoxedString
implements [DateTimeTest1Boxed](#datetimetest1boxed) -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 | | --------------------------- | | DateTimeTest1BoxedString(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 | ## DateTimeTest1 public static class DateTimeTest1
diff --git a/samples/client/petstore/java/docs/components/schemas/DateTimeWithValidations.md b/samples/client/petstore/java/docs/components/schemas/DateTimeWithValidations.md index 9a50c96ade3..7d77915683d 100644 --- a/samples/client/petstore/java/docs/components/schemas/DateTimeWithValidations.md +++ b/samples/client/petstore/java/docs/components/schemas/DateTimeWithValidations.md @@ -10,8 +10,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [DateTimeWithValidations.DateTimeWithValidations1Boxed](#datetimewithvalidations1boxed)
abstract sealed validated payload class | -| static class | [DateTimeWithValidations.DateTimeWithValidations1BoxedString](#datetimewithvalidations1boxedstring)
boxed class to store validated String payloads | +| sealed interface | [DateTimeWithValidations.DateTimeWithValidations1Boxed](#datetimewithvalidations1boxed)
abstract sealed validated payload class | +| record | [DateTimeWithValidations.DateTimeWithValidations1BoxedString](#datetimewithvalidations1boxedstring)
boxed class to store validated String payloads | | static class | [DateTimeWithValidations.DateTimeWithValidations1](#datetimewithvalidations1)
schema class | ## DateTimeWithValidations1Boxed @@ -22,20 +22,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## DateTimeWithValidations1BoxedString -public static final class DateTimeWithValidations1BoxedString
+public record DateTimeWithValidations1BoxedString
implements [DateTimeWithValidations1Boxed](#datetimewithvalidations1boxed) -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 | | --------------------------- | | DateTimeWithValidations1BoxedString(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 | ## DateTimeWithValidations1 public static class DateTimeWithValidations1
diff --git a/samples/client/petstore/java/docs/components/schemas/DateWithValidations.md b/samples/client/petstore/java/docs/components/schemas/DateWithValidations.md index 28329eab824..d9cd1c2c9a7 100644 --- a/samples/client/petstore/java/docs/components/schemas/DateWithValidations.md +++ b/samples/client/petstore/java/docs/components/schemas/DateWithValidations.md @@ -10,8 +10,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [DateWithValidations.DateWithValidations1Boxed](#datewithvalidations1boxed)
abstract sealed validated payload class | -| static class | [DateWithValidations.DateWithValidations1BoxedString](#datewithvalidations1boxedstring)
boxed class to store validated String payloads | +| sealed interface | [DateWithValidations.DateWithValidations1Boxed](#datewithvalidations1boxed)
abstract sealed validated payload class | +| record | [DateWithValidations.DateWithValidations1BoxedString](#datewithvalidations1boxedstring)
boxed class to store validated String payloads | | static class | [DateWithValidations.DateWithValidations1](#datewithvalidations1)
schema class | ## DateWithValidations1Boxed @@ -22,20 +22,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## DateWithValidations1BoxedString -public static final class DateWithValidations1BoxedString
+public record DateWithValidations1BoxedString
implements [DateWithValidations1Boxed](#datewithvalidations1boxed) -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 | | --------------------------- | | DateWithValidations1BoxedString(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 | ## DateWithValidations1 public static class DateWithValidations1
diff --git a/samples/client/petstore/java/docs/components/schemas/DecimalPayload.md b/samples/client/petstore/java/docs/components/schemas/DecimalPayload.md index c4a1c3e725a..783cc77e1ba 100644 --- a/samples/client/petstore/java/docs/components/schemas/DecimalPayload.md +++ b/samples/client/petstore/java/docs/components/schemas/DecimalPayload.md @@ -10,8 +10,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [DecimalPayload.DecimalPayload1Boxed](#decimalpayload1boxed)
abstract sealed validated payload class | -| static class | [DecimalPayload.DecimalPayload1BoxedString](#decimalpayload1boxedstring)
boxed class to store validated String payloads | +| sealed interface | [DecimalPayload.DecimalPayload1Boxed](#decimalpayload1boxed)
abstract sealed validated payload class | +| record | [DecimalPayload.DecimalPayload1BoxedString](#decimalpayload1boxedstring)
boxed class to store validated String payloads | | static class | [DecimalPayload.DecimalPayload1](#decimalpayload1)
schema class | ## DecimalPayload1Boxed @@ -22,20 +22,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## DecimalPayload1BoxedString -public static final class DecimalPayload1BoxedString
+public record DecimalPayload1BoxedString
implements [DecimalPayload1Boxed](#decimalpayload1boxed) -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 | | --------------------------- | | DecimalPayload1BoxedString(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 | ## DecimalPayload1 public static class DecimalPayload1
diff --git a/samples/client/petstore/java/docs/components/schemas/Dog.md b/samples/client/petstore/java/docs/components/schemas/Dog.md index 99ecc56499f..a49cff7f765 100644 --- a/samples/client/petstore/java/docs/components/schemas/Dog.md +++ b/samples/client/petstore/java/docs/components/schemas/Dog.md @@ -12,21 +12,21 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Dog.Dog1Boxed](#dog1boxed)
abstract sealed validated payload class | -| static class | [Dog.Dog1BoxedVoid](#dog1boxedvoid)
boxed class to store validated null payloads | -| static class | [Dog.Dog1BoxedBoolean](#dog1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [Dog.Dog1BoxedNumber](#dog1boxednumber)
boxed class to store validated Number payloads | -| static class | [Dog.Dog1BoxedString](#dog1boxedstring)
boxed class to store validated String payloads | -| static class | [Dog.Dog1BoxedList](#dog1boxedlist)
boxed class to store validated List payloads | -| static class | [Dog.Dog1BoxedMap](#dog1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Dog.Dog1Boxed](#dog1boxed)
abstract sealed validated payload class | +| record | [Dog.Dog1BoxedVoid](#dog1boxedvoid)
boxed class to store validated null payloads | +| record | [Dog.Dog1BoxedBoolean](#dog1boxedboolean)
boxed class to store validated boolean payloads | +| record | [Dog.Dog1BoxedNumber](#dog1boxednumber)
boxed class to store validated Number payloads | +| record | [Dog.Dog1BoxedString](#dog1boxedstring)
boxed class to store validated String payloads | +| record | [Dog.Dog1BoxedList](#dog1boxedlist)
boxed class to store validated List payloads | +| record | [Dog.Dog1BoxedMap](#dog1boxedmap)
boxed class to store validated Map payloads | | static class | [Dog.Dog1](#dog1)
schema class | -| static class | [Dog.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | -| static class | [Dog.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Dog.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | +| record | [Dog.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | | static class | [Dog.Schema1](#schema1)
schema class | | static class | [Dog.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [Dog.Schema1Map](#schema1map)
output class for Map payloads | -| static class | [Dog.BreedBoxed](#breedboxed)
abstract sealed validated payload class | -| static class | [Dog.BreedBoxedString](#breedboxedstring)
boxed class to store validated String payloads | +| sealed interface | [Dog.BreedBoxed](#breedboxed)
abstract sealed validated payload class | +| record | [Dog.BreedBoxedString](#breedboxedstring)
boxed class to store validated String payloads | | static class | [Dog.Breed](#breed)
schema class | ## Dog1Boxed @@ -42,100 +42,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## Dog1BoxedVoid -public static final class Dog1BoxedVoid
+public record Dog1BoxedVoid
implements [Dog1Boxed](#dog1boxed) -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 | | --------------------------- | | Dog1BoxedVoid(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 | ## Dog1BoxedBoolean -public static final class Dog1BoxedBoolean
+public record Dog1BoxedBoolean
implements [Dog1Boxed](#dog1boxed) -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 | | --------------------------- | | Dog1BoxedBoolean(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 | ## Dog1BoxedNumber -public static final class Dog1BoxedNumber
+public record Dog1BoxedNumber
implements [Dog1Boxed](#dog1boxed) -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 | | --------------------------- | | Dog1BoxedNumber(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 | ## Dog1BoxedString -public static final class Dog1BoxedString
+public record Dog1BoxedString
implements [Dog1Boxed](#dog1boxed) -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 | | --------------------------- | | Dog1BoxedString(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 | ## Dog1BoxedList -public static final class Dog1BoxedList
+public record Dog1BoxedList
implements [Dog1Boxed](#dog1boxed) -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 | | --------------------------- | | Dog1BoxedList(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 | ## Dog1BoxedMap -public static final class Dog1BoxedMap
+public record Dog1BoxedMap
implements [Dog1Boxed](#dog1boxed) -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 | | --------------------------- | | Dog1BoxedMap(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 | ## Dog1 public static class Dog1
@@ -176,20 +182,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema1BoxedMap -public static final class Schema1BoxedMap
+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
@@ -282,20 +289,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## BreedBoxedString -public static final class BreedBoxedString
+public record BreedBoxedString
implements [BreedBoxed](#breedboxed) -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 | | --------------------------- | | BreedBoxedString(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 | ## Breed public static class Breed
diff --git a/samples/client/petstore/java/docs/components/schemas/Drawing.md b/samples/client/petstore/java/docs/components/schemas/Drawing.md index 249f52cc99f..4b2aa906e23 100644 --- a/samples/client/petstore/java/docs/components/schemas/Drawing.md +++ b/samples/client/petstore/java/docs/components/schemas/Drawing.md @@ -14,13 +14,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Drawing.Drawing1Boxed](#drawing1boxed)
abstract sealed validated payload class | -| static class | [Drawing.Drawing1BoxedMap](#drawing1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Drawing.Drawing1Boxed](#drawing1boxed)
abstract sealed validated payload class | +| record | [Drawing.Drawing1BoxedMap](#drawing1boxedmap)
boxed class to store validated Map payloads | | static class | [Drawing.Drawing1](#drawing1)
schema class | | static class | [Drawing.DrawingMapBuilder](#drawingmapbuilder)
builder for Map payloads | | static class | [Drawing.DrawingMap](#drawingmap)
output class for Map payloads | -| static class | [Drawing.ShapesBoxed](#shapesboxed)
abstract sealed validated payload class | -| static class | [Drawing.ShapesBoxedList](#shapesboxedlist)
boxed class to store validated List payloads | +| sealed interface | [Drawing.ShapesBoxed](#shapesboxed)
abstract sealed validated payload class | +| record | [Drawing.ShapesBoxedList](#shapesboxedlist)
boxed class to store validated List payloads | | static class | [Drawing.Shapes](#shapes)
schema class | | static class | [Drawing.ShapesListBuilder](#shapeslistbuilder)
builder for List payloads | | static class | [Drawing.ShapesList](#shapeslist)
output class for List payloads | @@ -33,20 +33,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Drawing1BoxedMap -public static final class Drawing1BoxedMap
+public record Drawing1BoxedMap
implements [Drawing1Boxed](#drawing1boxed) -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 | | --------------------------- | | Drawing1BoxedMap([DrawingMap](#drawingmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [DrawingMap](#drawingmap) | data
validated payload | +| [DrawingMap](#drawingmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Drawing1 public static class Drawing1
@@ -172,20 +173,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ShapesBoxedList -public static final class ShapesBoxedList
+public record ShapesBoxedList
implements [ShapesBoxed](#shapesboxed) -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 | | --------------------------- | | ShapesBoxedList([ShapesList](#shapeslist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ShapesList](#shapeslist) | data
validated payload | +| [ShapesList](#shapeslist) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Shapes public static class Shapes
diff --git a/samples/client/petstore/java/docs/components/schemas/EnumArrays.md b/samples/client/petstore/java/docs/components/schemas/EnumArrays.md index 517dbc25d3a..abf5ee52bd4 100644 --- a/samples/client/petstore/java/docs/components/schemas/EnumArrays.md +++ b/samples/client/petstore/java/docs/components/schemas/EnumArrays.md @@ -15,22 +15,22 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [EnumArrays.EnumArrays1Boxed](#enumarrays1boxed)
abstract sealed validated payload class | -| static class | [EnumArrays.EnumArrays1BoxedMap](#enumarrays1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [EnumArrays.EnumArrays1Boxed](#enumarrays1boxed)
abstract sealed validated payload class | +| record | [EnumArrays.EnumArrays1BoxedMap](#enumarrays1boxedmap)
boxed class to store validated Map payloads | | static class | [EnumArrays.EnumArrays1](#enumarrays1)
schema class | | static class | [EnumArrays.EnumArraysMapBuilder](#enumarraysmapbuilder)
builder for Map payloads | | static class | [EnumArrays.EnumArraysMap](#enumarraysmap)
output class for Map payloads | -| static class | [EnumArrays.ArrayEnumBoxed](#arrayenumboxed)
abstract sealed validated payload class | -| static class | [EnumArrays.ArrayEnumBoxedList](#arrayenumboxedlist)
boxed class to store validated List payloads | +| sealed interface | [EnumArrays.ArrayEnumBoxed](#arrayenumboxed)
abstract sealed validated payload class | +| record | [EnumArrays.ArrayEnumBoxedList](#arrayenumboxedlist)
boxed class to store validated List payloads | | static class | [EnumArrays.ArrayEnum](#arrayenum)
schema class | | static class | [EnumArrays.ArrayEnumListBuilder](#arrayenumlistbuilder)
builder for List payloads | | static class | [EnumArrays.ArrayEnumList](#arrayenumlist)
output class for List payloads | -| static class | [EnumArrays.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | -| static class | [EnumArrays.ItemsBoxedString](#itemsboxedstring)
boxed class to store validated String payloads | +| sealed interface | [EnumArrays.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | +| record | [EnumArrays.ItemsBoxedString](#itemsboxedstring)
boxed class to store validated String payloads | | static class | [EnumArrays.Items](#items)
schema class | | enum | [EnumArrays.StringItemsEnums](#stringitemsenums)
String enum | -| static class | [EnumArrays.JustSymbolBoxed](#justsymbolboxed)
abstract sealed validated payload class | -| static class | [EnumArrays.JustSymbolBoxedString](#justsymbolboxedstring)
boxed class to store validated String payloads | +| sealed interface | [EnumArrays.JustSymbolBoxed](#justsymbolboxed)
abstract sealed validated payload class | +| record | [EnumArrays.JustSymbolBoxedString](#justsymbolboxedstring)
boxed class to store validated String payloads | | static class | [EnumArrays.JustSymbol](#justsymbol)
schema class | | enum | [EnumArrays.StringJustSymbolEnums](#stringjustsymbolenums)
String enum | @@ -42,20 +42,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## EnumArrays1BoxedMap -public static final class EnumArrays1BoxedMap
+public record EnumArrays1BoxedMap
implements [EnumArrays1Boxed](#enumarrays1boxed) -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 | | --------------------------- | | EnumArrays1BoxedMap([EnumArraysMap](#enumarraysmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [EnumArraysMap](#enumarraysmap) | data
validated payload | +| [EnumArraysMap](#enumarraysmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## EnumArrays1 public static class EnumArrays1
@@ -156,20 +157,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ArrayEnumBoxedList -public static final class ArrayEnumBoxedList
+public record ArrayEnumBoxedList
implements [ArrayEnumBoxed](#arrayenumboxed) -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 | | --------------------------- | | ArrayEnumBoxedList([ArrayEnumList](#arrayenumlist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ArrayEnumList](#arrayenumlist) | data
validated payload | +| [ArrayEnumList](#arrayenumlist) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ArrayEnum public static class ArrayEnum
@@ -253,20 +255,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ItemsBoxedString -public static final class ItemsBoxedString
+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 | ## Items public static class Items
@@ -329,20 +332,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## JustSymbolBoxedString -public static final class JustSymbolBoxedString
+public record JustSymbolBoxedString
implements [JustSymbolBoxed](#justsymbolboxed) -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 | | --------------------------- | | JustSymbolBoxedString(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 | ## JustSymbol public static class JustSymbol
diff --git a/samples/client/petstore/java/docs/components/schemas/EnumClass.md b/samples/client/petstore/java/docs/components/schemas/EnumClass.md index 80f89296710..dbfad336a07 100644 --- a/samples/client/petstore/java/docs/components/schemas/EnumClass.md +++ b/samples/client/petstore/java/docs/components/schemas/EnumClass.md @@ -11,8 +11,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [EnumClass.EnumClass1Boxed](#enumclass1boxed)
abstract sealed validated payload class | -| static class | [EnumClass.EnumClass1BoxedString](#enumclass1boxedstring)
boxed class to store validated String payloads | +| sealed interface | [EnumClass.EnumClass1Boxed](#enumclass1boxed)
abstract sealed validated payload class | +| record | [EnumClass.EnumClass1BoxedString](#enumclass1boxedstring)
boxed class to store validated String payloads | | static class | [EnumClass.EnumClass1](#enumclass1)
schema class | | enum | [EnumClass.StringEnumClassEnums](#stringenumclassenums)
String enum | @@ -24,20 +24,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## EnumClass1BoxedString -public static final class EnumClass1BoxedString
+public record EnumClass1BoxedString
implements [EnumClass1Boxed](#enumclass1boxed) -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 | | --------------------------- | | EnumClass1BoxedString(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 | ## EnumClass1 public static class EnumClass1
diff --git a/samples/client/petstore/java/docs/components/schemas/EnumTest.md b/samples/client/petstore/java/docs/components/schemas/EnumTest.md index fead74406e7..e4d46facff9 100644 --- a/samples/client/petstore/java/docs/components/schemas/EnumTest.md +++ b/samples/client/petstore/java/docs/components/schemas/EnumTest.md @@ -13,29 +13,29 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [EnumTest.EnumTest1Boxed](#enumtest1boxed)
abstract sealed validated payload class | -| static class | [EnumTest.EnumTest1BoxedMap](#enumtest1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [EnumTest.EnumTest1Boxed](#enumtest1boxed)
abstract sealed validated payload class | +| record | [EnumTest.EnumTest1BoxedMap](#enumtest1boxedmap)
boxed class to store validated Map payloads | | static class | [EnumTest.EnumTest1](#enumtest1)
schema class | | static class | [EnumTest.EnumTestMapBuilder](#enumtestmapbuilder)
builder for Map payloads | | static class | [EnumTest.EnumTestMap](#enumtestmap)
output class for Map payloads | -| static class | [EnumTest.EnumNumberBoxed](#enumnumberboxed)
abstract sealed validated payload class | -| static class | [EnumTest.EnumNumberBoxedNumber](#enumnumberboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [EnumTest.EnumNumberBoxed](#enumnumberboxed)
abstract sealed validated payload class | +| record | [EnumTest.EnumNumberBoxedNumber](#enumnumberboxednumber)
boxed class to store validated Number payloads | | static class | [EnumTest.EnumNumber](#enumnumber)
schema class | | enum | [EnumTest.DoubleEnumNumberEnums](#doubleenumnumberenums)
Double enum | | enum | [EnumTest.FloatEnumNumberEnums](#floatenumnumberenums)
Float enum | -| static class | [EnumTest.EnumIntegerBoxed](#enumintegerboxed)
abstract sealed validated payload class | -| static class | [EnumTest.EnumIntegerBoxedNumber](#enumintegerboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [EnumTest.EnumIntegerBoxed](#enumintegerboxed)
abstract sealed validated payload class | +| record | [EnumTest.EnumIntegerBoxedNumber](#enumintegerboxednumber)
boxed class to store validated Number payloads | | static class | [EnumTest.EnumInteger](#enuminteger)
schema class | | enum | [EnumTest.IntegerEnumIntegerEnums](#integerenumintegerenums)
Integer enum | | enum | [EnumTest.LongEnumIntegerEnums](#longenumintegerenums)
Long enum | | enum | [EnumTest.FloatEnumIntegerEnums](#floatenumintegerenums)
Float enum | | enum | [EnumTest.DoubleEnumIntegerEnums](#doubleenumintegerenums)
Double enum | -| static class | [EnumTest.EnumStringRequiredBoxed](#enumstringrequiredboxed)
abstract sealed validated payload class | -| static class | [EnumTest.EnumStringRequiredBoxedString](#enumstringrequiredboxedstring)
boxed class to store validated String payloads | +| sealed interface | [EnumTest.EnumStringRequiredBoxed](#enumstringrequiredboxed)
abstract sealed validated payload class | +| record | [EnumTest.EnumStringRequiredBoxedString](#enumstringrequiredboxedstring)
boxed class to store validated String payloads | | static class | [EnumTest.EnumStringRequired](#enumstringrequired)
schema class | | enum | [EnumTest.StringEnumStringRequiredEnums](#stringenumstringrequiredenums)
String enum | -| static class | [EnumTest.EnumStringBoxed](#enumstringboxed)
abstract sealed validated payload class | -| static class | [EnumTest.EnumStringBoxedString](#enumstringboxedstring)
boxed class to store validated String payloads | +| sealed interface | [EnumTest.EnumStringBoxed](#enumstringboxed)
abstract sealed validated payload class | +| record | [EnumTest.EnumStringBoxedString](#enumstringboxedstring)
boxed class to store validated String payloads | | static class | [EnumTest.EnumString](#enumstring)
schema class | | enum | [EnumTest.StringEnumStringEnums](#stringenumstringenums)
String enum | @@ -47,20 +47,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## EnumTest1BoxedMap -public static final class EnumTest1BoxedMap
+public record EnumTest1BoxedMap
implements [EnumTest1Boxed](#enumtest1boxed) -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 | | --------------------------- | | EnumTest1BoxedMap([EnumTestMap](#enumtestmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [EnumTestMap](#enumtestmap) | data
validated payload | +| [EnumTestMap](#enumtestmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## EnumTest1 public static class EnumTest1
@@ -228,20 +229,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## EnumNumberBoxedNumber -public static final class EnumNumberBoxedNumber
+public record EnumNumberBoxedNumber
implements [EnumNumberBoxed](#enumnumberboxed) -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 | | --------------------------- | | EnumNumberBoxedNumber(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 | ## EnumNumber public static class EnumNumber
@@ -316,20 +318,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## EnumIntegerBoxedNumber -public static final class EnumIntegerBoxedNumber
+public record EnumIntegerBoxedNumber
implements [EnumIntegerBoxed](#enumintegerboxed) -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 | | --------------------------- | | EnumIntegerBoxedNumber(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 | ## EnumInteger public static class EnumInteger
@@ -428,20 +431,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## EnumStringRequiredBoxedString -public static final class EnumStringRequiredBoxedString
+public record EnumStringRequiredBoxedString
implements [EnumStringRequiredBoxed](#enumstringrequiredboxed) -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 | | --------------------------- | | EnumStringRequiredBoxedString(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 | ## EnumStringRequired public static class EnumStringRequired
@@ -505,20 +509,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## EnumStringBoxedString -public static final class EnumStringBoxedString
+public record EnumStringBoxedString
implements [EnumStringBoxed](#enumstringboxed) -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 | | --------------------------- | | EnumStringBoxedString(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 | ## EnumString public static class EnumString
diff --git a/samples/client/petstore/java/docs/components/schemas/EquilateralTriangle.md b/samples/client/petstore/java/docs/components/schemas/EquilateralTriangle.md index 975245a3136..bc422e80bba 100644 --- a/samples/client/petstore/java/docs/components/schemas/EquilateralTriangle.md +++ b/samples/client/petstore/java/docs/components/schemas/EquilateralTriangle.md @@ -13,21 +13,21 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [EquilateralTriangle.EquilateralTriangle1Boxed](#equilateraltriangle1boxed)
abstract sealed validated payload class | -| static class | [EquilateralTriangle.EquilateralTriangle1BoxedVoid](#equilateraltriangle1boxedvoid)
boxed class to store validated null payloads | -| static class | [EquilateralTriangle.EquilateralTriangle1BoxedBoolean](#equilateraltriangle1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [EquilateralTriangle.EquilateralTriangle1BoxedNumber](#equilateraltriangle1boxednumber)
boxed class to store validated Number payloads | -| static class | [EquilateralTriangle.EquilateralTriangle1BoxedString](#equilateraltriangle1boxedstring)
boxed class to store validated String payloads | -| static class | [EquilateralTriangle.EquilateralTriangle1BoxedList](#equilateraltriangle1boxedlist)
boxed class to store validated List payloads | -| static class | [EquilateralTriangle.EquilateralTriangle1BoxedMap](#equilateraltriangle1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [EquilateralTriangle.EquilateralTriangle1Boxed](#equilateraltriangle1boxed)
abstract sealed validated payload class | +| record | [EquilateralTriangle.EquilateralTriangle1BoxedVoid](#equilateraltriangle1boxedvoid)
boxed class to store validated null payloads | +| record | [EquilateralTriangle.EquilateralTriangle1BoxedBoolean](#equilateraltriangle1boxedboolean)
boxed class to store validated boolean payloads | +| record | [EquilateralTriangle.EquilateralTriangle1BoxedNumber](#equilateraltriangle1boxednumber)
boxed class to store validated Number payloads | +| record | [EquilateralTriangle.EquilateralTriangle1BoxedString](#equilateraltriangle1boxedstring)
boxed class to store validated String payloads | +| record | [EquilateralTriangle.EquilateralTriangle1BoxedList](#equilateraltriangle1boxedlist)
boxed class to store validated List payloads | +| record | [EquilateralTriangle.EquilateralTriangle1BoxedMap](#equilateraltriangle1boxedmap)
boxed class to store validated Map payloads | | static class | [EquilateralTriangle.EquilateralTriangle1](#equilateraltriangle1)
schema class | -| static class | [EquilateralTriangle.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | -| static class | [EquilateralTriangle.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [EquilateralTriangle.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | +| record | [EquilateralTriangle.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | | static class | [EquilateralTriangle.Schema1](#schema1)
schema class | | static class | [EquilateralTriangle.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [EquilateralTriangle.Schema1Map](#schema1map)
output class for Map payloads | -| static class | [EquilateralTriangle.TriangleTypeBoxed](#triangletypeboxed)
abstract sealed validated payload class | -| static class | [EquilateralTriangle.TriangleTypeBoxedString](#triangletypeboxedstring)
boxed class to store validated String payloads | +| sealed interface | [EquilateralTriangle.TriangleTypeBoxed](#triangletypeboxed)
abstract sealed validated payload class | +| record | [EquilateralTriangle.TriangleTypeBoxedString](#triangletypeboxedstring)
boxed class to store validated String payloads | | static class | [EquilateralTriangle.TriangleType](#triangletype)
schema class | | enum | [EquilateralTriangle.StringTriangleTypeEnums](#stringtriangletypeenums)
String enum | @@ -44,100 +44,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## EquilateralTriangle1BoxedVoid -public static final class EquilateralTriangle1BoxedVoid
+public record EquilateralTriangle1BoxedVoid
implements [EquilateralTriangle1Boxed](#equilateraltriangle1boxed) -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 | | --------------------------- | | EquilateralTriangle1BoxedVoid(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 | ## EquilateralTriangle1BoxedBoolean -public static final class EquilateralTriangle1BoxedBoolean
+public record EquilateralTriangle1BoxedBoolean
implements [EquilateralTriangle1Boxed](#equilateraltriangle1boxed) -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 | | --------------------------- | | EquilateralTriangle1BoxedBoolean(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 | ## EquilateralTriangle1BoxedNumber -public static final class EquilateralTriangle1BoxedNumber
+public record EquilateralTriangle1BoxedNumber
implements [EquilateralTriangle1Boxed](#equilateraltriangle1boxed) -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 | | --------------------------- | | EquilateralTriangle1BoxedNumber(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 | ## EquilateralTriangle1BoxedString -public static final class EquilateralTriangle1BoxedString
+public record EquilateralTriangle1BoxedString
implements [EquilateralTriangle1Boxed](#equilateraltriangle1boxed) -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 | | --------------------------- | | EquilateralTriangle1BoxedString(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 | ## EquilateralTriangle1BoxedList -public static final class EquilateralTriangle1BoxedList
+public record EquilateralTriangle1BoxedList
implements [EquilateralTriangle1Boxed](#equilateraltriangle1boxed) -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 | | --------------------------- | | EquilateralTriangle1BoxedList(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 | ## EquilateralTriangle1BoxedMap -public static final class EquilateralTriangle1BoxedMap
+public record EquilateralTriangle1BoxedMap
implements [EquilateralTriangle1Boxed](#equilateraltriangle1boxed) -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 | | --------------------------- | | EquilateralTriangle1BoxedMap(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 | ## EquilateralTriangle1 public static class EquilateralTriangle1
@@ -178,20 +184,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema1BoxedMap -public static final class Schema1BoxedMap
+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
@@ -285,20 +292,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## TriangleTypeBoxedString -public static final class TriangleTypeBoxedString
+public record TriangleTypeBoxedString
implements [TriangleTypeBoxed](#triangletypeboxed) -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 | | --------------------------- | | TriangleTypeBoxedString(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 | ## TriangleType public static class TriangleType
diff --git a/samples/client/petstore/java/docs/components/schemas/File.md b/samples/client/petstore/java/docs/components/schemas/File.md index a0b6ec58560..1fcef01cc04 100644 --- a/samples/client/petstore/java/docs/components/schemas/File.md +++ b/samples/client/petstore/java/docs/components/schemas/File.md @@ -12,13 +12,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [File.File1Boxed](#file1boxed)
abstract sealed validated payload class | -| static class | [File.File1BoxedMap](#file1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [File.File1Boxed](#file1boxed)
abstract sealed validated payload class | +| record | [File.File1BoxedMap](#file1boxedmap)
boxed class to store validated Map payloads | | static class | [File.File1](#file1)
schema class | | static class | [File.FileMapBuilder](#filemapbuilder)
builder for Map payloads | | static class | [File.FileMap](#filemap)
output class for Map payloads | -| static class | [File.SourceURIBoxed](#sourceuriboxed)
abstract sealed validated payload class | -| static class | [File.SourceURIBoxedString](#sourceuriboxedstring)
boxed class to store validated String payloads | +| sealed interface | [File.SourceURIBoxed](#sourceuriboxed)
abstract sealed validated payload class | +| record | [File.SourceURIBoxedString](#sourceuriboxedstring)
boxed class to store validated String payloads | | static class | [File.SourceURI](#sourceuri)
schema class | ## File1Boxed @@ -29,20 +29,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## File1BoxedMap -public static final class File1BoxedMap
+public record File1BoxedMap
implements [File1Boxed](#file1boxed) -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 | | --------------------------- | | File1BoxedMap([FileMap](#filemap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FileMap](#filemap) | data
validated payload | +| [FileMap](#filemap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## File1 public static class File1
@@ -138,20 +139,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## SourceURIBoxedString -public static final class SourceURIBoxedString
+public record SourceURIBoxedString
implements [SourceURIBoxed](#sourceuriboxed) -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 | | --------------------------- | | SourceURIBoxedString(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 | ## SourceURI public static class SourceURI
diff --git a/samples/client/petstore/java/docs/components/schemas/FileSchemaTestClass.md b/samples/client/petstore/java/docs/components/schemas/FileSchemaTestClass.md index 22cd60e25c3..2971b9ad532 100644 --- a/samples/client/petstore/java/docs/components/schemas/FileSchemaTestClass.md +++ b/samples/client/petstore/java/docs/components/schemas/FileSchemaTestClass.md @@ -14,13 +14,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [FileSchemaTestClass.FileSchemaTestClass1Boxed](#fileschematestclass1boxed)
abstract sealed validated payload class | -| static class | [FileSchemaTestClass.FileSchemaTestClass1BoxedMap](#fileschematestclass1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [FileSchemaTestClass.FileSchemaTestClass1Boxed](#fileschematestclass1boxed)
abstract sealed validated payload class | +| record | [FileSchemaTestClass.FileSchemaTestClass1BoxedMap](#fileschematestclass1boxedmap)
boxed class to store validated Map payloads | | static class | [FileSchemaTestClass.FileSchemaTestClass1](#fileschematestclass1)
schema class | | static class | [FileSchemaTestClass.FileSchemaTestClassMapBuilder](#fileschematestclassmapbuilder)
builder for Map payloads | | static class | [FileSchemaTestClass.FileSchemaTestClassMap](#fileschematestclassmap)
output class for Map payloads | -| static class | [FileSchemaTestClass.FilesBoxed](#filesboxed)
abstract sealed validated payload class | -| static class | [FileSchemaTestClass.FilesBoxedList](#filesboxedlist)
boxed class to store validated List payloads | +| sealed interface | [FileSchemaTestClass.FilesBoxed](#filesboxed)
abstract sealed validated payload class | +| record | [FileSchemaTestClass.FilesBoxedList](#filesboxedlist)
boxed class to store validated List payloads | | static class | [FileSchemaTestClass.Files](#files)
schema class | | static class | [FileSchemaTestClass.FilesListBuilder](#fileslistbuilder)
builder for List payloads | | static class | [FileSchemaTestClass.FilesList](#fileslist)
output class for List payloads | @@ -33,20 +33,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## FileSchemaTestClass1BoxedMap -public static final class FileSchemaTestClass1BoxedMap
+public record FileSchemaTestClass1BoxedMap
implements [FileSchemaTestClass1Boxed](#fileschematestclass1boxed) -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 | | --------------------------- | | FileSchemaTestClass1BoxedMap([FileSchemaTestClassMap](#fileschematestclassmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FileSchemaTestClassMap](#fileschematestclassmap) | data
validated payload | +| [FileSchemaTestClassMap](#fileschematestclassmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## FileSchemaTestClass1 public static class FileSchemaTestClass1
@@ -143,20 +144,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## FilesBoxedList -public static final class FilesBoxedList
+public record FilesBoxedList
implements [FilesBoxed](#filesboxed) -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 | | --------------------------- | | FilesBoxedList([FilesList](#fileslist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FilesList](#fileslist) | data
validated payload | +| [FilesList](#fileslist) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Files public static class Files
diff --git a/samples/client/petstore/java/docs/components/schemas/Foo.md b/samples/client/petstore/java/docs/components/schemas/Foo.md index e50c32c65ed..af50069a74e 100644 --- a/samples/client/petstore/java/docs/components/schemas/Foo.md +++ b/samples/client/petstore/java/docs/components/schemas/Foo.md @@ -12,8 +12,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Foo.Foo1Boxed](#foo1boxed)
abstract sealed validated payload class | -| static class | [Foo.Foo1BoxedMap](#foo1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Foo.Foo1Boxed](#foo1boxed)
abstract sealed validated payload class | +| record | [Foo.Foo1BoxedMap](#foo1boxedmap)
boxed class to store validated Map payloads | | static class | [Foo.Foo1](#foo1)
schema class | | static class | [Foo.FooMapBuilder](#foomapbuilder)
builder for Map payloads | | static class | [Foo.FooMap](#foomap)
output class for Map payloads | @@ -26,20 +26,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Foo1BoxedMap -public static final class Foo1BoxedMap
+public record Foo1BoxedMap
implements [Foo1Boxed](#foo1boxed) -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 | | --------------------------- | | Foo1BoxedMap([FooMap](#foomap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FooMap](#foomap) | data
validated payload | +| [FooMap](#foomap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Foo1 public static class Foo1
diff --git a/samples/client/petstore/java/docs/components/schemas/FormatTest.md b/samples/client/petstore/java/docs/components/schemas/FormatTest.md index dd5943cf3f0..d8001802dd0 100644 --- a/samples/client/petstore/java/docs/components/schemas/FormatTest.md +++ b/samples/client/petstore/java/docs/components/schemas/FormatTest.md @@ -14,77 +14,77 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [FormatTest.FormatTest1Boxed](#formattest1boxed)
abstract sealed validated payload class | -| static class | [FormatTest.FormatTest1BoxedMap](#formattest1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [FormatTest.FormatTest1Boxed](#formattest1boxed)
abstract sealed validated payload class | +| record | [FormatTest.FormatTest1BoxedMap](#formattest1boxedmap)
boxed class to store validated Map payloads | | static class | [FormatTest.FormatTest1](#formattest1)
schema class | | static class | [FormatTest.FormatTestMapBuilder](#formattestmapbuilder)
builder for Map payloads | | static class | [FormatTest.FormatTestMap](#formattestmap)
output class for Map payloads | -| static class | [FormatTest.NonePropBoxed](#nonepropboxed)
abstract sealed validated payload class | -| static class | [FormatTest.NonePropBoxedVoid](#nonepropboxedvoid)
boxed class to store validated null payloads | +| sealed interface | [FormatTest.NonePropBoxed](#nonepropboxed)
abstract sealed validated payload class | +| record | [FormatTest.NonePropBoxedVoid](#nonepropboxedvoid)
boxed class to store validated null payloads | | static class | [FormatTest.NoneProp](#noneprop)
schema class | -| static class | [FormatTest.PatternWithDigitsAndDelimiterBoxed](#patternwithdigitsanddelimiterboxed)
abstract sealed validated payload class | -| static class | [FormatTest.PatternWithDigitsAndDelimiterBoxedString](#patternwithdigitsanddelimiterboxedstring)
boxed class to store validated String payloads | +| sealed interface | [FormatTest.PatternWithDigitsAndDelimiterBoxed](#patternwithdigitsanddelimiterboxed)
abstract sealed validated payload class | +| record | [FormatTest.PatternWithDigitsAndDelimiterBoxedString](#patternwithdigitsanddelimiterboxedstring)
boxed class to store validated String payloads | | static class | [FormatTest.PatternWithDigitsAndDelimiter](#patternwithdigitsanddelimiter)
schema class | -| static class | [FormatTest.PatternWithDigitsBoxed](#patternwithdigitsboxed)
abstract sealed validated payload class | -| static class | [FormatTest.PatternWithDigitsBoxedString](#patternwithdigitsboxedstring)
boxed class to store validated String payloads | +| sealed interface | [FormatTest.PatternWithDigitsBoxed](#patternwithdigitsboxed)
abstract sealed validated payload class | +| record | [FormatTest.PatternWithDigitsBoxedString](#patternwithdigitsboxedstring)
boxed class to store validated String payloads | | static class | [FormatTest.PatternWithDigits](#patternwithdigits)
schema class | -| static class | [FormatTest.PasswordBoxed](#passwordboxed)
abstract sealed validated payload class | -| static class | [FormatTest.PasswordBoxedString](#passwordboxedstring)
boxed class to store validated String payloads | +| sealed interface | [FormatTest.PasswordBoxed](#passwordboxed)
abstract sealed validated payload class | +| record | [FormatTest.PasswordBoxedString](#passwordboxedstring)
boxed class to store validated String payloads | | static class | [FormatTest.Password](#password)
schema class | -| static class | [FormatTest.UuidNoExampleBoxed](#uuidnoexampleboxed)
abstract sealed validated payload class | -| static class | [FormatTest.UuidNoExampleBoxedString](#uuidnoexampleboxedstring)
boxed class to store validated String payloads | +| sealed interface | [FormatTest.UuidNoExampleBoxed](#uuidnoexampleboxed)
abstract sealed validated payload class | +| record | [FormatTest.UuidNoExampleBoxedString](#uuidnoexampleboxedstring)
boxed class to store validated String payloads | | static class | [FormatTest.UuidNoExample](#uuidnoexample)
schema class | -| static class | [FormatTest.UuidSchemaBoxed](#uuidschemaboxed)
abstract sealed validated payload class | -| static class | [FormatTest.UuidSchemaBoxedString](#uuidschemaboxedstring)
boxed class to store validated String payloads | +| sealed interface | [FormatTest.UuidSchemaBoxed](#uuidschemaboxed)
abstract sealed validated payload class | +| record | [FormatTest.UuidSchemaBoxedString](#uuidschemaboxedstring)
boxed class to store validated String payloads | | static class | [FormatTest.UuidSchema](#uuidschema)
schema class | -| static class | [FormatTest.DateTimeBoxed](#datetimeboxed)
abstract sealed validated payload class | -| static class | [FormatTest.DateTimeBoxedString](#datetimeboxedstring)
boxed class to store validated String payloads | +| sealed interface | [FormatTest.DateTimeBoxed](#datetimeboxed)
abstract sealed validated payload class | +| record | [FormatTest.DateTimeBoxedString](#datetimeboxedstring)
boxed class to store validated String payloads | | static class | [FormatTest.DateTime](#datetime)
schema class | -| static class | [FormatTest.DateBoxed](#dateboxed)
abstract sealed validated payload class | -| static class | [FormatTest.DateBoxedString](#dateboxedstring)
boxed class to store validated String payloads | +| sealed interface | [FormatTest.DateBoxed](#dateboxed)
abstract sealed validated payload class | +| record | [FormatTest.DateBoxedString](#dateboxedstring)
boxed class to store validated String payloads | | static class | [FormatTest.Date](#date)
schema class | -| static class | [FormatTest.BinaryBoxed](#binaryboxed)
abstract sealed validated payload class | +| sealed interface | [FormatTest.BinaryBoxed](#binaryboxed)
abstract sealed validated payload class | | static class | [FormatTest.Binary](#binary)
schema class | -| static class | [FormatTest.ByteSchemaBoxed](#byteschemaboxed)
abstract sealed validated payload class | -| static class | [FormatTest.ByteSchemaBoxedString](#byteschemaboxedstring)
boxed class to store validated String payloads | +| sealed interface | [FormatTest.ByteSchemaBoxed](#byteschemaboxed)
abstract sealed validated payload class | +| record | [FormatTest.ByteSchemaBoxedString](#byteschemaboxedstring)
boxed class to store validated String payloads | | static class | [FormatTest.ByteSchema](#byteschema)
schema class | -| static class | [FormatTest.StringSchemaBoxed](#stringschemaboxed)
abstract sealed validated payload class | -| static class | [FormatTest.StringSchemaBoxedString](#stringschemaboxedstring)
boxed class to store validated String payloads | +| sealed interface | [FormatTest.StringSchemaBoxed](#stringschemaboxed)
abstract sealed validated payload class | +| record | [FormatTest.StringSchemaBoxedString](#stringschemaboxedstring)
boxed class to store validated String payloads | | static class | [FormatTest.StringSchema](#stringschema)
schema class | -| static class | [FormatTest.ArrayWithUniqueItemsBoxed](#arraywithuniqueitemsboxed)
abstract sealed validated payload class | -| static class | [FormatTest.ArrayWithUniqueItemsBoxedList](#arraywithuniqueitemsboxedlist)
boxed class to store validated List payloads | +| sealed interface | [FormatTest.ArrayWithUniqueItemsBoxed](#arraywithuniqueitemsboxed)
abstract sealed validated payload class | +| record | [FormatTest.ArrayWithUniqueItemsBoxedList](#arraywithuniqueitemsboxedlist)
boxed class to store validated List payloads | | static class | [FormatTest.ArrayWithUniqueItems](#arraywithuniqueitems)
schema class | | static class | [FormatTest.ArrayWithUniqueItemsListBuilder](#arraywithuniqueitemslistbuilder)
builder for List payloads | | static class | [FormatTest.ArrayWithUniqueItemsList](#arraywithuniqueitemslist)
output class for List payloads | -| static class | [FormatTest.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | -| static class | [FormatTest.ItemsBoxedNumber](#itemsboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [FormatTest.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | +| record | [FormatTest.ItemsBoxedNumber](#itemsboxednumber)
boxed class to store validated Number payloads | | static class | [FormatTest.Items](#items)
schema class | -| static class | [FormatTest.Float64Boxed](#float64boxed)
abstract sealed validated payload class | -| static class | [FormatTest.Float64BoxedNumber](#float64boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [FormatTest.Float64Boxed](#float64boxed)
abstract sealed validated payload class | +| record | [FormatTest.Float64BoxedNumber](#float64boxednumber)
boxed class to store validated Number payloads | | static class | [FormatTest.Float64](#float64)
schema class | -| static class | [FormatTest.DoubleSchemaBoxed](#doubleschemaboxed)
abstract sealed validated payload class | -| static class | [FormatTest.DoubleSchemaBoxedNumber](#doubleschemaboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [FormatTest.DoubleSchemaBoxed](#doubleschemaboxed)
abstract sealed validated payload class | +| record | [FormatTest.DoubleSchemaBoxedNumber](#doubleschemaboxednumber)
boxed class to store validated Number payloads | | static class | [FormatTest.DoubleSchema](#doubleschema)
schema class | -| static class | [FormatTest.Float32Boxed](#float32boxed)
abstract sealed validated payload class | -| static class | [FormatTest.Float32BoxedNumber](#float32boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [FormatTest.Float32Boxed](#float32boxed)
abstract sealed validated payload class | +| record | [FormatTest.Float32BoxedNumber](#float32boxednumber)
boxed class to store validated Number payloads | | static class | [FormatTest.Float32](#float32)
schema class | -| static class | [FormatTest.FloatSchemaBoxed](#floatschemaboxed)
abstract sealed validated payload class | -| static class | [FormatTest.FloatSchemaBoxedNumber](#floatschemaboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [FormatTest.FloatSchemaBoxed](#floatschemaboxed)
abstract sealed validated payload class | +| record | [FormatTest.FloatSchemaBoxedNumber](#floatschemaboxednumber)
boxed class to store validated Number payloads | | static class | [FormatTest.FloatSchema](#floatschema)
schema class | -| static class | [FormatTest.NumberSchemaBoxed](#numberschemaboxed)
abstract sealed validated payload class | -| static class | [FormatTest.NumberSchemaBoxedNumber](#numberschemaboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [FormatTest.NumberSchemaBoxed](#numberschemaboxed)
abstract sealed validated payload class | +| record | [FormatTest.NumberSchemaBoxedNumber](#numberschemaboxednumber)
boxed class to store validated Number payloads | | static class | [FormatTest.NumberSchema](#numberschema)
schema class | -| static class | [FormatTest.Int64Boxed](#int64boxed)
abstract sealed validated payload class | -| static class | [FormatTest.Int64BoxedNumber](#int64boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [FormatTest.Int64Boxed](#int64boxed)
abstract sealed validated payload class | +| record | [FormatTest.Int64BoxedNumber](#int64boxednumber)
boxed class to store validated Number payloads | | static class | [FormatTest.Int64](#int64)
schema class | -| static class | [FormatTest.Int32withValidationsBoxed](#int32withvalidationsboxed)
abstract sealed validated payload class | -| static class | [FormatTest.Int32withValidationsBoxedNumber](#int32withvalidationsboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [FormatTest.Int32withValidationsBoxed](#int32withvalidationsboxed)
abstract sealed validated payload class | +| record | [FormatTest.Int32withValidationsBoxedNumber](#int32withvalidationsboxednumber)
boxed class to store validated Number payloads | | static class | [FormatTest.Int32withValidations](#int32withvalidations)
schema class | -| static class | [FormatTest.Int32Boxed](#int32boxed)
abstract sealed validated payload class | -| static class | [FormatTest.Int32BoxedNumber](#int32boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [FormatTest.Int32Boxed](#int32boxed)
abstract sealed validated payload class | +| record | [FormatTest.Int32BoxedNumber](#int32boxednumber)
boxed class to store validated Number payloads | | static class | [FormatTest.Int32](#int32)
schema class | -| static class | [FormatTest.IntegerSchemaBoxed](#integerschemaboxed)
abstract sealed validated payload class | -| static class | [FormatTest.IntegerSchemaBoxedNumber](#integerschemaboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [FormatTest.IntegerSchemaBoxed](#integerschemaboxed)
abstract sealed validated payload class | +| record | [FormatTest.IntegerSchemaBoxedNumber](#integerschemaboxednumber)
boxed class to store validated Number payloads | | static class | [FormatTest.IntegerSchema](#integerschema)
schema class | ## FormatTest1Boxed @@ -95,20 +95,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## FormatTest1BoxedMap -public static final class FormatTest1BoxedMap
+public record FormatTest1BoxedMap
implements [FormatTest1Boxed](#formattest1boxed) -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 | | --------------------------- | | FormatTest1BoxedMap([FormatTestMap](#formattestmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FormatTestMap](#formattestmap) | data
validated payload | +| [FormatTestMap](#formattestmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## FormatTest1 public static class FormatTest1
@@ -576,20 +577,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## NonePropBoxedVoid -public static final class NonePropBoxedVoid
+public record NonePropBoxedVoid
implements [NonePropBoxed](#nonepropboxed) -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 | | --------------------------- | | NonePropBoxedVoid(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 | ## NoneProp public static class NoneProp
@@ -610,20 +612,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## PatternWithDigitsAndDelimiterBoxedString -public static final class PatternWithDigitsAndDelimiterBoxedString
+public record PatternWithDigitsAndDelimiterBoxedString
implements [PatternWithDigitsAndDelimiterBoxed](#patternwithdigitsanddelimiterboxed) -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 | | --------------------------- | | PatternWithDigitsAndDelimiterBoxedString(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 | ## PatternWithDigitsAndDelimiter public static class PatternWithDigitsAndDelimiter
@@ -676,20 +679,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## PatternWithDigitsBoxedString -public static final class PatternWithDigitsBoxedString
+public record PatternWithDigitsBoxedString
implements [PatternWithDigitsBoxed](#patternwithdigitsboxed) -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 | | --------------------------- | | PatternWithDigitsBoxedString(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 | ## PatternWithDigits public static class PatternWithDigits
@@ -742,20 +746,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## PasswordBoxedString -public static final class PasswordBoxedString
+public record PasswordBoxedString
implements [PasswordBoxed](#passwordboxed) -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 | | --------------------------- | | PasswordBoxedString(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 | ## Password public static class Password
@@ -807,20 +812,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## UuidNoExampleBoxedString -public static final class UuidNoExampleBoxedString
+public record UuidNoExampleBoxedString
implements [UuidNoExampleBoxed](#uuidnoexampleboxed) -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 | | --------------------------- | | UuidNoExampleBoxedString(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 | ## UuidNoExample public static class UuidNoExample
@@ -841,20 +847,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## UuidSchemaBoxedString -public static final class UuidSchemaBoxedString
+public record UuidSchemaBoxedString
implements [UuidSchemaBoxed](#uuidschemaboxed) -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 | | --------------------------- | | UuidSchemaBoxedString(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 | ## UuidSchema public static class UuidSchema
@@ -875,20 +882,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## DateTimeBoxedString -public static final class DateTimeBoxedString
+public record DateTimeBoxedString
implements [DateTimeBoxed](#datetimeboxed) -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 | | --------------------------- | | DateTimeBoxedString(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 | ## DateTime public static class DateTime
@@ -909,20 +917,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## DateBoxedString -public static final class DateBoxedString
+public record DateBoxedString
implements [DateBoxed](#dateboxed) -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 | | --------------------------- | | DateBoxedString(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 | ## Date public static class Date
@@ -955,20 +964,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ByteSchemaBoxedString -public static final class ByteSchemaBoxedString
+public record ByteSchemaBoxedString
implements [ByteSchemaBoxed](#byteschemaboxed) -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 | | --------------------------- | | ByteSchemaBoxedString(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 | ## ByteSchema public static class ByteSchema
@@ -984,20 +994,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## StringSchemaBoxedString -public static final class StringSchemaBoxedString
+public record StringSchemaBoxedString
implements [StringSchemaBoxed](#stringschemaboxed) -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 | | --------------------------- | | StringSchemaBoxedString(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 | ## StringSchema public static class StringSchema
@@ -1047,20 +1058,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ArrayWithUniqueItemsBoxedList -public static final class ArrayWithUniqueItemsBoxedList
+public record ArrayWithUniqueItemsBoxedList
implements [ArrayWithUniqueItemsBoxed](#arraywithuniqueitemsboxed) -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 | | --------------------------- | | ArrayWithUniqueItemsBoxedList([ArrayWithUniqueItemsList](#arraywithuniqueitemslist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ArrayWithUniqueItemsList](#arraywithuniqueitemslist) | data
validated payload | +| [ArrayWithUniqueItemsList](#arraywithuniqueitemslist) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ArrayWithUniqueItems public static class ArrayWithUniqueItems
@@ -1147,20 +1159,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ItemsBoxedNumber -public static final class ItemsBoxedNumber
+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 | ## Items public static class Items
@@ -1181,20 +1194,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Float64BoxedNumber -public static final class Float64BoxedNumber
+public record Float64BoxedNumber
implements [Float64Boxed](#float64boxed) -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 | | --------------------------- | | Float64BoxedNumber(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 | ## Float64 public static class Float64
@@ -1215,20 +1229,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## DoubleSchemaBoxedNumber -public static final class DoubleSchemaBoxedNumber
+public record DoubleSchemaBoxedNumber
implements [DoubleSchemaBoxed](#doubleschemaboxed) -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 | | --------------------------- | | DoubleSchemaBoxedNumber(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 | ## DoubleSchema public static class DoubleSchema
@@ -1280,20 +1295,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Float32BoxedNumber -public static final class Float32BoxedNumber
+public record Float32BoxedNumber
implements [Float32Boxed](#float32boxed) -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 | | --------------------------- | | Float32BoxedNumber(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 | ## Float32 public static class Float32
@@ -1314,20 +1330,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## FloatSchemaBoxedNumber -public static final class FloatSchemaBoxedNumber
+public record FloatSchemaBoxedNumber
implements [FloatSchemaBoxed](#floatschemaboxed) -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 | | --------------------------- | | FloatSchemaBoxedNumber(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 | ## FloatSchema public static class FloatSchema
@@ -1382,20 +1399,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## NumberSchemaBoxedNumber -public static final class NumberSchemaBoxedNumber
+public record NumberSchemaBoxedNumber
implements [NumberSchemaBoxed](#numberschemaboxed) -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 | | --------------------------- | | NumberSchemaBoxedNumber(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 | ## NumberSchema public static class NumberSchema
@@ -1447,20 +1465,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Int64BoxedNumber -public static final class Int64BoxedNumber
+public record Int64BoxedNumber
implements [Int64Boxed](#int64boxed) -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 | | --------------------------- | | Int64BoxedNumber(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 | ## Int64 public static class Int64
@@ -1481,20 +1500,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Int32withValidationsBoxedNumber -public static final class Int32withValidationsBoxedNumber
+public record Int32withValidationsBoxedNumber
implements [Int32withValidationsBoxed](#int32withvalidationsboxed) -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 | | --------------------------- | | Int32withValidationsBoxedNumber(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 | ## Int32withValidations public static class Int32withValidations
@@ -1546,20 +1566,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Int32BoxedNumber -public static final class Int32BoxedNumber
+public record Int32BoxedNumber
implements [Int32Boxed](#int32boxed) -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 | | --------------------------- | | Int32BoxedNumber(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 | ## Int32 public static class Int32
@@ -1580,20 +1601,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## IntegerSchemaBoxedNumber -public static final class IntegerSchemaBoxedNumber
+public record IntegerSchemaBoxedNumber
implements [IntegerSchemaBoxed](#integerschemaboxed) -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 | | --------------------------- | | IntegerSchemaBoxedNumber(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 | ## IntegerSchema public static class IntegerSchema
diff --git a/samples/client/petstore/java/docs/components/schemas/FromSchema.md b/samples/client/petstore/java/docs/components/schemas/FromSchema.md index 66437568e61..42f18099ea7 100644 --- a/samples/client/petstore/java/docs/components/schemas/FromSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/FromSchema.md @@ -12,16 +12,16 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [FromSchema.FromSchema1Boxed](#fromschema1boxed)
abstract sealed validated payload class | -| static class | [FromSchema.FromSchema1BoxedMap](#fromschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [FromSchema.FromSchema1Boxed](#fromschema1boxed)
abstract sealed validated payload class | +| record | [FromSchema.FromSchema1BoxedMap](#fromschema1boxedmap)
boxed class to store validated Map payloads | | static class | [FromSchema.FromSchema1](#fromschema1)
schema class | | static class | [FromSchema.FromSchemaMapBuilder](#fromschemamapbuilder)
builder for Map payloads | | static class | [FromSchema.FromSchemaMap](#fromschemamap)
output class for Map payloads | -| static class | [FromSchema.IdBoxed](#idboxed)
abstract sealed validated payload class | -| static class | [FromSchema.IdBoxedNumber](#idboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [FromSchema.IdBoxed](#idboxed)
abstract sealed validated payload class | +| record | [FromSchema.IdBoxedNumber](#idboxednumber)
boxed class to store validated Number payloads | | static class | [FromSchema.Id](#id)
schema class | -| static class | [FromSchema.DataBoxed](#databoxed)
abstract sealed validated payload class | -| static class | [FromSchema.DataBoxedString](#databoxedstring)
boxed class to store validated String payloads | +| sealed interface | [FromSchema.DataBoxed](#databoxed)
abstract sealed validated payload class | +| record | [FromSchema.DataBoxedString](#databoxedstring)
boxed class to store validated String payloads | | static class | [FromSchema.Data](#data)
schema class | ## FromSchema1Boxed @@ -32,20 +32,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## FromSchema1BoxedMap -public static final class FromSchema1BoxedMap
+public record FromSchema1BoxedMap
implements [FromSchema1Boxed](#fromschema1boxed) -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 | | --------------------------- | | FromSchema1BoxedMap([FromSchemaMap](#fromschemamap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FromSchemaMap](#fromschemamap) | data
validated payload | +| [FromSchemaMap](#fromschemamap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## FromSchema1 public static class FromSchema1
@@ -145,20 +146,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## IdBoxedNumber -public static final class IdBoxedNumber
+public record IdBoxedNumber
implements [IdBoxed](#idboxed) -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 | | --------------------------- | | IdBoxedNumber(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 | ## Id public static class Id
@@ -179,20 +181,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## DataBoxedString -public static final class DataBoxedString
+public record DataBoxedString
implements [DataBoxed](#databoxed) -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 | | --------------------------- | | DataBoxedString(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 | ## Data public static class Data
diff --git a/samples/client/petstore/java/docs/components/schemas/Fruit.md b/samples/client/petstore/java/docs/components/schemas/Fruit.md index ccac75a486c..f8b9d178c93 100644 --- a/samples/client/petstore/java/docs/components/schemas/Fruit.md +++ b/samples/client/petstore/java/docs/components/schemas/Fruit.md @@ -12,18 +12,18 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Fruit.Fruit1Boxed](#fruit1boxed)
abstract sealed validated payload class | -| static class | [Fruit.Fruit1BoxedVoid](#fruit1boxedvoid)
boxed class to store validated null payloads | -| static class | [Fruit.Fruit1BoxedBoolean](#fruit1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [Fruit.Fruit1BoxedNumber](#fruit1boxednumber)
boxed class to store validated Number payloads | -| static class | [Fruit.Fruit1BoxedString](#fruit1boxedstring)
boxed class to store validated String payloads | -| static class | [Fruit.Fruit1BoxedList](#fruit1boxedlist)
boxed class to store validated List payloads | -| static class | [Fruit.Fruit1BoxedMap](#fruit1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Fruit.Fruit1Boxed](#fruit1boxed)
abstract sealed validated payload class | +| record | [Fruit.Fruit1BoxedVoid](#fruit1boxedvoid)
boxed class to store validated null payloads | +| record | [Fruit.Fruit1BoxedBoolean](#fruit1boxedboolean)
boxed class to store validated boolean payloads | +| record | [Fruit.Fruit1BoxedNumber](#fruit1boxednumber)
boxed class to store validated Number payloads | +| record | [Fruit.Fruit1BoxedString](#fruit1boxedstring)
boxed class to store validated String payloads | +| record | [Fruit.Fruit1BoxedList](#fruit1boxedlist)
boxed class to store validated List payloads | +| record | [Fruit.Fruit1BoxedMap](#fruit1boxedmap)
boxed class to store validated Map payloads | | static class | [Fruit.Fruit1](#fruit1)
schema class | | static class | [Fruit.FruitMapBuilder](#fruitmapbuilder)
builder for Map payloads | | static class | [Fruit.FruitMap](#fruitmap)
output class for Map payloads | -| static class | [Fruit.ColorBoxed](#colorboxed)
abstract sealed validated payload class | -| static class | [Fruit.ColorBoxedString](#colorboxedstring)
boxed class to store validated String payloads | +| sealed interface | [Fruit.ColorBoxed](#colorboxed)
abstract sealed validated payload class | +| record | [Fruit.ColorBoxedString](#colorboxedstring)
boxed class to store validated String payloads | | static class | [Fruit.Color](#color)
schema class | ## Fruit1Boxed @@ -39,100 +39,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## Fruit1BoxedVoid -public static final class Fruit1BoxedVoid
+public record Fruit1BoxedVoid
implements [Fruit1Boxed](#fruit1boxed) -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 | | --------------------------- | | Fruit1BoxedVoid(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 | ## Fruit1BoxedBoolean -public static final class Fruit1BoxedBoolean
+public record Fruit1BoxedBoolean
implements [Fruit1Boxed](#fruit1boxed) -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 | | --------------------------- | | Fruit1BoxedBoolean(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 | ## Fruit1BoxedNumber -public static final class Fruit1BoxedNumber
+public record Fruit1BoxedNumber
implements [Fruit1Boxed](#fruit1boxed) -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 | | --------------------------- | | Fruit1BoxedNumber(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 | ## Fruit1BoxedString -public static final class Fruit1BoxedString
+public record Fruit1BoxedString
implements [Fruit1Boxed](#fruit1boxed) -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 | | --------------------------- | | Fruit1BoxedString(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 | ## Fruit1BoxedList -public static final class Fruit1BoxedList
+public record Fruit1BoxedList
implements [Fruit1Boxed](#fruit1boxed) -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 | | --------------------------- | | Fruit1BoxedList(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 | ## Fruit1BoxedMap -public static final class Fruit1BoxedMap
+public record Fruit1BoxedMap
implements [Fruit1Boxed](#fruit1boxed) -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 | | --------------------------- | | Fruit1BoxedMap([FruitMap](#fruitmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FruitMap](#fruitmap) | data
validated payload | +| [FruitMap](#fruitmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Fruit1 public static class Fruit1
@@ -213,20 +219,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ColorBoxedString -public static final class ColorBoxedString
+public record ColorBoxedString
implements [ColorBoxed](#colorboxed) -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 | | --------------------------- | | ColorBoxedString(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 | ## Color public static class Color
diff --git a/samples/client/petstore/java/docs/components/schemas/FruitReq.md b/samples/client/petstore/java/docs/components/schemas/FruitReq.md index dbe847c0785..82a94a53246 100644 --- a/samples/client/petstore/java/docs/components/schemas/FruitReq.md +++ b/samples/client/petstore/java/docs/components/schemas/FruitReq.md @@ -10,16 +10,16 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [FruitReq.FruitReq1Boxed](#fruitreq1boxed)
abstract sealed validated payload class | -| static class | [FruitReq.FruitReq1BoxedVoid](#fruitreq1boxedvoid)
boxed class to store validated null payloads | -| static class | [FruitReq.FruitReq1BoxedBoolean](#fruitreq1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [FruitReq.FruitReq1BoxedNumber](#fruitreq1boxednumber)
boxed class to store validated Number payloads | -| static class | [FruitReq.FruitReq1BoxedString](#fruitreq1boxedstring)
boxed class to store validated String payloads | -| static class | [FruitReq.FruitReq1BoxedList](#fruitreq1boxedlist)
boxed class to store validated List payloads | -| static class | [FruitReq.FruitReq1BoxedMap](#fruitreq1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [FruitReq.FruitReq1Boxed](#fruitreq1boxed)
abstract sealed validated payload class | +| record | [FruitReq.FruitReq1BoxedVoid](#fruitreq1boxedvoid)
boxed class to store validated null payloads | +| record | [FruitReq.FruitReq1BoxedBoolean](#fruitreq1boxedboolean)
boxed class to store validated boolean payloads | +| record | [FruitReq.FruitReq1BoxedNumber](#fruitreq1boxednumber)
boxed class to store validated Number payloads | +| record | [FruitReq.FruitReq1BoxedString](#fruitreq1boxedstring)
boxed class to store validated String payloads | +| record | [FruitReq.FruitReq1BoxedList](#fruitreq1boxedlist)
boxed class to store validated List payloads | +| record | [FruitReq.FruitReq1BoxedMap](#fruitreq1boxedmap)
boxed class to store validated Map payloads | | static class | [FruitReq.FruitReq1](#fruitreq1)
schema class | -| static class | [FruitReq.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | -| static class | [FruitReq.Schema0BoxedVoid](#schema0boxedvoid)
boxed class to store validated null payloads | +| sealed interface | [FruitReq.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | +| record | [FruitReq.Schema0BoxedVoid](#schema0boxedvoid)
boxed class to store validated null payloads | | static class | [FruitReq.Schema0](#schema0)
schema class | ## FruitReq1Boxed @@ -35,100 +35,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## FruitReq1BoxedVoid -public static final class FruitReq1BoxedVoid
+public record FruitReq1BoxedVoid
implements [FruitReq1Boxed](#fruitreq1boxed) -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 | | --------------------------- | | FruitReq1BoxedVoid(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 | ## FruitReq1BoxedBoolean -public static final class FruitReq1BoxedBoolean
+public record FruitReq1BoxedBoolean
implements [FruitReq1Boxed](#fruitreq1boxed) -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 | | --------------------------- | | FruitReq1BoxedBoolean(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 | ## FruitReq1BoxedNumber -public static final class FruitReq1BoxedNumber
+public record FruitReq1BoxedNumber
implements [FruitReq1Boxed](#fruitreq1boxed) -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 | | --------------------------- | | FruitReq1BoxedNumber(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 | ## FruitReq1BoxedString -public static final class FruitReq1BoxedString
+public record FruitReq1BoxedString
implements [FruitReq1Boxed](#fruitreq1boxed) -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 | | --------------------------- | | FruitReq1BoxedString(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 | ## FruitReq1BoxedList -public static final class FruitReq1BoxedList
+public record FruitReq1BoxedList
implements [FruitReq1Boxed](#fruitreq1boxed) -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 | | --------------------------- | | FruitReq1BoxedList(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 | ## FruitReq1BoxedMap -public static final class FruitReq1BoxedMap
+public record FruitReq1BoxedMap
implements [FruitReq1Boxed](#fruitreq1boxed) -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 | | --------------------------- | | FruitReq1BoxedMap(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 | ## FruitReq1 public static class FruitReq1
@@ -169,20 +175,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema0BoxedVoid -public static final class Schema0BoxedVoid
+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 | ## Schema0 public static class Schema0
diff --git a/samples/client/petstore/java/docs/components/schemas/GmFruit.md b/samples/client/petstore/java/docs/components/schemas/GmFruit.md index 7867b8d2e02..2b853dae805 100644 --- a/samples/client/petstore/java/docs/components/schemas/GmFruit.md +++ b/samples/client/petstore/java/docs/components/schemas/GmFruit.md @@ -12,18 +12,18 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [GmFruit.GmFruit1Boxed](#gmfruit1boxed)
abstract sealed validated payload class | -| static class | [GmFruit.GmFruit1BoxedVoid](#gmfruit1boxedvoid)
boxed class to store validated null payloads | -| static class | [GmFruit.GmFruit1BoxedBoolean](#gmfruit1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [GmFruit.GmFruit1BoxedNumber](#gmfruit1boxednumber)
boxed class to store validated Number payloads | -| static class | [GmFruit.GmFruit1BoxedString](#gmfruit1boxedstring)
boxed class to store validated String payloads | -| static class | [GmFruit.GmFruit1BoxedList](#gmfruit1boxedlist)
boxed class to store validated List payloads | -| static class | [GmFruit.GmFruit1BoxedMap](#gmfruit1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [GmFruit.GmFruit1Boxed](#gmfruit1boxed)
abstract sealed validated payload class | +| record | [GmFruit.GmFruit1BoxedVoid](#gmfruit1boxedvoid)
boxed class to store validated null payloads | +| record | [GmFruit.GmFruit1BoxedBoolean](#gmfruit1boxedboolean)
boxed class to store validated boolean payloads | +| record | [GmFruit.GmFruit1BoxedNumber](#gmfruit1boxednumber)
boxed class to store validated Number payloads | +| record | [GmFruit.GmFruit1BoxedString](#gmfruit1boxedstring)
boxed class to store validated String payloads | +| record | [GmFruit.GmFruit1BoxedList](#gmfruit1boxedlist)
boxed class to store validated List payloads | +| record | [GmFruit.GmFruit1BoxedMap](#gmfruit1boxedmap)
boxed class to store validated Map payloads | | static class | [GmFruit.GmFruit1](#gmfruit1)
schema class | | static class | [GmFruit.GmFruitMapBuilder](#gmfruitmapbuilder)
builder for Map payloads | | static class | [GmFruit.GmFruitMap](#gmfruitmap)
output class for Map payloads | -| static class | [GmFruit.ColorBoxed](#colorboxed)
abstract sealed validated payload class | -| static class | [GmFruit.ColorBoxedString](#colorboxedstring)
boxed class to store validated String payloads | +| sealed interface | [GmFruit.ColorBoxed](#colorboxed)
abstract sealed validated payload class | +| record | [GmFruit.ColorBoxedString](#colorboxedstring)
boxed class to store validated String payloads | | static class | [GmFruit.Color](#color)
schema class | ## GmFruit1Boxed @@ -39,100 +39,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## GmFruit1BoxedVoid -public static final class GmFruit1BoxedVoid
+public record GmFruit1BoxedVoid
implements [GmFruit1Boxed](#gmfruit1boxed) -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 | | --------------------------- | | GmFruit1BoxedVoid(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 | ## GmFruit1BoxedBoolean -public static final class GmFruit1BoxedBoolean
+public record GmFruit1BoxedBoolean
implements [GmFruit1Boxed](#gmfruit1boxed) -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 | | --------------------------- | | GmFruit1BoxedBoolean(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 | ## GmFruit1BoxedNumber -public static final class GmFruit1BoxedNumber
+public record GmFruit1BoxedNumber
implements [GmFruit1Boxed](#gmfruit1boxed) -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 | | --------------------------- | | GmFruit1BoxedNumber(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 | ## GmFruit1BoxedString -public static final class GmFruit1BoxedString
+public record GmFruit1BoxedString
implements [GmFruit1Boxed](#gmfruit1boxed) -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 | | --------------------------- | | GmFruit1BoxedString(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 | ## GmFruit1BoxedList -public static final class GmFruit1BoxedList
+public record GmFruit1BoxedList
implements [GmFruit1Boxed](#gmfruit1boxed) -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 | | --------------------------- | | GmFruit1BoxedList(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 | ## GmFruit1BoxedMap -public static final class GmFruit1BoxedMap
+public record GmFruit1BoxedMap
implements [GmFruit1Boxed](#gmfruit1boxed) -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 | | --------------------------- | | GmFruit1BoxedMap([GmFruitMap](#gmfruitmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [GmFruitMap](#gmfruitmap) | data
validated payload | +| [GmFruitMap](#gmfruitmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## GmFruit1 public static class GmFruit1
@@ -213,20 +219,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ColorBoxedString -public static final class ColorBoxedString
+public record ColorBoxedString
implements [ColorBoxed](#colorboxed) -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 | | --------------------------- | | ColorBoxedString(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 | ## Color public static class Color
diff --git a/samples/client/petstore/java/docs/components/schemas/GrandparentAnimal.md b/samples/client/petstore/java/docs/components/schemas/GrandparentAnimal.md index ed33fc8aa5c..c36801b5ab5 100644 --- a/samples/client/petstore/java/docs/components/schemas/GrandparentAnimal.md +++ b/samples/client/petstore/java/docs/components/schemas/GrandparentAnimal.md @@ -12,13 +12,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [GrandparentAnimal.GrandparentAnimal1Boxed](#grandparentanimal1boxed)
abstract sealed validated payload class | -| static class | [GrandparentAnimal.GrandparentAnimal1BoxedMap](#grandparentanimal1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [GrandparentAnimal.GrandparentAnimal1Boxed](#grandparentanimal1boxed)
abstract sealed validated payload class | +| record | [GrandparentAnimal.GrandparentAnimal1BoxedMap](#grandparentanimal1boxedmap)
boxed class to store validated Map payloads | | static class | [GrandparentAnimal.GrandparentAnimal1](#grandparentanimal1)
schema class | | static class | [GrandparentAnimal.GrandparentAnimalMapBuilder](#grandparentanimalmapbuilder)
builder for Map payloads | | static class | [GrandparentAnimal.GrandparentAnimalMap](#grandparentanimalmap)
output class for Map payloads | -| static class | [GrandparentAnimal.PetTypeBoxed](#pettypeboxed)
abstract sealed validated payload class | -| static class | [GrandparentAnimal.PetTypeBoxedString](#pettypeboxedstring)
boxed class to store validated String payloads | +| sealed interface | [GrandparentAnimal.PetTypeBoxed](#pettypeboxed)
abstract sealed validated payload class | +| record | [GrandparentAnimal.PetTypeBoxedString](#pettypeboxedstring)
boxed class to store validated String payloads | | static class | [GrandparentAnimal.PetType](#pettype)
schema class | ## GrandparentAnimal1Boxed @@ -29,20 +29,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## GrandparentAnimal1BoxedMap -public static final class GrandparentAnimal1BoxedMap
+public record GrandparentAnimal1BoxedMap
implements [GrandparentAnimal1Boxed](#grandparentanimal1boxed) -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 | | --------------------------- | | GrandparentAnimal1BoxedMap([GrandparentAnimalMap](#grandparentanimalmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [GrandparentAnimalMap](#grandparentanimalmap) | data
validated payload | +| [GrandparentAnimalMap](#grandparentanimalmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## GrandparentAnimal1 public static class GrandparentAnimal1
@@ -151,20 +152,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## PetTypeBoxedString -public static final class PetTypeBoxedString
+public record PetTypeBoxedString
implements [PetTypeBoxed](#pettypeboxed) -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 | | --------------------------- | | PetTypeBoxedString(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 | ## PetType public static class PetType
diff --git a/samples/client/petstore/java/docs/components/schemas/HasOnlyReadOnly.md b/samples/client/petstore/java/docs/components/schemas/HasOnlyReadOnly.md index 122f17e18af..7f6b8ee52ff 100644 --- a/samples/client/petstore/java/docs/components/schemas/HasOnlyReadOnly.md +++ b/samples/client/petstore/java/docs/components/schemas/HasOnlyReadOnly.md @@ -12,16 +12,16 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [HasOnlyReadOnly.HasOnlyReadOnly1Boxed](#hasonlyreadonly1boxed)
abstract sealed validated payload class | -| static class | [HasOnlyReadOnly.HasOnlyReadOnly1BoxedMap](#hasonlyreadonly1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [HasOnlyReadOnly.HasOnlyReadOnly1Boxed](#hasonlyreadonly1boxed)
abstract sealed validated payload class | +| record | [HasOnlyReadOnly.HasOnlyReadOnly1BoxedMap](#hasonlyreadonly1boxedmap)
boxed class to store validated Map payloads | | static class | [HasOnlyReadOnly.HasOnlyReadOnly1](#hasonlyreadonly1)
schema class | | static class | [HasOnlyReadOnly.HasOnlyReadOnlyMapBuilder](#hasonlyreadonlymapbuilder)
builder for Map payloads | | static class | [HasOnlyReadOnly.HasOnlyReadOnlyMap](#hasonlyreadonlymap)
output class for Map payloads | -| static class | [HasOnlyReadOnly.FooBoxed](#fooboxed)
abstract sealed validated payload class | -| static class | [HasOnlyReadOnly.FooBoxedString](#fooboxedstring)
boxed class to store validated String payloads | +| sealed interface | [HasOnlyReadOnly.FooBoxed](#fooboxed)
abstract sealed validated payload class | +| record | [HasOnlyReadOnly.FooBoxedString](#fooboxedstring)
boxed class to store validated String payloads | | static class | [HasOnlyReadOnly.Foo](#foo)
schema class | -| static class | [HasOnlyReadOnly.BarBoxed](#barboxed)
abstract sealed validated payload class | -| static class | [HasOnlyReadOnly.BarBoxedString](#barboxedstring)
boxed class to store validated String payloads | +| sealed interface | [HasOnlyReadOnly.BarBoxed](#barboxed)
abstract sealed validated payload class | +| record | [HasOnlyReadOnly.BarBoxedString](#barboxedstring)
boxed class to store validated String payloads | | static class | [HasOnlyReadOnly.Bar](#bar)
schema class | ## HasOnlyReadOnly1Boxed @@ -32,20 +32,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## HasOnlyReadOnly1BoxedMap -public static final class HasOnlyReadOnly1BoxedMap
+public record HasOnlyReadOnly1BoxedMap
implements [HasOnlyReadOnly1Boxed](#hasonlyreadonly1boxed) -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 | | --------------------------- | | HasOnlyReadOnly1BoxedMap([HasOnlyReadOnlyMap](#hasonlyreadonlymap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [HasOnlyReadOnlyMap](#hasonlyreadonlymap) | data
validated payload | +| [HasOnlyReadOnlyMap](#hasonlyreadonlymap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## HasOnlyReadOnly1 public static class HasOnlyReadOnly1
@@ -142,20 +143,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## FooBoxedString -public static final class FooBoxedString
+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
@@ -176,20 +178,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## BarBoxedString -public static final class BarBoxedString
+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
diff --git a/samples/client/petstore/java/docs/components/schemas/HealthCheckResult.md b/samples/client/petstore/java/docs/components/schemas/HealthCheckResult.md index 15c1049b058..5e029b2a460 100644 --- a/samples/client/petstore/java/docs/components/schemas/HealthCheckResult.md +++ b/samples/client/petstore/java/docs/components/schemas/HealthCheckResult.md @@ -12,14 +12,14 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [HealthCheckResult.HealthCheckResult1Boxed](#healthcheckresult1boxed)
abstract sealed validated payload class | -| static class | [HealthCheckResult.HealthCheckResult1BoxedMap](#healthcheckresult1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [HealthCheckResult.HealthCheckResult1Boxed](#healthcheckresult1boxed)
abstract sealed validated payload class | +| record | [HealthCheckResult.HealthCheckResult1BoxedMap](#healthcheckresult1boxedmap)
boxed class to store validated Map payloads | | static class | [HealthCheckResult.HealthCheckResult1](#healthcheckresult1)
schema class | | static class | [HealthCheckResult.HealthCheckResultMapBuilder](#healthcheckresultmapbuilder)
builder for Map payloads | | static class | [HealthCheckResult.HealthCheckResultMap](#healthcheckresultmap)
output class for Map payloads | -| static class | [HealthCheckResult.NullableMessageBoxed](#nullablemessageboxed)
abstract sealed validated payload class | -| static class | [HealthCheckResult.NullableMessageBoxedVoid](#nullablemessageboxedvoid)
boxed class to store validated null payloads | -| static class | [HealthCheckResult.NullableMessageBoxedString](#nullablemessageboxedstring)
boxed class to store validated String payloads | +| sealed interface | [HealthCheckResult.NullableMessageBoxed](#nullablemessageboxed)
abstract sealed validated payload class | +| record | [HealthCheckResult.NullableMessageBoxedVoid](#nullablemessageboxedvoid)
boxed class to store validated null payloads | +| record | [HealthCheckResult.NullableMessageBoxedString](#nullablemessageboxedstring)
boxed class to store validated String payloads | | static class | [HealthCheckResult.NullableMessage](#nullablemessage)
schema class | ## HealthCheckResult1Boxed @@ -30,20 +30,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## HealthCheckResult1BoxedMap -public static final class HealthCheckResult1BoxedMap
+public record HealthCheckResult1BoxedMap
implements [HealthCheckResult1Boxed](#healthcheckresult1boxed) -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 | | --------------------------- | | HealthCheckResult1BoxedMap([HealthCheckResultMap](#healthcheckresultmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [HealthCheckResultMap](#healthcheckresultmap) | data
validated payload | +| [HealthCheckResultMap](#healthcheckresultmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## HealthCheckResult1 public static class HealthCheckResult1
@@ -141,36 +142,38 @@ permits
sealed interface that stores validated payloads using boxed classes ## NullableMessageBoxedVoid -public static final class NullableMessageBoxedVoid
+public record NullableMessageBoxedVoid
implements [NullableMessageBoxed](#nullablemessageboxed) -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 | | --------------------------- | | NullableMessageBoxedVoid(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 | ## NullableMessageBoxedString -public static final class NullableMessageBoxedString
+public record NullableMessageBoxedString
implements [NullableMessageBoxed](#nullablemessageboxed) -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 | | --------------------------- | | NullableMessageBoxedString(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 | ## NullableMessage public static class NullableMessage
diff --git a/samples/client/petstore/java/docs/components/schemas/IntegerEnum.md b/samples/client/petstore/java/docs/components/schemas/IntegerEnum.md index c7c2a302932..9c99365c76f 100644 --- a/samples/client/petstore/java/docs/components/schemas/IntegerEnum.md +++ b/samples/client/petstore/java/docs/components/schemas/IntegerEnum.md @@ -11,8 +11,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [IntegerEnum.IntegerEnum1Boxed](#integerenum1boxed)
abstract sealed validated payload class | -| static class | [IntegerEnum.IntegerEnum1BoxedNumber](#integerenum1boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [IntegerEnum.IntegerEnum1Boxed](#integerenum1boxed)
abstract sealed validated payload class | +| record | [IntegerEnum.IntegerEnum1BoxedNumber](#integerenum1boxednumber)
boxed class to store validated Number payloads | | static class | [IntegerEnum.IntegerEnum1](#integerenum1)
schema class | | enum | [IntegerEnum.IntegerIntegerEnumEnums](#integerintegerenumenums)
Integer enum | | enum | [IntegerEnum.LongIntegerEnumEnums](#longintegerenumenums)
Long enum | @@ -27,20 +27,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## IntegerEnum1BoxedNumber -public static final class IntegerEnum1BoxedNumber
+public record IntegerEnum1BoxedNumber
implements [IntegerEnum1Boxed](#integerenum1boxed) -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 | | --------------------------- | | IntegerEnum1BoxedNumber(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 | ## IntegerEnum1 public static class IntegerEnum1
diff --git a/samples/client/petstore/java/docs/components/schemas/IntegerEnumBig.md b/samples/client/petstore/java/docs/components/schemas/IntegerEnumBig.md index 725b5c451a4..82f21dd1cd4 100644 --- a/samples/client/petstore/java/docs/components/schemas/IntegerEnumBig.md +++ b/samples/client/petstore/java/docs/components/schemas/IntegerEnumBig.md @@ -11,8 +11,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [IntegerEnumBig.IntegerEnumBig1Boxed](#integerenumbig1boxed)
abstract sealed validated payload class | -| static class | [IntegerEnumBig.IntegerEnumBig1BoxedNumber](#integerenumbig1boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [IntegerEnumBig.IntegerEnumBig1Boxed](#integerenumbig1boxed)
abstract sealed validated payload class | +| record | [IntegerEnumBig.IntegerEnumBig1BoxedNumber](#integerenumbig1boxednumber)
boxed class to store validated Number payloads | | static class | [IntegerEnumBig.IntegerEnumBig1](#integerenumbig1)
schema class | | enum | [IntegerEnumBig.IntegerIntegerEnumBigEnums](#integerintegerenumbigenums)
Integer enum | | enum | [IntegerEnumBig.LongIntegerEnumBigEnums](#longintegerenumbigenums)
Long enum | @@ -27,20 +27,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## IntegerEnumBig1BoxedNumber -public static final class IntegerEnumBig1BoxedNumber
+public record IntegerEnumBig1BoxedNumber
implements [IntegerEnumBig1Boxed](#integerenumbig1boxed) -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 | | --------------------------- | | IntegerEnumBig1BoxedNumber(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 | ## IntegerEnumBig1 public static class IntegerEnumBig1
diff --git a/samples/client/petstore/java/docs/components/schemas/IntegerEnumOneValue.md b/samples/client/petstore/java/docs/components/schemas/IntegerEnumOneValue.md index 4057ac2cbab..cc5f032421d 100644 --- a/samples/client/petstore/java/docs/components/schemas/IntegerEnumOneValue.md +++ b/samples/client/petstore/java/docs/components/schemas/IntegerEnumOneValue.md @@ -11,8 +11,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [IntegerEnumOneValue.IntegerEnumOneValue1Boxed](#integerenumonevalue1boxed)
abstract sealed validated payload class | -| static class | [IntegerEnumOneValue.IntegerEnumOneValue1BoxedNumber](#integerenumonevalue1boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [IntegerEnumOneValue.IntegerEnumOneValue1Boxed](#integerenumonevalue1boxed)
abstract sealed validated payload class | +| record | [IntegerEnumOneValue.IntegerEnumOneValue1BoxedNumber](#integerenumonevalue1boxednumber)
boxed class to store validated Number payloads | | static class | [IntegerEnumOneValue.IntegerEnumOneValue1](#integerenumonevalue1)
schema class | | enum | [IntegerEnumOneValue.IntegerIntegerEnumOneValueEnums](#integerintegerenumonevalueenums)
Integer enum | | enum | [IntegerEnumOneValue.LongIntegerEnumOneValueEnums](#longintegerenumonevalueenums)
Long enum | @@ -27,20 +27,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## IntegerEnumOneValue1BoxedNumber -public static final class IntegerEnumOneValue1BoxedNumber
+public record IntegerEnumOneValue1BoxedNumber
implements [IntegerEnumOneValue1Boxed](#integerenumonevalue1boxed) -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 | | --------------------------- | | IntegerEnumOneValue1BoxedNumber(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 | ## IntegerEnumOneValue1 public static class IntegerEnumOneValue1
diff --git a/samples/client/petstore/java/docs/components/schemas/IntegerEnumWithDefaultValue.md b/samples/client/petstore/java/docs/components/schemas/IntegerEnumWithDefaultValue.md index 0c9b4740a9f..e69bcea0ed4 100644 --- a/samples/client/petstore/java/docs/components/schemas/IntegerEnumWithDefaultValue.md +++ b/samples/client/petstore/java/docs/components/schemas/IntegerEnumWithDefaultValue.md @@ -11,8 +11,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [IntegerEnumWithDefaultValue.IntegerEnumWithDefaultValue1Boxed](#integerenumwithdefaultvalue1boxed)
abstract sealed validated payload class | -| static class | [IntegerEnumWithDefaultValue.IntegerEnumWithDefaultValue1BoxedNumber](#integerenumwithdefaultvalue1boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [IntegerEnumWithDefaultValue.IntegerEnumWithDefaultValue1Boxed](#integerenumwithdefaultvalue1boxed)
abstract sealed validated payload class | +| record | [IntegerEnumWithDefaultValue.IntegerEnumWithDefaultValue1BoxedNumber](#integerenumwithdefaultvalue1boxednumber)
boxed class to store validated Number payloads | | static class | [IntegerEnumWithDefaultValue.IntegerEnumWithDefaultValue1](#integerenumwithdefaultvalue1)
schema class | | enum | [IntegerEnumWithDefaultValue.IntegerIntegerEnumWithDefaultValueEnums](#integerintegerenumwithdefaultvalueenums)
Integer enum | | enum | [IntegerEnumWithDefaultValue.LongIntegerEnumWithDefaultValueEnums](#longintegerenumwithdefaultvalueenums)
Long enum | @@ -27,20 +27,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## IntegerEnumWithDefaultValue1BoxedNumber -public static final class IntegerEnumWithDefaultValue1BoxedNumber
+public record IntegerEnumWithDefaultValue1BoxedNumber
implements [IntegerEnumWithDefaultValue1Boxed](#integerenumwithdefaultvalue1boxed) -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 | | --------------------------- | | IntegerEnumWithDefaultValue1BoxedNumber(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 | ## IntegerEnumWithDefaultValue1 public static class IntegerEnumWithDefaultValue1
diff --git a/samples/client/petstore/java/docs/components/schemas/IntegerMax10.md b/samples/client/petstore/java/docs/components/schemas/IntegerMax10.md index 4d014aeb728..b1ac7788c9f 100644 --- a/samples/client/petstore/java/docs/components/schemas/IntegerMax10.md +++ b/samples/client/petstore/java/docs/components/schemas/IntegerMax10.md @@ -10,8 +10,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [IntegerMax10.IntegerMax101Boxed](#integermax101boxed)
abstract sealed validated payload class | -| static class | [IntegerMax10.IntegerMax101BoxedNumber](#integermax101boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [IntegerMax10.IntegerMax101Boxed](#integermax101boxed)
abstract sealed validated payload class | +| record | [IntegerMax10.IntegerMax101BoxedNumber](#integermax101boxednumber)
boxed class to store validated Number payloads | | static class | [IntegerMax10.IntegerMax101](#integermax101)
schema class | ## IntegerMax101Boxed @@ -22,20 +22,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## IntegerMax101BoxedNumber -public static final class IntegerMax101BoxedNumber
+public record IntegerMax101BoxedNumber
implements [IntegerMax101Boxed](#integermax101boxed) -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 | | --------------------------- | | IntegerMax101BoxedNumber(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 | ## IntegerMax101 public static class IntegerMax101
diff --git a/samples/client/petstore/java/docs/components/schemas/IntegerMin15.md b/samples/client/petstore/java/docs/components/schemas/IntegerMin15.md index dd07adcbfc6..63fdadd9bd2 100644 --- a/samples/client/petstore/java/docs/components/schemas/IntegerMin15.md +++ b/samples/client/petstore/java/docs/components/schemas/IntegerMin15.md @@ -10,8 +10,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [IntegerMin15.IntegerMin151Boxed](#integermin151boxed)
abstract sealed validated payload class | -| static class | [IntegerMin15.IntegerMin151BoxedNumber](#integermin151boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [IntegerMin15.IntegerMin151Boxed](#integermin151boxed)
abstract sealed validated payload class | +| record | [IntegerMin15.IntegerMin151BoxedNumber](#integermin151boxednumber)
boxed class to store validated Number payloads | | static class | [IntegerMin15.IntegerMin151](#integermin151)
schema class | ## IntegerMin151Boxed @@ -22,20 +22,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## IntegerMin151BoxedNumber -public static final class IntegerMin151BoxedNumber
+public record IntegerMin151BoxedNumber
implements [IntegerMin151Boxed](#integermin151boxed) -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 | | --------------------------- | | IntegerMin151BoxedNumber(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 | ## IntegerMin151 public static class IntegerMin151
diff --git a/samples/client/petstore/java/docs/components/schemas/IsoscelesTriangle.md b/samples/client/petstore/java/docs/components/schemas/IsoscelesTriangle.md index 4ff32643694..708873fe79d 100644 --- a/samples/client/petstore/java/docs/components/schemas/IsoscelesTriangle.md +++ b/samples/client/petstore/java/docs/components/schemas/IsoscelesTriangle.md @@ -13,21 +13,21 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [IsoscelesTriangle.IsoscelesTriangle1Boxed](#isoscelestriangle1boxed)
abstract sealed validated payload class | -| static class | [IsoscelesTriangle.IsoscelesTriangle1BoxedVoid](#isoscelestriangle1boxedvoid)
boxed class to store validated null payloads | -| static class | [IsoscelesTriangle.IsoscelesTriangle1BoxedBoolean](#isoscelestriangle1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [IsoscelesTriangle.IsoscelesTriangle1BoxedNumber](#isoscelestriangle1boxednumber)
boxed class to store validated Number payloads | -| static class | [IsoscelesTriangle.IsoscelesTriangle1BoxedString](#isoscelestriangle1boxedstring)
boxed class to store validated String payloads | -| static class | [IsoscelesTriangle.IsoscelesTriangle1BoxedList](#isoscelestriangle1boxedlist)
boxed class to store validated List payloads | -| static class | [IsoscelesTriangle.IsoscelesTriangle1BoxedMap](#isoscelestriangle1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [IsoscelesTriangle.IsoscelesTriangle1Boxed](#isoscelestriangle1boxed)
abstract sealed validated payload class | +| record | [IsoscelesTriangle.IsoscelesTriangle1BoxedVoid](#isoscelestriangle1boxedvoid)
boxed class to store validated null payloads | +| record | [IsoscelesTriangle.IsoscelesTriangle1BoxedBoolean](#isoscelestriangle1boxedboolean)
boxed class to store validated boolean payloads | +| record | [IsoscelesTriangle.IsoscelesTriangle1BoxedNumber](#isoscelestriangle1boxednumber)
boxed class to store validated Number payloads | +| record | [IsoscelesTriangle.IsoscelesTriangle1BoxedString](#isoscelestriangle1boxedstring)
boxed class to store validated String payloads | +| record | [IsoscelesTriangle.IsoscelesTriangle1BoxedList](#isoscelestriangle1boxedlist)
boxed class to store validated List payloads | +| record | [IsoscelesTriangle.IsoscelesTriangle1BoxedMap](#isoscelestriangle1boxedmap)
boxed class to store validated Map payloads | | static class | [IsoscelesTriangle.IsoscelesTriangle1](#isoscelestriangle1)
schema class | -| static class | [IsoscelesTriangle.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | -| static class | [IsoscelesTriangle.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [IsoscelesTriangle.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | +| record | [IsoscelesTriangle.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | | static class | [IsoscelesTriangle.Schema1](#schema1)
schema class | | static class | [IsoscelesTriangle.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [IsoscelesTriangle.Schema1Map](#schema1map)
output class for Map payloads | -| static class | [IsoscelesTriangle.TriangleTypeBoxed](#triangletypeboxed)
abstract sealed validated payload class | -| static class | [IsoscelesTriangle.TriangleTypeBoxedString](#triangletypeboxedstring)
boxed class to store validated String payloads | +| sealed interface | [IsoscelesTriangle.TriangleTypeBoxed](#triangletypeboxed)
abstract sealed validated payload class | +| record | [IsoscelesTriangle.TriangleTypeBoxedString](#triangletypeboxedstring)
boxed class to store validated String payloads | | static class | [IsoscelesTriangle.TriangleType](#triangletype)
schema class | | enum | [IsoscelesTriangle.StringTriangleTypeEnums](#stringtriangletypeenums)
String enum | @@ -44,100 +44,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## IsoscelesTriangle1BoxedVoid -public static final class IsoscelesTriangle1BoxedVoid
+public record IsoscelesTriangle1BoxedVoid
implements [IsoscelesTriangle1Boxed](#isoscelestriangle1boxed) -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 | | --------------------------- | | IsoscelesTriangle1BoxedVoid(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 | ## IsoscelesTriangle1BoxedBoolean -public static final class IsoscelesTriangle1BoxedBoolean
+public record IsoscelesTriangle1BoxedBoolean
implements [IsoscelesTriangle1Boxed](#isoscelestriangle1boxed) -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 | | --------------------------- | | IsoscelesTriangle1BoxedBoolean(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 | ## IsoscelesTriangle1BoxedNumber -public static final class IsoscelesTriangle1BoxedNumber
+public record IsoscelesTriangle1BoxedNumber
implements [IsoscelesTriangle1Boxed](#isoscelestriangle1boxed) -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 | | --------------------------- | | IsoscelesTriangle1BoxedNumber(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 | ## IsoscelesTriangle1BoxedString -public static final class IsoscelesTriangle1BoxedString
+public record IsoscelesTriangle1BoxedString
implements [IsoscelesTriangle1Boxed](#isoscelestriangle1boxed) -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 | | --------------------------- | | IsoscelesTriangle1BoxedString(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 | ## IsoscelesTriangle1BoxedList -public static final class IsoscelesTriangle1BoxedList
+public record IsoscelesTriangle1BoxedList
implements [IsoscelesTriangle1Boxed](#isoscelestriangle1boxed) -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 | | --------------------------- | | IsoscelesTriangle1BoxedList(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 | ## IsoscelesTriangle1BoxedMap -public static final class IsoscelesTriangle1BoxedMap
+public record IsoscelesTriangle1BoxedMap
implements [IsoscelesTriangle1Boxed](#isoscelestriangle1boxed) -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 | | --------------------------- | | IsoscelesTriangle1BoxedMap(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 | ## IsoscelesTriangle1 public static class IsoscelesTriangle1
@@ -178,20 +184,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema1BoxedMap -public static final class Schema1BoxedMap
+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
@@ -285,20 +292,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## TriangleTypeBoxedString -public static final class TriangleTypeBoxedString
+public record TriangleTypeBoxedString
implements [TriangleTypeBoxed](#triangletypeboxed) -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 | | --------------------------- | | TriangleTypeBoxedString(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 | ## TriangleType public static class TriangleType
diff --git a/samples/client/petstore/java/docs/components/schemas/Items.md b/samples/client/petstore/java/docs/components/schemas/Items.md index 1f1e5f64f07..41a7b2ef3ac 100644 --- a/samples/client/petstore/java/docs/components/schemas/Items.md +++ b/samples/client/petstore/java/docs/components/schemas/Items.md @@ -12,13 +12,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Items.Items1Boxed](#items1boxed)
abstract sealed validated payload class | -| static class | [Items.Items1BoxedList](#items1boxedlist)
boxed class to store validated List payloads | +| sealed interface | [Items.Items1Boxed](#items1boxed)
abstract sealed validated payload class | +| record | [Items.Items1BoxedList](#items1boxedlist)
boxed class to store validated List payloads | | static class | [Items.Items1](#items1)
schema class | | static class | [Items.ItemsListBuilder](#itemslistbuilder)
builder for List payloads | | static class | [Items.ItemsList](#itemslist)
output class for List payloads | -| static class | [Items.Items2Boxed](#items2boxed)
abstract sealed validated payload class | -| static class | [Items.Items2BoxedMap](#items2boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Items.Items2Boxed](#items2boxed)
abstract sealed validated payload class | +| record | [Items.Items2BoxedMap](#items2boxedmap)
boxed class to store validated Map payloads | | static class | [Items.Items2](#items2)
schema class | ## Items1Boxed @@ -29,20 +29,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Items1BoxedList -public static final class Items1BoxedList
+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([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 | ## Items1 public static class Items1
@@ -126,20 +127,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Items2BoxedMap -public static final class Items2BoxedMap
+public record Items2BoxedMap
implements [Items2Boxed](#items2boxed) -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 | | --------------------------- | | Items2BoxedMap(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 | ## Items2 public static class Items2
diff --git a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequest.md b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequest.md index 3cb0fa6978d..cd38710a06d 100644 --- a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequest.md +++ b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequest.md @@ -12,18 +12,18 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [JSONPatchRequest.JSONPatchRequest1Boxed](#jsonpatchrequest1boxed)
abstract sealed validated payload class | -| static class | [JSONPatchRequest.JSONPatchRequest1BoxedList](#jsonpatchrequest1boxedlist)
boxed class to store validated List payloads | +| sealed interface | [JSONPatchRequest.JSONPatchRequest1Boxed](#jsonpatchrequest1boxed)
abstract sealed validated payload class | +| record | [JSONPatchRequest.JSONPatchRequest1BoxedList](#jsonpatchrequest1boxedlist)
boxed class to store validated List payloads | | static class | [JSONPatchRequest.JSONPatchRequest1](#jsonpatchrequest1)
schema class | | static class | [JSONPatchRequest.JSONPatchRequestListBuilder](#jsonpatchrequestlistbuilder)
builder for List payloads | | static class | [JSONPatchRequest.JSONPatchRequestList](#jsonpatchrequestlist)
output class for List payloads | -| static class | [JSONPatchRequest.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | -| static class | [JSONPatchRequest.ItemsBoxedVoid](#itemsboxedvoid)
boxed class to store validated null payloads | -| static class | [JSONPatchRequest.ItemsBoxedBoolean](#itemsboxedboolean)
boxed class to store validated boolean payloads | -| static class | [JSONPatchRequest.ItemsBoxedNumber](#itemsboxednumber)
boxed class to store validated Number payloads | -| static class | [JSONPatchRequest.ItemsBoxedString](#itemsboxedstring)
boxed class to store validated String payloads | -| static class | [JSONPatchRequest.ItemsBoxedList](#itemsboxedlist)
boxed class to store validated List payloads | -| static class | [JSONPatchRequest.ItemsBoxedMap](#itemsboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [JSONPatchRequest.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | +| record | [JSONPatchRequest.ItemsBoxedVoid](#itemsboxedvoid)
boxed class to store validated null payloads | +| record | [JSONPatchRequest.ItemsBoxedBoolean](#itemsboxedboolean)
boxed class to store validated boolean payloads | +| record | [JSONPatchRequest.ItemsBoxedNumber](#itemsboxednumber)
boxed class to store validated Number payloads | +| record | [JSONPatchRequest.ItemsBoxedString](#itemsboxedstring)
boxed class to store validated String payloads | +| record | [JSONPatchRequest.ItemsBoxedList](#itemsboxedlist)
boxed class to store validated List payloads | +| record | [JSONPatchRequest.ItemsBoxedMap](#itemsboxedmap)
boxed class to store validated Map payloads | | static class | [JSONPatchRequest.Items](#items)
schema class | ## JSONPatchRequest1Boxed @@ -34,20 +34,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## JSONPatchRequest1BoxedList -public static final class JSONPatchRequest1BoxedList
+public record JSONPatchRequest1BoxedList
implements [JSONPatchRequest1Boxed](#jsonpatchrequest1boxed) -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 | | --------------------------- | | JSONPatchRequest1BoxedList([JSONPatchRequestList](#jsonpatchrequestlist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [JSONPatchRequestList](#jsonpatchrequestlist) | data
validated payload | +| [JSONPatchRequestList](#jsonpatchrequestlist) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## JSONPatchRequest1 public static class JSONPatchRequest1
@@ -141,100 +142,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## ItemsBoxedVoid -public static final class ItemsBoxedVoid
+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
+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
+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
+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
+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
+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/petstore/java/docs/components/schemas/JSONPatchRequestAddReplaceTest.md b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestAddReplaceTest.md index 5a0498543a6..fbe6f85cfcf 100644 --- a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestAddReplaceTest.md +++ b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestAddReplaceTest.md @@ -13,33 +13,33 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [JSONPatchRequestAddReplaceTest.JSONPatchRequestAddReplaceTest1Boxed](#jsonpatchrequestaddreplacetest1boxed)
abstract sealed validated payload class | -| static class | [JSONPatchRequestAddReplaceTest.JSONPatchRequestAddReplaceTest1BoxedMap](#jsonpatchrequestaddreplacetest1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [JSONPatchRequestAddReplaceTest.JSONPatchRequestAddReplaceTest1Boxed](#jsonpatchrequestaddreplacetest1boxed)
abstract sealed validated payload class | +| record | [JSONPatchRequestAddReplaceTest.JSONPatchRequestAddReplaceTest1BoxedMap](#jsonpatchrequestaddreplacetest1boxedmap)
boxed class to store validated Map payloads | | static class | [JSONPatchRequestAddReplaceTest.JSONPatchRequestAddReplaceTest1](#jsonpatchrequestaddreplacetest1)
schema class | | static class | [JSONPatchRequestAddReplaceTest.JSONPatchRequestAddReplaceTestMapBuilder](#jsonpatchrequestaddreplacetestmapbuilder)
builder for Map payloads | | static class | [JSONPatchRequestAddReplaceTest.JSONPatchRequestAddReplaceTestMap](#jsonpatchrequestaddreplacetestmap)
output class for Map payloads | -| static class | [JSONPatchRequestAddReplaceTest.OpBoxed](#opboxed)
abstract sealed validated payload class | -| static class | [JSONPatchRequestAddReplaceTest.OpBoxedString](#opboxedstring)
boxed class to store validated String payloads | +| sealed interface | [JSONPatchRequestAddReplaceTest.OpBoxed](#opboxed)
abstract sealed validated payload class | +| record | [JSONPatchRequestAddReplaceTest.OpBoxedString](#opboxedstring)
boxed class to store validated String payloads | | static class | [JSONPatchRequestAddReplaceTest.Op](#op)
schema class | | enum | [JSONPatchRequestAddReplaceTest.StringOpEnums](#stringopenums)
String enum | -| static class | [JSONPatchRequestAddReplaceTest.ValueBoxed](#valueboxed)
abstract sealed validated payload class | -| static class | [JSONPatchRequestAddReplaceTest.ValueBoxedVoid](#valueboxedvoid)
boxed class to store validated null payloads | -| static class | [JSONPatchRequestAddReplaceTest.ValueBoxedBoolean](#valueboxedboolean)
boxed class to store validated boolean payloads | -| static class | [JSONPatchRequestAddReplaceTest.ValueBoxedNumber](#valueboxednumber)
boxed class to store validated Number payloads | -| static class | [JSONPatchRequestAddReplaceTest.ValueBoxedString](#valueboxedstring)
boxed class to store validated String payloads | -| static class | [JSONPatchRequestAddReplaceTest.ValueBoxedList](#valueboxedlist)
boxed class to store validated List payloads | -| static class | [JSONPatchRequestAddReplaceTest.ValueBoxedMap](#valueboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [JSONPatchRequestAddReplaceTest.ValueBoxed](#valueboxed)
abstract sealed validated payload class | +| record | [JSONPatchRequestAddReplaceTest.ValueBoxedVoid](#valueboxedvoid)
boxed class to store validated null payloads | +| record | [JSONPatchRequestAddReplaceTest.ValueBoxedBoolean](#valueboxedboolean)
boxed class to store validated boolean payloads | +| record | [JSONPatchRequestAddReplaceTest.ValueBoxedNumber](#valueboxednumber)
boxed class to store validated Number payloads | +| record | [JSONPatchRequestAddReplaceTest.ValueBoxedString](#valueboxedstring)
boxed class to store validated String payloads | +| record | [JSONPatchRequestAddReplaceTest.ValueBoxedList](#valueboxedlist)
boxed class to store validated List payloads | +| record | [JSONPatchRequestAddReplaceTest.ValueBoxedMap](#valueboxedmap)
boxed class to store validated Map payloads | | static class | [JSONPatchRequestAddReplaceTest.Value](#value)
schema class | -| static class | [JSONPatchRequestAddReplaceTest.PathBoxed](#pathboxed)
abstract sealed validated payload class | -| static class | [JSONPatchRequestAddReplaceTest.PathBoxedString](#pathboxedstring)
boxed class to store validated String payloads | +| sealed interface | [JSONPatchRequestAddReplaceTest.PathBoxed](#pathboxed)
abstract sealed validated payload class | +| record | [JSONPatchRequestAddReplaceTest.PathBoxedString](#pathboxedstring)
boxed class to store validated String payloads | | static class | [JSONPatchRequestAddReplaceTest.Path](#path)
schema class | -| static class | [JSONPatchRequestAddReplaceTest.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | -| static class | [JSONPatchRequestAddReplaceTest.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| static class | [JSONPatchRequestAddReplaceTest.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| static class | [JSONPatchRequestAddReplaceTest.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| static class | [JSONPatchRequestAddReplaceTest.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| static class | [JSONPatchRequestAddReplaceTest.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| static class | [JSONPatchRequestAddReplaceTest.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [JSONPatchRequestAddReplaceTest.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| record | [JSONPatchRequestAddReplaceTest.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [JSONPatchRequestAddReplaceTest.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [JSONPatchRequestAddReplaceTest.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [JSONPatchRequestAddReplaceTest.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [JSONPatchRequestAddReplaceTest.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [JSONPatchRequestAddReplaceTest.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | | static class | [JSONPatchRequestAddReplaceTest.AdditionalProperties](#additionalproperties)
schema class | ## JSONPatchRequestAddReplaceTest1Boxed @@ -50,20 +50,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## JSONPatchRequestAddReplaceTest1BoxedMap -public static final class JSONPatchRequestAddReplaceTest1BoxedMap
+public record JSONPatchRequestAddReplaceTest1BoxedMap
implements [JSONPatchRequestAddReplaceTest1Boxed](#jsonpatchrequestaddreplacetest1boxed) -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 | | --------------------------- | | JSONPatchRequestAddReplaceTest1BoxedMap([JSONPatchRequestAddReplaceTestMap](#jsonpatchrequestaddreplacetestmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [JSONPatchRequestAddReplaceTestMap](#jsonpatchrequestaddreplacetestmap) | data
validated payload | +| [JSONPatchRequestAddReplaceTestMap](#jsonpatchrequestaddreplacetestmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## JSONPatchRequestAddReplaceTest1 public static class JSONPatchRequestAddReplaceTest1
@@ -304,20 +305,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## OpBoxedString -public static final class OpBoxedString
+public record OpBoxedString
implements [OpBoxed](#opboxed) -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 | | --------------------------- | | OpBoxedString(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 | ## Op public static class Op
@@ -389,100 +391,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## ValueBoxedVoid -public static final class ValueBoxedVoid
+public record ValueBoxedVoid
implements [ValueBoxed](#valueboxed) -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 | | --------------------------- | | ValueBoxedVoid(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 | ## ValueBoxedBoolean -public static final class ValueBoxedBoolean
+public record ValueBoxedBoolean
implements [ValueBoxed](#valueboxed) -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 | | --------------------------- | | ValueBoxedBoolean(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 | ## ValueBoxedNumber -public static final class ValueBoxedNumber
+public record ValueBoxedNumber
implements [ValueBoxed](#valueboxed) -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 | | --------------------------- | | ValueBoxedNumber(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 | ## ValueBoxedString -public static final class ValueBoxedString
+public record ValueBoxedString
implements [ValueBoxed](#valueboxed) -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 | | --------------------------- | | ValueBoxedString(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 | ## ValueBoxedList -public static final class ValueBoxedList
+public record ValueBoxedList
implements [ValueBoxed](#valueboxed) -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 | | --------------------------- | | ValueBoxedList(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 | ## ValueBoxedMap -public static final class ValueBoxedMap
+public record ValueBoxedMap
implements [ValueBoxed](#valueboxed) -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 | | --------------------------- | | ValueBoxedMap(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 | ## Value public static class Value
@@ -506,20 +514,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## PathBoxedString -public static final class PathBoxedString
+public record PathBoxedString
implements [PathBoxed](#pathboxed) -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 | | --------------------------- | | PathBoxedString(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 | ## Path public static class Path
@@ -548,100 +557,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedVoid -public static final class AdditionalPropertiesBoxedVoid
+public record AdditionalPropertiesBoxedVoid
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedVoid(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 | ## AdditionalPropertiesBoxedBoolean -public static final class AdditionalPropertiesBoxedBoolean
+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 | ## AdditionalPropertiesBoxedNumber -public static final class AdditionalPropertiesBoxedNumber
+public record AdditionalPropertiesBoxedNumber
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedNumber(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 | ## AdditionalPropertiesBoxedString -public static final class AdditionalPropertiesBoxedString
+public record AdditionalPropertiesBoxedString
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedString(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 | ## AdditionalPropertiesBoxedList -public static final class AdditionalPropertiesBoxedList
+public record AdditionalPropertiesBoxedList
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedList(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 | ## AdditionalPropertiesBoxedMap -public static final class AdditionalPropertiesBoxedMap
+public record AdditionalPropertiesBoxedMap
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedMap(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 | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestMoveCopy.md b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestMoveCopy.md index 0ce2ae940f5..b44e5ed7159 100644 --- a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestMoveCopy.md +++ b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestMoveCopy.md @@ -13,28 +13,28 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [JSONPatchRequestMoveCopy.JSONPatchRequestMoveCopy1Boxed](#jsonpatchrequestmovecopy1boxed)
abstract sealed validated payload class | -| static class | [JSONPatchRequestMoveCopy.JSONPatchRequestMoveCopy1BoxedMap](#jsonpatchrequestmovecopy1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [JSONPatchRequestMoveCopy.JSONPatchRequestMoveCopy1Boxed](#jsonpatchrequestmovecopy1boxed)
abstract sealed validated payload class | +| record | [JSONPatchRequestMoveCopy.JSONPatchRequestMoveCopy1BoxedMap](#jsonpatchrequestmovecopy1boxedmap)
boxed class to store validated Map payloads | | static class | [JSONPatchRequestMoveCopy.JSONPatchRequestMoveCopy1](#jsonpatchrequestmovecopy1)
schema class | | static class | [JSONPatchRequestMoveCopy.JSONPatchRequestMoveCopyMapBuilder](#jsonpatchrequestmovecopymapbuilder)
builder for Map payloads | | static class | [JSONPatchRequestMoveCopy.JSONPatchRequestMoveCopyMap](#jsonpatchrequestmovecopymap)
output class for Map payloads | -| static class | [JSONPatchRequestMoveCopy.OpBoxed](#opboxed)
abstract sealed validated payload class | -| static class | [JSONPatchRequestMoveCopy.OpBoxedString](#opboxedstring)
boxed class to store validated String payloads | +| sealed interface | [JSONPatchRequestMoveCopy.OpBoxed](#opboxed)
abstract sealed validated payload class | +| record | [JSONPatchRequestMoveCopy.OpBoxedString](#opboxedstring)
boxed class to store validated String payloads | | static class | [JSONPatchRequestMoveCopy.Op](#op)
schema class | | enum | [JSONPatchRequestMoveCopy.StringOpEnums](#stringopenums)
String enum | -| static class | [JSONPatchRequestMoveCopy.PathBoxed](#pathboxed)
abstract sealed validated payload class | -| static class | [JSONPatchRequestMoveCopy.PathBoxedString](#pathboxedstring)
boxed class to store validated String payloads | +| sealed interface | [JSONPatchRequestMoveCopy.PathBoxed](#pathboxed)
abstract sealed validated payload class | +| record | [JSONPatchRequestMoveCopy.PathBoxedString](#pathboxedstring)
boxed class to store validated String payloads | | static class | [JSONPatchRequestMoveCopy.Path](#path)
schema class | -| static class | [JSONPatchRequestMoveCopy.FromBoxed](#fromboxed)
abstract sealed validated payload class | -| static class | [JSONPatchRequestMoveCopy.FromBoxedString](#fromboxedstring)
boxed class to store validated String payloads | +| sealed interface | [JSONPatchRequestMoveCopy.FromBoxed](#fromboxed)
abstract sealed validated payload class | +| record | [JSONPatchRequestMoveCopy.FromBoxedString](#fromboxedstring)
boxed class to store validated String payloads | | static class | [JSONPatchRequestMoveCopy.From](#from)
schema class | -| static class | [JSONPatchRequestMoveCopy.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | -| static class | [JSONPatchRequestMoveCopy.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| static class | [JSONPatchRequestMoveCopy.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| static class | [JSONPatchRequestMoveCopy.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| static class | [JSONPatchRequestMoveCopy.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| static class | [JSONPatchRequestMoveCopy.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| static class | [JSONPatchRequestMoveCopy.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [JSONPatchRequestMoveCopy.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| record | [JSONPatchRequestMoveCopy.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [JSONPatchRequestMoveCopy.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [JSONPatchRequestMoveCopy.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [JSONPatchRequestMoveCopy.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [JSONPatchRequestMoveCopy.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [JSONPatchRequestMoveCopy.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | | static class | [JSONPatchRequestMoveCopy.AdditionalProperties](#additionalproperties)
schema class | ## JSONPatchRequestMoveCopy1Boxed @@ -45,20 +45,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## JSONPatchRequestMoveCopy1BoxedMap -public static final class JSONPatchRequestMoveCopy1BoxedMap
+public record JSONPatchRequestMoveCopy1BoxedMap
implements [JSONPatchRequestMoveCopy1Boxed](#jsonpatchrequestmovecopy1boxed) -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 | | --------------------------- | | JSONPatchRequestMoveCopy1BoxedMap([JSONPatchRequestMoveCopyMap](#jsonpatchrequestmovecopymap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [JSONPatchRequestMoveCopyMap](#jsonpatchrequestmovecopymap) | data
validated payload | +| [JSONPatchRequestMoveCopyMap](#jsonpatchrequestmovecopymap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## JSONPatchRequestMoveCopy1 public static class JSONPatchRequestMoveCopy1
@@ -269,20 +270,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## OpBoxedString -public static final class OpBoxedString
+public record OpBoxedString
implements [OpBoxed](#opboxed) -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 | | --------------------------- | | OpBoxedString(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 | ## Op public static class Op
@@ -348,20 +350,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## PathBoxedString -public static final class PathBoxedString
+public record PathBoxedString
implements [PathBoxed](#pathboxed) -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 | | --------------------------- | | PathBoxedString(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 | ## Path public static class Path
@@ -385,20 +388,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## FromBoxedString -public static final class FromBoxedString
+public record FromBoxedString
implements [FromBoxed](#fromboxed) -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 | | --------------------------- | | FromBoxedString(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 | ## From public static class From
@@ -427,100 +431,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedVoid -public static final class AdditionalPropertiesBoxedVoid
+public record AdditionalPropertiesBoxedVoid
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedVoid(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 | ## AdditionalPropertiesBoxedBoolean -public static final class AdditionalPropertiesBoxedBoolean
+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 | ## AdditionalPropertiesBoxedNumber -public static final class AdditionalPropertiesBoxedNumber
+public record AdditionalPropertiesBoxedNumber
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedNumber(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 | ## AdditionalPropertiesBoxedString -public static final class AdditionalPropertiesBoxedString
+public record AdditionalPropertiesBoxedString
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedString(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 | ## AdditionalPropertiesBoxedList -public static final class AdditionalPropertiesBoxedList
+public record AdditionalPropertiesBoxedList
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedList(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 | ## AdditionalPropertiesBoxedMap -public static final class AdditionalPropertiesBoxedMap
+public record AdditionalPropertiesBoxedMap
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedMap(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 | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestRemove.md b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestRemove.md index fafa4139f81..0515dc9702b 100644 --- a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestRemove.md +++ b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestRemove.md @@ -13,25 +13,25 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [JSONPatchRequestRemove.JSONPatchRequestRemove1Boxed](#jsonpatchrequestremove1boxed)
abstract sealed validated payload class | -| static class | [JSONPatchRequestRemove.JSONPatchRequestRemove1BoxedMap](#jsonpatchrequestremove1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [JSONPatchRequestRemove.JSONPatchRequestRemove1Boxed](#jsonpatchrequestremove1boxed)
abstract sealed validated payload class | +| record | [JSONPatchRequestRemove.JSONPatchRequestRemove1BoxedMap](#jsonpatchrequestremove1boxedmap)
boxed class to store validated Map payloads | | static class | [JSONPatchRequestRemove.JSONPatchRequestRemove1](#jsonpatchrequestremove1)
schema class | | static class | [JSONPatchRequestRemove.JSONPatchRequestRemoveMapBuilder](#jsonpatchrequestremovemapbuilder)
builder for Map payloads | | static class | [JSONPatchRequestRemove.JSONPatchRequestRemoveMap](#jsonpatchrequestremovemap)
output class for Map payloads | -| static class | [JSONPatchRequestRemove.OpBoxed](#opboxed)
abstract sealed validated payload class | -| static class | [JSONPatchRequestRemove.OpBoxedString](#opboxedstring)
boxed class to store validated String payloads | +| sealed interface | [JSONPatchRequestRemove.OpBoxed](#opboxed)
abstract sealed validated payload class | +| record | [JSONPatchRequestRemove.OpBoxedString](#opboxedstring)
boxed class to store validated String payloads | | static class | [JSONPatchRequestRemove.Op](#op)
schema class | | enum | [JSONPatchRequestRemove.StringOpEnums](#stringopenums)
String enum | -| static class | [JSONPatchRequestRemove.PathBoxed](#pathboxed)
abstract sealed validated payload class | -| static class | [JSONPatchRequestRemove.PathBoxedString](#pathboxedstring)
boxed class to store validated String payloads | +| sealed interface | [JSONPatchRequestRemove.PathBoxed](#pathboxed)
abstract sealed validated payload class | +| record | [JSONPatchRequestRemove.PathBoxedString](#pathboxedstring)
boxed class to store validated String payloads | | static class | [JSONPatchRequestRemove.Path](#path)
schema class | -| static class | [JSONPatchRequestRemove.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | -| static class | [JSONPatchRequestRemove.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| static class | [JSONPatchRequestRemove.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| static class | [JSONPatchRequestRemove.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| static class | [JSONPatchRequestRemove.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| static class | [JSONPatchRequestRemove.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| static class | [JSONPatchRequestRemove.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [JSONPatchRequestRemove.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| record | [JSONPatchRequestRemove.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [JSONPatchRequestRemove.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [JSONPatchRequestRemove.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [JSONPatchRequestRemove.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [JSONPatchRequestRemove.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [JSONPatchRequestRemove.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | | static class | [JSONPatchRequestRemove.AdditionalProperties](#additionalproperties)
schema class | ## JSONPatchRequestRemove1Boxed @@ -42,20 +42,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## JSONPatchRequestRemove1BoxedMap -public static final class JSONPatchRequestRemove1BoxedMap
+public record JSONPatchRequestRemove1BoxedMap
implements [JSONPatchRequestRemove1Boxed](#jsonpatchrequestremove1boxed) -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 | | --------------------------- | | JSONPatchRequestRemove1BoxedMap([JSONPatchRequestRemoveMap](#jsonpatchrequestremovemap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [JSONPatchRequestRemoveMap](#jsonpatchrequestremovemap) | data
validated payload | +| [JSONPatchRequestRemoveMap](#jsonpatchrequestremovemap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## JSONPatchRequestRemove1 public static class JSONPatchRequestRemove1
@@ -193,20 +194,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## OpBoxedString -public static final class OpBoxedString
+public record OpBoxedString
implements [OpBoxed](#opboxed) -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 | | --------------------------- | | OpBoxedString(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 | ## Op public static class Op
@@ -271,20 +273,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## PathBoxedString -public static final class PathBoxedString
+public record PathBoxedString
implements [PathBoxed](#pathboxed) -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 | | --------------------------- | | PathBoxedString(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 | ## Path public static class Path
@@ -313,100 +316,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedVoid -public static final class AdditionalPropertiesBoxedVoid
+public record AdditionalPropertiesBoxedVoid
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedVoid(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 | ## AdditionalPropertiesBoxedBoolean -public static final class AdditionalPropertiesBoxedBoolean
+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 | ## AdditionalPropertiesBoxedNumber -public static final class AdditionalPropertiesBoxedNumber
+public record AdditionalPropertiesBoxedNumber
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedNumber(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 | ## AdditionalPropertiesBoxedString -public static final class AdditionalPropertiesBoxedString
+public record AdditionalPropertiesBoxedString
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedString(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 | ## AdditionalPropertiesBoxedList -public static final class AdditionalPropertiesBoxedList
+public record AdditionalPropertiesBoxedList
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedList(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 | ## AdditionalPropertiesBoxedMap -public static final class AdditionalPropertiesBoxedMap
+public record AdditionalPropertiesBoxedMap
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedMap(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 | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/Mammal.md b/samples/client/petstore/java/docs/components/schemas/Mammal.md index ed6a12e2c12..1ccb896c078 100644 --- a/samples/client/petstore/java/docs/components/schemas/Mammal.md +++ b/samples/client/petstore/java/docs/components/schemas/Mammal.md @@ -10,13 +10,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Mammal.Mammal1Boxed](#mammal1boxed)
abstract sealed validated payload class | -| static class | [Mammal.Mammal1BoxedVoid](#mammal1boxedvoid)
boxed class to store validated null payloads | -| static class | [Mammal.Mammal1BoxedBoolean](#mammal1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [Mammal.Mammal1BoxedNumber](#mammal1boxednumber)
boxed class to store validated Number payloads | -| static class | [Mammal.Mammal1BoxedString](#mammal1boxedstring)
boxed class to store validated String payloads | -| static class | [Mammal.Mammal1BoxedList](#mammal1boxedlist)
boxed class to store validated List payloads | -| static class | [Mammal.Mammal1BoxedMap](#mammal1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Mammal.Mammal1Boxed](#mammal1boxed)
abstract sealed validated payload class | +| record | [Mammal.Mammal1BoxedVoid](#mammal1boxedvoid)
boxed class to store validated null payloads | +| record | [Mammal.Mammal1BoxedBoolean](#mammal1boxedboolean)
boxed class to store validated boolean payloads | +| record | [Mammal.Mammal1BoxedNumber](#mammal1boxednumber)
boxed class to store validated Number payloads | +| record | [Mammal.Mammal1BoxedString](#mammal1boxedstring)
boxed class to store validated String payloads | +| record | [Mammal.Mammal1BoxedList](#mammal1boxedlist)
boxed class to store validated List payloads | +| record | [Mammal.Mammal1BoxedMap](#mammal1boxedmap)
boxed class to store validated Map payloads | | static class | [Mammal.Mammal1](#mammal1)
schema class | ## Mammal1Boxed @@ -32,100 +32,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## Mammal1BoxedVoid -public static final class Mammal1BoxedVoid
+public record Mammal1BoxedVoid
implements [Mammal1Boxed](#mammal1boxed) -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 | | --------------------------- | | Mammal1BoxedVoid(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 | ## Mammal1BoxedBoolean -public static final class Mammal1BoxedBoolean
+public record Mammal1BoxedBoolean
implements [Mammal1Boxed](#mammal1boxed) -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 | | --------------------------- | | Mammal1BoxedBoolean(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 | ## Mammal1BoxedNumber -public static final class Mammal1BoxedNumber
+public record Mammal1BoxedNumber
implements [Mammal1Boxed](#mammal1boxed) -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 | | --------------------------- | | Mammal1BoxedNumber(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 | ## Mammal1BoxedString -public static final class Mammal1BoxedString
+public record Mammal1BoxedString
implements [Mammal1Boxed](#mammal1boxed) -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 | | --------------------------- | | Mammal1BoxedString(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 | ## Mammal1BoxedList -public static final class Mammal1BoxedList
+public record Mammal1BoxedList
implements [Mammal1Boxed](#mammal1boxed) -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 | | --------------------------- | | Mammal1BoxedList(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 | ## Mammal1BoxedMap -public static final class Mammal1BoxedMap
+public record Mammal1BoxedMap
implements [Mammal1Boxed](#mammal1boxed) -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 | | --------------------------- | | Mammal1BoxedMap(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 | ## Mammal1 public static class Mammal1
diff --git a/samples/client/petstore/java/docs/components/schemas/MapTest.md b/samples/client/petstore/java/docs/components/schemas/MapTest.md index 8d50c87258c..5aea69acd12 100644 --- a/samples/client/petstore/java/docs/components/schemas/MapTest.md +++ b/samples/client/petstore/java/docs/components/schemas/MapTest.md @@ -13,40 +13,40 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [MapTest.MapTest1Boxed](#maptest1boxed)
abstract sealed validated payload class | -| static class | [MapTest.MapTest1BoxedMap](#maptest1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [MapTest.MapTest1Boxed](#maptest1boxed)
abstract sealed validated payload class | +| record | [MapTest.MapTest1BoxedMap](#maptest1boxedmap)
boxed class to store validated Map payloads | | static class | [MapTest.MapTest1](#maptest1)
schema class | | static class | [MapTest.MapTestMapBuilder](#maptestmapbuilder)
builder for Map payloads | | static class | [MapTest.MapTestMap](#maptestmap)
output class for Map payloads | -| static class | [MapTest.DirectMapBoxed](#directmapboxed)
abstract sealed validated payload class | -| static class | [MapTest.DirectMapBoxedMap](#directmapboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [MapTest.DirectMapBoxed](#directmapboxed)
abstract sealed validated payload class | +| record | [MapTest.DirectMapBoxedMap](#directmapboxedmap)
boxed class to store validated Map payloads | | static class | [MapTest.DirectMap](#directmap)
schema class | | static class | [MapTest.DirectMapMapBuilder](#directmapmapbuilder)
builder for Map payloads | | static class | [MapTest.DirectMapMap](#directmapmap)
output class for Map payloads | -| static class | [MapTest.AdditionalProperties3Boxed](#additionalproperties3boxed)
abstract sealed validated payload class | -| static class | [MapTest.AdditionalProperties3BoxedBoolean](#additionalproperties3boxedboolean)
boxed class to store validated boolean payloads | +| sealed interface | [MapTest.AdditionalProperties3Boxed](#additionalproperties3boxed)
abstract sealed validated payload class | +| record | [MapTest.AdditionalProperties3BoxedBoolean](#additionalproperties3boxedboolean)
boxed class to store validated boolean payloads | | static class | [MapTest.AdditionalProperties3](#additionalproperties3)
schema class | -| static class | [MapTest.MapOfEnumStringBoxed](#mapofenumstringboxed)
abstract sealed validated payload class | -| static class | [MapTest.MapOfEnumStringBoxedMap](#mapofenumstringboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [MapTest.MapOfEnumStringBoxed](#mapofenumstringboxed)
abstract sealed validated payload class | +| record | [MapTest.MapOfEnumStringBoxedMap](#mapofenumstringboxedmap)
boxed class to store validated Map payloads | | static class | [MapTest.MapOfEnumString](#mapofenumstring)
schema class | | static class | [MapTest.MapOfEnumStringMapBuilder](#mapofenumstringmapbuilder)
builder for Map payloads | | static class | [MapTest.MapOfEnumStringMap](#mapofenumstringmap)
output class for Map payloads | -| static class | [MapTest.AdditionalProperties2Boxed](#additionalproperties2boxed)
abstract sealed validated payload class | -| static class | [MapTest.AdditionalProperties2BoxedString](#additionalproperties2boxedstring)
boxed class to store validated String payloads | +| sealed interface | [MapTest.AdditionalProperties2Boxed](#additionalproperties2boxed)
abstract sealed validated payload class | +| record | [MapTest.AdditionalProperties2BoxedString](#additionalproperties2boxedstring)
boxed class to store validated String payloads | | static class | [MapTest.AdditionalProperties2](#additionalproperties2)
schema class | | enum | [MapTest.StringAdditionalPropertiesEnums](#stringadditionalpropertiesenums)
String enum | -| static class | [MapTest.MapMapOfStringBoxed](#mapmapofstringboxed)
abstract sealed validated payload class | -| static class | [MapTest.MapMapOfStringBoxedMap](#mapmapofstringboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [MapTest.MapMapOfStringBoxed](#mapmapofstringboxed)
abstract sealed validated payload class | +| record | [MapTest.MapMapOfStringBoxedMap](#mapmapofstringboxedmap)
boxed class to store validated Map payloads | | static class | [MapTest.MapMapOfString](#mapmapofstring)
schema class | | static class | [MapTest.MapMapOfStringMapBuilder](#mapmapofstringmapbuilder)
builder for Map payloads | | static class | [MapTest.MapMapOfStringMap](#mapmapofstringmap)
output class for Map payloads | -| static class | [MapTest.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | -| static class | [MapTest.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [MapTest.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| record | [MapTest.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | | static class | [MapTest.AdditionalProperties](#additionalproperties)
schema class | | static class | [MapTest.AdditionalPropertiesMapBuilder1](#additionalpropertiesmapbuilder1)
builder for Map payloads | | static class | [MapTest.AdditionalPropertiesMap](#additionalpropertiesmap)
output class for Map payloads | -| static class | [MapTest.AdditionalProperties1Boxed](#additionalproperties1boxed)
abstract sealed validated payload class | -| static class | [MapTest.AdditionalProperties1BoxedString](#additionalproperties1boxedstring)
boxed class to store validated String payloads | +| sealed interface | [MapTest.AdditionalProperties1Boxed](#additionalproperties1boxed)
abstract sealed validated payload class | +| record | [MapTest.AdditionalProperties1BoxedString](#additionalproperties1boxedstring)
boxed class to store validated String payloads | | static class | [MapTest.AdditionalProperties1](#additionalproperties1)
schema class | ## MapTest1Boxed @@ -57,20 +57,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## MapTest1BoxedMap -public static final class MapTest1BoxedMap
+public record MapTest1BoxedMap
implements [MapTest1Boxed](#maptest1boxed) -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 | | --------------------------- | | MapTest1BoxedMap([MapTestMap](#maptestmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [MapTestMap](#maptestmap) | data
validated payload | +| [MapTestMap](#maptestmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## MapTest1 public static class MapTest1
@@ -196,20 +197,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## DirectMapBoxedMap -public static final class DirectMapBoxedMap
+public record DirectMapBoxedMap
implements [DirectMapBoxed](#directmapboxed) -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 | | --------------------------- | | DirectMapBoxedMap([DirectMapMap](#directmapmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [DirectMapMap](#directmapmap) | data
validated payload | +| [DirectMapMap](#directmapmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## DirectMap public static class DirectMap
@@ -292,20 +294,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalProperties3BoxedBoolean -public static final class AdditionalProperties3BoxedBoolean
+public record AdditionalProperties3BoxedBoolean
implements [AdditionalProperties3Boxed](#additionalproperties3boxed) -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 | | --------------------------- | | AdditionalProperties3BoxedBoolean(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 | ## AdditionalProperties3 public static class AdditionalProperties3
@@ -326,20 +329,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## MapOfEnumStringBoxedMap -public static final class MapOfEnumStringBoxedMap
+public record MapOfEnumStringBoxedMap
implements [MapOfEnumStringBoxed](#mapofenumstringboxed) -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 | | --------------------------- | | MapOfEnumStringBoxedMap([MapOfEnumStringMap](#mapofenumstringmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [MapOfEnumStringMap](#mapofenumstringmap) | data
validated payload | +| [MapOfEnumStringMap](#mapofenumstringmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## MapOfEnumString public static class MapOfEnumString
@@ -423,20 +427,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalProperties2BoxedString -public static final class AdditionalProperties2BoxedString
+public record AdditionalProperties2BoxedString
implements [AdditionalProperties2Boxed](#additionalproperties2boxed) -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 | | --------------------------- | | AdditionalProperties2BoxedString(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 | ## AdditionalProperties2 public static class AdditionalProperties2
@@ -499,20 +504,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## MapMapOfStringBoxedMap -public static final class MapMapOfStringBoxedMap
+public record MapMapOfStringBoxedMap
implements [MapMapOfStringBoxed](#mapmapofstringboxed) -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 | | --------------------------- | | MapMapOfStringBoxedMap([MapMapOfStringMap](#mapmapofstringmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [MapMapOfStringMap](#mapmapofstringmap) | data
validated payload | +| [MapMapOfStringMap](#mapmapofstringmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## MapMapOfString public static class MapMapOfString
@@ -602,20 +608,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedMap -public static final class AdditionalPropertiesBoxedMap
+public record AdditionalPropertiesBoxedMap
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedMap([AdditionalPropertiesMap](#additionalpropertiesmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [AdditionalPropertiesMap](#additionalpropertiesmap) | data
validated payload | +| [AdditionalPropertiesMap](#additionalpropertiesmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## AdditionalProperties public static class AdditionalProperties
@@ -698,20 +705,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalProperties1BoxedString -public static final class AdditionalProperties1BoxedString
+public record AdditionalProperties1BoxedString
implements [AdditionalProperties1Boxed](#additionalproperties1boxed) -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 | | --------------------------- | | AdditionalProperties1BoxedString(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 | ## AdditionalProperties1 public static class AdditionalProperties1
diff --git a/samples/client/petstore/java/docs/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/java/docs/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.md index 25689c375b3..038729a1e4a 100644 --- a/samples/client/petstore/java/docs/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/client/petstore/java/docs/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.md @@ -12,21 +12,21 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [MixedPropertiesAndAdditionalPropertiesClass.MixedPropertiesAndAdditionalPropertiesClass1Boxed](#mixedpropertiesandadditionalpropertiesclass1boxed)
abstract sealed validated payload class | -| static class | [MixedPropertiesAndAdditionalPropertiesClass.MixedPropertiesAndAdditionalPropertiesClass1BoxedMap](#mixedpropertiesandadditionalpropertiesclass1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [MixedPropertiesAndAdditionalPropertiesClass.MixedPropertiesAndAdditionalPropertiesClass1Boxed](#mixedpropertiesandadditionalpropertiesclass1boxed)
abstract sealed validated payload class | +| record | [MixedPropertiesAndAdditionalPropertiesClass.MixedPropertiesAndAdditionalPropertiesClass1BoxedMap](#mixedpropertiesandadditionalpropertiesclass1boxedmap)
boxed class to store validated Map payloads | | static class | [MixedPropertiesAndAdditionalPropertiesClass.MixedPropertiesAndAdditionalPropertiesClass1](#mixedpropertiesandadditionalpropertiesclass1)
schema class | | static class | [MixedPropertiesAndAdditionalPropertiesClass.MixedPropertiesAndAdditionalPropertiesClassMapBuilder](#mixedpropertiesandadditionalpropertiesclassmapbuilder)
builder for Map payloads | | static class | [MixedPropertiesAndAdditionalPropertiesClass.MixedPropertiesAndAdditionalPropertiesClassMap](#mixedpropertiesandadditionalpropertiesclassmap)
output class for Map payloads | -| static class | [MixedPropertiesAndAdditionalPropertiesClass.MapSchemaBoxed](#mapschemaboxed)
abstract sealed validated payload class | -| static class | [MixedPropertiesAndAdditionalPropertiesClass.MapSchemaBoxedMap](#mapschemaboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [MixedPropertiesAndAdditionalPropertiesClass.MapSchemaBoxed](#mapschemaboxed)
abstract sealed validated payload class | +| record | [MixedPropertiesAndAdditionalPropertiesClass.MapSchemaBoxedMap](#mapschemaboxedmap)
boxed class to store validated Map payloads | | static class | [MixedPropertiesAndAdditionalPropertiesClass.MapSchema](#mapschema)
schema class | | static class | [MixedPropertiesAndAdditionalPropertiesClass.MapMapBuilder](#mapmapbuilder)
builder for Map payloads | | static class | [MixedPropertiesAndAdditionalPropertiesClass.MapMap](#mapmap)
output class for Map payloads | -| static class | [MixedPropertiesAndAdditionalPropertiesClass.DateTimeBoxed](#datetimeboxed)
abstract sealed validated payload class | -| static class | [MixedPropertiesAndAdditionalPropertiesClass.DateTimeBoxedString](#datetimeboxedstring)
boxed class to store validated String payloads | +| sealed interface | [MixedPropertiesAndAdditionalPropertiesClass.DateTimeBoxed](#datetimeboxed)
abstract sealed validated payload class | +| record | [MixedPropertiesAndAdditionalPropertiesClass.DateTimeBoxedString](#datetimeboxedstring)
boxed class to store validated String payloads | | static class | [MixedPropertiesAndAdditionalPropertiesClass.DateTime](#datetime)
schema class | -| static class | [MixedPropertiesAndAdditionalPropertiesClass.UuidSchemaBoxed](#uuidschemaboxed)
abstract sealed validated payload class | -| static class | [MixedPropertiesAndAdditionalPropertiesClass.UuidSchemaBoxedString](#uuidschemaboxedstring)
boxed class to store validated String payloads | +| sealed interface | [MixedPropertiesAndAdditionalPropertiesClass.UuidSchemaBoxed](#uuidschemaboxed)
abstract sealed validated payload class | +| record | [MixedPropertiesAndAdditionalPropertiesClass.UuidSchemaBoxedString](#uuidschemaboxedstring)
boxed class to store validated String payloads | | static class | [MixedPropertiesAndAdditionalPropertiesClass.UuidSchema](#uuidschema)
schema class | ## MixedPropertiesAndAdditionalPropertiesClass1Boxed @@ -37,20 +37,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## MixedPropertiesAndAdditionalPropertiesClass1BoxedMap -public static final class MixedPropertiesAndAdditionalPropertiesClass1BoxedMap
+public record MixedPropertiesAndAdditionalPropertiesClass1BoxedMap
implements [MixedPropertiesAndAdditionalPropertiesClass1Boxed](#mixedpropertiesandadditionalpropertiesclass1boxed) -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 | | --------------------------- | | MixedPropertiesAndAdditionalPropertiesClass1BoxedMap([MixedPropertiesAndAdditionalPropertiesClassMap](#mixedpropertiesandadditionalpropertiesclassmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [MixedPropertiesAndAdditionalPropertiesClassMap](#mixedpropertiesandadditionalpropertiesclassmap) | data
validated payload | +| [MixedPropertiesAndAdditionalPropertiesClassMap](#mixedpropertiesandadditionalpropertiesclassmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## MixedPropertiesAndAdditionalPropertiesClass1 public static class MixedPropertiesAndAdditionalPropertiesClass1
@@ -165,20 +166,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## MapSchemaBoxedMap -public static final class MapSchemaBoxedMap
+public record MapSchemaBoxedMap
implements [MapSchemaBoxed](#mapschemaboxed) -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 | | --------------------------- | | MapSchemaBoxedMap([MapMap](#mapmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [MapMap](#mapmap) | data
validated payload | +| [MapMap](#mapmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## MapSchema public static class MapSchema
@@ -272,20 +274,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## DateTimeBoxedString -public static final class DateTimeBoxedString
+public record DateTimeBoxedString
implements [DateTimeBoxed](#datetimeboxed) -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 | | --------------------------- | | DateTimeBoxedString(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 | ## DateTime public static class DateTime
@@ -306,20 +309,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## UuidSchemaBoxedString -public static final class UuidSchemaBoxedString
+public record UuidSchemaBoxedString
implements [UuidSchemaBoxed](#uuidschemaboxed) -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 | | --------------------------- | | UuidSchemaBoxedString(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 | ## UuidSchema public static class UuidSchema
diff --git a/samples/client/petstore/java/docs/components/schemas/Money.md b/samples/client/petstore/java/docs/components/schemas/Money.md index 876664fa649..2a4fa98c9c9 100644 --- a/samples/client/petstore/java/docs/components/schemas/Money.md +++ b/samples/client/petstore/java/docs/components/schemas/Money.md @@ -12,21 +12,21 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Money.Money1Boxed](#money1boxed)
abstract sealed validated payload class | -| static class | [Money.Money1BoxedMap](#money1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Money.Money1Boxed](#money1boxed)
abstract sealed validated payload class | +| record | [Money.Money1BoxedMap](#money1boxedmap)
boxed class to store validated Map payloads | | static class | [Money.Money1](#money1)
schema class | | static class | [Money.MoneyMapBuilder](#moneymapbuilder)
builder for Map payloads | | static class | [Money.MoneyMap](#moneymap)
output class for Map payloads | -| static class | [Money.AmountBoxed](#amountboxed)
abstract sealed validated payload class | -| static class | [Money.AmountBoxedString](#amountboxedstring)
boxed class to store validated String payloads | +| sealed interface | [Money.AmountBoxed](#amountboxed)
abstract sealed validated payload class | +| record | [Money.AmountBoxedString](#amountboxedstring)
boxed class to store validated String payloads | | static class | [Money.Amount](#amount)
schema class | -| static class | [Money.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | -| static class | [Money.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| static class | [Money.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| static class | [Money.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| static class | [Money.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| static class | [Money.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| static class | [Money.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Money.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| record | [Money.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [Money.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [Money.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [Money.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [Money.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [Money.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | | static class | [Money.AdditionalProperties](#additionalproperties)
schema class | ## Money1Boxed @@ -37,20 +37,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Money1BoxedMap -public static final class Money1BoxedMap
+public record Money1BoxedMap
implements [Money1Boxed](#money1boxed) -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 | | --------------------------- | | Money1BoxedMap([MoneyMap](#moneymap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [MoneyMap](#moneymap) | data
validated payload | +| [MoneyMap](#moneymap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Money1 public static class Money1
@@ -188,20 +189,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## AmountBoxedString -public static final class AmountBoxedString
+public record AmountBoxedString
implements [AmountBoxed](#amountboxed) -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 | | --------------------------- | | AmountBoxedString(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 | ## Amount public static class Amount
@@ -227,100 +229,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedVoid -public static final class AdditionalPropertiesBoxedVoid
+public record AdditionalPropertiesBoxedVoid
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedVoid(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 | ## AdditionalPropertiesBoxedBoolean -public static final class AdditionalPropertiesBoxedBoolean
+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 | ## AdditionalPropertiesBoxedNumber -public static final class AdditionalPropertiesBoxedNumber
+public record AdditionalPropertiesBoxedNumber
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedNumber(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 | ## AdditionalPropertiesBoxedString -public static final class AdditionalPropertiesBoxedString
+public record AdditionalPropertiesBoxedString
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedString(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 | ## AdditionalPropertiesBoxedList -public static final class AdditionalPropertiesBoxedList
+public record AdditionalPropertiesBoxedList
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedList(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 | ## AdditionalPropertiesBoxedMap -public static final class AdditionalPropertiesBoxedMap
+public record AdditionalPropertiesBoxedMap
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedMap(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 | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/MyObjectDto.md b/samples/client/petstore/java/docs/components/schemas/MyObjectDto.md index 80ff9fe32ca..16f2575704d 100644 --- a/samples/client/petstore/java/docs/components/schemas/MyObjectDto.md +++ b/samples/client/petstore/java/docs/components/schemas/MyObjectDto.md @@ -12,21 +12,21 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [MyObjectDto.MyObjectDto1Boxed](#myobjectdto1boxed)
abstract sealed validated payload class | -| static class | [MyObjectDto.MyObjectDto1BoxedMap](#myobjectdto1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [MyObjectDto.MyObjectDto1Boxed](#myobjectdto1boxed)
abstract sealed validated payload class | +| record | [MyObjectDto.MyObjectDto1BoxedMap](#myobjectdto1boxedmap)
boxed class to store validated Map payloads | | static class | [MyObjectDto.MyObjectDto1](#myobjectdto1)
schema class | | static class | [MyObjectDto.MyObjectDtoMapBuilder](#myobjectdtomapbuilder)
builder for Map payloads | | static class | [MyObjectDto.MyObjectDtoMap](#myobjectdtomap)
output class for Map payloads | -| static class | [MyObjectDto.IdBoxed](#idboxed)
abstract sealed validated payload class | -| static class | [MyObjectDto.IdBoxedString](#idboxedstring)
boxed class to store validated String payloads | +| sealed interface | [MyObjectDto.IdBoxed](#idboxed)
abstract sealed validated payload class | +| record | [MyObjectDto.IdBoxedString](#idboxedstring)
boxed class to store validated String payloads | | static class | [MyObjectDto.Id](#id)
schema class | -| static class | [MyObjectDto.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | -| static class | [MyObjectDto.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| static class | [MyObjectDto.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| static class | [MyObjectDto.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| static class | [MyObjectDto.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| static class | [MyObjectDto.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| static class | [MyObjectDto.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [MyObjectDto.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| record | [MyObjectDto.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [MyObjectDto.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [MyObjectDto.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [MyObjectDto.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [MyObjectDto.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [MyObjectDto.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | | static class | [MyObjectDto.AdditionalProperties](#additionalproperties)
schema class | ## MyObjectDto1Boxed @@ -37,20 +37,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## MyObjectDto1BoxedMap -public static final class MyObjectDto1BoxedMap
+public record MyObjectDto1BoxedMap
implements [MyObjectDto1Boxed](#myobjectdto1boxed) -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 | | --------------------------- | | MyObjectDto1BoxedMap([MyObjectDtoMap](#myobjectdtomap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [MyObjectDtoMap](#myobjectdtomap) | data
validated payload | +| [MyObjectDtoMap](#myobjectdtomap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## MyObjectDto1 public static class MyObjectDto1
@@ -134,20 +135,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## IdBoxedString -public static final class IdBoxedString
+public record IdBoxedString
implements [IdBoxed](#idboxed) -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 | | --------------------------- | | IdBoxedString(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 | ## Id public static class Id
@@ -173,100 +175,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedVoid -public static final class AdditionalPropertiesBoxedVoid
+public record AdditionalPropertiesBoxedVoid
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedVoid(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 | ## AdditionalPropertiesBoxedBoolean -public static final class AdditionalPropertiesBoxedBoolean
+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 | ## AdditionalPropertiesBoxedNumber -public static final class AdditionalPropertiesBoxedNumber
+public record AdditionalPropertiesBoxedNumber
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedNumber(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 | ## AdditionalPropertiesBoxedString -public static final class AdditionalPropertiesBoxedString
+public record AdditionalPropertiesBoxedString
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedString(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 | ## AdditionalPropertiesBoxedList -public static final class AdditionalPropertiesBoxedList
+public record AdditionalPropertiesBoxedList
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedList(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 | ## AdditionalPropertiesBoxedMap -public static final class AdditionalPropertiesBoxedMap
+public record AdditionalPropertiesBoxedMap
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedMap(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 | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/Name.md b/samples/client/petstore/java/docs/components/schemas/Name.md index 48df4e33c01..308cb228bad 100644 --- a/samples/client/petstore/java/docs/components/schemas/Name.md +++ b/samples/client/petstore/java/docs/components/schemas/Name.md @@ -12,24 +12,24 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Name.Name1Boxed](#name1boxed)
abstract sealed validated payload class | -| static class | [Name.Name1BoxedVoid](#name1boxedvoid)
boxed class to store validated null payloads | -| static class | [Name.Name1BoxedBoolean](#name1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [Name.Name1BoxedNumber](#name1boxednumber)
boxed class to store validated Number payloads | -| static class | [Name.Name1BoxedString](#name1boxedstring)
boxed class to store validated String payloads | -| static class | [Name.Name1BoxedList](#name1boxedlist)
boxed class to store validated List payloads | -| static class | [Name.Name1BoxedMap](#name1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Name.Name1Boxed](#name1boxed)
abstract sealed validated payload class | +| record | [Name.Name1BoxedVoid](#name1boxedvoid)
boxed class to store validated null payloads | +| record | [Name.Name1BoxedBoolean](#name1boxedboolean)
boxed class to store validated boolean payloads | +| record | [Name.Name1BoxedNumber](#name1boxednumber)
boxed class to store validated Number payloads | +| record | [Name.Name1BoxedString](#name1boxedstring)
boxed class to store validated String payloads | +| record | [Name.Name1BoxedList](#name1boxedlist)
boxed class to store validated List payloads | +| record | [Name.Name1BoxedMap](#name1boxedmap)
boxed class to store validated Map payloads | | static class | [Name.Name1](#name1)
schema class | | static class | [Name.NameMapBuilder1](#namemapbuilder1)
builder for Map payloads | | static class | [Name.NameMap](#namemap)
output class for Map payloads | -| static class | [Name.PropertyBoxed](#propertyboxed)
abstract sealed validated payload class | -| static class | [Name.PropertyBoxedString](#propertyboxedstring)
boxed class to store validated String payloads | +| sealed interface | [Name.PropertyBoxed](#propertyboxed)
abstract sealed validated payload class | +| record | [Name.PropertyBoxedString](#propertyboxedstring)
boxed class to store validated String payloads | | static class | [Name.Property](#property)
schema class | -| static class | [Name.SnakeCaseBoxed](#snakecaseboxed)
abstract sealed validated payload class | -| static class | [Name.SnakeCaseBoxedNumber](#snakecaseboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [Name.SnakeCaseBoxed](#snakecaseboxed)
abstract sealed validated payload class | +| record | [Name.SnakeCaseBoxedNumber](#snakecaseboxednumber)
boxed class to store validated Number payloads | | static class | [Name.SnakeCase](#snakecase)
schema class | -| static class | [Name.Name2Boxed](#name2boxed)
abstract sealed validated payload class | -| static class | [Name.Name2BoxedNumber](#name2boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [Name.Name2Boxed](#name2boxed)
abstract sealed validated payload class | +| record | [Name.Name2BoxedNumber](#name2boxednumber)
boxed class to store validated Number payloads | | static class | [Name.Name2](#name2)
schema class | ## Name1Boxed @@ -45,100 +45,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## Name1BoxedVoid -public static final class Name1BoxedVoid
+public record Name1BoxedVoid
implements [Name1Boxed](#name1boxed) -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 | | --------------------------- | | Name1BoxedVoid(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 | ## Name1BoxedBoolean -public static final class Name1BoxedBoolean
+public record Name1BoxedBoolean
implements [Name1Boxed](#name1boxed) -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 | | --------------------------- | | Name1BoxedBoolean(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 | ## Name1BoxedNumber -public static final class Name1BoxedNumber
+public record Name1BoxedNumber
implements [Name1Boxed](#name1boxed) -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 | | --------------------------- | | Name1BoxedNumber(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 | ## Name1BoxedString -public static final class Name1BoxedString
+public record Name1BoxedString
implements [Name1Boxed](#name1boxed) -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 | | --------------------------- | | Name1BoxedString(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 | ## Name1BoxedList -public static final class Name1BoxedList
+public record Name1BoxedList
implements [Name1Boxed](#name1boxed) -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 | | --------------------------- | | Name1BoxedList(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 | ## Name1BoxedMap -public static final class Name1BoxedMap
+public record Name1BoxedMap
implements [Name1Boxed](#name1boxed) -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 | | --------------------------- | | Name1BoxedMap([NameMap](#namemap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [NameMap](#namemap) | data
validated payload | +| [NameMap](#namemap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Name1 public static class Name1
@@ -243,20 +249,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## PropertyBoxedString -public static final class PropertyBoxedString
+public record PropertyBoxedString
implements [PropertyBoxed](#propertyboxed) -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 | | --------------------------- | | PropertyBoxedString(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 | ## Property public static class Property
@@ -280,20 +287,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## SnakeCaseBoxedNumber -public static final class SnakeCaseBoxedNumber
+public record SnakeCaseBoxedNumber
implements [SnakeCaseBoxed](#snakecaseboxed) -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 | | --------------------------- | | SnakeCaseBoxedNumber(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 | ## SnakeCase public static class SnakeCase
@@ -314,20 +322,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Name2BoxedNumber -public static final class Name2BoxedNumber
+public record Name2BoxedNumber
implements [Name2Boxed](#name2boxed) -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 | | --------------------------- | | Name2BoxedNumber(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 | ## Name2 public static class Name2
diff --git a/samples/client/petstore/java/docs/components/schemas/NoAdditionalProperties.md b/samples/client/petstore/java/docs/components/schemas/NoAdditionalProperties.md index 05badafece2..8d9186af432 100644 --- a/samples/client/petstore/java/docs/components/schemas/NoAdditionalProperties.md +++ b/samples/client/petstore/java/docs/components/schemas/NoAdditionalProperties.md @@ -12,24 +12,24 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [NoAdditionalProperties.NoAdditionalProperties1Boxed](#noadditionalproperties1boxed)
abstract sealed validated payload class | -| static class | [NoAdditionalProperties.NoAdditionalProperties1BoxedMap](#noadditionalproperties1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [NoAdditionalProperties.NoAdditionalProperties1Boxed](#noadditionalproperties1boxed)
abstract sealed validated payload class | +| record | [NoAdditionalProperties.NoAdditionalProperties1BoxedMap](#noadditionalproperties1boxedmap)
boxed class to store validated Map payloads | | static class | [NoAdditionalProperties.NoAdditionalProperties1](#noadditionalproperties1)
schema class | | static class | [NoAdditionalProperties.NoAdditionalPropertiesMapBuilder](#noadditionalpropertiesmapbuilder)
builder for Map payloads | | static class | [NoAdditionalProperties.NoAdditionalPropertiesMap](#noadditionalpropertiesmap)
output class for Map payloads | -| static class | [NoAdditionalProperties.PetIdBoxed](#petidboxed)
abstract sealed validated payload class | -| static class | [NoAdditionalProperties.PetIdBoxedNumber](#petidboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [NoAdditionalProperties.PetIdBoxed](#petidboxed)
abstract sealed validated payload class | +| record | [NoAdditionalProperties.PetIdBoxedNumber](#petidboxednumber)
boxed class to store validated Number payloads | | static class | [NoAdditionalProperties.PetId](#petid)
schema class | -| static class | [NoAdditionalProperties.IdBoxed](#idboxed)
abstract sealed validated payload class | -| static class | [NoAdditionalProperties.IdBoxedNumber](#idboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [NoAdditionalProperties.IdBoxed](#idboxed)
abstract sealed validated payload class | +| record | [NoAdditionalProperties.IdBoxedNumber](#idboxednumber)
boxed class to store validated Number payloads | | static class | [NoAdditionalProperties.Id](#id)
schema class | -| static class | [NoAdditionalProperties.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | -| static class | [NoAdditionalProperties.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| static class | [NoAdditionalProperties.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| static class | [NoAdditionalProperties.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| static class | [NoAdditionalProperties.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| static class | [NoAdditionalProperties.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| static class | [NoAdditionalProperties.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [NoAdditionalProperties.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| record | [NoAdditionalProperties.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [NoAdditionalProperties.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [NoAdditionalProperties.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [NoAdditionalProperties.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [NoAdditionalProperties.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [NoAdditionalProperties.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | | static class | [NoAdditionalProperties.AdditionalProperties](#additionalproperties)
schema class | ## NoAdditionalProperties1Boxed @@ -40,20 +40,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## NoAdditionalProperties1BoxedMap -public static final class NoAdditionalProperties1BoxedMap
+public record NoAdditionalProperties1BoxedMap
implements [NoAdditionalProperties1Boxed](#noadditionalproperties1boxed) -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 | | --------------------------- | | NoAdditionalProperties1BoxedMap([NoAdditionalPropertiesMap](#noadditionalpropertiesmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [NoAdditionalPropertiesMap](#noadditionalpropertiesmap) | data
validated payload | +| [NoAdditionalPropertiesMap](#noadditionalpropertiesmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## NoAdditionalProperties1 public static class NoAdditionalProperties1
@@ -163,20 +164,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## PetIdBoxedNumber -public static final class PetIdBoxedNumber
+public record PetIdBoxedNumber
implements [PetIdBoxed](#petidboxed) -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 | | --------------------------- | | PetIdBoxedNumber(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 | ## PetId public static class PetId
@@ -197,20 +199,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## IdBoxedNumber -public static final class IdBoxedNumber
+public record IdBoxedNumber
implements [IdBoxed](#idboxed) -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 | | --------------------------- | | IdBoxedNumber(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 | ## Id public static class Id
@@ -236,100 +239,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedVoid -public static final class AdditionalPropertiesBoxedVoid
+public record AdditionalPropertiesBoxedVoid
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedVoid(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 | ## AdditionalPropertiesBoxedBoolean -public static final class AdditionalPropertiesBoxedBoolean
+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 | ## AdditionalPropertiesBoxedNumber -public static final class AdditionalPropertiesBoxedNumber
+public record AdditionalPropertiesBoxedNumber
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedNumber(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 | ## AdditionalPropertiesBoxedString -public static final class AdditionalPropertiesBoxedString
+public record AdditionalPropertiesBoxedString
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedString(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 | ## AdditionalPropertiesBoxedList -public static final class AdditionalPropertiesBoxedList
+public record AdditionalPropertiesBoxedList
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedList(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 | ## AdditionalPropertiesBoxedMap -public static final class AdditionalPropertiesBoxedMap
+public record AdditionalPropertiesBoxedMap
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedMap(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 | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/NullableClass.md b/samples/client/petstore/java/docs/components/schemas/NullableClass.md index b9b9b58bfa5..9a6b6cf59b5 100644 --- a/samples/client/petstore/java/docs/components/schemas/NullableClass.md +++ b/samples/client/petstore/java/docs/components/schemas/NullableClass.md @@ -14,94 +14,94 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [NullableClass.NullableClass1Boxed](#nullableclass1boxed)
abstract sealed validated payload class | -| static class | [NullableClass.NullableClass1BoxedMap](#nullableclass1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [NullableClass.NullableClass1Boxed](#nullableclass1boxed)
abstract sealed validated payload class | +| record | [NullableClass.NullableClass1BoxedMap](#nullableclass1boxedmap)
boxed class to store validated Map payloads | | static class | [NullableClass.NullableClass1](#nullableclass1)
schema class | | static class | [NullableClass.NullableClassMapBuilder](#nullableclassmapbuilder)
builder for Map payloads | | static class | [NullableClass.NullableClassMap](#nullableclassmap)
output class for Map payloads | -| static class | [NullableClass.ObjectItemsNullableBoxed](#objectitemsnullableboxed)
abstract sealed validated payload class | -| static class | [NullableClass.ObjectItemsNullableBoxedMap](#objectitemsnullableboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [NullableClass.ObjectItemsNullableBoxed](#objectitemsnullableboxed)
abstract sealed validated payload class | +| record | [NullableClass.ObjectItemsNullableBoxedMap](#objectitemsnullableboxedmap)
boxed class to store validated Map payloads | | static class | [NullableClass.ObjectItemsNullable](#objectitemsnullable)
schema class | | static class | [NullableClass.ObjectItemsNullableMapBuilder](#objectitemsnullablemapbuilder)
builder for Map payloads | | static class | [NullableClass.ObjectItemsNullableMap](#objectitemsnullablemap)
output class for Map payloads | -| static class | [NullableClass.AdditionalProperties2Boxed](#additionalproperties2boxed)
abstract sealed validated payload class | -| static class | [NullableClass.AdditionalProperties2BoxedVoid](#additionalproperties2boxedvoid)
boxed class to store validated null payloads | -| static class | [NullableClass.AdditionalProperties2BoxedMap](#additionalproperties2boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [NullableClass.AdditionalProperties2Boxed](#additionalproperties2boxed)
abstract sealed validated payload class | +| record | [NullableClass.AdditionalProperties2BoxedVoid](#additionalproperties2boxedvoid)
boxed class to store validated null payloads | +| record | [NullableClass.AdditionalProperties2BoxedMap](#additionalproperties2boxedmap)
boxed class to store validated Map payloads | | static class | [NullableClass.AdditionalProperties2](#additionalproperties2)
schema class | -| static class | [NullableClass.ObjectAndItemsNullablePropBoxed](#objectanditemsnullablepropboxed)
abstract sealed validated payload class | -| static class | [NullableClass.ObjectAndItemsNullablePropBoxedVoid](#objectanditemsnullablepropboxedvoid)
boxed class to store validated null payloads | -| static class | [NullableClass.ObjectAndItemsNullablePropBoxedMap](#objectanditemsnullablepropboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [NullableClass.ObjectAndItemsNullablePropBoxed](#objectanditemsnullablepropboxed)
abstract sealed validated payload class | +| record | [NullableClass.ObjectAndItemsNullablePropBoxedVoid](#objectanditemsnullablepropboxedvoid)
boxed class to store validated null payloads | +| record | [NullableClass.ObjectAndItemsNullablePropBoxedMap](#objectanditemsnullablepropboxedmap)
boxed class to store validated Map payloads | | static class | [NullableClass.ObjectAndItemsNullableProp](#objectanditemsnullableprop)
schema class | | static class | [NullableClass.ObjectAndItemsNullablePropMapBuilder](#objectanditemsnullablepropmapbuilder)
builder for Map payloads | | static class | [NullableClass.ObjectAndItemsNullablePropMap](#objectanditemsnullablepropmap)
output class for Map payloads | -| static class | [NullableClass.AdditionalProperties1Boxed](#additionalproperties1boxed)
abstract sealed validated payload class | -| static class | [NullableClass.AdditionalProperties1BoxedVoid](#additionalproperties1boxedvoid)
boxed class to store validated null payloads | -| static class | [NullableClass.AdditionalProperties1BoxedMap](#additionalproperties1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [NullableClass.AdditionalProperties1Boxed](#additionalproperties1boxed)
abstract sealed validated payload class | +| record | [NullableClass.AdditionalProperties1BoxedVoid](#additionalproperties1boxedvoid)
boxed class to store validated null payloads | +| record | [NullableClass.AdditionalProperties1BoxedMap](#additionalproperties1boxedmap)
boxed class to store validated Map payloads | | static class | [NullableClass.AdditionalProperties1](#additionalproperties1)
schema class | -| static class | [NullableClass.ObjectNullablePropBoxed](#objectnullablepropboxed)
abstract sealed validated payload class | -| static class | [NullableClass.ObjectNullablePropBoxedVoid](#objectnullablepropboxedvoid)
boxed class to store validated null payloads | -| static class | [NullableClass.ObjectNullablePropBoxedMap](#objectnullablepropboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [NullableClass.ObjectNullablePropBoxed](#objectnullablepropboxed)
abstract sealed validated payload class | +| record | [NullableClass.ObjectNullablePropBoxedVoid](#objectnullablepropboxedvoid)
boxed class to store validated null payloads | +| record | [NullableClass.ObjectNullablePropBoxedMap](#objectnullablepropboxedmap)
boxed class to store validated Map payloads | | static class | [NullableClass.ObjectNullableProp](#objectnullableprop)
schema class | | static class | [NullableClass.ObjectNullablePropMapBuilder](#objectnullablepropmapbuilder)
builder for Map payloads | | static class | [NullableClass.ObjectNullablePropMap](#objectnullablepropmap)
output class for Map payloads | -| static class | [NullableClass.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | -| static class | [NullableClass.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [NullableClass.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| record | [NullableClass.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | | static class | [NullableClass.AdditionalProperties](#additionalproperties)
schema class | -| static class | [NullableClass.ArrayItemsNullableBoxed](#arrayitemsnullableboxed)
abstract sealed validated payload class | -| static class | [NullableClass.ArrayItemsNullableBoxedList](#arrayitemsnullableboxedlist)
boxed class to store validated List payloads | +| sealed interface | [NullableClass.ArrayItemsNullableBoxed](#arrayitemsnullableboxed)
abstract sealed validated payload class | +| record | [NullableClass.ArrayItemsNullableBoxedList](#arrayitemsnullableboxedlist)
boxed class to store validated List payloads | | static class | [NullableClass.ArrayItemsNullable](#arrayitemsnullable)
schema class | | static class | [NullableClass.ArrayItemsNullableListBuilder](#arrayitemsnullablelistbuilder)
builder for List payloads | | static class | [NullableClass.ArrayItemsNullableList](#arrayitemsnullablelist)
output class for List payloads | -| static class | [NullableClass.Items2Boxed](#items2boxed)
abstract sealed validated payload class | -| static class | [NullableClass.Items2BoxedVoid](#items2boxedvoid)
boxed class to store validated null payloads | -| static class | [NullableClass.Items2BoxedMap](#items2boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [NullableClass.Items2Boxed](#items2boxed)
abstract sealed validated payload class | +| record | [NullableClass.Items2BoxedVoid](#items2boxedvoid)
boxed class to store validated null payloads | +| record | [NullableClass.Items2BoxedMap](#items2boxedmap)
boxed class to store validated Map payloads | | static class | [NullableClass.Items2](#items2)
schema class | -| static class | [NullableClass.ArrayAndItemsNullablePropBoxed](#arrayanditemsnullablepropboxed)
abstract sealed validated payload class | -| static class | [NullableClass.ArrayAndItemsNullablePropBoxedVoid](#arrayanditemsnullablepropboxedvoid)
boxed class to store validated null payloads | -| static class | [NullableClass.ArrayAndItemsNullablePropBoxedList](#arrayanditemsnullablepropboxedlist)
boxed class to store validated List payloads | +| sealed interface | [NullableClass.ArrayAndItemsNullablePropBoxed](#arrayanditemsnullablepropboxed)
abstract sealed validated payload class | +| record | [NullableClass.ArrayAndItemsNullablePropBoxedVoid](#arrayanditemsnullablepropboxedvoid)
boxed class to store validated null payloads | +| record | [NullableClass.ArrayAndItemsNullablePropBoxedList](#arrayanditemsnullablepropboxedlist)
boxed class to store validated List payloads | | static class | [NullableClass.ArrayAndItemsNullableProp](#arrayanditemsnullableprop)
schema class | | static class | [NullableClass.ArrayAndItemsNullablePropListBuilder](#arrayanditemsnullableproplistbuilder)
builder for List payloads | | static class | [NullableClass.ArrayAndItemsNullablePropList](#arrayanditemsnullableproplist)
output class for List payloads | -| static class | [NullableClass.Items1Boxed](#items1boxed)
abstract sealed validated payload class | -| static class | [NullableClass.Items1BoxedVoid](#items1boxedvoid)
boxed class to store validated null payloads | -| static class | [NullableClass.Items1BoxedMap](#items1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [NullableClass.Items1Boxed](#items1boxed)
abstract sealed validated payload class | +| record | [NullableClass.Items1BoxedVoid](#items1boxedvoid)
boxed class to store validated null payloads | +| record | [NullableClass.Items1BoxedMap](#items1boxedmap)
boxed class to store validated Map payloads | | static class | [NullableClass.Items1](#items1)
schema class | -| static class | [NullableClass.ArrayNullablePropBoxed](#arraynullablepropboxed)
abstract sealed validated payload class | -| static class | [NullableClass.ArrayNullablePropBoxedVoid](#arraynullablepropboxedvoid)
boxed class to store validated null payloads | -| static class | [NullableClass.ArrayNullablePropBoxedList](#arraynullablepropboxedlist)
boxed class to store validated List payloads | +| sealed interface | [NullableClass.ArrayNullablePropBoxed](#arraynullablepropboxed)
abstract sealed validated payload class | +| record | [NullableClass.ArrayNullablePropBoxedVoid](#arraynullablepropboxedvoid)
boxed class to store validated null payloads | +| record | [NullableClass.ArrayNullablePropBoxedList](#arraynullablepropboxedlist)
boxed class to store validated List payloads | | static class | [NullableClass.ArrayNullableProp](#arraynullableprop)
schema class | | static class | [NullableClass.ArrayNullablePropListBuilder](#arraynullableproplistbuilder)
builder for List payloads | | static class | [NullableClass.ArrayNullablePropList](#arraynullableproplist)
output class for List payloads | -| static class | [NullableClass.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | -| static class | [NullableClass.ItemsBoxedMap](#itemsboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [NullableClass.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | +| record | [NullableClass.ItemsBoxedMap](#itemsboxedmap)
boxed class to store validated Map payloads | | static class | [NullableClass.Items](#items)
schema class | -| static class | [NullableClass.DatetimePropBoxed](#datetimepropboxed)
abstract sealed validated payload class | -| static class | [NullableClass.DatetimePropBoxedVoid](#datetimepropboxedvoid)
boxed class to store validated null payloads | -| static class | [NullableClass.DatetimePropBoxedString](#datetimepropboxedstring)
boxed class to store validated String payloads | +| sealed interface | [NullableClass.DatetimePropBoxed](#datetimepropboxed)
abstract sealed validated payload class | +| record | [NullableClass.DatetimePropBoxedVoid](#datetimepropboxedvoid)
boxed class to store validated null payloads | +| record | [NullableClass.DatetimePropBoxedString](#datetimepropboxedstring)
boxed class to store validated String payloads | | static class | [NullableClass.DatetimeProp](#datetimeprop)
schema class | -| static class | [NullableClass.DatePropBoxed](#datepropboxed)
abstract sealed validated payload class | -| static class | [NullableClass.DatePropBoxedVoid](#datepropboxedvoid)
boxed class to store validated null payloads | -| static class | [NullableClass.DatePropBoxedString](#datepropboxedstring)
boxed class to store validated String payloads | +| sealed interface | [NullableClass.DatePropBoxed](#datepropboxed)
abstract sealed validated payload class | +| record | [NullableClass.DatePropBoxedVoid](#datepropboxedvoid)
boxed class to store validated null payloads | +| record | [NullableClass.DatePropBoxedString](#datepropboxedstring)
boxed class to store validated String payloads | | static class | [NullableClass.DateProp](#dateprop)
schema class | -| static class | [NullableClass.StringPropBoxed](#stringpropboxed)
abstract sealed validated payload class | -| static class | [NullableClass.StringPropBoxedVoid](#stringpropboxedvoid)
boxed class to store validated null payloads | -| static class | [NullableClass.StringPropBoxedString](#stringpropboxedstring)
boxed class to store validated String payloads | +| sealed interface | [NullableClass.StringPropBoxed](#stringpropboxed)
abstract sealed validated payload class | +| record | [NullableClass.StringPropBoxedVoid](#stringpropboxedvoid)
boxed class to store validated null payloads | +| record | [NullableClass.StringPropBoxedString](#stringpropboxedstring)
boxed class to store validated String payloads | | static class | [NullableClass.StringProp](#stringprop)
schema class | -| static class | [NullableClass.BooleanPropBoxed](#booleanpropboxed)
abstract sealed validated payload class | -| static class | [NullableClass.BooleanPropBoxedVoid](#booleanpropboxedvoid)
boxed class to store validated null payloads | -| static class | [NullableClass.BooleanPropBoxedBoolean](#booleanpropboxedboolean)
boxed class to store validated boolean payloads | +| sealed interface | [NullableClass.BooleanPropBoxed](#booleanpropboxed)
abstract sealed validated payload class | +| record | [NullableClass.BooleanPropBoxedVoid](#booleanpropboxedvoid)
boxed class to store validated null payloads | +| record | [NullableClass.BooleanPropBoxedBoolean](#booleanpropboxedboolean)
boxed class to store validated boolean payloads | | static class | [NullableClass.BooleanProp](#booleanprop)
schema class | -| static class | [NullableClass.NumberPropBoxed](#numberpropboxed)
abstract sealed validated payload class | -| static class | [NullableClass.NumberPropBoxedVoid](#numberpropboxedvoid)
boxed class to store validated null payloads | -| static class | [NullableClass.NumberPropBoxedNumber](#numberpropboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [NullableClass.NumberPropBoxed](#numberpropboxed)
abstract sealed validated payload class | +| record | [NullableClass.NumberPropBoxedVoid](#numberpropboxedvoid)
boxed class to store validated null payloads | +| record | [NullableClass.NumberPropBoxedNumber](#numberpropboxednumber)
boxed class to store validated Number payloads | | static class | [NullableClass.NumberProp](#numberprop)
schema class | -| static class | [NullableClass.IntegerPropBoxed](#integerpropboxed)
abstract sealed validated payload class | -| static class | [NullableClass.IntegerPropBoxedVoid](#integerpropboxedvoid)
boxed class to store validated null payloads | -| static class | [NullableClass.IntegerPropBoxedNumber](#integerpropboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [NullableClass.IntegerPropBoxed](#integerpropboxed)
abstract sealed validated payload class | +| record | [NullableClass.IntegerPropBoxedVoid](#integerpropboxedvoid)
boxed class to store validated null payloads | +| record | [NullableClass.IntegerPropBoxedNumber](#integerpropboxednumber)
boxed class to store validated Number payloads | | static class | [NullableClass.IntegerProp](#integerprop)
schema class | -| static class | [NullableClass.AdditionalProperties3Boxed](#additionalproperties3boxed)
abstract sealed validated payload class | -| static class | [NullableClass.AdditionalProperties3BoxedVoid](#additionalproperties3boxedvoid)
boxed class to store validated null payloads | -| static class | [NullableClass.AdditionalProperties3BoxedMap](#additionalproperties3boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [NullableClass.AdditionalProperties3Boxed](#additionalproperties3boxed)
abstract sealed validated payload class | +| record | [NullableClass.AdditionalProperties3BoxedVoid](#additionalproperties3boxedvoid)
boxed class to store validated null payloads | +| record | [NullableClass.AdditionalProperties3BoxedMap](#additionalproperties3boxedmap)
boxed class to store validated Map payloads | | static class | [NullableClass.AdditionalProperties3](#additionalproperties3)
schema class | ## NullableClass1Boxed @@ -112,20 +112,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## NullableClass1BoxedMap -public static final class NullableClass1BoxedMap
+public record NullableClass1BoxedMap
implements [NullableClass1Boxed](#nullableclass1boxed) -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 | | --------------------------- | | NullableClass1BoxedMap([NullableClassMap](#nullableclassmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [NullableClassMap](#nullableclassmap) | data
validated payload | +| [NullableClassMap](#nullableclassmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## NullableClass1 public static class NullableClass1
@@ -283,20 +284,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ObjectItemsNullableBoxedMap -public static final class ObjectItemsNullableBoxedMap
+public record ObjectItemsNullableBoxedMap
implements [ObjectItemsNullableBoxed](#objectitemsnullableboxed) -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 | | --------------------------- | | ObjectItemsNullableBoxedMap([ObjectItemsNullableMap](#objectitemsnullablemap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ObjectItemsNullableMap](#objectitemsnullablemap) | data
validated payload | +| [ObjectItemsNullableMap](#objectitemsnullablemap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ObjectItemsNullable public static class ObjectItemsNullable
@@ -381,36 +383,38 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalProperties2BoxedVoid -public static final class AdditionalProperties2BoxedVoid
+public record AdditionalProperties2BoxedVoid
implements [AdditionalProperties2Boxed](#additionalproperties2boxed) -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 | | --------------------------- | | AdditionalProperties2BoxedVoid(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 | ## AdditionalProperties2BoxedMap -public static final class AdditionalProperties2BoxedMap
+public record AdditionalProperties2BoxedMap
implements [AdditionalProperties2Boxed](#additionalproperties2boxed) -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 | | --------------------------- | | AdditionalProperties2BoxedMap(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 | ## AdditionalProperties2 public static class AdditionalProperties2
@@ -462,36 +466,38 @@ permits
sealed interface that stores validated payloads using boxed classes ## ObjectAndItemsNullablePropBoxedVoid -public static final class ObjectAndItemsNullablePropBoxedVoid
+public record ObjectAndItemsNullablePropBoxedVoid
implements [ObjectAndItemsNullablePropBoxed](#objectanditemsnullablepropboxed) -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 | | --------------------------- | | ObjectAndItemsNullablePropBoxedVoid(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 | ## ObjectAndItemsNullablePropBoxedMap -public static final class ObjectAndItemsNullablePropBoxedMap
+public record ObjectAndItemsNullablePropBoxedMap
implements [ObjectAndItemsNullablePropBoxed](#objectanditemsnullablepropboxed) -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 | | --------------------------- | | ObjectAndItemsNullablePropBoxedMap([ObjectAndItemsNullablePropMap](#objectanditemsnullablepropmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ObjectAndItemsNullablePropMap](#objectanditemsnullablepropmap) | data
validated payload | +| [ObjectAndItemsNullablePropMap](#objectanditemsnullablepropmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ObjectAndItemsNullableProp public static class ObjectAndItemsNullableProp
@@ -584,36 +590,38 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalProperties1BoxedVoid -public static final class AdditionalProperties1BoxedVoid
+public record AdditionalProperties1BoxedVoid
implements [AdditionalProperties1Boxed](#additionalproperties1boxed) -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 | | --------------------------- | | AdditionalProperties1BoxedVoid(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 | ## AdditionalProperties1BoxedMap -public static final class AdditionalProperties1BoxedMap
+public record AdditionalProperties1BoxedMap
implements [AdditionalProperties1Boxed](#additionalproperties1boxed) -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 | | --------------------------- | | AdditionalProperties1BoxedMap(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 | ## AdditionalProperties1 public static class AdditionalProperties1
@@ -665,36 +673,38 @@ permits
sealed interface that stores validated payloads using boxed classes ## ObjectNullablePropBoxedVoid -public static final class ObjectNullablePropBoxedVoid
+public record ObjectNullablePropBoxedVoid
implements [ObjectNullablePropBoxed](#objectnullablepropboxed) -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 | | --------------------------- | | ObjectNullablePropBoxedVoid(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 | ## ObjectNullablePropBoxedMap -public static final class ObjectNullablePropBoxedMap
+public record ObjectNullablePropBoxedMap
implements [ObjectNullablePropBoxed](#objectnullablepropboxed) -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 | | --------------------------- | | ObjectNullablePropBoxedMap([ObjectNullablePropMap](#objectnullablepropmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ObjectNullablePropMap](#objectnullablepropmap) | data
validated payload | +| [ObjectNullablePropMap](#objectnullablepropmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ObjectNullableProp public static class ObjectNullableProp
@@ -783,20 +793,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedMap -public static final class AdditionalPropertiesBoxedMap
+public record AdditionalPropertiesBoxedMap
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedMap(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 | ## AdditionalProperties public static class AdditionalProperties
@@ -817,20 +828,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ArrayItemsNullableBoxedList -public static final class ArrayItemsNullableBoxedList
+public record ArrayItemsNullableBoxedList
implements [ArrayItemsNullableBoxed](#arrayitemsnullableboxed) -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 | | --------------------------- | | ArrayItemsNullableBoxedList([ArrayItemsNullableList](#arrayitemsnullablelist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ArrayItemsNullableList](#arrayitemsnullablelist) | data
validated payload | +| [ArrayItemsNullableList](#arrayitemsnullablelist) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ArrayItemsNullable public static class ArrayItemsNullable
@@ -915,36 +927,38 @@ permits
sealed interface that stores validated payloads using boxed classes ## Items2BoxedVoid -public static final class Items2BoxedVoid
+public record Items2BoxedVoid
implements [Items2Boxed](#items2boxed) -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 | | --------------------------- | | Items2BoxedVoid(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 | ## Items2BoxedMap -public static final class Items2BoxedMap
+public record Items2BoxedMap
implements [Items2Boxed](#items2boxed) -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 | | --------------------------- | | Items2BoxedMap(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 | ## Items2 public static class Items2
@@ -996,36 +1010,38 @@ permits
sealed interface that stores validated payloads using boxed classes ## ArrayAndItemsNullablePropBoxedVoid -public static final class ArrayAndItemsNullablePropBoxedVoid
+public record ArrayAndItemsNullablePropBoxedVoid
implements [ArrayAndItemsNullablePropBoxed](#arrayanditemsnullablepropboxed) -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 | | --------------------------- | | ArrayAndItemsNullablePropBoxedVoid(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 | ## ArrayAndItemsNullablePropBoxedList -public static final class ArrayAndItemsNullablePropBoxedList
+public record ArrayAndItemsNullablePropBoxedList
implements [ArrayAndItemsNullablePropBoxed](#arrayanditemsnullablepropboxed) -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 | | --------------------------- | | ArrayAndItemsNullablePropBoxedList([ArrayAndItemsNullablePropList](#arrayanditemsnullableproplist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ArrayAndItemsNullablePropList](#arrayanditemsnullableproplist) | data
validated payload | +| [ArrayAndItemsNullablePropList](#arrayanditemsnullableproplist) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ArrayAndItemsNullableProp public static class ArrayAndItemsNullableProp
@@ -1118,36 +1134,38 @@ permits
sealed interface that stores validated payloads using boxed classes ## Items1BoxedVoid -public static final class Items1BoxedVoid
+public record Items1BoxedVoid
implements [Items1Boxed](#items1boxed) -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 | | --------------------------- | | Items1BoxedVoid(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 | ## Items1BoxedMap -public static final class Items1BoxedMap
+public record Items1BoxedMap
implements [Items1Boxed](#items1boxed) -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 | | --------------------------- | | Items1BoxedMap(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 | ## Items1 public static class Items1
@@ -1199,36 +1217,38 @@ permits
sealed interface that stores validated payloads using boxed classes ## ArrayNullablePropBoxedVoid -public static final class ArrayNullablePropBoxedVoid
+public record ArrayNullablePropBoxedVoid
implements [ArrayNullablePropBoxed](#arraynullablepropboxed) -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 | | --------------------------- | | ArrayNullablePropBoxedVoid(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 | ## ArrayNullablePropBoxedList -public static final class ArrayNullablePropBoxedList
+public record ArrayNullablePropBoxedList
implements [ArrayNullablePropBoxed](#arraynullablepropboxed) -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 | | --------------------------- | | ArrayNullablePropBoxedList([ArrayNullablePropList](#arraynullableproplist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ArrayNullablePropList](#arraynullableproplist) | data
validated payload | +| [ArrayNullablePropList](#arraynullableproplist) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ArrayNullableProp public static class ArrayNullableProp
@@ -1317,20 +1337,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ItemsBoxedMap -public static final class ItemsBoxedMap
+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
@@ -1352,36 +1373,38 @@ permits
sealed interface that stores validated payloads using boxed classes ## DatetimePropBoxedVoid -public static final class DatetimePropBoxedVoid
+public record DatetimePropBoxedVoid
implements [DatetimePropBoxed](#datetimepropboxed) -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 | | --------------------------- | | DatetimePropBoxedVoid(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 | ## DatetimePropBoxedString -public static final class DatetimePropBoxedString
+public record DatetimePropBoxedString
implements [DatetimePropBoxed](#datetimepropboxed) -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 | | --------------------------- | | DatetimePropBoxedString(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 | ## DatetimeProp public static class DatetimeProp
@@ -1440,36 +1463,38 @@ permits
sealed interface that stores validated payloads using boxed classes ## DatePropBoxedVoid -public static final class DatePropBoxedVoid
+public record DatePropBoxedVoid
implements [DatePropBoxed](#datepropboxed) -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 | | --------------------------- | | DatePropBoxedVoid(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 | ## DatePropBoxedString -public static final class DatePropBoxedString
+public record DatePropBoxedString
implements [DatePropBoxed](#datepropboxed) -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 | | --------------------------- | | DatePropBoxedString(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 | ## DateProp public static class DateProp
@@ -1528,36 +1553,38 @@ permits
sealed interface that stores validated payloads using boxed classes ## StringPropBoxedVoid -public static final class StringPropBoxedVoid
+public record StringPropBoxedVoid
implements [StringPropBoxed](#stringpropboxed) -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 | | --------------------------- | | StringPropBoxedVoid(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 | ## StringPropBoxedString -public static final class StringPropBoxedString
+public record StringPropBoxedString
implements [StringPropBoxed](#stringpropboxed) -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 | | --------------------------- | | StringPropBoxedString(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 | ## StringProp public static class StringProp
@@ -1615,36 +1642,38 @@ permits
sealed interface that stores validated payloads using boxed classes ## BooleanPropBoxedVoid -public static final class BooleanPropBoxedVoid
+public record BooleanPropBoxedVoid
implements [BooleanPropBoxed](#booleanpropboxed) -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 | | --------------------------- | | BooleanPropBoxedVoid(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 | ## BooleanPropBoxedBoolean -public static final class BooleanPropBoxedBoolean
+public record BooleanPropBoxedBoolean
implements [BooleanPropBoxed](#booleanpropboxed) -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 | | --------------------------- | | BooleanPropBoxedBoolean(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 | ## BooleanProp public static class BooleanProp
@@ -1702,36 +1731,38 @@ permits
sealed interface that stores validated payloads using boxed classes ## NumberPropBoxedVoid -public static final class NumberPropBoxedVoid
+public record NumberPropBoxedVoid
implements [NumberPropBoxed](#numberpropboxed) -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 | | --------------------------- | | NumberPropBoxedVoid(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 | ## NumberPropBoxedNumber -public static final class NumberPropBoxedNumber
+public record NumberPropBoxedNumber
implements [NumberPropBoxed](#numberpropboxed) -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 | | --------------------------- | | NumberPropBoxedNumber(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 | ## NumberProp public static class NumberProp
@@ -1789,36 +1820,38 @@ permits
sealed interface that stores validated payloads using boxed classes ## IntegerPropBoxedVoid -public static final class IntegerPropBoxedVoid
+public record IntegerPropBoxedVoid
implements [IntegerPropBoxed](#integerpropboxed) -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 | | --------------------------- | | IntegerPropBoxedVoid(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 | ## IntegerPropBoxedNumber -public static final class IntegerPropBoxedNumber
+public record IntegerPropBoxedNumber
implements [IntegerPropBoxed](#integerpropboxed) -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 | | --------------------------- | | IntegerPropBoxedNumber(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 | ## IntegerProp public static class IntegerProp
@@ -1877,36 +1910,38 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalProperties3BoxedVoid -public static final class AdditionalProperties3BoxedVoid
+public record AdditionalProperties3BoxedVoid
implements [AdditionalProperties3Boxed](#additionalproperties3boxed) -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 | | --------------------------- | | AdditionalProperties3BoxedVoid(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 | ## AdditionalProperties3BoxedMap -public static final class AdditionalProperties3BoxedMap
+public record AdditionalProperties3BoxedMap
implements [AdditionalProperties3Boxed](#additionalproperties3boxed) -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 | | --------------------------- | | AdditionalProperties3BoxedMap(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 | ## AdditionalProperties3 public static class AdditionalProperties3
diff --git a/samples/client/petstore/java/docs/components/schemas/NullableShape.md b/samples/client/petstore/java/docs/components/schemas/NullableShape.md index a2126b27901..0105619259b 100644 --- a/samples/client/petstore/java/docs/components/schemas/NullableShape.md +++ b/samples/client/petstore/java/docs/components/schemas/NullableShape.md @@ -10,16 +10,16 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [NullableShape.NullableShape1Boxed](#nullableshape1boxed)
abstract sealed validated payload class | -| static class | [NullableShape.NullableShape1BoxedVoid](#nullableshape1boxedvoid)
boxed class to store validated null payloads | -| static class | [NullableShape.NullableShape1BoxedBoolean](#nullableshape1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [NullableShape.NullableShape1BoxedNumber](#nullableshape1boxednumber)
boxed class to store validated Number payloads | -| static class | [NullableShape.NullableShape1BoxedString](#nullableshape1boxedstring)
boxed class to store validated String payloads | -| static class | [NullableShape.NullableShape1BoxedList](#nullableshape1boxedlist)
boxed class to store validated List payloads | -| static class | [NullableShape.NullableShape1BoxedMap](#nullableshape1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [NullableShape.NullableShape1Boxed](#nullableshape1boxed)
abstract sealed validated payload class | +| record | [NullableShape.NullableShape1BoxedVoid](#nullableshape1boxedvoid)
boxed class to store validated null payloads | +| record | [NullableShape.NullableShape1BoxedBoolean](#nullableshape1boxedboolean)
boxed class to store validated boolean payloads | +| record | [NullableShape.NullableShape1BoxedNumber](#nullableshape1boxednumber)
boxed class to store validated Number payloads | +| record | [NullableShape.NullableShape1BoxedString](#nullableshape1boxedstring)
boxed class to store validated String payloads | +| record | [NullableShape.NullableShape1BoxedList](#nullableshape1boxedlist)
boxed class to store validated List payloads | +| record | [NullableShape.NullableShape1BoxedMap](#nullableshape1boxedmap)
boxed class to store validated Map payloads | | static class | [NullableShape.NullableShape1](#nullableshape1)
schema class | -| static class | [NullableShape.Schema2Boxed](#schema2boxed)
abstract sealed validated payload class | -| static class | [NullableShape.Schema2BoxedVoid](#schema2boxedvoid)
boxed class to store validated null payloads | +| sealed interface | [NullableShape.Schema2Boxed](#schema2boxed)
abstract sealed validated payload class | +| record | [NullableShape.Schema2BoxedVoid](#schema2boxedvoid)
boxed class to store validated null payloads | | static class | [NullableShape.Schema2](#schema2)
schema class | ## NullableShape1Boxed @@ -35,100 +35,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## NullableShape1BoxedVoid -public static final class NullableShape1BoxedVoid
+public record NullableShape1BoxedVoid
implements [NullableShape1Boxed](#nullableshape1boxed) -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 | | --------------------------- | | NullableShape1BoxedVoid(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 | ## NullableShape1BoxedBoolean -public static final class NullableShape1BoxedBoolean
+public record NullableShape1BoxedBoolean
implements [NullableShape1Boxed](#nullableshape1boxed) -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 | | --------------------------- | | NullableShape1BoxedBoolean(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 | ## NullableShape1BoxedNumber -public static final class NullableShape1BoxedNumber
+public record NullableShape1BoxedNumber
implements [NullableShape1Boxed](#nullableshape1boxed) -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 | | --------------------------- | | NullableShape1BoxedNumber(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 | ## NullableShape1BoxedString -public static final class NullableShape1BoxedString
+public record NullableShape1BoxedString
implements [NullableShape1Boxed](#nullableshape1boxed) -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 | | --------------------------- | | NullableShape1BoxedString(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 | ## NullableShape1BoxedList -public static final class NullableShape1BoxedList
+public record NullableShape1BoxedList
implements [NullableShape1Boxed](#nullableshape1boxed) -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 | | --------------------------- | | NullableShape1BoxedList(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 | ## NullableShape1BoxedMap -public static final class NullableShape1BoxedMap
+public record NullableShape1BoxedMap
implements [NullableShape1Boxed](#nullableshape1boxed) -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 | | --------------------------- | | NullableShape1BoxedMap(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 | ## NullableShape1 public static class NullableShape1
@@ -172,20 +178,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema2BoxedVoid -public static final class Schema2BoxedVoid
+public record Schema2BoxedVoid
implements [Schema2Boxed](#schema2boxed) -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 | | --------------------------- | | Schema2BoxedVoid(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 | ## Schema2 public static class Schema2
diff --git a/samples/client/petstore/java/docs/components/schemas/NullableString.md b/samples/client/petstore/java/docs/components/schemas/NullableString.md index 239f69dd188..e75fe336e24 100644 --- a/samples/client/petstore/java/docs/components/schemas/NullableString.md +++ b/samples/client/petstore/java/docs/components/schemas/NullableString.md @@ -10,9 +10,9 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [NullableString.NullableString1Boxed](#nullablestring1boxed)
abstract sealed validated payload class | -| static class | [NullableString.NullableString1BoxedVoid](#nullablestring1boxedvoid)
boxed class to store validated null payloads | -| static class | [NullableString.NullableString1BoxedString](#nullablestring1boxedstring)
boxed class to store validated String payloads | +| sealed interface | [NullableString.NullableString1Boxed](#nullablestring1boxed)
abstract sealed validated payload class | +| record | [NullableString.NullableString1BoxedVoid](#nullablestring1boxedvoid)
boxed class to store validated null payloads | +| record | [NullableString.NullableString1BoxedString](#nullablestring1boxedstring)
boxed class to store validated String payloads | | static class | [NullableString.NullableString1](#nullablestring1)
schema class | ## NullableString1Boxed @@ -24,36 +24,38 @@ permits
sealed interface that stores validated payloads using boxed classes ## NullableString1BoxedVoid -public static final class NullableString1BoxedVoid
+public record NullableString1BoxedVoid
implements [NullableString1Boxed](#nullablestring1boxed) -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 | | --------------------------- | | NullableString1BoxedVoid(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 | ## NullableString1BoxedString -public static final class NullableString1BoxedString
+public record NullableString1BoxedString
implements [NullableString1Boxed](#nullablestring1boxed) -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 | | --------------------------- | | NullableString1BoxedString(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 | ## NullableString1 public static class NullableString1
diff --git a/samples/client/petstore/java/docs/components/schemas/NumberOnly.md b/samples/client/petstore/java/docs/components/schemas/NumberOnly.md index 1a741bfa2a0..77bc2414632 100644 --- a/samples/client/petstore/java/docs/components/schemas/NumberOnly.md +++ b/samples/client/petstore/java/docs/components/schemas/NumberOnly.md @@ -12,13 +12,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [NumberOnly.NumberOnly1Boxed](#numberonly1boxed)
abstract sealed validated payload class | -| static class | [NumberOnly.NumberOnly1BoxedMap](#numberonly1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [NumberOnly.NumberOnly1Boxed](#numberonly1boxed)
abstract sealed validated payload class | +| record | [NumberOnly.NumberOnly1BoxedMap](#numberonly1boxedmap)
boxed class to store validated Map payloads | | static class | [NumberOnly.NumberOnly1](#numberonly1)
schema class | | static class | [NumberOnly.NumberOnlyMapBuilder](#numberonlymapbuilder)
builder for Map payloads | | static class | [NumberOnly.NumberOnlyMap](#numberonlymap)
output class for Map payloads | -| static class | [NumberOnly.JustNumberBoxed](#justnumberboxed)
abstract sealed validated payload class | -| static class | [NumberOnly.JustNumberBoxedNumber](#justnumberboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [NumberOnly.JustNumberBoxed](#justnumberboxed)
abstract sealed validated payload class | +| record | [NumberOnly.JustNumberBoxedNumber](#justnumberboxednumber)
boxed class to store validated Number payloads | | static class | [NumberOnly.JustNumber](#justnumber)
schema class | ## NumberOnly1Boxed @@ -29,20 +29,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## NumberOnly1BoxedMap -public static final class NumberOnly1BoxedMap
+public record NumberOnly1BoxedMap
implements [NumberOnly1Boxed](#numberonly1boxed) -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 | | --------------------------- | | NumberOnly1BoxedMap([NumberOnlyMap](#numberonlymap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [NumberOnlyMap](#numberonlymap) | data
validated payload | +| [NumberOnlyMap](#numberonlymap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## NumberOnly1 public static class NumberOnly1
@@ -138,20 +139,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## JustNumberBoxedNumber -public static final class JustNumberBoxedNumber
+public record JustNumberBoxedNumber
implements [JustNumberBoxed](#justnumberboxed) -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 | | --------------------------- | | JustNumberBoxedNumber(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 | ## JustNumber public static class JustNumber
diff --git a/samples/client/petstore/java/docs/components/schemas/NumberSchema.md b/samples/client/petstore/java/docs/components/schemas/NumberSchema.md index 2ffbeccdc88..0d055b66d0c 100644 --- a/samples/client/petstore/java/docs/components/schemas/NumberSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/NumberSchema.md @@ -10,8 +10,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [NumberSchema.NumberSchema1Boxed](#numberschema1boxed)
abstract sealed validated payload class | -| static class | [NumberSchema.NumberSchema1BoxedNumber](#numberschema1boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [NumberSchema.NumberSchema1Boxed](#numberschema1boxed)
abstract sealed validated payload class | +| record | [NumberSchema.NumberSchema1BoxedNumber](#numberschema1boxednumber)
boxed class to store validated Number payloads | | static class | [NumberSchema.NumberSchema1](#numberschema1)
schema class | ## NumberSchema1Boxed @@ -22,20 +22,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## NumberSchema1BoxedNumber -public static final class NumberSchema1BoxedNumber
+public record NumberSchema1BoxedNumber
implements [NumberSchema1Boxed](#numberschema1boxed) -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 | | --------------------------- | | NumberSchema1BoxedNumber(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 | ## NumberSchema1 public static class NumberSchema1
diff --git a/samples/client/petstore/java/docs/components/schemas/NumberWithExclusiveMinMax.md b/samples/client/petstore/java/docs/components/schemas/NumberWithExclusiveMinMax.md index 63d2a67d1f2..275e89019b5 100644 --- a/samples/client/petstore/java/docs/components/schemas/NumberWithExclusiveMinMax.md +++ b/samples/client/petstore/java/docs/components/schemas/NumberWithExclusiveMinMax.md @@ -10,8 +10,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [NumberWithExclusiveMinMax.NumberWithExclusiveMinMax1Boxed](#numberwithexclusiveminmax1boxed)
abstract sealed validated payload class | -| static class | [NumberWithExclusiveMinMax.NumberWithExclusiveMinMax1BoxedNumber](#numberwithexclusiveminmax1boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [NumberWithExclusiveMinMax.NumberWithExclusiveMinMax1Boxed](#numberwithexclusiveminmax1boxed)
abstract sealed validated payload class | +| record | [NumberWithExclusiveMinMax.NumberWithExclusiveMinMax1BoxedNumber](#numberwithexclusiveminmax1boxednumber)
boxed class to store validated Number payloads | | static class | [NumberWithExclusiveMinMax.NumberWithExclusiveMinMax1](#numberwithexclusiveminmax1)
schema class | ## NumberWithExclusiveMinMax1Boxed @@ -22,20 +22,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## NumberWithExclusiveMinMax1BoxedNumber -public static final class NumberWithExclusiveMinMax1BoxedNumber
+public record NumberWithExclusiveMinMax1BoxedNumber
implements [NumberWithExclusiveMinMax1Boxed](#numberwithexclusiveminmax1boxed) -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 | | --------------------------- | | NumberWithExclusiveMinMax1BoxedNumber(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 | ## NumberWithExclusiveMinMax1 public static class NumberWithExclusiveMinMax1
diff --git a/samples/client/petstore/java/docs/components/schemas/NumberWithValidations.md b/samples/client/petstore/java/docs/components/schemas/NumberWithValidations.md index 788584a58d7..665d1c52814 100644 --- a/samples/client/petstore/java/docs/components/schemas/NumberWithValidations.md +++ b/samples/client/petstore/java/docs/components/schemas/NumberWithValidations.md @@ -10,8 +10,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [NumberWithValidations.NumberWithValidations1Boxed](#numberwithvalidations1boxed)
abstract sealed validated payload class | -| static class | [NumberWithValidations.NumberWithValidations1BoxedNumber](#numberwithvalidations1boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [NumberWithValidations.NumberWithValidations1Boxed](#numberwithvalidations1boxed)
abstract sealed validated payload class | +| record | [NumberWithValidations.NumberWithValidations1BoxedNumber](#numberwithvalidations1boxednumber)
boxed class to store validated Number payloads | | static class | [NumberWithValidations.NumberWithValidations1](#numberwithvalidations1)
schema class | ## NumberWithValidations1Boxed @@ -22,20 +22,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## NumberWithValidations1BoxedNumber -public static final class NumberWithValidations1BoxedNumber
+public record NumberWithValidations1BoxedNumber
implements [NumberWithValidations1Boxed](#numberwithvalidations1boxed) -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 | | --------------------------- | | NumberWithValidations1BoxedNumber(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 | ## NumberWithValidations1 public static class NumberWithValidations1
diff --git a/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredProps.md b/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredProps.md index 292487d4bcc..99938a910d1 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredProps.md @@ -12,13 +12,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ObjWithRequiredProps.ObjWithRequiredProps1Boxed](#objwithrequiredprops1boxed)
abstract sealed validated payload class | -| static class | [ObjWithRequiredProps.ObjWithRequiredProps1BoxedMap](#objwithrequiredprops1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ObjWithRequiredProps.ObjWithRequiredProps1Boxed](#objwithrequiredprops1boxed)
abstract sealed validated payload class | +| record | [ObjWithRequiredProps.ObjWithRequiredProps1BoxedMap](#objwithrequiredprops1boxedmap)
boxed class to store validated Map payloads | | static class | [ObjWithRequiredProps.ObjWithRequiredProps1](#objwithrequiredprops1)
schema class | | static class | [ObjWithRequiredProps.ObjWithRequiredPropsMapBuilder](#objwithrequiredpropsmapbuilder)
builder for Map payloads | | static class | [ObjWithRequiredProps.ObjWithRequiredPropsMap](#objwithrequiredpropsmap)
output class for Map payloads | -| static class | [ObjWithRequiredProps.ABoxed](#aboxed)
abstract sealed validated payload class | -| static class | [ObjWithRequiredProps.ABoxedString](#aboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ObjWithRequiredProps.ABoxed](#aboxed)
abstract sealed validated payload class | +| record | [ObjWithRequiredProps.ABoxedString](#aboxedstring)
boxed class to store validated String payloads | | static class | [ObjWithRequiredProps.A](#a)
schema class | ## ObjWithRequiredProps1Boxed @@ -29,20 +29,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ObjWithRequiredProps1BoxedMap -public static final class ObjWithRequiredProps1BoxedMap
+public record ObjWithRequiredProps1BoxedMap
implements [ObjWithRequiredProps1Boxed](#objwithrequiredprops1boxed) -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 | | --------------------------- | | ObjWithRequiredProps1BoxedMap([ObjWithRequiredPropsMap](#objwithrequiredpropsmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ObjWithRequiredPropsMap](#objwithrequiredpropsmap) | data
validated payload | +| [ObjWithRequiredPropsMap](#objwithrequiredpropsmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ObjWithRequiredProps1 public static class ObjWithRequiredProps1
@@ -152,20 +153,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ABoxedString -public static final class ABoxedString
+public record ABoxedString
implements [ABoxed](#aboxed) -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 | | --------------------------- | | ABoxedString(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 | ## A public static class A
diff --git a/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredPropsBase.md b/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredPropsBase.md index f305f6e9f07..9e6be3fd5c8 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredPropsBase.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredPropsBase.md @@ -12,13 +12,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ObjWithRequiredPropsBase.ObjWithRequiredPropsBase1Boxed](#objwithrequiredpropsbase1boxed)
abstract sealed validated payload class | -| static class | [ObjWithRequiredPropsBase.ObjWithRequiredPropsBase1BoxedMap](#objwithrequiredpropsbase1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ObjWithRequiredPropsBase.ObjWithRequiredPropsBase1Boxed](#objwithrequiredpropsbase1boxed)
abstract sealed validated payload class | +| record | [ObjWithRequiredPropsBase.ObjWithRequiredPropsBase1BoxedMap](#objwithrequiredpropsbase1boxedmap)
boxed class to store validated Map payloads | | static class | [ObjWithRequiredPropsBase.ObjWithRequiredPropsBase1](#objwithrequiredpropsbase1)
schema class | | static class | [ObjWithRequiredPropsBase.ObjWithRequiredPropsBaseMapBuilder](#objwithrequiredpropsbasemapbuilder)
builder for Map payloads | | static class | [ObjWithRequiredPropsBase.ObjWithRequiredPropsBaseMap](#objwithrequiredpropsbasemap)
output class for Map payloads | -| static class | [ObjWithRequiredPropsBase.BBoxed](#bboxed)
abstract sealed validated payload class | -| static class | [ObjWithRequiredPropsBase.BBoxedString](#bboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ObjWithRequiredPropsBase.BBoxed](#bboxed)
abstract sealed validated payload class | +| record | [ObjWithRequiredPropsBase.BBoxedString](#bboxedstring)
boxed class to store validated String payloads | | static class | [ObjWithRequiredPropsBase.B](#b)
schema class | ## ObjWithRequiredPropsBase1Boxed @@ -29,20 +29,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ObjWithRequiredPropsBase1BoxedMap -public static final class ObjWithRequiredPropsBase1BoxedMap
+public record ObjWithRequiredPropsBase1BoxedMap
implements [ObjWithRequiredPropsBase1Boxed](#objwithrequiredpropsbase1boxed) -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 | | --------------------------- | | ObjWithRequiredPropsBase1BoxedMap([ObjWithRequiredPropsBaseMap](#objwithrequiredpropsbasemap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ObjWithRequiredPropsBaseMap](#objwithrequiredpropsbasemap) | data
validated payload | +| [ObjWithRequiredPropsBaseMap](#objwithrequiredpropsbasemap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ObjWithRequiredPropsBase1 public static class ObjWithRequiredPropsBase1
@@ -151,20 +152,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## BBoxedString -public static final class BBoxedString
+public record BBoxedString
implements [BBoxed](#bboxed) -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 | | --------------------------- | | BBoxedString(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 | ## B public static class B
diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectInterface.md b/samples/client/petstore/java/docs/components/schemas/ObjectInterface.md index 9c9296682ea..136a6850cb1 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectInterface.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectInterface.md @@ -10,8 +10,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ObjectInterface.ObjectInterface1Boxed](#objectinterface1boxed)
abstract sealed validated payload class | -| static class | [ObjectInterface.ObjectInterface1BoxedMap](#objectinterface1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ObjectInterface.ObjectInterface1Boxed](#objectinterface1boxed)
abstract sealed validated payload class | +| record | [ObjectInterface.ObjectInterface1BoxedMap](#objectinterface1boxedmap)
boxed class to store validated Map payloads | | static class | [ObjectInterface.ObjectInterface1](#objectinterface1)
schema class | ## ObjectInterface1Boxed @@ -22,20 +22,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ObjectInterface1BoxedMap -public static final class ObjectInterface1BoxedMap
+public record ObjectInterface1BoxedMap
implements [ObjectInterface1Boxed](#objectinterface1boxed) -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 | | --------------------------- | | ObjectInterface1BoxedMap(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 | ## ObjectInterface1 public static class ObjectInterface1
diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectModelWithArgAndArgsProperties.md b/samples/client/petstore/java/docs/components/schemas/ObjectModelWithArgAndArgsProperties.md index 0ef25efde14..8ed4537847d 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectModelWithArgAndArgsProperties.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectModelWithArgAndArgsProperties.md @@ -12,16 +12,16 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ObjectModelWithArgAndArgsProperties.ObjectModelWithArgAndArgsProperties1Boxed](#objectmodelwithargandargsproperties1boxed)
abstract sealed validated payload class | -| static class | [ObjectModelWithArgAndArgsProperties.ObjectModelWithArgAndArgsProperties1BoxedMap](#objectmodelwithargandargsproperties1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ObjectModelWithArgAndArgsProperties.ObjectModelWithArgAndArgsProperties1Boxed](#objectmodelwithargandargsproperties1boxed)
abstract sealed validated payload class | +| record | [ObjectModelWithArgAndArgsProperties.ObjectModelWithArgAndArgsProperties1BoxedMap](#objectmodelwithargandargsproperties1boxedmap)
boxed class to store validated Map payloads | | static class | [ObjectModelWithArgAndArgsProperties.ObjectModelWithArgAndArgsProperties1](#objectmodelwithargandargsproperties1)
schema class | | static class | [ObjectModelWithArgAndArgsProperties.ObjectModelWithArgAndArgsPropertiesMapBuilder](#objectmodelwithargandargspropertiesmapbuilder)
builder for Map payloads | | static class | [ObjectModelWithArgAndArgsProperties.ObjectModelWithArgAndArgsPropertiesMap](#objectmodelwithargandargspropertiesmap)
output class for Map payloads | -| static class | [ObjectModelWithArgAndArgsProperties.ArgsBoxed](#argsboxed)
abstract sealed validated payload class | -| static class | [ObjectModelWithArgAndArgsProperties.ArgsBoxedString](#argsboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ObjectModelWithArgAndArgsProperties.ArgsBoxed](#argsboxed)
abstract sealed validated payload class | +| record | [ObjectModelWithArgAndArgsProperties.ArgsBoxedString](#argsboxedstring)
boxed class to store validated String payloads | | static class | [ObjectModelWithArgAndArgsProperties.Args](#args)
schema class | -| static class | [ObjectModelWithArgAndArgsProperties.ArgBoxed](#argboxed)
abstract sealed validated payload class | -| static class | [ObjectModelWithArgAndArgsProperties.ArgBoxedString](#argboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ObjectModelWithArgAndArgsProperties.ArgBoxed](#argboxed)
abstract sealed validated payload class | +| record | [ObjectModelWithArgAndArgsProperties.ArgBoxedString](#argboxedstring)
boxed class to store validated String payloads | | static class | [ObjectModelWithArgAndArgsProperties.Arg](#arg)
schema class | ## ObjectModelWithArgAndArgsProperties1Boxed @@ -32,20 +32,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ObjectModelWithArgAndArgsProperties1BoxedMap -public static final class ObjectModelWithArgAndArgsProperties1BoxedMap
+public record ObjectModelWithArgAndArgsProperties1BoxedMap
implements [ObjectModelWithArgAndArgsProperties1Boxed](#objectmodelwithargandargsproperties1boxed) -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 | | --------------------------- | | ObjectModelWithArgAndArgsProperties1BoxedMap([ObjectModelWithArgAndArgsPropertiesMap](#objectmodelwithargandargspropertiesmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ObjectModelWithArgAndArgsPropertiesMap](#objectmodelwithargandargspropertiesmap) | data
validated payload | +| [ObjectModelWithArgAndArgsPropertiesMap](#objectmodelwithargandargspropertiesmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ObjectModelWithArgAndArgsProperties1 public static class ObjectModelWithArgAndArgsProperties1
@@ -190,20 +191,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ArgsBoxedString -public static final class ArgsBoxedString
+public record ArgsBoxedString
implements [ArgsBoxed](#argsboxed) -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 | | --------------------------- | | ArgsBoxedString(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 | ## Args public static class Args
@@ -224,20 +226,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ArgBoxedString -public static final class ArgBoxedString
+public record ArgBoxedString
implements [ArgBoxed](#argboxed) -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 | | --------------------------- | | ArgBoxedString(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 | ## Arg public static class Arg
diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectModelWithRefProps.md b/samples/client/petstore/java/docs/components/schemas/ObjectModelWithRefProps.md index 612b2b00dda..824d019e8c8 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectModelWithRefProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectModelWithRefProps.md @@ -12,8 +12,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ObjectModelWithRefProps.ObjectModelWithRefProps1Boxed](#objectmodelwithrefprops1boxed)
abstract sealed validated payload class | -| static class | [ObjectModelWithRefProps.ObjectModelWithRefProps1BoxedMap](#objectmodelwithrefprops1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ObjectModelWithRefProps.ObjectModelWithRefProps1Boxed](#objectmodelwithrefprops1boxed)
abstract sealed validated payload class | +| record | [ObjectModelWithRefProps.ObjectModelWithRefProps1BoxedMap](#objectmodelwithrefprops1boxedmap)
boxed class to store validated Map payloads | | static class | [ObjectModelWithRefProps.ObjectModelWithRefProps1](#objectmodelwithrefprops1)
schema class | | static class | [ObjectModelWithRefProps.ObjectModelWithRefPropsMapBuilder](#objectmodelwithrefpropsmapbuilder)
builder for Map payloads | | static class | [ObjectModelWithRefProps.ObjectModelWithRefPropsMap](#objectmodelwithrefpropsmap)
output class for Map payloads | @@ -26,20 +26,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ObjectModelWithRefProps1BoxedMap -public static final class ObjectModelWithRefProps1BoxedMap
+public record ObjectModelWithRefProps1BoxedMap
implements [ObjectModelWithRefProps1Boxed](#objectmodelwithrefprops1boxed) -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 | | --------------------------- | | ObjectModelWithRefProps1BoxedMap([ObjectModelWithRefPropsMap](#objectmodelwithrefpropsmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ObjectModelWithRefPropsMap](#objectmodelwithrefpropsmap) | data
validated payload | +| [ObjectModelWithRefPropsMap](#objectmodelwithrefpropsmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ObjectModelWithRefProps1 public static class ObjectModelWithRefProps1
diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md index 25e776ba83e..672ae96f1bf 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md @@ -12,21 +12,21 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed](#objectwithallofwithreqtestpropfromunsetaddprop1boxed)
abstract sealed validated payload class | -| static class | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedVoid](#objectwithallofwithreqtestpropfromunsetaddprop1boxedvoid)
boxed class to store validated null payloads | -| static class | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedBoolean](#objectwithallofwithreqtestpropfromunsetaddprop1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedNumber](#objectwithallofwithreqtestpropfromunsetaddprop1boxednumber)
boxed class to store validated Number payloads | -| static class | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedString](#objectwithallofwithreqtestpropfromunsetaddprop1boxedstring)
boxed class to store validated String payloads | -| static class | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedList](#objectwithallofwithreqtestpropfromunsetaddprop1boxedlist)
boxed class to store validated List payloads | -| static class | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedMap](#objectwithallofwithreqtestpropfromunsetaddprop1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed](#objectwithallofwithreqtestpropfromunsetaddprop1boxed)
abstract sealed validated payload class | +| record | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedVoid](#objectwithallofwithreqtestpropfromunsetaddprop1boxedvoid)
boxed class to store validated null payloads | +| record | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedBoolean](#objectwithallofwithreqtestpropfromunsetaddprop1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedNumber](#objectwithallofwithreqtestpropfromunsetaddprop1boxednumber)
boxed class to store validated Number payloads | +| record | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedString](#objectwithallofwithreqtestpropfromunsetaddprop1boxedstring)
boxed class to store validated String payloads | +| record | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedList](#objectwithallofwithreqtestpropfromunsetaddprop1boxedlist)
boxed class to store validated List payloads | +| record | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedMap](#objectwithallofwithreqtestpropfromunsetaddprop1boxedmap)
boxed class to store validated Map payloads | | static class | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.ObjectWithAllOfWithReqTestPropFromUnsetAddProp1](#objectwithallofwithreqtestpropfromunsetaddprop1)
schema class | -| static class | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | -| static class | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | +| record | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | | static class | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.Schema1](#schema1)
schema class | | static class | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.Schema1Map](#schema1map)
output class for Map payloads | -| static class | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.NameBoxed](#nameboxed)
abstract sealed validated payload class | -| static class | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.NameBoxedString](#nameboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.NameBoxed](#nameboxed)
abstract sealed validated payload class | +| record | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.NameBoxedString](#nameboxedstring)
boxed class to store validated String payloads | | static class | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.Name](#name)
schema class | ## ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed @@ -42,100 +42,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedVoid -public static final class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedVoid
+public record ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedVoid
implements [ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed](#objectwithallofwithreqtestpropfromunsetaddprop1boxed) -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 | | --------------------------- | | ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedVoid(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 | ## ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedBoolean -public static final class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedBoolean
+public record ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedBoolean
implements [ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed](#objectwithallofwithreqtestpropfromunsetaddprop1boxed) -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 | | --------------------------- | | ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedBoolean(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 | ## ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedNumber -public static final class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedNumber
+public record ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedNumber
implements [ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed](#objectwithallofwithreqtestpropfromunsetaddprop1boxed) -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 | | --------------------------- | | ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedNumber(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 | ## ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedString -public static final class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedString
+public record ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedString
implements [ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed](#objectwithallofwithreqtestpropfromunsetaddprop1boxed) -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 | | --------------------------- | | ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedString(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 | ## ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedList -public static final class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedList
+public record ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedList
implements [ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed](#objectwithallofwithreqtestpropfromunsetaddprop1boxed) -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 | | --------------------------- | | ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedList(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 | ## ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedMap -public static final class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedMap
+public record ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedMap
implements [ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed](#objectwithallofwithreqtestpropfromunsetaddprop1boxed) -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 | | --------------------------- | | ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedMap(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 | ## ObjectWithAllOfWithReqTestPropFromUnsetAddProp1 public static class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1
@@ -176,20 +182,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema1BoxedMap -public static final class Schema1BoxedMap
+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
@@ -308,20 +315,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## NameBoxedString -public static final class NameBoxedString
+public record NameBoxedString
implements [NameBoxed](#nameboxed) -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 | | --------------------------- | | NameBoxedString(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 | ## Name public static class Name
diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithCollidingProperties.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithCollidingProperties.md index 546068aa363..7e9be7b86b8 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithCollidingProperties.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithCollidingProperties.md @@ -12,16 +12,16 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ObjectWithCollidingProperties.ObjectWithCollidingProperties1Boxed](#objectwithcollidingproperties1boxed)
abstract sealed validated payload class | -| static class | [ObjectWithCollidingProperties.ObjectWithCollidingProperties1BoxedMap](#objectwithcollidingproperties1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ObjectWithCollidingProperties.ObjectWithCollidingProperties1Boxed](#objectwithcollidingproperties1boxed)
abstract sealed validated payload class | +| record | [ObjectWithCollidingProperties.ObjectWithCollidingProperties1BoxedMap](#objectwithcollidingproperties1boxedmap)
boxed class to store validated Map payloads | | static class | [ObjectWithCollidingProperties.ObjectWithCollidingProperties1](#objectwithcollidingproperties1)
schema class | | static class | [ObjectWithCollidingProperties.ObjectWithCollidingPropertiesMapBuilder](#objectwithcollidingpropertiesmapbuilder)
builder for Map payloads | | static class | [ObjectWithCollidingProperties.ObjectWithCollidingPropertiesMap](#objectwithcollidingpropertiesmap)
output class for Map payloads | -| static class | [ObjectWithCollidingProperties.SomepropBoxed](#somepropboxed)
abstract sealed validated payload class | -| static class | [ObjectWithCollidingProperties.SomepropBoxedMap](#somepropboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ObjectWithCollidingProperties.SomepropBoxed](#somepropboxed)
abstract sealed validated payload class | +| record | [ObjectWithCollidingProperties.SomepropBoxedMap](#somepropboxedmap)
boxed class to store validated Map payloads | | static class | [ObjectWithCollidingProperties.Someprop](#someprop)
schema class | -| static class | [ObjectWithCollidingProperties.SomePropBoxed](#somepropboxed)
abstract sealed validated payload class | -| static class | [ObjectWithCollidingProperties.SomePropBoxedMap](#somepropboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ObjectWithCollidingProperties.SomePropBoxed](#somepropboxed)
abstract sealed validated payload class | +| record | [ObjectWithCollidingProperties.SomePropBoxedMap](#somepropboxedmap)
boxed class to store validated Map payloads | | static class | [ObjectWithCollidingProperties.SomeProp](#someprop)
schema class | ## ObjectWithCollidingProperties1Boxed @@ -32,20 +32,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ObjectWithCollidingProperties1BoxedMap -public static final class ObjectWithCollidingProperties1BoxedMap
+public record ObjectWithCollidingProperties1BoxedMap
implements [ObjectWithCollidingProperties1Boxed](#objectwithcollidingproperties1boxed) -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 | | --------------------------- | | ObjectWithCollidingProperties1BoxedMap([ObjectWithCollidingPropertiesMap](#objectwithcollidingpropertiesmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ObjectWithCollidingPropertiesMap](#objectwithcollidingpropertiesmap) | data
validated payload | +| [ObjectWithCollidingPropertiesMap](#objectwithcollidingpropertiesmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ObjectWithCollidingProperties1 public static class ObjectWithCollidingProperties1
@@ -141,20 +142,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## SomepropBoxedMap -public static final class SomepropBoxedMap
+public record SomepropBoxedMap
implements [SomepropBoxed](#somepropboxed) -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 | | --------------------------- | | SomepropBoxedMap(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 | ## Someprop public static class Someprop
@@ -175,20 +177,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## SomePropBoxedMap -public static final class SomePropBoxedMap
+public record SomePropBoxedMap
implements [SomePropBoxed](#somepropboxed) -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 | | --------------------------- | | SomePropBoxedMap(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 | ## SomeProp public static class SomeProp
diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithDecimalProperties.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithDecimalProperties.md index eb0516701d6..66545c1243a 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithDecimalProperties.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithDecimalProperties.md @@ -12,13 +12,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ObjectWithDecimalProperties.ObjectWithDecimalProperties1Boxed](#objectwithdecimalproperties1boxed)
abstract sealed validated payload class | -| static class | [ObjectWithDecimalProperties.ObjectWithDecimalProperties1BoxedMap](#objectwithdecimalproperties1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ObjectWithDecimalProperties.ObjectWithDecimalProperties1Boxed](#objectwithdecimalproperties1boxed)
abstract sealed validated payload class | +| record | [ObjectWithDecimalProperties.ObjectWithDecimalProperties1BoxedMap](#objectwithdecimalproperties1boxedmap)
boxed class to store validated Map payloads | | static class | [ObjectWithDecimalProperties.ObjectWithDecimalProperties1](#objectwithdecimalproperties1)
schema class | | static class | [ObjectWithDecimalProperties.ObjectWithDecimalPropertiesMapBuilder](#objectwithdecimalpropertiesmapbuilder)
builder for Map payloads | | static class | [ObjectWithDecimalProperties.ObjectWithDecimalPropertiesMap](#objectwithdecimalpropertiesmap)
output class for Map payloads | -| static class | [ObjectWithDecimalProperties.WidthBoxed](#widthboxed)
abstract sealed validated payload class | -| static class | [ObjectWithDecimalProperties.WidthBoxedString](#widthboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ObjectWithDecimalProperties.WidthBoxed](#widthboxed)
abstract sealed validated payload class | +| record | [ObjectWithDecimalProperties.WidthBoxedString](#widthboxedstring)
boxed class to store validated String payloads | | static class | [ObjectWithDecimalProperties.Width](#width)
schema class | ## ObjectWithDecimalProperties1Boxed @@ -29,20 +29,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ObjectWithDecimalProperties1BoxedMap -public static final class ObjectWithDecimalProperties1BoxedMap
+public record ObjectWithDecimalProperties1BoxedMap
implements [ObjectWithDecimalProperties1Boxed](#objectwithdecimalproperties1boxed) -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 | | --------------------------- | | ObjectWithDecimalProperties1BoxedMap([ObjectWithDecimalPropertiesMap](#objectwithdecimalpropertiesmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ObjectWithDecimalPropertiesMap](#objectwithdecimalpropertiesmap) | data
validated payload | +| [ObjectWithDecimalPropertiesMap](#objectwithdecimalpropertiesmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ObjectWithDecimalProperties1 public static class ObjectWithDecimalProperties1
@@ -153,20 +154,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## WidthBoxedString -public static final class WidthBoxedString
+public record WidthBoxedString
implements [WidthBoxed](#widthboxed) -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 | | --------------------------- | | WidthBoxedString(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 | ## Width public static class Width
diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithDifficultlyNamedProps.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithDifficultlyNamedProps.md index eddb03fb22c..e19b030e0a0 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithDifficultlyNamedProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithDifficultlyNamedProps.md @@ -12,19 +12,19 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ObjectWithDifficultlyNamedProps.ObjectWithDifficultlyNamedProps1Boxed](#objectwithdifficultlynamedprops1boxed)
abstract sealed validated payload class | -| static class | [ObjectWithDifficultlyNamedProps.ObjectWithDifficultlyNamedProps1BoxedMap](#objectwithdifficultlynamedprops1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ObjectWithDifficultlyNamedProps.ObjectWithDifficultlyNamedProps1Boxed](#objectwithdifficultlynamedprops1boxed)
abstract sealed validated payload class | +| record | [ObjectWithDifficultlyNamedProps.ObjectWithDifficultlyNamedProps1BoxedMap](#objectwithdifficultlynamedprops1boxedmap)
boxed class to store validated Map payloads | | static class | [ObjectWithDifficultlyNamedProps.ObjectWithDifficultlyNamedProps1](#objectwithdifficultlynamedprops1)
schema class | | static class | [ObjectWithDifficultlyNamedProps.ObjectWithDifficultlyNamedPropsMapBuilder](#objectwithdifficultlynamedpropsmapbuilder)
builder for Map payloads | | static class | [ObjectWithDifficultlyNamedProps.ObjectWithDifficultlyNamedPropsMap](#objectwithdifficultlynamedpropsmap)
output class for Map payloads | -| static class | [ObjectWithDifficultlyNamedProps.Schema123NumberBoxed](#schema123numberboxed)
abstract sealed validated payload class | -| static class | [ObjectWithDifficultlyNamedProps.Schema123NumberBoxedNumber](#schema123numberboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [ObjectWithDifficultlyNamedProps.Schema123NumberBoxed](#schema123numberboxed)
abstract sealed validated payload class | +| record | [ObjectWithDifficultlyNamedProps.Schema123NumberBoxedNumber](#schema123numberboxednumber)
boxed class to store validated Number payloads | | static class | [ObjectWithDifficultlyNamedProps.Schema123Number](#schema123number)
schema class | -| static class | [ObjectWithDifficultlyNamedProps.Schema123listBoxed](#schema123listboxed)
abstract sealed validated payload class | -| static class | [ObjectWithDifficultlyNamedProps.Schema123listBoxedString](#schema123listboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ObjectWithDifficultlyNamedProps.Schema123listBoxed](#schema123listboxed)
abstract sealed validated payload class | +| record | [ObjectWithDifficultlyNamedProps.Schema123listBoxedString](#schema123listboxedstring)
boxed class to store validated String payloads | | static class | [ObjectWithDifficultlyNamedProps.Schema123list](#schema123list)
schema class | -| static class | [ObjectWithDifficultlyNamedProps.SpecialpropertynameBoxed](#specialpropertynameboxed)
abstract sealed validated payload class | -| static class | [ObjectWithDifficultlyNamedProps.SpecialpropertynameBoxedNumber](#specialpropertynameboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [ObjectWithDifficultlyNamedProps.SpecialpropertynameBoxed](#specialpropertynameboxed)
abstract sealed validated payload class | +| record | [ObjectWithDifficultlyNamedProps.SpecialpropertynameBoxedNumber](#specialpropertynameboxednumber)
boxed class to store validated Number payloads | | static class | [ObjectWithDifficultlyNamedProps.Specialpropertyname](#specialpropertyname)
schema class | ## ObjectWithDifficultlyNamedProps1Boxed @@ -35,20 +35,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ObjectWithDifficultlyNamedProps1BoxedMap -public static final class ObjectWithDifficultlyNamedProps1BoxedMap
+public record ObjectWithDifficultlyNamedProps1BoxedMap
implements [ObjectWithDifficultlyNamedProps1Boxed](#objectwithdifficultlynamedprops1boxed) -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 | | --------------------------- | | ObjectWithDifficultlyNamedProps1BoxedMap([ObjectWithDifficultlyNamedPropsMap](#objectwithdifficultlynamedpropsmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ObjectWithDifficultlyNamedPropsMap](#objectwithdifficultlynamedpropsmap) | data
validated payload | +| [ObjectWithDifficultlyNamedPropsMap](#objectwithdifficultlynamedpropsmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ObjectWithDifficultlyNamedProps1 public static class ObjectWithDifficultlyNamedProps1
@@ -172,20 +173,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema123NumberBoxedNumber -public static final class Schema123NumberBoxedNumber
+public record Schema123NumberBoxedNumber
implements [Schema123NumberBoxed](#schema123numberboxed) -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 | | --------------------------- | | Schema123NumberBoxedNumber(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 | ## Schema123Number public static class Schema123Number
@@ -206,20 +208,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema123listBoxedString -public static final class Schema123listBoxedString
+public record Schema123listBoxedString
implements [Schema123listBoxed](#schema123listboxed) -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 | | --------------------------- | | Schema123listBoxedString(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 | ## Schema123list public static class Schema123list
@@ -240,20 +243,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## SpecialpropertynameBoxedNumber -public static final class SpecialpropertynameBoxedNumber
+public record SpecialpropertynameBoxedNumber
implements [SpecialpropertynameBoxed](#specialpropertynameboxed) -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 | | --------------------------- | | SpecialpropertynameBoxedNumber(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 | ## Specialpropertyname public static class Specialpropertyname
diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithInlineCompositionProperty.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithInlineCompositionProperty.md index 3c9aebb95ab..cf31922ec5b 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithInlineCompositionProperty.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithInlineCompositionProperty.md @@ -12,21 +12,21 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ObjectWithInlineCompositionProperty.ObjectWithInlineCompositionProperty1Boxed](#objectwithinlinecompositionproperty1boxed)
abstract sealed validated payload class | -| static class | [ObjectWithInlineCompositionProperty.ObjectWithInlineCompositionProperty1BoxedMap](#objectwithinlinecompositionproperty1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ObjectWithInlineCompositionProperty.ObjectWithInlineCompositionProperty1Boxed](#objectwithinlinecompositionproperty1boxed)
abstract sealed validated payload class | +| record | [ObjectWithInlineCompositionProperty.ObjectWithInlineCompositionProperty1BoxedMap](#objectwithinlinecompositionproperty1boxedmap)
boxed class to store validated Map payloads | | static class | [ObjectWithInlineCompositionProperty.ObjectWithInlineCompositionProperty1](#objectwithinlinecompositionproperty1)
schema class | | static class | [ObjectWithInlineCompositionProperty.ObjectWithInlineCompositionPropertyMapBuilder](#objectwithinlinecompositionpropertymapbuilder)
builder for Map payloads | | static class | [ObjectWithInlineCompositionProperty.ObjectWithInlineCompositionPropertyMap](#objectwithinlinecompositionpropertymap)
output class for Map payloads | -| static class | [ObjectWithInlineCompositionProperty.SomePropBoxed](#somepropboxed)
abstract sealed validated payload class | -| static class | [ObjectWithInlineCompositionProperty.SomePropBoxedVoid](#somepropboxedvoid)
boxed class to store validated null payloads | -| static class | [ObjectWithInlineCompositionProperty.SomePropBoxedBoolean](#somepropboxedboolean)
boxed class to store validated boolean payloads | -| static class | [ObjectWithInlineCompositionProperty.SomePropBoxedNumber](#somepropboxednumber)
boxed class to store validated Number payloads | -| static class | [ObjectWithInlineCompositionProperty.SomePropBoxedString](#somepropboxedstring)
boxed class to store validated String payloads | -| static class | [ObjectWithInlineCompositionProperty.SomePropBoxedList](#somepropboxedlist)
boxed class to store validated List payloads | -| static class | [ObjectWithInlineCompositionProperty.SomePropBoxedMap](#somepropboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ObjectWithInlineCompositionProperty.SomePropBoxed](#somepropboxed)
abstract sealed validated payload class | +| record | [ObjectWithInlineCompositionProperty.SomePropBoxedVoid](#somepropboxedvoid)
boxed class to store validated null payloads | +| record | [ObjectWithInlineCompositionProperty.SomePropBoxedBoolean](#somepropboxedboolean)
boxed class to store validated boolean payloads | +| record | [ObjectWithInlineCompositionProperty.SomePropBoxedNumber](#somepropboxednumber)
boxed class to store validated Number payloads | +| record | [ObjectWithInlineCompositionProperty.SomePropBoxedString](#somepropboxedstring)
boxed class to store validated String payloads | +| record | [ObjectWithInlineCompositionProperty.SomePropBoxedList](#somepropboxedlist)
boxed class to store validated List payloads | +| record | [ObjectWithInlineCompositionProperty.SomePropBoxedMap](#somepropboxedmap)
boxed class to store validated Map payloads | | static class | [ObjectWithInlineCompositionProperty.SomeProp](#someprop)
schema class | -| static class | [ObjectWithInlineCompositionProperty.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | -| static class | [ObjectWithInlineCompositionProperty.Schema0BoxedString](#schema0boxedstring)
boxed class to store validated String payloads | +| sealed interface | [ObjectWithInlineCompositionProperty.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | +| record | [ObjectWithInlineCompositionProperty.Schema0BoxedString](#schema0boxedstring)
boxed class to store validated String payloads | | static class | [ObjectWithInlineCompositionProperty.Schema0](#schema0)
schema class | ## ObjectWithInlineCompositionProperty1Boxed @@ -37,20 +37,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ObjectWithInlineCompositionProperty1BoxedMap -public static final class ObjectWithInlineCompositionProperty1BoxedMap
+public record ObjectWithInlineCompositionProperty1BoxedMap
implements [ObjectWithInlineCompositionProperty1Boxed](#objectwithinlinecompositionproperty1boxed) -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 | | --------------------------- | | ObjectWithInlineCompositionProperty1BoxedMap([ObjectWithInlineCompositionPropertyMap](#objectwithinlinecompositionpropertymap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ObjectWithInlineCompositionPropertyMap](#objectwithinlinecompositionpropertymap) | data
validated payload | +| [ObjectWithInlineCompositionPropertyMap](#objectwithinlinecompositionpropertymap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ObjectWithInlineCompositionProperty1 public static class ObjectWithInlineCompositionProperty1
@@ -154,100 +155,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## SomePropBoxedVoid -public static final class SomePropBoxedVoid
+public record SomePropBoxedVoid
implements [SomePropBoxed](#somepropboxed) -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 | | --------------------------- | | SomePropBoxedVoid(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 | ## SomePropBoxedBoolean -public static final class SomePropBoxedBoolean
+public record SomePropBoxedBoolean
implements [SomePropBoxed](#somepropboxed) -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 | | --------------------------- | | SomePropBoxedBoolean(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 | ## SomePropBoxedNumber -public static final class SomePropBoxedNumber
+public record SomePropBoxedNumber
implements [SomePropBoxed](#somepropboxed) -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 | | --------------------------- | | SomePropBoxedNumber(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 | ## SomePropBoxedString -public static final class SomePropBoxedString
+public record SomePropBoxedString
implements [SomePropBoxed](#somepropboxed) -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 | | --------------------------- | | SomePropBoxedString(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 | ## SomePropBoxedList -public static final class SomePropBoxedList
+public record SomePropBoxedList
implements [SomePropBoxed](#somepropboxed) -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 | | --------------------------- | | SomePropBoxedList(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 | ## SomePropBoxedMap -public static final class SomePropBoxedMap
+public record SomePropBoxedMap
implements [SomePropBoxed](#somepropboxed) -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 | | --------------------------- | | SomePropBoxedMap(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 | ## SomeProp public static class SomeProp
@@ -288,20 +295,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema0BoxedString -public static final class Schema0BoxedString
+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 | ## Schema0 public static class Schema0
diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithInvalidNamedRefedProperties.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithInvalidNamedRefedProperties.md index 62ab4a3933d..20a951e5ea3 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithInvalidNamedRefedProperties.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithInvalidNamedRefedProperties.md @@ -12,8 +12,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ObjectWithInvalidNamedRefedProperties.ObjectWithInvalidNamedRefedProperties1Boxed](#objectwithinvalidnamedrefedproperties1boxed)
abstract sealed validated payload class | -| static class | [ObjectWithInvalidNamedRefedProperties.ObjectWithInvalidNamedRefedProperties1BoxedMap](#objectwithinvalidnamedrefedproperties1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ObjectWithInvalidNamedRefedProperties.ObjectWithInvalidNamedRefedProperties1Boxed](#objectwithinvalidnamedrefedproperties1boxed)
abstract sealed validated payload class | +| record | [ObjectWithInvalidNamedRefedProperties.ObjectWithInvalidNamedRefedProperties1BoxedMap](#objectwithinvalidnamedrefedproperties1boxedmap)
boxed class to store validated Map payloads | | static class | [ObjectWithInvalidNamedRefedProperties.ObjectWithInvalidNamedRefedProperties1](#objectwithinvalidnamedrefedproperties1)
schema class | | static class | [ObjectWithInvalidNamedRefedProperties.ObjectWithInvalidNamedRefedPropertiesMapBuilder](#objectwithinvalidnamedrefedpropertiesmapbuilder)
builder for Map payloads | | static class | [ObjectWithInvalidNamedRefedProperties.ObjectWithInvalidNamedRefedPropertiesMap](#objectwithinvalidnamedrefedpropertiesmap)
output class for Map payloads | @@ -26,20 +26,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ObjectWithInvalidNamedRefedProperties1BoxedMap -public static final class ObjectWithInvalidNamedRefedProperties1BoxedMap
+public record ObjectWithInvalidNamedRefedProperties1BoxedMap
implements [ObjectWithInvalidNamedRefedProperties1Boxed](#objectwithinvalidnamedrefedproperties1boxed) -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 | | --------------------------- | | ObjectWithInvalidNamedRefedProperties1BoxedMap([ObjectWithInvalidNamedRefedPropertiesMap](#objectwithinvalidnamedrefedpropertiesmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ObjectWithInvalidNamedRefedPropertiesMap](#objectwithinvalidnamedrefedpropertiesmap) | data
validated payload | +| [ObjectWithInvalidNamedRefedPropertiesMap](#objectwithinvalidnamedrefedpropertiesmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ObjectWithInvalidNamedRefedProperties1 public static class ObjectWithInvalidNamedRefedProperties1
diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithNonIntersectingValues.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithNonIntersectingValues.md index 65d79bfc06d..92c3eb31227 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithNonIntersectingValues.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithNonIntersectingValues.md @@ -12,16 +12,16 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ObjectWithNonIntersectingValues.ObjectWithNonIntersectingValues1Boxed](#objectwithnonintersectingvalues1boxed)
abstract sealed validated payload class | -| static class | [ObjectWithNonIntersectingValues.ObjectWithNonIntersectingValues1BoxedMap](#objectwithnonintersectingvalues1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ObjectWithNonIntersectingValues.ObjectWithNonIntersectingValues1Boxed](#objectwithnonintersectingvalues1boxed)
abstract sealed validated payload class | +| record | [ObjectWithNonIntersectingValues.ObjectWithNonIntersectingValues1BoxedMap](#objectwithnonintersectingvalues1boxedmap)
boxed class to store validated Map payloads | | static class | [ObjectWithNonIntersectingValues.ObjectWithNonIntersectingValues1](#objectwithnonintersectingvalues1)
schema class | | static class | [ObjectWithNonIntersectingValues.ObjectWithNonIntersectingValuesMapBuilder](#objectwithnonintersectingvaluesmapbuilder)
builder for Map payloads | | static class | [ObjectWithNonIntersectingValues.ObjectWithNonIntersectingValuesMap](#objectwithnonintersectingvaluesmap)
output class for Map payloads | -| static class | [ObjectWithNonIntersectingValues.ABoxed](#aboxed)
abstract sealed validated payload class | -| static class | [ObjectWithNonIntersectingValues.ABoxedNumber](#aboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [ObjectWithNonIntersectingValues.ABoxed](#aboxed)
abstract sealed validated payload class | +| record | [ObjectWithNonIntersectingValues.ABoxedNumber](#aboxednumber)
boxed class to store validated Number payloads | | static class | [ObjectWithNonIntersectingValues.A](#a)
schema class | -| static class | [ObjectWithNonIntersectingValues.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | -| static class | [ObjectWithNonIntersectingValues.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ObjectWithNonIntersectingValues.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| record | [ObjectWithNonIntersectingValues.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | | static class | [ObjectWithNonIntersectingValues.AdditionalProperties](#additionalproperties)
schema class | ## ObjectWithNonIntersectingValues1Boxed @@ -32,20 +32,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ObjectWithNonIntersectingValues1BoxedMap -public static final class ObjectWithNonIntersectingValues1BoxedMap
+public record ObjectWithNonIntersectingValues1BoxedMap
implements [ObjectWithNonIntersectingValues1Boxed](#objectwithnonintersectingvalues1boxed) -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 | | --------------------------- | | ObjectWithNonIntersectingValues1BoxedMap([ObjectWithNonIntersectingValuesMap](#objectwithnonintersectingvaluesmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ObjectWithNonIntersectingValuesMap](#objectwithnonintersectingvaluesmap) | data
validated payload | +| [ObjectWithNonIntersectingValuesMap](#objectwithnonintersectingvaluesmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ObjectWithNonIntersectingValues1 public static class ObjectWithNonIntersectingValues1
@@ -136,20 +137,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ABoxedNumber -public static final class ABoxedNumber
+public record ABoxedNumber
implements [ABoxed](#aboxed) -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 | | --------------------------- | | ABoxedNumber(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 | ## A public static class A
@@ -170,20 +172,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedString -public static final class AdditionalPropertiesBoxedString
+public record AdditionalPropertiesBoxedString
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedString(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 | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithOnlyOptionalProps.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithOnlyOptionalProps.md index c68edabf138..e82484fab5d 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithOnlyOptionalProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithOnlyOptionalProps.md @@ -12,24 +12,24 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ObjectWithOnlyOptionalProps.ObjectWithOnlyOptionalProps1Boxed](#objectwithonlyoptionalprops1boxed)
abstract sealed validated payload class | -| static class | [ObjectWithOnlyOptionalProps.ObjectWithOnlyOptionalProps1BoxedMap](#objectwithonlyoptionalprops1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ObjectWithOnlyOptionalProps.ObjectWithOnlyOptionalProps1Boxed](#objectwithonlyoptionalprops1boxed)
abstract sealed validated payload class | +| record | [ObjectWithOnlyOptionalProps.ObjectWithOnlyOptionalProps1BoxedMap](#objectwithonlyoptionalprops1boxedmap)
boxed class to store validated Map payloads | | static class | [ObjectWithOnlyOptionalProps.ObjectWithOnlyOptionalProps1](#objectwithonlyoptionalprops1)
schema class | | static class | [ObjectWithOnlyOptionalProps.ObjectWithOnlyOptionalPropsMapBuilder](#objectwithonlyoptionalpropsmapbuilder)
builder for Map payloads | | static class | [ObjectWithOnlyOptionalProps.ObjectWithOnlyOptionalPropsMap](#objectwithonlyoptionalpropsmap)
output class for Map payloads | -| static class | [ObjectWithOnlyOptionalProps.BBoxed](#bboxed)
abstract sealed validated payload class | -| static class | [ObjectWithOnlyOptionalProps.BBoxedNumber](#bboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [ObjectWithOnlyOptionalProps.BBoxed](#bboxed)
abstract sealed validated payload class | +| record | [ObjectWithOnlyOptionalProps.BBoxedNumber](#bboxednumber)
boxed class to store validated Number payloads | | static class | [ObjectWithOnlyOptionalProps.B](#b)
schema class | -| static class | [ObjectWithOnlyOptionalProps.ABoxed](#aboxed)
abstract sealed validated payload class | -| static class | [ObjectWithOnlyOptionalProps.ABoxedString](#aboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ObjectWithOnlyOptionalProps.ABoxed](#aboxed)
abstract sealed validated payload class | +| record | [ObjectWithOnlyOptionalProps.ABoxedString](#aboxedstring)
boxed class to store validated String payloads | | static class | [ObjectWithOnlyOptionalProps.A](#a)
schema class | -| static class | [ObjectWithOnlyOptionalProps.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | -| static class | [ObjectWithOnlyOptionalProps.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| static class | [ObjectWithOnlyOptionalProps.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| static class | [ObjectWithOnlyOptionalProps.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| static class | [ObjectWithOnlyOptionalProps.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| static class | [ObjectWithOnlyOptionalProps.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| static class | [ObjectWithOnlyOptionalProps.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ObjectWithOnlyOptionalProps.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| record | [ObjectWithOnlyOptionalProps.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [ObjectWithOnlyOptionalProps.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [ObjectWithOnlyOptionalProps.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [ObjectWithOnlyOptionalProps.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [ObjectWithOnlyOptionalProps.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [ObjectWithOnlyOptionalProps.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | | static class | [ObjectWithOnlyOptionalProps.AdditionalProperties](#additionalproperties)
schema class | ## ObjectWithOnlyOptionalProps1Boxed @@ -40,20 +40,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ObjectWithOnlyOptionalProps1BoxedMap -public static final class ObjectWithOnlyOptionalProps1BoxedMap
+public record ObjectWithOnlyOptionalProps1BoxedMap
implements [ObjectWithOnlyOptionalProps1Boxed](#objectwithonlyoptionalprops1boxed) -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 | | --------------------------- | | ObjectWithOnlyOptionalProps1BoxedMap([ObjectWithOnlyOptionalPropsMap](#objectwithonlyoptionalpropsmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ObjectWithOnlyOptionalPropsMap](#objectwithonlyoptionalpropsmap) | data
validated payload | +| [ObjectWithOnlyOptionalPropsMap](#objectwithonlyoptionalpropsmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ObjectWithOnlyOptionalProps1 public static class ObjectWithOnlyOptionalProps1
@@ -144,20 +145,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## BBoxedNumber -public static final class BBoxedNumber
+public record BBoxedNumber
implements [BBoxed](#bboxed) -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 | | --------------------------- | | BBoxedNumber(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 | ## B public static class B
@@ -178,20 +180,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ABoxedString -public static final class ABoxedString
+public record ABoxedString
implements [ABoxed](#aboxed) -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 | | --------------------------- | | ABoxedString(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 | ## A public static class A
@@ -217,100 +220,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedVoid -public static final class AdditionalPropertiesBoxedVoid
+public record AdditionalPropertiesBoxedVoid
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedVoid(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 | ## AdditionalPropertiesBoxedBoolean -public static final class AdditionalPropertiesBoxedBoolean
+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 | ## AdditionalPropertiesBoxedNumber -public static final class AdditionalPropertiesBoxedNumber
+public record AdditionalPropertiesBoxedNumber
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedNumber(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 | ## AdditionalPropertiesBoxedString -public static final class AdditionalPropertiesBoxedString
+public record AdditionalPropertiesBoxedString
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedString(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 | ## AdditionalPropertiesBoxedList -public static final class AdditionalPropertiesBoxedList
+public record AdditionalPropertiesBoxedList
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedList(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 | ## AdditionalPropertiesBoxedMap -public static final class AdditionalPropertiesBoxedMap
+public record AdditionalPropertiesBoxedMap
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedMap(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 | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithOptionalTestProp.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithOptionalTestProp.md index b8b3893b0fd..43daf8cc61c 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithOptionalTestProp.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithOptionalTestProp.md @@ -12,13 +12,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ObjectWithOptionalTestProp.ObjectWithOptionalTestProp1Boxed](#objectwithoptionaltestprop1boxed)
abstract sealed validated payload class | -| static class | [ObjectWithOptionalTestProp.ObjectWithOptionalTestProp1BoxedMap](#objectwithoptionaltestprop1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ObjectWithOptionalTestProp.ObjectWithOptionalTestProp1Boxed](#objectwithoptionaltestprop1boxed)
abstract sealed validated payload class | +| record | [ObjectWithOptionalTestProp.ObjectWithOptionalTestProp1BoxedMap](#objectwithoptionaltestprop1boxedmap)
boxed class to store validated Map payloads | | static class | [ObjectWithOptionalTestProp.ObjectWithOptionalTestProp1](#objectwithoptionaltestprop1)
schema class | | static class | [ObjectWithOptionalTestProp.ObjectWithOptionalTestPropMapBuilder](#objectwithoptionaltestpropmapbuilder)
builder for Map payloads | | static class | [ObjectWithOptionalTestProp.ObjectWithOptionalTestPropMap](#objectwithoptionaltestpropmap)
output class for Map payloads | -| static class | [ObjectWithOptionalTestProp.TestBoxed](#testboxed)
abstract sealed validated payload class | -| static class | [ObjectWithOptionalTestProp.TestBoxedString](#testboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ObjectWithOptionalTestProp.TestBoxed](#testboxed)
abstract sealed validated payload class | +| record | [ObjectWithOptionalTestProp.TestBoxedString](#testboxedstring)
boxed class to store validated String payloads | | static class | [ObjectWithOptionalTestProp.Test](#test)
schema class | ## ObjectWithOptionalTestProp1Boxed @@ -29,20 +29,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ObjectWithOptionalTestProp1BoxedMap -public static final class ObjectWithOptionalTestProp1BoxedMap
+public record ObjectWithOptionalTestProp1BoxedMap
implements [ObjectWithOptionalTestProp1Boxed](#objectwithoptionaltestprop1boxed) -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 | | --------------------------- | | ObjectWithOptionalTestProp1BoxedMap([ObjectWithOptionalTestPropMap](#objectwithoptionaltestpropmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ObjectWithOptionalTestPropMap](#objectwithoptionaltestpropmap) | data
validated payload | +| [ObjectWithOptionalTestPropMap](#objectwithoptionaltestpropmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ObjectWithOptionalTestProp1 public static class ObjectWithOptionalTestProp1
@@ -135,20 +136,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## TestBoxedString -public static final class TestBoxedString
+public record TestBoxedString
implements [TestBoxed](#testboxed) -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 | | --------------------------- | | TestBoxedString(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 | ## Test public static class Test
diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithValidations.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithValidations.md index 2dfbd25a9b3..55231bb4b67 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithValidations.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithValidations.md @@ -10,8 +10,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ObjectWithValidations.ObjectWithValidations1Boxed](#objectwithvalidations1boxed)
abstract sealed validated payload class | -| static class | [ObjectWithValidations.ObjectWithValidations1BoxedMap](#objectwithvalidations1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ObjectWithValidations.ObjectWithValidations1Boxed](#objectwithvalidations1boxed)
abstract sealed validated payload class | +| record | [ObjectWithValidations.ObjectWithValidations1BoxedMap](#objectwithvalidations1boxedmap)
boxed class to store validated Map payloads | | static class | [ObjectWithValidations.ObjectWithValidations1](#objectwithvalidations1)
schema class | ## ObjectWithValidations1Boxed @@ -22,20 +22,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ObjectWithValidations1BoxedMap -public static final class ObjectWithValidations1BoxedMap
+public record ObjectWithValidations1BoxedMap
implements [ObjectWithValidations1Boxed](#objectwithvalidations1boxed) -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 | | --------------------------- | | ObjectWithValidations1BoxedMap(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 | ## ObjectWithValidations1 public static class ObjectWithValidations1
diff --git a/samples/client/petstore/java/docs/components/schemas/Order.md b/samples/client/petstore/java/docs/components/schemas/Order.md index 811a6d14faf..93471d71a8e 100644 --- a/samples/client/petstore/java/docs/components/schemas/Order.md +++ b/samples/client/petstore/java/docs/components/schemas/Order.md @@ -13,29 +13,29 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Order.Order1Boxed](#order1boxed)
abstract sealed validated payload class | -| static class | [Order.Order1BoxedMap](#order1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Order.Order1Boxed](#order1boxed)
abstract sealed validated payload class | +| record | [Order.Order1BoxedMap](#order1boxedmap)
boxed class to store validated Map payloads | | static class | [Order.Order1](#order1)
schema class | | static class | [Order.OrderMapBuilder](#ordermapbuilder)
builder for Map payloads | | static class | [Order.OrderMap](#ordermap)
output class for Map payloads | -| static class | [Order.CompleteBoxed](#completeboxed)
abstract sealed validated payload class | -| static class | [Order.CompleteBoxedBoolean](#completeboxedboolean)
boxed class to store validated boolean payloads | +| sealed interface | [Order.CompleteBoxed](#completeboxed)
abstract sealed validated payload class | +| record | [Order.CompleteBoxedBoolean](#completeboxedboolean)
boxed class to store validated boolean payloads | | static class | [Order.Complete](#complete)
schema class | -| static class | [Order.StatusBoxed](#statusboxed)
abstract sealed validated payload class | -| static class | [Order.StatusBoxedString](#statusboxedstring)
boxed class to store validated String payloads | +| sealed interface | [Order.StatusBoxed](#statusboxed)
abstract sealed validated payload class | +| record | [Order.StatusBoxedString](#statusboxedstring)
boxed class to store validated String payloads | | static class | [Order.Status](#status)
schema class | | enum | [Order.StringStatusEnums](#stringstatusenums)
String enum | -| static class | [Order.ShipDateBoxed](#shipdateboxed)
abstract sealed validated payload class | -| static class | [Order.ShipDateBoxedString](#shipdateboxedstring)
boxed class to store validated String payloads | +| sealed interface | [Order.ShipDateBoxed](#shipdateboxed)
abstract sealed validated payload class | +| record | [Order.ShipDateBoxedString](#shipdateboxedstring)
boxed class to store validated String payloads | | static class | [Order.ShipDate](#shipdate)
schema class | -| static class | [Order.QuantityBoxed](#quantityboxed)
abstract sealed validated payload class | -| static class | [Order.QuantityBoxedNumber](#quantityboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [Order.QuantityBoxed](#quantityboxed)
abstract sealed validated payload class | +| record | [Order.QuantityBoxedNumber](#quantityboxednumber)
boxed class to store validated Number payloads | | static class | [Order.Quantity](#quantity)
schema class | -| static class | [Order.PetIdBoxed](#petidboxed)
abstract sealed validated payload class | -| static class | [Order.PetIdBoxedNumber](#petidboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [Order.PetIdBoxed](#petidboxed)
abstract sealed validated payload class | +| record | [Order.PetIdBoxedNumber](#petidboxednumber)
boxed class to store validated Number payloads | | static class | [Order.PetId](#petid)
schema class | -| static class | [Order.IdBoxed](#idboxed)
abstract sealed validated payload class | -| static class | [Order.IdBoxedNumber](#idboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [Order.IdBoxed](#idboxed)
abstract sealed validated payload class | +| record | [Order.IdBoxedNumber](#idboxednumber)
boxed class to store validated Number payloads | | static class | [Order.Id](#id)
schema class | ## Order1Boxed @@ -46,20 +46,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Order1BoxedMap -public static final class Order1BoxedMap
+public record Order1BoxedMap
implements [Order1Boxed](#order1boxed) -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 | | --------------------------- | | Order1BoxedMap([OrderMap](#ordermap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [OrderMap](#ordermap) | data
validated payload | +| [OrderMap](#ordermap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Order1 public static class Order1
@@ -180,20 +181,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## CompleteBoxedBoolean -public static final class CompleteBoxedBoolean
+public record CompleteBoxedBoolean
implements [CompleteBoxed](#completeboxed) -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 | | --------------------------- | | CompleteBoxedBoolean(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 | ## Complete public static class Complete
@@ -214,20 +216,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## StatusBoxedString -public static final class StatusBoxedString
+public record StatusBoxedString
implements [StatusBoxed](#statusboxed) -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 | | --------------------------- | | StatusBoxedString(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 | ## Status public static class Status
@@ -294,20 +297,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ShipDateBoxedString -public static final class ShipDateBoxedString
+public record ShipDateBoxedString
implements [ShipDateBoxed](#shipdateboxed) -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 | | --------------------------- | | ShipDateBoxedString(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 | ## ShipDate public static class ShipDate
@@ -328,20 +332,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## QuantityBoxedNumber -public static final class QuantityBoxedNumber
+public record QuantityBoxedNumber
implements [QuantityBoxed](#quantityboxed) -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 | | --------------------------- | | QuantityBoxedNumber(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 | ## Quantity public static class Quantity
@@ -362,20 +367,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## PetIdBoxedNumber -public static final class PetIdBoxedNumber
+public record PetIdBoxedNumber
implements [PetIdBoxed](#petidboxed) -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 | | --------------------------- | | PetIdBoxedNumber(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 | ## PetId public static class PetId
@@ -396,20 +402,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## IdBoxedNumber -public static final class IdBoxedNumber
+public record IdBoxedNumber
implements [IdBoxed](#idboxed) -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 | | --------------------------- | | IdBoxedNumber(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 | ## Id public static class Id
diff --git a/samples/client/petstore/java/docs/components/schemas/PaginatedResultMyObjectDto.md b/samples/client/petstore/java/docs/components/schemas/PaginatedResultMyObjectDto.md index b5aacd75551..e30474cc253 100644 --- a/samples/client/petstore/java/docs/components/schemas/PaginatedResultMyObjectDto.md +++ b/samples/client/petstore/java/docs/components/schemas/PaginatedResultMyObjectDto.md @@ -14,26 +14,26 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [PaginatedResultMyObjectDto.PaginatedResultMyObjectDto1Boxed](#paginatedresultmyobjectdto1boxed)
abstract sealed validated payload class | -| static class | [PaginatedResultMyObjectDto.PaginatedResultMyObjectDto1BoxedMap](#paginatedresultmyobjectdto1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [PaginatedResultMyObjectDto.PaginatedResultMyObjectDto1Boxed](#paginatedresultmyobjectdto1boxed)
abstract sealed validated payload class | +| record | [PaginatedResultMyObjectDto.PaginatedResultMyObjectDto1BoxedMap](#paginatedresultmyobjectdto1boxedmap)
boxed class to store validated Map payloads | | static class | [PaginatedResultMyObjectDto.PaginatedResultMyObjectDto1](#paginatedresultmyobjectdto1)
schema class | | static class | [PaginatedResultMyObjectDto.PaginatedResultMyObjectDtoMapBuilder](#paginatedresultmyobjectdtomapbuilder)
builder for Map payloads | | static class | [PaginatedResultMyObjectDto.PaginatedResultMyObjectDtoMap](#paginatedresultmyobjectdtomap)
output class for Map payloads | -| static class | [PaginatedResultMyObjectDto.ResultsBoxed](#resultsboxed)
abstract sealed validated payload class | -| static class | [PaginatedResultMyObjectDto.ResultsBoxedList](#resultsboxedlist)
boxed class to store validated List payloads | +| sealed interface | [PaginatedResultMyObjectDto.ResultsBoxed](#resultsboxed)
abstract sealed validated payload class | +| record | [PaginatedResultMyObjectDto.ResultsBoxedList](#resultsboxedlist)
boxed class to store validated List payloads | | static class | [PaginatedResultMyObjectDto.Results](#results)
schema class | | static class | [PaginatedResultMyObjectDto.ResultsListBuilder](#resultslistbuilder)
builder for List payloads | | static class | [PaginatedResultMyObjectDto.ResultsList](#resultslist)
output class for List payloads | -| static class | [PaginatedResultMyObjectDto.CountBoxed](#countboxed)
abstract sealed validated payload class | -| static class | [PaginatedResultMyObjectDto.CountBoxedNumber](#countboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [PaginatedResultMyObjectDto.CountBoxed](#countboxed)
abstract sealed validated payload class | +| record | [PaginatedResultMyObjectDto.CountBoxedNumber](#countboxednumber)
boxed class to store validated Number payloads | | static class | [PaginatedResultMyObjectDto.Count](#count)
schema class | -| static class | [PaginatedResultMyObjectDto.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | -| static class | [PaginatedResultMyObjectDto.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| static class | [PaginatedResultMyObjectDto.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| static class | [PaginatedResultMyObjectDto.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| static class | [PaginatedResultMyObjectDto.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| static class | [PaginatedResultMyObjectDto.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| static class | [PaginatedResultMyObjectDto.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [PaginatedResultMyObjectDto.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| record | [PaginatedResultMyObjectDto.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [PaginatedResultMyObjectDto.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [PaginatedResultMyObjectDto.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [PaginatedResultMyObjectDto.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [PaginatedResultMyObjectDto.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [PaginatedResultMyObjectDto.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | | static class | [PaginatedResultMyObjectDto.AdditionalProperties](#additionalproperties)
schema class | ## PaginatedResultMyObjectDto1Boxed @@ -44,20 +44,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## PaginatedResultMyObjectDto1BoxedMap -public static final class PaginatedResultMyObjectDto1BoxedMap
+public record PaginatedResultMyObjectDto1BoxedMap
implements [PaginatedResultMyObjectDto1Boxed](#paginatedresultmyobjectdto1boxed) -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 | | --------------------------- | | PaginatedResultMyObjectDto1BoxedMap([PaginatedResultMyObjectDtoMap](#paginatedresultmyobjectdtomap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PaginatedResultMyObjectDtoMap](#paginatedresultmyobjectdtomap) | data
validated payload | +| [PaginatedResultMyObjectDtoMap](#paginatedresultmyobjectdtomap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## PaginatedResultMyObjectDto1 public static class PaginatedResultMyObjectDto1
@@ -201,20 +202,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ResultsBoxedList -public static final class ResultsBoxedList
+public record ResultsBoxedList
implements [ResultsBoxed](#resultsboxed) -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 | | --------------------------- | | ResultsBoxedList([ResultsList](#resultslist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ResultsList](#resultslist) | data
validated payload | +| [ResultsList](#resultslist) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Results public static class Results
@@ -295,20 +297,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## CountBoxedNumber -public static final class CountBoxedNumber
+public record CountBoxedNumber
implements [CountBoxed](#countboxed) -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 | | --------------------------- | | CountBoxedNumber(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 | ## Count public static class Count
@@ -334,100 +337,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedVoid -public static final class AdditionalPropertiesBoxedVoid
+public record AdditionalPropertiesBoxedVoid
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedVoid(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 | ## AdditionalPropertiesBoxedBoolean -public static final class AdditionalPropertiesBoxedBoolean
+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 | ## AdditionalPropertiesBoxedNumber -public static final class AdditionalPropertiesBoxedNumber
+public record AdditionalPropertiesBoxedNumber
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedNumber(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 | ## AdditionalPropertiesBoxedString -public static final class AdditionalPropertiesBoxedString
+public record AdditionalPropertiesBoxedString
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedString(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 | ## AdditionalPropertiesBoxedList -public static final class AdditionalPropertiesBoxedList
+public record AdditionalPropertiesBoxedList
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedList(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 | ## AdditionalPropertiesBoxedMap -public static final class AdditionalPropertiesBoxedMap
+public record AdditionalPropertiesBoxedMap
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedMap(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 | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/ParentPet.md b/samples/client/petstore/java/docs/components/schemas/ParentPet.md index a7276fc70fc..928d0a721c1 100644 --- a/samples/client/petstore/java/docs/components/schemas/ParentPet.md +++ b/samples/client/petstore/java/docs/components/schemas/ParentPet.md @@ -10,8 +10,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ParentPet.ParentPet1Boxed](#parentpet1boxed)
abstract sealed validated payload class | -| static class | [ParentPet.ParentPet1BoxedMap](#parentpet1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ParentPet.ParentPet1Boxed](#parentpet1boxed)
abstract sealed validated payload class | +| record | [ParentPet.ParentPet1BoxedMap](#parentpet1boxedmap)
boxed class to store validated Map payloads | | static class | [ParentPet.ParentPet1](#parentpet1)
schema class | ## ParentPet1Boxed @@ -22,20 +22,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ParentPet1BoxedMap -public static final class ParentPet1BoxedMap
+public record ParentPet1BoxedMap
implements [ParentPet1Boxed](#parentpet1boxed) -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 | | --------------------------- | | ParentPet1BoxedMap(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 | ## ParentPet1 public static class ParentPet1
diff --git a/samples/client/petstore/java/docs/components/schemas/Pet.md b/samples/client/petstore/java/docs/components/schemas/Pet.md index 6f25c26ae64..28d301da55b 100644 --- a/samples/client/petstore/java/docs/components/schemas/Pet.md +++ b/samples/client/petstore/java/docs/components/schemas/Pet.md @@ -15,33 +15,33 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Pet.Pet1Boxed](#pet1boxed)
abstract sealed validated payload class | -| static class | [Pet.Pet1BoxedMap](#pet1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Pet.Pet1Boxed](#pet1boxed)
abstract sealed validated payload class | +| record | [Pet.Pet1BoxedMap](#pet1boxedmap)
boxed class to store validated Map payloads | | static class | [Pet.Pet1](#pet1)
schema class | | static class | [Pet.PetMapBuilder](#petmapbuilder)
builder for Map payloads | | static class | [Pet.PetMap](#petmap)
output class for Map payloads | -| static class | [Pet.TagsBoxed](#tagsboxed)
abstract sealed validated payload class | -| static class | [Pet.TagsBoxedList](#tagsboxedlist)
boxed class to store validated List payloads | +| sealed interface | [Pet.TagsBoxed](#tagsboxed)
abstract sealed validated payload class | +| record | [Pet.TagsBoxedList](#tagsboxedlist)
boxed class to store validated List payloads | | static class | [Pet.Tags](#tags)
schema class | | static class | [Pet.TagsListBuilder](#tagslistbuilder)
builder for List payloads | | static class | [Pet.TagsList](#tagslist)
output class for List payloads | -| static class | [Pet.StatusBoxed](#statusboxed)
abstract sealed validated payload class | -| static class | [Pet.StatusBoxedString](#statusboxedstring)
boxed class to store validated String payloads | +| sealed interface | [Pet.StatusBoxed](#statusboxed)
abstract sealed validated payload class | +| record | [Pet.StatusBoxedString](#statusboxedstring)
boxed class to store validated String payloads | | static class | [Pet.Status](#status)
schema class | | enum | [Pet.StringStatusEnums](#stringstatusenums)
String enum | -| static class | [Pet.PhotoUrlsBoxed](#photourlsboxed)
abstract sealed validated payload class | -| static class | [Pet.PhotoUrlsBoxedList](#photourlsboxedlist)
boxed class to store validated List payloads | +| sealed interface | [Pet.PhotoUrlsBoxed](#photourlsboxed)
abstract sealed validated payload class | +| record | [Pet.PhotoUrlsBoxedList](#photourlsboxedlist)
boxed class to store validated List payloads | | static class | [Pet.PhotoUrls](#photourls)
schema class | | static class | [Pet.PhotoUrlsListBuilder](#photourlslistbuilder)
builder for List payloads | | static class | [Pet.PhotoUrlsList](#photourlslist)
output class for List payloads | -| static class | [Pet.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | -| static class | [Pet.ItemsBoxedString](#itemsboxedstring)
boxed class to store validated String payloads | +| sealed interface | [Pet.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | +| record | [Pet.ItemsBoxedString](#itemsboxedstring)
boxed class to store validated String payloads | | static class | [Pet.Items](#items)
schema class | -| static class | [Pet.NameBoxed](#nameboxed)
abstract sealed validated payload class | -| static class | [Pet.NameBoxedString](#nameboxedstring)
boxed class to store validated String payloads | +| sealed interface | [Pet.NameBoxed](#nameboxed)
abstract sealed validated payload class | +| record | [Pet.NameBoxedString](#nameboxedstring)
boxed class to store validated String payloads | | static class | [Pet.Name](#name)
schema class | -| static class | [Pet.IdBoxed](#idboxed)
abstract sealed validated payload class | -| static class | [Pet.IdBoxedNumber](#idboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [Pet.IdBoxed](#idboxed)
abstract sealed validated payload class | +| record | [Pet.IdBoxedNumber](#idboxednumber)
boxed class to store validated Number payloads | | static class | [Pet.Id](#id)
schema class | ## Pet1Boxed @@ -52,20 +52,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Pet1BoxedMap -public static final class Pet1BoxedMap
+public record Pet1BoxedMap
implements [Pet1Boxed](#pet1boxed) -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 | | --------------------------- | | Pet1BoxedMap([PetMap](#petmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetMap](#petmap) | data
validated payload | +| [PetMap](#petmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Pet1 public static class Pet1
@@ -254,20 +255,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## TagsBoxedList -public static final class TagsBoxedList
+public record TagsBoxedList
implements [TagsBoxed](#tagsboxed) -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 | | --------------------------- | | TagsBoxedList([TagsList](#tagslist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [TagsList](#tagslist) | data
validated payload | +| [TagsList](#tagslist) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Tags public static class Tags
@@ -360,20 +362,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## StatusBoxedString -public static final class StatusBoxedString
+public record StatusBoxedString
implements [StatusBoxed](#statusboxed) -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 | | --------------------------- | | StatusBoxedString(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 | ## Status public static class Status
@@ -440,20 +443,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## PhotoUrlsBoxedList -public static final class PhotoUrlsBoxedList
+public record PhotoUrlsBoxedList
implements [PhotoUrlsBoxed](#photourlsboxed) -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 | | --------------------------- | | PhotoUrlsBoxedList([PhotoUrlsList](#photourlslist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PhotoUrlsList](#photourlslist) | data
validated payload | +| [PhotoUrlsList](#photourlslist) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## PhotoUrls public static class PhotoUrls
@@ -536,20 +540,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ItemsBoxedString -public static final class ItemsBoxedString
+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 | ## Items public static class Items
@@ -570,20 +575,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## NameBoxedString -public static final class NameBoxedString
+public record NameBoxedString
implements [NameBoxed](#nameboxed) -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 | | --------------------------- | | NameBoxedString(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 | ## Name public static class Name
@@ -604,20 +610,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## IdBoxedNumber -public static final class IdBoxedNumber
+public record IdBoxedNumber
implements [IdBoxed](#idboxed) -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 | | --------------------------- | | IdBoxedNumber(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 | ## Id public static class Id
diff --git a/samples/client/petstore/java/docs/components/schemas/Pig.md b/samples/client/petstore/java/docs/components/schemas/Pig.md index 2ff5bf4d3e0..0b492a054ed 100644 --- a/samples/client/petstore/java/docs/components/schemas/Pig.md +++ b/samples/client/petstore/java/docs/components/schemas/Pig.md @@ -10,13 +10,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Pig.Pig1Boxed](#pig1boxed)
abstract sealed validated payload class | -| static class | [Pig.Pig1BoxedVoid](#pig1boxedvoid)
boxed class to store validated null payloads | -| static class | [Pig.Pig1BoxedBoolean](#pig1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [Pig.Pig1BoxedNumber](#pig1boxednumber)
boxed class to store validated Number payloads | -| static class | [Pig.Pig1BoxedString](#pig1boxedstring)
boxed class to store validated String payloads | -| static class | [Pig.Pig1BoxedList](#pig1boxedlist)
boxed class to store validated List payloads | -| static class | [Pig.Pig1BoxedMap](#pig1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Pig.Pig1Boxed](#pig1boxed)
abstract sealed validated payload class | +| record | [Pig.Pig1BoxedVoid](#pig1boxedvoid)
boxed class to store validated null payloads | +| record | [Pig.Pig1BoxedBoolean](#pig1boxedboolean)
boxed class to store validated boolean payloads | +| record | [Pig.Pig1BoxedNumber](#pig1boxednumber)
boxed class to store validated Number payloads | +| record | [Pig.Pig1BoxedString](#pig1boxedstring)
boxed class to store validated String payloads | +| record | [Pig.Pig1BoxedList](#pig1boxedlist)
boxed class to store validated List payloads | +| record | [Pig.Pig1BoxedMap](#pig1boxedmap)
boxed class to store validated Map payloads | | static class | [Pig.Pig1](#pig1)
schema class | ## Pig1Boxed @@ -32,100 +32,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## Pig1BoxedVoid -public static final class Pig1BoxedVoid
+public record Pig1BoxedVoid
implements [Pig1Boxed](#pig1boxed) -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 | | --------------------------- | | Pig1BoxedVoid(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 | ## Pig1BoxedBoolean -public static final class Pig1BoxedBoolean
+public record Pig1BoxedBoolean
implements [Pig1Boxed](#pig1boxed) -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 | | --------------------------- | | Pig1BoxedBoolean(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 | ## Pig1BoxedNumber -public static final class Pig1BoxedNumber
+public record Pig1BoxedNumber
implements [Pig1Boxed](#pig1boxed) -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 | | --------------------------- | | Pig1BoxedNumber(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 | ## Pig1BoxedString -public static final class Pig1BoxedString
+public record Pig1BoxedString
implements [Pig1Boxed](#pig1boxed) -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 | | --------------------------- | | Pig1BoxedString(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 | ## Pig1BoxedList -public static final class Pig1BoxedList
+public record Pig1BoxedList
implements [Pig1Boxed](#pig1boxed) -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 | | --------------------------- | | Pig1BoxedList(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 | ## Pig1BoxedMap -public static final class Pig1BoxedMap
+public record Pig1BoxedMap
implements [Pig1Boxed](#pig1boxed) -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 | | --------------------------- | | Pig1BoxedMap(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 | ## Pig1 public static class Pig1
diff --git a/samples/client/petstore/java/docs/components/schemas/Player.md b/samples/client/petstore/java/docs/components/schemas/Player.md index 944543f8ee7..cd5039e18df 100644 --- a/samples/client/petstore/java/docs/components/schemas/Player.md +++ b/samples/client/petstore/java/docs/components/schemas/Player.md @@ -12,13 +12,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Player.Player1Boxed](#player1boxed)
abstract sealed validated payload class | -| static class | [Player.Player1BoxedMap](#player1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Player.Player1Boxed](#player1boxed)
abstract sealed validated payload class | +| record | [Player.Player1BoxedMap](#player1boxedmap)
boxed class to store validated Map payloads | | static class | [Player.Player1](#player1)
schema class | | static class | [Player.PlayerMapBuilder](#playermapbuilder)
builder for Map payloads | | static class | [Player.PlayerMap](#playermap)
output class for Map payloads | -| static class | [Player.NameBoxed](#nameboxed)
abstract sealed validated payload class | -| static class | [Player.NameBoxedString](#nameboxedstring)
boxed class to store validated String payloads | +| sealed interface | [Player.NameBoxed](#nameboxed)
abstract sealed validated payload class | +| record | [Player.NameBoxedString](#nameboxedstring)
boxed class to store validated String payloads | | static class | [Player.Name](#name)
schema class | ## Player1Boxed @@ -29,20 +29,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Player1BoxedMap -public static final class Player1BoxedMap
+public record Player1BoxedMap
implements [Player1Boxed](#player1boxed) -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 | | --------------------------- | | Player1BoxedMap([PlayerMap](#playermap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PlayerMap](#playermap) | data
validated payload | +| [PlayerMap](#playermap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Player1 public static class Player1
@@ -140,20 +141,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## NameBoxedString -public static final class NameBoxedString
+public record NameBoxedString
implements [NameBoxed](#nameboxed) -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 | | --------------------------- | | NameBoxedString(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 | ## Name public static class Name
diff --git a/samples/client/petstore/java/docs/components/schemas/PublicKey.md b/samples/client/petstore/java/docs/components/schemas/PublicKey.md index fe47b646eb3..8f4ae23ebfa 100644 --- a/samples/client/petstore/java/docs/components/schemas/PublicKey.md +++ b/samples/client/petstore/java/docs/components/schemas/PublicKey.md @@ -12,13 +12,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [PublicKey.PublicKey1Boxed](#publickey1boxed)
abstract sealed validated payload class | -| static class | [PublicKey.PublicKey1BoxedMap](#publickey1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [PublicKey.PublicKey1Boxed](#publickey1boxed)
abstract sealed validated payload class | +| record | [PublicKey.PublicKey1BoxedMap](#publickey1boxedmap)
boxed class to store validated Map payloads | | static class | [PublicKey.PublicKey1](#publickey1)
schema class | | static class | [PublicKey.PublicKeyMapBuilder](#publickeymapbuilder)
builder for Map payloads | | static class | [PublicKey.PublicKeyMap](#publickeymap)
output class for Map payloads | -| static class | [PublicKey.KeyBoxed](#keyboxed)
abstract sealed validated payload class | -| static class | [PublicKey.KeyBoxedString](#keyboxedstring)
boxed class to store validated String payloads | +| sealed interface | [PublicKey.KeyBoxed](#keyboxed)
abstract sealed validated payload class | +| record | [PublicKey.KeyBoxedString](#keyboxedstring)
boxed class to store validated String payloads | | static class | [PublicKey.Key](#key)
schema class | ## PublicKey1Boxed @@ -29,20 +29,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## PublicKey1BoxedMap -public static final class PublicKey1BoxedMap
+public record PublicKey1BoxedMap
implements [PublicKey1Boxed](#publickey1boxed) -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 | | --------------------------- | | PublicKey1BoxedMap([PublicKeyMap](#publickeymap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PublicKeyMap](#publickeymap) | data
validated payload | +| [PublicKeyMap](#publickeymap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## PublicKey1 public static class PublicKey1
@@ -138,20 +139,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## KeyBoxedString -public static final class KeyBoxedString
+public record KeyBoxedString
implements [KeyBoxed](#keyboxed) -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 | | --------------------------- | | KeyBoxedString(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 | ## Key public static class Key
diff --git a/samples/client/petstore/java/docs/components/schemas/Quadrilateral.md b/samples/client/petstore/java/docs/components/schemas/Quadrilateral.md index b5f60adf27b..397b4f73e77 100644 --- a/samples/client/petstore/java/docs/components/schemas/Quadrilateral.md +++ b/samples/client/petstore/java/docs/components/schemas/Quadrilateral.md @@ -10,13 +10,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Quadrilateral.Quadrilateral1Boxed](#quadrilateral1boxed)
abstract sealed validated payload class | -| static class | [Quadrilateral.Quadrilateral1BoxedVoid](#quadrilateral1boxedvoid)
boxed class to store validated null payloads | -| static class | [Quadrilateral.Quadrilateral1BoxedBoolean](#quadrilateral1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [Quadrilateral.Quadrilateral1BoxedNumber](#quadrilateral1boxednumber)
boxed class to store validated Number payloads | -| static class | [Quadrilateral.Quadrilateral1BoxedString](#quadrilateral1boxedstring)
boxed class to store validated String payloads | -| static class | [Quadrilateral.Quadrilateral1BoxedList](#quadrilateral1boxedlist)
boxed class to store validated List payloads | -| static class | [Quadrilateral.Quadrilateral1BoxedMap](#quadrilateral1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Quadrilateral.Quadrilateral1Boxed](#quadrilateral1boxed)
abstract sealed validated payload class | +| record | [Quadrilateral.Quadrilateral1BoxedVoid](#quadrilateral1boxedvoid)
boxed class to store validated null payloads | +| record | [Quadrilateral.Quadrilateral1BoxedBoolean](#quadrilateral1boxedboolean)
boxed class to store validated boolean payloads | +| record | [Quadrilateral.Quadrilateral1BoxedNumber](#quadrilateral1boxednumber)
boxed class to store validated Number payloads | +| record | [Quadrilateral.Quadrilateral1BoxedString](#quadrilateral1boxedstring)
boxed class to store validated String payloads | +| record | [Quadrilateral.Quadrilateral1BoxedList](#quadrilateral1boxedlist)
boxed class to store validated List payloads | +| record | [Quadrilateral.Quadrilateral1BoxedMap](#quadrilateral1boxedmap)
boxed class to store validated Map payloads | | static class | [Quadrilateral.Quadrilateral1](#quadrilateral1)
schema class | ## Quadrilateral1Boxed @@ -32,100 +32,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## Quadrilateral1BoxedVoid -public static final class Quadrilateral1BoxedVoid
+public record Quadrilateral1BoxedVoid
implements [Quadrilateral1Boxed](#quadrilateral1boxed) -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 | | --------------------------- | | Quadrilateral1BoxedVoid(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 | ## Quadrilateral1BoxedBoolean -public static final class Quadrilateral1BoxedBoolean
+public record Quadrilateral1BoxedBoolean
implements [Quadrilateral1Boxed](#quadrilateral1boxed) -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 | | --------------------------- | | Quadrilateral1BoxedBoolean(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 | ## Quadrilateral1BoxedNumber -public static final class Quadrilateral1BoxedNumber
+public record Quadrilateral1BoxedNumber
implements [Quadrilateral1Boxed](#quadrilateral1boxed) -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 | | --------------------------- | | Quadrilateral1BoxedNumber(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 | ## Quadrilateral1BoxedString -public static final class Quadrilateral1BoxedString
+public record Quadrilateral1BoxedString
implements [Quadrilateral1Boxed](#quadrilateral1boxed) -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 | | --------------------------- | | Quadrilateral1BoxedString(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 | ## Quadrilateral1BoxedList -public static final class Quadrilateral1BoxedList
+public record Quadrilateral1BoxedList
implements [Quadrilateral1Boxed](#quadrilateral1boxed) -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 | | --------------------------- | | Quadrilateral1BoxedList(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 | ## Quadrilateral1BoxedMap -public static final class Quadrilateral1BoxedMap
+public record Quadrilateral1BoxedMap
implements [Quadrilateral1Boxed](#quadrilateral1boxed) -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 | | --------------------------- | | Quadrilateral1BoxedMap(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 | ## Quadrilateral1 public static class Quadrilateral1
diff --git a/samples/client/petstore/java/docs/components/schemas/QuadrilateralInterface.md b/samples/client/petstore/java/docs/components/schemas/QuadrilateralInterface.md index 6caf9a235f7..9502846e222 100644 --- a/samples/client/petstore/java/docs/components/schemas/QuadrilateralInterface.md +++ b/samples/client/petstore/java/docs/components/schemas/QuadrilateralInterface.md @@ -13,21 +13,21 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [QuadrilateralInterface.QuadrilateralInterface1Boxed](#quadrilateralinterface1boxed)
abstract sealed validated payload class | -| static class | [QuadrilateralInterface.QuadrilateralInterface1BoxedVoid](#quadrilateralinterface1boxedvoid)
boxed class to store validated null payloads | -| static class | [QuadrilateralInterface.QuadrilateralInterface1BoxedBoolean](#quadrilateralinterface1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [QuadrilateralInterface.QuadrilateralInterface1BoxedNumber](#quadrilateralinterface1boxednumber)
boxed class to store validated Number payloads | -| static class | [QuadrilateralInterface.QuadrilateralInterface1BoxedString](#quadrilateralinterface1boxedstring)
boxed class to store validated String payloads | -| static class | [QuadrilateralInterface.QuadrilateralInterface1BoxedList](#quadrilateralinterface1boxedlist)
boxed class to store validated List payloads | -| static class | [QuadrilateralInterface.QuadrilateralInterface1BoxedMap](#quadrilateralinterface1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [QuadrilateralInterface.QuadrilateralInterface1Boxed](#quadrilateralinterface1boxed)
abstract sealed validated payload class | +| record | [QuadrilateralInterface.QuadrilateralInterface1BoxedVoid](#quadrilateralinterface1boxedvoid)
boxed class to store validated null payloads | +| record | [QuadrilateralInterface.QuadrilateralInterface1BoxedBoolean](#quadrilateralinterface1boxedboolean)
boxed class to store validated boolean payloads | +| record | [QuadrilateralInterface.QuadrilateralInterface1BoxedNumber](#quadrilateralinterface1boxednumber)
boxed class to store validated Number payloads | +| record | [QuadrilateralInterface.QuadrilateralInterface1BoxedString](#quadrilateralinterface1boxedstring)
boxed class to store validated String payloads | +| record | [QuadrilateralInterface.QuadrilateralInterface1BoxedList](#quadrilateralinterface1boxedlist)
boxed class to store validated List payloads | +| record | [QuadrilateralInterface.QuadrilateralInterface1BoxedMap](#quadrilateralinterface1boxedmap)
boxed class to store validated Map payloads | | static class | [QuadrilateralInterface.QuadrilateralInterface1](#quadrilateralinterface1)
schema class | | static class | [QuadrilateralInterface.QuadrilateralInterfaceMapBuilder](#quadrilateralinterfacemapbuilder)
builder for Map payloads | | static class | [QuadrilateralInterface.QuadrilateralInterfaceMap](#quadrilateralinterfacemap)
output class for Map payloads | -| static class | [QuadrilateralInterface.QuadrilateralTypeBoxed](#quadrilateraltypeboxed)
abstract sealed validated payload class | -| static class | [QuadrilateralInterface.QuadrilateralTypeBoxedString](#quadrilateraltypeboxedstring)
boxed class to store validated String payloads | +| sealed interface | [QuadrilateralInterface.QuadrilateralTypeBoxed](#quadrilateraltypeboxed)
abstract sealed validated payload class | +| record | [QuadrilateralInterface.QuadrilateralTypeBoxedString](#quadrilateraltypeboxedstring)
boxed class to store validated String payloads | | static class | [QuadrilateralInterface.QuadrilateralType](#quadrilateraltype)
schema class | -| static class | [QuadrilateralInterface.ShapeTypeBoxed](#shapetypeboxed)
abstract sealed validated payload class | -| static class | [QuadrilateralInterface.ShapeTypeBoxedString](#shapetypeboxedstring)
boxed class to store validated String payloads | +| sealed interface | [QuadrilateralInterface.ShapeTypeBoxed](#shapetypeboxed)
abstract sealed validated payload class | +| record | [QuadrilateralInterface.ShapeTypeBoxedString](#shapetypeboxedstring)
boxed class to store validated String payloads | | static class | [QuadrilateralInterface.ShapeType](#shapetype)
schema class | | enum | [QuadrilateralInterface.StringShapeTypeEnums](#stringshapetypeenums)
String enum | @@ -44,100 +44,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## QuadrilateralInterface1BoxedVoid -public static final class QuadrilateralInterface1BoxedVoid
+public record QuadrilateralInterface1BoxedVoid
implements [QuadrilateralInterface1Boxed](#quadrilateralinterface1boxed) -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 | | --------------------------- | | QuadrilateralInterface1BoxedVoid(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 | ## QuadrilateralInterface1BoxedBoolean -public static final class QuadrilateralInterface1BoxedBoolean
+public record QuadrilateralInterface1BoxedBoolean
implements [QuadrilateralInterface1Boxed](#quadrilateralinterface1boxed) -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 | | --------------------------- | | QuadrilateralInterface1BoxedBoolean(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 | ## QuadrilateralInterface1BoxedNumber -public static final class QuadrilateralInterface1BoxedNumber
+public record QuadrilateralInterface1BoxedNumber
implements [QuadrilateralInterface1Boxed](#quadrilateralinterface1boxed) -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 | | --------------------------- | | QuadrilateralInterface1BoxedNumber(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 | ## QuadrilateralInterface1BoxedString -public static final class QuadrilateralInterface1BoxedString
+public record QuadrilateralInterface1BoxedString
implements [QuadrilateralInterface1Boxed](#quadrilateralinterface1boxed) -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 | | --------------------------- | | QuadrilateralInterface1BoxedString(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 | ## QuadrilateralInterface1BoxedList -public static final class QuadrilateralInterface1BoxedList
+public record QuadrilateralInterface1BoxedList
implements [QuadrilateralInterface1Boxed](#quadrilateralinterface1boxed) -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 | | --------------------------- | | QuadrilateralInterface1BoxedList(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 | ## QuadrilateralInterface1BoxedMap -public static final class QuadrilateralInterface1BoxedMap
+public record QuadrilateralInterface1BoxedMap
implements [QuadrilateralInterface1Boxed](#quadrilateralinterface1boxed) -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 | | --------------------------- | | QuadrilateralInterface1BoxedMap([QuadrilateralInterfaceMap](#quadrilateralinterfacemap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [QuadrilateralInterfaceMap](#quadrilateralinterfacemap) | data
validated payload | +| [QuadrilateralInterfaceMap](#quadrilateralinterfacemap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## QuadrilateralInterface1 public static class QuadrilateralInterface1
@@ -269,20 +275,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## QuadrilateralTypeBoxedString -public static final class QuadrilateralTypeBoxedString
+public record QuadrilateralTypeBoxedString
implements [QuadrilateralTypeBoxed](#quadrilateraltypeboxed) -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 | | --------------------------- | | QuadrilateralTypeBoxedString(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 | ## QuadrilateralType public static class QuadrilateralType
@@ -303,20 +310,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ShapeTypeBoxedString -public static final class ShapeTypeBoxedString
+public record ShapeTypeBoxedString
implements [ShapeTypeBoxed](#shapetypeboxed) -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 | | --------------------------- | | ShapeTypeBoxedString(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 | ## ShapeType public static class ShapeType
diff --git a/samples/client/petstore/java/docs/components/schemas/ReadOnlyFirst.md b/samples/client/petstore/java/docs/components/schemas/ReadOnlyFirst.md index 7f63a1b35ec..f9d95a8bfc1 100644 --- a/samples/client/petstore/java/docs/components/schemas/ReadOnlyFirst.md +++ b/samples/client/petstore/java/docs/components/schemas/ReadOnlyFirst.md @@ -12,16 +12,16 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ReadOnlyFirst.ReadOnlyFirst1Boxed](#readonlyfirst1boxed)
abstract sealed validated payload class | -| static class | [ReadOnlyFirst.ReadOnlyFirst1BoxedMap](#readonlyfirst1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ReadOnlyFirst.ReadOnlyFirst1Boxed](#readonlyfirst1boxed)
abstract sealed validated payload class | +| record | [ReadOnlyFirst.ReadOnlyFirst1BoxedMap](#readonlyfirst1boxedmap)
boxed class to store validated Map payloads | | static class | [ReadOnlyFirst.ReadOnlyFirst1](#readonlyfirst1)
schema class | | static class | [ReadOnlyFirst.ReadOnlyFirstMapBuilder](#readonlyfirstmapbuilder)
builder for Map payloads | | static class | [ReadOnlyFirst.ReadOnlyFirstMap](#readonlyfirstmap)
output class for Map payloads | -| static class | [ReadOnlyFirst.BazBoxed](#bazboxed)
abstract sealed validated payload class | -| static class | [ReadOnlyFirst.BazBoxedString](#bazboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ReadOnlyFirst.BazBoxed](#bazboxed)
abstract sealed validated payload class | +| record | [ReadOnlyFirst.BazBoxedString](#bazboxedstring)
boxed class to store validated String payloads | | static class | [ReadOnlyFirst.Baz](#baz)
schema class | -| static class | [ReadOnlyFirst.BarBoxed](#barboxed)
abstract sealed validated payload class | -| static class | [ReadOnlyFirst.BarBoxedString](#barboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ReadOnlyFirst.BarBoxed](#barboxed)
abstract sealed validated payload class | +| record | [ReadOnlyFirst.BarBoxedString](#barboxedstring)
boxed class to store validated String payloads | | static class | [ReadOnlyFirst.Bar](#bar)
schema class | ## ReadOnlyFirst1Boxed @@ -32,20 +32,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ReadOnlyFirst1BoxedMap -public static final class ReadOnlyFirst1BoxedMap
+public record ReadOnlyFirst1BoxedMap
implements [ReadOnlyFirst1Boxed](#readonlyfirst1boxed) -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 | | --------------------------- | | ReadOnlyFirst1BoxedMap([ReadOnlyFirstMap](#readonlyfirstmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ReadOnlyFirstMap](#readonlyfirstmap) | data
validated payload | +| [ReadOnlyFirstMap](#readonlyfirstmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ReadOnlyFirst1 public static class ReadOnlyFirst1
@@ -142,20 +143,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## BazBoxedString -public static final class BazBoxedString
+public record BazBoxedString
implements [BazBoxed](#bazboxed) -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 | | --------------------------- | | BazBoxedString(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 | ## Baz public static class Baz
@@ -176,20 +178,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## BarBoxedString -public static final class BarBoxedString
+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
diff --git a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromExplicitAddProps.md b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromExplicitAddProps.md index f3881bfc9cb..3ed3d47a27c 100644 --- a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromExplicitAddProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromExplicitAddProps.md @@ -12,13 +12,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ReqPropsFromExplicitAddProps.ReqPropsFromExplicitAddProps1Boxed](#reqpropsfromexplicitaddprops1boxed)
abstract sealed validated payload class | -| static class | [ReqPropsFromExplicitAddProps.ReqPropsFromExplicitAddProps1BoxedMap](#reqpropsfromexplicitaddprops1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ReqPropsFromExplicitAddProps.ReqPropsFromExplicitAddProps1Boxed](#reqpropsfromexplicitaddprops1boxed)
abstract sealed validated payload class | +| record | [ReqPropsFromExplicitAddProps.ReqPropsFromExplicitAddProps1BoxedMap](#reqpropsfromexplicitaddprops1boxedmap)
boxed class to store validated Map payloads | | static class | [ReqPropsFromExplicitAddProps.ReqPropsFromExplicitAddProps1](#reqpropsfromexplicitaddprops1)
schema class | | static class | [ReqPropsFromExplicitAddProps.ReqPropsFromExplicitAddPropsMapBuilder](#reqpropsfromexplicitaddpropsmapbuilder)
builder for Map payloads | | static class | [ReqPropsFromExplicitAddProps.ReqPropsFromExplicitAddPropsMap](#reqpropsfromexplicitaddpropsmap)
output class for Map payloads | -| static class | [ReqPropsFromExplicitAddProps.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | -| static class | [ReqPropsFromExplicitAddProps.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ReqPropsFromExplicitAddProps.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| record | [ReqPropsFromExplicitAddProps.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | | static class | [ReqPropsFromExplicitAddProps.AdditionalProperties](#additionalproperties)
schema class | ## ReqPropsFromExplicitAddProps1Boxed @@ -29,20 +29,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ReqPropsFromExplicitAddProps1BoxedMap -public static final class ReqPropsFromExplicitAddProps1BoxedMap
+public record ReqPropsFromExplicitAddProps1BoxedMap
implements [ReqPropsFromExplicitAddProps1Boxed](#reqpropsfromexplicitaddprops1boxed) -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 | | --------------------------- | | ReqPropsFromExplicitAddProps1BoxedMap([ReqPropsFromExplicitAddPropsMap](#reqpropsfromexplicitaddpropsmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ReqPropsFromExplicitAddPropsMap](#reqpropsfromexplicitaddpropsmap) | data
validated payload | +| [ReqPropsFromExplicitAddPropsMap](#reqpropsfromexplicitaddpropsmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ReqPropsFromExplicitAddProps1 public static class ReqPropsFromExplicitAddProps1
@@ -177,20 +178,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedString -public static final class AdditionalPropertiesBoxedString
+public record AdditionalPropertiesBoxedString
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedString(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 | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromTrueAddProps.md b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromTrueAddProps.md index e3a439f5eaf..3132c5ac78d 100644 --- a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromTrueAddProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromTrueAddProps.md @@ -12,18 +12,18 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ReqPropsFromTrueAddProps.ReqPropsFromTrueAddProps1Boxed](#reqpropsfromtrueaddprops1boxed)
abstract sealed validated payload class | -| static class | [ReqPropsFromTrueAddProps.ReqPropsFromTrueAddProps1BoxedMap](#reqpropsfromtrueaddprops1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ReqPropsFromTrueAddProps.ReqPropsFromTrueAddProps1Boxed](#reqpropsfromtrueaddprops1boxed)
abstract sealed validated payload class | +| record | [ReqPropsFromTrueAddProps.ReqPropsFromTrueAddProps1BoxedMap](#reqpropsfromtrueaddprops1boxedmap)
boxed class to store validated Map payloads | | static class | [ReqPropsFromTrueAddProps.ReqPropsFromTrueAddProps1](#reqpropsfromtrueaddprops1)
schema class | | static class | [ReqPropsFromTrueAddProps.ReqPropsFromTrueAddPropsMapBuilder](#reqpropsfromtrueaddpropsmapbuilder)
builder for Map payloads | | static class | [ReqPropsFromTrueAddProps.ReqPropsFromTrueAddPropsMap](#reqpropsfromtrueaddpropsmap)
output class for Map payloads | -| static class | [ReqPropsFromTrueAddProps.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | -| static class | [ReqPropsFromTrueAddProps.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| static class | [ReqPropsFromTrueAddProps.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| static class | [ReqPropsFromTrueAddProps.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| static class | [ReqPropsFromTrueAddProps.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| static class | [ReqPropsFromTrueAddProps.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| static class | [ReqPropsFromTrueAddProps.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ReqPropsFromTrueAddProps.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| record | [ReqPropsFromTrueAddProps.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [ReqPropsFromTrueAddProps.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [ReqPropsFromTrueAddProps.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [ReqPropsFromTrueAddProps.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [ReqPropsFromTrueAddProps.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [ReqPropsFromTrueAddProps.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | | static class | [ReqPropsFromTrueAddProps.AdditionalProperties](#additionalproperties)
schema class | ## ReqPropsFromTrueAddProps1Boxed @@ -34,20 +34,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ReqPropsFromTrueAddProps1BoxedMap -public static final class ReqPropsFromTrueAddProps1BoxedMap
+public record ReqPropsFromTrueAddProps1BoxedMap
implements [ReqPropsFromTrueAddProps1Boxed](#reqpropsfromtrueaddprops1boxed) -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 | | --------------------------- | | ReqPropsFromTrueAddProps1BoxedMap([ReqPropsFromTrueAddPropsMap](#reqpropsfromtrueaddpropsmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ReqPropsFromTrueAddPropsMap](#reqpropsfromtrueaddpropsmap) | data
validated payload | +| [ReqPropsFromTrueAddPropsMap](#reqpropsfromtrueaddpropsmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ReqPropsFromTrueAddProps1 public static class ReqPropsFromTrueAddProps1
@@ -225,100 +226,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedVoid -public static final class AdditionalPropertiesBoxedVoid
+public record AdditionalPropertiesBoxedVoid
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedVoid(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 | ## AdditionalPropertiesBoxedBoolean -public static final class AdditionalPropertiesBoxedBoolean
+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 | ## AdditionalPropertiesBoxedNumber -public static final class AdditionalPropertiesBoxedNumber
+public record AdditionalPropertiesBoxedNumber
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedNumber(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 | ## AdditionalPropertiesBoxedString -public static final class AdditionalPropertiesBoxedString
+public record AdditionalPropertiesBoxedString
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedString(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 | ## AdditionalPropertiesBoxedList -public static final class AdditionalPropertiesBoxedList
+public record AdditionalPropertiesBoxedList
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedList(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 | ## AdditionalPropertiesBoxedMap -public static final class AdditionalPropertiesBoxedMap
+public record AdditionalPropertiesBoxedMap
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedMap(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 | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromUnsetAddProps.md b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromUnsetAddProps.md index 0d5adfd3b34..64d4ffbd506 100644 --- a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromUnsetAddProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromUnsetAddProps.md @@ -12,8 +12,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ReqPropsFromUnsetAddProps.ReqPropsFromUnsetAddProps1Boxed](#reqpropsfromunsetaddprops1boxed)
abstract sealed validated payload class | -| static class | [ReqPropsFromUnsetAddProps.ReqPropsFromUnsetAddProps1BoxedMap](#reqpropsfromunsetaddprops1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ReqPropsFromUnsetAddProps.ReqPropsFromUnsetAddProps1Boxed](#reqpropsfromunsetaddprops1boxed)
abstract sealed validated payload class | +| record | [ReqPropsFromUnsetAddProps.ReqPropsFromUnsetAddProps1BoxedMap](#reqpropsfromunsetaddprops1boxedmap)
boxed class to store validated Map payloads | | static class | [ReqPropsFromUnsetAddProps.ReqPropsFromUnsetAddProps1](#reqpropsfromunsetaddprops1)
schema class | | static class | [ReqPropsFromUnsetAddProps.ReqPropsFromUnsetAddPropsMapBuilder](#reqpropsfromunsetaddpropsmapbuilder)
builder for Map payloads | | static class | [ReqPropsFromUnsetAddProps.ReqPropsFromUnsetAddPropsMap](#reqpropsfromunsetaddpropsmap)
output class for Map payloads | @@ -26,20 +26,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ReqPropsFromUnsetAddProps1BoxedMap -public static final class ReqPropsFromUnsetAddProps1BoxedMap
+public record ReqPropsFromUnsetAddProps1BoxedMap
implements [ReqPropsFromUnsetAddProps1Boxed](#reqpropsfromunsetaddprops1boxed) -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 | | --------------------------- | | ReqPropsFromUnsetAddProps1BoxedMap([ReqPropsFromUnsetAddPropsMap](#reqpropsfromunsetaddpropsmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ReqPropsFromUnsetAddPropsMap](#reqpropsfromunsetaddpropsmap) | data
validated payload | +| [ReqPropsFromUnsetAddPropsMap](#reqpropsfromunsetaddpropsmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ReqPropsFromUnsetAddProps1 public static class ReqPropsFromUnsetAddProps1
diff --git a/samples/client/petstore/java/docs/components/schemas/ReturnSchema.md b/samples/client/petstore/java/docs/components/schemas/ReturnSchema.md index 725c066567d..334c4d6d6b3 100644 --- a/samples/client/petstore/java/docs/components/schemas/ReturnSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/ReturnSchema.md @@ -12,18 +12,18 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ReturnSchema.ReturnSchema1Boxed](#returnschema1boxed)
abstract sealed validated payload class | -| static class | [ReturnSchema.ReturnSchema1BoxedVoid](#returnschema1boxedvoid)
boxed class to store validated null payloads | -| static class | [ReturnSchema.ReturnSchema1BoxedBoolean](#returnschema1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ReturnSchema.ReturnSchema1BoxedNumber](#returnschema1boxednumber)
boxed class to store validated Number payloads | -| static class | [ReturnSchema.ReturnSchema1BoxedString](#returnschema1boxedstring)
boxed class to store validated String payloads | -| static class | [ReturnSchema.ReturnSchema1BoxedList](#returnschema1boxedlist)
boxed class to store validated List payloads | -| static class | [ReturnSchema.ReturnSchema1BoxedMap](#returnschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ReturnSchema.ReturnSchema1Boxed](#returnschema1boxed)
abstract sealed validated payload class | +| record | [ReturnSchema.ReturnSchema1BoxedVoid](#returnschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ReturnSchema.ReturnSchema1BoxedBoolean](#returnschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ReturnSchema.ReturnSchema1BoxedNumber](#returnschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ReturnSchema.ReturnSchema1BoxedString](#returnschema1boxedstring)
boxed class to store validated String payloads | +| record | [ReturnSchema.ReturnSchema1BoxedList](#returnschema1boxedlist)
boxed class to store validated List payloads | +| record | [ReturnSchema.ReturnSchema1BoxedMap](#returnschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ReturnSchema.ReturnSchema1](#returnschema1)
schema class | | static class | [ReturnSchema.ReturnMapBuilder1](#returnmapbuilder1)
builder for Map payloads | | static class | [ReturnSchema.ReturnMap](#returnmap)
output class for Map payloads | -| static class | [ReturnSchema.ReturnSchema2Boxed](#returnschema2boxed)
abstract sealed validated payload class | -| static class | [ReturnSchema.ReturnSchema2BoxedNumber](#returnschema2boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [ReturnSchema.ReturnSchema2Boxed](#returnschema2boxed)
abstract sealed validated payload class | +| record | [ReturnSchema.ReturnSchema2BoxedNumber](#returnschema2boxednumber)
boxed class to store validated Number payloads | | static class | [ReturnSchema.ReturnSchema2](#returnschema2)
schema class | ## ReturnSchema1Boxed @@ -39,100 +39,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## ReturnSchema1BoxedVoid -public static final class ReturnSchema1BoxedVoid
+public record ReturnSchema1BoxedVoid
implements [ReturnSchema1Boxed](#returnschema1boxed) -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 | | --------------------------- | | ReturnSchema1BoxedVoid(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 | ## ReturnSchema1BoxedBoolean -public static final class ReturnSchema1BoxedBoolean
+public record ReturnSchema1BoxedBoolean
implements [ReturnSchema1Boxed](#returnschema1boxed) -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 | | --------------------------- | | ReturnSchema1BoxedBoolean(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 | ## ReturnSchema1BoxedNumber -public static final class ReturnSchema1BoxedNumber
+public record ReturnSchema1BoxedNumber
implements [ReturnSchema1Boxed](#returnschema1boxed) -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 | | --------------------------- | | ReturnSchema1BoxedNumber(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 | ## ReturnSchema1BoxedString -public static final class ReturnSchema1BoxedString
+public record ReturnSchema1BoxedString
implements [ReturnSchema1Boxed](#returnschema1boxed) -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 | | --------------------------- | | ReturnSchema1BoxedString(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 | ## ReturnSchema1BoxedList -public static final class ReturnSchema1BoxedList
+public record ReturnSchema1BoxedList
implements [ReturnSchema1Boxed](#returnschema1boxed) -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 | | --------------------------- | | ReturnSchema1BoxedList(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 | ## ReturnSchema1BoxedMap -public static final class ReturnSchema1BoxedMap
+public record ReturnSchema1BoxedMap
implements [ReturnSchema1Boxed](#returnschema1boxed) -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 | | --------------------------- | | ReturnSchema1BoxedMap([ReturnMap](#returnmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ReturnMap](#returnmap) | data
validated payload | +| [ReturnMap](#returnmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ReturnSchema1 public static class ReturnSchema1
@@ -216,20 +222,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ReturnSchema2BoxedNumber -public static final class ReturnSchema2BoxedNumber
+public record ReturnSchema2BoxedNumber
implements [ReturnSchema2Boxed](#returnschema2boxed) -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 | | --------------------------- | | ReturnSchema2BoxedNumber(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 | ## ReturnSchema2 public static class ReturnSchema2
diff --git a/samples/client/petstore/java/docs/components/schemas/ScaleneTriangle.md b/samples/client/petstore/java/docs/components/schemas/ScaleneTriangle.md index 0d0bd386213..f986f086bcd 100644 --- a/samples/client/petstore/java/docs/components/schemas/ScaleneTriangle.md +++ b/samples/client/petstore/java/docs/components/schemas/ScaleneTriangle.md @@ -13,21 +13,21 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ScaleneTriangle.ScaleneTriangle1Boxed](#scalenetriangle1boxed)
abstract sealed validated payload class | -| static class | [ScaleneTriangle.ScaleneTriangle1BoxedVoid](#scalenetriangle1boxedvoid)
boxed class to store validated null payloads | -| static class | [ScaleneTriangle.ScaleneTriangle1BoxedBoolean](#scalenetriangle1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ScaleneTriangle.ScaleneTriangle1BoxedNumber](#scalenetriangle1boxednumber)
boxed class to store validated Number payloads | -| static class | [ScaleneTriangle.ScaleneTriangle1BoxedString](#scalenetriangle1boxedstring)
boxed class to store validated String payloads | -| static class | [ScaleneTriangle.ScaleneTriangle1BoxedList](#scalenetriangle1boxedlist)
boxed class to store validated List payloads | -| static class | [ScaleneTriangle.ScaleneTriangle1BoxedMap](#scalenetriangle1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ScaleneTriangle.ScaleneTriangle1Boxed](#scalenetriangle1boxed)
abstract sealed validated payload class | +| record | [ScaleneTriangle.ScaleneTriangle1BoxedVoid](#scalenetriangle1boxedvoid)
boxed class to store validated null payloads | +| record | [ScaleneTriangle.ScaleneTriangle1BoxedBoolean](#scalenetriangle1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ScaleneTriangle.ScaleneTriangle1BoxedNumber](#scalenetriangle1boxednumber)
boxed class to store validated Number payloads | +| record | [ScaleneTriangle.ScaleneTriangle1BoxedString](#scalenetriangle1boxedstring)
boxed class to store validated String payloads | +| record | [ScaleneTriangle.ScaleneTriangle1BoxedList](#scalenetriangle1boxedlist)
boxed class to store validated List payloads | +| record | [ScaleneTriangle.ScaleneTriangle1BoxedMap](#scalenetriangle1boxedmap)
boxed class to store validated Map payloads | | static class | [ScaleneTriangle.ScaleneTriangle1](#scalenetriangle1)
schema class | -| static class | [ScaleneTriangle.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | -| static class | [ScaleneTriangle.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ScaleneTriangle.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | +| record | [ScaleneTriangle.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | | static class | [ScaleneTriangle.Schema1](#schema1)
schema class | | static class | [ScaleneTriangle.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [ScaleneTriangle.Schema1Map](#schema1map)
output class for Map payloads | -| static class | [ScaleneTriangle.TriangleTypeBoxed](#triangletypeboxed)
abstract sealed validated payload class | -| static class | [ScaleneTriangle.TriangleTypeBoxedString](#triangletypeboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ScaleneTriangle.TriangleTypeBoxed](#triangletypeboxed)
abstract sealed validated payload class | +| record | [ScaleneTriangle.TriangleTypeBoxedString](#triangletypeboxedstring)
boxed class to store validated String payloads | | static class | [ScaleneTriangle.TriangleType](#triangletype)
schema class | | enum | [ScaleneTriangle.StringTriangleTypeEnums](#stringtriangletypeenums)
String enum | @@ -44,100 +44,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## ScaleneTriangle1BoxedVoid -public static final class ScaleneTriangle1BoxedVoid
+public record ScaleneTriangle1BoxedVoid
implements [ScaleneTriangle1Boxed](#scalenetriangle1boxed) -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 | | --------------------------- | | ScaleneTriangle1BoxedVoid(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 | ## ScaleneTriangle1BoxedBoolean -public static final class ScaleneTriangle1BoxedBoolean
+public record ScaleneTriangle1BoxedBoolean
implements [ScaleneTriangle1Boxed](#scalenetriangle1boxed) -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 | | --------------------------- | | ScaleneTriangle1BoxedBoolean(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 | ## ScaleneTriangle1BoxedNumber -public static final class ScaleneTriangle1BoxedNumber
+public record ScaleneTriangle1BoxedNumber
implements [ScaleneTriangle1Boxed](#scalenetriangle1boxed) -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 | | --------------------------- | | ScaleneTriangle1BoxedNumber(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 | ## ScaleneTriangle1BoxedString -public static final class ScaleneTriangle1BoxedString
+public record ScaleneTriangle1BoxedString
implements [ScaleneTriangle1Boxed](#scalenetriangle1boxed) -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 | | --------------------------- | | ScaleneTriangle1BoxedString(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 | ## ScaleneTriangle1BoxedList -public static final class ScaleneTriangle1BoxedList
+public record ScaleneTriangle1BoxedList
implements [ScaleneTriangle1Boxed](#scalenetriangle1boxed) -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 | | --------------------------- | | ScaleneTriangle1BoxedList(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 | ## ScaleneTriangle1BoxedMap -public static final class ScaleneTriangle1BoxedMap
+public record ScaleneTriangle1BoxedMap
implements [ScaleneTriangle1Boxed](#scalenetriangle1boxed) -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 | | --------------------------- | | ScaleneTriangle1BoxedMap(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 | ## ScaleneTriangle1 public static class ScaleneTriangle1
@@ -178,20 +184,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema1BoxedMap -public static final class Schema1BoxedMap
+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
@@ -285,20 +292,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## TriangleTypeBoxedString -public static final class TriangleTypeBoxedString
+public record TriangleTypeBoxedString
implements [TriangleTypeBoxed](#triangletypeboxed) -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 | | --------------------------- | | TriangleTypeBoxedString(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 | ## TriangleType public static class TriangleType
diff --git a/samples/client/petstore/java/docs/components/schemas/Schema200Response.md b/samples/client/petstore/java/docs/components/schemas/Schema200Response.md index 843bc41e517..14480fedd5a 100644 --- a/samples/client/petstore/java/docs/components/schemas/Schema200Response.md +++ b/samples/client/petstore/java/docs/components/schemas/Schema200Response.md @@ -12,21 +12,21 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema200Response.Schema200Response1Boxed](#schema200response1boxed)
abstract sealed validated payload class | -| static class | [Schema200Response.Schema200Response1BoxedVoid](#schema200response1boxedvoid)
boxed class to store validated null payloads | -| static class | [Schema200Response.Schema200Response1BoxedBoolean](#schema200response1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [Schema200Response.Schema200Response1BoxedNumber](#schema200response1boxednumber)
boxed class to store validated Number payloads | -| static class | [Schema200Response.Schema200Response1BoxedString](#schema200response1boxedstring)
boxed class to store validated String payloads | -| static class | [Schema200Response.Schema200Response1BoxedList](#schema200response1boxedlist)
boxed class to store validated List payloads | -| static class | [Schema200Response.Schema200Response1BoxedMap](#schema200response1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Schema200Response.Schema200Response1Boxed](#schema200response1boxed)
abstract sealed validated payload class | +| record | [Schema200Response.Schema200Response1BoxedVoid](#schema200response1boxedvoid)
boxed class to store validated null payloads | +| record | [Schema200Response.Schema200Response1BoxedBoolean](#schema200response1boxedboolean)
boxed class to store validated boolean payloads | +| record | [Schema200Response.Schema200Response1BoxedNumber](#schema200response1boxednumber)
boxed class to store validated Number payloads | +| record | [Schema200Response.Schema200Response1BoxedString](#schema200response1boxedstring)
boxed class to store validated String payloads | +| record | [Schema200Response.Schema200Response1BoxedList](#schema200response1boxedlist)
boxed class to store validated List payloads | +| record | [Schema200Response.Schema200Response1BoxedMap](#schema200response1boxedmap)
boxed class to store validated Map payloads | | static class | [Schema200Response.Schema200Response1](#schema200response1)
schema class | | static class | [Schema200Response.Schema200ResponseMapBuilder](#schema200responsemapbuilder)
builder for Map payloads | | static class | [Schema200Response.Schema200ResponseMap](#schema200responsemap)
output class for Map payloads | -| static class | [Schema200Response.ClassSchemaBoxed](#classschemaboxed)
abstract sealed validated payload class | -| static class | [Schema200Response.ClassSchemaBoxedString](#classschemaboxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema200Response.ClassSchemaBoxed](#classschemaboxed)
abstract sealed validated payload class | +| record | [Schema200Response.ClassSchemaBoxedString](#classschemaboxedstring)
boxed class to store validated String payloads | | static class | [Schema200Response.ClassSchema](#classschema)
schema class | -| static class | [Schema200Response.NameBoxed](#nameboxed)
abstract sealed validated payload class | -| static class | [Schema200Response.NameBoxedNumber](#nameboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [Schema200Response.NameBoxed](#nameboxed)
abstract sealed validated payload class | +| record | [Schema200Response.NameBoxedNumber](#nameboxednumber)
boxed class to store validated Number payloads | | static class | [Schema200Response.Name](#name)
schema class | ## Schema200Response1Boxed @@ -42,100 +42,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema200Response1BoxedVoid -public static final class Schema200Response1BoxedVoid
+public record Schema200Response1BoxedVoid
implements [Schema200Response1Boxed](#schema200response1boxed) -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 | | --------------------------- | | Schema200Response1BoxedVoid(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 | ## Schema200Response1BoxedBoolean -public static final class Schema200Response1BoxedBoolean
+public record Schema200Response1BoxedBoolean
implements [Schema200Response1Boxed](#schema200response1boxed) -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 | | --------------------------- | | Schema200Response1BoxedBoolean(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 | ## Schema200Response1BoxedNumber -public static final class Schema200Response1BoxedNumber
+public record Schema200Response1BoxedNumber
implements [Schema200Response1Boxed](#schema200response1boxed) -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 | | --------------------------- | | Schema200Response1BoxedNumber(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 | ## Schema200Response1BoxedString -public static final class Schema200Response1BoxedString
+public record Schema200Response1BoxedString
implements [Schema200Response1Boxed](#schema200response1boxed) -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 | | --------------------------- | | Schema200Response1BoxedString(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 | ## Schema200Response1BoxedList -public static final class Schema200Response1BoxedList
+public record Schema200Response1BoxedList
implements [Schema200Response1Boxed](#schema200response1boxed) -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 | | --------------------------- | | Schema200Response1BoxedList(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 | ## Schema200Response1BoxedMap -public static final class Schema200Response1BoxedMap
+public record Schema200Response1BoxedMap
implements [Schema200Response1Boxed](#schema200response1boxed) -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 | | --------------------------- | | Schema200Response1BoxedMap([Schema200ResponseMap](#schema200responsemap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Schema200ResponseMap](#schema200responsemap) | data
validated payload | +| [Schema200ResponseMap](#schema200responsemap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Schema200Response1 public static class Schema200Response1
@@ -221,20 +227,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ClassSchemaBoxedString -public static final class ClassSchemaBoxedString
+public record ClassSchemaBoxedString
implements [ClassSchemaBoxed](#classschemaboxed) -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 | | --------------------------- | | ClassSchemaBoxedString(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 | ## ClassSchema public static class ClassSchema
@@ -258,20 +265,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## NameBoxedNumber -public static final class NameBoxedNumber
+public record NameBoxedNumber
implements [NameBoxed](#nameboxed) -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 | | --------------------------- | | NameBoxedNumber(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 | ## Name public static class Name
diff --git a/samples/client/petstore/java/docs/components/schemas/SelfReferencingArrayModel.md b/samples/client/petstore/java/docs/components/schemas/SelfReferencingArrayModel.md index e2cb2ae4772..8d0f8965e81 100644 --- a/samples/client/petstore/java/docs/components/schemas/SelfReferencingArrayModel.md +++ b/samples/client/petstore/java/docs/components/schemas/SelfReferencingArrayModel.md @@ -12,8 +12,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [SelfReferencingArrayModel.SelfReferencingArrayModel1Boxed](#selfreferencingarraymodel1boxed)
abstract sealed validated payload class | -| static class | [SelfReferencingArrayModel.SelfReferencingArrayModel1BoxedList](#selfreferencingarraymodel1boxedlist)
boxed class to store validated List payloads | +| sealed interface | [SelfReferencingArrayModel.SelfReferencingArrayModel1Boxed](#selfreferencingarraymodel1boxed)
abstract sealed validated payload class | +| record | [SelfReferencingArrayModel.SelfReferencingArrayModel1BoxedList](#selfreferencingarraymodel1boxedlist)
boxed class to store validated List payloads | | static class | [SelfReferencingArrayModel.SelfReferencingArrayModel1](#selfreferencingarraymodel1)
schema class | | static class | [SelfReferencingArrayModel.SelfReferencingArrayModelListBuilder](#selfreferencingarraymodellistbuilder)
builder for List payloads | | static class | [SelfReferencingArrayModel.SelfReferencingArrayModelList](#selfreferencingarraymodellist)
output class for List payloads | @@ -26,20 +26,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## SelfReferencingArrayModel1BoxedList -public static final class SelfReferencingArrayModel1BoxedList
+public record SelfReferencingArrayModel1BoxedList
implements [SelfReferencingArrayModel1Boxed](#selfreferencingarraymodel1boxed) -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 | | --------------------------- | | SelfReferencingArrayModel1BoxedList([SelfReferencingArrayModelList](#selfreferencingarraymodellist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SelfReferencingArrayModelList](#selfreferencingarraymodellist) | data
validated payload | +| [SelfReferencingArrayModelList](#selfreferencingarraymodellist) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## SelfReferencingArrayModel1 public static class SelfReferencingArrayModel1
diff --git a/samples/client/petstore/java/docs/components/schemas/SelfReferencingObjectModel.md b/samples/client/petstore/java/docs/components/schemas/SelfReferencingObjectModel.md index 5cffe2ed589..1e2b4b83b44 100644 --- a/samples/client/petstore/java/docs/components/schemas/SelfReferencingObjectModel.md +++ b/samples/client/petstore/java/docs/components/schemas/SelfReferencingObjectModel.md @@ -12,8 +12,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [SelfReferencingObjectModel.SelfReferencingObjectModel1Boxed](#selfreferencingobjectmodel1boxed)
abstract sealed validated payload class | -| static class | [SelfReferencingObjectModel.SelfReferencingObjectModel1BoxedMap](#selfreferencingobjectmodel1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [SelfReferencingObjectModel.SelfReferencingObjectModel1Boxed](#selfreferencingobjectmodel1boxed)
abstract sealed validated payload class | +| record | [SelfReferencingObjectModel.SelfReferencingObjectModel1BoxedMap](#selfreferencingobjectmodel1boxedmap)
boxed class to store validated Map payloads | | static class | [SelfReferencingObjectModel.SelfReferencingObjectModel1](#selfreferencingobjectmodel1)
schema class | | static class | [SelfReferencingObjectModel.SelfReferencingObjectModelMapBuilder](#selfreferencingobjectmodelmapbuilder)
builder for Map payloads | | static class | [SelfReferencingObjectModel.SelfReferencingObjectModelMap](#selfreferencingobjectmodelmap)
output class for Map payloads | @@ -26,20 +26,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## SelfReferencingObjectModel1BoxedMap -public static final class SelfReferencingObjectModel1BoxedMap
+public record SelfReferencingObjectModel1BoxedMap
implements [SelfReferencingObjectModel1Boxed](#selfreferencingobjectmodel1boxed) -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 | | --------------------------- | | SelfReferencingObjectModel1BoxedMap([SelfReferencingObjectModelMap](#selfreferencingobjectmodelmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SelfReferencingObjectModelMap](#selfreferencingobjectmodelmap) | data
validated payload | +| [SelfReferencingObjectModelMap](#selfreferencingobjectmodelmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## SelfReferencingObjectModel1 public static class SelfReferencingObjectModel1
diff --git a/samples/client/petstore/java/docs/components/schemas/Shape.md b/samples/client/petstore/java/docs/components/schemas/Shape.md index 6a07a5179eb..df6c0ca8f8e 100644 --- a/samples/client/petstore/java/docs/components/schemas/Shape.md +++ b/samples/client/petstore/java/docs/components/schemas/Shape.md @@ -10,13 +10,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Shape.Shape1Boxed](#shape1boxed)
abstract sealed validated payload class | -| static class | [Shape.Shape1BoxedVoid](#shape1boxedvoid)
boxed class to store validated null payloads | -| static class | [Shape.Shape1BoxedBoolean](#shape1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [Shape.Shape1BoxedNumber](#shape1boxednumber)
boxed class to store validated Number payloads | -| static class | [Shape.Shape1BoxedString](#shape1boxedstring)
boxed class to store validated String payloads | -| static class | [Shape.Shape1BoxedList](#shape1boxedlist)
boxed class to store validated List payloads | -| static class | [Shape.Shape1BoxedMap](#shape1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Shape.Shape1Boxed](#shape1boxed)
abstract sealed validated payload class | +| record | [Shape.Shape1BoxedVoid](#shape1boxedvoid)
boxed class to store validated null payloads | +| record | [Shape.Shape1BoxedBoolean](#shape1boxedboolean)
boxed class to store validated boolean payloads | +| record | [Shape.Shape1BoxedNumber](#shape1boxednumber)
boxed class to store validated Number payloads | +| record | [Shape.Shape1BoxedString](#shape1boxedstring)
boxed class to store validated String payloads | +| record | [Shape.Shape1BoxedList](#shape1boxedlist)
boxed class to store validated List payloads | +| record | [Shape.Shape1BoxedMap](#shape1boxedmap)
boxed class to store validated Map payloads | | static class | [Shape.Shape1](#shape1)
schema class | ## Shape1Boxed @@ -32,100 +32,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## Shape1BoxedVoid -public static final class Shape1BoxedVoid
+public record Shape1BoxedVoid
implements [Shape1Boxed](#shape1boxed) -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 | | --------------------------- | | Shape1BoxedVoid(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 | ## Shape1BoxedBoolean -public static final class Shape1BoxedBoolean
+public record Shape1BoxedBoolean
implements [Shape1Boxed](#shape1boxed) -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 | | --------------------------- | | Shape1BoxedBoolean(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 | ## Shape1BoxedNumber -public static final class Shape1BoxedNumber
+public record Shape1BoxedNumber
implements [Shape1Boxed](#shape1boxed) -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 | | --------------------------- | | Shape1BoxedNumber(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 | ## Shape1BoxedString -public static final class Shape1BoxedString
+public record Shape1BoxedString
implements [Shape1Boxed](#shape1boxed) -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 | | --------------------------- | | Shape1BoxedString(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 | ## Shape1BoxedList -public static final class Shape1BoxedList
+public record Shape1BoxedList
implements [Shape1Boxed](#shape1boxed) -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 | | --------------------------- | | Shape1BoxedList(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 | ## Shape1BoxedMap -public static final class Shape1BoxedMap
+public record Shape1BoxedMap
implements [Shape1Boxed](#shape1boxed) -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 | | --------------------------- | | Shape1BoxedMap(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 | ## Shape1 public static class Shape1
diff --git a/samples/client/petstore/java/docs/components/schemas/ShapeOrNull.md b/samples/client/petstore/java/docs/components/schemas/ShapeOrNull.md index 797ab1f8a86..25ade3d710b 100644 --- a/samples/client/petstore/java/docs/components/schemas/ShapeOrNull.md +++ b/samples/client/petstore/java/docs/components/schemas/ShapeOrNull.md @@ -10,16 +10,16 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ShapeOrNull.ShapeOrNull1Boxed](#shapeornull1boxed)
abstract sealed validated payload class | -| static class | [ShapeOrNull.ShapeOrNull1BoxedVoid](#shapeornull1boxedvoid)
boxed class to store validated null payloads | -| static class | [ShapeOrNull.ShapeOrNull1BoxedBoolean](#shapeornull1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ShapeOrNull.ShapeOrNull1BoxedNumber](#shapeornull1boxednumber)
boxed class to store validated Number payloads | -| static class | [ShapeOrNull.ShapeOrNull1BoxedString](#shapeornull1boxedstring)
boxed class to store validated String payloads | -| static class | [ShapeOrNull.ShapeOrNull1BoxedList](#shapeornull1boxedlist)
boxed class to store validated List payloads | -| static class | [ShapeOrNull.ShapeOrNull1BoxedMap](#shapeornull1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ShapeOrNull.ShapeOrNull1Boxed](#shapeornull1boxed)
abstract sealed validated payload class | +| record | [ShapeOrNull.ShapeOrNull1BoxedVoid](#shapeornull1boxedvoid)
boxed class to store validated null payloads | +| record | [ShapeOrNull.ShapeOrNull1BoxedBoolean](#shapeornull1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ShapeOrNull.ShapeOrNull1BoxedNumber](#shapeornull1boxednumber)
boxed class to store validated Number payloads | +| record | [ShapeOrNull.ShapeOrNull1BoxedString](#shapeornull1boxedstring)
boxed class to store validated String payloads | +| record | [ShapeOrNull.ShapeOrNull1BoxedList](#shapeornull1boxedlist)
boxed class to store validated List payloads | +| record | [ShapeOrNull.ShapeOrNull1BoxedMap](#shapeornull1boxedmap)
boxed class to store validated Map payloads | | static class | [ShapeOrNull.ShapeOrNull1](#shapeornull1)
schema class | -| static class | [ShapeOrNull.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | -| static class | [ShapeOrNull.Schema0BoxedVoid](#schema0boxedvoid)
boxed class to store validated null payloads | +| sealed interface | [ShapeOrNull.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | +| record | [ShapeOrNull.Schema0BoxedVoid](#schema0boxedvoid)
boxed class to store validated null payloads | | static class | [ShapeOrNull.Schema0](#schema0)
schema class | ## ShapeOrNull1Boxed @@ -35,100 +35,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## ShapeOrNull1BoxedVoid -public static final class ShapeOrNull1BoxedVoid
+public record ShapeOrNull1BoxedVoid
implements [ShapeOrNull1Boxed](#shapeornull1boxed) -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 | | --------------------------- | | ShapeOrNull1BoxedVoid(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 | ## ShapeOrNull1BoxedBoolean -public static final class ShapeOrNull1BoxedBoolean
+public record ShapeOrNull1BoxedBoolean
implements [ShapeOrNull1Boxed](#shapeornull1boxed) -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 | | --------------------------- | | ShapeOrNull1BoxedBoolean(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 | ## ShapeOrNull1BoxedNumber -public static final class ShapeOrNull1BoxedNumber
+public record ShapeOrNull1BoxedNumber
implements [ShapeOrNull1Boxed](#shapeornull1boxed) -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 | | --------------------------- | | ShapeOrNull1BoxedNumber(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 | ## ShapeOrNull1BoxedString -public static final class ShapeOrNull1BoxedString
+public record ShapeOrNull1BoxedString
implements [ShapeOrNull1Boxed](#shapeornull1boxed) -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 | | --------------------------- | | ShapeOrNull1BoxedString(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 | ## ShapeOrNull1BoxedList -public static final class ShapeOrNull1BoxedList
+public record ShapeOrNull1BoxedList
implements [ShapeOrNull1Boxed](#shapeornull1boxed) -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 | | --------------------------- | | ShapeOrNull1BoxedList(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 | ## ShapeOrNull1BoxedMap -public static final class ShapeOrNull1BoxedMap
+public record ShapeOrNull1BoxedMap
implements [ShapeOrNull1Boxed](#shapeornull1boxed) -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 | | --------------------------- | | ShapeOrNull1BoxedMap(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 | ## ShapeOrNull1 public static class ShapeOrNull1
@@ -172,20 +178,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema0BoxedVoid -public static final class Schema0BoxedVoid
+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 | ## Schema0 public static class Schema0
diff --git a/samples/client/petstore/java/docs/components/schemas/SimpleQuadrilateral.md b/samples/client/petstore/java/docs/components/schemas/SimpleQuadrilateral.md index 6bc96b3a513..ac83d7979fa 100644 --- a/samples/client/petstore/java/docs/components/schemas/SimpleQuadrilateral.md +++ b/samples/client/petstore/java/docs/components/schemas/SimpleQuadrilateral.md @@ -13,21 +13,21 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [SimpleQuadrilateral.SimpleQuadrilateral1Boxed](#simplequadrilateral1boxed)
abstract sealed validated payload class | -| static class | [SimpleQuadrilateral.SimpleQuadrilateral1BoxedVoid](#simplequadrilateral1boxedvoid)
boxed class to store validated null payloads | -| static class | [SimpleQuadrilateral.SimpleQuadrilateral1BoxedBoolean](#simplequadrilateral1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [SimpleQuadrilateral.SimpleQuadrilateral1BoxedNumber](#simplequadrilateral1boxednumber)
boxed class to store validated Number payloads | -| static class | [SimpleQuadrilateral.SimpleQuadrilateral1BoxedString](#simplequadrilateral1boxedstring)
boxed class to store validated String payloads | -| static class | [SimpleQuadrilateral.SimpleQuadrilateral1BoxedList](#simplequadrilateral1boxedlist)
boxed class to store validated List payloads | -| static class | [SimpleQuadrilateral.SimpleQuadrilateral1BoxedMap](#simplequadrilateral1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [SimpleQuadrilateral.SimpleQuadrilateral1Boxed](#simplequadrilateral1boxed)
abstract sealed validated payload class | +| record | [SimpleQuadrilateral.SimpleQuadrilateral1BoxedVoid](#simplequadrilateral1boxedvoid)
boxed class to store validated null payloads | +| record | [SimpleQuadrilateral.SimpleQuadrilateral1BoxedBoolean](#simplequadrilateral1boxedboolean)
boxed class to store validated boolean payloads | +| record | [SimpleQuadrilateral.SimpleQuadrilateral1BoxedNumber](#simplequadrilateral1boxednumber)
boxed class to store validated Number payloads | +| record | [SimpleQuadrilateral.SimpleQuadrilateral1BoxedString](#simplequadrilateral1boxedstring)
boxed class to store validated String payloads | +| record | [SimpleQuadrilateral.SimpleQuadrilateral1BoxedList](#simplequadrilateral1boxedlist)
boxed class to store validated List payloads | +| record | [SimpleQuadrilateral.SimpleQuadrilateral1BoxedMap](#simplequadrilateral1boxedmap)
boxed class to store validated Map payloads | | static class | [SimpleQuadrilateral.SimpleQuadrilateral1](#simplequadrilateral1)
schema class | -| static class | [SimpleQuadrilateral.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | -| static class | [SimpleQuadrilateral.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [SimpleQuadrilateral.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | +| record | [SimpleQuadrilateral.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | | static class | [SimpleQuadrilateral.Schema1](#schema1)
schema class | | static class | [SimpleQuadrilateral.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [SimpleQuadrilateral.Schema1Map](#schema1map)
output class for Map payloads | -| static class | [SimpleQuadrilateral.QuadrilateralTypeBoxed](#quadrilateraltypeboxed)
abstract sealed validated payload class | -| static class | [SimpleQuadrilateral.QuadrilateralTypeBoxedString](#quadrilateraltypeboxedstring)
boxed class to store validated String payloads | +| sealed interface | [SimpleQuadrilateral.QuadrilateralTypeBoxed](#quadrilateraltypeboxed)
abstract sealed validated payload class | +| record | [SimpleQuadrilateral.QuadrilateralTypeBoxedString](#quadrilateraltypeboxedstring)
boxed class to store validated String payloads | | static class | [SimpleQuadrilateral.QuadrilateralType](#quadrilateraltype)
schema class | | enum | [SimpleQuadrilateral.StringQuadrilateralTypeEnums](#stringquadrilateraltypeenums)
String enum | @@ -44,100 +44,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## SimpleQuadrilateral1BoxedVoid -public static final class SimpleQuadrilateral1BoxedVoid
+public record SimpleQuadrilateral1BoxedVoid
implements [SimpleQuadrilateral1Boxed](#simplequadrilateral1boxed) -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 | | --------------------------- | | SimpleQuadrilateral1BoxedVoid(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 | ## SimpleQuadrilateral1BoxedBoolean -public static final class SimpleQuadrilateral1BoxedBoolean
+public record SimpleQuadrilateral1BoxedBoolean
implements [SimpleQuadrilateral1Boxed](#simplequadrilateral1boxed) -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 | | --------------------------- | | SimpleQuadrilateral1BoxedBoolean(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 | ## SimpleQuadrilateral1BoxedNumber -public static final class SimpleQuadrilateral1BoxedNumber
+public record SimpleQuadrilateral1BoxedNumber
implements [SimpleQuadrilateral1Boxed](#simplequadrilateral1boxed) -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 | | --------------------------- | | SimpleQuadrilateral1BoxedNumber(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 | ## SimpleQuadrilateral1BoxedString -public static final class SimpleQuadrilateral1BoxedString
+public record SimpleQuadrilateral1BoxedString
implements [SimpleQuadrilateral1Boxed](#simplequadrilateral1boxed) -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 | | --------------------------- | | SimpleQuadrilateral1BoxedString(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 | ## SimpleQuadrilateral1BoxedList -public static final class SimpleQuadrilateral1BoxedList
+public record SimpleQuadrilateral1BoxedList
implements [SimpleQuadrilateral1Boxed](#simplequadrilateral1boxed) -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 | | --------------------------- | | SimpleQuadrilateral1BoxedList(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 | ## SimpleQuadrilateral1BoxedMap -public static final class SimpleQuadrilateral1BoxedMap
+public record SimpleQuadrilateral1BoxedMap
implements [SimpleQuadrilateral1Boxed](#simplequadrilateral1boxed) -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 | | --------------------------- | | SimpleQuadrilateral1BoxedMap(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 | ## SimpleQuadrilateral1 public static class SimpleQuadrilateral1
@@ -178,20 +184,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema1BoxedMap -public static final class Schema1BoxedMap
+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
@@ -285,20 +292,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## QuadrilateralTypeBoxedString -public static final class QuadrilateralTypeBoxedString
+public record QuadrilateralTypeBoxedString
implements [QuadrilateralTypeBoxed](#quadrilateraltypeboxed) -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 | | --------------------------- | | QuadrilateralTypeBoxedString(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 | ## QuadrilateralType public static class QuadrilateralType
diff --git a/samples/client/petstore/java/docs/components/schemas/SomeObject.md b/samples/client/petstore/java/docs/components/schemas/SomeObject.md index eb63109cbac..c92d17b4570 100644 --- a/samples/client/petstore/java/docs/components/schemas/SomeObject.md +++ b/samples/client/petstore/java/docs/components/schemas/SomeObject.md @@ -10,13 +10,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [SomeObject.SomeObject1Boxed](#someobject1boxed)
abstract sealed validated payload class | -| static class | [SomeObject.SomeObject1BoxedVoid](#someobject1boxedvoid)
boxed class to store validated null payloads | -| static class | [SomeObject.SomeObject1BoxedBoolean](#someobject1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [SomeObject.SomeObject1BoxedNumber](#someobject1boxednumber)
boxed class to store validated Number payloads | -| static class | [SomeObject.SomeObject1BoxedString](#someobject1boxedstring)
boxed class to store validated String payloads | -| static class | [SomeObject.SomeObject1BoxedList](#someobject1boxedlist)
boxed class to store validated List payloads | -| static class | [SomeObject.SomeObject1BoxedMap](#someobject1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [SomeObject.SomeObject1Boxed](#someobject1boxed)
abstract sealed validated payload class | +| record | [SomeObject.SomeObject1BoxedVoid](#someobject1boxedvoid)
boxed class to store validated null payloads | +| record | [SomeObject.SomeObject1BoxedBoolean](#someobject1boxedboolean)
boxed class to store validated boolean payloads | +| record | [SomeObject.SomeObject1BoxedNumber](#someobject1boxednumber)
boxed class to store validated Number payloads | +| record | [SomeObject.SomeObject1BoxedString](#someobject1boxedstring)
boxed class to store validated String payloads | +| record | [SomeObject.SomeObject1BoxedList](#someobject1boxedlist)
boxed class to store validated List payloads | +| record | [SomeObject.SomeObject1BoxedMap](#someobject1boxedmap)
boxed class to store validated Map payloads | | static class | [SomeObject.SomeObject1](#someobject1)
schema class | ## SomeObject1Boxed @@ -32,100 +32,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## SomeObject1BoxedVoid -public static final class SomeObject1BoxedVoid
+public record SomeObject1BoxedVoid
implements [SomeObject1Boxed](#someobject1boxed) -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 | | --------------------------- | | SomeObject1BoxedVoid(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 | ## SomeObject1BoxedBoolean -public static final class SomeObject1BoxedBoolean
+public record SomeObject1BoxedBoolean
implements [SomeObject1Boxed](#someobject1boxed) -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 | | --------------------------- | | SomeObject1BoxedBoolean(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 | ## SomeObject1BoxedNumber -public static final class SomeObject1BoxedNumber
+public record SomeObject1BoxedNumber
implements [SomeObject1Boxed](#someobject1boxed) -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 | | --------------------------- | | SomeObject1BoxedNumber(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 | ## SomeObject1BoxedString -public static final class SomeObject1BoxedString
+public record SomeObject1BoxedString
implements [SomeObject1Boxed](#someobject1boxed) -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 | | --------------------------- | | SomeObject1BoxedString(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 | ## SomeObject1BoxedList -public static final class SomeObject1BoxedList
+public record SomeObject1BoxedList
implements [SomeObject1Boxed](#someobject1boxed) -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 | | --------------------------- | | SomeObject1BoxedList(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 | ## SomeObject1BoxedMap -public static final class SomeObject1BoxedMap
+public record SomeObject1BoxedMap
implements [SomeObject1Boxed](#someobject1boxed) -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 | | --------------------------- | | SomeObject1BoxedMap(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 | ## SomeObject1 public static class SomeObject1
diff --git a/samples/client/petstore/java/docs/components/schemas/SpecialModelname.md b/samples/client/petstore/java/docs/components/schemas/SpecialModelname.md index 412df7f3693..0141e8a91eb 100644 --- a/samples/client/petstore/java/docs/components/schemas/SpecialModelname.md +++ b/samples/client/petstore/java/docs/components/schemas/SpecialModelname.md @@ -12,13 +12,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [SpecialModelname.SpecialModelname1Boxed](#specialmodelname1boxed)
abstract sealed validated payload class | -| static class | [SpecialModelname.SpecialModelname1BoxedMap](#specialmodelname1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [SpecialModelname.SpecialModelname1Boxed](#specialmodelname1boxed)
abstract sealed validated payload class | +| record | [SpecialModelname.SpecialModelname1BoxedMap](#specialmodelname1boxedmap)
boxed class to store validated Map payloads | | static class | [SpecialModelname.SpecialModelname1](#specialmodelname1)
schema class | | static class | [SpecialModelname.SpecialModelnameMapBuilder](#specialmodelnamemapbuilder)
builder for Map payloads | | static class | [SpecialModelname.SpecialModelnameMap](#specialmodelnamemap)
output class for Map payloads | -| static class | [SpecialModelname.ABoxed](#aboxed)
abstract sealed validated payload class | -| static class | [SpecialModelname.ABoxedString](#aboxedstring)
boxed class to store validated String payloads | +| sealed interface | [SpecialModelname.ABoxed](#aboxed)
abstract sealed validated payload class | +| record | [SpecialModelname.ABoxedString](#aboxedstring)
boxed class to store validated String payloads | | static class | [SpecialModelname.A](#a)
schema class | ## SpecialModelname1Boxed @@ -29,20 +29,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## SpecialModelname1BoxedMap -public static final class SpecialModelname1BoxedMap
+public record SpecialModelname1BoxedMap
implements [SpecialModelname1Boxed](#specialmodelname1boxed) -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 | | --------------------------- | | SpecialModelname1BoxedMap([SpecialModelnameMap](#specialmodelnamemap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SpecialModelnameMap](#specialmodelnamemap) | data
validated payload | +| [SpecialModelnameMap](#specialmodelnamemap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## SpecialModelname1 public static class SpecialModelname1
@@ -138,20 +139,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ABoxedString -public static final class ABoxedString
+public record ABoxedString
implements [ABoxed](#aboxed) -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 | | --------------------------- | | ABoxedString(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 | ## A public static class A
diff --git a/samples/client/petstore/java/docs/components/schemas/StringBooleanMap.md b/samples/client/petstore/java/docs/components/schemas/StringBooleanMap.md index 5868b5c43cc..fee33998ecc 100644 --- a/samples/client/petstore/java/docs/components/schemas/StringBooleanMap.md +++ b/samples/client/petstore/java/docs/components/schemas/StringBooleanMap.md @@ -12,13 +12,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [StringBooleanMap.StringBooleanMap1Boxed](#stringbooleanmap1boxed)
abstract sealed validated payload class | -| static class | [StringBooleanMap.StringBooleanMap1BoxedMap](#stringbooleanmap1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [StringBooleanMap.StringBooleanMap1Boxed](#stringbooleanmap1boxed)
abstract sealed validated payload class | +| record | [StringBooleanMap.StringBooleanMap1BoxedMap](#stringbooleanmap1boxedmap)
boxed class to store validated Map payloads | | static class | [StringBooleanMap.StringBooleanMap1](#stringbooleanmap1)
schema class | | static class | [StringBooleanMap.StringBooleanMapMapBuilder](#stringbooleanmapmapbuilder)
builder for Map payloads | | static class | [StringBooleanMap.StringBooleanMapMap](#stringbooleanmapmap)
output class for Map payloads | -| static class | [StringBooleanMap.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | -| static class | [StringBooleanMap.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| sealed interface | [StringBooleanMap.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| record | [StringBooleanMap.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | | static class | [StringBooleanMap.AdditionalProperties](#additionalproperties)
schema class | ## StringBooleanMap1Boxed @@ -29,20 +29,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## StringBooleanMap1BoxedMap -public static final class StringBooleanMap1BoxedMap
+public record StringBooleanMap1BoxedMap
implements [StringBooleanMap1Boxed](#stringbooleanmap1boxed) -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 | | --------------------------- | | StringBooleanMap1BoxedMap([StringBooleanMapMap](#stringbooleanmapmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [StringBooleanMapMap](#stringbooleanmapmap) | data
validated payload | +| [StringBooleanMapMap](#stringbooleanmapmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## StringBooleanMap1 public static class StringBooleanMap1
@@ -125,20 +126,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedBoolean -public static final class AdditionalPropertiesBoxedBoolean
+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/petstore/java/docs/components/schemas/StringEnum.md b/samples/client/petstore/java/docs/components/schemas/StringEnum.md index 1f9f14aa236..cbd7067fc5e 100644 --- a/samples/client/petstore/java/docs/components/schemas/StringEnum.md +++ b/samples/client/petstore/java/docs/components/schemas/StringEnum.md @@ -11,9 +11,9 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [StringEnum.StringEnum1Boxed](#stringenum1boxed)
abstract sealed validated payload class | -| static class | [StringEnum.StringEnum1BoxedVoid](#stringenum1boxedvoid)
boxed class to store validated null payloads | -| static class | [StringEnum.StringEnum1BoxedString](#stringenum1boxedstring)
boxed class to store validated String payloads | +| sealed interface | [StringEnum.StringEnum1Boxed](#stringenum1boxed)
abstract sealed validated payload class | +| record | [StringEnum.StringEnum1BoxedVoid](#stringenum1boxedvoid)
boxed class to store validated null payloads | +| record | [StringEnum.StringEnum1BoxedString](#stringenum1boxedstring)
boxed class to store validated String payloads | | static class | [StringEnum.StringEnum1](#stringenum1)
schema class | | enum | [StringEnum.StringStringEnumEnums](#stringstringenumenums)
String enum | | enum | [StringEnum.NullStringEnumEnums](#nullstringenumenums)
null enum | @@ -27,36 +27,38 @@ permits
sealed interface that stores validated payloads using boxed classes ## StringEnum1BoxedVoid -public static final class StringEnum1BoxedVoid
+public record StringEnum1BoxedVoid
implements [StringEnum1Boxed](#stringenum1boxed) -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 | | --------------------------- | | StringEnum1BoxedVoid(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 | ## StringEnum1BoxedString -public static final class StringEnum1BoxedString
+public record StringEnum1BoxedString
implements [StringEnum1Boxed](#stringenum1boxed) -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 | | --------------------------- | | StringEnum1BoxedString(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 | ## StringEnum1 public static class StringEnum1
diff --git a/samples/client/petstore/java/docs/components/schemas/StringEnumWithDefaultValue.md b/samples/client/petstore/java/docs/components/schemas/StringEnumWithDefaultValue.md index 35364494e64..2bc67b1009b 100644 --- a/samples/client/petstore/java/docs/components/schemas/StringEnumWithDefaultValue.md +++ b/samples/client/petstore/java/docs/components/schemas/StringEnumWithDefaultValue.md @@ -11,8 +11,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [StringEnumWithDefaultValue.StringEnumWithDefaultValue1Boxed](#stringenumwithdefaultvalue1boxed)
abstract sealed validated payload class | -| static class | [StringEnumWithDefaultValue.StringEnumWithDefaultValue1BoxedString](#stringenumwithdefaultvalue1boxedstring)
boxed class to store validated String payloads | +| sealed interface | [StringEnumWithDefaultValue.StringEnumWithDefaultValue1Boxed](#stringenumwithdefaultvalue1boxed)
abstract sealed validated payload class | +| record | [StringEnumWithDefaultValue.StringEnumWithDefaultValue1BoxedString](#stringenumwithdefaultvalue1boxedstring)
boxed class to store validated String payloads | | static class | [StringEnumWithDefaultValue.StringEnumWithDefaultValue1](#stringenumwithdefaultvalue1)
schema class | | enum | [StringEnumWithDefaultValue.StringStringEnumWithDefaultValueEnums](#stringstringenumwithdefaultvalueenums)
String enum | @@ -24,20 +24,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## StringEnumWithDefaultValue1BoxedString -public static final class StringEnumWithDefaultValue1BoxedString
+public record StringEnumWithDefaultValue1BoxedString
implements [StringEnumWithDefaultValue1Boxed](#stringenumwithdefaultvalue1boxed) -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 | | --------------------------- | | StringEnumWithDefaultValue1BoxedString(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 | ## StringEnumWithDefaultValue1 public static class StringEnumWithDefaultValue1
diff --git a/samples/client/petstore/java/docs/components/schemas/StringSchema.md b/samples/client/petstore/java/docs/components/schemas/StringSchema.md index 07acfe2ea1c..2dc5dde78af 100644 --- a/samples/client/petstore/java/docs/components/schemas/StringSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/StringSchema.md @@ -10,8 +10,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [StringSchema.StringSchema1Boxed](#stringschema1boxed)
abstract sealed validated payload class | -| static class | [StringSchema.StringSchema1BoxedString](#stringschema1boxedstring)
boxed class to store validated String payloads | +| sealed interface | [StringSchema.StringSchema1Boxed](#stringschema1boxed)
abstract sealed validated payload class | +| record | [StringSchema.StringSchema1BoxedString](#stringschema1boxedstring)
boxed class to store validated String payloads | | static class | [StringSchema.StringSchema1](#stringschema1)
schema class | ## StringSchema1Boxed @@ -22,20 +22,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## StringSchema1BoxedString -public static final class StringSchema1BoxedString
+public record StringSchema1BoxedString
implements [StringSchema1Boxed](#stringschema1boxed) -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 | | --------------------------- | | StringSchema1BoxedString(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 | ## StringSchema1 public static class StringSchema1
diff --git a/samples/client/petstore/java/docs/components/schemas/StringWithValidation.md b/samples/client/petstore/java/docs/components/schemas/StringWithValidation.md index d08046ac494..50d02ce89d0 100644 --- a/samples/client/petstore/java/docs/components/schemas/StringWithValidation.md +++ b/samples/client/petstore/java/docs/components/schemas/StringWithValidation.md @@ -10,8 +10,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [StringWithValidation.StringWithValidation1Boxed](#stringwithvalidation1boxed)
abstract sealed validated payload class | -| static class | [StringWithValidation.StringWithValidation1BoxedString](#stringwithvalidation1boxedstring)
boxed class to store validated String payloads | +| sealed interface | [StringWithValidation.StringWithValidation1Boxed](#stringwithvalidation1boxed)
abstract sealed validated payload class | +| record | [StringWithValidation.StringWithValidation1BoxedString](#stringwithvalidation1boxedstring)
boxed class to store validated String payloads | | static class | [StringWithValidation.StringWithValidation1](#stringwithvalidation1)
schema class | ## StringWithValidation1Boxed @@ -22,20 +22,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## StringWithValidation1BoxedString -public static final class StringWithValidation1BoxedString
+public record StringWithValidation1BoxedString
implements [StringWithValidation1Boxed](#stringwithvalidation1boxed) -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 | | --------------------------- | | StringWithValidation1BoxedString(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 | ## StringWithValidation1 public static class StringWithValidation1
diff --git a/samples/client/petstore/java/docs/components/schemas/Tag.md b/samples/client/petstore/java/docs/components/schemas/Tag.md index f77c688bc3a..bad80775321 100644 --- a/samples/client/petstore/java/docs/components/schemas/Tag.md +++ b/samples/client/petstore/java/docs/components/schemas/Tag.md @@ -12,16 +12,16 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Tag.Tag1Boxed](#tag1boxed)
abstract sealed validated payload class | -| static class | [Tag.Tag1BoxedMap](#tag1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Tag.Tag1Boxed](#tag1boxed)
abstract sealed validated payload class | +| record | [Tag.Tag1BoxedMap](#tag1boxedmap)
boxed class to store validated Map payloads | | static class | [Tag.Tag1](#tag1)
schema class | | static class | [Tag.TagMapBuilder](#tagmapbuilder)
builder for Map payloads | | static class | [Tag.TagMap](#tagmap)
output class for Map payloads | -| static class | [Tag.NameBoxed](#nameboxed)
abstract sealed validated payload class | -| static class | [Tag.NameBoxedString](#nameboxedstring)
boxed class to store validated String payloads | +| sealed interface | [Tag.NameBoxed](#nameboxed)
abstract sealed validated payload class | +| record | [Tag.NameBoxedString](#nameboxedstring)
boxed class to store validated String payloads | | static class | [Tag.Name](#name)
schema class | -| static class | [Tag.IdBoxed](#idboxed)
abstract sealed validated payload class | -| static class | [Tag.IdBoxedNumber](#idboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [Tag.IdBoxed](#idboxed)
abstract sealed validated payload class | +| record | [Tag.IdBoxedNumber](#idboxednumber)
boxed class to store validated Number payloads | | static class | [Tag.Id](#id)
schema class | ## Tag1Boxed @@ -32,20 +32,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Tag1BoxedMap -public static final class Tag1BoxedMap
+public record Tag1BoxedMap
implements [Tag1Boxed](#tag1boxed) -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 | | --------------------------- | | Tag1BoxedMap([TagMap](#tagmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [TagMap](#tagmap) | data
validated payload | +| [TagMap](#tagmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Tag1 public static class Tag1
@@ -145,20 +146,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## NameBoxedString -public static final class NameBoxedString
+public record NameBoxedString
implements [NameBoxed](#nameboxed) -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 | | --------------------------- | | NameBoxedString(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 | ## Name public static class Name
@@ -179,20 +181,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## IdBoxedNumber -public static final class IdBoxedNumber
+public record IdBoxedNumber
implements [IdBoxed](#idboxed) -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 | | --------------------------- | | IdBoxedNumber(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 | ## Id public static class Id
diff --git a/samples/client/petstore/java/docs/components/schemas/Triangle.md b/samples/client/petstore/java/docs/components/schemas/Triangle.md index 80339b8a92d..26cbc275205 100644 --- a/samples/client/petstore/java/docs/components/schemas/Triangle.md +++ b/samples/client/petstore/java/docs/components/schemas/Triangle.md @@ -10,13 +10,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Triangle.Triangle1Boxed](#triangle1boxed)
abstract sealed validated payload class | -| static class | [Triangle.Triangle1BoxedVoid](#triangle1boxedvoid)
boxed class to store validated null payloads | -| static class | [Triangle.Triangle1BoxedBoolean](#triangle1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [Triangle.Triangle1BoxedNumber](#triangle1boxednumber)
boxed class to store validated Number payloads | -| static class | [Triangle.Triangle1BoxedString](#triangle1boxedstring)
boxed class to store validated String payloads | -| static class | [Triangle.Triangle1BoxedList](#triangle1boxedlist)
boxed class to store validated List payloads | -| static class | [Triangle.Triangle1BoxedMap](#triangle1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Triangle.Triangle1Boxed](#triangle1boxed)
abstract sealed validated payload class | +| record | [Triangle.Triangle1BoxedVoid](#triangle1boxedvoid)
boxed class to store validated null payloads | +| record | [Triangle.Triangle1BoxedBoolean](#triangle1boxedboolean)
boxed class to store validated boolean payloads | +| record | [Triangle.Triangle1BoxedNumber](#triangle1boxednumber)
boxed class to store validated Number payloads | +| record | [Triangle.Triangle1BoxedString](#triangle1boxedstring)
boxed class to store validated String payloads | +| record | [Triangle.Triangle1BoxedList](#triangle1boxedlist)
boxed class to store validated List payloads | +| record | [Triangle.Triangle1BoxedMap](#triangle1boxedmap)
boxed class to store validated Map payloads | | static class | [Triangle.Triangle1](#triangle1)
schema class | ## Triangle1Boxed @@ -32,100 +32,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## Triangle1BoxedVoid -public static final class Triangle1BoxedVoid
+public record Triangle1BoxedVoid
implements [Triangle1Boxed](#triangle1boxed) -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 | | --------------------------- | | Triangle1BoxedVoid(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 | ## Triangle1BoxedBoolean -public static final class Triangle1BoxedBoolean
+public record Triangle1BoxedBoolean
implements [Triangle1Boxed](#triangle1boxed) -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 | | --------------------------- | | Triangle1BoxedBoolean(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 | ## Triangle1BoxedNumber -public static final class Triangle1BoxedNumber
+public record Triangle1BoxedNumber
implements [Triangle1Boxed](#triangle1boxed) -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 | | --------------------------- | | Triangle1BoxedNumber(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 | ## Triangle1BoxedString -public static final class Triangle1BoxedString
+public record Triangle1BoxedString
implements [Triangle1Boxed](#triangle1boxed) -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 | | --------------------------- | | Triangle1BoxedString(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 | ## Triangle1BoxedList -public static final class Triangle1BoxedList
+public record Triangle1BoxedList
implements [Triangle1Boxed](#triangle1boxed) -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 | | --------------------------- | | Triangle1BoxedList(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 | ## Triangle1BoxedMap -public static final class Triangle1BoxedMap
+public record Triangle1BoxedMap
implements [Triangle1Boxed](#triangle1boxed) -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 | | --------------------------- | | Triangle1BoxedMap(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 | ## Triangle1 public static class Triangle1
diff --git a/samples/client/petstore/java/docs/components/schemas/TriangleInterface.md b/samples/client/petstore/java/docs/components/schemas/TriangleInterface.md index 1ca25c0fe34..7456f848e09 100644 --- a/samples/client/petstore/java/docs/components/schemas/TriangleInterface.md +++ b/samples/client/petstore/java/docs/components/schemas/TriangleInterface.md @@ -13,21 +13,21 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [TriangleInterface.TriangleInterface1Boxed](#triangleinterface1boxed)
abstract sealed validated payload class | -| static class | [TriangleInterface.TriangleInterface1BoxedVoid](#triangleinterface1boxedvoid)
boxed class to store validated null payloads | -| static class | [TriangleInterface.TriangleInterface1BoxedBoolean](#triangleinterface1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [TriangleInterface.TriangleInterface1BoxedNumber](#triangleinterface1boxednumber)
boxed class to store validated Number payloads | -| static class | [TriangleInterface.TriangleInterface1BoxedString](#triangleinterface1boxedstring)
boxed class to store validated String payloads | -| static class | [TriangleInterface.TriangleInterface1BoxedList](#triangleinterface1boxedlist)
boxed class to store validated List payloads | -| static class | [TriangleInterface.TriangleInterface1BoxedMap](#triangleinterface1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [TriangleInterface.TriangleInterface1Boxed](#triangleinterface1boxed)
abstract sealed validated payload class | +| record | [TriangleInterface.TriangleInterface1BoxedVoid](#triangleinterface1boxedvoid)
boxed class to store validated null payloads | +| record | [TriangleInterface.TriangleInterface1BoxedBoolean](#triangleinterface1boxedboolean)
boxed class to store validated boolean payloads | +| record | [TriangleInterface.TriangleInterface1BoxedNumber](#triangleinterface1boxednumber)
boxed class to store validated Number payloads | +| record | [TriangleInterface.TriangleInterface1BoxedString](#triangleinterface1boxedstring)
boxed class to store validated String payloads | +| record | [TriangleInterface.TriangleInterface1BoxedList](#triangleinterface1boxedlist)
boxed class to store validated List payloads | +| record | [TriangleInterface.TriangleInterface1BoxedMap](#triangleinterface1boxedmap)
boxed class to store validated Map payloads | | static class | [TriangleInterface.TriangleInterface1](#triangleinterface1)
schema class | | static class | [TriangleInterface.TriangleInterfaceMapBuilder](#triangleinterfacemapbuilder)
builder for Map payloads | | static class | [TriangleInterface.TriangleInterfaceMap](#triangleinterfacemap)
output class for Map payloads | -| static class | [TriangleInterface.TriangleTypeBoxed](#triangletypeboxed)
abstract sealed validated payload class | -| static class | [TriangleInterface.TriangleTypeBoxedString](#triangletypeboxedstring)
boxed class to store validated String payloads | +| sealed interface | [TriangleInterface.TriangleTypeBoxed](#triangletypeboxed)
abstract sealed validated payload class | +| record | [TriangleInterface.TriangleTypeBoxedString](#triangletypeboxedstring)
boxed class to store validated String payloads | | static class | [TriangleInterface.TriangleType](#triangletype)
schema class | -| static class | [TriangleInterface.ShapeTypeBoxed](#shapetypeboxed)
abstract sealed validated payload class | -| static class | [TriangleInterface.ShapeTypeBoxedString](#shapetypeboxedstring)
boxed class to store validated String payloads | +| sealed interface | [TriangleInterface.ShapeTypeBoxed](#shapetypeboxed)
abstract sealed validated payload class | +| record | [TriangleInterface.ShapeTypeBoxedString](#shapetypeboxedstring)
boxed class to store validated String payloads | | static class | [TriangleInterface.ShapeType](#shapetype)
schema class | | enum | [TriangleInterface.StringShapeTypeEnums](#stringshapetypeenums)
String enum | @@ -44,100 +44,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## TriangleInterface1BoxedVoid -public static final class TriangleInterface1BoxedVoid
+public record TriangleInterface1BoxedVoid
implements [TriangleInterface1Boxed](#triangleinterface1boxed) -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 | | --------------------------- | | TriangleInterface1BoxedVoid(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 | ## TriangleInterface1BoxedBoolean -public static final class TriangleInterface1BoxedBoolean
+public record TriangleInterface1BoxedBoolean
implements [TriangleInterface1Boxed](#triangleinterface1boxed) -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 | | --------------------------- | | TriangleInterface1BoxedBoolean(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 | ## TriangleInterface1BoxedNumber -public static final class TriangleInterface1BoxedNumber
+public record TriangleInterface1BoxedNumber
implements [TriangleInterface1Boxed](#triangleinterface1boxed) -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 | | --------------------------- | | TriangleInterface1BoxedNumber(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 | ## TriangleInterface1BoxedString -public static final class TriangleInterface1BoxedString
+public record TriangleInterface1BoxedString
implements [TriangleInterface1Boxed](#triangleinterface1boxed) -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 | | --------------------------- | | TriangleInterface1BoxedString(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 | ## TriangleInterface1BoxedList -public static final class TriangleInterface1BoxedList
+public record TriangleInterface1BoxedList
implements [TriangleInterface1Boxed](#triangleinterface1boxed) -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 | | --------------------------- | | TriangleInterface1BoxedList(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 | ## TriangleInterface1BoxedMap -public static final class TriangleInterface1BoxedMap
+public record TriangleInterface1BoxedMap
implements [TriangleInterface1Boxed](#triangleinterface1boxed) -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 | | --------------------------- | | TriangleInterface1BoxedMap([TriangleInterfaceMap](#triangleinterfacemap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [TriangleInterfaceMap](#triangleinterfacemap) | data
validated payload | +| [TriangleInterfaceMap](#triangleinterfacemap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## TriangleInterface1 public static class TriangleInterface1
@@ -269,20 +275,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## TriangleTypeBoxedString -public static final class TriangleTypeBoxedString
+public record TriangleTypeBoxedString
implements [TriangleTypeBoxed](#triangletypeboxed) -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 | | --------------------------- | | TriangleTypeBoxedString(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 | ## TriangleType public static class TriangleType
@@ -303,20 +310,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ShapeTypeBoxedString -public static final class ShapeTypeBoxedString
+public record ShapeTypeBoxedString
implements [ShapeTypeBoxed](#shapetypeboxed) -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 | | --------------------------- | | ShapeTypeBoxedString(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 | ## ShapeType public static class ShapeType
diff --git a/samples/client/petstore/java/docs/components/schemas/UUIDString.md b/samples/client/petstore/java/docs/components/schemas/UUIDString.md index ee4f6b70102..5a2facf7a1c 100644 --- a/samples/client/petstore/java/docs/components/schemas/UUIDString.md +++ b/samples/client/petstore/java/docs/components/schemas/UUIDString.md @@ -10,8 +10,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [UUIDString.UUIDString1Boxed](#uuidstring1boxed)
abstract sealed validated payload class | -| static class | [UUIDString.UUIDString1BoxedString](#uuidstring1boxedstring)
boxed class to store validated String payloads | +| sealed interface | [UUIDString.UUIDString1Boxed](#uuidstring1boxed)
abstract sealed validated payload class | +| record | [UUIDString.UUIDString1BoxedString](#uuidstring1boxedstring)
boxed class to store validated String payloads | | static class | [UUIDString.UUIDString1](#uuidstring1)
schema class | ## UUIDString1Boxed @@ -22,20 +22,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## UUIDString1BoxedString -public static final class UUIDString1BoxedString
+public record UUIDString1BoxedString
implements [UUIDString1Boxed](#uuidstring1boxed) -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 | | --------------------------- | | UUIDString1BoxedString(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 | ## UUIDString1 public static class UUIDString1
diff --git a/samples/client/petstore/java/docs/components/schemas/User.md b/samples/client/petstore/java/docs/components/schemas/User.md index fe4fbb8af90..21fefd54ef6 100644 --- a/samples/client/petstore/java/docs/components/schemas/User.md +++ b/samples/client/petstore/java/docs/components/schemas/User.md @@ -12,68 +12,68 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [User.User1Boxed](#user1boxed)
abstract sealed validated payload class | -| static class | [User.User1BoxedMap](#user1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [User.User1Boxed](#user1boxed)
abstract sealed validated payload class | +| record | [User.User1BoxedMap](#user1boxedmap)
boxed class to store validated Map payloads | | static class | [User.User1](#user1)
schema class | | static class | [User.UserMapBuilder](#usermapbuilder)
builder for Map payloads | | static class | [User.UserMap](#usermap)
output class for Map payloads | -| static class | [User.AnyTypePropNullableBoxed](#anytypepropnullableboxed)
abstract sealed validated payload class | -| static class | [User.AnyTypePropNullableBoxedVoid](#anytypepropnullableboxedvoid)
boxed class to store validated null payloads | -| static class | [User.AnyTypePropNullableBoxedBoolean](#anytypepropnullableboxedboolean)
boxed class to store validated boolean payloads | -| static class | [User.AnyTypePropNullableBoxedNumber](#anytypepropnullableboxednumber)
boxed class to store validated Number payloads | -| static class | [User.AnyTypePropNullableBoxedString](#anytypepropnullableboxedstring)
boxed class to store validated String payloads | -| static class | [User.AnyTypePropNullableBoxedList](#anytypepropnullableboxedlist)
boxed class to store validated List payloads | -| static class | [User.AnyTypePropNullableBoxedMap](#anytypepropnullableboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [User.AnyTypePropNullableBoxed](#anytypepropnullableboxed)
abstract sealed validated payload class | +| record | [User.AnyTypePropNullableBoxedVoid](#anytypepropnullableboxedvoid)
boxed class to store validated null payloads | +| record | [User.AnyTypePropNullableBoxedBoolean](#anytypepropnullableboxedboolean)
boxed class to store validated boolean payloads | +| record | [User.AnyTypePropNullableBoxedNumber](#anytypepropnullableboxednumber)
boxed class to store validated Number payloads | +| record | [User.AnyTypePropNullableBoxedString](#anytypepropnullableboxedstring)
boxed class to store validated String payloads | +| record | [User.AnyTypePropNullableBoxedList](#anytypepropnullableboxedlist)
boxed class to store validated List payloads | +| record | [User.AnyTypePropNullableBoxedMap](#anytypepropnullableboxedmap)
boxed class to store validated Map payloads | | static class | [User.AnyTypePropNullable](#anytypepropnullable)
schema class | -| static class | [User.AnyTypeExceptNullPropBoxed](#anytypeexceptnullpropboxed)
abstract sealed validated payload class | -| static class | [User.AnyTypeExceptNullPropBoxedVoid](#anytypeexceptnullpropboxedvoid)
boxed class to store validated null payloads | -| static class | [User.AnyTypeExceptNullPropBoxedBoolean](#anytypeexceptnullpropboxedboolean)
boxed class to store validated boolean payloads | -| static class | [User.AnyTypeExceptNullPropBoxedNumber](#anytypeexceptnullpropboxednumber)
boxed class to store validated Number payloads | -| static class | [User.AnyTypeExceptNullPropBoxedString](#anytypeexceptnullpropboxedstring)
boxed class to store validated String payloads | -| static class | [User.AnyTypeExceptNullPropBoxedList](#anytypeexceptnullpropboxedlist)
boxed class to store validated List payloads | -| static class | [User.AnyTypeExceptNullPropBoxedMap](#anytypeexceptnullpropboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [User.AnyTypeExceptNullPropBoxed](#anytypeexceptnullpropboxed)
abstract sealed validated payload class | +| record | [User.AnyTypeExceptNullPropBoxedVoid](#anytypeexceptnullpropboxedvoid)
boxed class to store validated null payloads | +| record | [User.AnyTypeExceptNullPropBoxedBoolean](#anytypeexceptnullpropboxedboolean)
boxed class to store validated boolean payloads | +| record | [User.AnyTypeExceptNullPropBoxedNumber](#anytypeexceptnullpropboxednumber)
boxed class to store validated Number payloads | +| record | [User.AnyTypeExceptNullPropBoxedString](#anytypeexceptnullpropboxedstring)
boxed class to store validated String payloads | +| record | [User.AnyTypeExceptNullPropBoxedList](#anytypeexceptnullpropboxedlist)
boxed class to store validated List payloads | +| record | [User.AnyTypeExceptNullPropBoxedMap](#anytypeexceptnullpropboxedmap)
boxed class to store validated Map payloads | | static class | [User.AnyTypeExceptNullProp](#anytypeexceptnullprop)
schema class | -| static class | [User.NotBoxed](#notboxed)
abstract sealed validated payload class | -| static class | [User.NotBoxedVoid](#notboxedvoid)
boxed class to store validated null payloads | +| sealed interface | [User.NotBoxed](#notboxed)
abstract sealed validated payload class | +| record | [User.NotBoxedVoid](#notboxedvoid)
boxed class to store validated null payloads | | static class | [User.Not](#not)
schema class | -| static class | [User.AnyTypePropBoxed](#anytypepropboxed)
abstract sealed validated payload class | -| static class | [User.AnyTypePropBoxedVoid](#anytypepropboxedvoid)
boxed class to store validated null payloads | -| static class | [User.AnyTypePropBoxedBoolean](#anytypepropboxedboolean)
boxed class to store validated boolean payloads | -| static class | [User.AnyTypePropBoxedNumber](#anytypepropboxednumber)
boxed class to store validated Number payloads | -| static class | [User.AnyTypePropBoxedString](#anytypepropboxedstring)
boxed class to store validated String payloads | -| static class | [User.AnyTypePropBoxedList](#anytypepropboxedlist)
boxed class to store validated List payloads | -| static class | [User.AnyTypePropBoxedMap](#anytypepropboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [User.AnyTypePropBoxed](#anytypepropboxed)
abstract sealed validated payload class | +| record | [User.AnyTypePropBoxedVoid](#anytypepropboxedvoid)
boxed class to store validated null payloads | +| record | [User.AnyTypePropBoxedBoolean](#anytypepropboxedboolean)
boxed class to store validated boolean payloads | +| record | [User.AnyTypePropBoxedNumber](#anytypepropboxednumber)
boxed class to store validated Number payloads | +| record | [User.AnyTypePropBoxedString](#anytypepropboxedstring)
boxed class to store validated String payloads | +| record | [User.AnyTypePropBoxedList](#anytypepropboxedlist)
boxed class to store validated List payloads | +| record | [User.AnyTypePropBoxedMap](#anytypepropboxedmap)
boxed class to store validated Map payloads | | static class | [User.AnyTypeProp](#anytypeprop)
schema class | -| static class | [User.ObjectWithNoDeclaredPropsNullableBoxed](#objectwithnodeclaredpropsnullableboxed)
abstract sealed validated payload class | -| static class | [User.ObjectWithNoDeclaredPropsNullableBoxedVoid](#objectwithnodeclaredpropsnullableboxedvoid)
boxed class to store validated null payloads | -| static class | [User.ObjectWithNoDeclaredPropsNullableBoxedMap](#objectwithnodeclaredpropsnullableboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [User.ObjectWithNoDeclaredPropsNullableBoxed](#objectwithnodeclaredpropsnullableboxed)
abstract sealed validated payload class | +| record | [User.ObjectWithNoDeclaredPropsNullableBoxedVoid](#objectwithnodeclaredpropsnullableboxedvoid)
boxed class to store validated null payloads | +| record | [User.ObjectWithNoDeclaredPropsNullableBoxedMap](#objectwithnodeclaredpropsnullableboxedmap)
boxed class to store validated Map payloads | | static class | [User.ObjectWithNoDeclaredPropsNullable](#objectwithnodeclaredpropsnullable)
schema class | -| static class | [User.ObjectWithNoDeclaredPropsBoxed](#objectwithnodeclaredpropsboxed)
abstract sealed validated payload class | -| static class | [User.ObjectWithNoDeclaredPropsBoxedMap](#objectwithnodeclaredpropsboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [User.ObjectWithNoDeclaredPropsBoxed](#objectwithnodeclaredpropsboxed)
abstract sealed validated payload class | +| record | [User.ObjectWithNoDeclaredPropsBoxedMap](#objectwithnodeclaredpropsboxedmap)
boxed class to store validated Map payloads | | static class | [User.ObjectWithNoDeclaredProps](#objectwithnodeclaredprops)
schema class | -| static class | [User.UserStatusBoxed](#userstatusboxed)
abstract sealed validated payload class | -| static class | [User.UserStatusBoxedNumber](#userstatusboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [User.UserStatusBoxed](#userstatusboxed)
abstract sealed validated payload class | +| record | [User.UserStatusBoxedNumber](#userstatusboxednumber)
boxed class to store validated Number payloads | | static class | [User.UserStatus](#userstatus)
schema class | -| static class | [User.PhoneBoxed](#phoneboxed)
abstract sealed validated payload class | -| static class | [User.PhoneBoxedString](#phoneboxedstring)
boxed class to store validated String payloads | +| sealed interface | [User.PhoneBoxed](#phoneboxed)
abstract sealed validated payload class | +| record | [User.PhoneBoxedString](#phoneboxedstring)
boxed class to store validated String payloads | | static class | [User.Phone](#phone)
schema class | -| static class | [User.PasswordBoxed](#passwordboxed)
abstract sealed validated payload class | -| static class | [User.PasswordBoxedString](#passwordboxedstring)
boxed class to store validated String payloads | +| sealed interface | [User.PasswordBoxed](#passwordboxed)
abstract sealed validated payload class | +| record | [User.PasswordBoxedString](#passwordboxedstring)
boxed class to store validated String payloads | | static class | [User.Password](#password)
schema class | -| static class | [User.EmailBoxed](#emailboxed)
abstract sealed validated payload class | -| static class | [User.EmailBoxedString](#emailboxedstring)
boxed class to store validated String payloads | +| sealed interface | [User.EmailBoxed](#emailboxed)
abstract sealed validated payload class | +| record | [User.EmailBoxedString](#emailboxedstring)
boxed class to store validated String payloads | | static class | [User.Email](#email)
schema class | -| static class | [User.LastNameBoxed](#lastnameboxed)
abstract sealed validated payload class | -| static class | [User.LastNameBoxedString](#lastnameboxedstring)
boxed class to store validated String payloads | +| sealed interface | [User.LastNameBoxed](#lastnameboxed)
abstract sealed validated payload class | +| record | [User.LastNameBoxedString](#lastnameboxedstring)
boxed class to store validated String payloads | | static class | [User.LastName](#lastname)
schema class | -| static class | [User.FirstNameBoxed](#firstnameboxed)
abstract sealed validated payload class | -| static class | [User.FirstNameBoxedString](#firstnameboxedstring)
boxed class to store validated String payloads | +| sealed interface | [User.FirstNameBoxed](#firstnameboxed)
abstract sealed validated payload class | +| record | [User.FirstNameBoxedString](#firstnameboxedstring)
boxed class to store validated String payloads | | static class | [User.FirstName](#firstname)
schema class | -| static class | [User.UsernameBoxed](#usernameboxed)
abstract sealed validated payload class | -| static class | [User.UsernameBoxedString](#usernameboxedstring)
boxed class to store validated String payloads | +| sealed interface | [User.UsernameBoxed](#usernameboxed)
abstract sealed validated payload class | +| record | [User.UsernameBoxedString](#usernameboxedstring)
boxed class to store validated String payloads | | static class | [User.Username](#username)
schema class | -| static class | [User.IdBoxed](#idboxed)
abstract sealed validated payload class | -| static class | [User.IdBoxedNumber](#idboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [User.IdBoxed](#idboxed)
abstract sealed validated payload class | +| record | [User.IdBoxedNumber](#idboxednumber)
boxed class to store validated Number payloads | | static class | [User.Id](#id)
schema class | ## User1Boxed @@ -84,20 +84,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## User1BoxedMap -public static final class User1BoxedMap
+public record User1BoxedMap
implements [User1Boxed](#user1boxed) -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 | | --------------------------- | | User1BoxedMap([UserMap](#usermap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserMap](#usermap) | data
validated payload | +| [UserMap](#usermap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## User1 public static class User1
@@ -264,100 +265,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## AnyTypePropNullableBoxedVoid -public static final class AnyTypePropNullableBoxedVoid
+public record AnyTypePropNullableBoxedVoid
implements [AnyTypePropNullableBoxed](#anytypepropnullableboxed) -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 | | --------------------------- | | AnyTypePropNullableBoxedVoid(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 | ## AnyTypePropNullableBoxedBoolean -public static final class AnyTypePropNullableBoxedBoolean
+public record AnyTypePropNullableBoxedBoolean
implements [AnyTypePropNullableBoxed](#anytypepropnullableboxed) -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 | | --------------------------- | | AnyTypePropNullableBoxedBoolean(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 | ## AnyTypePropNullableBoxedNumber -public static final class AnyTypePropNullableBoxedNumber
+public record AnyTypePropNullableBoxedNumber
implements [AnyTypePropNullableBoxed](#anytypepropnullableboxed) -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 | | --------------------------- | | AnyTypePropNullableBoxedNumber(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 | ## AnyTypePropNullableBoxedString -public static final class AnyTypePropNullableBoxedString
+public record AnyTypePropNullableBoxedString
implements [AnyTypePropNullableBoxed](#anytypepropnullableboxed) -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 | | --------------------------- | | AnyTypePropNullableBoxedString(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 | ## AnyTypePropNullableBoxedList -public static final class AnyTypePropNullableBoxedList
+public record AnyTypePropNullableBoxedList
implements [AnyTypePropNullableBoxed](#anytypepropnullableboxed) -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 | | --------------------------- | | AnyTypePropNullableBoxedList(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 | ## AnyTypePropNullableBoxedMap -public static final class AnyTypePropNullableBoxedMap
+public record AnyTypePropNullableBoxedMap
implements [AnyTypePropNullableBoxed](#anytypepropnullableboxed) -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 | | --------------------------- | | AnyTypePropNullableBoxedMap(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 | ## AnyTypePropNullable public static class AnyTypePropNullable
@@ -386,100 +393,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## AnyTypeExceptNullPropBoxedVoid -public static final class AnyTypeExceptNullPropBoxedVoid
+public record AnyTypeExceptNullPropBoxedVoid
implements [AnyTypeExceptNullPropBoxed](#anytypeexceptnullpropboxed) -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 | | --------------------------- | | AnyTypeExceptNullPropBoxedVoid(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 | ## AnyTypeExceptNullPropBoxedBoolean -public static final class AnyTypeExceptNullPropBoxedBoolean
+public record AnyTypeExceptNullPropBoxedBoolean
implements [AnyTypeExceptNullPropBoxed](#anytypeexceptnullpropboxed) -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 | | --------------------------- | | AnyTypeExceptNullPropBoxedBoolean(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 | ## AnyTypeExceptNullPropBoxedNumber -public static final class AnyTypeExceptNullPropBoxedNumber
+public record AnyTypeExceptNullPropBoxedNumber
implements [AnyTypeExceptNullPropBoxed](#anytypeexceptnullpropboxed) -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 | | --------------------------- | | AnyTypeExceptNullPropBoxedNumber(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 | ## AnyTypeExceptNullPropBoxedString -public static final class AnyTypeExceptNullPropBoxedString
+public record AnyTypeExceptNullPropBoxedString
implements [AnyTypeExceptNullPropBoxed](#anytypeexceptnullpropboxed) -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 | | --------------------------- | | AnyTypeExceptNullPropBoxedString(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 | ## AnyTypeExceptNullPropBoxedList -public static final class AnyTypeExceptNullPropBoxedList
+public record AnyTypeExceptNullPropBoxedList
implements [AnyTypeExceptNullPropBoxed](#anytypeexceptnullpropboxed) -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 | | --------------------------- | | AnyTypeExceptNullPropBoxedList(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 | ## AnyTypeExceptNullPropBoxedMap -public static final class AnyTypeExceptNullPropBoxedMap
+public record AnyTypeExceptNullPropBoxedMap
implements [AnyTypeExceptNullPropBoxed](#anytypeexceptnullpropboxed) -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 | | --------------------------- | | AnyTypeExceptNullPropBoxedMap(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 | ## AnyTypeExceptNullProp public static class AnyTypeExceptNullProp
@@ -523,20 +536,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## NotBoxedVoid -public static final class NotBoxedVoid
+public record NotBoxedVoid
implements [NotBoxed](#notboxed) -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 | | --------------------------- | | NotBoxedVoid(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 | ## Not public static class Not
@@ -562,100 +576,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## AnyTypePropBoxedVoid -public static final class AnyTypePropBoxedVoid
+public record AnyTypePropBoxedVoid
implements [AnyTypePropBoxed](#anytypepropboxed) -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 | | --------------------------- | | AnyTypePropBoxedVoid(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 | ## AnyTypePropBoxedBoolean -public static final class AnyTypePropBoxedBoolean
+public record AnyTypePropBoxedBoolean
implements [AnyTypePropBoxed](#anytypepropboxed) -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 | | --------------------------- | | AnyTypePropBoxedBoolean(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 | ## AnyTypePropBoxedNumber -public static final class AnyTypePropBoxedNumber
+public record AnyTypePropBoxedNumber
implements [AnyTypePropBoxed](#anytypepropboxed) -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 | | --------------------------- | | AnyTypePropBoxedNumber(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 | ## AnyTypePropBoxedString -public static final class AnyTypePropBoxedString
+public record AnyTypePropBoxedString
implements [AnyTypePropBoxed](#anytypepropboxed) -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 | | --------------------------- | | AnyTypePropBoxedString(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 | ## AnyTypePropBoxedList -public static final class AnyTypePropBoxedList
+public record AnyTypePropBoxedList
implements [AnyTypePropBoxed](#anytypepropboxed) -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 | | --------------------------- | | AnyTypePropBoxedList(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 | ## AnyTypePropBoxedMap -public static final class AnyTypePropBoxedMap
+public record AnyTypePropBoxedMap
implements [AnyTypePropBoxed](#anytypepropboxed) -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 | | --------------------------- | | AnyTypePropBoxedMap(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 | ## AnyTypeProp public static class AnyTypeProp
@@ -680,36 +700,38 @@ permits
sealed interface that stores validated payloads using boxed classes ## ObjectWithNoDeclaredPropsNullableBoxedVoid -public static final class ObjectWithNoDeclaredPropsNullableBoxedVoid
+public record ObjectWithNoDeclaredPropsNullableBoxedVoid
implements [ObjectWithNoDeclaredPropsNullableBoxed](#objectwithnodeclaredpropsnullableboxed) -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 | | --------------------------- | | ObjectWithNoDeclaredPropsNullableBoxedVoid(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 | ## ObjectWithNoDeclaredPropsNullableBoxedMap -public static final class ObjectWithNoDeclaredPropsNullableBoxedMap
+public record ObjectWithNoDeclaredPropsNullableBoxedMap
implements [ObjectWithNoDeclaredPropsNullableBoxed](#objectwithnodeclaredpropsnullableboxed) -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 | | --------------------------- | | ObjectWithNoDeclaredPropsNullableBoxedMap(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 | ## ObjectWithNoDeclaredPropsNullable public static class ObjectWithNoDeclaredPropsNullable
@@ -763,20 +785,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ObjectWithNoDeclaredPropsBoxedMap -public static final class ObjectWithNoDeclaredPropsBoxedMap
+public record ObjectWithNoDeclaredPropsBoxedMap
implements [ObjectWithNoDeclaredPropsBoxed](#objectwithnodeclaredpropsboxed) -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 | | --------------------------- | | ObjectWithNoDeclaredPropsBoxedMap(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 | ## ObjectWithNoDeclaredProps public static class ObjectWithNoDeclaredProps
@@ -800,20 +823,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## UserStatusBoxedNumber -public static final class UserStatusBoxedNumber
+public record UserStatusBoxedNumber
implements [UserStatusBoxed](#userstatusboxed) -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 | | --------------------------- | | UserStatusBoxedNumber(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 | ## UserStatus public static class UserStatus
@@ -837,20 +861,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## PhoneBoxedString -public static final class PhoneBoxedString
+public record PhoneBoxedString
implements [PhoneBoxed](#phoneboxed) -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 | | --------------------------- | | PhoneBoxedString(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 | ## Phone public static class Phone
@@ -871,20 +896,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## PasswordBoxedString -public static final class PasswordBoxedString
+public record PasswordBoxedString
implements [PasswordBoxed](#passwordboxed) -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 | | --------------------------- | | PasswordBoxedString(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 | ## Password public static class Password
@@ -905,20 +931,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## EmailBoxedString -public static final class EmailBoxedString
+public record EmailBoxedString
implements [EmailBoxed](#emailboxed) -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 | | --------------------------- | | EmailBoxedString(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 | ## Email public static class Email
@@ -939,20 +966,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## LastNameBoxedString -public static final class LastNameBoxedString
+public record LastNameBoxedString
implements [LastNameBoxed](#lastnameboxed) -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 | | --------------------------- | | LastNameBoxedString(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 | ## LastName public static class LastName
@@ -973,20 +1001,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## FirstNameBoxedString -public static final class FirstNameBoxedString
+public record FirstNameBoxedString
implements [FirstNameBoxed](#firstnameboxed) -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 | | --------------------------- | | FirstNameBoxedString(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 | ## FirstName public static class FirstName
@@ -1007,20 +1036,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## UsernameBoxedString -public static final class UsernameBoxedString
+public record UsernameBoxedString
implements [UsernameBoxed](#usernameboxed) -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 | | --------------------------- | | UsernameBoxedString(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 | ## Username public static class Username
@@ -1041,20 +1071,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## IdBoxedNumber -public static final class IdBoxedNumber
+public record IdBoxedNumber
implements [IdBoxed](#idboxed) -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 | | --------------------------- | | IdBoxedNumber(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 | ## Id public static class Id
diff --git a/samples/client/petstore/java/docs/components/schemas/Whale.md b/samples/client/petstore/java/docs/components/schemas/Whale.md index e5994d5c0e6..8c225f97a12 100644 --- a/samples/client/petstore/java/docs/components/schemas/Whale.md +++ b/samples/client/petstore/java/docs/components/schemas/Whale.md @@ -13,20 +13,20 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Whale.Whale1Boxed](#whale1boxed)
abstract sealed validated payload class | -| static class | [Whale.Whale1BoxedMap](#whale1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Whale.Whale1Boxed](#whale1boxed)
abstract sealed validated payload class | +| record | [Whale.Whale1BoxedMap](#whale1boxedmap)
boxed class to store validated Map payloads | | static class | [Whale.Whale1](#whale1)
schema class | | static class | [Whale.WhaleMapBuilder](#whalemapbuilder)
builder for Map payloads | | static class | [Whale.WhaleMap](#whalemap)
output class for Map payloads | -| static class | [Whale.ClassNameBoxed](#classnameboxed)
abstract sealed validated payload class | -| static class | [Whale.ClassNameBoxedString](#classnameboxedstring)
boxed class to store validated String payloads | +| sealed interface | [Whale.ClassNameBoxed](#classnameboxed)
abstract sealed validated payload class | +| record | [Whale.ClassNameBoxedString](#classnameboxedstring)
boxed class to store validated String payloads | | static class | [Whale.ClassName](#classname)
schema class | | enum | [Whale.StringClassNameEnums](#stringclassnameenums)
String enum | -| static class | [Whale.HasTeethBoxed](#hasteethboxed)
abstract sealed validated payload class | -| static class | [Whale.HasTeethBoxedBoolean](#hasteethboxedboolean)
boxed class to store validated boolean payloads | +| sealed interface | [Whale.HasTeethBoxed](#hasteethboxed)
abstract sealed validated payload class | +| record | [Whale.HasTeethBoxedBoolean](#hasteethboxedboolean)
boxed class to store validated boolean payloads | | static class | [Whale.HasTeeth](#hasteeth)
schema class | -| static class | [Whale.HasBaleenBoxed](#hasbaleenboxed)
abstract sealed validated payload class | -| static class | [Whale.HasBaleenBoxedBoolean](#hasbaleenboxedboolean)
boxed class to store validated boolean payloads | +| sealed interface | [Whale.HasBaleenBoxed](#hasbaleenboxed)
abstract sealed validated payload class | +| record | [Whale.HasBaleenBoxedBoolean](#hasbaleenboxedboolean)
boxed class to store validated boolean payloads | | static class | [Whale.HasBaleen](#hasbaleen)
schema class | ## Whale1Boxed @@ -37,20 +37,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Whale1BoxedMap -public static final class Whale1BoxedMap
+public record Whale1BoxedMap
implements [Whale1Boxed](#whale1boxed) -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 | | --------------------------- | | Whale1BoxedMap([WhaleMap](#whalemap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [WhaleMap](#whalemap) | data
validated payload | +| [WhaleMap](#whalemap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Whale1 public static class Whale1
@@ -168,20 +169,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ClassNameBoxedString -public static final class ClassNameBoxedString
+public record ClassNameBoxedString
implements [ClassNameBoxed](#classnameboxed) -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 | | --------------------------- | | ClassNameBoxedString(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 | ## ClassName public static class ClassName
@@ -243,20 +245,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## HasTeethBoxedBoolean -public static final class HasTeethBoxedBoolean
+public record HasTeethBoxedBoolean
implements [HasTeethBoxed](#hasteethboxed) -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 | | --------------------------- | | HasTeethBoxedBoolean(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 | ## HasTeeth public static class HasTeeth
@@ -277,20 +280,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## HasBaleenBoxedBoolean -public static final class HasBaleenBoxedBoolean
+public record HasBaleenBoxedBoolean
implements [HasBaleenBoxed](#hasbaleenboxed) -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 | | --------------------------- | | HasBaleenBoxedBoolean(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 | ## HasBaleen public static class HasBaleen
diff --git a/samples/client/petstore/java/docs/components/schemas/Zebra.md b/samples/client/petstore/java/docs/components/schemas/Zebra.md index 64c7779105c..9852b3a3210 100644 --- a/samples/client/petstore/java/docs/components/schemas/Zebra.md +++ b/samples/client/petstore/java/docs/components/schemas/Zebra.md @@ -13,26 +13,26 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Zebra.Zebra1Boxed](#zebra1boxed)
abstract sealed validated payload class | -| static class | [Zebra.Zebra1BoxedMap](#zebra1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Zebra.Zebra1Boxed](#zebra1boxed)
abstract sealed validated payload class | +| record | [Zebra.Zebra1BoxedMap](#zebra1boxedmap)
boxed class to store validated Map payloads | | static class | [Zebra.Zebra1](#zebra1)
schema class | | static class | [Zebra.ZebraMapBuilder](#zebramapbuilder)
builder for Map payloads | | static class | [Zebra.ZebraMap](#zebramap)
output class for Map payloads | -| static class | [Zebra.ClassNameBoxed](#classnameboxed)
abstract sealed validated payload class | -| static class | [Zebra.ClassNameBoxedString](#classnameboxedstring)
boxed class to store validated String payloads | +| sealed interface | [Zebra.ClassNameBoxed](#classnameboxed)
abstract sealed validated payload class | +| record | [Zebra.ClassNameBoxedString](#classnameboxedstring)
boxed class to store validated String payloads | | static class | [Zebra.ClassName](#classname)
schema class | | enum | [Zebra.StringClassNameEnums](#stringclassnameenums)
String enum | -| static class | [Zebra.TypeBoxed](#typeboxed)
abstract sealed validated payload class | -| static class | [Zebra.TypeBoxedString](#typeboxedstring)
boxed class to store validated String payloads | +| sealed interface | [Zebra.TypeBoxed](#typeboxed)
abstract sealed validated payload class | +| record | [Zebra.TypeBoxedString](#typeboxedstring)
boxed class to store validated String payloads | | static class | [Zebra.Type](#type)
schema class | | enum | [Zebra.StringTypeEnums](#stringtypeenums)
String enum | -| static class | [Zebra.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | -| static class | [Zebra.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| static class | [Zebra.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| static class | [Zebra.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| static class | [Zebra.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| static class | [Zebra.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| static class | [Zebra.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Zebra.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| record | [Zebra.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [Zebra.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [Zebra.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [Zebra.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [Zebra.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [Zebra.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | | static class | [Zebra.AdditionalProperties](#additionalproperties)
schema class | ## Zebra1Boxed @@ -43,20 +43,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Zebra1BoxedMap -public static final class Zebra1BoxedMap
+public record Zebra1BoxedMap
implements [Zebra1Boxed](#zebra1boxed) -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 | | --------------------------- | | Zebra1BoxedMap([ZebraMap](#zebramap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ZebraMap](#zebramap) | data
validated payload | +| [ZebraMap](#zebramap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Zebra1 public static class Zebra1
@@ -172,20 +173,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ClassNameBoxedString -public static final class ClassNameBoxedString
+public record ClassNameBoxedString
implements [ClassNameBoxed](#classnameboxed) -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 | | --------------------------- | | ClassNameBoxedString(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 | ## ClassName public static class ClassName
@@ -247,20 +249,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## TypeBoxedString -public static final class TypeBoxedString
+public record TypeBoxedString
implements [TypeBoxed](#typeboxed) -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 | | --------------------------- | | TypeBoxedString(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 | ## Type public static class Type
@@ -329,100 +332,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedVoid -public static final class AdditionalPropertiesBoxedVoid
+public record AdditionalPropertiesBoxedVoid
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedVoid(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 | ## AdditionalPropertiesBoxedBoolean -public static final class AdditionalPropertiesBoxedBoolean
+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 | ## AdditionalPropertiesBoxedNumber -public static final class AdditionalPropertiesBoxedNumber
+public record AdditionalPropertiesBoxedNumber
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedNumber(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 | ## AdditionalPropertiesBoxedString -public static final class AdditionalPropertiesBoxedString
+public record AdditionalPropertiesBoxedString
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedString(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 | ## AdditionalPropertiesBoxedList -public static final class AdditionalPropertiesBoxedList
+public record AdditionalPropertiesBoxedList
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedList(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 | ## AdditionalPropertiesBoxedMap -public static final class AdditionalPropertiesBoxedMap
+public record AdditionalPropertiesBoxedMap
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedMap(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 | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.md index e79a3033b40..edd11b6e174 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | -| static class | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema01BoxedString -public static final class Schema01BoxedString
+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 | ## Schema01 public static class Schema01
diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md index 1bcb9695983..7b8323e07ef 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md @@ -10,8 +10,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema1.Schema11Boxed](#schema11boxed)
abstract sealed validated payload class | -| static class | [Schema1.Schema11BoxedString](#schema11boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
abstract sealed validated payload class | +| record | [Schema1.Schema11BoxedString](#schema11boxedstring)
boxed class to store validated String payloads | | static class | [Schema1.Schema11](#schema11)
schema class | | enum | [Schema1.StringSchemaEnums1](#stringschemaenums1)
String enum | @@ -23,20 +23,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema11BoxedString -public static final class Schema11BoxedString
+public record Schema11BoxedString
implements [Schema11Boxed](#schema11boxed) -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 | | --------------------------- | | Schema11BoxedString(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 | ## Schema11 public static class Schema11
diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/parameters/parameter0/Schema0.md index e79a3033b40..edd11b6e174 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/parameters/parameter0/Schema0.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | -| static class | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema01BoxedString -public static final class Schema01BoxedString
+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 | ## Schema01 public static class Schema01
diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.md index 0e98c24197c..d174e5e45d0 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.md @@ -10,8 +10,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [PathParamSchema0.PathParamSchema01Boxed](#pathparamschema01boxed)
abstract sealed validated payload class | -| static class | [PathParamSchema0.PathParamSchema01BoxedString](#pathparamschema01boxedstring)
boxed class to store validated String payloads | +| sealed interface | [PathParamSchema0.PathParamSchema01Boxed](#pathparamschema01boxed)
abstract sealed validated payload class | +| record | [PathParamSchema0.PathParamSchema01BoxedString](#pathparamschema01boxedstring)
boxed class to store validated String payloads | | static class | [PathParamSchema0.PathParamSchema01](#pathparamschema01)
schema class | | enum | [PathParamSchema0.StringPathParamSchemaEnums0](#stringpathparamschemaenums0)
String enum | @@ -23,20 +23,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## PathParamSchema01BoxedString -public static final class PathParamSchema01BoxedString
+public record PathParamSchema01BoxedString
implements [PathParamSchema01Boxed](#pathparamschema01boxed) -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 | | --------------------------- | | PathParamSchema01BoxedString(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 | ## PathParamSchema01 public static class PathParamSchema01
diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/parameters/parameter0/Schema0.md index e79a3033b40..edd11b6e174 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/parameters/parameter0/Schema0.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | -| static class | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema01BoxedString -public static final class Schema01BoxedString
+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 | ## Schema01 public static class Schema01
diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter0/Schema0.md index e79a3033b40..edd11b6e174 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter0/Schema0.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | -| static class | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema01BoxedString -public static final class Schema01BoxedString
+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 | ## Schema01 public static class Schema01
diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter1/Schema1.md index 5216339b486..6e389c45efe 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter1/Schema1.md @@ -10,8 +10,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema1.Schema11Boxed](#schema11boxed)
abstract sealed validated payload class | -| static class | [Schema1.Schema11BoxedString](#schema11boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
abstract sealed validated payload class | +| record | [Schema1.Schema11BoxedString](#schema11boxedstring)
boxed class to store validated String payloads | | static class | [Schema1.Schema11](#schema11)
schema class | | enum | [Schema1.StringSchemaEnums1](#stringschemaenums1)
String enum | @@ -23,20 +23,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema11BoxedString -public static final class Schema11BoxedString
+public record Schema11BoxedString
implements [Schema11Boxed](#schema11boxed) -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 | | --------------------------- | | Schema11BoxedString(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 | ## Schema11 public static class Schema11
diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter2/Schema2.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter2/Schema2.md index 47f504dbec3..d3142bffed7 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter2/Schema2.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter2/Schema2.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema2.Schema21Boxed](#schema21boxed)
abstract sealed validated payload class | -| static class | [Schema2.Schema21BoxedNumber](#schema21boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [Schema2.Schema21Boxed](#schema21boxed)
abstract sealed validated payload class | +| record | [Schema2.Schema21BoxedNumber](#schema21boxednumber)
boxed class to store validated Number payloads | | static class | [Schema2.Schema21](#schema21)
schema class | ## Schema21Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema21BoxedNumber -public static final class Schema21BoxedNumber
+public record Schema21BoxedNumber
implements [Schema21Boxed](#schema21boxed) -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 | | --------------------------- | | Schema21BoxedNumber(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 | ## Schema21 public static class Schema21
diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter3/Schema3.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter3/Schema3.md index a2e7bcc797b..bdadc9c7c7d 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter3/Schema3.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter3/Schema3.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema3.Schema31Boxed](#schema31boxed)
abstract sealed validated payload class | -| static class | [Schema3.Schema31BoxedString](#schema31boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema3.Schema31Boxed](#schema31boxed)
abstract sealed validated payload class | +| record | [Schema3.Schema31BoxedString](#schema31boxedstring)
boxed class to store validated String payloads | | static class | [Schema3.Schema31](#schema31)
schema class | ## Schema31Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema31BoxedString -public static final class Schema31BoxedString
+public record Schema31BoxedString
implements [Schema31Boxed](#schema31boxed) -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 | | --------------------------- | | Schema31BoxedString(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 | ## Schema31 public static class Schema31
diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter4/Schema4.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter4/Schema4.md index 7205df79db1..ee150f523e1 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter4/Schema4.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter4/Schema4.md @@ -10,8 +10,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema4.Schema41Boxed](#schema41boxed)
abstract sealed validated payload class | -| static class | [Schema4.Schema41BoxedString](#schema41boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema4.Schema41Boxed](#schema41boxed)
abstract sealed validated payload class | +| record | [Schema4.Schema41BoxedString](#schema41boxedstring)
boxed class to store validated String payloads | | static class | [Schema4.Schema41](#schema41)
schema class | | enum | [Schema4.StringSchemaEnums4](#stringschemaenums4)
String enum | @@ -23,20 +23,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema41BoxedString -public static final class Schema41BoxedString
+public record Schema41BoxedString
implements [Schema41Boxed](#schema41boxed) -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 | | --------------------------- | | Schema41BoxedString(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 | ## Schema41 public static class Schema41
diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter5/Schema5.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter5/Schema5.md index ba247014efe..1b9717af8cb 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter5/Schema5.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter5/Schema5.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema5.Schema51Boxed](#schema51boxed)
abstract sealed validated payload class | -| static class | [Schema5.Schema51BoxedNumber](#schema51boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [Schema5.Schema51Boxed](#schema51boxed)
abstract sealed validated payload class | +| record | [Schema5.Schema51BoxedNumber](#schema51boxednumber)
boxed class to store validated Number payloads | | static class | [Schema5.Schema51](#schema51)
schema class | ## Schema51Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema51BoxedNumber -public static final class Schema51BoxedNumber
+public record Schema51BoxedNumber
implements [Schema51Boxed](#schema51boxed) -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 | | --------------------------- | | Schema51BoxedNumber(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 | ## Schema51 public static class Schema51
diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter0/Schema0.md index 82fceabc08f..2b372c86935 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter0/Schema0.md @@ -12,13 +12,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | -| static class | [Schema0.Schema01BoxedList](#schema01boxedlist)
boxed class to store validated List payloads | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| record | [Schema0.Schema01BoxedList](#schema01boxedlist)
boxed class to store validated List payloads | | static class | [Schema0.Schema01](#schema01)
schema class | | static class | [Schema0.SchemaListBuilder0](#schemalistbuilder0)
builder for List payloads | | static class | [Schema0.SchemaList0](#schemalist0)
output class for List payloads | -| static class | [Schema0.Items0Boxed](#items0boxed)
abstract sealed validated payload class | -| static class | [Schema0.Items0BoxedString](#items0boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema0.Items0Boxed](#items0boxed)
abstract sealed validated payload class | +| record | [Schema0.Items0BoxedString](#items0boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Items0](#items0)
schema class | | enum | [Schema0.StringItemsEnums0](#stringitemsenums0)
String enum | @@ -30,20 +30,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema01BoxedList -public static final class Schema01BoxedList
+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([SchemaList0](#schemalist0) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaList0](#schemalist0) | data
validated payload | +| [SchemaList0](#schemalist0) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Schema01 public static class Schema01
@@ -127,20 +128,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Items0BoxedString -public static final class Items0BoxedString
+public record Items0BoxedString
implements [Items0Boxed](#items0boxed) -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 | | --------------------------- | | Items0BoxedString(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 | ## Items0 public static class Items0
diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter1/Schema1.md index 77635e1272d..5a2690e0656 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter1/Schema1.md @@ -10,8 +10,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema1.Schema11Boxed](#schema11boxed)
abstract sealed validated payload class | -| static class | [Schema1.Schema11BoxedString](#schema11boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
abstract sealed validated payload class | +| record | [Schema1.Schema11BoxedString](#schema11boxedstring)
boxed class to store validated String payloads | | static class | [Schema1.Schema11](#schema11)
schema class | | enum | [Schema1.StringSchemaEnums1](#stringschemaenums1)
String enum | @@ -23,20 +23,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema11BoxedString -public static final class Schema11BoxedString
+public record Schema11BoxedString
implements [Schema11Boxed](#schema11boxed) -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 | | --------------------------- | | Schema11BoxedString(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 | ## Schema11 public static class Schema11
diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter2/Schema2.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter2/Schema2.md index 82e48bea656..92138bfacd6 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter2/Schema2.md +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter2/Schema2.md @@ -12,13 +12,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema2.Schema21Boxed](#schema21boxed)
abstract sealed validated payload class | -| static class | [Schema2.Schema21BoxedList](#schema21boxedlist)
boxed class to store validated List payloads | +| sealed interface | [Schema2.Schema21Boxed](#schema21boxed)
abstract sealed validated payload class | +| record | [Schema2.Schema21BoxedList](#schema21boxedlist)
boxed class to store validated List payloads | | static class | [Schema2.Schema21](#schema21)
schema class | | static class | [Schema2.SchemaListBuilder2](#schemalistbuilder2)
builder for List payloads | | static class | [Schema2.SchemaList2](#schemalist2)
output class for List payloads | -| static class | [Schema2.Items2Boxed](#items2boxed)
abstract sealed validated payload class | -| static class | [Schema2.Items2BoxedString](#items2boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema2.Items2Boxed](#items2boxed)
abstract sealed validated payload class | +| record | [Schema2.Items2BoxedString](#items2boxedstring)
boxed class to store validated String payloads | | static class | [Schema2.Items2](#items2)
schema class | | enum | [Schema2.StringItemsEnums2](#stringitemsenums2)
String enum | @@ -30,20 +30,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema21BoxedList -public static final class Schema21BoxedList
+public record Schema21BoxedList
implements [Schema21Boxed](#schema21boxed) -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 | | --------------------------- | | Schema21BoxedList([SchemaList2](#schemalist2) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaList2](#schemalist2) | data
validated payload | +| [SchemaList2](#schemalist2) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Schema21 public static class Schema21
@@ -127,20 +128,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Items2BoxedString -public static final class Items2BoxedString
+public record Items2BoxedString
implements [Items2Boxed](#items2boxed) -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 | | --------------------------- | | Items2BoxedString(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 | ## Items2 public static class Items2
diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter3/Schema3.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter3/Schema3.md index 3095cec21ad..d056e7079d1 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter3/Schema3.md +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter3/Schema3.md @@ -10,8 +10,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema3.Schema31Boxed](#schema31boxed)
abstract sealed validated payload class | -| static class | [Schema3.Schema31BoxedString](#schema31boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema3.Schema31Boxed](#schema31boxed)
abstract sealed validated payload class | +| record | [Schema3.Schema31BoxedString](#schema31boxedstring)
boxed class to store validated String payloads | | static class | [Schema3.Schema31](#schema31)
schema class | | enum | [Schema3.StringSchemaEnums3](#stringschemaenums3)
String enum | @@ -23,20 +23,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema31BoxedString -public static final class Schema31BoxedString
+public record Schema31BoxedString
implements [Schema31Boxed](#schema31boxed) -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 | | --------------------------- | | Schema31BoxedString(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 | ## Schema31 public static class Schema31
diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter4/Schema4.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter4/Schema4.md index 5961413e19c..6a790e1b4a4 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter4/Schema4.md +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter4/Schema4.md @@ -10,8 +10,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema4.Schema41Boxed](#schema41boxed)
abstract sealed validated payload class | -| static class | [Schema4.Schema41BoxedNumber](#schema41boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [Schema4.Schema41Boxed](#schema41boxed)
abstract sealed validated payload class | +| record | [Schema4.Schema41BoxedNumber](#schema41boxednumber)
boxed class to store validated Number payloads | | static class | [Schema4.Schema41](#schema41)
schema class | | enum | [Schema4.IntegerSchemaEnums4](#integerschemaenums4)
Integer enum | | enum | [Schema4.LongSchemaEnums4](#longschemaenums4)
Long enum | @@ -26,20 +26,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema41BoxedNumber -public static final class Schema41BoxedNumber
+public record Schema41BoxedNumber
implements [Schema41Boxed](#schema41boxed) -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 | | --------------------------- | | Schema41BoxedNumber(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 | ## Schema41 public static class Schema41
diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter5/Schema5.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter5/Schema5.md index 387cbae5bb9..251901093f5 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter5/Schema5.md +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter5/Schema5.md @@ -10,8 +10,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema5.Schema51Boxed](#schema51boxed)
abstract sealed validated payload class | -| static class | [Schema5.Schema51BoxedNumber](#schema51boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [Schema5.Schema51Boxed](#schema51boxed)
abstract sealed validated payload class | +| record | [Schema5.Schema51BoxedNumber](#schema51boxednumber)
boxed class to store validated Number payloads | | static class | [Schema5.Schema51](#schema51)
schema class | | enum | [Schema5.DoubleSchemaEnums5](#doubleschemaenums5)
Double enum | | enum | [Schema5.FloatSchemaEnums5](#floatschemaenums5)
Float enum | @@ -24,20 +24,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema51BoxedNumber -public static final class Schema51BoxedNumber
+public record Schema51BoxedNumber
implements [Schema51Boxed](#schema51boxed) -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 | | --------------------------- | | Schema51BoxedNumber(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 | ## Schema51 public static class Schema51
diff --git a/samples/client/petstore/java/docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md b/samples/client/petstore/java/docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md index 83f0b7400bc..1eea3e413e9 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md +++ b/samples/client/petstore/java/docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md @@ -14,22 +14,22 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed)
abstract sealed validated payload class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](#applicationxwwwformurlencodedschema1)
schema class | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder)
builder for Map payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap)
output class for Map payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringBoxed](#applicationxwwwformurlencodedenumformstringboxed)
abstract sealed validated payload class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringBoxedString](#applicationxwwwformurlencodedenumformstringboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringBoxed](#applicationxwwwformurlencodedenumformstringboxed)
abstract sealed validated payload class | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringBoxedString](#applicationxwwwformurlencodedenumformstringboxedstring)
boxed class to store validated String payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormString](#applicationxwwwformurlencodedenumformstring)
schema class | | enum | [ApplicationxwwwformurlencodedSchema.StringApplicationxwwwformurlencodedEnumFormStringEnums](#stringapplicationxwwwformurlencodedenumformstringenums)
String enum | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringArrayBoxed](#applicationxwwwformurlencodedenumformstringarrayboxed)
abstract sealed validated payload class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList](#applicationxwwwformurlencodedenumformstringarrayboxedlist)
boxed class to store validated List payloads | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringArrayBoxed](#applicationxwwwformurlencodedenumformstringarrayboxed)
abstract sealed validated payload class | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList](#applicationxwwwformurlencodedenumformstringarrayboxedlist)
boxed class to store validated List payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringArray](#applicationxwwwformurlencodedenumformstringarray)
schema class | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringArrayListBuilder](#applicationxwwwformurlencodedenumformstringarraylistbuilder)
builder for List payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringArrayList](#applicationxwwwformurlencodedenumformstringarraylist)
output class for List payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedItemsBoxed](#applicationxwwwformurlencodeditemsboxed)
abstract sealed validated payload class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedItemsBoxedString](#applicationxwwwformurlencodeditemsboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedItemsBoxed](#applicationxwwwformurlencodeditemsboxed)
abstract sealed validated payload class | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedItemsBoxedString](#applicationxwwwformurlencodeditemsboxedstring)
boxed class to store validated String payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedItems](#applicationxwwwformurlencodeditems)
schema class | | enum | [ApplicationxwwwformurlencodedSchema.StringApplicationxwwwformurlencodedItemsEnums](#stringapplicationxwwwformurlencodeditemsenums)
String enum | @@ -41,20 +41,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedSchema1BoxedMap -public static final class ApplicationxwwwformurlencodedSchema1BoxedMap
+public record ApplicationxwwwformurlencodedSchema1BoxedMap
implements [ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed) -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 | | --------------------------- | | ApplicationxwwwformurlencodedSchema1BoxedMap([ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | data
validated payload | +| [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ApplicationxwwwformurlencodedSchema1 public static class ApplicationxwwwformurlencodedSchema1
@@ -155,20 +156,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedEnumFormStringBoxedString -public static final class ApplicationxwwwformurlencodedEnumFormStringBoxedString
+public record ApplicationxwwwformurlencodedEnumFormStringBoxedString
implements [ApplicationxwwwformurlencodedEnumFormStringBoxed](#applicationxwwwformurlencodedenumformstringboxed) -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 | | --------------------------- | | ApplicationxwwwformurlencodedEnumFormStringBoxedString(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 | ## ApplicationxwwwformurlencodedEnumFormString public static class ApplicationxwwwformurlencodedEnumFormString
@@ -236,20 +238,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList -public static final class ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList
+public record ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList
implements [ApplicationxwwwformurlencodedEnumFormStringArrayBoxed](#applicationxwwwformurlencodedenumformstringarrayboxed) -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 | | --------------------------- | | ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList([ApplicationxwwwformurlencodedEnumFormStringArrayList](#applicationxwwwformurlencodedenumformstringarraylist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedEnumFormStringArrayList](#applicationxwwwformurlencodedenumformstringarraylist) | data
validated payload | +| [ApplicationxwwwformurlencodedEnumFormStringArrayList](#applicationxwwwformurlencodedenumformstringarraylist) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ApplicationxwwwformurlencodedEnumFormStringArray public static class ApplicationxwwwformurlencodedEnumFormStringArray
@@ -336,20 +339,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedItemsBoxedString -public static final class ApplicationxwwwformurlencodedItemsBoxedString
+public record ApplicationxwwwformurlencodedItemsBoxedString
implements [ApplicationxwwwformurlencodedItemsBoxed](#applicationxwwwformurlencodeditemsboxed) -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 | | --------------------------- | | ApplicationxwwwformurlencodedItemsBoxedString(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 | ## ApplicationxwwwformurlencodedItems public static class ApplicationxwwwformurlencodedItems
diff --git a/samples/client/petstore/java/docs/paths/fake/get/responses/response404/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fake/get/responses/response404/content/applicationjson/ApplicationjsonSchema.md index 340e72696a6..df68d1ca2ee 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/responses/response404/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fake/get/responses/response404/content/applicationjson/ApplicationjsonSchema.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | ## ApplicationjsonSchema1Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedMap -public static final class ApplicationjsonSchema1BoxedMap
+public record ApplicationjsonSchema1BoxedMap
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedMap(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 | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
diff --git a/samples/client/petstore/java/docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md b/samples/client/petstore/java/docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md index 367c3c568eb..3f6f99f7ef5 100644 --- a/samples/client/petstore/java/docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md +++ b/samples/client/petstore/java/docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md @@ -11,51 +11,51 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed)
abstract sealed validated payload class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](#applicationxwwwformurlencodedschema1)
schema class | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder)
builder for Map payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap)
output class for Map payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedCallbackBoxed](#applicationxwwwformurlencodedcallbackboxed)
abstract sealed validated payload class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedCallbackBoxedString](#applicationxwwwformurlencodedcallbackboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedCallbackBoxed](#applicationxwwwformurlencodedcallbackboxed)
abstract sealed validated payload class | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedCallbackBoxedString](#applicationxwwwformurlencodedcallbackboxedstring)
boxed class to store validated String payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedCallback](#applicationxwwwformurlencodedcallback)
schema class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPasswordBoxed](#applicationxwwwformurlencodedpasswordboxed)
abstract sealed validated payload class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPasswordBoxedString](#applicationxwwwformurlencodedpasswordboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPasswordBoxed](#applicationxwwwformurlencodedpasswordboxed)
abstract sealed validated payload class | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPasswordBoxedString](#applicationxwwwformurlencodedpasswordboxedstring)
boxed class to store validated String payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPassword](#applicationxwwwformurlencodedpassword)
schema class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDateTimeBoxed](#applicationxwwwformurlencodeddatetimeboxed)
abstract sealed validated payload class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDateTimeBoxedString](#applicationxwwwformurlencodeddatetimeboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDateTimeBoxed](#applicationxwwwformurlencodeddatetimeboxed)
abstract sealed validated payload class | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDateTimeBoxedString](#applicationxwwwformurlencodeddatetimeboxedstring)
boxed class to store validated String payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDateTime](#applicationxwwwformurlencodeddatetime)
schema class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDateBoxed](#applicationxwwwformurlencodeddateboxed)
abstract sealed validated payload class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDateBoxedString](#applicationxwwwformurlencodeddateboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDateBoxed](#applicationxwwwformurlencodeddateboxed)
abstract sealed validated payload class | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDateBoxedString](#applicationxwwwformurlencodeddateboxedstring)
boxed class to store validated String payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDate](#applicationxwwwformurlencodeddate)
schema class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedBinaryBoxed](#applicationxwwwformurlencodedbinaryboxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedBinaryBoxed](#applicationxwwwformurlencodedbinaryboxed)
abstract sealed validated payload class | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedBinary](#applicationxwwwformurlencodedbinary)
schema class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedByteBoxed](#applicationxwwwformurlencodedbyteboxed)
abstract sealed validated payload class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedByteBoxedString](#applicationxwwwformurlencodedbyteboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedByteBoxed](#applicationxwwwformurlencodedbyteboxed)
abstract sealed validated payload class | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedByteBoxedString](#applicationxwwwformurlencodedbyteboxedstring)
boxed class to store validated String payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedByte](#applicationxwwwformurlencodedbyte)
schema class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed](#applicationxwwwformurlencodedpatternwithoutdelimiterboxed)
abstract sealed validated payload class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString](#applicationxwwwformurlencodedpatternwithoutdelimiterboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed](#applicationxwwwformurlencodedpatternwithoutdelimiterboxed)
abstract sealed validated payload class | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString](#applicationxwwwformurlencodedpatternwithoutdelimiterboxedstring)
boxed class to store validated String payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPatternWithoutDelimiter](#applicationxwwwformurlencodedpatternwithoutdelimiter)
schema class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedStringBoxed](#applicationxwwwformurlencodedstringboxed)
abstract sealed validated payload class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedStringBoxedString](#applicationxwwwformurlencodedstringboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedStringBoxed](#applicationxwwwformurlencodedstringboxed)
abstract sealed validated payload class | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedStringBoxedString](#applicationxwwwformurlencodedstringboxedstring)
boxed class to store validated String payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedString](#applicationxwwwformurlencodedstring)
schema class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDoubleBoxed](#applicationxwwwformurlencodeddoubleboxed)
abstract sealed validated payload class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDoubleBoxedNumber](#applicationxwwwformurlencodeddoubleboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDoubleBoxed](#applicationxwwwformurlencodeddoubleboxed)
abstract sealed validated payload class | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDoubleBoxedNumber](#applicationxwwwformurlencodeddoubleboxednumber)
boxed class to store validated Number payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDouble](#applicationxwwwformurlencodeddouble)
schema class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedFloatBoxed](#applicationxwwwformurlencodedfloatboxed)
abstract sealed validated payload class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedFloatBoxedNumber](#applicationxwwwformurlencodedfloatboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedFloatBoxed](#applicationxwwwformurlencodedfloatboxed)
abstract sealed validated payload class | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedFloatBoxedNumber](#applicationxwwwformurlencodedfloatboxednumber)
boxed class to store validated Number payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedFloat](#applicationxwwwformurlencodedfloat)
schema class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedNumberBoxed](#applicationxwwwformurlencodednumberboxed)
abstract sealed validated payload class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedNumberBoxedNumber](#applicationxwwwformurlencodednumberboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedNumberBoxed](#applicationxwwwformurlencodednumberboxed)
abstract sealed validated payload class | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedNumberBoxedNumber](#applicationxwwwformurlencodednumberboxednumber)
boxed class to store validated Number payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedNumber](#applicationxwwwformurlencodednumber)
schema class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInt64Boxed](#applicationxwwwformurlencodedint64boxed)
abstract sealed validated payload class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInt64BoxedNumber](#applicationxwwwformurlencodedint64boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInt64Boxed](#applicationxwwwformurlencodedint64boxed)
abstract sealed validated payload class | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInt64BoxedNumber](#applicationxwwwformurlencodedint64boxednumber)
boxed class to store validated Number payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInt64](#applicationxwwwformurlencodedint64)
schema class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInt32Boxed](#applicationxwwwformurlencodedint32boxed)
abstract sealed validated payload class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInt32BoxedNumber](#applicationxwwwformurlencodedint32boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInt32Boxed](#applicationxwwwformurlencodedint32boxed)
abstract sealed validated payload class | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInt32BoxedNumber](#applicationxwwwformurlencodedint32boxednumber)
boxed class to store validated Number payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInt32](#applicationxwwwformurlencodedint32)
schema class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedIntegerBoxed](#applicationxwwwformurlencodedintegerboxed)
abstract sealed validated payload class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedIntegerBoxedNumber](#applicationxwwwformurlencodedintegerboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedIntegerBoxed](#applicationxwwwformurlencodedintegerboxed)
abstract sealed validated payload class | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedIntegerBoxedNumber](#applicationxwwwformurlencodedintegerboxednumber)
boxed class to store validated Number payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInteger](#applicationxwwwformurlencodedinteger)
schema class | ## ApplicationxwwwformurlencodedSchema1Boxed @@ -66,20 +66,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedSchema1BoxedMap -public static final class ApplicationxwwwformurlencodedSchema1BoxedMap
+public record ApplicationxwwwformurlencodedSchema1BoxedMap
implements [ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed) -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 | | --------------------------- | | ApplicationxwwwformurlencodedSchema1BoxedMap([ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | data
validated payload | +| [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ApplicationxwwwformurlencodedSchema1 public static class ApplicationxwwwformurlencodedSchema1
@@ -531,20 +532,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedCallbackBoxedString -public static final class ApplicationxwwwformurlencodedCallbackBoxedString
+public record ApplicationxwwwformurlencodedCallbackBoxedString
implements [ApplicationxwwwformurlencodedCallbackBoxed](#applicationxwwwformurlencodedcallbackboxed) -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 | | --------------------------- | | ApplicationxwwwformurlencodedCallbackBoxedString(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 | ## ApplicationxwwwformurlencodedCallback public static class ApplicationxwwwformurlencodedCallback
@@ -568,20 +570,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedPasswordBoxedString -public static final class ApplicationxwwwformurlencodedPasswordBoxedString
+public record ApplicationxwwwformurlencodedPasswordBoxedString
implements [ApplicationxwwwformurlencodedPasswordBoxed](#applicationxwwwformurlencodedpasswordboxed) -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 | | --------------------------- | | ApplicationxwwwformurlencodedPasswordBoxedString(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 | ## ApplicationxwwwformurlencodedPassword public static class ApplicationxwwwformurlencodedPassword
@@ -636,20 +639,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedDateTimeBoxedString -public static final class ApplicationxwwwformurlencodedDateTimeBoxedString
+public record ApplicationxwwwformurlencodedDateTimeBoxedString
implements [ApplicationxwwwformurlencodedDateTimeBoxed](#applicationxwwwformurlencodeddatetimeboxed) -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 | | --------------------------- | | ApplicationxwwwformurlencodedDateTimeBoxedString(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 | ## ApplicationxwwwformurlencodedDateTime public static class ApplicationxwwwformurlencodedDateTime
@@ -703,20 +707,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedDateBoxedString -public static final class ApplicationxwwwformurlencodedDateBoxedString
+public record ApplicationxwwwformurlencodedDateBoxedString
implements [ApplicationxwwwformurlencodedDateBoxed](#applicationxwwwformurlencodeddateboxed) -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 | | --------------------------- | | ApplicationxwwwformurlencodedDateBoxedString(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 | ## ApplicationxwwwformurlencodedDate public static class ApplicationxwwwformurlencodedDate
@@ -755,20 +760,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedByteBoxedString -public static final class ApplicationxwwwformurlencodedByteBoxedString
+public record ApplicationxwwwformurlencodedByteBoxedString
implements [ApplicationxwwwformurlencodedByteBoxed](#applicationxwwwformurlencodedbyteboxed) -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 | | --------------------------- | | ApplicationxwwwformurlencodedByteBoxedString(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 | ## ApplicationxwwwformurlencodedByte public static class ApplicationxwwwformurlencodedByte
@@ -787,20 +793,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString -public static final class ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString
+public record ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString
implements [ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed](#applicationxwwwformurlencodedpatternwithoutdelimiterboxed) -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 | | --------------------------- | | ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString(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 | ## ApplicationxwwwformurlencodedPatternWithoutDelimiter public static class ApplicationxwwwformurlencodedPatternWithoutDelimiter
@@ -853,20 +860,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedStringBoxedString -public static final class ApplicationxwwwformurlencodedStringBoxedString
+public record ApplicationxwwwformurlencodedStringBoxedString
implements [ApplicationxwwwformurlencodedStringBoxed](#applicationxwwwformurlencodedstringboxed) -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 | | --------------------------- | | ApplicationxwwwformurlencodedStringBoxedString(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 | ## ApplicationxwwwformurlencodedString public static class ApplicationxwwwformurlencodedString
@@ -919,20 +927,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedDoubleBoxedNumber -public static final class ApplicationxwwwformurlencodedDoubleBoxedNumber
+public record ApplicationxwwwformurlencodedDoubleBoxedNumber
implements [ApplicationxwwwformurlencodedDoubleBoxed](#applicationxwwwformurlencodeddoubleboxed) -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 | | --------------------------- | | ApplicationxwwwformurlencodedDoubleBoxedNumber(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 | ## ApplicationxwwwformurlencodedDouble public static class ApplicationxwwwformurlencodedDouble
@@ -987,20 +996,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedFloatBoxedNumber -public static final class ApplicationxwwwformurlencodedFloatBoxedNumber
+public record ApplicationxwwwformurlencodedFloatBoxedNumber
implements [ApplicationxwwwformurlencodedFloatBoxed](#applicationxwwwformurlencodedfloatboxed) -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 | | --------------------------- | | ApplicationxwwwformurlencodedFloatBoxedNumber(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 | ## ApplicationxwwwformurlencodedFloat public static class ApplicationxwwwformurlencodedFloat
@@ -1054,20 +1064,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedNumberBoxedNumber -public static final class ApplicationxwwwformurlencodedNumberBoxedNumber
+public record ApplicationxwwwformurlencodedNumberBoxedNumber
implements [ApplicationxwwwformurlencodedNumberBoxed](#applicationxwwwformurlencodednumberboxed) -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 | | --------------------------- | | ApplicationxwwwformurlencodedNumberBoxedNumber(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 | ## ApplicationxwwwformurlencodedNumber public static class ApplicationxwwwformurlencodedNumber
@@ -1121,20 +1132,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedInt64BoxedNumber -public static final class ApplicationxwwwformurlencodedInt64BoxedNumber
+public record ApplicationxwwwformurlencodedInt64BoxedNumber
implements [ApplicationxwwwformurlencodedInt64Boxed](#applicationxwwwformurlencodedint64boxed) -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 | | --------------------------- | | ApplicationxwwwformurlencodedInt64BoxedNumber(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 | ## ApplicationxwwwformurlencodedInt64 public static class ApplicationxwwwformurlencodedInt64
@@ -1158,20 +1170,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedInt32BoxedNumber -public static final class ApplicationxwwwformurlencodedInt32BoxedNumber
+public record ApplicationxwwwformurlencodedInt32BoxedNumber
implements [ApplicationxwwwformurlencodedInt32Boxed](#applicationxwwwformurlencodedint32boxed) -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 | | --------------------------- | | ApplicationxwwwformurlencodedInt32BoxedNumber(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 | ## ApplicationxwwwformurlencodedInt32 public static class ApplicationxwwwformurlencodedInt32
@@ -1226,20 +1239,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedIntegerBoxedNumber -public static final class ApplicationxwwwformurlencodedIntegerBoxedNumber
+public record ApplicationxwwwformurlencodedIntegerBoxedNumber
implements [ApplicationxwwwformurlencodedIntegerBoxed](#applicationxwwwformurlencodedintegerboxed) -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 | | --------------------------- | | ApplicationxwwwformurlencodedIntegerBoxedNumber(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 | ## ApplicationxwwwformurlencodedInteger public static class ApplicationxwwwformurlencodedInteger
diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md index e79a3033b40..edd11b6e174 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | -| static class | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema01BoxedString -public static final class Schema01BoxedString
+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 | ## Schema01 public static class Schema01
diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.md index e79a3033b40..edd11b6e174 100644 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | -| static class | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema01BoxedString -public static final class Schema01BoxedString
+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 | ## Schema01 public static class Schema01
diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md index 607c39645ec..8dfdf8085c2 100644 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema1.Schema11Boxed](#schema11boxed)
abstract sealed validated payload class | -| static class | [Schema1.Schema11BoxedString](#schema11boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
abstract sealed validated payload class | +| record | [Schema1.Schema11BoxedString](#schema11boxedstring)
boxed class to store validated String payloads | | static class | [Schema1.Schema11](#schema11)
schema class | ## Schema11Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema11BoxedString -public static final class Schema11BoxedString
+public record Schema11BoxedString
implements [Schema11Boxed](#schema11boxed) -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 | | --------------------------- | | Schema11BoxedString(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 | ## Schema11 public static class Schema11
diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md index 4da86d445e1..8659bbfaba4 100644 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema2.Schema21Boxed](#schema21boxed)
abstract sealed validated payload class | -| static class | [Schema2.Schema21BoxedString](#schema21boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema2.Schema21Boxed](#schema21boxed)
abstract sealed validated payload class | +| record | [Schema2.Schema21BoxedString](#schema21boxedstring)
boxed class to store validated String payloads | | static class | [Schema2.Schema21](#schema21)
schema class | ## Schema21Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema21BoxedString -public static final class Schema21BoxedString
+public record Schema21BoxedString
implements [Schema21Boxed](#schema21boxed) -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 | | --------------------------- | | Schema21BoxedString(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 | ## Schema21 public static class Schema21
diff --git a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.md index e79a3033b40..edd11b6e174 100644 --- a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | -| static class | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema01BoxedString -public static final class Schema01BoxedString
+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 | ## Schema01 public static class Schema01
diff --git a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index 56bc3831140..a8f7fc09ac6 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -11,13 +11,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | | static class | [ApplicationjsonSchema.ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder)
builder for Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchemaMap](#applicationjsonschemamap)
output class for Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonAdditionalPropertiesBoxed](#applicationjsonadditionalpropertiesboxed)
abstract sealed validated payload class | -| static class | [ApplicationjsonSchema.ApplicationjsonAdditionalPropertiesBoxedString](#applicationjsonadditionalpropertiesboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonAdditionalPropertiesBoxed](#applicationjsonadditionalpropertiesboxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonAdditionalPropertiesBoxedString](#applicationjsonadditionalpropertiesboxedstring)
boxed class to store validated String payloads | | static class | [ApplicationjsonSchema.ApplicationjsonAdditionalProperties](#applicationjsonadditionalproperties)
schema class | ## ApplicationjsonSchema1Boxed @@ -28,20 +28,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedMap -public static final class ApplicationjsonSchema1BoxedMap
+public record ApplicationjsonSchema1BoxedMap
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedMap([ApplicationjsonSchemaMap](#applicationjsonschemamap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchemaMap](#applicationjsonschemamap) | data
validated payload | +| [ApplicationjsonSchemaMap](#applicationjsonschemamap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
@@ -124,20 +125,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationjsonAdditionalPropertiesBoxedString -public static final class ApplicationjsonAdditionalPropertiesBoxedString
+public record ApplicationjsonAdditionalPropertiesBoxedString
implements [ApplicationjsonAdditionalPropertiesBoxed](#applicationjsonadditionalpropertiesboxed) -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 | | --------------------------- | | ApplicationjsonAdditionalPropertiesBoxedString(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 | ## ApplicationjsonAdditionalProperties public static class ApplicationjsonAdditionalProperties
diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md index 594540bf85d..6d76476ee8b 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md @@ -9,16 +9,16 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | -| static class | [Schema0.Schema01BoxedVoid](#schema01boxedvoid)
boxed class to store validated null payloads | -| static class | [Schema0.Schema01BoxedBoolean](#schema01boxedboolean)
boxed class to store validated boolean payloads | -| static class | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | -| static class | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | -| static class | [Schema0.Schema01BoxedList](#schema01boxedlist)
boxed class to store validated List payloads | -| static class | [Schema0.Schema01BoxedMap](#schema01boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| record | [Schema0.Schema01BoxedVoid](#schema01boxedvoid)
boxed class to store validated null payloads | +| record | [Schema0.Schema01BoxedBoolean](#schema01boxedboolean)
boxed class to store validated boolean payloads | +| record | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | +| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | +| record | [Schema0.Schema01BoxedList](#schema01boxedlist)
boxed class to store validated List payloads | +| record | [Schema0.Schema01BoxedMap](#schema01boxedmap)
boxed class to store validated Map payloads | | static class | [Schema0.Schema01](#schema01)
schema class | -| static class | [Schema0.Schema00Boxed](#schema00boxed)
abstract sealed validated payload class | -| static class | [Schema0.Schema00BoxedString](#schema00boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema0.Schema00Boxed](#schema00boxed)
abstract sealed validated payload class | +| record | [Schema0.Schema00BoxedString](#schema00boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Schema00](#schema00)
schema class | ## Schema01Boxed @@ -34,100 +34,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema01BoxedVoid -public static final class Schema01BoxedVoid
+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
+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
+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
+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
+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
+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
@@ -168,20 +174,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema00BoxedString -public static final class Schema00BoxedString
+public record Schema00BoxedString
implements [Schema00Boxed](#schema00boxed) -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 | | --------------------------- | | Schema00BoxedString(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 | ## Schema00 public static class Schema00
diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md index 96ec9020603..0f9763859da 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md @@ -11,21 +11,21 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema1.Schema11Boxed](#schema11boxed)
abstract sealed validated payload class | -| static class | [Schema1.Schema11BoxedMap](#schema11boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
abstract sealed validated payload class | +| record | [Schema1.Schema11BoxedMap](#schema11boxedmap)
boxed class to store validated Map payloads | | static class | [Schema1.Schema11](#schema11)
schema class | | static class | [Schema1.SchemaMapBuilder1](#schemamapbuilder1)
builder for Map payloads | | static class | [Schema1.SchemaMap1](#schemamap1)
output class for Map payloads | -| static class | [Schema1.SomeProp1Boxed](#someprop1boxed)
abstract sealed validated payload class | -| static class | [Schema1.SomeProp1BoxedVoid](#someprop1boxedvoid)
boxed class to store validated null payloads | -| static class | [Schema1.SomeProp1BoxedBoolean](#someprop1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [Schema1.SomeProp1BoxedNumber](#someprop1boxednumber)
boxed class to store validated Number payloads | -| static class | [Schema1.SomeProp1BoxedString](#someprop1boxedstring)
boxed class to store validated String payloads | -| static class | [Schema1.SomeProp1BoxedList](#someprop1boxedlist)
boxed class to store validated List payloads | -| static class | [Schema1.SomeProp1BoxedMap](#someprop1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Schema1.SomeProp1Boxed](#someprop1boxed)
abstract sealed validated payload class | +| record | [Schema1.SomeProp1BoxedVoid](#someprop1boxedvoid)
boxed class to store validated null payloads | +| record | [Schema1.SomeProp1BoxedBoolean](#someprop1boxedboolean)
boxed class to store validated boolean payloads | +| record | [Schema1.SomeProp1BoxedNumber](#someprop1boxednumber)
boxed class to store validated Number payloads | +| record | [Schema1.SomeProp1BoxedString](#someprop1boxedstring)
boxed class to store validated String payloads | +| record | [Schema1.SomeProp1BoxedList](#someprop1boxedlist)
boxed class to store validated List payloads | +| record | [Schema1.SomeProp1BoxedMap](#someprop1boxedmap)
boxed class to store validated Map payloads | | static class | [Schema1.SomeProp1](#someprop1)
schema class | -| static class | [Schema1.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | -| static class | [Schema1.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema1.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| record | [Schema1.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | | static class | [Schema1.Schema01](#schema01)
schema class | ## Schema11Boxed @@ -36,20 +36,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema11BoxedMap -public static final class Schema11BoxedMap
+public record Schema11BoxedMap
implements [Schema11Boxed](#schema11boxed) -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 | | --------------------------- | | Schema11BoxedMap([SchemaMap1](#schemamap1) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaMap1](#schemamap1) | data
validated payload | +| [SchemaMap1](#schemamap1) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Schema11 public static class Schema11
@@ -153,100 +154,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## SomeProp1BoxedVoid -public static final class SomeProp1BoxedVoid
+public record SomeProp1BoxedVoid
implements [SomeProp1Boxed](#someprop1boxed) -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 | | --------------------------- | | SomeProp1BoxedVoid(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 | ## SomeProp1BoxedBoolean -public static final class SomeProp1BoxedBoolean
+public record SomeProp1BoxedBoolean
implements [SomeProp1Boxed](#someprop1boxed) -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 | | --------------------------- | | SomeProp1BoxedBoolean(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 | ## SomeProp1BoxedNumber -public static final class SomeProp1BoxedNumber
+public record SomeProp1BoxedNumber
implements [SomeProp1Boxed](#someprop1boxed) -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 | | --------------------------- | | SomeProp1BoxedNumber(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 | ## SomeProp1BoxedString -public static final class SomeProp1BoxedString
+public record SomeProp1BoxedString
implements [SomeProp1Boxed](#someprop1boxed) -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 | | --------------------------- | | SomeProp1BoxedString(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 | ## SomeProp1BoxedList -public static final class SomeProp1BoxedList
+public record SomeProp1BoxedList
implements [SomeProp1Boxed](#someprop1boxed) -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 | | --------------------------- | | SomeProp1BoxedList(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 | ## SomeProp1BoxedMap -public static final class SomeProp1BoxedMap
+public record SomeProp1BoxedMap
implements [SomeProp1Boxed](#someprop1boxed) -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 | | --------------------------- | | SomeProp1BoxedMap(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 | ## SomeProp1 public static class SomeProp1
@@ -287,20 +294,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema01BoxedString -public static final class Schema01BoxedString
+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 | ## Schema01 public static class Schema01
diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index 60db4729ac6..da378c4ec25 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -9,16 +9,16 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | -| static class | [ApplicationjsonSchema.Applicationjson0Boxed](#applicationjson0boxed)
abstract sealed validated payload class | -| static class | [ApplicationjsonSchema.Applicationjson0BoxedString](#applicationjson0boxedstring)
boxed class to store validated String payloads | +| sealed interface | [ApplicationjsonSchema.Applicationjson0Boxed](#applicationjson0boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.Applicationjson0BoxedString](#applicationjson0boxedstring)
boxed class to store validated String payloads | | static class | [ApplicationjsonSchema.Applicationjson0](#applicationjson0)
schema class | ## ApplicationjsonSchema1Boxed @@ -34,100 +34,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedVoid -public static final class ApplicationjsonSchema1BoxedVoid
+public record ApplicationjsonSchema1BoxedVoid
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedVoid(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 | ## ApplicationjsonSchema1BoxedBoolean -public static final class ApplicationjsonSchema1BoxedBoolean
+public record ApplicationjsonSchema1BoxedBoolean
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedBoolean(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 | ## ApplicationjsonSchema1BoxedNumber -public static final class ApplicationjsonSchema1BoxedNumber
+public record ApplicationjsonSchema1BoxedNumber
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedNumber(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 | ## ApplicationjsonSchema1BoxedString -public static final class ApplicationjsonSchema1BoxedString
+public record ApplicationjsonSchema1BoxedString
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedString(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 | ## ApplicationjsonSchema1BoxedList -public static final class ApplicationjsonSchema1BoxedList
+public record ApplicationjsonSchema1BoxedList
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedList(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 | ## ApplicationjsonSchema1BoxedMap -public static final class ApplicationjsonSchema1BoxedMap
+public record ApplicationjsonSchema1BoxedMap
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedMap(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 | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
@@ -168,20 +174,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Applicationjson0BoxedString -public static final class Applicationjson0BoxedString
+public record Applicationjson0BoxedString
implements [Applicationjson0Boxed](#applicationjson0boxed) -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 | | --------------------------- | | Applicationjson0BoxedString(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 | ## Applicationjson0 public static class Applicationjson0
diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md index dac2d663fe6..9896927ad60 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -11,21 +11,21 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
abstract sealed validated payload class | -| static class | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
abstract sealed validated payload class | +| record | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | | static class | [MultipartformdataSchema.MultipartformdataSchema1](#multipartformdataschema1)
schema class | | static class | [MultipartformdataSchema.MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder)
builder for Map payloads | | static class | [MultipartformdataSchema.MultipartformdataSchemaMap](#multipartformdataschemamap)
output class for Map payloads | -| static class | [MultipartformdataSchema.MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed)
abstract sealed validated payload class | -| static class | [MultipartformdataSchema.MultipartformdataSomePropBoxedVoid](#multipartformdatasomepropboxedvoid)
boxed class to store validated null payloads | -| static class | [MultipartformdataSchema.MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean)
boxed class to store validated boolean payloads | -| static class | [MultipartformdataSchema.MultipartformdataSomePropBoxedNumber](#multipartformdatasomepropboxednumber)
boxed class to store validated Number payloads | -| static class | [MultipartformdataSchema.MultipartformdataSomePropBoxedString](#multipartformdatasomepropboxedstring)
boxed class to store validated String payloads | -| static class | [MultipartformdataSchema.MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist)
boxed class to store validated List payloads | -| static class | [MultipartformdataSchema.MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [MultipartformdataSchema.MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed)
abstract sealed validated payload class | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedVoid](#multipartformdatasomepropboxedvoid)
boxed class to store validated null payloads | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean)
boxed class to store validated boolean payloads | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedNumber](#multipartformdatasomepropboxednumber)
boxed class to store validated Number payloads | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedString](#multipartformdatasomepropboxedstring)
boxed class to store validated String payloads | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist)
boxed class to store validated List payloads | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap)
boxed class to store validated Map payloads | | static class | [MultipartformdataSchema.MultipartformdataSomeProp](#multipartformdatasomeprop)
schema class | -| static class | [MultipartformdataSchema.Multipartformdata0Boxed](#multipartformdata0boxed)
abstract sealed validated payload class | -| static class | [MultipartformdataSchema.Multipartformdata0BoxedString](#multipartformdata0boxedstring)
boxed class to store validated String payloads | +| sealed interface | [MultipartformdataSchema.Multipartformdata0Boxed](#multipartformdata0boxed)
abstract sealed validated payload class | +| record | [MultipartformdataSchema.Multipartformdata0BoxedString](#multipartformdata0boxedstring)
boxed class to store validated String payloads | | static class | [MultipartformdataSchema.Multipartformdata0](#multipartformdata0)
schema class | ## MultipartformdataSchema1Boxed @@ -36,20 +36,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## MultipartformdataSchema1BoxedMap -public static final class MultipartformdataSchema1BoxedMap
+public record MultipartformdataSchema1BoxedMap
implements [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) -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 | | --------------------------- | | MultipartformdataSchema1BoxedMap([MultipartformdataSchemaMap](#multipartformdataschemamap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [MultipartformdataSchemaMap](#multipartformdataschemamap) | data
validated payload | +| [MultipartformdataSchemaMap](#multipartformdataschemamap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## MultipartformdataSchema1 public static class MultipartformdataSchema1
@@ -153,100 +154,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## MultipartformdataSomePropBoxedVoid -public static final class MultipartformdataSomePropBoxedVoid
+public record MultipartformdataSomePropBoxedVoid
implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) -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 | | --------------------------- | | MultipartformdataSomePropBoxedVoid(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 | ## MultipartformdataSomePropBoxedBoolean -public static final class MultipartformdataSomePropBoxedBoolean
+public record MultipartformdataSomePropBoxedBoolean
implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) -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 | | --------------------------- | | MultipartformdataSomePropBoxedBoolean(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 | ## MultipartformdataSomePropBoxedNumber -public static final class MultipartformdataSomePropBoxedNumber
+public record MultipartformdataSomePropBoxedNumber
implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) -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 | | --------------------------- | | MultipartformdataSomePropBoxedNumber(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 | ## MultipartformdataSomePropBoxedString -public static final class MultipartformdataSomePropBoxedString
+public record MultipartformdataSomePropBoxedString
implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) -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 | | --------------------------- | | MultipartformdataSomePropBoxedString(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 | ## MultipartformdataSomePropBoxedList -public static final class MultipartformdataSomePropBoxedList
+public record MultipartformdataSomePropBoxedList
implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) -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 | | --------------------------- | | MultipartformdataSomePropBoxedList(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 | ## MultipartformdataSomePropBoxedMap -public static final class MultipartformdataSomePropBoxedMap
+public record MultipartformdataSomePropBoxedMap
implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) -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 | | --------------------------- | | MultipartformdataSomePropBoxedMap(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 | ## MultipartformdataSomeProp public static class MultipartformdataSomeProp
@@ -287,20 +294,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Multipartformdata0BoxedString -public static final class Multipartformdata0BoxedString
+public record Multipartformdata0BoxedString
implements [Multipartformdata0Boxed](#multipartformdata0boxed) -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 | | --------------------------- | | Multipartformdata0BoxedString(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 | ## Multipartformdata0 public static class Multipartformdata0
diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md index 60db4729ac6..da378c4ec25 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -9,16 +9,16 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | -| static class | [ApplicationjsonSchema.Applicationjson0Boxed](#applicationjson0boxed)
abstract sealed validated payload class | -| static class | [ApplicationjsonSchema.Applicationjson0BoxedString](#applicationjson0boxedstring)
boxed class to store validated String payloads | +| sealed interface | [ApplicationjsonSchema.Applicationjson0Boxed](#applicationjson0boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.Applicationjson0BoxedString](#applicationjson0boxedstring)
boxed class to store validated String payloads | | static class | [ApplicationjsonSchema.Applicationjson0](#applicationjson0)
schema class | ## ApplicationjsonSchema1Boxed @@ -34,100 +34,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedVoid -public static final class ApplicationjsonSchema1BoxedVoid
+public record ApplicationjsonSchema1BoxedVoid
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedVoid(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 | ## ApplicationjsonSchema1BoxedBoolean -public static final class ApplicationjsonSchema1BoxedBoolean
+public record ApplicationjsonSchema1BoxedBoolean
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedBoolean(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 | ## ApplicationjsonSchema1BoxedNumber -public static final class ApplicationjsonSchema1BoxedNumber
+public record ApplicationjsonSchema1BoxedNumber
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedNumber(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 | ## ApplicationjsonSchema1BoxedString -public static final class ApplicationjsonSchema1BoxedString
+public record ApplicationjsonSchema1BoxedString
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedString(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 | ## ApplicationjsonSchema1BoxedList -public static final class ApplicationjsonSchema1BoxedList
+public record ApplicationjsonSchema1BoxedList
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedList(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 | ## ApplicationjsonSchema1BoxedMap -public static final class ApplicationjsonSchema1BoxedMap
+public record ApplicationjsonSchema1BoxedMap
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedMap(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 | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
@@ -168,20 +174,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Applicationjson0BoxedString -public static final class Applicationjson0BoxedString
+public record Applicationjson0BoxedString
implements [Applicationjson0Boxed](#applicationjson0boxed) -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 | | --------------------------- | | Applicationjson0BoxedString(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 | ## Applicationjson0 public static class Applicationjson0
diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.md index dac2d663fe6..9896927ad60 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.md @@ -11,21 +11,21 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
abstract sealed validated payload class | -| static class | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
abstract sealed validated payload class | +| record | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | | static class | [MultipartformdataSchema.MultipartformdataSchema1](#multipartformdataschema1)
schema class | | static class | [MultipartformdataSchema.MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder)
builder for Map payloads | | static class | [MultipartformdataSchema.MultipartformdataSchemaMap](#multipartformdataschemamap)
output class for Map payloads | -| static class | [MultipartformdataSchema.MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed)
abstract sealed validated payload class | -| static class | [MultipartformdataSchema.MultipartformdataSomePropBoxedVoid](#multipartformdatasomepropboxedvoid)
boxed class to store validated null payloads | -| static class | [MultipartformdataSchema.MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean)
boxed class to store validated boolean payloads | -| static class | [MultipartformdataSchema.MultipartformdataSomePropBoxedNumber](#multipartformdatasomepropboxednumber)
boxed class to store validated Number payloads | -| static class | [MultipartformdataSchema.MultipartformdataSomePropBoxedString](#multipartformdatasomepropboxedstring)
boxed class to store validated String payloads | -| static class | [MultipartformdataSchema.MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist)
boxed class to store validated List payloads | -| static class | [MultipartformdataSchema.MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [MultipartformdataSchema.MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed)
abstract sealed validated payload class | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedVoid](#multipartformdatasomepropboxedvoid)
boxed class to store validated null payloads | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean)
boxed class to store validated boolean payloads | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedNumber](#multipartformdatasomepropboxednumber)
boxed class to store validated Number payloads | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedString](#multipartformdatasomepropboxedstring)
boxed class to store validated String payloads | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist)
boxed class to store validated List payloads | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap)
boxed class to store validated Map payloads | | static class | [MultipartformdataSchema.MultipartformdataSomeProp](#multipartformdatasomeprop)
schema class | -| static class | [MultipartformdataSchema.Multipartformdata0Boxed](#multipartformdata0boxed)
abstract sealed validated payload class | -| static class | [MultipartformdataSchema.Multipartformdata0BoxedString](#multipartformdata0boxedstring)
boxed class to store validated String payloads | +| sealed interface | [MultipartformdataSchema.Multipartformdata0Boxed](#multipartformdata0boxed)
abstract sealed validated payload class | +| record | [MultipartformdataSchema.Multipartformdata0BoxedString](#multipartformdata0boxedstring)
boxed class to store validated String payloads | | static class | [MultipartformdataSchema.Multipartformdata0](#multipartformdata0)
schema class | ## MultipartformdataSchema1Boxed @@ -36,20 +36,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## MultipartformdataSchema1BoxedMap -public static final class MultipartformdataSchema1BoxedMap
+public record MultipartformdataSchema1BoxedMap
implements [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) -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 | | --------------------------- | | MultipartformdataSchema1BoxedMap([MultipartformdataSchemaMap](#multipartformdataschemamap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [MultipartformdataSchemaMap](#multipartformdataschemamap) | data
validated payload | +| [MultipartformdataSchemaMap](#multipartformdataschemamap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## MultipartformdataSchema1 public static class MultipartformdataSchema1
@@ -153,100 +154,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## MultipartformdataSomePropBoxedVoid -public static final class MultipartformdataSomePropBoxedVoid
+public record MultipartformdataSomePropBoxedVoid
implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) -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 | | --------------------------- | | MultipartformdataSomePropBoxedVoid(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 | ## MultipartformdataSomePropBoxedBoolean -public static final class MultipartformdataSomePropBoxedBoolean
+public record MultipartformdataSomePropBoxedBoolean
implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) -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 | | --------------------------- | | MultipartformdataSomePropBoxedBoolean(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 | ## MultipartformdataSomePropBoxedNumber -public static final class MultipartformdataSomePropBoxedNumber
+public record MultipartformdataSomePropBoxedNumber
implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) -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 | | --------------------------- | | MultipartformdataSomePropBoxedNumber(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 | ## MultipartformdataSomePropBoxedString -public static final class MultipartformdataSomePropBoxedString
+public record MultipartformdataSomePropBoxedString
implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) -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 | | --------------------------- | | MultipartformdataSomePropBoxedString(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 | ## MultipartformdataSomePropBoxedList -public static final class MultipartformdataSomePropBoxedList
+public record MultipartformdataSomePropBoxedList
implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) -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 | | --------------------------- | | MultipartformdataSomePropBoxedList(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 | ## MultipartformdataSomePropBoxedMap -public static final class MultipartformdataSomePropBoxedMap
+public record MultipartformdataSomePropBoxedMap
implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) -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 | | --------------------------- | | MultipartformdataSomePropBoxedMap(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 | ## MultipartformdataSomeProp public static class MultipartformdataSomeProp
@@ -287,20 +294,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Multipartformdata0BoxedString -public static final class Multipartformdata0BoxedString
+public record Multipartformdata0BoxedString
implements [Multipartformdata0Boxed](#multipartformdata0boxed) -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 | | --------------------------- | | Multipartformdata0BoxedString(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 | ## Multipartformdata0 public static class Multipartformdata0
diff --git a/samples/client/petstore/java/docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md b/samples/client/petstore/java/docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md index de2fa7343c5..aca503bfcd7 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md +++ b/samples/client/petstore/java/docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md @@ -11,16 +11,16 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed)
abstract sealed validated payload class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](#applicationxwwwformurlencodedschema1)
schema class | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder)
builder for Map payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap)
output class for Map payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedParam2Boxed](#applicationxwwwformurlencodedparam2boxed)
abstract sealed validated payload class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedParam2BoxedString](#applicationxwwwformurlencodedparam2boxedstring)
boxed class to store validated String payloads | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedParam2Boxed](#applicationxwwwformurlencodedparam2boxed)
abstract sealed validated payload class | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedParam2BoxedString](#applicationxwwwformurlencodedparam2boxedstring)
boxed class to store validated String payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedParam2](#applicationxwwwformurlencodedparam2)
schema class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedParamBoxed](#applicationxwwwformurlencodedparamboxed)
abstract sealed validated payload class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedParamBoxedString](#applicationxwwwformurlencodedparamboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedParamBoxed](#applicationxwwwformurlencodedparamboxed)
abstract sealed validated payload class | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedParamBoxedString](#applicationxwwwformurlencodedparamboxedstring)
boxed class to store validated String payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedParam](#applicationxwwwformurlencodedparam)
schema class | ## ApplicationxwwwformurlencodedSchema1Boxed @@ -31,20 +31,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedSchema1BoxedMap -public static final class ApplicationxwwwformurlencodedSchema1BoxedMap
+public record ApplicationxwwwformurlencodedSchema1BoxedMap
implements [ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed) -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 | | --------------------------- | | ApplicationxwwwformurlencodedSchema1BoxedMap([ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | data
validated payload | +| [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ApplicationxwwwformurlencodedSchema1 public static class ApplicationxwwwformurlencodedSchema1
@@ -189,20 +190,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedParam2BoxedString -public static final class ApplicationxwwwformurlencodedParam2BoxedString
+public record ApplicationxwwwformurlencodedParam2BoxedString
implements [ApplicationxwwwformurlencodedParam2Boxed](#applicationxwwwformurlencodedparam2boxed) -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 | | --------------------------- | | ApplicationxwwwformurlencodedParam2BoxedString(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 | ## ApplicationxwwwformurlencodedParam2 public static class ApplicationxwwwformurlencodedParam2
@@ -226,20 +228,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedParamBoxedString -public static final class ApplicationxwwwformurlencodedParamBoxedString
+public record ApplicationxwwwformurlencodedParamBoxedString
implements [ApplicationxwwwformurlencodedParamBoxed](#applicationxwwwformurlencodedparamboxed) -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 | | --------------------------- | | ApplicationxwwwformurlencodedParamBoxedString(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 | ## ApplicationxwwwformurlencodedParam public static class ApplicationxwwwformurlencodedParam
diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md index b31ddb37738..4c2b7cc3da7 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md +++ b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md @@ -9,13 +9,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed)
abstract sealed validated payload class | -| static class | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedVoid](#applicationjsoncharsetutf8schema1boxedvoid)
boxed class to store validated null payloads | -| static class | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedBoolean](#applicationjsoncharsetutf8schema1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedNumber](#applicationjsoncharsetutf8schema1boxednumber)
boxed class to store validated Number payloads | -| static class | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedString](#applicationjsoncharsetutf8schema1boxedstring)
boxed class to store validated String payloads | -| static class | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedList](#applicationjsoncharsetutf8schema1boxedlist)
boxed class to store validated List payloads | -| static class | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedMap](#applicationjsoncharsetutf8schema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed)
abstract sealed validated payload class | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedVoid](#applicationjsoncharsetutf8schema1boxedvoid)
boxed class to store validated null payloads | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedBoolean](#applicationjsoncharsetutf8schema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedNumber](#applicationjsoncharsetutf8schema1boxednumber)
boxed class to store validated Number payloads | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedString](#applicationjsoncharsetutf8schema1boxedstring)
boxed class to store validated String payloads | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedList](#applicationjsoncharsetutf8schema1boxedlist)
boxed class to store validated List payloads | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedMap](#applicationjsoncharsetutf8schema1boxedmap)
boxed class to store validated Map payloads | | static class | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1](#applicationjsoncharsetutf8schema1)
schema class | ## Applicationjsoncharsetutf8Schema1Boxed @@ -31,100 +31,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## Applicationjsoncharsetutf8Schema1BoxedVoid -public static final class Applicationjsoncharsetutf8Schema1BoxedVoid
+public record Applicationjsoncharsetutf8Schema1BoxedVoid
implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) -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 | | --------------------------- | | Applicationjsoncharsetutf8Schema1BoxedVoid(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 | ## Applicationjsoncharsetutf8Schema1BoxedBoolean -public static final class Applicationjsoncharsetutf8Schema1BoxedBoolean
+public record Applicationjsoncharsetutf8Schema1BoxedBoolean
implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) -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 | | --------------------------- | | Applicationjsoncharsetutf8Schema1BoxedBoolean(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 | ## Applicationjsoncharsetutf8Schema1BoxedNumber -public static final class Applicationjsoncharsetutf8Schema1BoxedNumber
+public record Applicationjsoncharsetutf8Schema1BoxedNumber
implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) -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 | | --------------------------- | | Applicationjsoncharsetutf8Schema1BoxedNumber(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 | ## Applicationjsoncharsetutf8Schema1BoxedString -public static final class Applicationjsoncharsetutf8Schema1BoxedString
+public record Applicationjsoncharsetutf8Schema1BoxedString
implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) -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 | | --------------------------- | | Applicationjsoncharsetutf8Schema1BoxedString(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 | ## Applicationjsoncharsetutf8Schema1BoxedList -public static final class Applicationjsoncharsetutf8Schema1BoxedList
+public record Applicationjsoncharsetutf8Schema1BoxedList
implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) -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 | | --------------------------- | | Applicationjsoncharsetutf8Schema1BoxedList(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 | ## Applicationjsoncharsetutf8Schema1BoxedMap -public static final class Applicationjsoncharsetutf8Schema1BoxedMap
+public record Applicationjsoncharsetutf8Schema1BoxedMap
implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) -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 | | --------------------------- | | Applicationjsoncharsetutf8Schema1BoxedMap(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 | ## Applicationjsoncharsetutf8Schema1 public static class Applicationjsoncharsetutf8Schema1
diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/response200/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/response200/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md index b31ddb37738..4c2b7cc3da7 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/response200/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md +++ b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/response200/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md @@ -9,13 +9,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed)
abstract sealed validated payload class | -| static class | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedVoid](#applicationjsoncharsetutf8schema1boxedvoid)
boxed class to store validated null payloads | -| static class | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedBoolean](#applicationjsoncharsetutf8schema1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedNumber](#applicationjsoncharsetutf8schema1boxednumber)
boxed class to store validated Number payloads | -| static class | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedString](#applicationjsoncharsetutf8schema1boxedstring)
boxed class to store validated String payloads | -| static class | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedList](#applicationjsoncharsetutf8schema1boxedlist)
boxed class to store validated List payloads | -| static class | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedMap](#applicationjsoncharsetutf8schema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed)
abstract sealed validated payload class | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedVoid](#applicationjsoncharsetutf8schema1boxedvoid)
boxed class to store validated null payloads | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedBoolean](#applicationjsoncharsetutf8schema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedNumber](#applicationjsoncharsetutf8schema1boxednumber)
boxed class to store validated Number payloads | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedString](#applicationjsoncharsetutf8schema1boxedstring)
boxed class to store validated String payloads | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedList](#applicationjsoncharsetutf8schema1boxedlist)
boxed class to store validated List payloads | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedMap](#applicationjsoncharsetutf8schema1boxedmap)
boxed class to store validated Map payloads | | static class | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1](#applicationjsoncharsetutf8schema1)
schema class | ## Applicationjsoncharsetutf8Schema1Boxed @@ -31,100 +31,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## Applicationjsoncharsetutf8Schema1BoxedVoid -public static final class Applicationjsoncharsetutf8Schema1BoxedVoid
+public record Applicationjsoncharsetutf8Schema1BoxedVoid
implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) -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 | | --------------------------- | | Applicationjsoncharsetutf8Schema1BoxedVoid(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 | ## Applicationjsoncharsetutf8Schema1BoxedBoolean -public static final class Applicationjsoncharsetutf8Schema1BoxedBoolean
+public record Applicationjsoncharsetutf8Schema1BoxedBoolean
implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) -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 | | --------------------------- | | Applicationjsoncharsetutf8Schema1BoxedBoolean(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 | ## Applicationjsoncharsetutf8Schema1BoxedNumber -public static final class Applicationjsoncharsetutf8Schema1BoxedNumber
+public record Applicationjsoncharsetutf8Schema1BoxedNumber
implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) -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 | | --------------------------- | | Applicationjsoncharsetutf8Schema1BoxedNumber(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 | ## Applicationjsoncharsetutf8Schema1BoxedString -public static final class Applicationjsoncharsetutf8Schema1BoxedString
+public record Applicationjsoncharsetutf8Schema1BoxedString
implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) -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 | | --------------------------- | | Applicationjsoncharsetutf8Schema1BoxedString(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 | ## Applicationjsoncharsetutf8Schema1BoxedList -public static final class Applicationjsoncharsetutf8Schema1BoxedList
+public record Applicationjsoncharsetutf8Schema1BoxedList
implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) -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 | | --------------------------- | | Applicationjsoncharsetutf8Schema1BoxedList(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 | ## Applicationjsoncharsetutf8Schema1BoxedMap -public static final class Applicationjsoncharsetutf8Schema1BoxedMap
+public record Applicationjsoncharsetutf8Schema1BoxedMap
implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) -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 | | --------------------------- | | Applicationjsoncharsetutf8Schema1BoxedMap(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 | ## Applicationjsoncharsetutf8Schema1 public static class Applicationjsoncharsetutf8Schema1
diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index db6b1223efb..7ac37707aff 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -11,13 +11,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | | static class | [ApplicationjsonSchema.ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder)
builder for Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchemaMap](#applicationjsonschemamap)
output class for Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonABoxed](#applicationjsonaboxed)
abstract sealed validated payload class | -| static class | [ApplicationjsonSchema.ApplicationjsonABoxedString](#applicationjsonaboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonABoxed](#applicationjsonaboxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonABoxedString](#applicationjsonaboxedstring)
boxed class to store validated String payloads | | static class | [ApplicationjsonSchema.ApplicationjsonA](#applicationjsona)
schema class | ## ApplicationjsonSchema1Boxed @@ -28,20 +28,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedMap -public static final class ApplicationjsonSchema1BoxedMap
+public record ApplicationjsonSchema1BoxedMap
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedMap([ApplicationjsonSchemaMap](#applicationjsonschemamap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchemaMap](#applicationjsonschemamap) | data
validated payload | +| [ApplicationjsonSchemaMap](#applicationjsonschemamap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
@@ -134,20 +135,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationjsonABoxedString -public static final class ApplicationjsonABoxedString
+public record ApplicationjsonABoxedString
implements [ApplicationjsonABoxed](#applicationjsonaboxed) -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 | | --------------------------- | | ApplicationjsonABoxedString(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 | ## ApplicationjsonA public static class ApplicationjsonA
diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md index 27800c1f28f..8aadd09cff1 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -11,13 +11,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
abstract sealed validated payload class | -| static class | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
abstract sealed validated payload class | +| record | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | | static class | [MultipartformdataSchema.MultipartformdataSchema1](#multipartformdataschema1)
schema class | | static class | [MultipartformdataSchema.MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder)
builder for Map payloads | | static class | [MultipartformdataSchema.MultipartformdataSchemaMap](#multipartformdataschemamap)
output class for Map payloads | -| static class | [MultipartformdataSchema.MultipartformdataBBoxed](#multipartformdatabboxed)
abstract sealed validated payload class | -| static class | [MultipartformdataSchema.MultipartformdataBBoxedString](#multipartformdatabboxedstring)
boxed class to store validated String payloads | +| sealed interface | [MultipartformdataSchema.MultipartformdataBBoxed](#multipartformdatabboxed)
abstract sealed validated payload class | +| record | [MultipartformdataSchema.MultipartformdataBBoxedString](#multipartformdatabboxedstring)
boxed class to store validated String payloads | | static class | [MultipartformdataSchema.MultipartformdataB](#multipartformdatab)
schema class | ## MultipartformdataSchema1Boxed @@ -28,20 +28,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## MultipartformdataSchema1BoxedMap -public static final class MultipartformdataSchema1BoxedMap
+public record MultipartformdataSchema1BoxedMap
implements [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) -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 | | --------------------------- | | MultipartformdataSchema1BoxedMap([MultipartformdataSchemaMap](#multipartformdataschemamap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [MultipartformdataSchemaMap](#multipartformdataschemamap) | data
validated payload | +| [MultipartformdataSchemaMap](#multipartformdataschemamap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## MultipartformdataSchema1 public static class MultipartformdataSchema1
@@ -134,20 +135,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## MultipartformdataBBoxedString -public static final class MultipartformdataBBoxedString
+public record MultipartformdataBBoxedString
implements [MultipartformdataBBoxed](#multipartformdatabboxed) -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 | | --------------------------- | | MultipartformdataBBoxedString(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 | ## MultipartformdataB public static class MultipartformdataB
diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md index 433318e61e6..caf46ad5b86 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -9,13 +9,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | ## ApplicationjsonSchema1Boxed @@ -31,100 +31,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedVoid -public static final class ApplicationjsonSchema1BoxedVoid
+public record ApplicationjsonSchema1BoxedVoid
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedVoid(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 | ## ApplicationjsonSchema1BoxedBoolean -public static final class ApplicationjsonSchema1BoxedBoolean
+public record ApplicationjsonSchema1BoxedBoolean
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedBoolean(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 | ## ApplicationjsonSchema1BoxedNumber -public static final class ApplicationjsonSchema1BoxedNumber
+public record ApplicationjsonSchema1BoxedNumber
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedNumber(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 | ## ApplicationjsonSchema1BoxedString -public static final class ApplicationjsonSchema1BoxedString
+public record ApplicationjsonSchema1BoxedString
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedString(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 | ## ApplicationjsonSchema1BoxedList -public static final class ApplicationjsonSchema1BoxedList
+public record ApplicationjsonSchema1BoxedList
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedList(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 | ## ApplicationjsonSchema1BoxedMap -public static final class ApplicationjsonSchema1BoxedMap
+public record ApplicationjsonSchema1BoxedMap
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedMap(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 | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md index 433318e61e6..caf46ad5b86 100644 --- a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -9,13 +9,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | ## ApplicationjsonSchema1Boxed @@ -31,100 +31,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedVoid -public static final class ApplicationjsonSchema1BoxedVoid
+public record ApplicationjsonSchema1BoxedVoid
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedVoid(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 | ## ApplicationjsonSchema1BoxedBoolean -public static final class ApplicationjsonSchema1BoxedBoolean
+public record ApplicationjsonSchema1BoxedBoolean
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedBoolean(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 | ## ApplicationjsonSchema1BoxedNumber -public static final class ApplicationjsonSchema1BoxedNumber
+public record ApplicationjsonSchema1BoxedNumber
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedNumber(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 | ## ApplicationjsonSchema1BoxedString -public static final class ApplicationjsonSchema1BoxedString
+public record ApplicationjsonSchema1BoxedString
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedString(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 | ## ApplicationjsonSchema1BoxedList -public static final class ApplicationjsonSchema1BoxedList
+public record ApplicationjsonSchema1BoxedList
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedList(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 | ## ApplicationjsonSchema1BoxedMap -public static final class ApplicationjsonSchema1BoxedMap
+public record ApplicationjsonSchema1BoxedMap
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedMap(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 | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/response202/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/response202/content/applicationjson/ApplicationjsonSchema.md index 433318e61e6..caf46ad5b86 100644 --- a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/response202/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/response202/content/applicationjson/ApplicationjsonSchema.md @@ -9,13 +9,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | ## ApplicationjsonSchema1Boxed @@ -31,100 +31,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedVoid -public static final class ApplicationjsonSchema1BoxedVoid
+public record ApplicationjsonSchema1BoxedVoid
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedVoid(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 | ## ApplicationjsonSchema1BoxedBoolean -public static final class ApplicationjsonSchema1BoxedBoolean
+public record ApplicationjsonSchema1BoxedBoolean
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedBoolean(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 | ## ApplicationjsonSchema1BoxedNumber -public static final class ApplicationjsonSchema1BoxedNumber
+public record ApplicationjsonSchema1BoxedNumber
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedNumber(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 | ## ApplicationjsonSchema1BoxedString -public static final class ApplicationjsonSchema1BoxedString
+public record ApplicationjsonSchema1BoxedString
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedString(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 | ## ApplicationjsonSchema1BoxedList -public static final class ApplicationjsonSchema1BoxedList
+public record ApplicationjsonSchema1BoxedList
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedList(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 | ## ApplicationjsonSchema1BoxedMap -public static final class ApplicationjsonSchema1BoxedMap
+public record ApplicationjsonSchema1BoxedMap
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedMap(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 | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md index 433318e61e6..caf46ad5b86 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -9,13 +9,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | ## ApplicationjsonSchema1Boxed @@ -31,100 +31,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedVoid -public static final class ApplicationjsonSchema1BoxedVoid
+public record ApplicationjsonSchema1BoxedVoid
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedVoid(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 | ## ApplicationjsonSchema1BoxedBoolean -public static final class ApplicationjsonSchema1BoxedBoolean
+public record ApplicationjsonSchema1BoxedBoolean
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedBoolean(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 | ## ApplicationjsonSchema1BoxedNumber -public static final class ApplicationjsonSchema1BoxedNumber
+public record ApplicationjsonSchema1BoxedNumber
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedNumber(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 | ## ApplicationjsonSchema1BoxedString -public static final class ApplicationjsonSchema1BoxedString
+public record ApplicationjsonSchema1BoxedString
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedString(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 | ## ApplicationjsonSchema1BoxedList -public static final class ApplicationjsonSchema1BoxedList
+public record ApplicationjsonSchema1BoxedList
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedList(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 | ## ApplicationjsonSchema1BoxedMap -public static final class ApplicationjsonSchema1BoxedMap
+public record ApplicationjsonSchema1BoxedMap
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedMap(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 | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
diff --git a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md index 15dd87fb8ae..cf28ed6f5dc 100644 --- a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md @@ -11,13 +11,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | -| static class | [Schema0.Schema01BoxedMap](#schema01boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| record | [Schema0.Schema01BoxedMap](#schema01boxedmap)
boxed class to store validated Map payloads | | static class | [Schema0.Schema01](#schema01)
schema class | | static class | [Schema0.SchemaMapBuilder0](#schemamapbuilder0)
builder for Map payloads | | static class | [Schema0.SchemaMap0](#schemamap0)
output class for Map payloads | -| static class | [Schema0.Keyword0Boxed](#keyword0boxed)
abstract sealed validated payload class | -| static class | [Schema0.Keyword0BoxedString](#keyword0boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema0.Keyword0Boxed](#keyword0boxed)
abstract sealed validated payload class | +| record | [Schema0.Keyword0BoxedString](#keyword0boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Keyword0](#keyword0)
schema class | ## Schema01Boxed @@ -28,20 +28,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema01BoxedMap -public static final class Schema01BoxedMap
+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([SchemaMap0](#schemamap0) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaMap0](#schemamap0) | data
validated payload | +| [SchemaMap0](#schemamap0) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Schema01 public static class Schema01
@@ -134,20 +135,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Keyword0BoxedString -public static final class Keyword0BoxedString
+public record Keyword0BoxedString
implements [Keyword0Boxed](#keyword0boxed) -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 | | --------------------------- | | Keyword0BoxedString(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 | ## Keyword0 public static class Keyword0
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.md index e79a3033b40..edd11b6e174 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | -| static class | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema01BoxedString -public static final class Schema01BoxedString
+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 | ## Schema01 public static class Schema01
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.md index 607c39645ec..8dfdf8085c2 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema1.Schema11Boxed](#schema11boxed)
abstract sealed validated payload class | -| static class | [Schema1.Schema11BoxedString](#schema11boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
abstract sealed validated payload class | +| record | [Schema1.Schema11BoxedString](#schema11boxedstring)
boxed class to store validated String payloads | | static class | [Schema1.Schema11](#schema11)
schema class | ## Schema11Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema11BoxedString -public static final class Schema11BoxedString
+public record Schema11BoxedString
implements [Schema11Boxed](#schema11boxed) -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 | | --------------------------- | | Schema11BoxedString(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 | ## Schema11 public static class Schema11
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.md index 937222d4009..55946c80a4d 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema10.Schema101Boxed](#schema101boxed)
abstract sealed validated payload class | -| static class | [Schema10.Schema101BoxedString](#schema101boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema10.Schema101Boxed](#schema101boxed)
abstract sealed validated payload class | +| record | [Schema10.Schema101BoxedString](#schema101boxedstring)
boxed class to store validated String payloads | | static class | [Schema10.Schema101](#schema101)
schema class | ## Schema101Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema101BoxedString -public static final class Schema101BoxedString
+public record Schema101BoxedString
implements [Schema101Boxed](#schema101boxed) -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 | | --------------------------- | | Schema101BoxedString(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 | ## Schema101 public static class Schema101
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.md index 73a64b1248c..d9178c0a9c3 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema11.Schema111Boxed](#schema111boxed)
abstract sealed validated payload class | -| static class | [Schema11.Schema111BoxedString](#schema111boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema11.Schema111Boxed](#schema111boxed)
abstract sealed validated payload class | +| record | [Schema11.Schema111BoxedString](#schema111boxedstring)
boxed class to store validated String payloads | | static class | [Schema11.Schema111](#schema111)
schema class | ## Schema111Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema111BoxedString -public static final class Schema111BoxedString
+public record Schema111BoxedString
implements [Schema111Boxed](#schema111boxed) -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 | | --------------------------- | | Schema111BoxedString(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 | ## Schema111 public static class Schema111
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.md index c2495c4212f..dd5a920b7d0 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema12.Schema121Boxed](#schema121boxed)
abstract sealed validated payload class | -| static class | [Schema12.Schema121BoxedString](#schema121boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema12.Schema121Boxed](#schema121boxed)
abstract sealed validated payload class | +| record | [Schema12.Schema121BoxedString](#schema121boxedstring)
boxed class to store validated String payloads | | static class | [Schema12.Schema121](#schema121)
schema class | ## Schema121Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema121BoxedString -public static final class Schema121BoxedString
+public record Schema121BoxedString
implements [Schema121Boxed](#schema121boxed) -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 | | --------------------------- | | Schema121BoxedString(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 | ## Schema121 public static class Schema121
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.md index 75354f84b4c..1c6bacab892 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema13.Schema131Boxed](#schema131boxed)
abstract sealed validated payload class | -| static class | [Schema13.Schema131BoxedString](#schema131boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema13.Schema131Boxed](#schema131boxed)
abstract sealed validated payload class | +| record | [Schema13.Schema131BoxedString](#schema131boxedstring)
boxed class to store validated String payloads | | static class | [Schema13.Schema131](#schema131)
schema class | ## Schema131Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema131BoxedString -public static final class Schema131BoxedString
+public record Schema131BoxedString
implements [Schema131Boxed](#schema131boxed) -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 | | --------------------------- | | Schema131BoxedString(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 | ## Schema131 public static class Schema131
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.md index ea4947dad58..d4d8d699290 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema14.Schema141Boxed](#schema141boxed)
abstract sealed validated payload class | -| static class | [Schema14.Schema141BoxedString](#schema141boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema14.Schema141Boxed](#schema141boxed)
abstract sealed validated payload class | +| record | [Schema14.Schema141BoxedString](#schema141boxedstring)
boxed class to store validated String payloads | | static class | [Schema14.Schema141](#schema141)
schema class | ## Schema141Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema141BoxedString -public static final class Schema141BoxedString
+public record Schema141BoxedString
implements [Schema141Boxed](#schema141boxed) -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 | | --------------------------- | | Schema141BoxedString(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 | ## Schema141 public static class Schema141
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.md index c5e5e4720d4..0fb518cb220 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema15.Schema151Boxed](#schema151boxed)
abstract sealed validated payload class | -| static class | [Schema15.Schema151BoxedString](#schema151boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema15.Schema151Boxed](#schema151boxed)
abstract sealed validated payload class | +| record | [Schema15.Schema151BoxedString](#schema151boxedstring)
boxed class to store validated String payloads | | static class | [Schema15.Schema151](#schema151)
schema class | ## Schema151Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema151BoxedString -public static final class Schema151BoxedString
+public record Schema151BoxedString
implements [Schema151Boxed](#schema151boxed) -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 | | --------------------------- | | Schema151BoxedString(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 | ## Schema151 public static class Schema151
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.md index 262188d7571..43156272c0a 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema16.Schema161Boxed](#schema161boxed)
abstract sealed validated payload class | -| static class | [Schema16.Schema161BoxedString](#schema161boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema16.Schema161Boxed](#schema161boxed)
abstract sealed validated payload class | +| record | [Schema16.Schema161BoxedString](#schema161boxedstring)
boxed class to store validated String payloads | | static class | [Schema16.Schema161](#schema161)
schema class | ## Schema161Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema161BoxedString -public static final class Schema161BoxedString
+public record Schema161BoxedString
implements [Schema161Boxed](#schema161boxed) -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 | | --------------------------- | | Schema161BoxedString(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 | ## Schema161 public static class Schema161
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.md index 4bf16f39ef1..e6b02c44507 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema17.Schema171Boxed](#schema171boxed)
abstract sealed validated payload class | -| static class | [Schema17.Schema171BoxedString](#schema171boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema17.Schema171Boxed](#schema171boxed)
abstract sealed validated payload class | +| record | [Schema17.Schema171BoxedString](#schema171boxedstring)
boxed class to store validated String payloads | | static class | [Schema17.Schema171](#schema171)
schema class | ## Schema171Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema171BoxedString -public static final class Schema171BoxedString
+public record Schema171BoxedString
implements [Schema171Boxed](#schema171boxed) -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 | | --------------------------- | | Schema171BoxedString(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 | ## Schema171 public static class Schema171
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.md index 39feb8d7eea..dda78b4f943 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema18.Schema181Boxed](#schema181boxed)
abstract sealed validated payload class | -| static class | [Schema18.Schema181BoxedString](#schema181boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema18.Schema181Boxed](#schema181boxed)
abstract sealed validated payload class | +| record | [Schema18.Schema181BoxedString](#schema181boxedstring)
boxed class to store validated String payloads | | static class | [Schema18.Schema181](#schema181)
schema class | ## Schema181Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema181BoxedString -public static final class Schema181BoxedString
+public record Schema181BoxedString
implements [Schema181Boxed](#schema181boxed) -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 | | --------------------------- | | Schema181BoxedString(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 | ## Schema181 public static class Schema181
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.md index 4da86d445e1..8659bbfaba4 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema2.Schema21Boxed](#schema21boxed)
abstract sealed validated payload class | -| static class | [Schema2.Schema21BoxedString](#schema21boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema2.Schema21Boxed](#schema21boxed)
abstract sealed validated payload class | +| record | [Schema2.Schema21BoxedString](#schema21boxedstring)
boxed class to store validated String payloads | | static class | [Schema2.Schema21](#schema21)
schema class | ## Schema21Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema21BoxedString -public static final class Schema21BoxedString
+public record Schema21BoxedString
implements [Schema21Boxed](#schema21boxed) -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 | | --------------------------- | | Schema21BoxedString(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 | ## Schema21 public static class Schema21
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.md index a2e7bcc797b..bdadc9c7c7d 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema3.Schema31Boxed](#schema31boxed)
abstract sealed validated payload class | -| static class | [Schema3.Schema31BoxedString](#schema31boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema3.Schema31Boxed](#schema31boxed)
abstract sealed validated payload class | +| record | [Schema3.Schema31BoxedString](#schema31boxedstring)
boxed class to store validated String payloads | | static class | [Schema3.Schema31](#schema31)
schema class | ## Schema31Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema31BoxedString -public static final class Schema31BoxedString
+public record Schema31BoxedString
implements [Schema31Boxed](#schema31boxed) -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 | | --------------------------- | | Schema31BoxedString(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 | ## Schema31 public static class Schema31
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.md index 1bbc8aa9e32..d2bf7b6ce26 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema4.Schema41Boxed](#schema41boxed)
abstract sealed validated payload class | -| static class | [Schema4.Schema41BoxedString](#schema41boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema4.Schema41Boxed](#schema41boxed)
abstract sealed validated payload class | +| record | [Schema4.Schema41BoxedString](#schema41boxedstring)
boxed class to store validated String payloads | | static class | [Schema4.Schema41](#schema41)
schema class | ## Schema41Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema41BoxedString -public static final class Schema41BoxedString
+public record Schema41BoxedString
implements [Schema41Boxed](#schema41boxed) -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 | | --------------------------- | | Schema41BoxedString(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 | ## Schema41 public static class Schema41
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.md index 8d30577a22c..21b6266247e 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema5.Schema51Boxed](#schema51boxed)
abstract sealed validated payload class | -| static class | [Schema5.Schema51BoxedString](#schema51boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema5.Schema51Boxed](#schema51boxed)
abstract sealed validated payload class | +| record | [Schema5.Schema51BoxedString](#schema51boxedstring)
boxed class to store validated String payloads | | static class | [Schema5.Schema51](#schema51)
schema class | ## Schema51Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema51BoxedString -public static final class Schema51BoxedString
+public record Schema51BoxedString
implements [Schema51Boxed](#schema51boxed) -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 | | --------------------------- | | Schema51BoxedString(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 | ## Schema51 public static class Schema51
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.md index 593f9e4c9fa..4e31aa7b290 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema6.Schema61Boxed](#schema61boxed)
abstract sealed validated payload class | -| static class | [Schema6.Schema61BoxedString](#schema61boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema6.Schema61Boxed](#schema61boxed)
abstract sealed validated payload class | +| record | [Schema6.Schema61BoxedString](#schema61boxedstring)
boxed class to store validated String payloads | | static class | [Schema6.Schema61](#schema61)
schema class | ## Schema61Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema61BoxedString -public static final class Schema61BoxedString
+public record Schema61BoxedString
implements [Schema61Boxed](#schema61boxed) -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 | | --------------------------- | | Schema61BoxedString(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 | ## Schema61 public static class Schema61
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.md index 4257b32b59b..3d149d8735b 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema7.Schema71Boxed](#schema71boxed)
abstract sealed validated payload class | -| static class | [Schema7.Schema71BoxedString](#schema71boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema7.Schema71Boxed](#schema71boxed)
abstract sealed validated payload class | +| record | [Schema7.Schema71BoxedString](#schema71boxedstring)
boxed class to store validated String payloads | | static class | [Schema7.Schema71](#schema71)
schema class | ## Schema71Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema71BoxedString -public static final class Schema71BoxedString
+public record Schema71BoxedString
implements [Schema71Boxed](#schema71boxed) -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 | | --------------------------- | | Schema71BoxedString(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 | ## Schema71 public static class Schema71
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.md index 377193dbbce..d2a5cb3c545 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema8.Schema81Boxed](#schema81boxed)
abstract sealed validated payload class | -| static class | [Schema8.Schema81BoxedString](#schema81boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema8.Schema81Boxed](#schema81boxed)
abstract sealed validated payload class | +| record | [Schema8.Schema81BoxedString](#schema81boxedstring)
boxed class to store validated String payloads | | static class | [Schema8.Schema81](#schema81)
schema class | ## Schema81Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema81BoxedString -public static final class Schema81BoxedString
+public record Schema81BoxedString
implements [Schema81Boxed](#schema81boxed) -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 | | --------------------------- | | Schema81BoxedString(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 | ## Schema81 public static class Schema81
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.md index b65616a946b..fff0935b07c 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema9.Schema91Boxed](#schema91boxed)
abstract sealed validated payload class | -| static class | [Schema9.Schema91BoxedString](#schema91boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema9.Schema91Boxed](#schema91boxed)
abstract sealed validated payload class | +| record | [Schema9.Schema91BoxedString](#schema91boxedstring)
boxed class to store validated String payloads | | static class | [Schema9.Schema91](#schema91)
schema class | ## Schema91Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema91BoxedString -public static final class Schema91BoxedString
+public record Schema91BoxedString
implements [Schema91Boxed](#schema91boxed) -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 | | --------------------------- | | Schema91BoxedString(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 | ## Schema91 public static class Schema91
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index 433318e61e6..caf46ad5b86 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -9,13 +9,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | ## ApplicationjsonSchema1Boxed @@ -31,100 +31,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedVoid -public static final class ApplicationjsonSchema1BoxedVoid
+public record ApplicationjsonSchema1BoxedVoid
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedVoid(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 | ## ApplicationjsonSchema1BoxedBoolean -public static final class ApplicationjsonSchema1BoxedBoolean
+public record ApplicationjsonSchema1BoxedBoolean
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedBoolean(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 | ## ApplicationjsonSchema1BoxedNumber -public static final class ApplicationjsonSchema1BoxedNumber
+public record ApplicationjsonSchema1BoxedNumber
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedNumber(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 | ## ApplicationjsonSchema1BoxedString -public static final class ApplicationjsonSchema1BoxedString
+public record ApplicationjsonSchema1BoxedString
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedString(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 | ## ApplicationjsonSchema1BoxedList -public static final class ApplicationjsonSchema1BoxedList
+public record ApplicationjsonSchema1BoxedList
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedList(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 | ## ApplicationjsonSchema1BoxedMap -public static final class ApplicationjsonSchema1BoxedMap
+public record ApplicationjsonSchema1BoxedMap
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedMap(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 | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md index 433318e61e6..caf46ad5b86 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -9,13 +9,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | ## ApplicationjsonSchema1Boxed @@ -31,100 +31,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedVoid -public static final class ApplicationjsonSchema1BoxedVoid
+public record ApplicationjsonSchema1BoxedVoid
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedVoid(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 | ## ApplicationjsonSchema1BoxedBoolean -public static final class ApplicationjsonSchema1BoxedBoolean
+public record ApplicationjsonSchema1BoxedBoolean
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedBoolean(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 | ## ApplicationjsonSchema1BoxedNumber -public static final class ApplicationjsonSchema1BoxedNumber
+public record ApplicationjsonSchema1BoxedNumber
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedNumber(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 | ## ApplicationjsonSchema1BoxedString -public static final class ApplicationjsonSchema1BoxedString
+public record ApplicationjsonSchema1BoxedString
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedString(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 | ## ApplicationjsonSchema1BoxedList -public static final class ApplicationjsonSchema1BoxedList
+public record ApplicationjsonSchema1BoxedList
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedList(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 | ## ApplicationjsonSchema1BoxedMap -public static final class ApplicationjsonSchema1BoxedMap
+public record ApplicationjsonSchema1BoxedMap
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedMap(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 | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md index 20f8a324f76..6eb07974455 100644 --- a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md +++ b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1Boxed](#applicationxpemfileschema1boxed)
abstract sealed validated payload class | -| static class | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1BoxedString](#applicationxpemfileschema1boxedstring)
boxed class to store validated String payloads | +| sealed interface | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1Boxed](#applicationxpemfileschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1BoxedString](#applicationxpemfileschema1boxedstring)
boxed class to store validated String payloads | | static class | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1](#applicationxpemfileschema1)
schema class | ## ApplicationxpemfileSchema1Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationxpemfileSchema1BoxedString -public static final class ApplicationxpemfileSchema1BoxedString
+public record ApplicationxpemfileSchema1BoxedString
implements [ApplicationxpemfileSchema1Boxed](#applicationxpemfileschema1boxed) -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 | | --------------------------- | | ApplicationxpemfileSchema1BoxedString(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 | ## ApplicationxpemfileSchema1 public static class ApplicationxpemfileSchema1
diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/response200/content/applicationxpemfile/ApplicationxpemfileSchema.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/response200/content/applicationxpemfile/ApplicationxpemfileSchema.md index 20f8a324f76..6eb07974455 100644 --- a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/response200/content/applicationxpemfile/ApplicationxpemfileSchema.md +++ b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/response200/content/applicationxpemfile/ApplicationxpemfileSchema.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1Boxed](#applicationxpemfileschema1boxed)
abstract sealed validated payload class | -| static class | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1BoxedString](#applicationxpemfileschema1boxedstring)
boxed class to store validated String payloads | +| sealed interface | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1Boxed](#applicationxpemfileschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1BoxedString](#applicationxpemfileschema1boxedstring)
boxed class to store validated String payloads | | static class | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1](#applicationxpemfileschema1)
schema class | ## ApplicationxpemfileSchema1Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationxpemfileSchema1BoxedString -public static final class ApplicationxpemfileSchema1BoxedString
+public record ApplicationxpemfileSchema1BoxedString
implements [ApplicationxpemfileSchema1Boxed](#applicationxpemfileschema1boxed) -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 | | --------------------------- | | ApplicationxpemfileSchema1BoxedString(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 | ## ApplicationxpemfileSchema1 public static class ApplicationxpemfileSchema1
diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.md index 943c96babd7..bf274deae04 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | -| static class | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| record | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema01BoxedNumber -public static final class Schema01BoxedNumber
+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 | ## Schema01 public static class Schema01
diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md index 8c83b12bdab..e453120ac59 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -11,15 +11,15 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
abstract sealed validated payload class | -| static class | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
abstract sealed validated payload class | +| record | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | | static class | [MultipartformdataSchema.MultipartformdataSchema1](#multipartformdataschema1)
schema class | | static class | [MultipartformdataSchema.MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder)
builder for Map payloads | | static class | [MultipartformdataSchema.MultipartformdataSchemaMap](#multipartformdataschemamap)
output class for Map payloads | -| static class | [MultipartformdataSchema.MultipartformdataRequiredFileBoxed](#multipartformdatarequiredfileboxed)
abstract sealed validated payload class | +| sealed interface | [MultipartformdataSchema.MultipartformdataRequiredFileBoxed](#multipartformdatarequiredfileboxed)
abstract sealed validated payload class | | static class | [MultipartformdataSchema.MultipartformdataRequiredFile](#multipartformdatarequiredfile)
schema class | -| static class | [MultipartformdataSchema.MultipartformdataAdditionalMetadataBoxed](#multipartformdataadditionalmetadataboxed)
abstract sealed validated payload class | -| static class | [MultipartformdataSchema.MultipartformdataAdditionalMetadataBoxedString](#multipartformdataadditionalmetadataboxedstring)
boxed class to store validated String payloads | +| sealed interface | [MultipartformdataSchema.MultipartformdataAdditionalMetadataBoxed](#multipartformdataadditionalmetadataboxed)
abstract sealed validated payload class | +| record | [MultipartformdataSchema.MultipartformdataAdditionalMetadataBoxedString](#multipartformdataadditionalmetadataboxedstring)
boxed class to store validated String payloads | | static class | [MultipartformdataSchema.MultipartformdataAdditionalMetadata](#multipartformdataadditionalmetadata)
schema class | ## MultipartformdataSchema1Boxed @@ -30,20 +30,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## MultipartformdataSchema1BoxedMap -public static final class MultipartformdataSchema1BoxedMap
+public record MultipartformdataSchema1BoxedMap
implements [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) -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 | | --------------------------- | | MultipartformdataSchema1BoxedMap([MultipartformdataSchemaMap](#multipartformdataschemamap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [MultipartformdataSchemaMap](#multipartformdataschemamap) | data
validated payload | +| [MultipartformdataSchemaMap](#multipartformdataschemamap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## MultipartformdataSchema1 public static class MultipartformdataSchema1
@@ -171,20 +172,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## MultipartformdataAdditionalMetadataBoxedString -public static final class MultipartformdataAdditionalMetadataBoxedString
+public record MultipartformdataAdditionalMetadataBoxedString
implements [MultipartformdataAdditionalMetadataBoxed](#multipartformdataadditionalmetadataboxed) -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 | | --------------------------- | | MultipartformdataAdditionalMetadataBoxedString(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 | ## MultipartformdataAdditionalMetadata public static class MultipartformdataAdditionalMetadata
diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.md index 465a9703bff..a8719d7bec6 100644 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.md @@ -9,13 +9,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | -| static class | [Schema0.Schema01BoxedVoid](#schema01boxedvoid)
boxed class to store validated null payloads | -| static class | [Schema0.Schema01BoxedBoolean](#schema01boxedboolean)
boxed class to store validated boolean payloads | -| static class | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | -| static class | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | -| static class | [Schema0.Schema01BoxedList](#schema01boxedlist)
boxed class to store validated List payloads | -| static class | [Schema0.Schema01BoxedMap](#schema01boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| record | [Schema0.Schema01BoxedVoid](#schema01boxedvoid)
boxed class to store validated null payloads | +| record | [Schema0.Schema01BoxedBoolean](#schema01boxedboolean)
boxed class to store validated boolean payloads | +| record | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | +| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | +| record | [Schema0.Schema01BoxedList](#schema01boxedlist)
boxed class to store validated List payloads | +| record | [Schema0.Schema01BoxedMap](#schema01boxedmap)
boxed class to store validated Map payloads | | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed @@ -31,100 +31,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema01BoxedVoid -public static final class Schema01BoxedVoid
+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
+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
+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
+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
+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
+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
diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md index 433318e61e6..caf46ad5b86 100644 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -9,13 +9,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | ## ApplicationjsonSchema1Boxed @@ -31,100 +31,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedVoid -public static final class ApplicationjsonSchema1BoxedVoid
+public record ApplicationjsonSchema1BoxedVoid
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedVoid(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 | ## ApplicationjsonSchema1BoxedBoolean -public static final class ApplicationjsonSchema1BoxedBoolean
+public record ApplicationjsonSchema1BoxedBoolean
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedBoolean(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 | ## ApplicationjsonSchema1BoxedNumber -public static final class ApplicationjsonSchema1BoxedNumber
+public record ApplicationjsonSchema1BoxedNumber
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedNumber(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 | ## ApplicationjsonSchema1BoxedString -public static final class ApplicationjsonSchema1BoxedString
+public record ApplicationjsonSchema1BoxedString
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedString(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 | ## ApplicationjsonSchema1BoxedList -public static final class ApplicationjsonSchema1BoxedList
+public record ApplicationjsonSchema1BoxedList
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedList(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 | ## ApplicationjsonSchema1BoxedMap -public static final class ApplicationjsonSchema1BoxedMap
+public record ApplicationjsonSchema1BoxedMap
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedMap(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 | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md index 1d3156c2a3f..eea70c9dff3 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md @@ -11,13 +11,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | -| static class | [Schema0.Schema01BoxedList](#schema01boxedlist)
boxed class to store validated List payloads | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| record | [Schema0.Schema01BoxedList](#schema01boxedlist)
boxed class to store validated List payloads | | static class | [Schema0.Schema01](#schema01)
schema class | | static class | [Schema0.SchemaListBuilder0](#schemalistbuilder0)
builder for List payloads | | static class | [Schema0.SchemaList0](#schemalist0)
output class for List payloads | -| static class | [Schema0.Items0Boxed](#items0boxed)
abstract sealed validated payload class | -| static class | [Schema0.Items0BoxedString](#items0boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema0.Items0Boxed](#items0boxed)
abstract sealed validated payload class | +| record | [Schema0.Items0BoxedString](#items0boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Items0](#items0)
schema class | ## Schema01Boxed @@ -28,20 +28,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema01BoxedList -public static final class Schema01BoxedList
+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([SchemaList0](#schemalist0) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaList0](#schemalist0) | data
validated payload | +| [SchemaList0](#schemalist0) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Schema01 public static class Schema01
@@ -124,20 +125,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Items0BoxedString -public static final class Items0BoxedString
+public record Items0BoxedString
implements [Items0Boxed](#items0boxed) -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 | | --------------------------- | | Items0BoxedString(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 | ## Items0 public static class Items0
diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md index 14697ec11db..ad246234a47 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md @@ -11,13 +11,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema1.Schema11Boxed](#schema11boxed)
abstract sealed validated payload class | -| static class | [Schema1.Schema11BoxedList](#schema11boxedlist)
boxed class to store validated List payloads | +| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
abstract sealed validated payload class | +| record | [Schema1.Schema11BoxedList](#schema11boxedlist)
boxed class to store validated List payloads | | static class | [Schema1.Schema11](#schema11)
schema class | | static class | [Schema1.SchemaListBuilder1](#schemalistbuilder1)
builder for List payloads | | static class | [Schema1.SchemaList1](#schemalist1)
output class for List payloads | -| static class | [Schema1.Items1Boxed](#items1boxed)
abstract sealed validated payload class | -| static class | [Schema1.Items1BoxedString](#items1boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema1.Items1Boxed](#items1boxed)
abstract sealed validated payload class | +| record | [Schema1.Items1BoxedString](#items1boxedstring)
boxed class to store validated String payloads | | static class | [Schema1.Items1](#items1)
schema class | ## Schema11Boxed @@ -28,20 +28,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema11BoxedList -public static final class Schema11BoxedList
+public record Schema11BoxedList
implements [Schema11Boxed](#schema11boxed) -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 | | --------------------------- | | Schema11BoxedList([SchemaList1](#schemalist1) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaList1](#schemalist1) | data
validated payload | +| [SchemaList1](#schemalist1) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Schema11 public static class Schema11
@@ -124,20 +125,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Items1BoxedString -public static final class Items1BoxedString
+public record Items1BoxedString
implements [Items1Boxed](#items1boxed) -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 | | --------------------------- | | Items1BoxedString(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 | ## Items1 public static class Items1
diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md index 9aa46d5d353..9bd08d0539b 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md @@ -11,13 +11,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema2.Schema21Boxed](#schema21boxed)
abstract sealed validated payload class | -| static class | [Schema2.Schema21BoxedList](#schema21boxedlist)
boxed class to store validated List payloads | +| sealed interface | [Schema2.Schema21Boxed](#schema21boxed)
abstract sealed validated payload class | +| record | [Schema2.Schema21BoxedList](#schema21boxedlist)
boxed class to store validated List payloads | | static class | [Schema2.Schema21](#schema21)
schema class | | static class | [Schema2.SchemaListBuilder2](#schemalistbuilder2)
builder for List payloads | | static class | [Schema2.SchemaList2](#schemalist2)
output class for List payloads | -| static class | [Schema2.Items2Boxed](#items2boxed)
abstract sealed validated payload class | -| static class | [Schema2.Items2BoxedString](#items2boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema2.Items2Boxed](#items2boxed)
abstract sealed validated payload class | +| record | [Schema2.Items2BoxedString](#items2boxedstring)
boxed class to store validated String payloads | | static class | [Schema2.Items2](#items2)
schema class | ## Schema21Boxed @@ -28,20 +28,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema21BoxedList -public static final class Schema21BoxedList
+public record Schema21BoxedList
implements [Schema21Boxed](#schema21boxed) -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 | | --------------------------- | | Schema21BoxedList([SchemaList2](#schemalist2) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaList2](#schemalist2) | data
validated payload | +| [SchemaList2](#schemalist2) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Schema21 public static class Schema21
@@ -124,20 +125,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Items2BoxedString -public static final class Items2BoxedString
+public record Items2BoxedString
implements [Items2Boxed](#items2boxed) -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 | | --------------------------- | | Items2BoxedString(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 | ## Items2 public static class Items2
diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md index 2da5d56ee72..92b4390f4f1 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md @@ -11,13 +11,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema3.Schema31Boxed](#schema31boxed)
abstract sealed validated payload class | -| static class | [Schema3.Schema31BoxedList](#schema31boxedlist)
boxed class to store validated List payloads | +| sealed interface | [Schema3.Schema31Boxed](#schema31boxed)
abstract sealed validated payload class | +| record | [Schema3.Schema31BoxedList](#schema31boxedlist)
boxed class to store validated List payloads | | static class | [Schema3.Schema31](#schema31)
schema class | | static class | [Schema3.SchemaListBuilder3](#schemalistbuilder3)
builder for List payloads | | static class | [Schema3.SchemaList3](#schemalist3)
output class for List payloads | -| static class | [Schema3.Items3Boxed](#items3boxed)
abstract sealed validated payload class | -| static class | [Schema3.Items3BoxedString](#items3boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema3.Items3Boxed](#items3boxed)
abstract sealed validated payload class | +| record | [Schema3.Items3BoxedString](#items3boxedstring)
boxed class to store validated String payloads | | static class | [Schema3.Items3](#items3)
schema class | ## Schema31Boxed @@ -28,20 +28,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema31BoxedList -public static final class Schema31BoxedList
+public record Schema31BoxedList
implements [Schema31Boxed](#schema31boxed) -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 | | --------------------------- | | Schema31BoxedList([SchemaList3](#schemalist3) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaList3](#schemalist3) | data
validated payload | +| [SchemaList3](#schemalist3) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Schema31 public static class Schema31
@@ -124,20 +125,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Items3BoxedString -public static final class Items3BoxedString
+public record Items3BoxedString
implements [Items3Boxed](#items3boxed) -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 | | --------------------------- | | Items3BoxedString(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 | ## Items3 public static class Items3
diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md index 274158c68e6..94e909f6d29 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md @@ -11,13 +11,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema4.Schema41Boxed](#schema41boxed)
abstract sealed validated payload class | -| static class | [Schema4.Schema41BoxedList](#schema41boxedlist)
boxed class to store validated List payloads | +| sealed interface | [Schema4.Schema41Boxed](#schema41boxed)
abstract sealed validated payload class | +| record | [Schema4.Schema41BoxedList](#schema41boxedlist)
boxed class to store validated List payloads | | static class | [Schema4.Schema41](#schema41)
schema class | | static class | [Schema4.SchemaListBuilder4](#schemalistbuilder4)
builder for List payloads | | static class | [Schema4.SchemaList4](#schemalist4)
output class for List payloads | -| static class | [Schema4.Items4Boxed](#items4boxed)
abstract sealed validated payload class | -| static class | [Schema4.Items4BoxedString](#items4boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema4.Items4Boxed](#items4boxed)
abstract sealed validated payload class | +| record | [Schema4.Items4BoxedString](#items4boxedstring)
boxed class to store validated String payloads | | static class | [Schema4.Items4](#items4)
schema class | ## Schema41Boxed @@ -28,20 +28,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema41BoxedList -public static final class Schema41BoxedList
+public record Schema41BoxedList
implements [Schema41Boxed](#schema41boxed) -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 | | --------------------------- | | Schema41BoxedList([SchemaList4](#schemalist4) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaList4](#schemalist4) | data
validated payload | +| [SchemaList4](#schemalist4) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Schema41 public static class Schema41
@@ -124,20 +125,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Items4BoxedString -public static final class Items4BoxedString
+public record Items4BoxedString
implements [Items4Boxed](#items4boxed) -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 | | --------------------------- | | Items4BoxedString(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 | ## Items4 public static class Items4
diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.md index 24de577cd87..02f8ac3a2ac 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.md @@ -9,7 +9,7 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1Boxed](#applicationoctetstreamschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1Boxed](#applicationoctetstreamschema1boxed)
abstract sealed validated payload class | | static class | [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1](#applicationoctetstreamschema1)
schema class | ## ApplicationoctetstreamSchema1Boxed diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/response200/content/applicationoctetstream/ApplicationoctetstreamSchema.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/response200/content/applicationoctetstream/ApplicationoctetstreamSchema.md index 0365d8952b2..65fa580db40 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/response200/content/applicationoctetstream/ApplicationoctetstreamSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/response200/content/applicationoctetstream/ApplicationoctetstreamSchema.md @@ -9,7 +9,7 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1Boxed](#applicationoctetstreamschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1Boxed](#applicationoctetstreamschema1boxed)
abstract sealed validated payload class | | static class | [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1](#applicationoctetstreamschema1)
schema class | ## ApplicationoctetstreamSchema1Boxed diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md index 9b57b2b1536..07b356fb404 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -11,15 +11,15 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
abstract sealed validated payload class | -| static class | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
abstract sealed validated payload class | +| record | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | | static class | [MultipartformdataSchema.MultipartformdataSchema1](#multipartformdataschema1)
schema class | | static class | [MultipartformdataSchema.MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder)
builder for Map payloads | | static class | [MultipartformdataSchema.MultipartformdataSchemaMap](#multipartformdataschemamap)
output class for Map payloads | -| static class | [MultipartformdataSchema.MultipartformdataFileBoxed](#multipartformdatafileboxed)
abstract sealed validated payload class | +| sealed interface | [MultipartformdataSchema.MultipartformdataFileBoxed](#multipartformdatafileboxed)
abstract sealed validated payload class | | static class | [MultipartformdataSchema.MultipartformdataFile](#multipartformdatafile)
schema class | -| static class | [MultipartformdataSchema.MultipartformdataAdditionalMetadataBoxed](#multipartformdataadditionalmetadataboxed)
abstract sealed validated payload class | -| static class | [MultipartformdataSchema.MultipartformdataAdditionalMetadataBoxedString](#multipartformdataadditionalmetadataboxedstring)
boxed class to store validated String payloads | +| sealed interface | [MultipartformdataSchema.MultipartformdataAdditionalMetadataBoxed](#multipartformdataadditionalmetadataboxed)
abstract sealed validated payload class | +| record | [MultipartformdataSchema.MultipartformdataAdditionalMetadataBoxedString](#multipartformdataadditionalmetadataboxedstring)
boxed class to store validated String payloads | | static class | [MultipartformdataSchema.MultipartformdataAdditionalMetadata](#multipartformdataadditionalmetadata)
schema class | ## MultipartformdataSchema1Boxed @@ -30,20 +30,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## MultipartformdataSchema1BoxedMap -public static final class MultipartformdataSchema1BoxedMap
+public record MultipartformdataSchema1BoxedMap
implements [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) -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 | | --------------------------- | | MultipartformdataSchema1BoxedMap([MultipartformdataSchemaMap](#multipartformdataschemamap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [MultipartformdataSchemaMap](#multipartformdataschemamap) | data
validated payload | +| [MultipartformdataSchemaMap](#multipartformdataschemamap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## MultipartformdataSchema1 public static class MultipartformdataSchema1
@@ -171,20 +172,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## MultipartformdataAdditionalMetadataBoxedString -public static final class MultipartformdataAdditionalMetadataBoxedString
+public record MultipartformdataAdditionalMetadataBoxedString
implements [MultipartformdataAdditionalMetadataBoxed](#multipartformdataadditionalmetadataboxed) -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 | | --------------------------- | | MultipartformdataAdditionalMetadataBoxedString(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 | ## MultipartformdataAdditionalMetadata public static class MultipartformdataAdditionalMetadata
diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md index b7e6609ea23..c7c01fb15ed 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -13,17 +13,17 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
abstract sealed validated payload class | -| static class | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
abstract sealed validated payload class | +| record | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | | static class | [MultipartformdataSchema.MultipartformdataSchema1](#multipartformdataschema1)
schema class | | static class | [MultipartformdataSchema.MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder)
builder for Map payloads | | static class | [MultipartformdataSchema.MultipartformdataSchemaMap](#multipartformdataschemamap)
output class for Map payloads | -| static class | [MultipartformdataSchema.MultipartformdataFilesBoxed](#multipartformdatafilesboxed)
abstract sealed validated payload class | -| static class | [MultipartformdataSchema.MultipartformdataFilesBoxedList](#multipartformdatafilesboxedlist)
boxed class to store validated List payloads | +| sealed interface | [MultipartformdataSchema.MultipartformdataFilesBoxed](#multipartformdatafilesboxed)
abstract sealed validated payload class | +| record | [MultipartformdataSchema.MultipartformdataFilesBoxedList](#multipartformdatafilesboxedlist)
boxed class to store validated List payloads | | static class | [MultipartformdataSchema.MultipartformdataFiles](#multipartformdatafiles)
schema class | | static class | [MultipartformdataSchema.MultipartformdataFilesListBuilder](#multipartformdatafileslistbuilder)
builder for List payloads | | static class | [MultipartformdataSchema.MultipartformdataFilesList](#multipartformdatafileslist)
output class for List payloads | -| static class | [MultipartformdataSchema.MultipartformdataItemsBoxed](#multipartformdataitemsboxed)
abstract sealed validated payload class | +| sealed interface | [MultipartformdataSchema.MultipartformdataItemsBoxed](#multipartformdataitemsboxed)
abstract sealed validated payload class | | static class | [MultipartformdataSchema.MultipartformdataItems](#multipartformdataitems)
schema class | ## MultipartformdataSchema1Boxed @@ -34,20 +34,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## MultipartformdataSchema1BoxedMap -public static final class MultipartformdataSchema1BoxedMap
+public record MultipartformdataSchema1BoxedMap
implements [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) -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 | | --------------------------- | | MultipartformdataSchema1BoxedMap([MultipartformdataSchemaMap](#multipartformdataschemamap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [MultipartformdataSchemaMap](#multipartformdataschemamap) | data
validated payload | +| [MultipartformdataSchemaMap](#multipartformdataschemamap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## MultipartformdataSchema1 public static class MultipartformdataSchema1
@@ -143,20 +144,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## MultipartformdataFilesBoxedList -public static final class MultipartformdataFilesBoxedList
+public record MultipartformdataFilesBoxedList
implements [MultipartformdataFilesBoxed](#multipartformdatafilesboxed) -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 | | --------------------------- | | MultipartformdataFilesBoxedList([MultipartformdataFilesList](#multipartformdatafileslist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [MultipartformdataFilesList](#multipartformdatafileslist) | data
validated payload | +| [MultipartformdataFilesList](#multipartformdatafileslist) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## MultipartformdataFiles public static class MultipartformdataFiles
diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response1xx/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response1xx/content/applicationjson/ApplicationjsonSchema.md index 433318e61e6..caf46ad5b86 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response1xx/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response1xx/content/applicationjson/ApplicationjsonSchema.md @@ -9,13 +9,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | ## ApplicationjsonSchema1Boxed @@ -31,100 +31,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedVoid -public static final class ApplicationjsonSchema1BoxedVoid
+public record ApplicationjsonSchema1BoxedVoid
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedVoid(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 | ## ApplicationjsonSchema1BoxedBoolean -public static final class ApplicationjsonSchema1BoxedBoolean
+public record ApplicationjsonSchema1BoxedBoolean
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedBoolean(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 | ## ApplicationjsonSchema1BoxedNumber -public static final class ApplicationjsonSchema1BoxedNumber
+public record ApplicationjsonSchema1BoxedNumber
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedNumber(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 | ## ApplicationjsonSchema1BoxedString -public static final class ApplicationjsonSchema1BoxedString
+public record ApplicationjsonSchema1BoxedString
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedString(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 | ## ApplicationjsonSchema1BoxedList -public static final class ApplicationjsonSchema1BoxedList
+public record ApplicationjsonSchema1BoxedList
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedList(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 | ## ApplicationjsonSchema1BoxedMap -public static final class ApplicationjsonSchema1BoxedMap
+public record ApplicationjsonSchema1BoxedMap
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedMap(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 | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md index 433318e61e6..caf46ad5b86 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -9,13 +9,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | ## ApplicationjsonSchema1Boxed @@ -31,100 +31,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedVoid -public static final class ApplicationjsonSchema1BoxedVoid
+public record ApplicationjsonSchema1BoxedVoid
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedVoid(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 | ## ApplicationjsonSchema1BoxedBoolean -public static final class ApplicationjsonSchema1BoxedBoolean
+public record ApplicationjsonSchema1BoxedBoolean
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedBoolean(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 | ## ApplicationjsonSchema1BoxedNumber -public static final class ApplicationjsonSchema1BoxedNumber
+public record ApplicationjsonSchema1BoxedNumber
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedNumber(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 | ## ApplicationjsonSchema1BoxedString -public static final class ApplicationjsonSchema1BoxedString
+public record ApplicationjsonSchema1BoxedString
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedString(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 | ## ApplicationjsonSchema1BoxedList -public static final class ApplicationjsonSchema1BoxedList
+public record ApplicationjsonSchema1BoxedList
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedList(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 | ## ApplicationjsonSchema1BoxedMap -public static final class ApplicationjsonSchema1BoxedMap
+public record ApplicationjsonSchema1BoxedMap
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedMap(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 | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response2xx/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response2xx/content/applicationjson/ApplicationjsonSchema.md index 433318e61e6..caf46ad5b86 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response2xx/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response2xx/content/applicationjson/ApplicationjsonSchema.md @@ -9,13 +9,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | ## ApplicationjsonSchema1Boxed @@ -31,100 +31,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedVoid -public static final class ApplicationjsonSchema1BoxedVoid
+public record ApplicationjsonSchema1BoxedVoid
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedVoid(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 | ## ApplicationjsonSchema1BoxedBoolean -public static final class ApplicationjsonSchema1BoxedBoolean
+public record ApplicationjsonSchema1BoxedBoolean
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedBoolean(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 | ## ApplicationjsonSchema1BoxedNumber -public static final class ApplicationjsonSchema1BoxedNumber
+public record ApplicationjsonSchema1BoxedNumber
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedNumber(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 | ## ApplicationjsonSchema1BoxedString -public static final class ApplicationjsonSchema1BoxedString
+public record ApplicationjsonSchema1BoxedString
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedString(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 | ## ApplicationjsonSchema1BoxedList -public static final class ApplicationjsonSchema1BoxedList
+public record ApplicationjsonSchema1BoxedList
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedList(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 | ## ApplicationjsonSchema1BoxedMap -public static final class ApplicationjsonSchema1BoxedMap
+public record ApplicationjsonSchema1BoxedMap
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedMap(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 | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response3xx/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response3xx/content/applicationjson/ApplicationjsonSchema.md index 433318e61e6..caf46ad5b86 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response3xx/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response3xx/content/applicationjson/ApplicationjsonSchema.md @@ -9,13 +9,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | ## ApplicationjsonSchema1Boxed @@ -31,100 +31,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedVoid -public static final class ApplicationjsonSchema1BoxedVoid
+public record ApplicationjsonSchema1BoxedVoid
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedVoid(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 | ## ApplicationjsonSchema1BoxedBoolean -public static final class ApplicationjsonSchema1BoxedBoolean
+public record ApplicationjsonSchema1BoxedBoolean
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedBoolean(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 | ## ApplicationjsonSchema1BoxedNumber -public static final class ApplicationjsonSchema1BoxedNumber
+public record ApplicationjsonSchema1BoxedNumber
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedNumber(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 | ## ApplicationjsonSchema1BoxedString -public static final class ApplicationjsonSchema1BoxedString
+public record ApplicationjsonSchema1BoxedString
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedString(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 | ## ApplicationjsonSchema1BoxedList -public static final class ApplicationjsonSchema1BoxedList
+public record ApplicationjsonSchema1BoxedList
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedList(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 | ## ApplicationjsonSchema1BoxedMap -public static final class ApplicationjsonSchema1BoxedMap
+public record ApplicationjsonSchema1BoxedMap
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedMap(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 | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response4xx/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response4xx/content/applicationjson/ApplicationjsonSchema.md index 433318e61e6..caf46ad5b86 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response4xx/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response4xx/content/applicationjson/ApplicationjsonSchema.md @@ -9,13 +9,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | ## ApplicationjsonSchema1Boxed @@ -31,100 +31,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedVoid -public static final class ApplicationjsonSchema1BoxedVoid
+public record ApplicationjsonSchema1BoxedVoid
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedVoid(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 | ## ApplicationjsonSchema1BoxedBoolean -public static final class ApplicationjsonSchema1BoxedBoolean
+public record ApplicationjsonSchema1BoxedBoolean
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedBoolean(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 | ## ApplicationjsonSchema1BoxedNumber -public static final class ApplicationjsonSchema1BoxedNumber
+public record ApplicationjsonSchema1BoxedNumber
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedNumber(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 | ## ApplicationjsonSchema1BoxedString -public static final class ApplicationjsonSchema1BoxedString
+public record ApplicationjsonSchema1BoxedString
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedString(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 | ## ApplicationjsonSchema1BoxedList -public static final class ApplicationjsonSchema1BoxedList
+public record ApplicationjsonSchema1BoxedList
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedList(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 | ## ApplicationjsonSchema1BoxedMap -public static final class ApplicationjsonSchema1BoxedMap
+public record ApplicationjsonSchema1BoxedMap
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedMap(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 | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response5xx/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response5xx/content/applicationjson/ApplicationjsonSchema.md index 433318e61e6..caf46ad5b86 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response5xx/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response5xx/content/applicationjson/ApplicationjsonSchema.md @@ -9,13 +9,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | ## ApplicationjsonSchema1Boxed @@ -31,100 +31,106 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedVoid -public static final class ApplicationjsonSchema1BoxedVoid
+public record ApplicationjsonSchema1BoxedVoid
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedVoid(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 | ## ApplicationjsonSchema1BoxedBoolean -public static final class ApplicationjsonSchema1BoxedBoolean
+public record ApplicationjsonSchema1BoxedBoolean
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedBoolean(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 | ## ApplicationjsonSchema1BoxedNumber -public static final class ApplicationjsonSchema1BoxedNumber
+public record ApplicationjsonSchema1BoxedNumber
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedNumber(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 | ## ApplicationjsonSchema1BoxedString -public static final class ApplicationjsonSchema1BoxedString
+public record ApplicationjsonSchema1BoxedString
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedString(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 | ## ApplicationjsonSchema1BoxedList -public static final class ApplicationjsonSchema1BoxedList
+public record ApplicationjsonSchema1BoxedList
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedList(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 | ## ApplicationjsonSchema1BoxedMap -public static final class ApplicationjsonSchema1BoxedMap
+public record ApplicationjsonSchema1BoxedMap
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedMap(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 | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
diff --git a/samples/client/petstore/java/docs/paths/foo/get/responses/responsedefault/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/foo/get/responses/responsedefault/content/applicationjson/ApplicationjsonSchema.md index 41aa3206002..e8c142952e6 100644 --- a/samples/client/petstore/java/docs/paths/foo/get/responses/responsedefault/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/foo/get/responses/responsedefault/content/applicationjson/ApplicationjsonSchema.md @@ -11,8 +11,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | | static class | [ApplicationjsonSchema.ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder)
builder for Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchemaMap](#applicationjsonschemamap)
output class for Map payloads | @@ -25,20 +25,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedMap -public static final class ApplicationjsonSchema1BoxedMap
+public record ApplicationjsonSchema1BoxedMap
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedMap([ApplicationjsonSchemaMap](#applicationjsonschemamap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchemaMap](#applicationjsonschemamap) | data
validated payload | +| [ApplicationjsonSchemaMap](#applicationjsonschemamap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/parameters/parameter0/Schema0.md index 09c6bc726bd..9613e74286f 100644 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/get/parameters/parameter0/Schema0.md @@ -12,13 +12,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | -| static class | [Schema0.Schema01BoxedList](#schema01boxedlist)
boxed class to store validated List payloads | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| record | [Schema0.Schema01BoxedList](#schema01boxedlist)
boxed class to store validated List payloads | | static class | [Schema0.Schema01](#schema01)
schema class | | static class | [Schema0.SchemaListBuilder0](#schemalistbuilder0)
builder for List payloads | | static class | [Schema0.SchemaList0](#schemalist0)
output class for List payloads | -| static class | [Schema0.Items0Boxed](#items0boxed)
abstract sealed validated payload class | -| static class | [Schema0.Items0BoxedString](#items0boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema0.Items0Boxed](#items0boxed)
abstract sealed validated payload class | +| record | [Schema0.Items0BoxedString](#items0boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Items0](#items0)
schema class | | enum | [Schema0.StringItemsEnums0](#stringitemsenums0)
String enum | @@ -30,20 +30,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema01BoxedList -public static final class Schema01BoxedList
+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([SchemaList0](#schemalist0) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaList0](#schemalist0) | data
validated payload | +| [SchemaList0](#schemalist0) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Schema01 public static class Schema01
@@ -127,20 +128,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Items0BoxedString -public static final class Items0BoxedString
+public record Items0BoxedString
implements [Items0Boxed](#items0boxed) -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 | | --------------------------- | | Items0BoxedString(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 | ## Items0 public static class Items0
diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petfindbytags/get/parameters/parameter0/Schema0.md index 1d3156c2a3f..eea70c9dff3 100644 --- a/samples/client/petstore/java/docs/paths/petfindbytags/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/petfindbytags/get/parameters/parameter0/Schema0.md @@ -11,13 +11,13 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | -| static class | [Schema0.Schema01BoxedList](#schema01boxedlist)
boxed class to store validated List payloads | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| record | [Schema0.Schema01BoxedList](#schema01boxedlist)
boxed class to store validated List payloads | | static class | [Schema0.Schema01](#schema01)
schema class | | static class | [Schema0.SchemaListBuilder0](#schemalistbuilder0)
builder for List payloads | | static class | [Schema0.SchemaList0](#schemalist0)
output class for List payloads | -| static class | [Schema0.Items0Boxed](#items0boxed)
abstract sealed validated payload class | -| static class | [Schema0.Items0BoxedString](#items0boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema0.Items0Boxed](#items0boxed)
abstract sealed validated payload class | +| record | [Schema0.Items0BoxedString](#items0boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Items0](#items0)
schema class | ## Schema01Boxed @@ -28,20 +28,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema01BoxedList -public static final class Schema01BoxedList
+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([SchemaList0](#schemalist0) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaList0](#schemalist0) | data
validated payload | +| [SchemaList0](#schemalist0) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## Schema01 public static class Schema01
@@ -124,20 +125,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Items0BoxedString -public static final class Items0BoxedString
+public record Items0BoxedString
implements [Items0Boxed](#items0boxed) -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 | | --------------------------- | | Items0BoxedString(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 | ## Items0 public static class Items0
diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter0/Schema0.md index e79a3033b40..edd11b6e174 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter0/Schema0.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | -| static class | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema01BoxedString -public static final class Schema01BoxedString
+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 | ## Schema01 public static class Schema01
diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter1/Schema1.md index ea42842bb6d..09dc2d30238 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter1/Schema1.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema1.Schema11Boxed](#schema11boxed)
abstract sealed validated payload class | -| static class | [Schema1.Schema11BoxedNumber](#schema11boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
abstract sealed validated payload class | +| record | [Schema1.Schema11BoxedNumber](#schema11boxednumber)
boxed class to store validated Number payloads | | static class | [Schema1.Schema11](#schema11)
schema class | ## Schema11Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema11BoxedNumber -public static final class Schema11BoxedNumber
+public record Schema11BoxedNumber
implements [Schema11Boxed](#schema11boxed) -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 | | --------------------------- | | Schema11BoxedNumber(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 | ## Schema11 public static class Schema11
diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petpetid/get/parameters/parameter0/Schema0.md index 943c96babd7..bf274deae04 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/petpetid/get/parameters/parameter0/Schema0.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | -| static class | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| record | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema01BoxedNumber -public static final class Schema01BoxedNumber
+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 | ## Schema01 public static class Schema01
diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petpetid/post/parameters/parameter0/Schema0.md index 943c96babd7..bf274deae04 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/post/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/petpetid/post/parameters/parameter0/Schema0.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | -| static class | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| record | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema01BoxedNumber -public static final class Schema01BoxedNumber
+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 | ## Schema01 public static class Schema01
diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md b/samples/client/petstore/java/docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md index 6d6d7f60ad1..40ed78fabf5 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md +++ b/samples/client/petstore/java/docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md @@ -11,16 +11,16 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed)
abstract sealed validated payload class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](#applicationxwwwformurlencodedschema1)
schema class | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder)
builder for Map payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap)
output class for Map payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedStatusBoxed](#applicationxwwwformurlencodedstatusboxed)
abstract sealed validated payload class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedStatusBoxedString](#applicationxwwwformurlencodedstatusboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedStatusBoxed](#applicationxwwwformurlencodedstatusboxed)
abstract sealed validated payload class | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedStatusBoxedString](#applicationxwwwformurlencodedstatusboxedstring)
boxed class to store validated String payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedStatus](#applicationxwwwformurlencodedstatus)
schema class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedNameBoxed](#applicationxwwwformurlencodednameboxed)
abstract sealed validated payload class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedNameBoxedString](#applicationxwwwformurlencodednameboxedstring)
boxed class to store validated String payloads | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedNameBoxed](#applicationxwwwformurlencodednameboxed)
abstract sealed validated payload class | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedNameBoxedString](#applicationxwwwformurlencodednameboxedstring)
boxed class to store validated String payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedName](#applicationxwwwformurlencodedname)
schema class | ## ApplicationxwwwformurlencodedSchema1Boxed @@ -31,20 +31,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedSchema1BoxedMap -public static final class ApplicationxwwwformurlencodedSchema1BoxedMap
+public record ApplicationxwwwformurlencodedSchema1BoxedMap
implements [ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed) -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 | | --------------------------- | | ApplicationxwwwformurlencodedSchema1BoxedMap([ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | data
validated payload | +| [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## ApplicationxwwwformurlencodedSchema1 public static class ApplicationxwwwformurlencodedSchema1
@@ -141,20 +142,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedStatusBoxedString -public static final class ApplicationxwwwformurlencodedStatusBoxedString
+public record ApplicationxwwwformurlencodedStatusBoxedString
implements [ApplicationxwwwformurlencodedStatusBoxed](#applicationxwwwformurlencodedstatusboxed) -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 | | --------------------------- | | ApplicationxwwwformurlencodedStatusBoxedString(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 | ## ApplicationxwwwformurlencodedStatus public static class ApplicationxwwwformurlencodedStatus
@@ -178,20 +180,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationxwwwformurlencodedNameBoxedString -public static final class ApplicationxwwwformurlencodedNameBoxedString
+public record ApplicationxwwwformurlencodedNameBoxedString
implements [ApplicationxwwwformurlencodedNameBoxed](#applicationxwwwformurlencodednameboxed) -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 | | --------------------------- | | ApplicationxwwwformurlencodedNameBoxedString(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 | ## ApplicationxwwwformurlencodedName public static class ApplicationxwwwformurlencodedName
diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md index 943c96babd7..bf274deae04 100644 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | -| static class | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| record | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema01BoxedNumber -public static final class Schema01BoxedNumber
+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 | ## Schema01 public static class Schema01
diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md index f9501439c15..b305da5422f 100644 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -11,15 +11,15 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
abstract sealed validated payload class | -| static class | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
abstract sealed validated payload class | +| record | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | | static class | [MultipartformdataSchema.MultipartformdataSchema1](#multipartformdataschema1)
schema class | | static class | [MultipartformdataSchema.MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder)
builder for Map payloads | | static class | [MultipartformdataSchema.MultipartformdataSchemaMap](#multipartformdataschemamap)
output class for Map payloads | -| static class | [MultipartformdataSchema.MultipartformdataFileBoxed](#multipartformdatafileboxed)
abstract sealed validated payload class | +| sealed interface | [MultipartformdataSchema.MultipartformdataFileBoxed](#multipartformdatafileboxed)
abstract sealed validated payload class | | static class | [MultipartformdataSchema.MultipartformdataFile](#multipartformdatafile)
schema class | -| static class | [MultipartformdataSchema.MultipartformdataAdditionalMetadataBoxed](#multipartformdataadditionalmetadataboxed)
abstract sealed validated payload class | -| static class | [MultipartformdataSchema.MultipartformdataAdditionalMetadataBoxedString](#multipartformdataadditionalmetadataboxedstring)
boxed class to store validated String payloads | +| sealed interface | [MultipartformdataSchema.MultipartformdataAdditionalMetadataBoxed](#multipartformdataadditionalmetadataboxed)
abstract sealed validated payload class | +| record | [MultipartformdataSchema.MultipartformdataAdditionalMetadataBoxedString](#multipartformdataadditionalmetadataboxedstring)
boxed class to store validated String payloads | | static class | [MultipartformdataSchema.MultipartformdataAdditionalMetadata](#multipartformdataadditionalmetadata)
schema class | ## MultipartformdataSchema1Boxed @@ -30,20 +30,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## MultipartformdataSchema1BoxedMap -public static final class MultipartformdataSchema1BoxedMap
+public record MultipartformdataSchema1BoxedMap
implements [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) -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 | | --------------------------- | | MultipartformdataSchema1BoxedMap([MultipartformdataSchemaMap](#multipartformdataschemamap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [MultipartformdataSchemaMap](#multipartformdataschemamap) | data
validated payload | +| [MultipartformdataSchemaMap](#multipartformdataschemamap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ## MultipartformdataSchema1 public static class MultipartformdataSchema1
@@ -155,20 +156,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## MultipartformdataAdditionalMetadataBoxedString -public static final class MultipartformdataAdditionalMetadataBoxedString
+public record MultipartformdataAdditionalMetadataBoxedString
implements [MultipartformdataAdditionalMetadataBoxed](#multipartformdataadditionalmetadataboxed) -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 | | --------------------------- | | MultipartformdataAdditionalMetadataBoxedString(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 | ## MultipartformdataAdditionalMetadata public static class MultipartformdataAdditionalMetadata
diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/storeorderorderid/delete/parameters/parameter0/Schema0.md index e79a3033b40..edd11b6e174 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/delete/parameters/parameter0/Schema0.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | -| static class | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema01BoxedString -public static final class Schema01BoxedString
+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 | ## Schema01 public static class Schema01
diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/parameters/parameter0/Schema0.md index 92f230dcb90..c38814dc8a0 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/get/parameters/parameter0/Schema0.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | -| static class | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| record | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema01BoxedNumber -public static final class Schema01BoxedNumber
+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 | ## Schema01 public static class Schema01
diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter0/Schema0.md index e79a3033b40..edd11b6e174 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter0/Schema0.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | -| static class | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Schema01](#schema01)
schema class | ## Schema01Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema01BoxedString -public static final class Schema01BoxedString
+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 | ## Schema01 public static class Schema01
diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter1/Schema1.md index 607c39645ec..8dfdf8085c2 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter1/Schema1.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Schema1.Schema11Boxed](#schema11boxed)
abstract sealed validated payload class | -| static class | [Schema1.Schema11BoxedString](#schema11boxedstring)
boxed class to store validated String payloads | +| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
abstract sealed validated payload class | +| record | [Schema1.Schema11BoxedString](#schema11boxedstring)
boxed class to store validated String payloads | | static class | [Schema1.Schema11](#schema11)
schema class | ## Schema11Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## Schema11BoxedString -public static final class Schema11BoxedString
+public record Schema11BoxedString
implements [Schema11Boxed](#schema11boxed) -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 | | --------------------------- | | Schema11BoxedString(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 | ## Schema11 public static class Schema11
diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md index 1981922da4b..f12069522bc 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | ## ApplicationjsonSchema1Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationjsonSchema1BoxedString -public static final class ApplicationjsonSchema1BoxedString
+public record ApplicationjsonSchema1BoxedString
implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) -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 | | --------------------------- | | ApplicationjsonSchema1BoxedString(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 | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md index 8f95e2ceecb..517df5edc3e 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ApplicationxmlSchema.ApplicationxmlSchema1Boxed](#applicationxmlschema1boxed)
abstract sealed validated payload class | -| static class | [ApplicationxmlSchema.ApplicationxmlSchema1BoxedString](#applicationxmlschema1boxedstring)
boxed class to store validated String payloads | +| sealed interface | [ApplicationxmlSchema.ApplicationxmlSchema1Boxed](#applicationxmlschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationxmlSchema.ApplicationxmlSchema1BoxedString](#applicationxmlschema1boxedstring)
boxed class to store validated String payloads | | static class | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | ## ApplicationxmlSchema1Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## ApplicationxmlSchema1BoxedString -public static final class ApplicationxmlSchema1BoxedString
+public record ApplicationxmlSchema1BoxedString
implements [ApplicationxmlSchema1Boxed](#applicationxmlschema1boxed) -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 | | --------------------------- | | ApplicationxmlSchema1BoxedString(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 | ## ApplicationxmlSchema1 public static class ApplicationxmlSchema1
diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/headers/xexpiresafter/XExpiresAfterSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/headers/xexpiresafter/XExpiresAfterSchema.md index 1eaec156000..346edda0574 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/headers/xexpiresafter/XExpiresAfterSchema.md +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/headers/xexpiresafter/XExpiresAfterSchema.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [XExpiresAfterSchema.XExpiresAfterSchema1Boxed](#xexpiresafterschema1boxed)
abstract sealed validated payload class | -| static class | [XExpiresAfterSchema.XExpiresAfterSchema1BoxedString](#xexpiresafterschema1boxedstring)
boxed class to store validated String payloads | +| sealed interface | [XExpiresAfterSchema.XExpiresAfterSchema1Boxed](#xexpiresafterschema1boxed)
abstract sealed validated payload class | +| record | [XExpiresAfterSchema.XExpiresAfterSchema1BoxedString](#xexpiresafterschema1boxedstring)
boxed class to store validated String payloads | | static class | [XExpiresAfterSchema.XExpiresAfterSchema1](#xexpiresafterschema1)
schema class | ## XExpiresAfterSchema1Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## XExpiresAfterSchema1BoxedString -public static final class XExpiresAfterSchema1BoxedString
+public record XExpiresAfterSchema1BoxedString
implements [XExpiresAfterSchema1Boxed](#xexpiresafterschema1boxed) -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 | | --------------------------- | | XExpiresAfterSchema1BoxedString(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 | ## XExpiresAfterSchema1 public static class XExpiresAfterSchema1
diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/headers/xratelimit/content/applicationjson/XRateLimitSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/headers/xratelimit/content/applicationjson/XRateLimitSchema.md index d2e064f6105..fd2a8448898 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/headers/xratelimit/content/applicationjson/XRateLimitSchema.md +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/headers/xratelimit/content/applicationjson/XRateLimitSchema.md @@ -9,8 +9,8 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [XRateLimitSchema.XRateLimitSchema1Boxed](#xratelimitschema1boxed)
abstract sealed validated payload class | -| static class | [XRateLimitSchema.XRateLimitSchema1BoxedNumber](#xratelimitschema1boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [XRateLimitSchema.XRateLimitSchema1Boxed](#xratelimitschema1boxed)
abstract sealed validated payload class | +| record | [XRateLimitSchema.XRateLimitSchema1BoxedNumber](#xratelimitschema1boxednumber)
boxed class to store validated Number payloads | | static class | [XRateLimitSchema.XRateLimitSchema1](#xratelimitschema1)
schema class | ## XRateLimitSchema1Boxed @@ -21,20 +21,21 @@ permits
sealed interface that stores validated payloads using boxed classes ## XRateLimitSchema1BoxedNumber -public static final class XRateLimitSchema1BoxedNumber
+public record XRateLimitSchema1BoxedNumber
implements [XRateLimitSchema1Boxed](#xratelimitschema1boxed) -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 | | --------------------------- | | XRateLimitSchema1BoxedNumber(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 | ## XRateLimitSchema1 public static class XRateLimitSchema1
diff --git a/samples/client/petstore/java/docs/servers/Server0.md b/samples/client/petstore/java/docs/servers/Server0.md index 7fb71d4025f..c34a377b455 100644 --- a/samples/client/petstore/java/docs/servers/Server0.md +++ b/samples/client/petstore/java/docs/servers/Server0.md @@ -33,26 +33,26 @@ A class that contains necessary nested ### Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Variables.Variables1Boxed](#variables1boxed)
abstract sealed validated payload class | -| static class | [Variables.Variables1BoxedMap](#variables1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Variables.Variables1Boxed](#variables1boxed)
abstract sealed validated payload class | +| record | [Variables.Variables1BoxedMap](#variables1boxedmap)
boxed class to store validated Map payloads | | static class | [Variables.Variables1](#variables1)
schema class | | static class | [Variables.VariablesMapBuilder](#variablesmapbuilder)
builder for Map payloads | | static class | [Variables.VariablesMap](#variablesmap)
output class for Map payloads | -| static class | [Variables.PortBoxed](#portboxed)
abstract sealed validated payload class | -| static class | [Variables.PortBoxedString](#portboxedstring)
boxed class to store validated String payloads | +| sealed interface | [Variables.PortBoxed](#portboxed)
abstract sealed validated payload class | +| record | [Variables.PortBoxedString](#portboxedstring)
boxed class to store validated String payloads | | static class | [Variables.Port](#port)
schema class | | enum | [Variables.StringPortEnums](#stringportenums)
String enum | -| static class | [Variables.ServerBoxed](#serverboxed)
abstract sealed validated payload class | -| static class | [Variables.ServerBoxedString](#serverboxedstring)
boxed class to store validated String payloads | +| sealed interface | [Variables.ServerBoxed](#serverboxed)
abstract sealed validated payload class | +| record | [Variables.ServerBoxedString](#serverboxedstring)
boxed class to store validated String payloads | | static class | [Variables.Server](#server)
schema class | | enum | [Variables.StringServerEnums](#stringserverenums)
String enum | -| static class | [Variables.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | -| static class | [Variables.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| static class | [Variables.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| static class | [Variables.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| static class | [Variables.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| static class | [Variables.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| static class | [Variables.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Variables.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| record | [Variables.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [Variables.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [Variables.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [Variables.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [Variables.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [Variables.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | | static class | [Variables.AdditionalProperties](#additionalproperties)
schema class | ### Variables1Boxed @@ -63,20 +63,21 @@ permits
sealed interface that stores validated payloads using boxed classes ### Variables1BoxedMap -public static final class Variables1BoxedMap
+public record Variables1BoxedMap
implements [Variables1Boxed](#variables1boxed) -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 | | --------------------------- | | Variables1BoxedMap([VariablesMap](#variablesmap) data)
Creates an instance, private visibility | -#### Field Summary -| Modifier and Type | Field and Description | +#### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [VariablesMap](#variablesmap) | data
validated payload | +| [VariablesMap](#variablesmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ### Variables1 public static class Variables1
@@ -216,20 +217,21 @@ permits
sealed interface that stores validated payloads using boxed classes ### PortBoxedString -public static final class PortBoxedString
+public record PortBoxedString
implements [PortBoxed](#portboxed) -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 | | --------------------------- | | PortBoxedString(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 | ### Port public static class Port
@@ -296,20 +298,21 @@ permits
sealed interface that stores validated payloads using boxed classes ### ServerBoxedString -public static final class ServerBoxedString
+public record ServerBoxedString
implements [ServerBoxed](#serverboxed) -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 | | --------------------------- | | ServerBoxedString(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 | ### Server public static class Server
@@ -382,100 +385,106 @@ permits
sealed interface that stores validated payloads using boxed classes ### AdditionalPropertiesBoxedVoid -public static final class AdditionalPropertiesBoxedVoid
+public record AdditionalPropertiesBoxedVoid
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedVoid(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 | ### AdditionalPropertiesBoxedBoolean -public static final class AdditionalPropertiesBoxedBoolean
+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 | ### AdditionalPropertiesBoxedNumber -public static final class AdditionalPropertiesBoxedNumber
+public record AdditionalPropertiesBoxedNumber
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedNumber(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 | ### AdditionalPropertiesBoxedString -public static final class AdditionalPropertiesBoxedString
+public record AdditionalPropertiesBoxedString
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedString(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 | ### AdditionalPropertiesBoxedList -public static final class AdditionalPropertiesBoxedList
+public record AdditionalPropertiesBoxedList
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedList(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 | ### AdditionalPropertiesBoxedMap -public static final class AdditionalPropertiesBoxedMap
+public record AdditionalPropertiesBoxedMap
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedMap(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 | ### AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/servers/Server1.md b/samples/client/petstore/java/docs/servers/Server1.md index e7d3b600f78..1e8b73452e8 100644 --- a/samples/client/petstore/java/docs/servers/Server1.md +++ b/samples/client/petstore/java/docs/servers/Server1.md @@ -33,22 +33,22 @@ A class that contains necessary nested ### Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [Variables.Variables1Boxed](#variables1boxed)
abstract sealed validated payload class | -| static class | [Variables.Variables1BoxedMap](#variables1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Variables.Variables1Boxed](#variables1boxed)
abstract sealed validated payload class | +| record | [Variables.Variables1BoxedMap](#variables1boxedmap)
boxed class to store validated Map payloads | | static class | [Variables.Variables1](#variables1)
schema class | | static class | [Variables.VariablesMapBuilder](#variablesmapbuilder)
builder for Map payloads | | static class | [Variables.VariablesMap](#variablesmap)
output class for Map payloads | -| static class | [Variables.VersionBoxed](#versionboxed)
abstract sealed validated payload class | -| static class | [Variables.VersionBoxedString](#versionboxedstring)
boxed class to store validated String payloads | +| sealed interface | [Variables.VersionBoxed](#versionboxed)
abstract sealed validated payload class | +| record | [Variables.VersionBoxedString](#versionboxedstring)
boxed class to store validated String payloads | | static class | [Variables.Version](#version)
schema class | | enum | [Variables.StringVersionEnums](#stringversionenums)
String enum | -| static class | [Variables.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | -| static class | [Variables.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| static class | [Variables.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| static class | [Variables.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| static class | [Variables.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| static class | [Variables.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| static class | [Variables.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [Variables.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| record | [Variables.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [Variables.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [Variables.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [Variables.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [Variables.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [Variables.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | | static class | [Variables.AdditionalProperties](#additionalproperties)
schema class | ### Variables1Boxed @@ -59,20 +59,21 @@ permits
sealed interface that stores validated payloads using boxed classes ### Variables1BoxedMap -public static final class Variables1BoxedMap
+public record Variables1BoxedMap
implements [Variables1Boxed](#variables1boxed) -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 | | --------------------------- | | Variables1BoxedMap([VariablesMap](#variablesmap) data)
Creates an instance, private visibility | -#### Field Summary -| Modifier and Type | Field and Description | +#### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [VariablesMap](#variablesmap) | data
validated payload | +| [VariablesMap](#variablesmap) | data()
validated payload | +| @Nullable Object | getData()validated payload | ### Variables1 public static class Variables1
@@ -173,20 +174,21 @@ permits
sealed interface that stores validated payloads using boxed classes ### VersionBoxedString -public static final class VersionBoxedString
+public record VersionBoxedString
implements [VersionBoxed](#versionboxed) -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 | | --------------------------- | | VersionBoxedString(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 | ### Version public static class Version
@@ -255,100 +257,106 @@ permits
sealed interface that stores validated payloads using boxed classes ### AdditionalPropertiesBoxedVoid -public static final class AdditionalPropertiesBoxedVoid
+public record AdditionalPropertiesBoxedVoid
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedVoid(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 | ### AdditionalPropertiesBoxedBoolean -public static final class AdditionalPropertiesBoxedBoolean
+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 | ### AdditionalPropertiesBoxedNumber -public static final class AdditionalPropertiesBoxedNumber
+public record AdditionalPropertiesBoxedNumber
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedNumber(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 | ### AdditionalPropertiesBoxedString -public static final class AdditionalPropertiesBoxedString
+public record AdditionalPropertiesBoxedString
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedString(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 | ### AdditionalPropertiesBoxedList -public static final class AdditionalPropertiesBoxedList
+public record AdditionalPropertiesBoxedList
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedList(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 | ### AdditionalPropertiesBoxedMap -public static final class AdditionalPropertiesBoxedMap
+public record AdditionalPropertiesBoxedMap
implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedMap(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 | ### AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Client.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Client.java index 3af90821835..5ed7c573168 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Client.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Client.java @@ -37,22 +37,11 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits ApplicationjsonRequestBody {} - public static final class ApplicationjsonRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final ApplicationjsonSchema.Client1Boxed body; - public ApplicationjsonRequestBody(ApplicationjsonSchema.Client1Boxed body) { - contentType = "application/json"; - this.body = body; - } + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.Client1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public ApplicationjsonSchema.Client1Boxed body() { - return body; + return "application/json"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Pet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Pet.java index 8e496a8cb92..e7f05d71175 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Pet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Pet.java @@ -49,39 +49,17 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits ApplicationjsonRequestBody, ApplicationxmlRequestBody {} - public static final class ApplicationjsonRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final ApplicationjsonSchema.Pet1Boxed body; - public ApplicationjsonRequestBody(ApplicationjsonSchema.Pet1Boxed body) { - contentType = "application/json"; - this.body = body; - } + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody, ApplicationxmlRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.Pet1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public ApplicationjsonSchema.Pet1Boxed body() { - return body; + return "application/json"; } } - public static final class ApplicationxmlRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final ApplicationxmlSchema.Pet1Boxed body; - public ApplicationxmlRequestBody(ApplicationxmlSchema.Pet1Boxed body) { - contentType = "application/xml"; - this.body = body; - } + public record ApplicationxmlRequestBody(ApplicationxmlSchema.Pet1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public ApplicationxmlSchema.Pet1Boxed body() { - return body; + return "application/xml"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/UserArray.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/UserArray.java index 8dd35d38d09..171cc30936a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/UserArray.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/UserArray.java @@ -37,22 +37,11 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits ApplicationjsonRequestBody {} - public static final class ApplicationjsonRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final ApplicationjsonSchema.ApplicationjsonSchema1Boxed body; - public ApplicationjsonRequestBody(ApplicationjsonSchema.ApplicationjsonSchema1Boxed body) { - contentType = "application/json"; - this.body = body; - } + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.ApplicationjsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public ApplicationjsonSchema.ApplicationjsonSchema1Boxed body() { - return body; + return "application/json"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/RequestBody.java index d98b36bec6a..1770a54771e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/RequestBody.java @@ -37,22 +37,11 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits ApplicationxwwwformurlencodedRequestBody {} - public static final class ApplicationxwwwformurlencodedRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed body; - public ApplicationxwwwformurlencodedRequestBody(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed body) { - contentType = "application/x-www-form-urlencoded"; - this.body = body; - } + public sealed interface SealedRequestBody permits ApplicationxwwwformurlencodedRequestBody {} + public record ApplicationxwwwformurlencodedRequestBody(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed body() { - return body; + return "application/x-www-form-urlencoded"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/RequestBody.java index 1039c56b893..47b807cfbda 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/RequestBody.java @@ -37,22 +37,11 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits ApplicationxwwwformurlencodedRequestBody {} - public static final class ApplicationxwwwformurlencodedRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed body; - public ApplicationxwwwformurlencodedRequestBody(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed body) { - contentType = "application/x-www-form-urlencoded"; - this.body = body; - } + public sealed interface SealedRequestBody permits ApplicationxwwwformurlencodedRequestBody {} + public record ApplicationxwwwformurlencodedRequestBody(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed body() { - return body; + return "application/x-www-form-urlencoded"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/RequestBody.java index 548f2485241..cf5ce1e7432 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/RequestBody.java @@ -37,22 +37,11 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits ApplicationjsonRequestBody {} - public static final class ApplicationjsonRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final ApplicationjsonSchema.AdditionalPropertiesWithArrayOfEnums1Boxed body; - public ApplicationjsonRequestBody(ApplicationjsonSchema.AdditionalPropertiesWithArrayOfEnums1Boxed body) { - contentType = "application/json"; - this.body = body; - } + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.AdditionalPropertiesWithArrayOfEnums1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public ApplicationjsonSchema.AdditionalPropertiesWithArrayOfEnums1Boxed body() { - return body; + return "application/json"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/RequestBody.java index 56c86c75ce9..ca43860edf8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/RequestBody.java @@ -37,22 +37,11 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits ApplicationjsonRequestBody {} - public static final class ApplicationjsonRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final ApplicationjsonSchema.FileSchemaTestClass1Boxed body; - public ApplicationjsonRequestBody(ApplicationjsonSchema.FileSchemaTestClass1Boxed body) { - contentType = "application/json"; - this.body = body; - } + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.FileSchemaTestClass1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public ApplicationjsonSchema.FileSchemaTestClass1Boxed body() { - return body; + return "application/json"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/RequestBody.java index df60bdb3e77..105c36fcf3a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/RequestBody.java @@ -37,22 +37,11 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits ApplicationjsonRequestBody {} - public static final class ApplicationjsonRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final ApplicationjsonSchema.User1Boxed body; - public ApplicationjsonRequestBody(ApplicationjsonSchema.User1Boxed body) { - contentType = "application/json"; - this.body = body; - } + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.User1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public ApplicationjsonSchema.User1Boxed body() { - return body; + return "application/json"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/RequestBody.java index 414ca55ae99..e6bba1b26f6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/RequestBody.java @@ -37,22 +37,11 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits ApplicationjsonRequestBody {} - public static final class ApplicationjsonRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final ApplicationjsonSchema.ApplicationjsonSchema1Boxed body; - public ApplicationjsonRequestBody(ApplicationjsonSchema.ApplicationjsonSchema1Boxed body) { - contentType = "application/json"; - this.body = body; - } + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.ApplicationjsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public ApplicationjsonSchema.ApplicationjsonSchema1Boxed body() { - return body; + return "application/json"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/RequestBody.java index 7d1f743d5f4..97504588a6d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/RequestBody.java @@ -49,39 +49,17 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits ApplicationjsonRequestBody, MultipartformdataRequestBody {} - public static final class ApplicationjsonRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final ApplicationjsonSchema.ApplicationjsonSchema1Boxed body; - public ApplicationjsonRequestBody(ApplicationjsonSchema.ApplicationjsonSchema1Boxed body) { - contentType = "application/json"; - this.body = body; - } + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody, MultipartformdataRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.ApplicationjsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public ApplicationjsonSchema.ApplicationjsonSchema1Boxed body() { - return body; + return "application/json"; } } - public static final class MultipartformdataRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final MultipartformdataSchema.MultipartformdataSchema1Boxed body; - public MultipartformdataRequestBody(MultipartformdataSchema.MultipartformdataSchema1Boxed body) { - contentType = "multipart/form-data"; - this.body = body; - } + public record MultipartformdataRequestBody(MultipartformdataSchema.MultipartformdataSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public MultipartformdataSchema.MultipartformdataSchema1Boxed body() { - return body; + return "multipart/form-data"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/RequestBody.java index 33d2fbe6aa4..9e031d48900 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/RequestBody.java @@ -37,22 +37,11 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits ApplicationxwwwformurlencodedRequestBody {} - public static final class ApplicationxwwwformurlencodedRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed body; - public ApplicationxwwwformurlencodedRequestBody(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed body) { - contentType = "application/x-www-form-urlencoded"; - this.body = body; - } + public sealed interface SealedRequestBody permits ApplicationxwwwformurlencodedRequestBody {} + public record ApplicationxwwwformurlencodedRequestBody(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed body() { - return body; + return "application/x-www-form-urlencoded"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/RequestBody.java index a94d7267153..789f8066e69 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/RequestBody.java @@ -37,22 +37,11 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits ApplicationjsonpatchjsonRequestBody {} - public static final class ApplicationjsonpatchjsonRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final ApplicationjsonpatchjsonSchema.JSONPatchRequest1Boxed body; - public ApplicationjsonpatchjsonRequestBody(ApplicationjsonpatchjsonSchema.JSONPatchRequest1Boxed body) { - contentType = "application/json-patch+json"; - this.body = body; - } + public sealed interface SealedRequestBody permits ApplicationjsonpatchjsonRequestBody {} + public record ApplicationjsonpatchjsonRequestBody(ApplicationjsonpatchjsonSchema.JSONPatchRequest1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public ApplicationjsonpatchjsonSchema.JSONPatchRequest1Boxed body() { - return body; + return "application/json-patch+json"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/RequestBody.java index d3b0aac1fb5..864fe1f705e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/RequestBody.java @@ -37,22 +37,11 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits Applicationjsoncharsetutf8RequestBody {} - public static final class Applicationjsoncharsetutf8RequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final Applicationjsoncharsetutf8Schema.AnyTypeJsonSchema1Boxed body; - public Applicationjsoncharsetutf8RequestBody(Applicationjsoncharsetutf8Schema.AnyTypeJsonSchema1Boxed body) { - contentType = "application/json; charset=utf-8"; - this.body = body; - } + public sealed interface SealedRequestBody permits Applicationjsoncharsetutf8RequestBody {} + public record Applicationjsoncharsetutf8RequestBody(Applicationjsoncharsetutf8Schema.AnyTypeJsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public Applicationjsoncharsetutf8Schema.AnyTypeJsonSchema1Boxed body() { - return body; + return "application/json; charset=utf-8"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/RequestBody.java index 6c66b2db425..94d00f7f725 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/RequestBody.java @@ -49,39 +49,17 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits ApplicationjsonRequestBody, MultipartformdataRequestBody {} - public static final class ApplicationjsonRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final ApplicationjsonSchema.ApplicationjsonSchema1Boxed body; - public ApplicationjsonRequestBody(ApplicationjsonSchema.ApplicationjsonSchema1Boxed body) { - contentType = "application/json"; - this.body = body; - } + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody, MultipartformdataRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.ApplicationjsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public ApplicationjsonSchema.ApplicationjsonSchema1Boxed body() { - return body; + return "application/json"; } } - public static final class MultipartformdataRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final MultipartformdataSchema.MultipartformdataSchema1Boxed body; - public MultipartformdataRequestBody(MultipartformdataSchema.MultipartformdataSchema1Boxed body) { - contentType = "multipart/form-data"; - this.body = body; - } + public record MultipartformdataRequestBody(MultipartformdataSchema.MultipartformdataSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public MultipartformdataSchema.MultipartformdataSchema1Boxed body() { - return body; + return "multipart/form-data"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/RequestBody.java index 4e691f4e13f..f1260e254ba 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/RequestBody.java @@ -37,22 +37,11 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits ApplicationjsonRequestBody {} - public static final class ApplicationjsonRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body; - public ApplicationjsonRequestBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) { - contentType = "application/json"; - this.body = body; - } + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body() { - return body; + return "application/json"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/RequestBody.java index 821e883b053..e078f34b990 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/RequestBody.java @@ -37,22 +37,11 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits ApplicationxpemfileRequestBody {} - public static final class ApplicationxpemfileRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final ApplicationxpemfileSchema.StringJsonSchema1Boxed body; - public ApplicationxpemfileRequestBody(ApplicationxpemfileSchema.StringJsonSchema1Boxed body) { - contentType = "application/x-pem-file"; - this.body = body; - } + public sealed interface SealedRequestBody permits ApplicationxpemfileRequestBody {} + public record ApplicationxpemfileRequestBody(ApplicationxpemfileSchema.StringJsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public ApplicationxpemfileSchema.StringJsonSchema1Boxed body() { - return body; + return "application/x-pem-file"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/RequestBody.java index 3241bf0ea56..853cbba21b6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/RequestBody.java @@ -37,22 +37,11 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits MultipartformdataRequestBody {} - public static final class MultipartformdataRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final MultipartformdataSchema.MultipartformdataSchema1Boxed body; - public MultipartformdataRequestBody(MultipartformdataSchema.MultipartformdataSchema1Boxed body) { - contentType = "multipart/form-data"; - this.body = body; - } + public sealed interface SealedRequestBody permits MultipartformdataRequestBody {} + public record MultipartformdataRequestBody(MultipartformdataSchema.MultipartformdataSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public MultipartformdataSchema.MultipartformdataSchema1Boxed body() { - return body; + return "multipart/form-data"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/RequestBody.java index f1bcd8e6313..8ad686867e2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/RequestBody.java @@ -37,22 +37,11 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits ApplicationjsonRequestBody {} - public static final class ApplicationjsonRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final ApplicationjsonSchema.AnimalFarm1Boxed body; - public ApplicationjsonRequestBody(ApplicationjsonSchema.AnimalFarm1Boxed body) { - contentType = "application/json"; - this.body = body; - } + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.AnimalFarm1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public ApplicationjsonSchema.AnimalFarm1Boxed body() { - return body; + return "application/json"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/RequestBody.java index ea369008878..0b9bea9b21d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/RequestBody.java @@ -37,22 +37,11 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits ApplicationjsonRequestBody {} - public static final class ApplicationjsonRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final ApplicationjsonSchema.ArrayOfEnums1Boxed body; - public ApplicationjsonRequestBody(ApplicationjsonSchema.ArrayOfEnums1Boxed body) { - contentType = "application/json"; - this.body = body; - } + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.ArrayOfEnums1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public ApplicationjsonSchema.ArrayOfEnums1Boxed body() { - return body; + return "application/json"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/RequestBody.java index 88c73975987..9737d312fef 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/RequestBody.java @@ -37,22 +37,11 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits ApplicationjsonRequestBody {} - public static final class ApplicationjsonRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final ApplicationjsonSchema.BooleanJsonSchema1Boxed body; - public ApplicationjsonRequestBody(ApplicationjsonSchema.BooleanJsonSchema1Boxed body) { - contentType = "application/json"; - this.body = body; - } + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.BooleanJsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public ApplicationjsonSchema.BooleanJsonSchema1Boxed body() { - return body; + return "application/json"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/RequestBody.java index a5aa017234c..6dd6ecf2791 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/RequestBody.java @@ -37,22 +37,11 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits ApplicationjsonRequestBody {} - public static final class ApplicationjsonRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final ApplicationjsonSchema.ComposedOneOfDifferentTypes1Boxed body; - public ApplicationjsonRequestBody(ApplicationjsonSchema.ComposedOneOfDifferentTypes1Boxed body) { - contentType = "application/json"; - this.body = body; - } + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.ComposedOneOfDifferentTypes1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public ApplicationjsonSchema.ComposedOneOfDifferentTypes1Boxed body() { - return body; + return "application/json"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/RequestBody.java index ec48dac881a..6f214557b85 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/RequestBody.java @@ -37,22 +37,11 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits ApplicationjsonRequestBody {} - public static final class ApplicationjsonRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final ApplicationjsonSchema.StringEnum1Boxed body; - public ApplicationjsonRequestBody(ApplicationjsonSchema.StringEnum1Boxed body) { - contentType = "application/json"; - this.body = body; - } + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.StringEnum1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public ApplicationjsonSchema.StringEnum1Boxed body() { - return body; + return "application/json"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/RequestBody.java index 8e8ce549518..6b3bc74434e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/RequestBody.java @@ -37,22 +37,11 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits ApplicationjsonRequestBody {} - public static final class ApplicationjsonRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final ApplicationjsonSchema.Mammal1Boxed body; - public ApplicationjsonRequestBody(ApplicationjsonSchema.Mammal1Boxed body) { - contentType = "application/json"; - this.body = body; - } + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.Mammal1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public ApplicationjsonSchema.Mammal1Boxed body() { - return body; + return "application/json"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/RequestBody.java index f3c60284c43..d399c2fe96a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/RequestBody.java @@ -37,22 +37,11 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits ApplicationjsonRequestBody {} - public static final class ApplicationjsonRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final ApplicationjsonSchema.NumberWithValidations1Boxed body; - public ApplicationjsonRequestBody(ApplicationjsonSchema.NumberWithValidations1Boxed body) { - contentType = "application/json"; - this.body = body; - } + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.NumberWithValidations1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public ApplicationjsonSchema.NumberWithValidations1Boxed body() { - return body; + return "application/json"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/RequestBody.java index 8fb852072ed..c80c5c5037b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/RequestBody.java @@ -37,22 +37,11 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits ApplicationjsonRequestBody {} - public static final class ApplicationjsonRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final ApplicationjsonSchema.ObjectModelWithRefProps1Boxed body; - public ApplicationjsonRequestBody(ApplicationjsonSchema.ObjectModelWithRefProps1Boxed body) { - contentType = "application/json"; - this.body = body; - } + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.ObjectModelWithRefProps1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public ApplicationjsonSchema.ObjectModelWithRefProps1Boxed body() { - return body; + return "application/json"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/RequestBody.java index 37a5dfda176..ea9d7a506a4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/RequestBody.java @@ -37,22 +37,11 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits ApplicationjsonRequestBody {} - public static final class ApplicationjsonRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final ApplicationjsonSchema.StringJsonSchema1Boxed body; - public ApplicationjsonRequestBody(ApplicationjsonSchema.StringJsonSchema1Boxed body) { - contentType = "application/json"; - this.body = body; - } + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.StringJsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public ApplicationjsonSchema.StringJsonSchema1Boxed body() { - return body; + return "application/json"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/RequestBody.java index 704b7b04fc1..2647a67b8aa 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/RequestBody.java @@ -37,22 +37,11 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits ApplicationoctetstreamRequestBody {} - public static final class ApplicationoctetstreamRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final ApplicationoctetstreamSchema.StringJsonSchema1Boxed body; - public ApplicationoctetstreamRequestBody(ApplicationoctetstreamSchema.StringJsonSchema1Boxed body) { - contentType = "application/octet-stream"; - this.body = body; - } + public sealed interface SealedRequestBody permits ApplicationoctetstreamRequestBody {} + public record ApplicationoctetstreamRequestBody(ApplicationoctetstreamSchema.StringJsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public ApplicationoctetstreamSchema.StringJsonSchema1Boxed body() { - return body; + return "application/octet-stream"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/RequestBody.java index 4db90bc7264..706e7c74fbc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/RequestBody.java @@ -37,22 +37,11 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits MultipartformdataRequestBody {} - public static final class MultipartformdataRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final MultipartformdataSchema.MultipartformdataSchema1Boxed body; - public MultipartformdataRequestBody(MultipartformdataSchema.MultipartformdataSchema1Boxed body) { - contentType = "multipart/form-data"; - this.body = body; - } + public sealed interface SealedRequestBody permits MultipartformdataRequestBody {} + public record MultipartformdataRequestBody(MultipartformdataSchema.MultipartformdataSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public MultipartformdataSchema.MultipartformdataSchema1Boxed body() { - return body; + return "multipart/form-data"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/RequestBody.java index dfb6f357512..dddb18e6b8c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/RequestBody.java @@ -37,22 +37,11 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits MultipartformdataRequestBody {} - public static final class MultipartformdataRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final MultipartformdataSchema.MultipartformdataSchema1Boxed body; - public MultipartformdataRequestBody(MultipartformdataSchema.MultipartformdataSchema1Boxed body) { - contentType = "multipart/form-data"; - this.body = body; - } + public sealed interface SealedRequestBody permits MultipartformdataRequestBody {} + public record MultipartformdataRequestBody(MultipartformdataSchema.MultipartformdataSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public MultipartformdataSchema.MultipartformdataSchema1Boxed body() { - return body; + return "multipart/form-data"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/RequestBody.java index bdaa1ca6b76..3f9abb1b8c7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/RequestBody.java @@ -37,22 +37,11 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits ApplicationxwwwformurlencodedRequestBody {} - public static final class ApplicationxwwwformurlencodedRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed body; - public ApplicationxwwwformurlencodedRequestBody(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed body) { - contentType = "application/x-www-form-urlencoded"; - this.body = body; - } + public sealed interface SealedRequestBody permits ApplicationxwwwformurlencodedRequestBody {} + public record ApplicationxwwwformurlencodedRequestBody(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed body() { - return body; + return "application/x-www-form-urlencoded"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/RequestBody.java index 7f9e39423fb..13c2df0a56a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/RequestBody.java @@ -37,22 +37,11 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits MultipartformdataRequestBody {} - public static final class MultipartformdataRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final MultipartformdataSchema.MultipartformdataSchema1Boxed body; - public MultipartformdataRequestBody(MultipartformdataSchema.MultipartformdataSchema1Boxed body) { - contentType = "multipart/form-data"; - this.body = body; - } + public sealed interface SealedRequestBody permits MultipartformdataRequestBody {} + public record MultipartformdataRequestBody(MultipartformdataSchema.MultipartformdataSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public MultipartformdataSchema.MultipartformdataSchema1Boxed body() { - return body; + return "multipart/form-data"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/RequestBody.java index 93adc2b9957..90a887dfbe0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/RequestBody.java @@ -37,22 +37,11 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits ApplicationjsonRequestBody {} - public static final class ApplicationjsonRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final ApplicationjsonSchema.Order1Boxed body; - public ApplicationjsonRequestBody(ApplicationjsonSchema.Order1Boxed body) { - contentType = "application/json"; - this.body = body; - } + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.Order1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public ApplicationjsonSchema.Order1Boxed body() { - return body; + return "application/json"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/RequestBody.java index 5b12358525a..4ad27611323 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/RequestBody.java @@ -37,22 +37,11 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits ApplicationjsonRequestBody {} - public static final class ApplicationjsonRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final ApplicationjsonSchema.User1Boxed body; - public ApplicationjsonRequestBody(ApplicationjsonSchema.User1Boxed body) { - contentType = "application/json"; - this.body = body; - } + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.User1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public ApplicationjsonSchema.User1Boxed body() { - return body; + return "application/json"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/RequestBody.java index 74a4bca2645..f064f43f158 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/RequestBody.java @@ -37,22 +37,11 @@ public SerializedRequestBody serialize(SealedRequestBody requestBody) { } } - public static abstract sealed class SealedRequestBody permits ApplicationjsonRequestBody {} - public static final class ApplicationjsonRequestBody extends SealedRequestBody implements GenericRequestBody { - private final String contentType; - private final ApplicationjsonSchema.User1Boxed body; - public ApplicationjsonRequestBody(ApplicationjsonSchema.User1Boxed body) { - contentType = "application/json"; - this.body = body; - } + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.User1Boxed body) implements SealedRequestBody, GenericRequestBody { @Override public String contentType() { - return contentType; - } - - @Override - public ApplicationjsonSchema.User1Boxed body() { - return body; + return "application/json"; } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java index 2fd0573cd3d..e2d3e07f5bd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java @@ -5,6 +5,8 @@ import java.net.http.HttpRequest; import org.checkerframework.checker.nullness.qual.Nullable; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.ToNumberPolicy; import org.openapijsonschematools.client.schemas.validation.JsonSchema; import java.util.Map; @@ -20,7 +22,10 @@ public abstract class RequestBodySerializer { private static final Pattern jsonContentTypePattern = Pattern.compile( "application/[^+]*[+]?(json);?.*" ); - private static final Gson gson = new Gson(); + private static final Gson gson = new GsonBuilder() + .setObjectToNumberStrategy(ToNumberPolicy.LONG_OR_DOUBLE) + .setNumberToNumberStrategy(ToNumberPolicy.LONG_OR_DOUBLE) + .create(); private static final String textPlainContentType = "text/plain"; public RequestBodySerializer(Map> content, boolean required) { @@ -41,7 +46,7 @@ private SerializedRequestBody serializeTextPlain(String contentType, @Nullable O if (body instanceof String stringBody) { return new SerializedRequestBody(contentType, HttpRequest.BodyPublishers.ofString(stringBody)); } - throw new RuntimeException("Invalid non-string data type of "+ JsonSchema.getClass(body) +" for text/plain body serialization"); + throw new RuntimeException("Invalid non-string data type of "+JsonSchema.getClass(body)+" for text/plain body serialization"); } protected SerializedRequestBody serialize(String contentType, @Nullable Object body) { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java index 4cbb5bb6a5e..96de973b43c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java @@ -7,9 +7,6 @@ import java.util.Optional; import java.util.regex.Pattern; -import com.google.gson.GsonBuilder; -import com.google.gson.ToNumberPolicy; -import com.google.gson.ToNumberStrategy; import org.checkerframework.checker.nullness.qual.Nullable; import com.google.gson.Gson; @@ -22,10 +19,7 @@ public abstract class ResponseDeserializer { private static final Pattern jsonContentTypePattern = Pattern.compile( "application/[^+]*[+]?(json);?.*" ); - private static final Gson gson = new GsonBuilder() - .setObjectToNumberStrategy(ToNumberPolicy.LONG_OR_DOUBLE) - .setNumberToNumberStrategy(ToNumberPolicy.LONG_OR_DOUBLE) - .create(); + private static final Gson gson = new Gson(); protected static final String textPlainContentType = "text/plain"; public ResponseDeserializer(@Nullable Map> content) { diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java index 0c618ead730..e3457246622 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java @@ -17,8 +17,8 @@ public final class RequestBodySerializerTest { - public static abstract sealed class SealedRequestBody permits ApplicationjsonRequestBody, TextplainRequestBody {} - public static final class ApplicationjsonRequestBody extends SealedRequestBody implements GenericRequestBody<@Nullable Object> { + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody, TextplainRequestBody {} + public static final class ApplicationjsonRequestBody implements SealedRequestBody, GenericRequestBody<@Nullable Object> { private final String contentType; private final @Nullable Object body; public ApplicationjsonRequestBody(@Nullable Object body) { @@ -35,7 +35,7 @@ public String contentType() { return body; } } - public static final class TextplainRequestBody extends SealedRequestBody implements GenericRequestBody<@Nullable Object> { + public static final class TextplainRequestBody implements SealedRequestBody, GenericRequestBody<@Nullable Object> { private final String contentType; private final @Nullable Object body; public TextplainRequestBody(@Nullable Object body) { diff --git a/src/main/resources/java/src/main/java/packagename/components/requestbodies/RequestBody.hbs b/src/main/resources/java/src/main/java/packagename/components/requestbodies/RequestBody.hbs index 39785aa9afc..2bd1f5bf733 100644 --- a/src/main/resources/java/src/main/java/packagename/components/requestbodies/RequestBody.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/requestbodies/RequestBody.hbs @@ -72,23 +72,12 @@ public class {{jsonPathPiece.pascalCase}} { } } - public static abstract sealed class SealedRequestBody permits {{#each content}}{{@key.pascalCase}}RequestBody{{#unless @last}}, {{/unless}}{{/each}} {} + public sealed interface SealedRequestBody permits {{#each content}}{{@key.pascalCase}}RequestBody{{#unless @last}}, {{/unless}}{{/each}} {} {{#each content}} - public static final class {{@key.pascalCase}}RequestBody extends SealedRequestBody implements GenericRequestBody<{{#with this}}{{#with schema}}{{containerJsonPathPiece.pascalCase}}.{{#with getSelfOrDeepestRef}}{{> src/main/java/packagename/components/schemas/_sealedClassName }}{{/with}}{{/with}}{{/with}}> { - private final String contentType; - private final {{#with this}}{{#with schema}}{{containerJsonPathPiece.pascalCase}}.{{#with getSelfOrDeepestRef}}{{> src/main/java/packagename/components/schemas/_sealedClassName }}{{/with}}{{/with}}{{/with}} body; - public {{@key.pascalCase}}RequestBody({{#with this}}{{#with schema}}{{containerJsonPathPiece.pascalCase}}.{{#with getSelfOrDeepestRef}}{{> src/main/java/packagename/components/schemas/_sealedClassName }}{{/with}}{{/with}}{{/with}} body) { - contentType = "{{{@key.original}}}"; - this.body = body; - } + public record {{@key.pascalCase}}RequestBody({{#with this}}{{#with schema}}{{containerJsonPathPiece.pascalCase}}.{{#with getSelfOrDeepestRef}}{{> src/main/java/packagename/components/schemas/_sealedClassName }}{{/with}}{{/with}}{{/with}} body) implements SealedRequestBody, GenericRequestBody<{{#with this}}{{#with schema}}{{containerJsonPathPiece.pascalCase}}.{{#with getSelfOrDeepestRef}}{{> src/main/java/packagename/components/schemas/_sealedClassName }}{{/with}}{{/with}}{{/with}}> { @Override public String contentType() { - return contentType; - } - - @Override - public {{#with this}}{{#with schema}}{{containerJsonPathPiece.pascalCase}}.{{#with getSelfOrDeepestRef}}{{> src/main/java/packagename/components/schemas/_sealedClassName }}{{/with}}{{/with}}{{/with}} body() { - return body; + return "{{{@key.original}}}"; } } {{/each}} diff --git a/src/main/resources/java/src/main/java/packagename/components/requestbodies/RequestBodyDoc.hbs b/src/main/resources/java/src/main/java/packagename/components/requestbodies/RequestBodyDoc.hbs index 5334a47d18b..0e9a963cf27 100644 --- a/src/main/resources/java/src/main/java/packagename/components/requestbodies/RequestBodyDoc.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/requestbodies/RequestBodyDoc.hbs @@ -30,8 +30,8 @@ public class {{jsonPathPiece.pascalCase}} A class that contains necessary nested request body classes - supporting XMediaType classes which store the openapi request body contentType to schema information - a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody class, an abstract sealed class which contains all the contentType/schema input types -- final classes which extend SealedRequestBody, the concrete request body types +- SealedRequestBody class, a sealed interface which contains all the contentType/schema input types +- final classes which implement SealedRequestBody, the concrete request body types {{headerSize}}# Nested Class Summary | Modifier and Type | Class and Description | @@ -40,9 +40,9 @@ A class that contains necessary nested request body classes | static class | [{{jsonPathPiece.pascalCase}}.{{@key.pascalCase}}MediaType](#{{@key.kebabCase}}mediatype)
class storing schema info for a specific contentType | {{/each}} | static class | [{{jsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}1](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "1" "")) }})
class that serializes request bodies | -| static class | [{{jsonPathPiece.pascalCase}}.SealedRequestBody](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces "sealedrequestbody") }})
abstract sealed request body class | +| sealed interface | [{{jsonPathPiece.pascalCase}}.SealedRequestBody](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces "sealedrequestbody") }})
request body sealed interface | {{#each content}} -| static class | [{{jsonPathPiece.pascalCase}}.{{@key.pascalCase}}RequestBody](#{{@key.kebabCase}}requestbody)
implementing sealed class to store request body input | +| record | [{{jsonPathPiece.pascalCase}}.{{@key.pascalCase}}RequestBody](#{{@key.kebabCase}}requestbody)
implements sealed interface to store request body input | {{/each}} {{#each content}} @@ -85,21 +85,21 @@ a class that serializes SealedRequestBody request bodies | SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | {{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces "SealedRequestBody") }} -public static abstract sealed class SealedRequestBody
+public sealed interface SealedRequestBody
permits
{{#each content}} [{{@key.pascalCase}}RequestBody](#{{@key.kebabCase}}requestbody){{#unless @last}},{{/unless}} {{/each}} -abstract sealed class that stores request contentType + validated schema data +sealed interface that stores request contentType + validated schema data {{#each content}} {{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces (join @key.pascalCase "RequestBody" "")) }} -public static final class {{@key.pascalCase}}RequestBody
-extends [SealedRequestBody](#sealedrequestbody)
-implements GenericRequestBody<{{#with this}}{{#with schema}}{{containerJsonPathPiece.pascalCase}}.{{#with getSelfOrDeepestRef}}{{> src/main/java/packagename/components/schemas/_sealedClassName forDocs=true }}{{/with}}{{/with}}{{/with}}>
+public record {{@key.pascalCase}}RequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody<{{#with this}}{{#with schema}}{{containerJsonPathPiece.pascalCase}}.{{#with getSelfOrDeepestRef}}{{> src/main/java/packagename/components/schemas/_sealedClassName forDocs=true }}{{/with}}{{/with}}{{/with}}>
-A final class to store request body input for contentType="{{{@key.original}}}" +A record class to store request body input for contentType="{{{@key.original}}}" {{headerSize}}## Constructor Summary | Constructor and Description | diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedBoolean.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedBoolean.hbs index 491032bbc73..667028a417b 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedBoolean.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedBoolean.hbs @@ -1,19 +1,20 @@ {{#if forDocs}} {{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces (join jsonPathPiece.pascalCase "BoxedBoolean" "")) }} -public static final class {{jsonPathPiece.pascalCase}}BoxedBoolean
+public record {{jsonPathPiece.pascalCase}}BoxedBoolean
implements [{{jsonPathPiece.pascalCase}}Boxed](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxed" "")) }}) -a boxed class to store validated boolean payloads, sealed permits class implementation +record that stores validated boolean payloads, sealed permits implementation {{headerSize}}## Constructor Summary | Constructor and Description | | --------------------------- | | {{jsonPathPiece.pascalCase}}BoxedBoolean(boolean data)
Creates an instance, private visibility | -{{headerSize}}## Field Summary -| Modifier and Type | Field and Description | +{{headerSize}}## Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| boolean | data
validated payload | +| boolean | data()
validated payload | +| @Nullable Object | getData()validated payload | {{else}} public record {{jsonPathPiece.pascalCase}}BoxedBoolean(boolean data) implements {{jsonPathPiece.pascalCase}}Boxed { diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedList.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedList.hbs index ecefe0ac35e..ee68105b55f 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedList.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedList.hbs @@ -1,19 +1,20 @@ {{#if forDocs}} {{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces (join jsonPathPiece.pascalCase "BoxedList" "")) }} -public static final class {{jsonPathPiece.pascalCase}}BoxedList
+public record {{jsonPathPiece.pascalCase}}BoxedList
implements [{{jsonPathPiece.pascalCase}}Boxed](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxed" "")) }}) -a boxed class to store validated List payloads, sealed permits class implementation +record that stores validated List payloads, sealed permits implementation {{headerSize}}## Constructor Summary | Constructor and Description | | --------------------------- | | {{jsonPathPiece.pascalCase}}BoxedList({{#if arrayOutputJsonPathPiece}}[{{arrayOutputJsonPathPiece.pascalCase}}](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces arrayOutputJsonPathPiece) }}){{else}}FrozenList<@Nullable Object>{{/if}} data)
Creates an instance, private visibility | -{{headerSize}}## Field Summary -| Modifier and Type | Field and Description | +{{headerSize}}## Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| {{#if arrayOutputJsonPathPiece}}[{{arrayOutputJsonPathPiece.pascalCase}}](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces arrayOutputJsonPathPiece) }}){{else}}FrozenList<@Nullable Object>{{/if}} | data
validated payload | +| {{#if arrayOutputJsonPathPiece}}[{{arrayOutputJsonPathPiece.pascalCase}}](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces arrayOutputJsonPathPiece) }}){{else}}FrozenList<@Nullable Object>{{/if}} | data()
validated payload | +| @Nullable Object | getData()validated payload | {{else}} public record {{jsonPathPiece.pascalCase}}BoxedList({{#if arrayOutputJsonPathPiece}}{{arrayOutputJsonPathPiece.pascalCase}}{{else}}FrozenList<@Nullable Object>{{/if}} data) implements {{jsonPathPiece.pascalCase}}Boxed { diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedMap.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedMap.hbs index 46dd8976623..757b4379518 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedMap.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedMap.hbs @@ -1,19 +1,20 @@ {{#if forDocs}} {{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces (join jsonPathPiece.pascalCase "BoxedMap" "")) }} -public static final class {{jsonPathPiece.pascalCase}}BoxedMap
+public record {{jsonPathPiece.pascalCase}}BoxedMap
implements [{{jsonPathPiece.pascalCase}}Boxed](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxed" "")) }}) -a boxed class to store validated Map payloads, sealed permits class implementation +record that stores validated Map payloads, sealed permits implementation {{headerSize}}## Constructor Summary | Constructor and Description | | --------------------------- | | {{jsonPathPiece.pascalCase}}BoxedMap({{#if mapOutputJsonPathPiece}}[{{mapOutputJsonPathPiece.pascalCase}}](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces mapOutputJsonPathPiece) }}){{else}}FrozenMap<@Nullable Object>{{/if}} data)
Creates an instance, private visibility | -{{headerSize}}## Field Summary -| Modifier and Type | Field and Description | +{{headerSize}}## Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| {{#if mapOutputJsonPathPiece}}[{{mapOutputJsonPathPiece.pascalCase}}](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces mapOutputJsonPathPiece) }}){{else}}FrozenMap<@Nullable Object>{{/if}} | data
validated payload | +| {{#if mapOutputJsonPathPiece}}[{{mapOutputJsonPathPiece.pascalCase}}](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces mapOutputJsonPathPiece) }}){{else}}FrozenMap<@Nullable Object>{{/if}} | data()
validated payload | +| @Nullable Object | getData()validated payload | {{else}} public record {{jsonPathPiece.pascalCase}}BoxedMap({{#if mapOutputJsonPathPiece}}{{mapOutputJsonPathPiece.pascalCase}}{{else}}FrozenMap<@Nullable Object>{{/if}} data) implements {{jsonPathPiece.pascalCase}}Boxed { diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedNumber.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedNumber.hbs index f1a7b360fbf..eac508b3a18 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedNumber.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedNumber.hbs @@ -1,19 +1,20 @@ {{#if forDocs}} {{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces (join jsonPathPiece.pascalCase "BoxedNumber" "")) }} -public static final class {{jsonPathPiece.pascalCase}}BoxedNumber
+public record {{jsonPathPiece.pascalCase}}BoxedNumber
implements [{{jsonPathPiece.pascalCase}}Boxed](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxed" "")) }}) -a boxed class to store validated Number payloads, sealed permits class implementation +record that stores validated Number payloads, sealed permits implementation {{headerSize}}## Constructor Summary | Constructor and Description | | --------------------------- | | {{jsonPathPiece.pascalCase}}BoxedNumber(Number data)
Creates an instance, private visibility | -{{headerSize}}## Field Summary -| Modifier and Type | Field and Description | +{{headerSize}}## Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| Number | data
validated payload | +| Number | data()
validated payload | +| @Nullable Object | getData()validated payload | {{else}} public record {{jsonPathPiece.pascalCase}}BoxedNumber(Number data) implements {{jsonPathPiece.pascalCase}}Boxed { diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedString.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedString.hbs index 53480932f0c..079baab39c7 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedString.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedString.hbs @@ -1,19 +1,20 @@ {{#if forDocs}} {{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces (join jsonPathPiece.pascalCase "BoxedString" "")) }} -public static final class {{jsonPathPiece.pascalCase}}BoxedString
+public record {{jsonPathPiece.pascalCase}}BoxedString
implements [{{jsonPathPiece.pascalCase}}Boxed](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxed" "")) }}) -a boxed class to store validated String payloads, sealed permits class implementation +record that stores validated String payloads, sealed permits implementation {{headerSize}}## Constructor Summary | Constructor and Description | | --------------------------- | | {{jsonPathPiece.pascalCase}}BoxedString(String data)
Creates an instance, private visibility | -{{headerSize}}## Field Summary -| Modifier and Type | Field and Description | +{{headerSize}}## Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| String | data
validated payload | +| String | data()
validated payload | +| @Nullable Object | getData()validated payload | {{else}} public record {{jsonPathPiece.pascalCase}}BoxedString(String data) implements {{jsonPathPiece.pascalCase}}Boxed { diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedVoid.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedVoid.hbs index 7219c885785..81cd77bcd20 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedVoid.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedVoid.hbs @@ -1,19 +1,20 @@ {{#if forDocs}} {{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces (join jsonPathPiece.pascalCase "BoxedVoid" "")) }} -public static final class {{jsonPathPiece.pascalCase}}BoxedVoid
+public record {{jsonPathPiece.pascalCase}}BoxedVoid
implements [{{jsonPathPiece.pascalCase}}Boxed](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxed" "")) }}) -a boxed class to store validated null payloads, sealed permits class implementation +record that stores validated null payloads, sealed permits implementation {{headerSize}}## Constructor Summary | Constructor and Description | | --------------------------- | | {{jsonPathPiece.pascalCase}}BoxedVoid(Void data)
Creates an instance, private visibility | -{{headerSize}}## Field Summary -| Modifier and Type | Field and Description | +{{headerSize}}## Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| Void | data
validated payload | +| Void | data()
validated payload | +| @Nullable Object | getData()validated payload | {{else}} public record {{jsonPathPiece.pascalCase}}BoxedVoid(Void data) implements {{jsonPathPiece.pascalCase}}Boxed { diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/Schema_doc.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/Schema_doc.hbs index 98ed0f441c3..deca1fb2548 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/Schema_doc.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/Schema_doc.hbs @@ -34,32 +34,32 @@ A class that contains necessary nested {{#each (reverse getSchemas)}} {{#eq instanceType "schema"}} {{#eq refInfo null }} -| static class | [{{../containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}Boxed](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxed" "")) }})
abstract sealed validated payload class | +| sealed interface | [{{../containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}Boxed](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxed" "")) }})
abstract sealed validated payload class | {{#each types}} {{#eq this "null"}} -| static class | [{{../../containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}BoxedVoid](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxedvoid" ""))}})
boxed class to store validated null payloads | +| record | [{{../../containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}BoxedVoid](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxedvoid" ""))}})
boxed class to store validated null payloads | {{/eq}} {{#eq this "boolean"}} -| static class | [{{../../containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}BoxedBoolean](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxedboolean" ""))}})
boxed class to store validated boolean payloads | +| record | [{{../../containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}BoxedBoolean](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxedboolean" ""))}})
boxed class to store validated boolean payloads | {{/eq}} {{#or (eq this "number") (eq this "integer")}} -| static class | [{{../../containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}BoxedNumber](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxednumber" ""))}})
boxed class to store validated Number payloads | +| record | [{{../../containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}BoxedNumber](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxednumber" ""))}})
boxed class to store validated Number payloads | {{/or}} {{#and (eq this "string") (neq ../format "binary") }} -| static class | [{{../../containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}BoxedString](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxedstring" ""))}})
boxed class to store validated String payloads | +| record | [{{../../containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}BoxedString](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxedstring" ""))}})
boxed class to store validated String payloads | {{/and}} {{#eq this "array"}} -| static class | [{{../../containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}BoxedList](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxedlist" ""))}})
boxed class to store validated List payloads | +| record | [{{../../containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}BoxedList](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxedlist" ""))}})
boxed class to store validated List payloads | {{/eq}}{{#eq this "object"}} -| static class | [{{../../containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}BoxedMap](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxedmap" ""))}})
boxed class to store validated Map payloads | +| record | [{{../../containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}BoxedMap](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxedmap" ""))}})
boxed class to store validated Map payloads | {{/eq}} {{else}} -| static class | [{{../containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}BoxedVoid](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxedvoid" ""))}})
boxed class to store validated null payloads | -| static class | [{{../containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}BoxedBoolean](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxedboolean" ""))}})
boxed class to store validated boolean payloads | -| static class | [{{../containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}BoxedNumber](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxednumber" ""))}})
boxed class to store validated Number payloads | -| static class | [{{../containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}BoxedString](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxedstring" ""))}})
boxed class to store validated String payloads | -| static class | [{{../containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}BoxedList](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxedlist" ""))}})
boxed class to store validated List payloads | -| static class | [{{../containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}BoxedMap](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxedmap" ""))}})
boxed class to store validated Map payloads | +| record | [{{../containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}BoxedVoid](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxedvoid" ""))}})
boxed class to store validated null payloads | +| record | [{{../containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}BoxedBoolean](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxedboolean" ""))}})
boxed class to store validated boolean payloads | +| record | [{{../containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}BoxedNumber](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxednumber" ""))}})
boxed class to store validated Number payloads | +| record | [{{../containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}BoxedString](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxedstring" ""))}})
boxed class to store validated String payloads | +| record | [{{../containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}BoxedList](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxedlist" ""))}})
boxed class to store validated List payloads | +| record | [{{../containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}BoxedMap](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxedmap" ""))}})
boxed class to store validated Map payloads | {{/each}} {{/eq}} | static class | [{{../containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces jsonPathPiece) }})
schema class | diff --git a/src/main/resources/java/src/test/java/packagename/requestbody/RequestBodySerializerTest.hbs b/src/main/resources/java/src/test/java/packagename/requestbody/RequestBodySerializerTest.hbs index 1d9904cd021..17a6a467dde 100644 --- a/src/main/resources/java/src/test/java/packagename/requestbody/RequestBodySerializerTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/requestbody/RequestBodySerializerTest.hbs @@ -17,8 +17,8 @@ import java.util.concurrent.Flow; public final class RequestBodySerializerTest { - public static abstract sealed class SealedRequestBody permits ApplicationjsonRequestBody, TextplainRequestBody {} - public static final class ApplicationjsonRequestBody extends SealedRequestBody implements GenericRequestBody<@Nullable Object> { + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody, TextplainRequestBody {} + public static final class ApplicationjsonRequestBody implements SealedRequestBody, GenericRequestBody<@Nullable Object> { private final String contentType; private final @Nullable Object body; public ApplicationjsonRequestBody(@Nullable Object body) { @@ -35,7 +35,7 @@ public final class RequestBodySerializerTest { return body; } } - public static final class TextplainRequestBody extends SealedRequestBody implements GenericRequestBody<@Nullable Object> { + public static final class TextplainRequestBody implements SealedRequestBody, GenericRequestBody<@Nullable Object> { private final String contentType; private final @Nullable Object body; public TextplainRequestBody(@Nullable Object body) { From f481db5dc2f486ea3809860bdad9a914de123397 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Tue, 20 Feb 2024 14:00:54 -0800 Subject: [PATCH 13/50] Adds missing methods and line breaks to docs --- .../Int32JsonContentTypeHeaderSchema.md | 2 +- .../numberheader/NumberHeaderSchema.md | 2 +- .../stringheader/StringHeaderSchema.md | 2 +- .../parameters/pathusername/Schema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 4 +- .../headers/location/LocationSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 4 +- .../applicationxml/ApplicationxmlSchema.md | 4 +- .../applicationjson/ApplicationjsonSchema.md | 6 +- .../headers/someheader/SomeHeaderSchema.md | 2 +- .../components/schemas/AbstractStepMessage.md | 6 +- .../schemas/AdditionalPropertiesClass.md | 74 ++++++---- .../schemas/AdditionalPropertiesSchema.md | 56 +++++--- .../AdditionalPropertiesWithArrayOfEnums.md | 8 +- .../java/docs/components/schemas/Address.md | 6 +- .../java/docs/components/schemas/Animal.md | 10 +- .../docs/components/schemas/AnimalFarm.md | 4 +- .../components/schemas/AnyTypeAndFormat.md | 130 ++++++++++-------- .../components/schemas/AnyTypeNotString.md | 16 ++- .../components/schemas/ApiResponseSchema.md | 10 +- .../java/docs/components/schemas/Apple.md | 14 +- .../java/docs/components/schemas/AppleReq.md | 20 +-- .../components/schemas/ArrayHoldingAnyType.md | 16 ++- .../schemas/ArrayOfArrayOfNumberOnly.md | 14 +- .../docs/components/schemas/ArrayOfEnums.md | 4 +- .../components/schemas/ArrayOfNumberOnly.md | 10 +- .../java/docs/components/schemas/ArrayTest.md | 28 ++-- .../schemas/ArrayWithValidationsInItems.md | 8 +- .../java/docs/components/schemas/Banana.md | 6 +- .../java/docs/components/schemas/BananaReq.md | 20 +-- .../java/docs/components/schemas/Bar.md | 4 +- .../java/docs/components/schemas/BasquePig.md | 8 +- .../docs/components/schemas/BooleanEnum.md | 4 +- .../docs/components/schemas/BooleanSchema.md | 2 +- .../docs/components/schemas/Capitalization.md | 16 ++- .../java/docs/components/schemas/Cat.md | 20 +-- .../java/docs/components/schemas/Category.md | 10 +- .../java/docs/components/schemas/ChildCat.md | 20 +-- .../docs/components/schemas/ClassModel.md | 16 ++- .../java/docs/components/schemas/Client.md | 6 +- .../schemas/ComplexQuadrilateral.md | 22 +-- ...omposedAnyOfDifferentTypesNoValidations.md | 58 ++++---- .../docs/components/schemas/ComposedArray.md | 16 ++- .../docs/components/schemas/ComposedBool.md | 16 ++- .../docs/components/schemas/ComposedNone.md | 16 ++- .../docs/components/schemas/ComposedNumber.md | 16 ++- .../docs/components/schemas/ComposedObject.md | 16 ++- .../schemas/ComposedOneOfDifferentTypes.md | 42 +++--- .../docs/components/schemas/ComposedString.md | 16 ++- .../java/docs/components/schemas/Currency.md | 4 +- .../java/docs/components/schemas/DanishPig.md | 8 +- .../docs/components/schemas/DateTimeTest.md | 4 +- .../schemas/DateTimeWithValidations.md | 4 +- .../components/schemas/DateWithValidations.md | 4 +- .../docs/components/schemas/DecimalPayload.md | 2 +- .../java/docs/components/schemas/Dog.md | 20 +-- .../java/docs/components/schemas/Drawing.md | 8 +- .../docs/components/schemas/EnumArrays.md | 16 ++- .../java/docs/components/schemas/EnumClass.md | 4 +- .../java/docs/components/schemas/EnumTest.md | 20 ++- .../components/schemas/EquilateralTriangle.md | 22 +-- .../java/docs/components/schemas/File.md | 6 +- .../components/schemas/FileSchemaTestClass.md | 8 +- .../java/docs/components/schemas/Foo.md | 4 +- .../docs/components/schemas/FormatTest.md | 66 ++++++--- .../docs/components/schemas/FromSchema.md | 8 +- .../java/docs/components/schemas/Fruit.md | 16 ++- .../java/docs/components/schemas/FruitReq.md | 16 ++- .../java/docs/components/schemas/GmFruit.md | 16 ++- .../components/schemas/GrandparentAnimal.md | 6 +- .../components/schemas/HasOnlyReadOnly.md | 8 +- .../components/schemas/HealthCheckResult.md | 10 +- .../docs/components/schemas/IntegerEnum.md | 4 +- .../docs/components/schemas/IntegerEnumBig.md | 4 +- .../components/schemas/IntegerEnumOneValue.md | 4 +- .../schemas/IntegerEnumWithDefaultValue.md | 4 +- .../docs/components/schemas/IntegerMax10.md | 4 +- .../docs/components/schemas/IntegerMin15.md | 4 +- .../components/schemas/IsoscelesTriangle.md | 22 +-- .../java/docs/components/schemas/Items.md | 6 +- .../components/schemas/JSONPatchRequest.md | 18 ++- .../schemas/JSONPatchRequestAddReplaceTest.md | 34 +++-- .../schemas/JSONPatchRequestMoveCopy.md | 24 ++-- .../schemas/JSONPatchRequestRemove.md | 22 +-- .../java/docs/components/schemas/Mammal.md | 14 +- .../java/docs/components/schemas/MapTest.md | 28 ++-- ...dPropertiesAndAdditionalPropertiesClass.md | 12 +- .../java/docs/components/schemas/Money.md | 18 +-- .../docs/components/schemas/MyObjectDto.md | 18 +-- .../java/docs/components/schemas/Name.md | 20 +-- .../schemas/NoAdditionalProperties.md | 20 +-- .../docs/components/schemas/NullableClass.md | 106 +++++++++----- .../docs/components/schemas/NullableShape.md | 16 ++- .../docs/components/schemas/NullableString.md | 6 +- .../docs/components/schemas/NumberOnly.md | 6 +- .../docs/components/schemas/NumberSchema.md | 2 +- .../schemas/NumberWithExclusiveMinMax.md | 4 +- .../schemas/NumberWithValidations.md | 4 +- .../schemas/ObjWithRequiredProps.md | 6 +- .../schemas/ObjWithRequiredPropsBase.md | 6 +- .../components/schemas/ObjectInterface.md | 2 +- .../ObjectModelWithArgAndArgsProperties.md | 8 +- .../schemas/ObjectModelWithRefProps.md | 4 +- ...ithAllOfWithReqTestPropFromUnsetAddProp.md | 20 +-- .../schemas/ObjectWithCollidingProperties.md | 8 +- .../schemas/ObjectWithDecimalProperties.md | 6 +- .../ObjectWithDifficultlyNamedProps.md | 10 +- .../ObjectWithInlineCompositionProperty.md | 22 +-- .../ObjectWithInvalidNamedRefedProperties.md | 4 +- .../ObjectWithNonIntersectingValues.md | 8 +- .../schemas/ObjectWithOnlyOptionalProps.md | 20 +-- .../schemas/ObjectWithOptionalTestProp.md | 6 +- .../schemas/ObjectWithValidations.md | 4 +- .../java/docs/components/schemas/Order.md | 18 ++- .../schemas/PaginatedResultMyObjectDto.md | 22 +-- .../java/docs/components/schemas/ParentPet.md | 4 +- .../java/docs/components/schemas/Pet.md | 22 ++- .../java/docs/components/schemas/Pig.md | 14 +- .../java/docs/components/schemas/Player.md | 6 +- .../java/docs/components/schemas/PublicKey.md | 6 +- .../docs/components/schemas/Quadrilateral.md | 14 +- .../schemas/QuadrilateralInterface.md | 20 +-- .../docs/components/schemas/ReadOnlyFirst.md | 8 +- .../schemas/ReqPropsFromExplicitAddProps.md | 6 +- .../schemas/ReqPropsFromTrueAddProps.md | 16 ++- .../schemas/ReqPropsFromUnsetAddProps.md | 4 +- .../docs/components/schemas/ReturnSchema.md | 16 ++- .../components/schemas/ScaleneTriangle.md | 22 +-- .../components/schemas/Schema200Response.md | 18 +-- .../schemas/SelfReferencingArrayModel.md | 4 +- .../schemas/SelfReferencingObjectModel.md | 4 +- .../java/docs/components/schemas/Shape.md | 14 +- .../docs/components/schemas/ShapeOrNull.md | 16 ++- .../components/schemas/SimpleQuadrilateral.md | 22 +-- .../docs/components/schemas/SomeObject.md | 14 +- .../components/schemas/SpecialModelname.md | 6 +- .../components/schemas/StringBooleanMap.md | 6 +- .../docs/components/schemas/StringEnum.md | 6 +- .../schemas/StringEnumWithDefaultValue.md | 4 +- .../docs/components/schemas/StringSchema.md | 2 +- .../schemas/StringWithValidation.md | 4 +- .../java/docs/components/schemas/Tag.md | 8 +- .../java/docs/components/schemas/Triangle.md | 14 +- .../components/schemas/TriangleInterface.md | 20 +-- .../docs/components/schemas/UUIDString.md | 4 +- .../java/docs/components/schemas/User.md | 68 ++++----- .../java/docs/components/schemas/Whale.md | 12 +- .../java/docs/components/schemas/Zebra.md | 24 ++-- .../delete/parameters/parameter0/Schema0.md | 2 +- .../delete/parameters/parameter1/Schema1.md | 4 +- .../get/parameters/parameter0/Schema0.md | 2 +- .../parameters/parameter0/PathParamSchema0.md | 4 +- .../post/parameters/parameter0/Schema0.md | 2 +- .../delete/parameters/parameter0/Schema0.md | 2 +- .../delete/parameters/parameter1/Schema1.md | 4 +- .../delete/parameters/parameter2/Schema2.md | 2 +- .../delete/parameters/parameter3/Schema3.md | 2 +- .../delete/parameters/parameter4/Schema4.md | 4 +- .../delete/parameters/parameter5/Schema5.md | 2 +- .../fake/get/parameters/parameter0/Schema0.md | 8 +- .../fake/get/parameters/parameter1/Schema1.md | 4 +- .../fake/get/parameters/parameter2/Schema2.md | 8 +- .../fake/get/parameters/parameter3/Schema3.md | 4 +- .../fake/get/parameters/parameter4/Schema4.md | 4 +- .../fake/get/parameters/parameter5/Schema5.md | 4 +- .../ApplicationxwwwformurlencodedSchema.md | 16 ++- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../ApplicationxwwwformurlencodedSchema.md | 49 +++++-- .../put/parameters/parameter0/Schema0.md | 2 +- .../put/parameters/parameter0/Schema0.md | 2 +- .../put/parameters/parameter1/Schema1.md | 2 +- .../put/parameters/parameter2/Schema2.md | 2 +- .../delete/parameters/parameter0/Schema0.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 6 +- .../post/parameters/parameter0/Schema0.md | 19 +-- .../post/parameters/parameter1/Schema1.md | 23 ++-- .../applicationjson/ApplicationjsonSchema.md | 19 +-- .../MultipartformdataSchema.md | 23 ++-- .../applicationjson/ApplicationjsonSchema.md | 19 +-- .../MultipartformdataSchema.md | 23 ++-- .../ApplicationxwwwformurlencodedSchema.md | 8 +- .../Applicationjsoncharsetutf8Schema.md | 12 +- .../Applicationjsoncharsetutf8Schema.md | 12 +- .../applicationjson/ApplicationjsonSchema.md | 6 +- .../MultipartformdataSchema.md | 6 +- .../applicationjson/ApplicationjsonSchema.md | 12 +- .../applicationjson/ApplicationjsonSchema.md | 12 +- .../applicationjson/ApplicationjsonSchema.md | 12 +- .../applicationjson/ApplicationjsonSchema.md | 12 +- .../get/parameters/parameter0/Schema0.md | 6 +- .../post/parameters/parameter0/Schema0.md | 2 +- .../post/parameters/parameter1/Schema1.md | 2 +- .../post/parameters/parameter10/Schema10.md | 2 +- .../post/parameters/parameter11/Schema11.md | 2 +- .../post/parameters/parameter12/Schema12.md | 2 +- .../post/parameters/parameter13/Schema13.md | 2 +- .../post/parameters/parameter14/Schema14.md | 2 +- .../post/parameters/parameter15/Schema15.md | 2 +- .../post/parameters/parameter16/Schema16.md | 2 +- .../post/parameters/parameter17/Schema17.md | 2 +- .../post/parameters/parameter18/Schema18.md | 2 +- .../post/parameters/parameter2/Schema2.md | 2 +- .../post/parameters/parameter3/Schema3.md | 2 +- .../post/parameters/parameter4/Schema4.md | 2 +- .../post/parameters/parameter5/Schema5.md | 2 +- .../post/parameters/parameter6/Schema6.md | 2 +- .../post/parameters/parameter7/Schema7.md | 2 +- .../post/parameters/parameter8/Schema8.md | 2 +- .../post/parameters/parameter9/Schema9.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 12 +- .../applicationjson/ApplicationjsonSchema.md | 12 +- .../ApplicationxpemfileSchema.md | 2 +- .../ApplicationxpemfileSchema.md | 2 +- .../post/parameters/parameter0/Schema0.md | 2 +- .../MultipartformdataSchema.md | 6 +- .../content/applicationjson/Schema0.md | 12 +- .../applicationjson/ApplicationjsonSchema.md | 12 +- .../put/parameters/parameter0/Schema0.md | 6 +- .../put/parameters/parameter1/Schema1.md | 6 +- .../put/parameters/parameter2/Schema2.md | 6 +- .../put/parameters/parameter3/Schema3.md | 6 +- .../put/parameters/parameter4/Schema4.md | 6 +- .../MultipartformdataSchema.md | 6 +- .../MultipartformdataSchema.md | 8 +- .../applicationjson/ApplicationjsonSchema.md | 12 +- .../applicationjson/ApplicationjsonSchema.md | 12 +- .../applicationjson/ApplicationjsonSchema.md | 12 +- .../applicationjson/ApplicationjsonSchema.md | 12 +- .../applicationjson/ApplicationjsonSchema.md | 12 +- .../applicationjson/ApplicationjsonSchema.md | 12 +- .../applicationjson/ApplicationjsonSchema.md | 4 +- .../get/parameters/parameter0/Schema0.md | 8 +- .../get/parameters/parameter0/Schema0.md | 6 +- .../delete/parameters/parameter0/Schema0.md | 2 +- .../delete/parameters/parameter1/Schema1.md | 2 +- .../get/parameters/parameter0/Schema0.md | 2 +- .../post/parameters/parameter0/Schema0.md | 2 +- .../ApplicationxwwwformurlencodedSchema.md | 8 +- .../post/parameters/parameter0/Schema0.md | 2 +- .../MultipartformdataSchema.md | 6 +- .../delete/parameters/parameter0/Schema0.md | 2 +- .../get/parameters/parameter0/Schema0.md | 5 +- .../get/parameters/parameter0/Schema0.md | 2 +- .../get/parameters/parameter1/Schema1.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationxml/ApplicationxmlSchema.md | 2 +- .../xexpiresafter/XExpiresAfterSchema.md | 2 +- .../applicationjson/XRateLimitSchema.md | 2 +- .../petstore/java/docs/servers/Server0.md | 24 ++-- .../petstore/java/docs/servers/Server1.md | 20 +-- .../schemas/SchemaClass/_boxedBoolean.hbs | 2 +- .../schemas/SchemaClass/_boxedList.hbs | 2 +- .../schemas/SchemaClass/_boxedMap.hbs | 2 +- .../schemas/SchemaClass/_boxedNumber.hbs | 2 +- .../schemas/SchemaClass/_boxedString.hbs | 2 +- .../schemas/SchemaClass/_boxedVoid.hbs | 2 +- .../components/schemas/docschema_io_types.hbs | 3 +- 257 files changed, 1727 insertions(+), 1096 deletions(-) diff --git a/samples/client/petstore/java/docs/components/headers/int32jsoncontenttypeheader/content/applicationjson/Int32JsonContentTypeHeaderSchema.md b/samples/client/petstore/java/docs/components/headers/int32jsoncontenttypeheader/content/applicationjson/Int32JsonContentTypeHeaderSchema.md index 89018d8c7cc..0bfb1bc74f2 100644 --- a/samples/client/petstore/java/docs/components/headers/int32jsoncontenttypeheader/content/applicationjson/Int32JsonContentTypeHeaderSchema.md +++ b/samples/client/petstore/java/docs/components/headers/int32jsoncontenttypeheader/content/applicationjson/Int32JsonContentTypeHeaderSchema.md @@ -35,7 +35,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Int32JsonContentTypeHeaderSchema1 public static class Int32JsonContentTypeHeaderSchema1
diff --git a/samples/client/petstore/java/docs/components/headers/numberheader/NumberHeaderSchema.md b/samples/client/petstore/java/docs/components/headers/numberheader/NumberHeaderSchema.md index 316f1fb3db7..fdb2b89ae35 100644 --- a/samples/client/petstore/java/docs/components/headers/numberheader/NumberHeaderSchema.md +++ b/samples/client/petstore/java/docs/components/headers/numberheader/NumberHeaderSchema.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## NumberHeaderSchema1 public static class NumberHeaderSchema1
diff --git a/samples/client/petstore/java/docs/components/headers/stringheader/StringHeaderSchema.md b/samples/client/petstore/java/docs/components/headers/stringheader/StringHeaderSchema.md index 820e1014414..4be97b9b267 100644 --- a/samples/client/petstore/java/docs/components/headers/stringheader/StringHeaderSchema.md +++ b/samples/client/petstore/java/docs/components/headers/stringheader/StringHeaderSchema.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## StringHeaderSchema1 public static class StringHeaderSchema1
diff --git a/samples/client/petstore/java/docs/components/parameters/pathusername/Schema.md b/samples/client/petstore/java/docs/components/parameters/pathusername/Schema.md index 9fa3d3ee2f2..c0205e89829 100644 --- a/samples/client/petstore/java/docs/components/parameters/pathusername/Schema.md +++ b/samples/client/petstore/java/docs/components/parameters/pathusername/Schema.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema1 public static class Schema1
diff --git a/samples/client/petstore/java/docs/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.md index 705a1c00d0c..b4def376bbf 100644 --- a/samples/client/petstore/java/docs/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.md @@ -39,7 +39,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ApplicationjsonSchemaList](#applicationjsonschemalist) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
@@ -122,7 +122,9 @@ ApplicationjsonSchema.ApplicationjsonSchemaList validatedPayload = | ----------------- | ---------------------- | | [ApplicationjsonSchemaList](#applicationjsonschemalist) | validate([List](#applicationjsonschemalistbuilder) arg, SchemaConfiguration configuration) | | [ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist) | validateAndBox([List](#applicationjsonschemalistbuilder) arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ApplicationjsonSchemaListBuilder public class ApplicationjsonSchemaListBuilder
builder for `List>` diff --git a/samples/client/petstore/java/docs/components/responses/headerswithnobody/headers/location/LocationSchema.md b/samples/client/petstore/java/docs/components/responses/headerswithnobody/headers/location/LocationSchema.md index 3dd333e87d6..09d320716f4 100644 --- a/samples/client/petstore/java/docs/components/responses/headerswithnobody/headers/location/LocationSchema.md +++ b/samples/client/petstore/java/docs/components/responses/headerswithnobody/headers/location/LocationSchema.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## LocationSchema1 public static class LocationSchema1
diff --git a/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.md index aaf79686de6..de72ab3812d 100644 --- a/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.md @@ -39,7 +39,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ApplicationjsonSchemaList](#applicationjsonschemalist) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
@@ -128,7 +128,9 @@ ApplicationjsonSchema.ApplicationjsonSchemaList validatedPayload = | ----------------- | ---------------------- | | [ApplicationjsonSchemaList](#applicationjsonschemalist) | validate([List](#applicationjsonschemalistbuilder) arg, SchemaConfiguration configuration) | | [ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist) | validateAndBox([List](#applicationjsonschemalistbuilder) arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ApplicationjsonSchemaListBuilder public class ApplicationjsonSchemaListBuilder
builder for `List>` diff --git a/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.md index 57a1a6dd3f5..0f246551af2 100644 --- a/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.md +++ b/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.md @@ -39,7 +39,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ApplicationxmlSchemaList](#applicationxmlschemalist) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationxmlSchema1 public static class ApplicationxmlSchema1
@@ -128,7 +128,9 @@ ApplicationxmlSchema.ApplicationxmlSchemaList validatedPayload = | ----------------- | ---------------------- | | [ApplicationxmlSchemaList](#applicationxmlschemalist) | validate([List](#applicationxmlschemalistbuilder) arg, SchemaConfiguration configuration) | | [ApplicationxmlSchema1BoxedList](#applicationxmlschema1boxedlist) | validateAndBox([List](#applicationxmlschemalistbuilder) arg, SchemaConfiguration configuration) | +| [ApplicationxmlSchema1Boxed](#applicationxmlschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ApplicationxmlSchemaListBuilder public class ApplicationxmlSchemaListBuilder
builder for `List>` diff --git a/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.md index ce6aaa0ecdd..315414063ec 100644 --- a/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.md @@ -42,7 +42,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ApplicationjsonSchemaMap](#applicationjsonschemamap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
@@ -87,7 +87,9 @@ ApplicationjsonSchema.ApplicationjsonSchemaMap validatedPayload = | ----------------- | ---------------------- | | [ApplicationjsonSchemaMap](#applicationjsonschemamap) | validate([Map<?, ?>](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | | [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) | validateAndBox([Map<?, ?>](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ApplicationjsonSchemaMapBuilder public class ApplicationjsonSchemaMapBuilder
builder for `Map` @@ -140,7 +142,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonAdditionalProperties public static class ApplicationjsonAdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/headers/someheader/SomeHeaderSchema.md b/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/headers/someheader/SomeHeaderSchema.md index f8503e302a3..57bec3d8d1f 100644 --- a/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/headers/someheader/SomeHeaderSchema.md +++ b/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/headers/someheader/SomeHeaderSchema.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SomeHeaderSchema1 public static class SomeHeaderSchema1
diff --git a/samples/client/petstore/java/docs/components/schemas/AbstractStepMessage.md b/samples/client/petstore/java/docs/components/schemas/AbstractStepMessage.md index 7345e1a8bac..9a9efcc36b6 100644 --- a/samples/client/petstore/java/docs/components/schemas/AbstractStepMessage.md +++ b/samples/client/petstore/java/docs/components/schemas/AbstractStepMessage.md @@ -43,7 +43,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [AbstractStepMessageMap](#abstractstepmessagemap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AbstractStepMessage1 public static class AbstractStepMessage1
@@ -93,7 +93,9 @@ AbstractStepMessage.AbstractStepMessageMap validatedPayload = | ----------------- | ---------------------- | | [AbstractStepMessageMap](#abstractstepmessagemap) | validate([Map<?, ?>](#abstractstepmessagemapbuilder) arg, SchemaConfiguration configuration) | | [AbstractStepMessage1BoxedMap](#abstractstepmessage1boxedmap) | validateAndBox([Map<?, ?>](#abstractstepmessagemapbuilder) arg, SchemaConfiguration configuration) | +| [AbstractStepMessage1Boxed](#abstractstepmessage1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## AbstractStepMessageMap000Builder public class AbstractStepMessageMap000Builder
builder for `Map` @@ -337,7 +339,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Discriminator public static class Discriminator
diff --git a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesClass.md b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesClass.md index 1567a58d274..bf356f1f040 100644 --- a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesClass.md +++ b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesClass.md @@ -109,7 +109,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [AdditionalPropertiesClassMap](#additionalpropertiesclassmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesClass1 public static class AdditionalPropertiesClass1
@@ -189,7 +189,9 @@ AdditionalPropertiesClass.AdditionalPropertiesClassMap validatedPayload = | ----------------- | ---------------------- | | [AdditionalPropertiesClassMap](#additionalpropertiesclassmap) | validate([Map<?, ?>](#additionalpropertiesclassmapbuilder) arg, SchemaConfiguration configuration) | | [AdditionalPropertiesClass1BoxedMap](#additionalpropertiesclass1boxedmap) | validateAndBox([Map<?, ?>](#additionalpropertiesclassmapbuilder) arg, SchemaConfiguration configuration) | +| [AdditionalPropertiesClass1Boxed](#additionalpropertiesclass1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## AdditionalPropertiesClassMapBuilder public class AdditionalPropertiesClassMapBuilder
builder for `Map` @@ -273,7 +275,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [MapWithUndeclaredPropertiesStringMap](#mapwithundeclaredpropertiesstringmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MapWithUndeclaredPropertiesString public static class MapWithUndeclaredPropertiesString
@@ -318,7 +320,9 @@ AdditionalPropertiesClass.MapWithUndeclaredPropertiesStringMap validatedPayload | ----------------- | ---------------------- | | [MapWithUndeclaredPropertiesStringMap](#mapwithundeclaredpropertiesstringmap) | validate([Map<?, ?>](#mapwithundeclaredpropertiesstringmapbuilder) arg, SchemaConfiguration configuration) | | [MapWithUndeclaredPropertiesStringBoxedMap](#mapwithundeclaredpropertiesstringboxedmap) | validateAndBox([Map<?, ?>](#mapwithundeclaredpropertiesstringmapbuilder) arg, SchemaConfiguration configuration) | +| [MapWithUndeclaredPropertiesStringBoxed](#mapwithundeclaredpropertiesstringboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## MapWithUndeclaredPropertiesStringMapBuilder public class MapWithUndeclaredPropertiesStringMapBuilder
builder for `Map` @@ -370,7 +374,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties5 public static class AdditionalProperties5
@@ -405,7 +409,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [EmptyMapMap](#emptymapmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## EmptyMap public static class EmptyMap
@@ -451,7 +455,9 @@ AdditionalPropertiesClass.EmptyMapMap validatedPayload = | ----------------- | ---------------------- | | [EmptyMapMap](#emptymapmap) | validate([Map<?, ?>](#emptymapmapbuilder) arg, SchemaConfiguration configuration) | | [EmptyMapBoxedMap](#emptymapboxedmap) | validateAndBox([Map<?, ?>](#emptymapmapbuilder) arg, SchemaConfiguration configuration) | +| [EmptyMapBoxed](#emptymapboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## EmptyMapMapBuilder public class EmptyMapMapBuilder
builder for `Map` @@ -506,7 +512,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties4BoxedBoolean public record AdditionalProperties4BoxedBoolean
@@ -523,7 +529,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties4BoxedNumber public record AdditionalProperties4BoxedNumber
@@ -540,7 +546,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties4BoxedString public record AdditionalProperties4BoxedString
@@ -557,7 +563,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties4BoxedList public record AdditionalProperties4BoxedList
@@ -574,7 +580,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties4BoxedMap public record AdditionalProperties4BoxedMap
@@ -591,7 +597,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties4 public static class AdditionalProperties4
@@ -626,7 +632,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [MapWithUndeclaredPropertiesAnytype3Map](#mapwithundeclaredpropertiesanytype3map) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MapWithUndeclaredPropertiesAnytype3 public static class MapWithUndeclaredPropertiesAnytype3
@@ -669,7 +675,9 @@ AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype3Map validatedPayloa | ----------------- | ---------------------- | | [MapWithUndeclaredPropertiesAnytype3Map](#mapwithundeclaredpropertiesanytype3map) | validate([Map<?, ?>](#mapwithundeclaredpropertiesanytype3mapbuilder) arg, SchemaConfiguration configuration) | | [MapWithUndeclaredPropertiesAnytype3BoxedMap](#mapwithundeclaredpropertiesanytype3boxedmap) | validateAndBox([Map<?, ?>](#mapwithundeclaredpropertiesanytype3mapbuilder) arg, SchemaConfiguration configuration) | +| [MapWithUndeclaredPropertiesAnytype3Boxed](#mapwithundeclaredpropertiesanytype3boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## MapWithUndeclaredPropertiesAnytype3MapBuilder public class MapWithUndeclaredPropertiesAnytype3MapBuilder
builder for `Map` @@ -734,7 +742,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties3BoxedBoolean public record AdditionalProperties3BoxedBoolean
@@ -751,7 +759,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties3BoxedNumber public record AdditionalProperties3BoxedNumber
@@ -768,7 +776,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties3BoxedString public record AdditionalProperties3BoxedString
@@ -785,7 +793,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties3BoxedList public record AdditionalProperties3BoxedList
@@ -802,7 +810,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties3BoxedMap public record AdditionalProperties3BoxedMap
@@ -819,7 +827,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties3 public static class AdditionalProperties3
@@ -854,7 +862,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MapWithUndeclaredPropertiesAnytype2 public static class MapWithUndeclaredPropertiesAnytype2
@@ -889,7 +897,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MapWithUndeclaredPropertiesAnytype1 public static class MapWithUndeclaredPropertiesAnytype1
@@ -929,7 +937,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Anytype1BoxedBoolean public record Anytype1BoxedBoolean
@@ -946,7 +954,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Anytype1BoxedNumber public record Anytype1BoxedNumber
@@ -963,7 +971,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Anytype1BoxedString public record Anytype1BoxedString
@@ -980,7 +988,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Anytype1BoxedList public record Anytype1BoxedList
@@ -997,7 +1005,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Anytype1BoxedMap public record Anytype1BoxedMap
@@ -1014,7 +1022,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Anytype1 public static class Anytype1
@@ -1049,7 +1057,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [MapOfMapPropertyMap](#mapofmappropertymap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MapOfMapProperty public static class MapOfMapProperty
@@ -1101,7 +1109,9 @@ AdditionalPropertiesClass.MapOfMapPropertyMap validatedPayload = | ----------------- | ---------------------- | | [MapOfMapPropertyMap](#mapofmappropertymap) | validate([Map<?, ?>](#mapofmappropertymapbuilder) arg, SchemaConfiguration configuration) | | [MapOfMapPropertyBoxedMap](#mapofmappropertyboxedmap) | validateAndBox([Map<?, ?>](#mapofmappropertymapbuilder) arg, SchemaConfiguration configuration) | +| [MapOfMapPropertyBoxed](#mapofmappropertyboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## MapOfMapPropertyMapBuilder public class MapOfMapPropertyMapBuilder
builder for `Map>` @@ -1153,7 +1163,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [AdditionalPropertiesMap](#additionalpropertiesmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties1 public static class AdditionalProperties1
@@ -1198,7 +1208,9 @@ AdditionalPropertiesClass.AdditionalPropertiesMap validatedPayload = | ----------------- | ---------------------- | | [AdditionalPropertiesMap](#additionalpropertiesmap) | validate([Map<?, ?>](#additionalpropertiesmapbuilder2) arg, SchemaConfiguration configuration) | | [AdditionalProperties1BoxedMap](#additionalproperties1boxedmap) | validateAndBox([Map<?, ?>](#additionalpropertiesmapbuilder2) arg, SchemaConfiguration configuration) | +| [AdditionalProperties1Boxed](#additionalproperties1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## AdditionalPropertiesMapBuilder2 public class AdditionalPropertiesMapBuilder2
builder for `Map` @@ -1250,7 +1262,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties2 public static class AdditionalProperties2
@@ -1285,7 +1297,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [MapPropertyMap](#mappropertymap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MapProperty public static class MapProperty
@@ -1330,7 +1342,9 @@ AdditionalPropertiesClass.MapPropertyMap validatedPayload = | ----------------- | ---------------------- | | [MapPropertyMap](#mappropertymap) | validate([Map<?, ?>](#mappropertymapbuilder) arg, SchemaConfiguration configuration) | | [MapPropertyBoxedMap](#mappropertyboxedmap) | validateAndBox([Map<?, ?>](#mappropertymapbuilder) arg, SchemaConfiguration configuration) | +| [MapPropertyBoxed](#mappropertyboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## MapPropertyMapBuilder public class MapPropertyMapBuilder
builder for `Map` @@ -1382,7 +1396,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesSchema.md b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesSchema.md index db195321b6e..5598285cc49 100644 --- a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesSchema.md @@ -77,7 +77,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesSchema1 public static class AdditionalPropertiesSchema1
@@ -96,7 +96,9 @@ A schema class that validates payloads | ----------------- | ---------------------- | | FrozenMap | validate(Map<?, ?> arg, SchemaConfiguration configuration) | | [AdditionalPropertiesSchema1BoxedMap](#additionalpropertiesschema1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | +| [AdditionalPropertiesSchema1Boxed](#additionalpropertiesschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema2Boxed public sealed interface Schema2Boxed
permits
@@ -119,7 +121,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [Schema2Map](#schema2map) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema2 public static class Schema2
@@ -162,7 +164,9 @@ AdditionalPropertiesSchema.Schema2Map validatedPayload = | ----------------- | ---------------------- | | [Schema2Map](#schema2map) | validate([Map<?, ?>](#schema2mapbuilder) arg, SchemaConfiguration configuration) | | [Schema2BoxedMap](#schema2boxedmap) | validateAndBox([Map<?, ?>](#schema2mapbuilder) arg, SchemaConfiguration configuration) | +| [Schema2Boxed](#schema2boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema2MapBuilder public class Schema2MapBuilder
builder for `Map` @@ -227,7 +231,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties2BoxedBoolean public record AdditionalProperties2BoxedBoolean
@@ -244,7 +248,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties2BoxedNumber public record AdditionalProperties2BoxedNumber
@@ -261,7 +265,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties2BoxedString public record AdditionalProperties2BoxedString
@@ -278,7 +282,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties2BoxedList public record AdditionalProperties2BoxedList
@@ -295,7 +299,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties2BoxedMap public record AdditionalProperties2BoxedMap
@@ -312,7 +316,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties2 public static class AdditionalProperties2
@@ -344,7 +348,9 @@ A schema class that validates payloads | [AdditionalProperties2BoxedBoolean](#additionalproperties2boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [AdditionalProperties2BoxedMap](#additionalproperties2boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [AdditionalProperties2BoxedList](#additionalproperties2boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [AdditionalProperties2Boxed](#additionalproperties2boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema1Boxed public sealed interface Schema1Boxed
permits
@@ -367,7 +373,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [Schema1Map](#schema1map) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema1 public static class Schema1
@@ -410,7 +416,9 @@ AdditionalPropertiesSchema.Schema1Map validatedPayload = | ----------------- | ---------------------- | | [Schema1Map](#schema1map) | validate([Map<?, ?>](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | [Schema1BoxedMap](#schema1boxedmap) | validateAndBox([Map<?, ?>](#schema1mapbuilder) arg, SchemaConfiguration configuration) | +| [Schema1Boxed](#schema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema1MapBuilder public class Schema1MapBuilder
builder for `Map` @@ -475,7 +483,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties1BoxedBoolean public record AdditionalProperties1BoxedBoolean
@@ -492,7 +500,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties1BoxedNumber public record AdditionalProperties1BoxedNumber
@@ -509,7 +517,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties1BoxedString public record AdditionalProperties1BoxedString
@@ -526,7 +534,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties1BoxedList public record AdditionalProperties1BoxedList
@@ -543,7 +551,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties1BoxedMap public record AdditionalProperties1BoxedMap
@@ -560,7 +568,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties1 public static class AdditionalProperties1
@@ -592,7 +600,9 @@ A schema class that validates payloads | [AdditionalProperties1BoxedBoolean](#additionalproperties1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [AdditionalProperties1BoxedMap](#additionalproperties1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [AdditionalProperties1BoxedList](#additionalproperties1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [AdditionalProperties1Boxed](#additionalproperties1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema0Boxed public sealed interface Schema0Boxed
permits
@@ -615,7 +625,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [Schema0Map](#schema0map) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0 public static class Schema0
@@ -658,7 +668,9 @@ AdditionalPropertiesSchema.Schema0Map validatedPayload = | ----------------- | ---------------------- | | [Schema0Map](#schema0map) | validate([Map<?, ?>](#schema0mapbuilder) arg, SchemaConfiguration configuration) | | [Schema0BoxedMap](#schema0boxedmap) | validateAndBox([Map<?, ?>](#schema0mapbuilder) 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` @@ -723,7 +735,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedBoolean public record AdditionalPropertiesBoxedBoolean
@@ -740,7 +752,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedNumber public record AdditionalPropertiesBoxedNumber
@@ -757,7 +769,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedString public record AdditionalPropertiesBoxedString
@@ -774,7 +786,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedList public record AdditionalPropertiesBoxedList
@@ -791,7 +803,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedMap public record AdditionalPropertiesBoxedMap
@@ -808,7 +820,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesWithArrayOfEnums.md b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesWithArrayOfEnums.md index 5f77650bab9..f130f73d340 100644 --- a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesWithArrayOfEnums.md +++ b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesWithArrayOfEnums.md @@ -47,7 +47,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [AdditionalPropertiesWithArrayOfEnumsMap](#additionalpropertieswitharrayofenumsmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesWithArrayOfEnums1 public static class AdditionalPropertiesWithArrayOfEnums1
@@ -96,7 +96,9 @@ AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesWithArrayOfEnumsMap val | ----------------- | ---------------------- | | [AdditionalPropertiesWithArrayOfEnumsMap](#additionalpropertieswitharrayofenumsmap) | validate([Map<?, ?>](#additionalpropertieswitharrayofenumsmapbuilder) arg, SchemaConfiguration configuration) | | [AdditionalPropertiesWithArrayOfEnums1BoxedMap](#additionalpropertieswitharrayofenums1boxedmap) | validateAndBox([Map<?, ?>](#additionalpropertieswitharrayofenumsmapbuilder) arg, SchemaConfiguration configuration) | +| [AdditionalPropertiesWithArrayOfEnums1Boxed](#additionalpropertieswitharrayofenums1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## AdditionalPropertiesWithArrayOfEnumsMapBuilder public class AdditionalPropertiesWithArrayOfEnumsMapBuilder
builder for `Map>` @@ -148,7 +150,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [AdditionalPropertiesList](#additionalpropertieslist) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties public static class AdditionalProperties
@@ -193,7 +195,9 @@ AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesList validatedPayload = | ----------------- | ---------------------- | | [AdditionalPropertiesList](#additionalpropertieslist) | validate([List](#additionalpropertieslistbuilder) arg, SchemaConfiguration configuration) | | [AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist) | validateAndBox([List](#additionalpropertieslistbuilder) arg, SchemaConfiguration configuration) | +| [AdditionalPropertiesBoxed](#additionalpropertiesboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## AdditionalPropertiesListBuilder public class AdditionalPropertiesListBuilder
builder for `List` diff --git a/samples/client/petstore/java/docs/components/schemas/Address.md b/samples/client/petstore/java/docs/components/schemas/Address.md index 4615ad59ddb..70514eeeaa2 100644 --- a/samples/client/petstore/java/docs/components/schemas/Address.md +++ b/samples/client/petstore/java/docs/components/schemas/Address.md @@ -43,7 +43,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [AddressMap](#addressmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Address1 public static class Address1
@@ -88,7 +88,9 @@ Address.AddressMap validatedPayload = | ----------------- | ---------------------- | | [AddressMap](#addressmap) | validate([Map<?, ?>](#addressmapbuilder) arg, SchemaConfiguration configuration) | | [Address1BoxedMap](#address1boxedmap) | validateAndBox([Map<?, ?>](#addressmapbuilder) arg, SchemaConfiguration configuration) | +| [Address1Boxed](#address1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## AddressMapBuilder public class AddressMapBuilder
builder for `Map` @@ -143,7 +145,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/Animal.md b/samples/client/petstore/java/docs/components/schemas/Animal.md index a24a2e1e397..02bdf510280 100644 --- a/samples/client/petstore/java/docs/components/schemas/Animal.md +++ b/samples/client/petstore/java/docs/components/schemas/Animal.md @@ -46,7 +46,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [AnimalMap](#animalmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Animal1 public static class Animal1
@@ -94,7 +94,9 @@ Animal.AnimalMap validatedPayload = | ----------------- | ---------------------- | | [AnimalMap](#animalmap) | validate([Map<?, ?>](#animalmapbuilder) arg, SchemaConfiguration configuration) | | [Animal1BoxedMap](#animal1boxedmap) | validateAndBox([Map<?, ?>](#animalmapbuilder) arg, SchemaConfiguration configuration) | +| [Animal1Boxed](#animal1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## AnimalMap0Builder public class AnimalMap0Builder
builder for `Map` @@ -173,7 +175,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Color public static class Color
@@ -214,7 +216,9 @@ String validatedPayload = Animal.Color.validate( | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | | [ColorBoxedString](#colorboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [ColorBoxed](#colorboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ClassNameBoxed public sealed interface ClassNameBoxed
permits
@@ -237,7 +241,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ClassName public static class ClassName
diff --git a/samples/client/petstore/java/docs/components/schemas/AnimalFarm.md b/samples/client/petstore/java/docs/components/schemas/AnimalFarm.md index 894f3ecf152..e9c512b9977 100644 --- a/samples/client/petstore/java/docs/components/schemas/AnimalFarm.md +++ b/samples/client/petstore/java/docs/components/schemas/AnimalFarm.md @@ -40,7 +40,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [AnimalFarmList](#animalfarmlist) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AnimalFarm1 public static class AnimalFarm1
@@ -95,7 +95,9 @@ AnimalFarm.AnimalFarmList validatedPayload = | ----------------- | ---------------------- | | [AnimalFarmList](#animalfarmlist) | validate([List](#animalfarmlistbuilder) arg, SchemaConfiguration configuration) | | [AnimalFarm1BoxedList](#animalfarm1boxedlist) | validateAndBox([List](#animalfarmlistbuilder) arg, SchemaConfiguration configuration) | +| [AnimalFarm1Boxed](#animalfarm1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## AnimalFarmListBuilder public class AnimalFarmListBuilder
builder for `List>` diff --git a/samples/client/petstore/java/docs/components/schemas/AnyTypeAndFormat.md b/samples/client/petstore/java/docs/components/schemas/AnyTypeAndFormat.md index 1783d0b7ab1..a48aff6cea5 100644 --- a/samples/client/petstore/java/docs/components/schemas/AnyTypeAndFormat.md +++ b/samples/client/petstore/java/docs/components/schemas/AnyTypeAndFormat.md @@ -112,7 +112,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [AnyTypeAndFormatMap](#anytypeandformatmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AnyTypeAndFormat1 public static class AnyTypeAndFormat1
@@ -155,7 +155,9 @@ AnyTypeAndFormat.AnyTypeAndFormatMap validatedPayload = | ----------------- | ---------------------- | | [AnyTypeAndFormatMap](#anytypeandformatmap) | validate([Map<?, ?>](#anytypeandformatmapbuilder) arg, SchemaConfiguration configuration) | | [AnyTypeAndFormat1BoxedMap](#anytypeandformat1boxedmap) | validateAndBox([Map<?, ?>](#anytypeandformatmapbuilder) arg, SchemaConfiguration configuration) | +| [AnyTypeAndFormat1Boxed](#anytypeandformat1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## AnyTypeAndFormatMapBuilder public class AnyTypeAndFormatMapBuilder
builder for `Map` @@ -306,7 +308,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## FloatSchemaBoxedBoolean public record FloatSchemaBoxedBoolean
@@ -323,7 +325,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## FloatSchemaBoxedNumber public record FloatSchemaBoxedNumber
@@ -340,7 +342,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## FloatSchemaBoxedString public record FloatSchemaBoxedString
@@ -357,7 +359,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## FloatSchemaBoxedList public record FloatSchemaBoxedList
@@ -374,7 +376,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## FloatSchemaBoxedMap public record FloatSchemaBoxedMap
@@ -391,7 +393,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## FloatSchema public static class FloatSchema
@@ -423,7 +425,9 @@ A schema class that validates payloads | [FloatSchemaBoxedBoolean](#floatschemaboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [FloatSchemaBoxedMap](#floatschemaboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [FloatSchemaBoxedList](#floatschemaboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [FloatSchemaBoxed](#floatschemaboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## DoubleSchemaBoxed public sealed interface DoubleSchemaBoxed
permits
@@ -451,7 +455,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## DoubleSchemaBoxedBoolean public record DoubleSchemaBoxedBoolean
@@ -468,7 +472,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## DoubleSchemaBoxedNumber public record DoubleSchemaBoxedNumber
@@ -485,7 +489,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## DoubleSchemaBoxedString public record DoubleSchemaBoxedString
@@ -502,7 +506,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## DoubleSchemaBoxedList public record DoubleSchemaBoxedList
@@ -519,7 +523,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## DoubleSchemaBoxedMap public record DoubleSchemaBoxedMap
@@ -536,7 +540,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## DoubleSchema public static class DoubleSchema
@@ -568,7 +572,9 @@ A schema class that validates payloads | [DoubleSchemaBoxedBoolean](#doubleschemaboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [DoubleSchemaBoxedMap](#doubleschemaboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [DoubleSchemaBoxedList](#doubleschemaboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [DoubleSchemaBoxed](#doubleschemaboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Int64Boxed public sealed interface Int64Boxed
permits
@@ -596,7 +602,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Int64BoxedBoolean public record Int64BoxedBoolean
@@ -613,7 +619,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Int64BoxedNumber public record Int64BoxedNumber
@@ -630,7 +636,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Int64BoxedString public record Int64BoxedString
@@ -647,7 +653,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Int64BoxedList public record Int64BoxedList
@@ -664,7 +670,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Int64BoxedMap public record Int64BoxedMap
@@ -681,7 +687,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Int64 public static class Int64
@@ -713,7 +719,9 @@ A schema class that validates payloads | [Int64BoxedBoolean](#int64boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [Int64BoxedMap](#int64boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [Int64BoxedList](#int64boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [Int64Boxed](#int64boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Int32Boxed public sealed interface Int32Boxed
permits
@@ -741,7 +749,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Int32BoxedBoolean public record Int32BoxedBoolean
@@ -758,7 +766,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Int32BoxedNumber public record Int32BoxedNumber
@@ -775,7 +783,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Int32BoxedString public record Int32BoxedString
@@ -792,7 +800,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Int32BoxedList public record Int32BoxedList
@@ -809,7 +817,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Int32BoxedMap public record Int32BoxedMap
@@ -826,7 +834,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Int32 public static class Int32
@@ -858,7 +866,9 @@ A schema class that validates payloads | [Int32BoxedBoolean](#int32boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [Int32BoxedMap](#int32boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [Int32BoxedList](#int32boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [Int32Boxed](#int32boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## BinaryBoxed public sealed interface BinaryBoxed
permits
@@ -886,7 +896,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## BinaryBoxedBoolean public record BinaryBoxedBoolean
@@ -903,7 +913,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## BinaryBoxedNumber public record BinaryBoxedNumber
@@ -920,7 +930,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## BinaryBoxedString public record BinaryBoxedString
@@ -937,7 +947,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## BinaryBoxedList public record BinaryBoxedList
@@ -954,7 +964,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## BinaryBoxedMap public record BinaryBoxedMap
@@ -971,7 +981,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Binary public static class Binary
@@ -1003,7 +1013,9 @@ A schema class that validates payloads | [BinaryBoxedBoolean](#binaryboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [BinaryBoxedMap](#binaryboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [BinaryBoxedList](#binaryboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [BinaryBoxed](#binaryboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## NumberSchemaBoxed public sealed interface NumberSchemaBoxed
permits
@@ -1031,7 +1043,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## NumberSchemaBoxedBoolean public record NumberSchemaBoxedBoolean
@@ -1048,7 +1060,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## NumberSchemaBoxedNumber public record NumberSchemaBoxedNumber
@@ -1065,7 +1077,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## NumberSchemaBoxedString public record NumberSchemaBoxedString
@@ -1082,7 +1094,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## NumberSchemaBoxedList public record NumberSchemaBoxedList
@@ -1099,7 +1111,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## NumberSchemaBoxedMap public record NumberSchemaBoxedMap
@@ -1116,7 +1128,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## NumberSchema public static class NumberSchema
@@ -1148,7 +1160,9 @@ A schema class that validates payloads | [NumberSchemaBoxedBoolean](#numberschemaboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [NumberSchemaBoxedMap](#numberschemaboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [NumberSchemaBoxedList](#numberschemaboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [NumberSchemaBoxed](#numberschemaboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## DatetimeBoxed public sealed interface DatetimeBoxed
permits
@@ -1176,7 +1190,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## DatetimeBoxedBoolean public record DatetimeBoxedBoolean
@@ -1193,7 +1207,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## DatetimeBoxedNumber public record DatetimeBoxedNumber
@@ -1210,7 +1224,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## DatetimeBoxedString public record DatetimeBoxedString
@@ -1227,7 +1241,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## DatetimeBoxedList public record DatetimeBoxedList
@@ -1244,7 +1258,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## DatetimeBoxedMap public record DatetimeBoxedMap
@@ -1261,7 +1275,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Datetime public static class Datetime
@@ -1293,7 +1307,9 @@ A schema class that validates payloads | [DatetimeBoxedBoolean](#datetimeboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [DatetimeBoxedMap](#datetimeboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [DatetimeBoxedList](#datetimeboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [DatetimeBoxed](#datetimeboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## DateBoxed public sealed interface DateBoxed
permits
@@ -1321,7 +1337,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## DateBoxedBoolean public record DateBoxedBoolean
@@ -1338,7 +1354,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## DateBoxedNumber public record DateBoxedNumber
@@ -1355,7 +1371,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## DateBoxedString public record DateBoxedString
@@ -1372,7 +1388,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## DateBoxedList public record DateBoxedList
@@ -1389,7 +1405,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## DateBoxedMap public record DateBoxedMap
@@ -1406,7 +1422,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Date public static class Date
@@ -1438,7 +1454,9 @@ A schema class that validates payloads | [DateBoxedBoolean](#dateboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [DateBoxedMap](#dateboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [DateBoxedList](#dateboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [DateBoxed](#dateboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## UuidSchemaBoxed public sealed interface UuidSchemaBoxed
permits
@@ -1466,7 +1484,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## UuidSchemaBoxedBoolean public record UuidSchemaBoxedBoolean
@@ -1483,7 +1501,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## UuidSchemaBoxedNumber public record UuidSchemaBoxedNumber
@@ -1500,7 +1518,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## UuidSchemaBoxedString public record UuidSchemaBoxedString
@@ -1517,7 +1535,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## UuidSchemaBoxedList public record UuidSchemaBoxedList
@@ -1534,7 +1552,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## UuidSchemaBoxedMap public record UuidSchemaBoxedMap
@@ -1551,7 +1569,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## UuidSchema public static class UuidSchema
@@ -1583,5 +1601,7 @@ A schema class that validates payloads | [UuidSchemaBoxedBoolean](#uuidschemaboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [UuidSchemaBoxedMap](#uuidschemaboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [UuidSchemaBoxedList](#uuidschemaboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [UuidSchemaBoxed](#uuidschemaboxed) | 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/petstore/java/docs/components/schemas/AnyTypeNotString.md b/samples/client/petstore/java/docs/components/schemas/AnyTypeNotString.md index 8e3a08f4225..e73820abe1d 100644 --- a/samples/client/petstore/java/docs/components/schemas/AnyTypeNotString.md +++ b/samples/client/petstore/java/docs/components/schemas/AnyTypeNotString.md @@ -49,7 +49,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AnyTypeNotString1BoxedBoolean public record AnyTypeNotString1BoxedBoolean
@@ -66,7 +66,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AnyTypeNotString1BoxedNumber public record AnyTypeNotString1BoxedNumber
@@ -83,7 +83,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AnyTypeNotString1BoxedString public record AnyTypeNotString1BoxedString
@@ -100,7 +100,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AnyTypeNotString1BoxedList public record AnyTypeNotString1BoxedList
@@ -117,7 +117,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AnyTypeNotString1BoxedMap public record AnyTypeNotString1BoxedMap
@@ -134,7 +134,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AnyTypeNotString1 public static class AnyTypeNotString1
@@ -166,7 +166,9 @@ A schema class that validates payloads | [AnyTypeNotString1BoxedBoolean](#anytypenotstring1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [AnyTypeNotString1BoxedMap](#anytypenotstring1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [AnyTypeNotString1BoxedList](#anytypenotstring1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [AnyTypeNotString1Boxed](#anytypenotstring1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## NotBoxed public sealed interface NotBoxed
permits
@@ -189,7 +191,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Not public static class Not
diff --git a/samples/client/petstore/java/docs/components/schemas/ApiResponseSchema.md b/samples/client/petstore/java/docs/components/schemas/ApiResponseSchema.md index 010125ef94a..6873d9f1082 100644 --- a/samples/client/petstore/java/docs/components/schemas/ApiResponseSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/ApiResponseSchema.md @@ -49,7 +49,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ApiResponseMap](#apiresponsemap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApiResponseSchema1 public static class ApiResponseSchema1
@@ -98,7 +98,9 @@ ApiResponseSchema.ApiResponseMap validatedPayload = | ----------------- | ---------------------- | | [ApiResponseMap](#apiresponsemap) | validate([Map<?, ?>](#apiresponsemapbuilder) arg, SchemaConfiguration configuration) | | [ApiResponseSchema1BoxedMap](#apiresponseschema1boxedmap) | validateAndBox([Map<?, ?>](#apiresponsemapbuilder) arg, SchemaConfiguration configuration) | +| [ApiResponseSchema1Boxed](#apiresponseschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ApiResponseMapBuilder public class ApiResponseMapBuilder
builder for `Map` @@ -165,7 +167,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Message public static class Message
@@ -200,7 +202,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Type public static class Type
@@ -235,7 +237,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Code public static class Code
diff --git a/samples/client/petstore/java/docs/components/schemas/Apple.md b/samples/client/petstore/java/docs/components/schemas/Apple.md index 2457d550595..7b95725e168 100644 --- a/samples/client/petstore/java/docs/components/schemas/Apple.md +++ b/samples/client/petstore/java/docs/components/schemas/Apple.md @@ -48,7 +48,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Apple1BoxedMap public record Apple1BoxedMap
@@ -65,7 +65,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [AppleMap](#applemap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Apple1 public static class Apple1
@@ -121,7 +121,9 @@ Apple.AppleMap validatedPayload = | [Apple1BoxedVoid](#apple1boxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | | [AppleMap](#applemap) | validate([Map<?, ?>](#applemapbuilder) arg, SchemaConfiguration configuration) | | [Apple1BoxedMap](#apple1boxedmap) | validateAndBox([Map<?, ?>](#applemapbuilder) arg, SchemaConfiguration configuration) | +| [Apple1Boxed](#apple1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## AppleMap0Builder public class AppleMap0Builder
builder for `Map` @@ -200,7 +202,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Origin public static class Origin
@@ -241,7 +243,9 @@ String validatedPayload = Apple.Origin.validate( | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | | [OriginBoxedString](#originboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [OriginBoxed](#originboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## CultivarBoxed public sealed interface CultivarBoxed
permits
@@ -264,7 +268,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Cultivar public static class Cultivar
@@ -305,5 +309,7 @@ String validatedPayload = Apple.Cultivar.validate( | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | | [CultivarBoxedString](#cultivarboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [CultivarBoxed](#cultivarboxed) | 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/petstore/java/docs/components/schemas/AppleReq.md b/samples/client/petstore/java/docs/components/schemas/AppleReq.md index 4c5ab12fe2d..96a1b06bf30 100644 --- a/samples/client/petstore/java/docs/components/schemas/AppleReq.md +++ b/samples/client/petstore/java/docs/components/schemas/AppleReq.md @@ -54,7 +54,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [AppleReqMap](#applereqmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AppleReq1 public static class AppleReq1
@@ -103,7 +103,9 @@ AppleReq.AppleReqMap validatedPayload = | ----------------- | ---------------------- | | [AppleReqMap](#applereqmap) | validate([Map<?, ?>](#applereqmapbuilder) arg, SchemaConfiguration configuration) | | [AppleReq1BoxedMap](#applereq1boxedmap) | validateAndBox([Map<?, ?>](#applereqmapbuilder) arg, SchemaConfiguration configuration) | +| [AppleReq1Boxed](#applereq1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## AppleReqMap0Builder public class AppleReqMap0Builder
builder for `Map` @@ -172,7 +174,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Mealy public static class Mealy
@@ -207,7 +209,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Cultivar public static class Cultivar
@@ -247,7 +249,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedBoolean public record AdditionalPropertiesBoxedBoolean
@@ -264,7 +266,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedNumber public record AdditionalPropertiesBoxedNumber
@@ -281,7 +283,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedString public record AdditionalPropertiesBoxedString
@@ -298,7 +300,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedList public record AdditionalPropertiesBoxedList
@@ -315,7 +317,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedMap public record AdditionalPropertiesBoxedMap
@@ -332,7 +334,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayHoldingAnyType.md b/samples/client/petstore/java/docs/components/schemas/ArrayHoldingAnyType.md index 7402ed74f9f..da9526a643c 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayHoldingAnyType.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayHoldingAnyType.md @@ -48,7 +48,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ArrayHoldingAnyTypeList](#arrayholdinganytypelist) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ArrayHoldingAnyType1 public static class ArrayHoldingAnyType1
@@ -91,7 +91,9 @@ ArrayHoldingAnyType.ArrayHoldingAnyTypeList validatedPayload = | ----------------- | ---------------------- | | [ArrayHoldingAnyTypeList](#arrayholdinganytypelist) | validate([List](#arrayholdinganytypelistbuilder) arg, SchemaConfiguration configuration) | | [ArrayHoldingAnyType1BoxedList](#arrayholdinganytype1boxedlist) | validateAndBox([List](#arrayholdinganytypelistbuilder) arg, SchemaConfiguration configuration) | +| [ArrayHoldingAnyType1Boxed](#arrayholdinganytype1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ArrayHoldingAnyTypeListBuilder public class ArrayHoldingAnyTypeListBuilder
builder for `List<@Nullable Object>` @@ -156,7 +158,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ItemsBoxedBoolean public record ItemsBoxedBoolean
@@ -173,7 +175,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ItemsBoxedNumber public record ItemsBoxedNumber
@@ -190,7 +192,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ItemsBoxedString public record ItemsBoxedString
@@ -207,7 +209,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ItemsBoxedList public record ItemsBoxedList
@@ -224,7 +226,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ItemsBoxedMap public record ItemsBoxedMap
@@ -241,7 +243,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Items public static class Items
diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/java/docs/components/schemas/ArrayOfArrayOfNumberOnly.md index 8164625f791..1aef3911c3c 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayOfArrayOfNumberOnly.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayOfArrayOfNumberOnly.md @@ -55,7 +55,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ArrayOfArrayOfNumberOnlyMap](#arrayofarrayofnumberonlymap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ArrayOfArrayOfNumberOnly1 public static class ArrayOfArrayOfNumberOnly1
@@ -105,7 +105,9 @@ ArrayOfArrayOfNumberOnly.ArrayOfArrayOfNumberOnlyMap validatedPayload = | ----------------- | ---------------------- | | [ArrayOfArrayOfNumberOnlyMap](#arrayofarrayofnumberonlymap) | validate([Map<?, ?>](#arrayofarrayofnumberonlymapbuilder) arg, SchemaConfiguration configuration) | | [ArrayOfArrayOfNumberOnly1BoxedMap](#arrayofarrayofnumberonly1boxedmap) | validateAndBox([Map<?, ?>](#arrayofarrayofnumberonlymapbuilder) arg, SchemaConfiguration configuration) | +| [ArrayOfArrayOfNumberOnly1Boxed](#arrayofarrayofnumberonly1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ArrayOfArrayOfNumberOnlyMapBuilder public class ArrayOfArrayOfNumberOnlyMapBuilder
builder for `Map` @@ -167,7 +169,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ArrayArrayNumberList](#arrayarraynumberlist) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ArrayArrayNumber public static class ArrayArrayNumber
@@ -215,7 +217,9 @@ ArrayOfArrayOfNumberOnly.ArrayArrayNumberList validatedPayload = | ----------------- | ---------------------- | | [ArrayArrayNumberList](#arrayarraynumberlist) | validate([List](#arrayarraynumberlistbuilder) arg, SchemaConfiguration configuration) | | [ArrayArrayNumberBoxedList](#arrayarraynumberboxedlist) | validateAndBox([List](#arrayarraynumberlistbuilder) arg, SchemaConfiguration configuration) | +| [ArrayArrayNumberBoxed](#arrayarraynumberboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ArrayArrayNumberListBuilder public class ArrayArrayNumberListBuilder
builder for `List>` @@ -267,7 +271,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ItemsList](#itemslist) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Items public static class Items
@@ -312,7 +316,9 @@ ArrayOfArrayOfNumberOnly.ItemsList validatedPayload = | ----------------- | ---------------------- | | [ItemsList](#itemslist) | validate([List](#itemslistbuilder) arg, SchemaConfiguration configuration) | | [ItemsBoxedList](#itemsboxedlist) | validateAndBox([List](#itemslistbuilder) arg, SchemaConfiguration configuration) | +| [ItemsBoxed](#itemsboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ItemsListBuilder public class ItemsListBuilder
builder for `List` @@ -367,7 +373,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Items1 public static class Items1
diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayOfEnums.md b/samples/client/petstore/java/docs/components/schemas/ArrayOfEnums.md index 5197111ed9c..7b7f05fe2f0 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayOfEnums.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayOfEnums.md @@ -40,7 +40,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ArrayOfEnumsList](#arrayofenumslist) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ArrayOfEnums1 public static class ArrayOfEnums1
@@ -85,7 +85,9 @@ ArrayOfEnums.ArrayOfEnumsList validatedPayload = | ----------------- | ---------------------- | | [ArrayOfEnumsList](#arrayofenumslist) | validate([List](#arrayofenumslistbuilder) arg, SchemaConfiguration configuration) | | [ArrayOfEnums1BoxedList](#arrayofenums1boxedlist) | validateAndBox([List](#arrayofenumslistbuilder) arg, SchemaConfiguration configuration) | +| [ArrayOfEnums1Boxed](#arrayofenums1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ArrayOfEnumsListBuilder public class ArrayOfEnumsListBuilder
builder for `List<@Nullable String>` diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayOfNumberOnly.md b/samples/client/petstore/java/docs/components/schemas/ArrayOfNumberOnly.md index baf857de624..fd7acf98bd9 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayOfNumberOnly.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayOfNumberOnly.md @@ -50,7 +50,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ArrayOfNumberOnlyMap](#arrayofnumberonlymap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ArrayOfNumberOnly1 public static class ArrayOfNumberOnly1
@@ -98,7 +98,9 @@ ArrayOfNumberOnly.ArrayOfNumberOnlyMap validatedPayload = | ----------------- | ---------------------- | | [ArrayOfNumberOnlyMap](#arrayofnumberonlymap) | validate([Map<?, ?>](#arrayofnumberonlymapbuilder) arg, SchemaConfiguration configuration) | | [ArrayOfNumberOnly1BoxedMap](#arrayofnumberonly1boxedmap) | validateAndBox([Map<?, ?>](#arrayofnumberonlymapbuilder) arg, SchemaConfiguration configuration) | +| [ArrayOfNumberOnly1Boxed](#arrayofnumberonly1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ArrayOfNumberOnlyMapBuilder public class ArrayOfNumberOnlyMapBuilder
builder for `Map` @@ -160,7 +162,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ArrayNumberList](#arraynumberlist) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ArrayNumber public static class ArrayNumber
@@ -205,7 +207,9 @@ ArrayOfNumberOnly.ArrayNumberList validatedPayload = | ----------------- | ---------------------- | | [ArrayNumberList](#arraynumberlist) | validate([List](#arraynumberlistbuilder) arg, SchemaConfiguration configuration) | | [ArrayNumberBoxedList](#arraynumberboxedlist) | validateAndBox([List](#arraynumberlistbuilder) arg, SchemaConfiguration configuration) | +| [ArrayNumberBoxed](#arraynumberboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ArrayNumberListBuilder public class ArrayNumberListBuilder
builder for `List` @@ -260,7 +264,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Items public static class Items
diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayTest.md b/samples/client/petstore/java/docs/components/schemas/ArrayTest.md index 624ee4d0df9..c8d90781b5a 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayTest.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayTest.md @@ -73,7 +73,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ArrayTestMap](#arraytestmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ArrayTest1 public static class ArrayTest1
@@ -144,7 +144,9 @@ ArrayTest.ArrayTestMap validatedPayload = | ----------------- | ---------------------- | | [ArrayTestMap](#arraytestmap) | validate([Map<?, ?>](#arraytestmapbuilder) arg, SchemaConfiguration configuration) | | [ArrayTest1BoxedMap](#arraytest1boxedmap) | validateAndBox([Map<?, ?>](#arraytestmapbuilder) arg, SchemaConfiguration configuration) | +| [ArrayTest1Boxed](#arraytest1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ArrayTestMapBuilder public class ArrayTestMapBuilder
builder for `Map` @@ -210,7 +212,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ArrayArrayOfModelList](#arrayarrayofmodellist) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ArrayArrayOfModel public static class ArrayArrayOfModel
@@ -267,7 +269,9 @@ ArrayTest.ArrayArrayOfModelList validatedPayload = | ----------------- | ---------------------- | | [ArrayArrayOfModelList](#arrayarrayofmodellist) | validate([List](#arrayarrayofmodellistbuilder) arg, SchemaConfiguration configuration) | | [ArrayArrayOfModelBoxedList](#arrayarrayofmodelboxedlist) | validateAndBox([List](#arrayarrayofmodellistbuilder) arg, SchemaConfiguration configuration) | +| [ArrayArrayOfModelBoxed](#arrayarrayofmodelboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ArrayArrayOfModelListBuilder public class ArrayArrayOfModelListBuilder
builder for `List>>` @@ -319,7 +323,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ItemsList1](#itemslist1) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Items3 public static class Items3
@@ -374,7 +378,9 @@ ArrayTest.ItemsList1 validatedPayload = | ----------------- | ---------------------- | | [ItemsList1](#itemslist1) | validate([List](#itemslistbuilder1) arg, SchemaConfiguration configuration) | | [Items3BoxedList](#items3boxedlist) | validateAndBox([List](#itemslistbuilder1) arg, SchemaConfiguration configuration) | +| [Items3Boxed](#items3boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ItemsListBuilder1 public class ItemsListBuilder1
builder for `List>` @@ -426,7 +432,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ArrayArrayOfIntegerList](#arrayarrayofintegerlist) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ArrayArrayOfInteger public static class ArrayArrayOfInteger
@@ -474,7 +480,9 @@ ArrayTest.ArrayArrayOfIntegerList validatedPayload = | ----------------- | ---------------------- | | [ArrayArrayOfIntegerList](#arrayarrayofintegerlist) | validate([List](#arrayarrayofintegerlistbuilder) arg, SchemaConfiguration configuration) | | [ArrayArrayOfIntegerBoxedList](#arrayarrayofintegerboxedlist) | validateAndBox([List](#arrayarrayofintegerlistbuilder) arg, SchemaConfiguration configuration) | +| [ArrayArrayOfIntegerBoxed](#arrayarrayofintegerboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ArrayArrayOfIntegerListBuilder public class ArrayArrayOfIntegerListBuilder
builder for `List>` @@ -526,7 +534,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ItemsList](#itemslist) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Items1 public static class Items1
@@ -571,7 +579,9 @@ ArrayTest.ItemsList validatedPayload = | ----------------- | ---------------------- | | [ItemsList](#itemslist) | validate([List](#itemslistbuilder) arg, SchemaConfiguration configuration) | | [Items1BoxedList](#items1boxedlist) | validateAndBox([List](#itemslistbuilder) arg, SchemaConfiguration configuration) | +| [Items1Boxed](#items1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ItemsListBuilder public class ItemsListBuilder
builder for `List` @@ -626,7 +636,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Items2 public static class Items2
@@ -661,7 +671,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ArrayOfStringList](#arrayofstringlist) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ArrayOfString public static class ArrayOfString
@@ -706,7 +716,9 @@ ArrayTest.ArrayOfStringList validatedPayload = | ----------------- | ---------------------- | | [ArrayOfStringList](#arrayofstringlist) | validate([List](#arrayofstringlistbuilder) arg, SchemaConfiguration configuration) | | [ArrayOfStringBoxedList](#arrayofstringboxedlist) | validateAndBox([List](#arrayofstringlistbuilder) arg, SchemaConfiguration configuration) | +| [ArrayOfStringBoxed](#arrayofstringboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ArrayOfStringListBuilder public class ArrayOfStringListBuilder
builder for `List` @@ -758,7 +770,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Items public static class Items
diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayWithValidationsInItems.md b/samples/client/petstore/java/docs/components/schemas/ArrayWithValidationsInItems.md index d1bb1424c79..aecaa52f816 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayWithValidationsInItems.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayWithValidationsInItems.md @@ -43,7 +43,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ArrayWithValidationsInItemsList](#arraywithvalidationsinitemslist) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ArrayWithValidationsInItems1 public static class ArrayWithValidationsInItems1
@@ -89,7 +89,9 @@ ArrayWithValidationsInItems.ArrayWithValidationsInItemsList validatedPayload = | ----------------- | ---------------------- | | [ArrayWithValidationsInItemsList](#arraywithvalidationsinitemslist) | validate([List](#arraywithvalidationsinitemslistbuilder) arg, SchemaConfiguration configuration) | | [ArrayWithValidationsInItems1BoxedList](#arraywithvalidationsinitems1boxedlist) | validateAndBox([List](#arraywithvalidationsinitemslistbuilder) arg, SchemaConfiguration configuration) | +| [ArrayWithValidationsInItems1Boxed](#arraywithvalidationsinitems1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ArrayWithValidationsInItemsListBuilder public class ArrayWithValidationsInItemsListBuilder
builder for `List` @@ -144,7 +146,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Items public static class Items
@@ -186,5 +188,7 @@ long validatedPayload = ArrayWithValidationsInItems.Items.validate( | ----------------- | ---------------------- | | long | validate(long arg, SchemaConfiguration configuration) | | [ItemsBoxedNumber](#itemsboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [ItemsBoxed](#itemsboxed) | 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/petstore/java/docs/components/schemas/Banana.md b/samples/client/petstore/java/docs/components/schemas/Banana.md index d99b6849168..f3e45d2b1c8 100644 --- a/samples/client/petstore/java/docs/components/schemas/Banana.md +++ b/samples/client/petstore/java/docs/components/schemas/Banana.md @@ -43,7 +43,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [BananaMap](#bananamap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Banana1 public static class Banana1
@@ -89,7 +89,9 @@ Banana.BananaMap validatedPayload = | ----------------- | ---------------------- | | [BananaMap](#bananamap) | validate([Map<?, ?>](#bananamapbuilder) arg, SchemaConfiguration configuration) | | [Banana1BoxedMap](#banana1boxedmap) | validateAndBox([Map<?, ?>](#bananamapbuilder) arg, SchemaConfiguration configuration) | +| [Banana1Boxed](#banana1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## BananaMap0Builder public class BananaMap0Builder
builder for `Map` @@ -169,7 +171,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## LengthCm public static class LengthCm
diff --git a/samples/client/petstore/java/docs/components/schemas/BananaReq.md b/samples/client/petstore/java/docs/components/schemas/BananaReq.md index c55a7a1f465..022532b4750 100644 --- a/samples/client/petstore/java/docs/components/schemas/BananaReq.md +++ b/samples/client/petstore/java/docs/components/schemas/BananaReq.md @@ -54,7 +54,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [BananaReqMap](#bananareqmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## BananaReq1 public static class BananaReq1
@@ -103,7 +103,9 @@ BananaReq.BananaReqMap validatedPayload = | ----------------- | ---------------------- | | [BananaReqMap](#bananareqmap) | validate([Map<?, ?>](#bananareqmapbuilder) arg, SchemaConfiguration configuration) | | [BananaReq1BoxedMap](#bananareq1boxedmap) | validateAndBox([Map<?, ?>](#bananareqmapbuilder) arg, SchemaConfiguration configuration) | +| [BananaReq1Boxed](#bananareq1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## BananaReqMap0Builder public class BananaReqMap0Builder
builder for `Map` @@ -175,7 +177,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Sweet public static class Sweet
@@ -210,7 +212,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## LengthCm public static class LengthCm
@@ -250,7 +252,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedBoolean public record AdditionalPropertiesBoxedBoolean
@@ -267,7 +269,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedNumber public record AdditionalPropertiesBoxedNumber
@@ -284,7 +286,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedString public record AdditionalPropertiesBoxedString
@@ -301,7 +303,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedList public record AdditionalPropertiesBoxedList
@@ -318,7 +320,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedMap public record AdditionalPropertiesBoxedMap
@@ -335,7 +337,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/Bar.md b/samples/client/petstore/java/docs/components/schemas/Bar.md index 191939af7fb..6c9a6ede38d 100644 --- a/samples/client/petstore/java/docs/components/schemas/Bar.md +++ b/samples/client/petstore/java/docs/components/schemas/Bar.md @@ -36,7 +36,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Bar1 public static class Bar1
@@ -77,5 +77,7 @@ String validatedPayload = Bar.Bar1.validate( | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | | [Bar1BoxedString](#bar1boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Bar1Boxed](#bar1boxed) | 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/petstore/java/docs/components/schemas/BasquePig.md b/samples/client/petstore/java/docs/components/schemas/BasquePig.md index f14feb72d8a..6078752c421 100644 --- a/samples/client/petstore/java/docs/components/schemas/BasquePig.md +++ b/samples/client/petstore/java/docs/components/schemas/BasquePig.md @@ -45,7 +45,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [BasquePigMap](#basquepigmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## BasquePig1 public static class BasquePig1
@@ -91,7 +91,9 @@ BasquePig.BasquePigMap validatedPayload = | ----------------- | ---------------------- | | [BasquePigMap](#basquepigmap) | validate([Map<?, ?>](#basquepigmapbuilder) arg, SchemaConfiguration configuration) | | [BasquePig1BoxedMap](#basquepig1boxedmap) | validateAndBox([Map<?, ?>](#basquepigmapbuilder) arg, SchemaConfiguration configuration) | +| [BasquePig1Boxed](#basquepig1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## BasquePigMap0Builder public class BasquePigMap0Builder
builder for `Map` @@ -169,7 +171,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ClassName public static class ClassName
@@ -211,7 +213,9 @@ String validatedPayload = BasquePig.ClassName.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringClassNameEnums](#stringclassnameenums) arg, SchemaConfiguration configuration) | | [ClassNameBoxedString](#classnameboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [ClassNameBoxed](#classnameboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringClassNameEnums public enum StringClassNameEnums
extends `Enum` diff --git a/samples/client/petstore/java/docs/components/schemas/BooleanEnum.md b/samples/client/petstore/java/docs/components/schemas/BooleanEnum.md index 6ae209d1153..ef2be166b28 100644 --- a/samples/client/petstore/java/docs/components/schemas/BooleanEnum.md +++ b/samples/client/petstore/java/docs/components/schemas/BooleanEnum.md @@ -38,7 +38,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## BooleanEnum1 public static class BooleanEnum1
@@ -80,7 +80,9 @@ boolean validatedPayload = BooleanEnum.BooleanEnum1.validate( | boolean | validate(boolean arg, SchemaConfiguration configuration) | | boolean | validate([BooleanBooleanEnumEnums](#booleanbooleanenumenums) arg, SchemaConfiguration configuration) | | [BooleanEnum1BoxedBoolean](#booleanenum1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | +| [BooleanEnum1Boxed](#booleanenum1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## BooleanBooleanEnumEnums public enum BooleanBooleanEnumEnums
extends `Enum` diff --git a/samples/client/petstore/java/docs/components/schemas/BooleanSchema.md b/samples/client/petstore/java/docs/components/schemas/BooleanSchema.md index bb3641bdb9d..6ab7ba6f4a9 100644 --- a/samples/client/petstore/java/docs/components/schemas/BooleanSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/BooleanSchema.md @@ -36,7 +36,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## BooleanSchema1 public static class BooleanSchema1
diff --git a/samples/client/petstore/java/docs/components/schemas/Capitalization.md b/samples/client/petstore/java/docs/components/schemas/Capitalization.md index 824d5205452..1973864c8f1 100644 --- a/samples/client/petstore/java/docs/components/schemas/Capitalization.md +++ b/samples/client/petstore/java/docs/components/schemas/Capitalization.md @@ -58,7 +58,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [CapitalizationMap](#capitalizationmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Capitalization1 public static class Capitalization1
@@ -113,7 +113,9 @@ Capitalization.CapitalizationMap validatedPayload = | ----------------- | ---------------------- | | [CapitalizationMap](#capitalizationmap) | validate([Map<?, ?>](#capitalizationmapbuilder) arg, SchemaConfiguration configuration) | | [Capitalization1BoxedMap](#capitalization1boxedmap) | validateAndBox([Map<?, ?>](#capitalizationmapbuilder) arg, SchemaConfiguration configuration) | +| [Capitalization1Boxed](#capitalization1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## CapitalizationMapBuilder public class CapitalizationMapBuilder
builder for `Map` @@ -185,7 +187,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ATTNAME public static class ATTNAME
@@ -223,7 +225,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SCAETHFlowPoints public static class SCAETHFlowPoints
@@ -258,7 +260,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## CapitalSnake public static class CapitalSnake
@@ -293,7 +295,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SmallSnake public static class SmallSnake
@@ -328,7 +330,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## CapitalCamel public static class CapitalCamel
@@ -363,7 +365,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SmallCamel public static class SmallCamel
diff --git a/samples/client/petstore/java/docs/components/schemas/Cat.md b/samples/client/petstore/java/docs/components/schemas/Cat.md index 33da04fbd40..58c78e399b3 100644 --- a/samples/client/petstore/java/docs/components/schemas/Cat.md +++ b/samples/client/petstore/java/docs/components/schemas/Cat.md @@ -56,7 +56,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Cat1BoxedBoolean public record Cat1BoxedBoolean
@@ -73,7 +73,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Cat1BoxedNumber public record Cat1BoxedNumber
@@ -90,7 +90,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Cat1BoxedString public record Cat1BoxedString
@@ -107,7 +107,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Cat1BoxedList public record Cat1BoxedList
@@ -124,7 +124,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Cat1BoxedMap public record Cat1BoxedMap
@@ -141,7 +141,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Cat1 public static class Cat1
@@ -173,7 +173,9 @@ A schema class that validates payloads | [Cat1BoxedBoolean](#cat1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [Cat1BoxedMap](#cat1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [Cat1BoxedList](#cat1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [Cat1Boxed](#cat1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema1Boxed public sealed interface Schema1Boxed
permits
@@ -196,7 +198,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [Schema1Map](#schema1map) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema1 public static class Schema1
@@ -241,7 +243,9 @@ Cat.Schema1Map validatedPayload = | ----------------- | ---------------------- | | [Schema1Map](#schema1map) | validate([Map<?, ?>](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | [Schema1BoxedMap](#schema1boxedmap) | validateAndBox([Map<?, ?>](#schema1mapbuilder) arg, SchemaConfiguration configuration) | +| [Schema1Boxed](#schema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema1MapBuilder public class Schema1MapBuilder
builder for `Map` @@ -303,7 +307,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Declawed public static class Declawed
diff --git a/samples/client/petstore/java/docs/components/schemas/Category.md b/samples/client/petstore/java/docs/components/schemas/Category.md index fd082995a52..7dabeb4d722 100644 --- a/samples/client/petstore/java/docs/components/schemas/Category.md +++ b/samples/client/petstore/java/docs/components/schemas/Category.md @@ -46,7 +46,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [CategoryMap](#categorymap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Category1 public static class Category1
@@ -94,7 +94,9 @@ Category.CategoryMap validatedPayload = | ----------------- | ---------------------- | | [CategoryMap](#categorymap) | validate([Map<?, ?>](#categorymapbuilder) arg, SchemaConfiguration configuration) | | [Category1BoxedMap](#category1boxedmap) | validateAndBox([Map<?, ?>](#categorymapbuilder) arg, SchemaConfiguration configuration) | +| [Category1Boxed](#category1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## CategoryMap0Builder public class CategoryMap0Builder
builder for `Map` @@ -176,7 +178,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Name public static class Name
@@ -217,7 +219,9 @@ String validatedPayload = Category.Name.validate( | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | | [NameBoxedString](#nameboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [NameBoxed](#nameboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## IdBoxed public sealed interface IdBoxed
permits
@@ -240,7 +244,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Id public static class Id
diff --git a/samples/client/petstore/java/docs/components/schemas/ChildCat.md b/samples/client/petstore/java/docs/components/schemas/ChildCat.md index 9c2947c385b..8ce7dc884ad 100644 --- a/samples/client/petstore/java/docs/components/schemas/ChildCat.md +++ b/samples/client/petstore/java/docs/components/schemas/ChildCat.md @@ -56,7 +56,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ChildCat1BoxedBoolean public record ChildCat1BoxedBoolean
@@ -73,7 +73,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ChildCat1BoxedNumber public record ChildCat1BoxedNumber
@@ -90,7 +90,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ChildCat1BoxedString public record ChildCat1BoxedString
@@ -107,7 +107,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ChildCat1BoxedList public record ChildCat1BoxedList
@@ -124,7 +124,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ChildCat1BoxedMap public record ChildCat1BoxedMap
@@ -141,7 +141,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ChildCat1 public static class ChildCat1
@@ -173,7 +173,9 @@ A schema class that validates payloads | [ChildCat1BoxedBoolean](#childcat1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ChildCat1BoxedMap](#childcat1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [ChildCat1BoxedList](#childcat1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ChildCat1Boxed](#childcat1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema1Boxed public sealed interface Schema1Boxed
permits
@@ -196,7 +198,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [Schema1Map](#schema1map) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema1 public static class Schema1
@@ -241,7 +243,9 @@ ChildCat.Schema1Map validatedPayload = | ----------------- | ---------------------- | | [Schema1Map](#schema1map) | validate([Map<?, ?>](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | [Schema1BoxedMap](#schema1boxedmap) | validateAndBox([Map<?, ?>](#schema1mapbuilder) arg, SchemaConfiguration configuration) | +| [Schema1Boxed](#schema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema1MapBuilder public class Schema1MapBuilder
builder for `Map` @@ -303,7 +307,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Name public static class Name
diff --git a/samples/client/petstore/java/docs/components/schemas/ClassModel.md b/samples/client/petstore/java/docs/components/schemas/ClassModel.md index 71f0ec72a68..acb96ab31f4 100644 --- a/samples/client/petstore/java/docs/components/schemas/ClassModel.md +++ b/samples/client/petstore/java/docs/components/schemas/ClassModel.md @@ -53,7 +53,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ClassModel1BoxedBoolean public record ClassModel1BoxedBoolean
@@ -70,7 +70,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ClassModel1BoxedNumber public record ClassModel1BoxedNumber
@@ -87,7 +87,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ClassModel1BoxedString public record ClassModel1BoxedString
@@ -104,7 +104,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ClassModel1BoxedList public record ClassModel1BoxedList
@@ -121,7 +121,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ClassModel1BoxedMap public record ClassModel1BoxedMap
@@ -138,7 +138,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ClassModelMap](#classmodelmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ClassModel1 public static class ClassModel1
@@ -173,7 +173,9 @@ Model for testing model with "_class" property | [ClassModel1BoxedBoolean](#classmodel1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ClassModel1BoxedMap](#classmodel1boxedmap) | validateAndBox([Map<?, ?>](#classmodelmapbuilder) arg, SchemaConfiguration configuration) | | [ClassModel1BoxedList](#classmodel1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ClassModel1Boxed](#classmodel1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ClassModelMapBuilder public class ClassModelMapBuilder
builder for `Map` @@ -235,7 +237,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ClassSchema public static class ClassSchema
diff --git a/samples/client/petstore/java/docs/components/schemas/Client.md b/samples/client/petstore/java/docs/components/schemas/Client.md index e6e5ae67f53..47f0f34cdaf 100644 --- a/samples/client/petstore/java/docs/components/schemas/Client.md +++ b/samples/client/petstore/java/docs/components/schemas/Client.md @@ -43,7 +43,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ClientMap](#clientmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Client1 public static class Client1
@@ -88,7 +88,9 @@ Client.ClientMap validatedPayload = | ----------------- | ---------------------- | | [ClientMap](#clientmap) | validate([Map<?, ?>](#clientmapbuilder1) arg, SchemaConfiguration configuration) | | [Client1BoxedMap](#client1boxedmap) | validateAndBox([Map<?, ?>](#clientmapbuilder1) arg, SchemaConfiguration configuration) | +| [Client1Boxed](#client1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ClientMapBuilder1 public class ClientMapBuilder1
builder for `Map` @@ -150,7 +152,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Client2 public static class Client2
diff --git a/samples/client/petstore/java/docs/components/schemas/ComplexQuadrilateral.md b/samples/client/petstore/java/docs/components/schemas/ComplexQuadrilateral.md index 366690f608f..fb98477fcd9 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComplexQuadrilateral.md +++ b/samples/client/petstore/java/docs/components/schemas/ComplexQuadrilateral.md @@ -58,7 +58,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ComplexQuadrilateral1BoxedBoolean public record ComplexQuadrilateral1BoxedBoolean
@@ -75,7 +75,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ComplexQuadrilateral1BoxedNumber public record ComplexQuadrilateral1BoxedNumber
@@ -92,7 +92,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ComplexQuadrilateral1BoxedString public record ComplexQuadrilateral1BoxedString
@@ -109,7 +109,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ComplexQuadrilateral1BoxedList public record ComplexQuadrilateral1BoxedList
@@ -126,7 +126,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ComplexQuadrilateral1BoxedMap public record ComplexQuadrilateral1BoxedMap
@@ -143,7 +143,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ComplexQuadrilateral1 public static class ComplexQuadrilateral1
@@ -175,7 +175,9 @@ A schema class that validates payloads | [ComplexQuadrilateral1BoxedBoolean](#complexquadrilateral1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ComplexQuadrilateral1BoxedMap](#complexquadrilateral1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [ComplexQuadrilateral1BoxedList](#complexquadrilateral1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ComplexQuadrilateral1Boxed](#complexquadrilateral1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema1Boxed public sealed interface Schema1Boxed
permits
@@ -198,7 +200,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [Schema1Map](#schema1map) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema1 public static class Schema1
@@ -243,7 +245,9 @@ ComplexQuadrilateral.Schema1Map validatedPayload = | ----------------- | ---------------------- | | [Schema1Map](#schema1map) | validate([Map<?, ?>](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | [Schema1BoxedMap](#schema1boxedmap) | validateAndBox([Map<?, ?>](#schema1mapbuilder) arg, SchemaConfiguration configuration) | +| [Schema1Boxed](#schema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema1MapBuilder public class Schema1MapBuilder
builder for `Map` @@ -306,7 +310,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## QuadrilateralType public static class QuadrilateralType
@@ -348,7 +352,9 @@ String validatedPayload = ComplexQuadrilateral.QuadrilateralType.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringQuadrilateralTypeEnums](#stringquadrilateraltypeenums) arg, SchemaConfiguration configuration) | | [QuadrilateralTypeBoxedString](#quadrilateraltypeboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [QuadrilateralTypeBoxed](#quadrilateraltypeboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringQuadrilateralTypeEnums public enum StringQuadrilateralTypeEnums
extends `Enum` diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedAnyOfDifferentTypesNoValidations.md b/samples/client/petstore/java/docs/components/schemas/ComposedAnyOfDifferentTypesNoValidations.md index bec6c28c970..0a0d049840e 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedAnyOfDifferentTypesNoValidations.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedAnyOfDifferentTypesNoValidations.md @@ -105,7 +105,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ComposedAnyOfDifferentTypesNoValidations1BoxedBoolean public record ComposedAnyOfDifferentTypesNoValidations1BoxedBoolean
@@ -122,7 +122,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ComposedAnyOfDifferentTypesNoValidations1BoxedNumber public record ComposedAnyOfDifferentTypesNoValidations1BoxedNumber
@@ -139,7 +139,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ComposedAnyOfDifferentTypesNoValidations1BoxedString public record ComposedAnyOfDifferentTypesNoValidations1BoxedString
@@ -156,7 +156,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ComposedAnyOfDifferentTypesNoValidations1BoxedList public record ComposedAnyOfDifferentTypesNoValidations1BoxedList
@@ -173,7 +173,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ComposedAnyOfDifferentTypesNoValidations1BoxedMap public record ComposedAnyOfDifferentTypesNoValidations1BoxedMap
@@ -190,7 +190,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ComposedAnyOfDifferentTypesNoValidations1 public static class ComposedAnyOfDifferentTypesNoValidations1
@@ -222,7 +222,9 @@ A schema class that validates payloads | [ComposedAnyOfDifferentTypesNoValidations1BoxedBoolean](#composedanyofdifferenttypesnovalidations1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ComposedAnyOfDifferentTypesNoValidations1BoxedMap](#composedanyofdifferenttypesnovalidations1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [ComposedAnyOfDifferentTypesNoValidations1BoxedList](#composedanyofdifferenttypesnovalidations1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ComposedAnyOfDifferentTypesNoValidations1Boxed](#composedanyofdifferenttypesnovalidations1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema15Boxed public sealed interface Schema15Boxed
permits
@@ -245,7 +247,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema15 public static class Schema15
@@ -280,7 +282,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema14 public static class Schema14
@@ -315,7 +317,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema13 public static class Schema13
@@ -350,7 +352,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema12 public static class Schema12
@@ -385,7 +387,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema11 public static class Schema11
@@ -420,7 +422,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema10 public static class Schema10
@@ -455,7 +457,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [Schema9List](#schema9list) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema9 public static class Schema9
@@ -498,7 +500,9 @@ ComposedAnyOfDifferentTypesNoValidations.Schema9List validatedPayload = | ----------------- | ---------------------- | | [Schema9List](#schema9list) | validate([List](#schema9listbuilder) arg, SchemaConfiguration configuration) | | [Schema9BoxedList](#schema9boxedlist) | validateAndBox([List](#schema9listbuilder) arg, SchemaConfiguration configuration) | +| [Schema9Boxed](#schema9boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema9ListBuilder public class Schema9ListBuilder
builder for `List<@Nullable Object>` @@ -563,7 +567,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ItemsBoxedBoolean public record ItemsBoxedBoolean
@@ -580,7 +584,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ItemsBoxedNumber public record ItemsBoxedNumber
@@ -597,7 +601,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ItemsBoxedString public record ItemsBoxedString
@@ -614,7 +618,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ItemsBoxedList public record ItemsBoxedList
@@ -631,7 +635,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ItemsBoxedMap public record ItemsBoxedMap
@@ -648,7 +652,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Items public static class Items
@@ -683,7 +687,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema8 public static class Schema8
@@ -718,7 +722,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema7 public static class Schema7
@@ -753,7 +757,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema6 public static class Schema6
@@ -788,7 +792,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema5 public static class Schema5
@@ -823,7 +827,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema4 public static class Schema4
@@ -865,7 +869,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema2 public static class Schema2
@@ -900,7 +904,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema1 public static class Schema1
@@ -935,7 +939,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0 public static class Schema0
diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedArray.md b/samples/client/petstore/java/docs/components/schemas/ComposedArray.md index c499d2adfad..83d40e55d04 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedArray.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedArray.md @@ -48,7 +48,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ComposedArrayList](#composedarraylist) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ComposedArray1 public static class ComposedArray1
@@ -91,7 +91,9 @@ ComposedArray.ComposedArrayList validatedPayload = | ----------------- | ---------------------- | | [ComposedArrayList](#composedarraylist) | validate([List](#composedarraylistbuilder) arg, SchemaConfiguration configuration) | | [ComposedArray1BoxedList](#composedarray1boxedlist) | validateAndBox([List](#composedarraylistbuilder) arg, SchemaConfiguration configuration) | +| [ComposedArray1Boxed](#composedarray1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ComposedArrayListBuilder public class ComposedArrayListBuilder
builder for `List<@Nullable Object>` @@ -156,7 +158,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ItemsBoxedBoolean public record ItemsBoxedBoolean
@@ -173,7 +175,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ItemsBoxedNumber public record ItemsBoxedNumber
@@ -190,7 +192,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ItemsBoxedString public record ItemsBoxedString
@@ -207,7 +209,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ItemsBoxedList public record ItemsBoxedList
@@ -224,7 +226,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ItemsBoxedMap public record ItemsBoxedMap
@@ -241,7 +243,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Items public static class Items
diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedBool.md b/samples/client/petstore/java/docs/components/schemas/ComposedBool.md index dea7d96e241..8e5fdf228db 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedBool.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedBool.md @@ -44,7 +44,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ComposedBool1 public static class ComposedBool1
@@ -85,7 +85,9 @@ boolean validatedPayload = ComposedBool.ComposedBool1.validate( | ----------------- | ---------------------- | | boolean | validate(boolean arg, SchemaConfiguration configuration) | | [ComposedBool1BoxedBoolean](#composedbool1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | +| [ComposedBool1Boxed](#composedbool1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema0Boxed public sealed interface Schema0Boxed
permits
@@ -113,7 +115,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0BoxedBoolean public record Schema0BoxedBoolean
@@ -130,7 +132,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0BoxedNumber public record Schema0BoxedNumber
@@ -147,7 +149,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0BoxedString public record Schema0BoxedString
@@ -164,7 +166,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0BoxedList public record Schema0BoxedList
@@ -181,7 +183,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0BoxedMap public record Schema0BoxedMap
@@ -198,7 +200,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0 public static class Schema0
diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedNone.md b/samples/client/petstore/java/docs/components/schemas/ComposedNone.md index 9b4a09857bc..7d9c51873de 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedNone.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedNone.md @@ -44,7 +44,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ComposedNone1 public static class ComposedNone1
@@ -85,7 +85,9 @@ Void validatedPayload = ComposedNone.ComposedNone1.validate( | ----------------- | ---------------------- | | Void | validate(Void arg, SchemaConfiguration configuration) | | [ComposedNone1BoxedVoid](#composednone1boxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | +| [ComposedNone1Boxed](#composednone1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema0Boxed public sealed interface Schema0Boxed
permits
@@ -113,7 +115,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0BoxedBoolean public record Schema0BoxedBoolean
@@ -130,7 +132,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0BoxedNumber public record Schema0BoxedNumber
@@ -147,7 +149,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0BoxedString public record Schema0BoxedString
@@ -164,7 +166,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0BoxedList public record Schema0BoxedList
@@ -181,7 +183,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0BoxedMap public record Schema0BoxedMap
@@ -198,7 +200,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0 public static class Schema0
diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedNumber.md b/samples/client/petstore/java/docs/components/schemas/ComposedNumber.md index a8a0e278ef1..2cc89cfad30 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedNumber.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedNumber.md @@ -44,7 +44,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ComposedNumber1 public static class ComposedNumber1
@@ -85,7 +85,9 @@ int validatedPayload = ComposedNumber.ComposedNumber1.validate( | ----------------- | ---------------------- | | Number | validate(Number arg, SchemaConfiguration configuration) | | [ComposedNumber1BoxedNumber](#composednumber1boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [ComposedNumber1Boxed](#composednumber1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema0Boxed public sealed interface Schema0Boxed
permits
@@ -113,7 +115,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0BoxedBoolean public record Schema0BoxedBoolean
@@ -130,7 +132,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0BoxedNumber public record Schema0BoxedNumber
@@ -147,7 +149,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0BoxedString public record Schema0BoxedString
@@ -164,7 +166,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0BoxedList public record Schema0BoxedList
@@ -181,7 +183,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0BoxedMap public record Schema0BoxedMap
@@ -198,7 +200,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0 public static class Schema0
diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedObject.md b/samples/client/petstore/java/docs/components/schemas/ComposedObject.md index 83f3ea5d231..efb80aa7b09 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedObject.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedObject.md @@ -44,7 +44,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ComposedObject1 public static class ComposedObject1
@@ -63,7 +63,9 @@ A schema class that validates payloads | ----------------- | ---------------------- | | FrozenMap | validate(Map<?, ?> arg, SchemaConfiguration configuration) | | [ComposedObject1BoxedMap](#composedobject1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | +| [ComposedObject1Boxed](#composedobject1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema0Boxed public sealed interface Schema0Boxed
permits
@@ -91,7 +93,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0BoxedBoolean public record Schema0BoxedBoolean
@@ -108,7 +110,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0BoxedNumber public record Schema0BoxedNumber
@@ -125,7 +127,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0BoxedString public record Schema0BoxedString
@@ -142,7 +144,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0BoxedList public record Schema0BoxedList
@@ -159,7 +161,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0BoxedMap public record Schema0BoxedMap
@@ -176,7 +178,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0 public static class Schema0
diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedOneOfDifferentTypes.md b/samples/client/petstore/java/docs/components/schemas/ComposedOneOfDifferentTypes.md index cc6652d3bd7..e87093851e0 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedOneOfDifferentTypes.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedOneOfDifferentTypes.md @@ -73,7 +73,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ComposedOneOfDifferentTypes1BoxedBoolean public record ComposedOneOfDifferentTypes1BoxedBoolean
@@ -90,7 +90,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ComposedOneOfDifferentTypes1BoxedNumber public record ComposedOneOfDifferentTypes1BoxedNumber
@@ -107,7 +107,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ComposedOneOfDifferentTypes1BoxedString public record ComposedOneOfDifferentTypes1BoxedString
@@ -124,7 +124,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ComposedOneOfDifferentTypes1BoxedList public record ComposedOneOfDifferentTypes1BoxedList
@@ -141,7 +141,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ComposedOneOfDifferentTypes1BoxedMap public record ComposedOneOfDifferentTypes1BoxedMap
@@ -158,7 +158,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ComposedOneOfDifferentTypes1 public static class ComposedOneOfDifferentTypes1
@@ -193,7 +193,9 @@ this is a model that allows payloads of type object or number | [ComposedOneOfDifferentTypes1BoxedBoolean](#composedoneofdifferenttypes1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ComposedOneOfDifferentTypes1BoxedMap](#composedoneofdifferenttypes1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [ComposedOneOfDifferentTypes1BoxedList](#composedoneofdifferenttypes1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ComposedOneOfDifferentTypes1Boxed](#composedoneofdifferenttypes1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema6Boxed public sealed interface Schema6Boxed
permits
@@ -216,7 +218,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema6 public static class Schema6
@@ -258,7 +260,9 @@ String validatedPayload = ComposedOneOfDifferentTypes.Schema6.validate( | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | | [Schema6BoxedString](#schema6boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Schema6Boxed](#schema6boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema5Boxed public sealed interface Schema5Boxed
permits
@@ -281,7 +285,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [Schema5List](#schema5list) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema5 public static class Schema5
@@ -326,7 +330,9 @@ ComposedOneOfDifferentTypes.Schema5List validatedPayload = | ----------------- | ---------------------- | | [Schema5List](#schema5list) | validate([List](#schema5listbuilder) arg, SchemaConfiguration configuration) | | [Schema5BoxedList](#schema5boxedlist) | validateAndBox([List](#schema5listbuilder) arg, SchemaConfiguration configuration) | +| [Schema5Boxed](#schema5boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema5ListBuilder public class Schema5ListBuilder
builder for `List<@Nullable Object>` @@ -391,7 +397,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ItemsBoxedBoolean public record ItemsBoxedBoolean
@@ -408,7 +414,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ItemsBoxedNumber public record ItemsBoxedNumber
@@ -425,7 +431,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ItemsBoxedString public record ItemsBoxedString
@@ -442,7 +448,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ItemsBoxedList public record ItemsBoxedList
@@ -459,7 +465,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ItemsBoxedMap public record ItemsBoxedMap
@@ -476,7 +482,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Items public static class Items
@@ -511,7 +517,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema4 public static class Schema4
@@ -531,7 +537,9 @@ A schema class that validates payloads | ----------------- | ---------------------- | | FrozenMap | validate(Map<?, ?> arg, SchemaConfiguration configuration) | | [Schema4BoxedMap](#schema4boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | +| [Schema4Boxed](#schema4boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema3Boxed public sealed interface Schema3Boxed
permits
@@ -554,7 +562,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema3 public static class Schema3
@@ -589,7 +597,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema2 public static class Schema2
diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedString.md b/samples/client/petstore/java/docs/components/schemas/ComposedString.md index db92cd47ccd..0a8b1c7999b 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedString.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedString.md @@ -44,7 +44,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ComposedString1 public static class ComposedString1
@@ -85,7 +85,9 @@ String validatedPayload = ComposedString.ComposedString1.validate( | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | | [ComposedString1BoxedString](#composedstring1boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [ComposedString1Boxed](#composedstring1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema0Boxed public sealed interface Schema0Boxed
permits
@@ -113,7 +115,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0BoxedBoolean public record Schema0BoxedBoolean
@@ -130,7 +132,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0BoxedNumber public record Schema0BoxedNumber
@@ -147,7 +149,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0BoxedString public record Schema0BoxedString
@@ -164,7 +166,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0BoxedList public record Schema0BoxedList
@@ -181,7 +183,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0BoxedMap public record Schema0BoxedMap
@@ -198,7 +200,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0 public static class Schema0
diff --git a/samples/client/petstore/java/docs/components/schemas/Currency.md b/samples/client/petstore/java/docs/components/schemas/Currency.md index 07e12559e93..209918caddb 100644 --- a/samples/client/petstore/java/docs/components/schemas/Currency.md +++ b/samples/client/petstore/java/docs/components/schemas/Currency.md @@ -38,7 +38,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Currency1 public static class Currency1
@@ -80,7 +80,9 @@ String validatedPayload = Currency.Currency1.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringCurrencyEnums](#stringcurrencyenums) arg, SchemaConfiguration configuration) | | [Currency1BoxedString](#currency1boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Currency1Boxed](#currency1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringCurrencyEnums public enum StringCurrencyEnums
extends `Enum` diff --git a/samples/client/petstore/java/docs/components/schemas/DanishPig.md b/samples/client/petstore/java/docs/components/schemas/DanishPig.md index 17740f898f8..1e25f21a4e7 100644 --- a/samples/client/petstore/java/docs/components/schemas/DanishPig.md +++ b/samples/client/petstore/java/docs/components/schemas/DanishPig.md @@ -45,7 +45,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [DanishPigMap](#danishpigmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## DanishPig1 public static class DanishPig1
@@ -91,7 +91,9 @@ DanishPig.DanishPigMap validatedPayload = | ----------------- | ---------------------- | | [DanishPigMap](#danishpigmap) | validate([Map<?, ?>](#danishpigmapbuilder) arg, SchemaConfiguration configuration) | | [DanishPig1BoxedMap](#danishpig1boxedmap) | validateAndBox([Map<?, ?>](#danishpigmapbuilder) arg, SchemaConfiguration configuration) | +| [DanishPig1Boxed](#danishpig1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## DanishPigMap0Builder public class DanishPigMap0Builder
builder for `Map` @@ -169,7 +171,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ClassName public static class ClassName
@@ -211,7 +213,9 @@ String validatedPayload = DanishPig.ClassName.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringClassNameEnums](#stringclassnameenums) arg, SchemaConfiguration configuration) | | [ClassNameBoxedString](#classnameboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [ClassNameBoxed](#classnameboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringClassNameEnums public enum StringClassNameEnums
extends `Enum` diff --git a/samples/client/petstore/java/docs/components/schemas/DateTimeTest.md b/samples/client/petstore/java/docs/components/schemas/DateTimeTest.md index 44ba2f4b4b7..272fb361bc1 100644 --- a/samples/client/petstore/java/docs/components/schemas/DateTimeTest.md +++ b/samples/client/petstore/java/docs/components/schemas/DateTimeTest.md @@ -36,7 +36,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## DateTimeTest1 public static class DateTimeTest1
@@ -78,5 +78,7 @@ String validatedPayload = DateTimeTest.DateTimeTest1.validate( | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | | [DateTimeTest1BoxedString](#datetimetest1boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [DateTimeTest1Boxed](#datetimetest1boxed) | 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/petstore/java/docs/components/schemas/DateTimeWithValidations.md b/samples/client/petstore/java/docs/components/schemas/DateTimeWithValidations.md index 7d77915683d..952c0e3b46b 100644 --- a/samples/client/petstore/java/docs/components/schemas/DateTimeWithValidations.md +++ b/samples/client/petstore/java/docs/components/schemas/DateTimeWithValidations.md @@ -36,7 +36,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## DateTimeWithValidations1 public static class DateTimeWithValidations1
@@ -78,5 +78,7 @@ String validatedPayload = DateTimeWithValidations.DateTimeWithValidations1.valid | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | | [DateTimeWithValidations1BoxedString](#datetimewithvalidations1boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [DateTimeWithValidations1Boxed](#datetimewithvalidations1boxed) | 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/petstore/java/docs/components/schemas/DateWithValidations.md b/samples/client/petstore/java/docs/components/schemas/DateWithValidations.md index d9cd1c2c9a7..2e47b97d7d6 100644 --- a/samples/client/petstore/java/docs/components/schemas/DateWithValidations.md +++ b/samples/client/petstore/java/docs/components/schemas/DateWithValidations.md @@ -36,7 +36,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## DateWithValidations1 public static class DateWithValidations1
@@ -78,5 +78,7 @@ String validatedPayload = DateWithValidations.DateWithValidations1.validate( | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | | [DateWithValidations1BoxedString](#datewithvalidations1boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [DateWithValidations1Boxed](#datewithvalidations1boxed) | 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/petstore/java/docs/components/schemas/DecimalPayload.md b/samples/client/petstore/java/docs/components/schemas/DecimalPayload.md index 783cc77e1ba..d497a446ea0 100644 --- a/samples/client/petstore/java/docs/components/schemas/DecimalPayload.md +++ b/samples/client/petstore/java/docs/components/schemas/DecimalPayload.md @@ -36,7 +36,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## DecimalPayload1 public static class DecimalPayload1
diff --git a/samples/client/petstore/java/docs/components/schemas/Dog.md b/samples/client/petstore/java/docs/components/schemas/Dog.md index a49cff7f765..fe37a0ad086 100644 --- a/samples/client/petstore/java/docs/components/schemas/Dog.md +++ b/samples/client/petstore/java/docs/components/schemas/Dog.md @@ -56,7 +56,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Dog1BoxedBoolean public record Dog1BoxedBoolean
@@ -73,7 +73,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Dog1BoxedNumber public record Dog1BoxedNumber
@@ -90,7 +90,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Dog1BoxedString public record Dog1BoxedString
@@ -107,7 +107,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Dog1BoxedList public record Dog1BoxedList
@@ -124,7 +124,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Dog1BoxedMap public record Dog1BoxedMap
@@ -141,7 +141,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Dog1 public static class Dog1
@@ -173,7 +173,9 @@ A schema class that validates payloads | [Dog1BoxedBoolean](#dog1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [Dog1BoxedMap](#dog1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [Dog1BoxedList](#dog1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [Dog1Boxed](#dog1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema1Boxed public sealed interface Schema1Boxed
permits
@@ -196,7 +198,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [Schema1Map](#schema1map) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema1 public static class Schema1
@@ -241,7 +243,9 @@ Dog.Schema1Map validatedPayload = | ----------------- | ---------------------- | | [Schema1Map](#schema1map) | validate([Map<?, ?>](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | [Schema1BoxedMap](#schema1boxedmap) | validateAndBox([Map<?, ?>](#schema1mapbuilder) arg, SchemaConfiguration configuration) | +| [Schema1Boxed](#schema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema1MapBuilder public class Schema1MapBuilder
builder for `Map` @@ -303,7 +307,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Breed public static class Breed
diff --git a/samples/client/petstore/java/docs/components/schemas/Drawing.md b/samples/client/petstore/java/docs/components/schemas/Drawing.md index 4b2aa906e23..7af4d3730c1 100644 --- a/samples/client/petstore/java/docs/components/schemas/Drawing.md +++ b/samples/client/petstore/java/docs/components/schemas/Drawing.md @@ -47,7 +47,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [DrawingMap](#drawingmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Drawing1 public static class Drawing1
@@ -95,7 +95,9 @@ Drawing.DrawingMap validatedPayload = | ----------------- | ---------------------- | | [DrawingMap](#drawingmap) | validate([Map<?, ?>](#drawingmapbuilder) arg, SchemaConfiguration configuration) | | [Drawing1BoxedMap](#drawing1boxedmap) | validateAndBox([Map<?, ?>](#drawingmapbuilder) arg, SchemaConfiguration configuration) | +| [Drawing1Boxed](#drawing1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## DrawingMapBuilder public class DrawingMapBuilder
builder for `Map` @@ -187,7 +189,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ShapesList](#shapeslist) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Shapes public static class Shapes
@@ -230,7 +232,9 @@ Drawing.ShapesList validatedPayload = | ----------------- | ---------------------- | | [ShapesList](#shapeslist) | validate([List](#shapeslistbuilder) arg, SchemaConfiguration configuration) | | [ShapesBoxedList](#shapesboxedlist) | validateAndBox([List](#shapeslistbuilder) arg, SchemaConfiguration configuration) | +| [ShapesBoxed](#shapesboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ShapesListBuilder public class ShapesListBuilder
builder for `List<@Nullable Object>` diff --git a/samples/client/petstore/java/docs/components/schemas/EnumArrays.md b/samples/client/petstore/java/docs/components/schemas/EnumArrays.md index abf5ee52bd4..8e2fd2a5f66 100644 --- a/samples/client/petstore/java/docs/components/schemas/EnumArrays.md +++ b/samples/client/petstore/java/docs/components/schemas/EnumArrays.md @@ -56,7 +56,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [EnumArraysMap](#enumarraysmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## EnumArrays1 public static class EnumArrays1
@@ -106,7 +106,9 @@ EnumArrays.EnumArraysMap validatedPayload = | ----------------- | ---------------------- | | [EnumArraysMap](#enumarraysmap) | validate([Map<?, ?>](#enumarraysmapbuilder) arg, SchemaConfiguration configuration) | | [EnumArrays1BoxedMap](#enumarrays1boxedmap) | validateAndBox([Map<?, ?>](#enumarraysmapbuilder) arg, SchemaConfiguration configuration) | +| [EnumArrays1Boxed](#enumarrays1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## EnumArraysMapBuilder public class EnumArraysMapBuilder
builder for `Map` @@ -171,7 +173,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ArrayEnumList](#arrayenumlist) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ArrayEnum public static class ArrayEnum
@@ -216,7 +218,9 @@ EnumArrays.ArrayEnumList validatedPayload = | ----------------- | ---------------------- | | [ArrayEnumList](#arrayenumlist) | validate([List](#arrayenumlistbuilder) arg, SchemaConfiguration configuration) | | [ArrayEnumBoxedList](#arrayenumboxedlist) | validateAndBox([List](#arrayenumlistbuilder) arg, SchemaConfiguration configuration) | +| [ArrayEnumBoxed](#arrayenumboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ArrayEnumListBuilder public class ArrayEnumListBuilder
builder for `List` @@ -269,7 +273,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Items public static class Items
@@ -311,7 +315,9 @@ String validatedPayload = EnumArrays.Items.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringItemsEnums](#stringitemsenums) arg, SchemaConfiguration configuration) | | [ItemsBoxedString](#itemsboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [ItemsBoxed](#itemsboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringItemsEnums public enum StringItemsEnums
extends `Enum` @@ -346,7 +352,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## JustSymbol public static class JustSymbol
@@ -388,7 +394,9 @@ String validatedPayload = EnumArrays.JustSymbol.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringJustSymbolEnums](#stringjustsymbolenums) arg, SchemaConfiguration configuration) | | [JustSymbolBoxedString](#justsymbolboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [JustSymbolBoxed](#justsymbolboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringJustSymbolEnums public enum StringJustSymbolEnums
extends `Enum` diff --git a/samples/client/petstore/java/docs/components/schemas/EnumClass.md b/samples/client/petstore/java/docs/components/schemas/EnumClass.md index dbfad336a07..1d88aaf4766 100644 --- a/samples/client/petstore/java/docs/components/schemas/EnumClass.md +++ b/samples/client/petstore/java/docs/components/schemas/EnumClass.md @@ -38,7 +38,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## EnumClass1 public static class EnumClass1
@@ -81,7 +81,9 @@ String validatedPayload = EnumClass.EnumClass1.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringEnumClassEnums](#stringenumclassenums) arg, SchemaConfiguration configuration) | | [EnumClass1BoxedString](#enumclass1boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [EnumClass1Boxed](#enumclass1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringEnumClassEnums public enum StringEnumClassEnums
extends `Enum` diff --git a/samples/client/petstore/java/docs/components/schemas/EnumTest.md b/samples/client/petstore/java/docs/components/schemas/EnumTest.md index e4d46facff9..a1fbe6a00dd 100644 --- a/samples/client/petstore/java/docs/components/schemas/EnumTest.md +++ b/samples/client/petstore/java/docs/components/schemas/EnumTest.md @@ -61,7 +61,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [EnumTestMap](#enumtestmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## EnumTest1 public static class EnumTest1
@@ -113,7 +113,9 @@ EnumTest.EnumTestMap validatedPayload = | ----------------- | ---------------------- | | [EnumTestMap](#enumtestmap) | validate([Map<?, ?>](#enumtestmapbuilder) arg, SchemaConfiguration configuration) | | [EnumTest1BoxedMap](#enumtest1boxedmap) | validateAndBox([Map<?, ?>](#enumtestmapbuilder) arg, SchemaConfiguration configuration) | +| [EnumTest1Boxed](#enumtest1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## EnumTestMap0Builder public class EnumTestMap0Builder
builder for `Map` @@ -243,7 +245,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## EnumNumber public static class EnumNumber
@@ -285,7 +287,9 @@ double validatedPayload = EnumTest.EnumNumber.validate( | ----------------- | ---------------------- | | double | validate(double arg, SchemaConfiguration configuration) | | [EnumNumberBoxedNumber](#enumnumberboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [EnumNumberBoxed](#enumnumberboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## DoubleEnumNumberEnums public enum DoubleEnumNumberEnums
extends `Enum` @@ -332,7 +336,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## EnumInteger public static class EnumInteger
@@ -374,7 +378,9 @@ int validatedPayload = EnumTest.EnumInteger.validate( | ----------------- | ---------------------- | | int | validate(int arg, SchemaConfiguration configuration) | | [EnumIntegerBoxedNumber](#enumintegerboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [EnumIntegerBoxed](#enumintegerboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## IntegerEnumIntegerEnums public enum IntegerEnumIntegerEnums
extends `Enum` @@ -445,7 +451,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## EnumStringRequired public static class EnumStringRequired
@@ -487,7 +493,9 @@ String validatedPayload = EnumTest.EnumStringRequired.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringEnumStringRequiredEnums](#stringenumstringrequiredenums) arg, SchemaConfiguration configuration) | | [EnumStringRequiredBoxedString](#enumstringrequiredboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [EnumStringRequiredBoxed](#enumstringrequiredboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringEnumStringRequiredEnums public enum StringEnumStringRequiredEnums
extends `Enum` @@ -523,7 +531,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## EnumString public static class EnumString
@@ -565,7 +573,9 @@ String validatedPayload = EnumTest.EnumString.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringEnumStringEnums](#stringenumstringenums) arg, SchemaConfiguration configuration) | | [EnumStringBoxedString](#enumstringboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [EnumStringBoxed](#enumstringboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringEnumStringEnums public enum StringEnumStringEnums
extends `Enum` diff --git a/samples/client/petstore/java/docs/components/schemas/EquilateralTriangle.md b/samples/client/petstore/java/docs/components/schemas/EquilateralTriangle.md index bc422e80bba..9f8c668e07d 100644 --- a/samples/client/petstore/java/docs/components/schemas/EquilateralTriangle.md +++ b/samples/client/petstore/java/docs/components/schemas/EquilateralTriangle.md @@ -58,7 +58,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## EquilateralTriangle1BoxedBoolean public record EquilateralTriangle1BoxedBoolean
@@ -75,7 +75,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## EquilateralTriangle1BoxedNumber public record EquilateralTriangle1BoxedNumber
@@ -92,7 +92,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## EquilateralTriangle1BoxedString public record EquilateralTriangle1BoxedString
@@ -109,7 +109,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## EquilateralTriangle1BoxedList public record EquilateralTriangle1BoxedList
@@ -126,7 +126,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## EquilateralTriangle1BoxedMap public record EquilateralTriangle1BoxedMap
@@ -143,7 +143,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## EquilateralTriangle1 public static class EquilateralTriangle1
@@ -175,7 +175,9 @@ A schema class that validates payloads | [EquilateralTriangle1BoxedBoolean](#equilateraltriangle1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [EquilateralTriangle1BoxedMap](#equilateraltriangle1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [EquilateralTriangle1BoxedList](#equilateraltriangle1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [EquilateralTriangle1Boxed](#equilateraltriangle1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema1Boxed public sealed interface Schema1Boxed
permits
@@ -198,7 +200,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [Schema1Map](#schema1map) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema1 public static class Schema1
@@ -243,7 +245,9 @@ EquilateralTriangle.Schema1Map validatedPayload = | ----------------- | ---------------------- | | [Schema1Map](#schema1map) | validate([Map<?, ?>](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | [Schema1BoxedMap](#schema1boxedmap) | validateAndBox([Map<?, ?>](#schema1mapbuilder) arg, SchemaConfiguration configuration) | +| [Schema1Boxed](#schema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema1MapBuilder public class Schema1MapBuilder
builder for `Map` @@ -306,7 +310,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## TriangleType public static class TriangleType
@@ -348,7 +352,9 @@ String validatedPayload = EquilateralTriangle.TriangleType.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringTriangleTypeEnums](#stringtriangletypeenums) arg, SchemaConfiguration configuration) | | [TriangleTypeBoxedString](#triangletypeboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [TriangleTypeBoxed](#triangletypeboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringTriangleTypeEnums public enum StringTriangleTypeEnums
extends `Enum` diff --git a/samples/client/petstore/java/docs/components/schemas/File.md b/samples/client/petstore/java/docs/components/schemas/File.md index 1fcef01cc04..a3e94ffd2bd 100644 --- a/samples/client/petstore/java/docs/components/schemas/File.md +++ b/samples/client/petstore/java/docs/components/schemas/File.md @@ -43,7 +43,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [FileMap](#filemap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## File1 public static class File1
@@ -91,7 +91,9 @@ File.FileMap validatedPayload = | ----------------- | ---------------------- | | [FileMap](#filemap) | validate([Map<?, ?>](#filemapbuilder) arg, SchemaConfiguration configuration) | | [File1BoxedMap](#file1boxedmap) | validateAndBox([Map<?, ?>](#filemapbuilder) arg, SchemaConfiguration configuration) | +| [File1Boxed](#file1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## FileMapBuilder public class FileMapBuilder
builder for `Map` @@ -153,7 +155,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SourceURI public static class SourceURI
diff --git a/samples/client/petstore/java/docs/components/schemas/FileSchemaTestClass.md b/samples/client/petstore/java/docs/components/schemas/FileSchemaTestClass.md index 2971b9ad532..2e0e62a5cf6 100644 --- a/samples/client/petstore/java/docs/components/schemas/FileSchemaTestClass.md +++ b/samples/client/petstore/java/docs/components/schemas/FileSchemaTestClass.md @@ -47,7 +47,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [FileSchemaTestClassMap](#fileschematestclassmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## FileSchemaTestClass1 public static class FileSchemaTestClass1
@@ -94,7 +94,9 @@ FileSchemaTestClass.FileSchemaTestClassMap validatedPayload = | ----------------- | ---------------------- | | [FileSchemaTestClassMap](#fileschematestclassmap) | validate([Map<?, ?>](#fileschematestclassmapbuilder) arg, SchemaConfiguration configuration) | | [FileSchemaTestClass1BoxedMap](#fileschematestclass1boxedmap) | validateAndBox([Map<?, ?>](#fileschematestclassmapbuilder) arg, SchemaConfiguration configuration) | +| [FileSchemaTestClass1Boxed](#fileschematestclass1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## FileSchemaTestClassMapBuilder public class FileSchemaTestClassMapBuilder
builder for `Map` @@ -158,7 +160,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [FilesList](#fileslist) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Files public static class Files
@@ -201,7 +203,9 @@ FileSchemaTestClass.FilesList validatedPayload = | ----------------- | ---------------------- | | [FilesList](#fileslist) | validate([List](#fileslistbuilder) arg, SchemaConfiguration configuration) | | [FilesBoxedList](#filesboxedlist) | validateAndBox([List](#fileslistbuilder) arg, SchemaConfiguration configuration) | +| [FilesBoxed](#filesboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## FilesListBuilder public class FilesListBuilder
builder for `List>` diff --git a/samples/client/petstore/java/docs/components/schemas/Foo.md b/samples/client/petstore/java/docs/components/schemas/Foo.md index af50069a74e..51774175f7e 100644 --- a/samples/client/petstore/java/docs/components/schemas/Foo.md +++ b/samples/client/petstore/java/docs/components/schemas/Foo.md @@ -40,7 +40,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [FooMap](#foomap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Foo1 public static class Foo1
@@ -83,7 +83,9 @@ Foo.FooMap validatedPayload = | ----------------- | ---------------------- | | [FooMap](#foomap) | validate([Map<?, ?>](#foomapbuilder) arg, SchemaConfiguration configuration) | | [Foo1BoxedMap](#foo1boxedmap) | validateAndBox([Map<?, ?>](#foomapbuilder) arg, SchemaConfiguration configuration) | +| [Foo1Boxed](#foo1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## FooMapBuilder public class FooMapBuilder
builder for `Map` diff --git a/samples/client/petstore/java/docs/components/schemas/FormatTest.md b/samples/client/petstore/java/docs/components/schemas/FormatTest.md index d8001802dd0..6e16a0824a6 100644 --- a/samples/client/petstore/java/docs/components/schemas/FormatTest.md +++ b/samples/client/petstore/java/docs/components/schemas/FormatTest.md @@ -109,7 +109,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [FormatTestMap](#formattestmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## FormatTest1 public static class FormatTest1
@@ -198,7 +198,9 @@ FormatTest.FormatTestMap validatedPayload = | ----------------- | ---------------------- | | [FormatTestMap](#formattestmap) | validate([Map<?, ?>](#formattestmapbuilder) arg, SchemaConfiguration configuration) | | [FormatTest1BoxedMap](#formattest1boxedmap) | validateAndBox([Map<?, ?>](#formattestmapbuilder) arg, SchemaConfiguration configuration) | +| [FormatTest1Boxed](#formattest1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## FormatTestMap0000Builder public class FormatTestMap0000Builder
builder for `Map` @@ -591,7 +593,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## NoneProp public static class NoneProp
@@ -626,7 +628,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## PatternWithDigitsAndDelimiter public static class PatternWithDigitsAndDelimiter
@@ -670,7 +672,9 @@ String validatedPayload = FormatTest.PatternWithDigitsAndDelimiter.validate( | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | | [PatternWithDigitsAndDelimiterBoxedString](#patternwithdigitsanddelimiterboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [PatternWithDigitsAndDelimiterBoxed](#patternwithdigitsanddelimiterboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## PatternWithDigitsBoxed public sealed interface PatternWithDigitsBoxed
permits
@@ -693,7 +697,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## PatternWithDigits public static class PatternWithDigits
@@ -737,7 +741,9 @@ String validatedPayload = FormatTest.PatternWithDigits.validate( | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | | [PatternWithDigitsBoxedString](#patternwithdigitsboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [PatternWithDigitsBoxed](#patternwithdigitsboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## PasswordBoxed public sealed interface PasswordBoxed
permits
@@ -760,7 +766,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Password public static class Password
@@ -803,7 +809,9 @@ String validatedPayload = FormatTest.Password.validate( | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | | [PasswordBoxedString](#passwordboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [PasswordBoxed](#passwordboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## UuidNoExampleBoxed public sealed interface UuidNoExampleBoxed
permits
@@ -826,7 +834,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## UuidNoExample public static class UuidNoExample
@@ -861,7 +869,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## UuidSchema public static class UuidSchema
@@ -896,7 +904,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## DateTime public static class DateTime
@@ -931,7 +939,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Date public static class Date
@@ -978,7 +986,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ByteSchema public static class ByteSchema
@@ -1008,7 +1016,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## StringSchema public static class StringSchema
@@ -1049,7 +1057,9 @@ String validatedPayload = FormatTest.StringSchema.validate( | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | | [StringSchemaBoxedString](#stringschemaboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [StringSchemaBoxed](#stringschemaboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ArrayWithUniqueItemsBoxed public sealed interface ArrayWithUniqueItemsBoxed
permits
@@ -1072,7 +1082,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ArrayWithUniqueItemsList](#arraywithuniqueitemslist) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ArrayWithUniqueItems public static class ArrayWithUniqueItems
@@ -1118,7 +1128,9 @@ FormatTest.ArrayWithUniqueItemsList validatedPayload = | ----------------- | ---------------------- | | [ArrayWithUniqueItemsList](#arraywithuniqueitemslist) | validate([List](#arraywithuniqueitemslistbuilder) arg, SchemaConfiguration configuration) | | [ArrayWithUniqueItemsBoxedList](#arraywithuniqueitemsboxedlist) | validateAndBox([List](#arraywithuniqueitemslistbuilder) arg, SchemaConfiguration configuration) | +| [ArrayWithUniqueItemsBoxed](#arraywithuniqueitemsboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ArrayWithUniqueItemsListBuilder public class ArrayWithUniqueItemsListBuilder
builder for `List` @@ -1173,7 +1185,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Items public static class Items
@@ -1208,7 +1220,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Float64 public static class Float64
@@ -1243,7 +1255,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## DoubleSchema public static class DoubleSchema
@@ -1286,7 +1298,9 @@ double validatedPayload = FormatTest.DoubleSchema.validate( | ----------------- | ---------------------- | | double | validate(double arg, SchemaConfiguration configuration) | | [DoubleSchemaBoxedNumber](#doubleschemaboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [DoubleSchemaBoxed](#doubleschemaboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Float32Boxed public sealed interface Float32Boxed
permits
@@ -1309,7 +1323,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Float32 public static class Float32
@@ -1344,7 +1358,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## FloatSchema public static class FloatSchema
@@ -1390,7 +1404,9 @@ float validatedPayload = FormatTest.FloatSchema.validate( | ----------------- | ---------------------- | | float | validate(float arg, SchemaConfiguration configuration) | | [FloatSchemaBoxedNumber](#floatschemaboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [FloatSchemaBoxed](#floatschemaboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## NumberSchemaBoxed public sealed interface NumberSchemaBoxed
permits
@@ -1413,7 +1429,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## NumberSchema public static class NumberSchema
@@ -1456,7 +1472,9 @@ int validatedPayload = FormatTest.NumberSchema.validate( | ----------------- | ---------------------- | | Number | validate(Number arg, SchemaConfiguration configuration) | | [NumberSchemaBoxedNumber](#numberschemaboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [NumberSchemaBoxed](#numberschemaboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Int64Boxed public sealed interface Int64Boxed
permits
@@ -1479,7 +1497,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Int64 public static class Int64
@@ -1514,7 +1532,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Int32withValidations public static class Int32withValidations
@@ -1557,7 +1575,9 @@ int validatedPayload = FormatTest.Int32withValidations.validate( | ----------------- | ---------------------- | | int | validate(int arg, SchemaConfiguration configuration) | | [Int32withValidationsBoxedNumber](#int32withvalidationsboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [Int32withValidationsBoxed](#int32withvalidationsboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Int32Boxed public sealed interface Int32Boxed
permits
@@ -1580,7 +1600,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Int32 public static class Int32
@@ -1615,7 +1635,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## IntegerSchema public static class IntegerSchema
@@ -1659,5 +1679,7 @@ int validatedPayload = FormatTest.IntegerSchema.validate( | ----------------- | ---------------------- | | long | validate(long arg, SchemaConfiguration configuration) | | [IntegerSchemaBoxedNumber](#integerschemaboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [IntegerSchemaBoxed](#integerschemaboxed) | 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/petstore/java/docs/components/schemas/FromSchema.md b/samples/client/petstore/java/docs/components/schemas/FromSchema.md index 42f18099ea7..d04d0807b8e 100644 --- a/samples/client/petstore/java/docs/components/schemas/FromSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/FromSchema.md @@ -46,7 +46,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [FromSchemaMap](#fromschemamap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## FromSchema1 public static class FromSchema1
@@ -93,7 +93,9 @@ FromSchema.FromSchemaMap validatedPayload = | ----------------- | ---------------------- | | [FromSchemaMap](#fromschemamap) | validate([Map<?, ?>](#fromschemamapbuilder) arg, SchemaConfiguration configuration) | | [FromSchema1BoxedMap](#fromschema1boxedmap) | validateAndBox([Map<?, ?>](#fromschemamapbuilder) arg, SchemaConfiguration configuration) | +| [FromSchema1Boxed](#fromschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## FromSchemaMapBuilder public class FromSchemaMapBuilder
builder for `Map` @@ -160,7 +162,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Id public static class Id
@@ -195,7 +197,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Data public static class Data
diff --git a/samples/client/petstore/java/docs/components/schemas/Fruit.md b/samples/client/petstore/java/docs/components/schemas/Fruit.md index f8b9d178c93..edd57484e22 100644 --- a/samples/client/petstore/java/docs/components/schemas/Fruit.md +++ b/samples/client/petstore/java/docs/components/schemas/Fruit.md @@ -53,7 +53,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Fruit1BoxedBoolean public record Fruit1BoxedBoolean
@@ -70,7 +70,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Fruit1BoxedNumber public record Fruit1BoxedNumber
@@ -87,7 +87,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Fruit1BoxedString public record Fruit1BoxedString
@@ -104,7 +104,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Fruit1BoxedList public record Fruit1BoxedList
@@ -121,7 +121,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Fruit1BoxedMap public record Fruit1BoxedMap
@@ -138,7 +138,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [FruitMap](#fruitmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Fruit1 public static class Fruit1
@@ -171,7 +171,9 @@ A schema class that validates payloads | [Fruit1BoxedBoolean](#fruit1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [Fruit1BoxedMap](#fruit1boxedmap) | validateAndBox([Map<?, ?>](#fruitmapbuilder) arg, SchemaConfiguration configuration) | | [Fruit1BoxedList](#fruit1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [Fruit1Boxed](#fruit1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## FruitMapBuilder public class FruitMapBuilder
builder for `Map` @@ -233,7 +235,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Color public static class Color
diff --git a/samples/client/petstore/java/docs/components/schemas/FruitReq.md b/samples/client/petstore/java/docs/components/schemas/FruitReq.md index 82a94a53246..375ce724a48 100644 --- a/samples/client/petstore/java/docs/components/schemas/FruitReq.md +++ b/samples/client/petstore/java/docs/components/schemas/FruitReq.md @@ -49,7 +49,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## FruitReq1BoxedBoolean public record FruitReq1BoxedBoolean
@@ -66,7 +66,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## FruitReq1BoxedNumber public record FruitReq1BoxedNumber
@@ -83,7 +83,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## FruitReq1BoxedString public record FruitReq1BoxedString
@@ -100,7 +100,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## FruitReq1BoxedList public record FruitReq1BoxedList
@@ -117,7 +117,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## FruitReq1BoxedMap public record FruitReq1BoxedMap
@@ -134,7 +134,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## FruitReq1 public static class FruitReq1
@@ -166,7 +166,9 @@ A schema class that validates payloads | [FruitReq1BoxedBoolean](#fruitreq1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [FruitReq1BoxedMap](#fruitreq1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [FruitReq1BoxedList](#fruitreq1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [FruitReq1Boxed](#fruitreq1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema0Boxed public sealed interface Schema0Boxed
permits
@@ -189,7 +191,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0 public static class Schema0
diff --git a/samples/client/petstore/java/docs/components/schemas/GmFruit.md b/samples/client/petstore/java/docs/components/schemas/GmFruit.md index 2b853dae805..8d0c281b057 100644 --- a/samples/client/petstore/java/docs/components/schemas/GmFruit.md +++ b/samples/client/petstore/java/docs/components/schemas/GmFruit.md @@ -53,7 +53,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## GmFruit1BoxedBoolean public record GmFruit1BoxedBoolean
@@ -70,7 +70,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## GmFruit1BoxedNumber public record GmFruit1BoxedNumber
@@ -87,7 +87,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## GmFruit1BoxedString public record GmFruit1BoxedString
@@ -104,7 +104,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## GmFruit1BoxedList public record GmFruit1BoxedList
@@ -121,7 +121,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## GmFruit1BoxedMap public record GmFruit1BoxedMap
@@ -138,7 +138,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [GmFruitMap](#gmfruitmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## GmFruit1 public static class GmFruit1
@@ -171,7 +171,9 @@ A schema class that validates payloads | [GmFruit1BoxedBoolean](#gmfruit1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [GmFruit1BoxedMap](#gmfruit1boxedmap) | validateAndBox([Map<?, ?>](#gmfruitmapbuilder) arg, SchemaConfiguration configuration) | | [GmFruit1BoxedList](#gmfruit1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [GmFruit1Boxed](#gmfruit1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## GmFruitMapBuilder public class GmFruitMapBuilder
builder for `Map` @@ -233,7 +235,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Color public static class Color
diff --git a/samples/client/petstore/java/docs/components/schemas/GrandparentAnimal.md b/samples/client/petstore/java/docs/components/schemas/GrandparentAnimal.md index c36801b5ab5..1e8d97ab036 100644 --- a/samples/client/petstore/java/docs/components/schemas/GrandparentAnimal.md +++ b/samples/client/petstore/java/docs/components/schemas/GrandparentAnimal.md @@ -43,7 +43,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [GrandparentAnimalMap](#grandparentanimalmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## GrandparentAnimal1 public static class GrandparentAnimal1
@@ -89,7 +89,9 @@ GrandparentAnimal.GrandparentAnimalMap validatedPayload = | ----------------- | ---------------------- | | [GrandparentAnimalMap](#grandparentanimalmap) | validate([Map<?, ?>](#grandparentanimalmapbuilder) arg, SchemaConfiguration configuration) | | [GrandparentAnimal1BoxedMap](#grandparentanimal1boxedmap) | validateAndBox([Map<?, ?>](#grandparentanimalmapbuilder) arg, SchemaConfiguration configuration) | +| [GrandparentAnimal1Boxed](#grandparentanimal1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## GrandparentAnimalMap0Builder public class GrandparentAnimalMap0Builder
builder for `Map` @@ -166,7 +168,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## PetType public static class PetType
diff --git a/samples/client/petstore/java/docs/components/schemas/HasOnlyReadOnly.md b/samples/client/petstore/java/docs/components/schemas/HasOnlyReadOnly.md index 7f6b8ee52ff..3bba1492506 100644 --- a/samples/client/petstore/java/docs/components/schemas/HasOnlyReadOnly.md +++ b/samples/client/petstore/java/docs/components/schemas/HasOnlyReadOnly.md @@ -46,7 +46,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [HasOnlyReadOnlyMap](#hasonlyreadonlymap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## HasOnlyReadOnly1 public static class HasOnlyReadOnly1
@@ -93,7 +93,9 @@ HasOnlyReadOnly.HasOnlyReadOnlyMap validatedPayload = | ----------------- | ---------------------- | | [HasOnlyReadOnlyMap](#hasonlyreadonlymap) | validate([Map<?, ?>](#hasonlyreadonlymapbuilder) arg, SchemaConfiguration configuration) | | [HasOnlyReadOnly1BoxedMap](#hasonlyreadonly1boxedmap) | validateAndBox([Map<?, ?>](#hasonlyreadonlymapbuilder) arg, SchemaConfiguration configuration) | +| [HasOnlyReadOnly1Boxed](#hasonlyreadonly1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## HasOnlyReadOnlyMapBuilder public class HasOnlyReadOnlyMapBuilder
builder for `Map` @@ -157,7 +159,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Foo public static class Foo
@@ -192,7 +194,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Bar public static class Bar
diff --git a/samples/client/petstore/java/docs/components/schemas/HealthCheckResult.md b/samples/client/petstore/java/docs/components/schemas/HealthCheckResult.md index 5e029b2a460..5090d19179d 100644 --- a/samples/client/petstore/java/docs/components/schemas/HealthCheckResult.md +++ b/samples/client/petstore/java/docs/components/schemas/HealthCheckResult.md @@ -44,7 +44,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [HealthCheckResultMap](#healthcheckresultmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## HealthCheckResult1 public static class HealthCheckResult1
@@ -92,7 +92,9 @@ HealthCheckResult.HealthCheckResultMap validatedPayload = | ----------------- | ---------------------- | | [HealthCheckResultMap](#healthcheckresultmap) | validate([Map<?, ?>](#healthcheckresultmapbuilder) arg, SchemaConfiguration configuration) | | [HealthCheckResult1BoxedMap](#healthcheckresult1boxedmap) | validateAndBox([Map<?, ?>](#healthcheckresultmapbuilder) arg, SchemaConfiguration configuration) | +| [HealthCheckResult1Boxed](#healthcheckresult1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## HealthCheckResultMapBuilder public class HealthCheckResultMapBuilder
builder for `Map` @@ -156,7 +158,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## NullableMessageBoxedString public record NullableMessageBoxedString
@@ -173,7 +175,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## NullableMessage public static class NullableMessage
@@ -221,5 +223,7 @@ String validatedPayload = HealthCheckResult.NullableMessage.validate( | [NullableMessageBoxedVoid](#nullablemessageboxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | | String | validate(String arg, SchemaConfiguration configuration) | | [NullableMessageBoxedString](#nullablemessageboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [NullableMessageBoxed](#nullablemessageboxed) | 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/petstore/java/docs/components/schemas/IntegerEnum.md b/samples/client/petstore/java/docs/components/schemas/IntegerEnum.md index 9c99365c76f..392e28ead60 100644 --- a/samples/client/petstore/java/docs/components/schemas/IntegerEnum.md +++ b/samples/client/petstore/java/docs/components/schemas/IntegerEnum.md @@ -41,7 +41,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## IntegerEnum1 public static class IntegerEnum1
@@ -83,7 +83,9 @@ int validatedPayload = IntegerEnum.IntegerEnum1.validate( | ----------------- | ---------------------- | | long | validate(long arg, SchemaConfiguration configuration) | | [IntegerEnum1BoxedNumber](#integerenum1boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [IntegerEnum1Boxed](#integerenum1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## IntegerIntegerEnumEnums public enum IntegerIntegerEnumEnums
extends `Enum` diff --git a/samples/client/petstore/java/docs/components/schemas/IntegerEnumBig.md b/samples/client/petstore/java/docs/components/schemas/IntegerEnumBig.md index 82f21dd1cd4..9ede44a7c40 100644 --- a/samples/client/petstore/java/docs/components/schemas/IntegerEnumBig.md +++ b/samples/client/petstore/java/docs/components/schemas/IntegerEnumBig.md @@ -41,7 +41,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## IntegerEnumBig1 public static class IntegerEnumBig1
@@ -83,7 +83,9 @@ int validatedPayload = IntegerEnumBig.IntegerEnumBig1.validate( | ----------------- | ---------------------- | | long | validate(long arg, SchemaConfiguration configuration) | | [IntegerEnumBig1BoxedNumber](#integerenumbig1boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [IntegerEnumBig1Boxed](#integerenumbig1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## IntegerIntegerEnumBigEnums public enum IntegerIntegerEnumBigEnums
extends `Enum` diff --git a/samples/client/petstore/java/docs/components/schemas/IntegerEnumOneValue.md b/samples/client/petstore/java/docs/components/schemas/IntegerEnumOneValue.md index cc5f032421d..13c3414d3ba 100644 --- a/samples/client/petstore/java/docs/components/schemas/IntegerEnumOneValue.md +++ b/samples/client/petstore/java/docs/components/schemas/IntegerEnumOneValue.md @@ -41,7 +41,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## IntegerEnumOneValue1 public static class IntegerEnumOneValue1
@@ -83,7 +83,9 @@ int validatedPayload = IntegerEnumOneValue.IntegerEnumOneValue1.validate( | ----------------- | ---------------------- | | long | validate(long arg, SchemaConfiguration configuration) | | [IntegerEnumOneValue1BoxedNumber](#integerenumonevalue1boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [IntegerEnumOneValue1Boxed](#integerenumonevalue1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## IntegerIntegerEnumOneValueEnums public enum IntegerIntegerEnumOneValueEnums
extends `Enum` diff --git a/samples/client/petstore/java/docs/components/schemas/IntegerEnumWithDefaultValue.md b/samples/client/petstore/java/docs/components/schemas/IntegerEnumWithDefaultValue.md index e69bcea0ed4..90a37f7717e 100644 --- a/samples/client/petstore/java/docs/components/schemas/IntegerEnumWithDefaultValue.md +++ b/samples/client/petstore/java/docs/components/schemas/IntegerEnumWithDefaultValue.md @@ -41,7 +41,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## IntegerEnumWithDefaultValue1 public static class IntegerEnumWithDefaultValue1
@@ -84,7 +84,9 @@ int validatedPayload = IntegerEnumWithDefaultValue.IntegerEnumWithDefaultValue1. | ----------------- | ---------------------- | | long | validate(long arg, SchemaConfiguration configuration) | | [IntegerEnumWithDefaultValue1BoxedNumber](#integerenumwithdefaultvalue1boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [IntegerEnumWithDefaultValue1Boxed](#integerenumwithdefaultvalue1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## IntegerIntegerEnumWithDefaultValueEnums public enum IntegerIntegerEnumWithDefaultValueEnums
extends `Enum` diff --git a/samples/client/petstore/java/docs/components/schemas/IntegerMax10.md b/samples/client/petstore/java/docs/components/schemas/IntegerMax10.md index b1ac7788c9f..8bac5e2d19b 100644 --- a/samples/client/petstore/java/docs/components/schemas/IntegerMax10.md +++ b/samples/client/petstore/java/docs/components/schemas/IntegerMax10.md @@ -36,7 +36,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## IntegerMax101 public static class IntegerMax101
@@ -78,5 +78,7 @@ long validatedPayload = IntegerMax10.IntegerMax101.validate( | ----------------- | ---------------------- | | long | validate(long arg, SchemaConfiguration configuration) | | [IntegerMax101BoxedNumber](#integermax101boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [IntegerMax101Boxed](#integermax101boxed) | 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/petstore/java/docs/components/schemas/IntegerMin15.md b/samples/client/petstore/java/docs/components/schemas/IntegerMin15.md index 63fdadd9bd2..0a8e244ad4a 100644 --- a/samples/client/petstore/java/docs/components/schemas/IntegerMin15.md +++ b/samples/client/petstore/java/docs/components/schemas/IntegerMin15.md @@ -36,7 +36,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## IntegerMin151 public static class IntegerMin151
@@ -78,5 +78,7 @@ long validatedPayload = IntegerMin15.IntegerMin151.validate( | ----------------- | ---------------------- | | long | validate(long arg, SchemaConfiguration configuration) | | [IntegerMin151BoxedNumber](#integermin151boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [IntegerMin151Boxed](#integermin151boxed) | 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/petstore/java/docs/components/schemas/IsoscelesTriangle.md b/samples/client/petstore/java/docs/components/schemas/IsoscelesTriangle.md index 708873fe79d..3f562c5ff83 100644 --- a/samples/client/petstore/java/docs/components/schemas/IsoscelesTriangle.md +++ b/samples/client/petstore/java/docs/components/schemas/IsoscelesTriangle.md @@ -58,7 +58,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## IsoscelesTriangle1BoxedBoolean public record IsoscelesTriangle1BoxedBoolean
@@ -75,7 +75,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## IsoscelesTriangle1BoxedNumber public record IsoscelesTriangle1BoxedNumber
@@ -92,7 +92,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## IsoscelesTriangle1BoxedString public record IsoscelesTriangle1BoxedString
@@ -109,7 +109,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## IsoscelesTriangle1BoxedList public record IsoscelesTriangle1BoxedList
@@ -126,7 +126,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## IsoscelesTriangle1BoxedMap public record IsoscelesTriangle1BoxedMap
@@ -143,7 +143,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## IsoscelesTriangle1 public static class IsoscelesTriangle1
@@ -175,7 +175,9 @@ A schema class that validates payloads | [IsoscelesTriangle1BoxedBoolean](#isoscelestriangle1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [IsoscelesTriangle1BoxedMap](#isoscelestriangle1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [IsoscelesTriangle1BoxedList](#isoscelestriangle1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [IsoscelesTriangle1Boxed](#isoscelestriangle1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema1Boxed public sealed interface Schema1Boxed
permits
@@ -198,7 +200,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [Schema1Map](#schema1map) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema1 public static class Schema1
@@ -243,7 +245,9 @@ IsoscelesTriangle.Schema1Map validatedPayload = | ----------------- | ---------------------- | | [Schema1Map](#schema1map) | validate([Map<?, ?>](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | [Schema1BoxedMap](#schema1boxedmap) | validateAndBox([Map<?, ?>](#schema1mapbuilder) arg, SchemaConfiguration configuration) | +| [Schema1Boxed](#schema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema1MapBuilder public class Schema1MapBuilder
builder for `Map` @@ -306,7 +310,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## TriangleType public static class TriangleType
@@ -348,7 +352,9 @@ String validatedPayload = IsoscelesTriangle.TriangleType.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringTriangleTypeEnums](#stringtriangletypeenums) arg, SchemaConfiguration configuration) | | [TriangleTypeBoxedString](#triangletypeboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [TriangleTypeBoxed](#triangletypeboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringTriangleTypeEnums public enum StringTriangleTypeEnums
extends `Enum` diff --git a/samples/client/petstore/java/docs/components/schemas/Items.md b/samples/client/petstore/java/docs/components/schemas/Items.md index 41a7b2ef3ac..4abf9164df7 100644 --- a/samples/client/petstore/java/docs/components/schemas/Items.md +++ b/samples/client/petstore/java/docs/components/schemas/Items.md @@ -43,7 +43,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ItemsList](#itemslist) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Items1 public static class Items1
@@ -89,7 +89,9 @@ Items.ItemsList validatedPayload = | ----------------- | ---------------------- | | [ItemsList](#itemslist) | validate([List](#itemslistbuilder) arg, SchemaConfiguration configuration) | | [Items1BoxedList](#items1boxedlist) | validateAndBox([List](#itemslistbuilder) arg, SchemaConfiguration configuration) | +| [Items1Boxed](#items1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ItemsListBuilder public class ItemsListBuilder
builder for `List>` @@ -141,7 +143,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Items2 public static class Items2
diff --git a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequest.md b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequest.md index cd38710a06d..1c204634b40 100644 --- a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequest.md +++ b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequest.md @@ -48,7 +48,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [JSONPatchRequestList](#jsonpatchrequestlist) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## JSONPatchRequest1 public static class JSONPatchRequest1
@@ -91,7 +91,9 @@ JSONPatchRequest.JSONPatchRequestList validatedPayload = | ----------------- | ---------------------- | | [JSONPatchRequestList](#jsonpatchrequestlist) | validate([List](#jsonpatchrequestlistbuilder) arg, SchemaConfiguration configuration) | | [JSONPatchRequest1BoxedList](#jsonpatchrequest1boxedlist) | validateAndBox([List](#jsonpatchrequestlistbuilder) arg, SchemaConfiguration configuration) | +| [JSONPatchRequest1Boxed](#jsonpatchrequest1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## JSONPatchRequestListBuilder public class JSONPatchRequestListBuilder
builder for `List<@Nullable Object>` @@ -156,7 +158,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ItemsBoxedBoolean public record ItemsBoxedBoolean
@@ -173,7 +175,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ItemsBoxedNumber public record ItemsBoxedNumber
@@ -190,7 +192,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ItemsBoxedString public record ItemsBoxedString
@@ -207,7 +209,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ItemsBoxedList public record ItemsBoxedList
@@ -224,7 +226,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ItemsBoxedMap public record ItemsBoxedMap
@@ -241,7 +243,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Items public static class Items
@@ -273,5 +275,7 @@ A schema class that validates payloads | [ItemsBoxedBoolean](#itemsboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ItemsBoxedMap](#itemsboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [ItemsBoxedList](#itemsboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ItemsBoxed](#itemsboxed) | 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/petstore/java/docs/components/schemas/JSONPatchRequestAddReplaceTest.md b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestAddReplaceTest.md index fbe6f85cfcf..76259ad13b4 100644 --- a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestAddReplaceTest.md +++ b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestAddReplaceTest.md @@ -64,7 +64,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [JSONPatchRequestAddReplaceTestMap](#jsonpatchrequestaddreplacetestmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## JSONPatchRequestAddReplaceTest1 public static class JSONPatchRequestAddReplaceTest1
@@ -113,7 +113,9 @@ JSONPatchRequestAddReplaceTest.JSONPatchRequestAddReplaceTestMap validatedPayloa | ----------------- | ---------------------- | | [JSONPatchRequestAddReplaceTestMap](#jsonpatchrequestaddreplacetestmap) | validate([Map<?, ?>](#jsonpatchrequestaddreplacetestmapbuilder) arg, SchemaConfiguration configuration) | | [JSONPatchRequestAddReplaceTest1BoxedMap](#jsonpatchrequestaddreplacetest1boxedmap) | validateAndBox([Map<?, ?>](#jsonpatchrequestaddreplacetestmapbuilder) arg, SchemaConfiguration configuration) | +| [JSONPatchRequestAddReplaceTest1Boxed](#jsonpatchrequestaddreplacetest1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## JSONPatchRequestAddReplaceTestMap000Builder public class JSONPatchRequestAddReplaceTestMap000Builder
builder for `Map` @@ -319,7 +321,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Op public static class Op
@@ -364,7 +366,9 @@ String validatedPayload = JSONPatchRequestAddReplaceTest.Op.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringOpEnums](#stringopenums) arg, SchemaConfiguration configuration) | | [OpBoxedString](#opboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [OpBoxed](#opboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringOpEnums public enum StringOpEnums
extends `Enum` @@ -405,7 +409,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ValueBoxedBoolean public record ValueBoxedBoolean
@@ -422,7 +426,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ValueBoxedNumber public record ValueBoxedNumber
@@ -439,7 +443,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ValueBoxedString public record ValueBoxedString
@@ -456,7 +460,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ValueBoxedList public record ValueBoxedList
@@ -473,7 +477,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ValueBoxedMap public record ValueBoxedMap
@@ -490,7 +494,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Value public static class Value
@@ -528,7 +532,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Path public static class Path
@@ -571,7 +575,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedBoolean public record AdditionalPropertiesBoxedBoolean
@@ -588,7 +592,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedNumber public record AdditionalPropertiesBoxedNumber
@@ -605,7 +609,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedString public record AdditionalPropertiesBoxedString
@@ -622,7 +626,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedList public record AdditionalPropertiesBoxedList
@@ -639,7 +643,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedMap public record AdditionalPropertiesBoxedMap
@@ -656,7 +660,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestMoveCopy.md b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestMoveCopy.md index b44e5ed7159..376082f90ad 100644 --- a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestMoveCopy.md +++ b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestMoveCopy.md @@ -59,7 +59,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [JSONPatchRequestMoveCopyMap](#jsonpatchrequestmovecopymap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## JSONPatchRequestMoveCopy1 public static class JSONPatchRequestMoveCopy1
@@ -110,7 +110,9 @@ JSONPatchRequestMoveCopy.JSONPatchRequestMoveCopyMap validatedPayload = | ----------------- | ---------------------- | | [JSONPatchRequestMoveCopyMap](#jsonpatchrequestmovecopymap) | validate([Map<?, ?>](#jsonpatchrequestmovecopymapbuilder) arg, SchemaConfiguration configuration) | | [JSONPatchRequestMoveCopy1BoxedMap](#jsonpatchrequestmovecopy1boxedmap) | validateAndBox([Map<?, ?>](#jsonpatchrequestmovecopymapbuilder) arg, SchemaConfiguration configuration) | +| [JSONPatchRequestMoveCopy1Boxed](#jsonpatchrequestmovecopy1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## JSONPatchRequestMoveCopyMap000Builder public class JSONPatchRequestMoveCopyMap000Builder
builder for `Map` @@ -284,7 +286,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Op public static class Op
@@ -329,7 +331,9 @@ String validatedPayload = JSONPatchRequestMoveCopy.Op.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringOpEnums](#stringopenums) arg, SchemaConfiguration configuration) | | [OpBoxedString](#opboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [OpBoxed](#opboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringOpEnums public enum StringOpEnums
extends `Enum` @@ -364,7 +368,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Path public static class Path
@@ -402,7 +406,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## From public static class From
@@ -445,7 +449,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedBoolean public record AdditionalPropertiesBoxedBoolean
@@ -462,7 +466,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedNumber public record AdditionalPropertiesBoxedNumber
@@ -479,7 +483,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedString public record AdditionalPropertiesBoxedString
@@ -496,7 +500,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedList public record AdditionalPropertiesBoxedList
@@ -513,7 +517,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedMap public record AdditionalPropertiesBoxedMap
@@ -530,7 +534,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestRemove.md b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestRemove.md index 0515dc9702b..a2833e5bd1e 100644 --- a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestRemove.md +++ b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestRemove.md @@ -56,7 +56,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [JSONPatchRequestRemoveMap](#jsonpatchrequestremovemap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## JSONPatchRequestRemove1 public static class JSONPatchRequestRemove1
@@ -105,7 +105,9 @@ JSONPatchRequestRemove.JSONPatchRequestRemoveMap validatedPayload = | ----------------- | ---------------------- | | [JSONPatchRequestRemoveMap](#jsonpatchrequestremovemap) | validate([Map<?, ?>](#jsonpatchrequestremovemapbuilder) arg, SchemaConfiguration configuration) | | [JSONPatchRequestRemove1BoxedMap](#jsonpatchrequestremove1boxedmap) | validateAndBox([Map<?, ?>](#jsonpatchrequestremovemapbuilder) arg, SchemaConfiguration configuration) | +| [JSONPatchRequestRemove1Boxed](#jsonpatchrequestremove1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## JSONPatchRequestRemoveMap00Builder public class JSONPatchRequestRemoveMap00Builder
builder for `Map` @@ -208,7 +210,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Op public static class Op
@@ -253,7 +255,9 @@ String validatedPayload = JSONPatchRequestRemove.Op.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringOpEnums](#stringopenums) arg, SchemaConfiguration configuration) | | [OpBoxedString](#opboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [OpBoxed](#opboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringOpEnums public enum StringOpEnums
extends `Enum` @@ -287,7 +291,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Path public static class Path
@@ -330,7 +334,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedBoolean public record AdditionalPropertiesBoxedBoolean
@@ -347,7 +351,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedNumber public record AdditionalPropertiesBoxedNumber
@@ -364,7 +368,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedString public record AdditionalPropertiesBoxedString
@@ -381,7 +385,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedList public record AdditionalPropertiesBoxedList
@@ -398,7 +402,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedMap public record AdditionalPropertiesBoxedMap
@@ -415,7 +419,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/Mammal.md b/samples/client/petstore/java/docs/components/schemas/Mammal.md index 1ccb896c078..5623f154bda 100644 --- a/samples/client/petstore/java/docs/components/schemas/Mammal.md +++ b/samples/client/petstore/java/docs/components/schemas/Mammal.md @@ -46,7 +46,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Mammal1BoxedBoolean public record Mammal1BoxedBoolean
@@ -63,7 +63,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Mammal1BoxedNumber public record Mammal1BoxedNumber
@@ -80,7 +80,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Mammal1BoxedString public record Mammal1BoxedString
@@ -97,7 +97,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Mammal1BoxedList public record Mammal1BoxedList
@@ -114,7 +114,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Mammal1BoxedMap public record Mammal1BoxedMap
@@ -131,7 +131,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Mammal1 public static class Mammal1
@@ -163,5 +163,7 @@ A schema class that validates payloads | [Mammal1BoxedBoolean](#mammal1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [Mammal1BoxedMap](#mammal1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [Mammal1BoxedList](#mammal1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [Mammal1Boxed](#mammal1boxed) | 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/petstore/java/docs/components/schemas/MapTest.md b/samples/client/petstore/java/docs/components/schemas/MapTest.md index 5aea69acd12..e83c6a5a94b 100644 --- a/samples/client/petstore/java/docs/components/schemas/MapTest.md +++ b/samples/client/petstore/java/docs/components/schemas/MapTest.md @@ -71,7 +71,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [MapTestMap](#maptestmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MapTest1 public static class MapTest1
@@ -143,7 +143,9 @@ MapTest.MapTestMap validatedPayload = | ----------------- | ---------------------- | | [MapTestMap](#maptestmap) | validate([Map<?, ?>](#maptestmapbuilder) arg, SchemaConfiguration configuration) | | [MapTest1BoxedMap](#maptest1boxedmap) | validateAndBox([Map<?, ?>](#maptestmapbuilder) arg, SchemaConfiguration configuration) | +| [MapTest1Boxed](#maptest1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## MapTestMapBuilder public class MapTestMapBuilder
builder for `Map` @@ -211,7 +213,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [DirectMapMap](#directmapmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## DirectMap public static class DirectMap
@@ -256,7 +258,9 @@ MapTest.DirectMapMap validatedPayload = | ----------------- | ---------------------- | | [DirectMapMap](#directmapmap) | validate([Map<?, ?>](#directmapmapbuilder) arg, SchemaConfiguration configuration) | | [DirectMapBoxedMap](#directmapboxedmap) | validateAndBox([Map<?, ?>](#directmapmapbuilder) arg, SchemaConfiguration configuration) | +| [DirectMapBoxed](#directmapboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## DirectMapMapBuilder public class DirectMapMapBuilder
builder for `Map` @@ -308,7 +312,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties3 public static class AdditionalProperties3
@@ -343,7 +347,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [MapOfEnumStringMap](#mapofenumstringmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MapOfEnumString public static class MapOfEnumString
@@ -388,7 +392,9 @@ MapTest.MapOfEnumStringMap validatedPayload = | ----------------- | ---------------------- | | [MapOfEnumStringMap](#mapofenumstringmap) | validate([Map<?, ?>](#mapofenumstringmapbuilder) arg, SchemaConfiguration configuration) | | [MapOfEnumStringBoxedMap](#mapofenumstringboxedmap) | validateAndBox([Map<?, ?>](#mapofenumstringmapbuilder) arg, SchemaConfiguration configuration) | +| [MapOfEnumStringBoxed](#mapofenumstringboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## MapOfEnumStringMapBuilder public class MapOfEnumStringMapBuilder
builder for `Map` @@ -441,7 +447,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties2 public static class AdditionalProperties2
@@ -483,7 +489,9 @@ String validatedPayload = MapTest.AdditionalProperties2.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringAdditionalPropertiesEnums](#stringadditionalpropertiesenums) arg, SchemaConfiguration configuration) | | [AdditionalProperties2BoxedString](#additionalproperties2boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [AdditionalProperties2Boxed](#additionalproperties2boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringAdditionalPropertiesEnums public enum StringAdditionalPropertiesEnums
extends `Enum` @@ -518,7 +526,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [MapMapOfStringMap](#mapmapofstringmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MapMapOfString public static class MapMapOfString
@@ -570,7 +578,9 @@ MapTest.MapMapOfStringMap validatedPayload = | ----------------- | ---------------------- | | [MapMapOfStringMap](#mapmapofstringmap) | validate([Map<?, ?>](#mapmapofstringmapbuilder) arg, SchemaConfiguration configuration) | | [MapMapOfStringBoxedMap](#mapmapofstringboxedmap) | validateAndBox([Map<?, ?>](#mapmapofstringmapbuilder) arg, SchemaConfiguration configuration) | +| [MapMapOfStringBoxed](#mapmapofstringboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## MapMapOfStringMapBuilder public class MapMapOfStringMapBuilder
builder for `Map>` @@ -622,7 +632,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [AdditionalPropertiesMap](#additionalpropertiesmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties public static class AdditionalProperties
@@ -667,7 +677,9 @@ MapTest.AdditionalPropertiesMap validatedPayload = | ----------------- | ---------------------- | | [AdditionalPropertiesMap](#additionalpropertiesmap) | validate([Map<?, ?>](#additionalpropertiesmapbuilder1) arg, SchemaConfiguration configuration) | | [AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) | validateAndBox([Map<?, ?>](#additionalpropertiesmapbuilder1) arg, SchemaConfiguration configuration) | +| [AdditionalPropertiesBoxed](#additionalpropertiesboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## AdditionalPropertiesMapBuilder1 public class AdditionalPropertiesMapBuilder1
builder for `Map` @@ -719,7 +731,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties1 public static class AdditionalProperties1
diff --git a/samples/client/petstore/java/docs/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/java/docs/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.md index 038729a1e4a..8909d0247c6 100644 --- a/samples/client/petstore/java/docs/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/client/petstore/java/docs/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.md @@ -51,7 +51,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [MixedPropertiesAndAdditionalPropertiesClassMap](#mixedpropertiesandadditionalpropertiesclassmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MixedPropertiesAndAdditionalPropertiesClass1 public static class MixedPropertiesAndAdditionalPropertiesClass1
@@ -115,7 +115,9 @@ MixedPropertiesAndAdditionalPropertiesClass.MixedPropertiesAndAdditionalProperti | ----------------- | ---------------------- | | [MixedPropertiesAndAdditionalPropertiesClassMap](#mixedpropertiesandadditionalpropertiesclassmap) | validate([Map<?, ?>](#mixedpropertiesandadditionalpropertiesclassmapbuilder) arg, SchemaConfiguration configuration) | | [MixedPropertiesAndAdditionalPropertiesClass1BoxedMap](#mixedpropertiesandadditionalpropertiesclass1boxedmap) | validateAndBox([Map<?, ?>](#mixedpropertiesandadditionalpropertiesclassmapbuilder) arg, SchemaConfiguration configuration) | +| [MixedPropertiesAndAdditionalPropertiesClass1Boxed](#mixedpropertiesandadditionalpropertiesclass1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## MixedPropertiesAndAdditionalPropertiesClassMapBuilder public class MixedPropertiesAndAdditionalPropertiesClassMapBuilder
builder for `Map` @@ -180,7 +182,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [MapMap](#mapmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MapSchema public static class MapSchema
@@ -236,7 +238,9 @@ MixedPropertiesAndAdditionalPropertiesClass.MapMap validatedPayload = | ----------------- | ---------------------- | | [MapMap](#mapmap) | validate([Map<?, ?>](#mapmapbuilder) arg, SchemaConfiguration configuration) | | [MapSchemaBoxedMap](#mapschemaboxedmap) | validateAndBox([Map<?, ?>](#mapmapbuilder) arg, SchemaConfiguration configuration) | +| [MapSchemaBoxed](#mapschemaboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## MapMapBuilder public class MapMapBuilder
builder for `Map>` @@ -288,7 +292,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## DateTime public static class DateTime
@@ -323,7 +327,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## UuidSchema public static class UuidSchema
diff --git a/samples/client/petstore/java/docs/components/schemas/Money.md b/samples/client/petstore/java/docs/components/schemas/Money.md index 2a4fa98c9c9..639237494ef 100644 --- a/samples/client/petstore/java/docs/components/schemas/Money.md +++ b/samples/client/petstore/java/docs/components/schemas/Money.md @@ -51,7 +51,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [MoneyMap](#moneymap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Money1 public static class Money1
@@ -100,7 +100,9 @@ Money.MoneyMap validatedPayload = | ----------------- | ---------------------- | | [MoneyMap](#moneymap) | validate([Map<?, ?>](#moneymapbuilder) arg, SchemaConfiguration configuration) | | [Money1BoxedMap](#money1boxedmap) | validateAndBox([Map<?, ?>](#moneymapbuilder) arg, SchemaConfiguration configuration) | +| [Money1Boxed](#money1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## MoneyMap00Builder public class MoneyMap00Builder
builder for `Map` @@ -203,7 +205,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Amount public static class Amount
@@ -243,7 +245,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedBoolean public record AdditionalPropertiesBoxedBoolean
@@ -260,7 +262,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedNumber public record AdditionalPropertiesBoxedNumber
@@ -277,7 +279,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedString public record AdditionalPropertiesBoxedString
@@ -294,7 +296,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedList public record AdditionalPropertiesBoxedList
@@ -311,7 +313,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedMap public record AdditionalPropertiesBoxedMap
@@ -328,7 +330,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/MyObjectDto.md b/samples/client/petstore/java/docs/components/schemas/MyObjectDto.md index 16f2575704d..1fb5325e0cf 100644 --- a/samples/client/petstore/java/docs/components/schemas/MyObjectDto.md +++ b/samples/client/petstore/java/docs/components/schemas/MyObjectDto.md @@ -51,7 +51,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [MyObjectDtoMap](#myobjectdtomap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MyObjectDto1 public static class MyObjectDto1
@@ -97,7 +97,9 @@ MyObjectDto.MyObjectDtoMap validatedPayload = | ----------------- | ---------------------- | | [MyObjectDtoMap](#myobjectdtomap) | validate([Map<?, ?>](#myobjectdtomapbuilder) arg, SchemaConfiguration configuration) | | [MyObjectDto1BoxedMap](#myobjectdto1boxedmap) | validateAndBox([Map<?, ?>](#myobjectdtomapbuilder) arg, SchemaConfiguration configuration) | +| [MyObjectDto1Boxed](#myobjectdto1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## MyObjectDtoMapBuilder public class MyObjectDtoMapBuilder
builder for `Map` @@ -149,7 +151,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Id public static class Id
@@ -189,7 +191,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedBoolean public record AdditionalPropertiesBoxedBoolean
@@ -206,7 +208,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedNumber public record AdditionalPropertiesBoxedNumber
@@ -223,7 +225,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedString public record AdditionalPropertiesBoxedString
@@ -240,7 +242,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedList public record AdditionalPropertiesBoxedList
@@ -257,7 +259,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedMap public record AdditionalPropertiesBoxedMap
@@ -274,7 +276,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/Name.md b/samples/client/petstore/java/docs/components/schemas/Name.md index 308cb228bad..56d8c4f1a1a 100644 --- a/samples/client/petstore/java/docs/components/schemas/Name.md +++ b/samples/client/petstore/java/docs/components/schemas/Name.md @@ -59,7 +59,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Name1BoxedBoolean public record Name1BoxedBoolean
@@ -76,7 +76,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Name1BoxedNumber public record Name1BoxedNumber
@@ -93,7 +93,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Name1BoxedString public record Name1BoxedString
@@ -110,7 +110,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Name1BoxedList public record Name1BoxedList
@@ -127,7 +127,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Name1BoxedMap public record Name1BoxedMap
@@ -144,7 +144,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [NameMap](#namemap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Name1 public static class Name1
@@ -180,7 +180,9 @@ Model for testing model name same as property name | [Name1BoxedBoolean](#name1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [Name1BoxedMap](#name1boxedmap) | validateAndBox([Map<?, ?>](#namemapbuilder1) arg, SchemaConfiguration configuration) | | [Name1BoxedList](#name1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [Name1Boxed](#name1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## NameMap0Builder public class NameMap0Builder
builder for `Map` @@ -263,7 +265,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Property public static class Property
@@ -301,7 +303,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SnakeCase public static class SnakeCase
@@ -336,7 +338,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Name2 public static class Name2
diff --git a/samples/client/petstore/java/docs/components/schemas/NoAdditionalProperties.md b/samples/client/petstore/java/docs/components/schemas/NoAdditionalProperties.md index 8d9186af432..4e702e9ae6a 100644 --- a/samples/client/petstore/java/docs/components/schemas/NoAdditionalProperties.md +++ b/samples/client/petstore/java/docs/components/schemas/NoAdditionalProperties.md @@ -54,7 +54,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [NoAdditionalPropertiesMap](#noadditionalpropertiesmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## NoAdditionalProperties1 public static class NoAdditionalProperties1
@@ -103,7 +103,9 @@ NoAdditionalProperties.NoAdditionalPropertiesMap validatedPayload = | ----------------- | ---------------------- | | [NoAdditionalPropertiesMap](#noadditionalpropertiesmap) | validate([Map<?, ?>](#noadditionalpropertiesmapbuilder) arg, SchemaConfiguration configuration) | | [NoAdditionalProperties1BoxedMap](#noadditionalproperties1boxedmap) | validateAndBox([Map<?, ?>](#noadditionalpropertiesmapbuilder) arg, SchemaConfiguration configuration) | +| [NoAdditionalProperties1Boxed](#noadditionalproperties1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## NoAdditionalPropertiesMap0Builder public class NoAdditionalPropertiesMap0Builder
builder for `Map` @@ -178,7 +180,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## PetId public static class PetId
@@ -213,7 +215,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Id public static class Id
@@ -253,7 +255,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedBoolean public record AdditionalPropertiesBoxedBoolean
@@ -270,7 +272,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedNumber public record AdditionalPropertiesBoxedNumber
@@ -287,7 +289,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedString public record AdditionalPropertiesBoxedString
@@ -304,7 +306,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedList public record AdditionalPropertiesBoxedList
@@ -321,7 +323,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedMap public record AdditionalPropertiesBoxedMap
@@ -338,7 +340,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/NullableClass.md b/samples/client/petstore/java/docs/components/schemas/NullableClass.md index 9a6b6cf59b5..d730ba2a160 100644 --- a/samples/client/petstore/java/docs/components/schemas/NullableClass.md +++ b/samples/client/petstore/java/docs/components/schemas/NullableClass.md @@ -126,7 +126,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [NullableClassMap](#nullableclassmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## NullableClass1 public static class NullableClass1
@@ -205,7 +205,9 @@ NullableClass.NullableClassMap validatedPayload = | ----------------- | ---------------------- | | [NullableClassMap](#nullableclassmap) | validate([Map<?, ?>](#nullableclassmapbuilder) arg, SchemaConfiguration configuration) | | [NullableClass1BoxedMap](#nullableclass1boxedmap) | validateAndBox([Map<?, ?>](#nullableclassmapbuilder) arg, SchemaConfiguration configuration) | +| [NullableClass1Boxed](#nullableclass1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## NullableClassMapBuilder public class NullableClassMapBuilder
builder for `Map` @@ -298,7 +300,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ObjectItemsNullableMap](#objectitemsnullablemap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ObjectItemsNullable public static class ObjectItemsNullable
@@ -343,7 +345,9 @@ NullableClass.ObjectItemsNullableMap validatedPayload = | ----------------- | ---------------------- | | [ObjectItemsNullableMap](#objectitemsnullablemap) | validate([Map<?, ?>](#objectitemsnullablemapbuilder) arg, SchemaConfiguration configuration) | | [ObjectItemsNullableBoxedMap](#objectitemsnullableboxedmap) | validateAndBox([Map<?, ?>](#objectitemsnullablemapbuilder) arg, SchemaConfiguration configuration) | +| [ObjectItemsNullableBoxed](#objectitemsnullableboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ObjectItemsNullableMapBuilder public class ObjectItemsNullableMapBuilder
builder for `Map>` @@ -397,7 +401,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties2BoxedMap public record AdditionalProperties2BoxedMap
@@ -414,7 +418,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties2 public static class AdditionalProperties2
@@ -456,7 +460,9 @@ Void validatedPayload = NullableClass.AdditionalProperties2.validate( | [AdditionalProperties2BoxedVoid](#additionalproperties2boxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | | FrozenMap | validate(Map<?, ?> arg, SchemaConfiguration configuration) | | [AdditionalProperties2BoxedMap](#additionalproperties2boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | +| [AdditionalProperties2Boxed](#additionalproperties2boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ObjectAndItemsNullablePropBoxed public sealed interface ObjectAndItemsNullablePropBoxed
permits
@@ -480,7 +486,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ObjectAndItemsNullablePropBoxedMap public record ObjectAndItemsNullablePropBoxedMap
@@ -497,7 +503,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ObjectAndItemsNullablePropMap](#objectanditemsnullablepropmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ObjectAndItemsNullableProp public static class ObjectAndItemsNullableProp
@@ -550,7 +556,9 @@ NullableClass.ObjectAndItemsNullablePropMap validatedPayload = | [ObjectAndItemsNullablePropBoxedVoid](#objectanditemsnullablepropboxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | | [ObjectAndItemsNullablePropMap](#objectanditemsnullablepropmap) | validate([Map<?, ?>](#objectanditemsnullablepropmapbuilder) arg, SchemaConfiguration configuration) | | [ObjectAndItemsNullablePropBoxedMap](#objectanditemsnullablepropboxedmap) | validateAndBox([Map<?, ?>](#objectanditemsnullablepropmapbuilder) arg, SchemaConfiguration configuration) | +| [ObjectAndItemsNullablePropBoxed](#objectanditemsnullablepropboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ObjectAndItemsNullablePropMapBuilder public class ObjectAndItemsNullablePropMapBuilder
builder for `Map>` @@ -604,7 +612,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties1BoxedMap public record AdditionalProperties1BoxedMap
@@ -621,7 +629,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties1 public static class AdditionalProperties1
@@ -663,7 +671,9 @@ Void validatedPayload = NullableClass.AdditionalProperties1.validate( | [AdditionalProperties1BoxedVoid](#additionalproperties1boxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | | FrozenMap | validate(Map<?, ?> arg, SchemaConfiguration configuration) | | [AdditionalProperties1BoxedMap](#additionalproperties1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | +| [AdditionalProperties1Boxed](#additionalproperties1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ObjectNullablePropBoxed public sealed interface ObjectNullablePropBoxed
permits
@@ -687,7 +697,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ObjectNullablePropBoxedMap public record ObjectNullablePropBoxedMap
@@ -704,7 +714,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ObjectNullablePropMap](#objectnullablepropmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ObjectNullableProp public static class ObjectNullableProp
@@ -755,7 +765,9 @@ NullableClass.ObjectNullablePropMap validatedPayload = | [ObjectNullablePropBoxedVoid](#objectnullablepropboxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | | [ObjectNullablePropMap](#objectnullablepropmap) | validate([Map<?, ?>](#objectnullablepropmapbuilder) arg, SchemaConfiguration configuration) | | [ObjectNullablePropBoxedMap](#objectnullablepropboxedmap) | validateAndBox([Map<?, ?>](#objectnullablepropmapbuilder) arg, SchemaConfiguration configuration) | +| [ObjectNullablePropBoxed](#objectnullablepropboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ObjectNullablePropMapBuilder public class ObjectNullablePropMapBuilder
builder for `Map>` @@ -807,7 +819,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties public static class AdditionalProperties
@@ -842,7 +854,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ArrayItemsNullableList](#arrayitemsnullablelist) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ArrayItemsNullable public static class ArrayItemsNullable
@@ -887,7 +899,9 @@ NullableClass.ArrayItemsNullableList validatedPayload = | ----------------- | ---------------------- | | [ArrayItemsNullableList](#arrayitemsnullablelist) | validate([List](#arrayitemsnullablelistbuilder) arg, SchemaConfiguration configuration) | | [ArrayItemsNullableBoxedList](#arrayitemsnullableboxedlist) | validateAndBox([List](#arrayitemsnullablelistbuilder) arg, SchemaConfiguration configuration) | +| [ArrayItemsNullableBoxed](#arrayitemsnullableboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ArrayItemsNullableListBuilder public class ArrayItemsNullableListBuilder
builder for `List<@Nullable Map>` @@ -941,7 +955,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Items2BoxedMap public record Items2BoxedMap
@@ -958,7 +972,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Items2 public static class Items2
@@ -1000,7 +1014,9 @@ Void validatedPayload = NullableClass.Items2.validate( | [Items2BoxedVoid](#items2boxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | | FrozenMap | validate(Map<?, ?> arg, SchemaConfiguration configuration) | | [Items2BoxedMap](#items2boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | +| [Items2Boxed](#items2boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ArrayAndItemsNullablePropBoxed public sealed interface ArrayAndItemsNullablePropBoxed
permits
@@ -1024,7 +1040,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ArrayAndItemsNullablePropBoxedList public record ArrayAndItemsNullablePropBoxedList
@@ -1041,7 +1057,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ArrayAndItemsNullablePropList](#arrayanditemsnullableproplist) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ArrayAndItemsNullableProp public static class ArrayAndItemsNullableProp
@@ -1094,7 +1110,9 @@ NullableClass.ArrayAndItemsNullablePropList validatedPayload = | [ArrayAndItemsNullablePropBoxedVoid](#arrayanditemsnullablepropboxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | | [ArrayAndItemsNullablePropList](#arrayanditemsnullableproplist) | validate([List](#arrayanditemsnullableproplistbuilder) arg, SchemaConfiguration configuration) | | [ArrayAndItemsNullablePropBoxedList](#arrayanditemsnullablepropboxedlist) | validateAndBox([List](#arrayanditemsnullableproplistbuilder) arg, SchemaConfiguration configuration) | +| [ArrayAndItemsNullablePropBoxed](#arrayanditemsnullablepropboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ArrayAndItemsNullablePropListBuilder public class ArrayAndItemsNullablePropListBuilder
builder for `List<@Nullable Map>` @@ -1148,7 +1166,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Items1BoxedMap public record Items1BoxedMap
@@ -1165,7 +1183,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Items1 public static class Items1
@@ -1207,7 +1225,9 @@ Void validatedPayload = NullableClass.Items1.validate( | [Items1BoxedVoid](#items1boxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | | FrozenMap | validate(Map<?, ?> arg, SchemaConfiguration configuration) | | [Items1BoxedMap](#items1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | +| [Items1Boxed](#items1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ArrayNullablePropBoxed public sealed interface ArrayNullablePropBoxed
permits
@@ -1231,7 +1251,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ArrayNullablePropBoxedList public record ArrayNullablePropBoxedList
@@ -1248,7 +1268,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ArrayNullablePropList](#arraynullableproplist) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ArrayNullableProp public static class ArrayNullableProp
@@ -1299,7 +1319,9 @@ NullableClass.ArrayNullablePropList validatedPayload = | [ArrayNullablePropBoxedVoid](#arraynullablepropboxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | | [ArrayNullablePropList](#arraynullableproplist) | validate([List](#arraynullableproplistbuilder) arg, SchemaConfiguration configuration) | | [ArrayNullablePropBoxedList](#arraynullablepropboxedlist) | validateAndBox([List](#arraynullableproplistbuilder) arg, SchemaConfiguration configuration) | +| [ArrayNullablePropBoxed](#arraynullablepropboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ArrayNullablePropListBuilder public class ArrayNullablePropListBuilder
builder for `List>` @@ -1351,7 +1373,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Items public static class Items
@@ -1387,7 +1409,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## DatetimePropBoxedString public record DatetimePropBoxedString
@@ -1404,7 +1426,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## DatetimeProp public static class DatetimeProp
@@ -1453,7 +1475,9 @@ String validatedPayload = NullableClass.DatetimeProp.validate( | [DatetimePropBoxedVoid](#datetimepropboxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | | String | validate(String arg, SchemaConfiguration configuration) | | [DatetimePropBoxedString](#datetimepropboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [DatetimePropBoxed](#datetimepropboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## DatePropBoxed public sealed interface DatePropBoxed
permits
@@ -1477,7 +1501,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## DatePropBoxedString public record DatePropBoxedString
@@ -1494,7 +1518,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## DateProp public static class DateProp
@@ -1543,7 +1567,9 @@ String validatedPayload = NullableClass.DateProp.validate( | [DatePropBoxedVoid](#datepropboxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | | String | validate(String arg, SchemaConfiguration configuration) | | [DatePropBoxedString](#datepropboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [DatePropBoxed](#datepropboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringPropBoxed public sealed interface StringPropBoxed
permits
@@ -1567,7 +1593,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## StringPropBoxedString public record StringPropBoxedString
@@ -1584,7 +1610,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## StringProp public static class StringProp
@@ -1632,7 +1658,9 @@ String validatedPayload = NullableClass.StringProp.validate( | [StringPropBoxedVoid](#stringpropboxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | | String | validate(String arg, SchemaConfiguration configuration) | | [StringPropBoxedString](#stringpropboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [StringPropBoxed](#stringpropboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## BooleanPropBoxed public sealed interface BooleanPropBoxed
permits
@@ -1656,7 +1684,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## BooleanPropBoxedBoolean public record BooleanPropBoxedBoolean
@@ -1673,7 +1701,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## BooleanProp public static class BooleanProp
@@ -1721,7 +1749,9 @@ boolean validatedPayload = NullableClass.BooleanProp.validate( | [BooleanPropBoxedVoid](#booleanpropboxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | | boolean | validate(boolean arg, SchemaConfiguration configuration) | | [BooleanPropBoxedBoolean](#booleanpropboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | +| [BooleanPropBoxed](#booleanpropboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## NumberPropBoxed public sealed interface NumberPropBoxed
permits
@@ -1745,7 +1775,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## NumberPropBoxedNumber public record NumberPropBoxedNumber
@@ -1762,7 +1792,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## NumberProp public static class NumberProp
@@ -1810,7 +1840,9 @@ int validatedPayload = NullableClass.NumberProp.validate( | [NumberPropBoxedVoid](#numberpropboxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | | Number | validate(Number arg, SchemaConfiguration configuration) | | [NumberPropBoxedNumber](#numberpropboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [NumberPropBoxed](#numberpropboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## IntegerPropBoxed public sealed interface IntegerPropBoxed
permits
@@ -1834,7 +1866,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## IntegerPropBoxedNumber public record IntegerPropBoxedNumber
@@ -1851,7 +1883,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## IntegerProp public static class IntegerProp
@@ -1900,7 +1932,9 @@ int validatedPayload = NullableClass.IntegerProp.validate( | [IntegerPropBoxedVoid](#integerpropboxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | | long | validate(long arg, SchemaConfiguration configuration) | | [IntegerPropBoxedNumber](#integerpropboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [IntegerPropBoxed](#integerpropboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## AdditionalProperties3Boxed public sealed interface AdditionalProperties3Boxed
permits
@@ -1924,7 +1958,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties3BoxedMap public record AdditionalProperties3BoxedMap
@@ -1941,7 +1975,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties3 public static class AdditionalProperties3
@@ -1983,5 +2017,7 @@ Void validatedPayload = NullableClass.AdditionalProperties3.validate( | [AdditionalProperties3BoxedVoid](#additionalproperties3boxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | | FrozenMap | validate(Map<?, ?> arg, SchemaConfiguration configuration) | | [AdditionalProperties3BoxedMap](#additionalproperties3boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | +| [AdditionalProperties3Boxed](#additionalproperties3boxed) | 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/petstore/java/docs/components/schemas/NullableShape.md b/samples/client/petstore/java/docs/components/schemas/NullableShape.md index 0105619259b..cd9107d4559 100644 --- a/samples/client/petstore/java/docs/components/schemas/NullableShape.md +++ b/samples/client/petstore/java/docs/components/schemas/NullableShape.md @@ -49,7 +49,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## NullableShape1BoxedBoolean public record NullableShape1BoxedBoolean
@@ -66,7 +66,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## NullableShape1BoxedNumber public record NullableShape1BoxedNumber
@@ -83,7 +83,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## NullableShape1BoxedString public record NullableShape1BoxedString
@@ -100,7 +100,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## NullableShape1BoxedList public record NullableShape1BoxedList
@@ -117,7 +117,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## NullableShape1BoxedMap public record NullableShape1BoxedMap
@@ -134,7 +134,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## NullableShape1 public static class NullableShape1
@@ -169,7 +169,9 @@ The value may be a shape or the 'null' value. For a composed schema to | [NullableShape1BoxedBoolean](#nullableshape1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [NullableShape1BoxedMap](#nullableshape1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [NullableShape1BoxedList](#nullableshape1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [NullableShape1Boxed](#nullableshape1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema2Boxed public sealed interface Schema2Boxed
permits
@@ -192,7 +194,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema2 public static class Schema2
diff --git a/samples/client/petstore/java/docs/components/schemas/NullableString.md b/samples/client/petstore/java/docs/components/schemas/NullableString.md index e75fe336e24..3c1547806ae 100644 --- a/samples/client/petstore/java/docs/components/schemas/NullableString.md +++ b/samples/client/petstore/java/docs/components/schemas/NullableString.md @@ -38,7 +38,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## NullableString1BoxedString public record NullableString1BoxedString
@@ -55,7 +55,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## NullableString1 public static class NullableString1
@@ -103,5 +103,7 @@ String validatedPayload = NullableString.NullableString1.validate( | [NullableString1BoxedVoid](#nullablestring1boxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | | String | validate(String arg, SchemaConfiguration configuration) | | [NullableString1BoxedString](#nullablestring1boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [NullableString1Boxed](#nullablestring1boxed) | 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/petstore/java/docs/components/schemas/NumberOnly.md b/samples/client/petstore/java/docs/components/schemas/NumberOnly.md index 77bc2414632..82b39269c23 100644 --- a/samples/client/petstore/java/docs/components/schemas/NumberOnly.md +++ b/samples/client/petstore/java/docs/components/schemas/NumberOnly.md @@ -43,7 +43,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [NumberOnlyMap](#numberonlymap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## NumberOnly1 public static class NumberOnly1
@@ -88,7 +88,9 @@ NumberOnly.NumberOnlyMap validatedPayload = | ----------------- | ---------------------- | | [NumberOnlyMap](#numberonlymap) | validate([Map<?, ?>](#numberonlymapbuilder) arg, SchemaConfiguration configuration) | | [NumberOnly1BoxedMap](#numberonly1boxedmap) | validateAndBox([Map<?, ?>](#numberonlymapbuilder) arg, SchemaConfiguration configuration) | +| [NumberOnly1Boxed](#numberonly1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## NumberOnlyMapBuilder public class NumberOnlyMapBuilder
builder for `Map` @@ -153,7 +155,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## JustNumber public static class JustNumber
diff --git a/samples/client/petstore/java/docs/components/schemas/NumberSchema.md b/samples/client/petstore/java/docs/components/schemas/NumberSchema.md index 0d055b66d0c..1a96fb09787 100644 --- a/samples/client/petstore/java/docs/components/schemas/NumberSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/NumberSchema.md @@ -36,7 +36,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## NumberSchema1 public static class NumberSchema1
diff --git a/samples/client/petstore/java/docs/components/schemas/NumberWithExclusiveMinMax.md b/samples/client/petstore/java/docs/components/schemas/NumberWithExclusiveMinMax.md index 275e89019b5..ed59f26369f 100644 --- a/samples/client/petstore/java/docs/components/schemas/NumberWithExclusiveMinMax.md +++ b/samples/client/petstore/java/docs/components/schemas/NumberWithExclusiveMinMax.md @@ -36,7 +36,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## NumberWithExclusiveMinMax1 public static class NumberWithExclusiveMinMax1
@@ -78,5 +78,7 @@ int validatedPayload = NumberWithExclusiveMinMax.NumberWithExclusiveMinMax1.vali | ----------------- | ---------------------- | | Number | validate(Number arg, SchemaConfiguration configuration) | | [NumberWithExclusiveMinMax1BoxedNumber](#numberwithexclusiveminmax1boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [NumberWithExclusiveMinMax1Boxed](#numberwithexclusiveminmax1boxed) | 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/petstore/java/docs/components/schemas/NumberWithValidations.md b/samples/client/petstore/java/docs/components/schemas/NumberWithValidations.md index 665d1c52814..c786af4a749 100644 --- a/samples/client/petstore/java/docs/components/schemas/NumberWithValidations.md +++ b/samples/client/petstore/java/docs/components/schemas/NumberWithValidations.md @@ -36,7 +36,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## NumberWithValidations1 public static class NumberWithValidations1
@@ -78,5 +78,7 @@ int validatedPayload = NumberWithValidations.NumberWithValidations1.validate( | ----------------- | ---------------------- | | Number | validate(Number arg, SchemaConfiguration configuration) | | [NumberWithValidations1BoxedNumber](#numberwithvalidations1boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [NumberWithValidations1Boxed](#numberwithvalidations1boxed) | 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/petstore/java/docs/components/schemas/ObjWithRequiredProps.md b/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredProps.md index 99938a910d1..c2cee3d9c4c 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredProps.md @@ -43,7 +43,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ObjWithRequiredPropsMap](#objwithrequiredpropsmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ObjWithRequiredProps1 public static class ObjWithRequiredProps1
@@ -90,7 +90,9 @@ ObjWithRequiredProps.ObjWithRequiredPropsMap validatedPayload = | ----------------- | ---------------------- | | [ObjWithRequiredPropsMap](#objwithrequiredpropsmap) | validate([Map<?, ?>](#objwithrequiredpropsmapbuilder) arg, SchemaConfiguration configuration) | | [ObjWithRequiredProps1BoxedMap](#objwithrequiredprops1boxedmap) | validateAndBox([Map<?, ?>](#objwithrequiredpropsmapbuilder) arg, SchemaConfiguration configuration) | +| [ObjWithRequiredProps1Boxed](#objwithrequiredprops1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ObjWithRequiredPropsMap0Builder public class ObjWithRequiredPropsMap0Builder
builder for `Map` @@ -167,7 +169,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## A public static class A
diff --git a/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredPropsBase.md b/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredPropsBase.md index 9e6be3fd5c8..f1306494faf 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredPropsBase.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredPropsBase.md @@ -43,7 +43,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ObjWithRequiredPropsBaseMap](#objwithrequiredpropsbasemap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ObjWithRequiredPropsBase1 public static class ObjWithRequiredPropsBase1
@@ -89,7 +89,9 @@ ObjWithRequiredPropsBase.ObjWithRequiredPropsBaseMap validatedPayload = | ----------------- | ---------------------- | | [ObjWithRequiredPropsBaseMap](#objwithrequiredpropsbasemap) | validate([Map<?, ?>](#objwithrequiredpropsbasemapbuilder) arg, SchemaConfiguration configuration) | | [ObjWithRequiredPropsBase1BoxedMap](#objwithrequiredpropsbase1boxedmap) | validateAndBox([Map<?, ?>](#objwithrequiredpropsbasemapbuilder) arg, SchemaConfiguration configuration) | +| [ObjWithRequiredPropsBase1Boxed](#objwithrequiredpropsbase1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ObjWithRequiredPropsBaseMap0Builder public class ObjWithRequiredPropsBaseMap0Builder
builder for `Map` @@ -166,7 +168,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## B public static class B
diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectInterface.md b/samples/client/petstore/java/docs/components/schemas/ObjectInterface.md index 136a6850cb1..8aeb7dcd18c 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectInterface.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectInterface.md @@ -36,7 +36,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ObjectInterface1 public static class ObjectInterface1
diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectModelWithArgAndArgsProperties.md b/samples/client/petstore/java/docs/components/schemas/ObjectModelWithArgAndArgsProperties.md index 8ed4537847d..02da9587b85 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectModelWithArgAndArgsProperties.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectModelWithArgAndArgsProperties.md @@ -46,7 +46,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ObjectModelWithArgAndArgsPropertiesMap](#objectmodelwithargandargspropertiesmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ObjectModelWithArgAndArgsProperties1 public static class ObjectModelWithArgAndArgsProperties1
@@ -94,7 +94,9 @@ ObjectModelWithArgAndArgsProperties.ObjectModelWithArgAndArgsPropertiesMap valid | ----------------- | ---------------------- | | [ObjectModelWithArgAndArgsPropertiesMap](#objectmodelwithargandargspropertiesmap) | validate([Map<?, ?>](#objectmodelwithargandargspropertiesmapbuilder) arg, SchemaConfiguration configuration) | | [ObjectModelWithArgAndArgsProperties1BoxedMap](#objectmodelwithargandargsproperties1boxedmap) | validateAndBox([Map<?, ?>](#objectmodelwithargandargspropertiesmapbuilder) arg, SchemaConfiguration configuration) | +| [ObjectModelWithArgAndArgsProperties1Boxed](#objectmodelwithargandargsproperties1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ObjectModelWithArgAndArgsPropertiesMap00Builder public class ObjectModelWithArgAndArgsPropertiesMap00Builder
builder for `Map` @@ -205,7 +207,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Args public static class Args
@@ -240,7 +242,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Arg public static class Arg
diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectModelWithRefProps.md b/samples/client/petstore/java/docs/components/schemas/ObjectModelWithRefProps.md index 824d019e8c8..2c72a85906c 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectModelWithRefProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectModelWithRefProps.md @@ -40,7 +40,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ObjectModelWithRefPropsMap](#objectmodelwithrefpropsmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ObjectModelWithRefProps1 public static class ObjectModelWithRefProps1
@@ -86,7 +86,9 @@ ObjectModelWithRefProps.ObjectModelWithRefPropsMap validatedPayload = | ----------------- | ---------------------- | | [ObjectModelWithRefPropsMap](#objectmodelwithrefpropsmap) | validate([Map<?, ?>](#objectmodelwithrefpropsmapbuilder) arg, SchemaConfiguration configuration) | | [ObjectModelWithRefProps1BoxedMap](#objectmodelwithrefprops1boxedmap) | validateAndBox([Map<?, ?>](#objectmodelwithrefpropsmapbuilder) arg, SchemaConfiguration configuration) | +| [ObjectModelWithRefProps1Boxed](#objectmodelwithrefprops1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ObjectModelWithRefPropsMapBuilder public class ObjectModelWithRefPropsMapBuilder
builder for `Map` diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md index 672ae96f1bf..78af30ec37d 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md @@ -56,7 +56,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedBoolean public record ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedBoolean
@@ -73,7 +73,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedNumber public record ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedNumber
@@ -90,7 +90,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedString public record ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedString
@@ -107,7 +107,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedList public record ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedList
@@ -124,7 +124,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedMap public record ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedMap
@@ -141,7 +141,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ObjectWithAllOfWithReqTestPropFromUnsetAddProp1 public static class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1
@@ -173,7 +173,9 @@ A schema class that validates payloads | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedBoolean](#objectwithallofwithreqtestpropfromunsetaddprop1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedMap](#objectwithallofwithreqtestpropfromunsetaddprop1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedList](#objectwithallofwithreqtestpropfromunsetaddprop1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed](#objectwithallofwithreqtestpropfromunsetaddprop1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema1Boxed public sealed interface Schema1Boxed
permits
@@ -196,7 +198,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [Schema1Map](#schema1map) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema1 public static class Schema1
@@ -242,7 +244,9 @@ ObjectWithAllOfWithReqTestPropFromUnsetAddProp.Schema1Map validatedPayload = | ----------------- | ---------------------- | | [Schema1Map](#schema1map) | validate([Map<?, ?>](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | [Schema1BoxedMap](#schema1boxedmap) | validateAndBox([Map<?, ?>](#schema1mapbuilder) 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` @@ -329,7 +333,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Name public static class Name
diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithCollidingProperties.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithCollidingProperties.md index 7e9be7b86b8..6fb1c0d90c9 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithCollidingProperties.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithCollidingProperties.md @@ -46,7 +46,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ObjectWithCollidingPropertiesMap](#objectwithcollidingpropertiesmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ObjectWithCollidingProperties1 public static class ObjectWithCollidingProperties1
@@ -92,7 +92,9 @@ ObjectWithCollidingProperties.ObjectWithCollidingPropertiesMap validatedPayload | ----------------- | ---------------------- | | [ObjectWithCollidingPropertiesMap](#objectwithcollidingpropertiesmap) | validate([Map<?, ?>](#objectwithcollidingpropertiesmapbuilder) arg, SchemaConfiguration configuration) | | [ObjectWithCollidingProperties1BoxedMap](#objectwithcollidingproperties1boxedmap) | validateAndBox([Map<?, ?>](#objectwithcollidingpropertiesmapbuilder) arg, SchemaConfiguration configuration) | +| [ObjectWithCollidingProperties1Boxed](#objectwithcollidingproperties1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ObjectWithCollidingPropertiesMapBuilder public class ObjectWithCollidingPropertiesMapBuilder
builder for `Map` @@ -156,7 +158,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Someprop public static class Someprop
@@ -191,7 +193,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SomeProp public static class SomeProp
diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithDecimalProperties.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithDecimalProperties.md index 66545c1243a..9998c556097 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithDecimalProperties.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithDecimalProperties.md @@ -43,7 +43,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ObjectWithDecimalPropertiesMap](#objectwithdecimalpropertiesmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ObjectWithDecimalProperties1 public static class ObjectWithDecimalProperties1
@@ -102,7 +102,9 @@ ObjectWithDecimalProperties.ObjectWithDecimalPropertiesMap validatedPayload = | ----------------- | ---------------------- | | [ObjectWithDecimalPropertiesMap](#objectwithdecimalpropertiesmap) | validate([Map<?, ?>](#objectwithdecimalpropertiesmapbuilder) arg, SchemaConfiguration configuration) | | [ObjectWithDecimalProperties1BoxedMap](#objectwithdecimalproperties1boxedmap) | validateAndBox([Map<?, ?>](#objectwithdecimalpropertiesmapbuilder) arg, SchemaConfiguration configuration) | +| [ObjectWithDecimalProperties1Boxed](#objectwithdecimalproperties1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ObjectWithDecimalPropertiesMapBuilder public class ObjectWithDecimalPropertiesMapBuilder
builder for `Map` @@ -168,7 +170,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Width public static class Width
diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithDifficultlyNamedProps.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithDifficultlyNamedProps.md index e19b030e0a0..37516af58c0 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithDifficultlyNamedProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithDifficultlyNamedProps.md @@ -49,7 +49,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ObjectWithDifficultlyNamedPropsMap](#objectwithdifficultlynamedpropsmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ObjectWithDifficultlyNamedProps1 public static class ObjectWithDifficultlyNamedProps1
@@ -102,7 +102,9 @@ ObjectWithDifficultlyNamedProps.ObjectWithDifficultlyNamedPropsMap validatedPayl | ----------------- | ---------------------- | | [ObjectWithDifficultlyNamedPropsMap](#objectwithdifficultlynamedpropsmap) | validate([Map<?, ?>](#objectwithdifficultlynamedpropsmapbuilder) arg, SchemaConfiguration configuration) | | [ObjectWithDifficultlyNamedProps1BoxedMap](#objectwithdifficultlynamedprops1boxedmap) | validateAndBox([Map<?, ?>](#objectwithdifficultlynamedpropsmapbuilder) arg, SchemaConfiguration configuration) | +| [ObjectWithDifficultlyNamedProps1Boxed](#objectwithdifficultlynamedprops1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ObjectWithDifficultlyNamedPropsMap0Builder public class ObjectWithDifficultlyNamedPropsMap0Builder
builder for `Map` @@ -187,7 +189,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema123Number public static class Schema123Number
@@ -222,7 +224,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema123list public static class Schema123list
@@ -257,7 +259,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Specialpropertyname public static class Specialpropertyname
diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithInlineCompositionProperty.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithInlineCompositionProperty.md index cf31922ec5b..9cdb7902311 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithInlineCompositionProperty.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithInlineCompositionProperty.md @@ -51,7 +51,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ObjectWithInlineCompositionPropertyMap](#objectwithinlinecompositionpropertymap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ObjectWithInlineCompositionProperty1 public static class ObjectWithInlineCompositionProperty1
@@ -94,7 +94,9 @@ ObjectWithInlineCompositionProperty.ObjectWithInlineCompositionPropertyMap valid | ----------------- | ---------------------- | | [ObjectWithInlineCompositionPropertyMap](#objectwithinlinecompositionpropertymap) | validate([Map<?, ?>](#objectwithinlinecompositionpropertymapbuilder) arg, SchemaConfiguration configuration) | | [ObjectWithInlineCompositionProperty1BoxedMap](#objectwithinlinecompositionproperty1boxedmap) | validateAndBox([Map<?, ?>](#objectwithinlinecompositionpropertymapbuilder) arg, SchemaConfiguration configuration) | +| [ObjectWithInlineCompositionProperty1Boxed](#objectwithinlinecompositionproperty1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ObjectWithInlineCompositionPropertyMapBuilder public class ObjectWithInlineCompositionPropertyMapBuilder
builder for `Map` @@ -169,7 +171,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SomePropBoxedBoolean public record SomePropBoxedBoolean
@@ -186,7 +188,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SomePropBoxedNumber public record SomePropBoxedNumber
@@ -203,7 +205,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SomePropBoxedString public record SomePropBoxedString
@@ -220,7 +222,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SomePropBoxedList public record SomePropBoxedList
@@ -237,7 +239,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SomePropBoxedMap public record SomePropBoxedMap
@@ -254,7 +256,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SomeProp public static class SomeProp
@@ -286,7 +288,9 @@ A schema class that validates payloads | [SomePropBoxedBoolean](#somepropboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [SomePropBoxedMap](#somepropboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [SomePropBoxedList](#somepropboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [SomePropBoxed](#somepropboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema0Boxed public sealed interface Schema0Boxed
permits
@@ -309,7 +313,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0 public static class Schema0
@@ -350,5 +354,7 @@ String validatedPayload = ObjectWithInlineCompositionProperty.Schema0.validate( | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | | [Schema0BoxedString](#schema0boxedstring) | validateAndBox(String 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/petstore/java/docs/components/schemas/ObjectWithInvalidNamedRefedProperties.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithInvalidNamedRefedProperties.md index 20a951e5ea3..74239b954bb 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithInvalidNamedRefedProperties.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithInvalidNamedRefedProperties.md @@ -40,7 +40,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ObjectWithInvalidNamedRefedPropertiesMap](#objectwithinvalidnamedrefedpropertiesmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ObjectWithInvalidNamedRefedProperties1 public static class ObjectWithInvalidNamedRefedProperties1
@@ -101,7 +101,9 @@ ObjectWithInvalidNamedRefedProperties.ObjectWithInvalidNamedRefedPropertiesMap v | ----------------- | ---------------------- | | [ObjectWithInvalidNamedRefedPropertiesMap](#objectwithinvalidnamedrefedpropertiesmap) | validate([Map<?, ?>](#objectwithinvalidnamedrefedpropertiesmapbuilder) arg, SchemaConfiguration configuration) | | [ObjectWithInvalidNamedRefedProperties1BoxedMap](#objectwithinvalidnamedrefedproperties1boxedmap) | validateAndBox([Map<?, ?>](#objectwithinvalidnamedrefedpropertiesmapbuilder) arg, SchemaConfiguration configuration) | +| [ObjectWithInvalidNamedRefedProperties1Boxed](#objectwithinvalidnamedrefedproperties1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ObjectWithInvalidNamedRefedPropertiesMap00Builder public class ObjectWithInvalidNamedRefedPropertiesMap00Builder
builder for `Map` diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithNonIntersectingValues.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithNonIntersectingValues.md index 92c3eb31227..8cc1f5c2a16 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithNonIntersectingValues.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithNonIntersectingValues.md @@ -46,7 +46,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ObjectWithNonIntersectingValuesMap](#objectwithnonintersectingvaluesmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ObjectWithNonIntersectingValues1 public static class ObjectWithNonIntersectingValues1
@@ -94,7 +94,9 @@ ObjectWithNonIntersectingValues.ObjectWithNonIntersectingValuesMap validatedPayl | ----------------- | ---------------------- | | [ObjectWithNonIntersectingValuesMap](#objectwithnonintersectingvaluesmap) | validate([Map<?, ?>](#objectwithnonintersectingvaluesmapbuilder) arg, SchemaConfiguration configuration) | | [ObjectWithNonIntersectingValues1BoxedMap](#objectwithnonintersectingvalues1boxedmap) | validateAndBox([Map<?, ?>](#objectwithnonintersectingvaluesmapbuilder) arg, SchemaConfiguration configuration) | +| [ObjectWithNonIntersectingValues1Boxed](#objectwithnonintersectingvalues1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ObjectWithNonIntersectingValuesMapBuilder public class ObjectWithNonIntersectingValuesMapBuilder
builder for `Map` @@ -151,7 +153,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## A public static class A
@@ -186,7 +188,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithOnlyOptionalProps.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithOnlyOptionalProps.md index e82484fab5d..21b898e5c1a 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithOnlyOptionalProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithOnlyOptionalProps.md @@ -54,7 +54,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ObjectWithOnlyOptionalPropsMap](#objectwithonlyoptionalpropsmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ObjectWithOnlyOptionalProps1 public static class ObjectWithOnlyOptionalProps1
@@ -102,7 +102,9 @@ ObjectWithOnlyOptionalProps.ObjectWithOnlyOptionalPropsMap validatedPayload = | ----------------- | ---------------------- | | [ObjectWithOnlyOptionalPropsMap](#objectwithonlyoptionalpropsmap) | validate([Map<?, ?>](#objectwithonlyoptionalpropsmapbuilder) arg, SchemaConfiguration configuration) | | [ObjectWithOnlyOptionalProps1BoxedMap](#objectwithonlyoptionalprops1boxedmap) | validateAndBox([Map<?, ?>](#objectwithonlyoptionalpropsmapbuilder) arg, SchemaConfiguration configuration) | +| [ObjectWithOnlyOptionalProps1Boxed](#objectwithonlyoptionalprops1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ObjectWithOnlyOptionalPropsMapBuilder public class ObjectWithOnlyOptionalPropsMapBuilder
builder for `Map` @@ -159,7 +161,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## B public static class B
@@ -194,7 +196,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## A public static class A
@@ -234,7 +236,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedBoolean public record AdditionalPropertiesBoxedBoolean
@@ -251,7 +253,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedNumber public record AdditionalPropertiesBoxedNumber
@@ -268,7 +270,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedString public record AdditionalPropertiesBoxedString
@@ -285,7 +287,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedList public record AdditionalPropertiesBoxedList
@@ -302,7 +304,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedMap public record AdditionalPropertiesBoxedMap
@@ -319,7 +321,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithOptionalTestProp.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithOptionalTestProp.md index 43daf8cc61c..bacee601e61 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithOptionalTestProp.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithOptionalTestProp.md @@ -43,7 +43,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ObjectWithOptionalTestPropMap](#objectwithoptionaltestpropmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ObjectWithOptionalTestProp1 public static class ObjectWithOptionalTestProp1
@@ -88,7 +88,9 @@ ObjectWithOptionalTestProp.ObjectWithOptionalTestPropMap validatedPayload = | ----------------- | ---------------------- | | [ObjectWithOptionalTestPropMap](#objectwithoptionaltestpropmap) | validate([Map<?, ?>](#objectwithoptionaltestpropmapbuilder) arg, SchemaConfiguration configuration) | | [ObjectWithOptionalTestProp1BoxedMap](#objectwithoptionaltestprop1boxedmap) | validateAndBox([Map<?, ?>](#objectwithoptionaltestpropmapbuilder) arg, SchemaConfiguration configuration) | +| [ObjectWithOptionalTestProp1Boxed](#objectwithoptionaltestprop1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ObjectWithOptionalTestPropMapBuilder public class ObjectWithOptionalTestPropMapBuilder
builder for `Map` @@ -150,7 +152,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Test public static class Test
diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithValidations.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithValidations.md index 55231bb4b67..0106942b3fd 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithValidations.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithValidations.md @@ -36,7 +36,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ObjectWithValidations1 public static class ObjectWithValidations1
@@ -55,5 +55,7 @@ A schema class that validates payloads | ----------------- | ---------------------- | | FrozenMap | validate(Map<?, ?> arg, SchemaConfiguration configuration) | | [ObjectWithValidations1BoxedMap](#objectwithvalidations1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | +| [ObjectWithValidations1Boxed](#objectwithvalidations1boxed) | 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/petstore/java/docs/components/schemas/Order.md b/samples/client/petstore/java/docs/components/schemas/Order.md index 93471d71a8e..dbdae6eade6 100644 --- a/samples/client/petstore/java/docs/components/schemas/Order.md +++ b/samples/client/petstore/java/docs/components/schemas/Order.md @@ -60,7 +60,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [OrderMap](#ordermap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Order1 public static class Order1
@@ -115,7 +115,9 @@ Order.OrderMap validatedPayload = | ----------------- | ---------------------- | | [OrderMap](#ordermap) | validate([Map<?, ?>](#ordermapbuilder) arg, SchemaConfiguration configuration) | | [Order1BoxedMap](#order1boxedmap) | validateAndBox([Map<?, ?>](#ordermapbuilder) arg, SchemaConfiguration configuration) | +| [Order1Boxed](#order1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## OrderMapBuilder public class OrderMapBuilder
builder for `Map` @@ -195,7 +197,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Complete public static class Complete
@@ -230,7 +232,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Status public static class Status
@@ -275,7 +277,9 @@ String validatedPayload = Order.Status.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringStatusEnums](#stringstatusenums) arg, SchemaConfiguration configuration) | | [StatusBoxedString](#statusboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [StatusBoxed](#statusboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringStatusEnums public enum StringStatusEnums
extends `Enum` @@ -311,7 +315,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ShipDate public static class ShipDate
@@ -346,7 +350,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Quantity public static class Quantity
@@ -381,7 +385,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## PetId public static class PetId
@@ -416,7 +420,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Id public static class Id
diff --git a/samples/client/petstore/java/docs/components/schemas/PaginatedResultMyObjectDto.md b/samples/client/petstore/java/docs/components/schemas/PaginatedResultMyObjectDto.md index e30474cc253..7b0f6ff8e2f 100644 --- a/samples/client/petstore/java/docs/components/schemas/PaginatedResultMyObjectDto.md +++ b/samples/client/petstore/java/docs/components/schemas/PaginatedResultMyObjectDto.md @@ -58,7 +58,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [PaginatedResultMyObjectDtoMap](#paginatedresultmyobjectdtomap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## PaginatedResultMyObjectDto1 public static class PaginatedResultMyObjectDto1
@@ -109,7 +109,9 @@ PaginatedResultMyObjectDto.PaginatedResultMyObjectDtoMap validatedPayload = | ----------------- | ---------------------- | | [PaginatedResultMyObjectDtoMap](#paginatedresultmyobjectdtomap) | validate([Map<?, ?>](#paginatedresultmyobjectdtomapbuilder) arg, SchemaConfiguration configuration) | | [PaginatedResultMyObjectDto1BoxedMap](#paginatedresultmyobjectdto1boxedmap) | validateAndBox([Map<?, ?>](#paginatedresultmyobjectdtomapbuilder) arg, SchemaConfiguration configuration) | +| [PaginatedResultMyObjectDto1Boxed](#paginatedresultmyobjectdto1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## PaginatedResultMyObjectDtoMap00Builder public class PaginatedResultMyObjectDtoMap00Builder
builder for `Map` @@ -216,7 +218,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ResultsList](#resultslist) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Results public static class Results
@@ -259,7 +261,9 @@ PaginatedResultMyObjectDto.ResultsList validatedPayload = | ----------------- | ---------------------- | | [ResultsList](#resultslist) | validate([List](#resultslistbuilder) arg, SchemaConfiguration configuration) | | [ResultsBoxedList](#resultsboxedlist) | validateAndBox([List](#resultslistbuilder) arg, SchemaConfiguration configuration) | +| [ResultsBoxed](#resultsboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ResultsListBuilder public class ResultsListBuilder
builder for `List>` @@ -311,7 +315,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Count public static class Count
@@ -351,7 +355,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedBoolean public record AdditionalPropertiesBoxedBoolean
@@ -368,7 +372,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedNumber public record AdditionalPropertiesBoxedNumber
@@ -385,7 +389,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedString public record AdditionalPropertiesBoxedString
@@ -402,7 +406,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedList public record AdditionalPropertiesBoxedList
@@ -419,7 +423,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedMap public record AdditionalPropertiesBoxedMap
@@ -436,7 +440,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/ParentPet.md b/samples/client/petstore/java/docs/components/schemas/ParentPet.md index 928d0a721c1..40e00cda1ad 100644 --- a/samples/client/petstore/java/docs/components/schemas/ParentPet.md +++ b/samples/client/petstore/java/docs/components/schemas/ParentPet.md @@ -36,7 +36,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ParentPet1 public static class ParentPet1
@@ -55,5 +55,7 @@ A schema class that validates payloads | ----------------- | ---------------------- | | FrozenMap | validate(Map<?, ?> arg, SchemaConfiguration configuration) | | [ParentPet1BoxedMap](#parentpet1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | +| [ParentPet1Boxed](#parentpet1boxed) | 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/petstore/java/docs/components/schemas/Pet.md b/samples/client/petstore/java/docs/components/schemas/Pet.md index 28d301da55b..5182330e58b 100644 --- a/samples/client/petstore/java/docs/components/schemas/Pet.md +++ b/samples/client/petstore/java/docs/components/schemas/Pet.md @@ -66,7 +66,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [PetMap](#petmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Pet1 public static class Pet1
@@ -146,7 +146,9 @@ Pet.PetMap validatedPayload = | ----------------- | ---------------------- | | [PetMap](#petmap) | validate([Map<?, ?>](#petmapbuilder) arg, SchemaConfiguration configuration) | | [Pet1BoxedMap](#pet1boxedmap) | validateAndBox([Map<?, ?>](#petmapbuilder) arg, SchemaConfiguration configuration) | +| [Pet1Boxed](#pet1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## PetMap00Builder public class PetMap00Builder
builder for `Map` @@ -269,7 +271,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [TagsList](#tagslist) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Tags public static class Tags
@@ -324,7 +326,9 @@ Pet.TagsList validatedPayload = | ----------------- | ---------------------- | | [TagsList](#tagslist) | validate([List](#tagslistbuilder) arg, SchemaConfiguration configuration) | | [TagsBoxedList](#tagsboxedlist) | validateAndBox([List](#tagslistbuilder) arg, SchemaConfiguration configuration) | +| [TagsBoxed](#tagsboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## TagsListBuilder public class TagsListBuilder
builder for `List>` @@ -376,7 +380,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Status public static class Status
@@ -421,7 +425,9 @@ String validatedPayload = Pet.Status.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringStatusEnums](#stringstatusenums) arg, SchemaConfiguration configuration) | | [StatusBoxedString](#statusboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [StatusBoxed](#statusboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringStatusEnums public enum StringStatusEnums
extends `Enum` @@ -457,7 +463,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [PhotoUrlsList](#photourlslist) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## PhotoUrls public static class PhotoUrls
@@ -502,7 +508,9 @@ Pet.PhotoUrlsList validatedPayload = | ----------------- | ---------------------- | | [PhotoUrlsList](#photourlslist) | validate([List](#photourlslistbuilder) arg, SchemaConfiguration configuration) | | [PhotoUrlsBoxedList](#photourlsboxedlist) | validateAndBox([List](#photourlslistbuilder) arg, SchemaConfiguration configuration) | +| [PhotoUrlsBoxed](#photourlsboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## PhotoUrlsListBuilder public class PhotoUrlsListBuilder
builder for `List` @@ -554,7 +562,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Items public static class Items
@@ -589,7 +597,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Name public static class Name
@@ -624,7 +632,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Id public static class Id
diff --git a/samples/client/petstore/java/docs/components/schemas/Pig.md b/samples/client/petstore/java/docs/components/schemas/Pig.md index 0b492a054ed..7d745247868 100644 --- a/samples/client/petstore/java/docs/components/schemas/Pig.md +++ b/samples/client/petstore/java/docs/components/schemas/Pig.md @@ -46,7 +46,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Pig1BoxedBoolean public record Pig1BoxedBoolean
@@ -63,7 +63,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Pig1BoxedNumber public record Pig1BoxedNumber
@@ -80,7 +80,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Pig1BoxedString public record Pig1BoxedString
@@ -97,7 +97,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Pig1BoxedList public record Pig1BoxedList
@@ -114,7 +114,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Pig1BoxedMap public record Pig1BoxedMap
@@ -131,7 +131,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Pig1 public static class Pig1
@@ -163,5 +163,7 @@ A schema class that validates payloads | [Pig1BoxedBoolean](#pig1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [Pig1BoxedMap](#pig1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [Pig1BoxedList](#pig1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [Pig1Boxed](#pig1boxed) | 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/petstore/java/docs/components/schemas/Player.md b/samples/client/petstore/java/docs/components/schemas/Player.md index cd5039e18df..9f6f7adb7c0 100644 --- a/samples/client/petstore/java/docs/components/schemas/Player.md +++ b/samples/client/petstore/java/docs/components/schemas/Player.md @@ -43,7 +43,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [PlayerMap](#playermap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Player1 public static class Player1
@@ -91,7 +91,9 @@ Player.PlayerMap validatedPayload = | ----------------- | ---------------------- | | [PlayerMap](#playermap) | validate([Map<?, ?>](#playermapbuilder) arg, SchemaConfiguration configuration) | | [Player1BoxedMap](#player1boxedmap) | validateAndBox([Map<?, ?>](#playermapbuilder) arg, SchemaConfiguration configuration) | +| [Player1Boxed](#player1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## PlayerMapBuilder public class PlayerMapBuilder
builder for `Map` @@ -155,7 +157,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Name public static class Name
diff --git a/samples/client/petstore/java/docs/components/schemas/PublicKey.md b/samples/client/petstore/java/docs/components/schemas/PublicKey.md index 8f4ae23ebfa..55b3a8b52bf 100644 --- a/samples/client/petstore/java/docs/components/schemas/PublicKey.md +++ b/samples/client/petstore/java/docs/components/schemas/PublicKey.md @@ -43,7 +43,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [PublicKeyMap](#publickeymap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## PublicKey1 public static class PublicKey1
@@ -91,7 +91,9 @@ PublicKey.PublicKeyMap validatedPayload = | ----------------- | ---------------------- | | [PublicKeyMap](#publickeymap) | validate([Map<?, ?>](#publickeymapbuilder) arg, SchemaConfiguration configuration) | | [PublicKey1BoxedMap](#publickey1boxedmap) | validateAndBox([Map<?, ?>](#publickeymapbuilder) arg, SchemaConfiguration configuration) | +| [PublicKey1Boxed](#publickey1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## PublicKeyMapBuilder public class PublicKeyMapBuilder
builder for `Map` @@ -153,7 +155,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Key public static class Key
diff --git a/samples/client/petstore/java/docs/components/schemas/Quadrilateral.md b/samples/client/petstore/java/docs/components/schemas/Quadrilateral.md index 397b4f73e77..801ec649997 100644 --- a/samples/client/petstore/java/docs/components/schemas/Quadrilateral.md +++ b/samples/client/petstore/java/docs/components/schemas/Quadrilateral.md @@ -46,7 +46,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Quadrilateral1BoxedBoolean public record Quadrilateral1BoxedBoolean
@@ -63,7 +63,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Quadrilateral1BoxedNumber public record Quadrilateral1BoxedNumber
@@ -80,7 +80,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Quadrilateral1BoxedString public record Quadrilateral1BoxedString
@@ -97,7 +97,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Quadrilateral1BoxedList public record Quadrilateral1BoxedList
@@ -114,7 +114,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Quadrilateral1BoxedMap public record Quadrilateral1BoxedMap
@@ -131,7 +131,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Quadrilateral1 public static class Quadrilateral1
@@ -163,5 +163,7 @@ A schema class that validates payloads | [Quadrilateral1BoxedBoolean](#quadrilateral1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [Quadrilateral1BoxedMap](#quadrilateral1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [Quadrilateral1BoxedList](#quadrilateral1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [Quadrilateral1Boxed](#quadrilateral1boxed) | 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/petstore/java/docs/components/schemas/QuadrilateralInterface.md b/samples/client/petstore/java/docs/components/schemas/QuadrilateralInterface.md index 9502846e222..596aa135a24 100644 --- a/samples/client/petstore/java/docs/components/schemas/QuadrilateralInterface.md +++ b/samples/client/petstore/java/docs/components/schemas/QuadrilateralInterface.md @@ -58,7 +58,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## QuadrilateralInterface1BoxedBoolean public record QuadrilateralInterface1BoxedBoolean
@@ -75,7 +75,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## QuadrilateralInterface1BoxedNumber public record QuadrilateralInterface1BoxedNumber
@@ -92,7 +92,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## QuadrilateralInterface1BoxedString public record QuadrilateralInterface1BoxedString
@@ -109,7 +109,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## QuadrilateralInterface1BoxedList public record QuadrilateralInterface1BoxedList
@@ -126,7 +126,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## QuadrilateralInterface1BoxedMap public record QuadrilateralInterface1BoxedMap
@@ -143,7 +143,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [QuadrilateralInterfaceMap](#quadrilateralinterfacemap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## QuadrilateralInterface1 public static class QuadrilateralInterface1
@@ -176,7 +176,9 @@ A schema class that validates payloads | [QuadrilateralInterface1BoxedBoolean](#quadrilateralinterface1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [QuadrilateralInterface1BoxedMap](#quadrilateralinterface1boxedmap) | validateAndBox([Map<?, ?>](#quadrilateralinterfacemapbuilder) arg, SchemaConfiguration configuration) | | [QuadrilateralInterface1BoxedList](#quadrilateralinterface1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [QuadrilateralInterface1Boxed](#quadrilateralinterface1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## QuadrilateralInterfaceMap00Builder public class QuadrilateralInterfaceMap00Builder
builder for `Map` @@ -289,7 +291,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## QuadrilateralType public static class QuadrilateralType
@@ -324,7 +326,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ShapeType public static class ShapeType
@@ -366,7 +368,9 @@ String validatedPayload = QuadrilateralInterface.ShapeType.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringShapeTypeEnums](#stringshapetypeenums) arg, SchemaConfiguration configuration) | | [ShapeTypeBoxedString](#shapetypeboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [ShapeTypeBoxed](#shapetypeboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringShapeTypeEnums public enum StringShapeTypeEnums
extends `Enum` diff --git a/samples/client/petstore/java/docs/components/schemas/ReadOnlyFirst.md b/samples/client/petstore/java/docs/components/schemas/ReadOnlyFirst.md index f9d95a8bfc1..ab772fb7e76 100644 --- a/samples/client/petstore/java/docs/components/schemas/ReadOnlyFirst.md +++ b/samples/client/petstore/java/docs/components/schemas/ReadOnlyFirst.md @@ -46,7 +46,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ReadOnlyFirstMap](#readonlyfirstmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ReadOnlyFirst1 public static class ReadOnlyFirst1
@@ -93,7 +93,9 @@ ReadOnlyFirst.ReadOnlyFirstMap validatedPayload = | ----------------- | ---------------------- | | [ReadOnlyFirstMap](#readonlyfirstmap) | validate([Map<?, ?>](#readonlyfirstmapbuilder) arg, SchemaConfiguration configuration) | | [ReadOnlyFirst1BoxedMap](#readonlyfirst1boxedmap) | validateAndBox([Map<?, ?>](#readonlyfirstmapbuilder) arg, SchemaConfiguration configuration) | +| [ReadOnlyFirst1Boxed](#readonlyfirst1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ReadOnlyFirstMapBuilder public class ReadOnlyFirstMapBuilder
builder for `Map` @@ -157,7 +159,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Baz public static class Baz
@@ -192,7 +194,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Bar public static class Bar
diff --git a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromExplicitAddProps.md b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromExplicitAddProps.md index 3ed3d47a27c..6efb4a28731 100644 --- a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromExplicitAddProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromExplicitAddProps.md @@ -43,7 +43,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ReqPropsFromExplicitAddPropsMap](#reqpropsfromexplicitaddpropsmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ReqPropsFromExplicitAddProps1 public static class ReqPropsFromExplicitAddProps1
@@ -89,7 +89,9 @@ ReqPropsFromExplicitAddProps.ReqPropsFromExplicitAddPropsMap validatedPayload = | ----------------- | ---------------------- | | [ReqPropsFromExplicitAddPropsMap](#reqpropsfromexplicitaddpropsmap) | validate([Map<?, ?>](#reqpropsfromexplicitaddpropsmapbuilder) arg, SchemaConfiguration configuration) | | [ReqPropsFromExplicitAddProps1BoxedMap](#reqpropsfromexplicitaddprops1boxedmap) | validateAndBox([Map<?, ?>](#reqpropsfromexplicitaddpropsmapbuilder) arg, SchemaConfiguration configuration) | +| [ReqPropsFromExplicitAddProps1Boxed](#reqpropsfromexplicitaddprops1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ReqPropsFromExplicitAddPropsMap00Builder public class ReqPropsFromExplicitAddPropsMap00Builder
builder for `Map` @@ -192,7 +194,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromTrueAddProps.md b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromTrueAddProps.md index 3132c5ac78d..78a4b03b926 100644 --- a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromTrueAddProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromTrueAddProps.md @@ -48,7 +48,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ReqPropsFromTrueAddPropsMap](#reqpropsfromtrueaddpropsmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ReqPropsFromTrueAddProps1 public static class ReqPropsFromTrueAddProps1
@@ -92,7 +92,9 @@ ReqPropsFromTrueAddProps.ReqPropsFromTrueAddPropsMap validatedPayload = | ----------------- | ---------------------- | | [ReqPropsFromTrueAddPropsMap](#reqpropsfromtrueaddpropsmap) | validate([Map<?, ?>](#reqpropsfromtrueaddpropsmapbuilder) arg, SchemaConfiguration configuration) | | [ReqPropsFromTrueAddProps1BoxedMap](#reqpropsfromtrueaddprops1boxedmap) | validateAndBox([Map<?, ?>](#reqpropsfromtrueaddpropsmapbuilder) arg, SchemaConfiguration configuration) | +| [ReqPropsFromTrueAddProps1Boxed](#reqpropsfromtrueaddprops1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ReqPropsFromTrueAddPropsMap00Builder public class ReqPropsFromTrueAddPropsMap00Builder
builder for `Map` @@ -240,7 +242,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedBoolean public record AdditionalPropertiesBoxedBoolean
@@ -257,7 +259,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedNumber public record AdditionalPropertiesBoxedNumber
@@ -274,7 +276,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedString public record AdditionalPropertiesBoxedString
@@ -291,7 +293,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedList public record AdditionalPropertiesBoxedList
@@ -308,7 +310,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedMap public record AdditionalPropertiesBoxedMap
@@ -325,7 +327,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromUnsetAddProps.md b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromUnsetAddProps.md index 64d4ffbd506..760fc87ce31 100644 --- a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromUnsetAddProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromUnsetAddProps.md @@ -40,7 +40,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ReqPropsFromUnsetAddPropsMap](#reqpropsfromunsetaddpropsmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ReqPropsFromUnsetAddProps1 public static class ReqPropsFromUnsetAddProps1
@@ -83,7 +83,9 @@ ReqPropsFromUnsetAddProps.ReqPropsFromUnsetAddPropsMap validatedPayload = | ----------------- | ---------------------- | | [ReqPropsFromUnsetAddPropsMap](#reqpropsfromunsetaddpropsmap) | validate([Map<?, ?>](#reqpropsfromunsetaddpropsmapbuilder) arg, SchemaConfiguration configuration) | | [ReqPropsFromUnsetAddProps1BoxedMap](#reqpropsfromunsetaddprops1boxedmap) | validateAndBox([Map<?, ?>](#reqpropsfromunsetaddpropsmapbuilder) arg, SchemaConfiguration configuration) | +| [ReqPropsFromUnsetAddProps1Boxed](#reqpropsfromunsetaddprops1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ReqPropsFromUnsetAddPropsMap00Builder public class ReqPropsFromUnsetAddPropsMap00Builder
builder for `Map` diff --git a/samples/client/petstore/java/docs/components/schemas/ReturnSchema.md b/samples/client/petstore/java/docs/components/schemas/ReturnSchema.md index 334c4d6d6b3..906c4400134 100644 --- a/samples/client/petstore/java/docs/components/schemas/ReturnSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/ReturnSchema.md @@ -53,7 +53,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ReturnSchema1BoxedBoolean public record ReturnSchema1BoxedBoolean
@@ -70,7 +70,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ReturnSchema1BoxedNumber public record ReturnSchema1BoxedNumber
@@ -87,7 +87,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ReturnSchema1BoxedString public record ReturnSchema1BoxedString
@@ -104,7 +104,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ReturnSchema1BoxedList public record ReturnSchema1BoxedList
@@ -121,7 +121,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ReturnSchema1BoxedMap public record ReturnSchema1BoxedMap
@@ -138,7 +138,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ReturnMap](#returnmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ReturnSchema1 public static class ReturnSchema1
@@ -173,7 +173,9 @@ Model for testing reserved words | [ReturnSchema1BoxedBoolean](#returnschema1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ReturnSchema1BoxedMap](#returnschema1boxedmap) | validateAndBox([Map<?, ?>](#returnmapbuilder1) arg, SchemaConfiguration configuration) | | [ReturnSchema1BoxedList](#returnschema1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ReturnSchema1Boxed](#returnschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ReturnMapBuilder1 public class ReturnMapBuilder1
builder for `Map` @@ -236,7 +238,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ReturnSchema2 public static class ReturnSchema2
diff --git a/samples/client/petstore/java/docs/components/schemas/ScaleneTriangle.md b/samples/client/petstore/java/docs/components/schemas/ScaleneTriangle.md index f986f086bcd..e856a876d87 100644 --- a/samples/client/petstore/java/docs/components/schemas/ScaleneTriangle.md +++ b/samples/client/petstore/java/docs/components/schemas/ScaleneTriangle.md @@ -58,7 +58,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ScaleneTriangle1BoxedBoolean public record ScaleneTriangle1BoxedBoolean
@@ -75,7 +75,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ScaleneTriangle1BoxedNumber public record ScaleneTriangle1BoxedNumber
@@ -92,7 +92,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ScaleneTriangle1BoxedString public record ScaleneTriangle1BoxedString
@@ -109,7 +109,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ScaleneTriangle1BoxedList public record ScaleneTriangle1BoxedList
@@ -126,7 +126,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ScaleneTriangle1BoxedMap public record ScaleneTriangle1BoxedMap
@@ -143,7 +143,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ScaleneTriangle1 public static class ScaleneTriangle1
@@ -175,7 +175,9 @@ A schema class that validates payloads | [ScaleneTriangle1BoxedBoolean](#scalenetriangle1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ScaleneTriangle1BoxedMap](#scalenetriangle1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [ScaleneTriangle1BoxedList](#scalenetriangle1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ScaleneTriangle1Boxed](#scalenetriangle1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema1Boxed public sealed interface Schema1Boxed
permits
@@ -198,7 +200,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [Schema1Map](#schema1map) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema1 public static class Schema1
@@ -243,7 +245,9 @@ ScaleneTriangle.Schema1Map validatedPayload = | ----------------- | ---------------------- | | [Schema1Map](#schema1map) | validate([Map<?, ?>](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | [Schema1BoxedMap](#schema1boxedmap) | validateAndBox([Map<?, ?>](#schema1mapbuilder) arg, SchemaConfiguration configuration) | +| [Schema1Boxed](#schema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema1MapBuilder public class Schema1MapBuilder
builder for `Map` @@ -306,7 +310,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## TriangleType public static class TriangleType
@@ -348,7 +352,9 @@ String validatedPayload = ScaleneTriangle.TriangleType.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringTriangleTypeEnums](#stringtriangletypeenums) arg, SchemaConfiguration configuration) | | [TriangleTypeBoxedString](#triangletypeboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [TriangleTypeBoxed](#triangletypeboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringTriangleTypeEnums public enum StringTriangleTypeEnums
extends `Enum` diff --git a/samples/client/petstore/java/docs/components/schemas/Schema200Response.md b/samples/client/petstore/java/docs/components/schemas/Schema200Response.md index 14480fedd5a..3c846845f4f 100644 --- a/samples/client/petstore/java/docs/components/schemas/Schema200Response.md +++ b/samples/client/petstore/java/docs/components/schemas/Schema200Response.md @@ -56,7 +56,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema200Response1BoxedBoolean public record Schema200Response1BoxedBoolean
@@ -73,7 +73,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema200Response1BoxedNumber public record Schema200Response1BoxedNumber
@@ -90,7 +90,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema200Response1BoxedString public record Schema200Response1BoxedString
@@ -107,7 +107,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema200Response1BoxedList public record Schema200Response1BoxedList
@@ -124,7 +124,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema200Response1BoxedMap public record Schema200Response1BoxedMap
@@ -141,7 +141,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [Schema200ResponseMap](#schema200responsemap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema200Response1 public static class Schema200Response1
@@ -176,7 +176,9 @@ model with an invalid class name for python, starts with a number | [Schema200Response1BoxedBoolean](#schema200response1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [Schema200Response1BoxedMap](#schema200response1boxedmap) | validateAndBox([Map<?, ?>](#schema200responsemapbuilder) arg, SchemaConfiguration configuration) | | [Schema200Response1BoxedList](#schema200response1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [Schema200Response1Boxed](#schema200response1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema200ResponseMapBuilder public class Schema200ResponseMapBuilder
builder for `Map` @@ -241,7 +243,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ClassSchema public static class ClassSchema
@@ -279,7 +281,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Name public static class Name
diff --git a/samples/client/petstore/java/docs/components/schemas/SelfReferencingArrayModel.md b/samples/client/petstore/java/docs/components/schemas/SelfReferencingArrayModel.md index 8d0f8965e81..bcdc781baaa 100644 --- a/samples/client/petstore/java/docs/components/schemas/SelfReferencingArrayModel.md +++ b/samples/client/petstore/java/docs/components/schemas/SelfReferencingArrayModel.md @@ -40,7 +40,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [SelfReferencingArrayModelList](#selfreferencingarraymodellist) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SelfReferencingArrayModel1 public static class SelfReferencingArrayModel1
@@ -83,7 +83,9 @@ SelfReferencingArrayModel.SelfReferencingArrayModelList validatedPayload = | ----------------- | ---------------------- | | [SelfReferencingArrayModelList](#selfreferencingarraymodellist) | validate([List](#selfreferencingarraymodellistbuilder) arg, SchemaConfiguration configuration) | | [SelfReferencingArrayModel1BoxedList](#selfreferencingarraymodel1boxedlist) | validateAndBox([List](#selfreferencingarraymodellistbuilder) arg, SchemaConfiguration configuration) | +| [SelfReferencingArrayModel1Boxed](#selfreferencingarraymodel1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## SelfReferencingArrayModelListBuilder public class SelfReferencingArrayModelListBuilder
builder for `List>` diff --git a/samples/client/petstore/java/docs/components/schemas/SelfReferencingObjectModel.md b/samples/client/petstore/java/docs/components/schemas/SelfReferencingObjectModel.md index 1e2b4b83b44..0aa437e381a 100644 --- a/samples/client/petstore/java/docs/components/schemas/SelfReferencingObjectModel.md +++ b/samples/client/petstore/java/docs/components/schemas/SelfReferencingObjectModel.md @@ -40,7 +40,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [SelfReferencingObjectModelMap](#selfreferencingobjectmodelmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SelfReferencingObjectModel1 public static class SelfReferencingObjectModel1
@@ -84,7 +84,9 @@ SelfReferencingObjectModel.SelfReferencingObjectModelMap validatedPayload = | ----------------- | ---------------------- | | [SelfReferencingObjectModelMap](#selfreferencingobjectmodelmap) | validate([Map<?, ?>](#selfreferencingobjectmodelmapbuilder) arg, SchemaConfiguration configuration) | | [SelfReferencingObjectModel1BoxedMap](#selfreferencingobjectmodel1boxedmap) | validateAndBox([Map<?, ?>](#selfreferencingobjectmodelmapbuilder) arg, SchemaConfiguration configuration) | +| [SelfReferencingObjectModel1Boxed](#selfreferencingobjectmodel1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## SelfReferencingObjectModelMapBuilder public class SelfReferencingObjectModelMapBuilder
builder for `Map` diff --git a/samples/client/petstore/java/docs/components/schemas/Shape.md b/samples/client/petstore/java/docs/components/schemas/Shape.md index df6c0ca8f8e..b97865734b3 100644 --- a/samples/client/petstore/java/docs/components/schemas/Shape.md +++ b/samples/client/petstore/java/docs/components/schemas/Shape.md @@ -46,7 +46,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Shape1BoxedBoolean public record Shape1BoxedBoolean
@@ -63,7 +63,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Shape1BoxedNumber public record Shape1BoxedNumber
@@ -80,7 +80,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Shape1BoxedString public record Shape1BoxedString
@@ -97,7 +97,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Shape1BoxedList public record Shape1BoxedList
@@ -114,7 +114,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Shape1BoxedMap public record Shape1BoxedMap
@@ -131,7 +131,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Shape1 public static class Shape1
@@ -163,5 +163,7 @@ A schema class that validates payloads | [Shape1BoxedBoolean](#shape1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [Shape1BoxedMap](#shape1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [Shape1BoxedList](#shape1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [Shape1Boxed](#shape1boxed) | 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/petstore/java/docs/components/schemas/ShapeOrNull.md b/samples/client/petstore/java/docs/components/schemas/ShapeOrNull.md index 25ade3d710b..06a79940709 100644 --- a/samples/client/petstore/java/docs/components/schemas/ShapeOrNull.md +++ b/samples/client/petstore/java/docs/components/schemas/ShapeOrNull.md @@ -49,7 +49,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ShapeOrNull1BoxedBoolean public record ShapeOrNull1BoxedBoolean
@@ -66,7 +66,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ShapeOrNull1BoxedNumber public record ShapeOrNull1BoxedNumber
@@ -83,7 +83,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ShapeOrNull1BoxedString public record ShapeOrNull1BoxedString
@@ -100,7 +100,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ShapeOrNull1BoxedList public record ShapeOrNull1BoxedList
@@ -117,7 +117,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ShapeOrNull1BoxedMap public record ShapeOrNull1BoxedMap
@@ -134,7 +134,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ShapeOrNull1 public static class ShapeOrNull1
@@ -169,7 +169,9 @@ The value may be a shape or the 'null' value. This is introduced in OA | [ShapeOrNull1BoxedBoolean](#shapeornull1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ShapeOrNull1BoxedMap](#shapeornull1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [ShapeOrNull1BoxedList](#shapeornull1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ShapeOrNull1Boxed](#shapeornull1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema0Boxed public sealed interface Schema0Boxed
permits
@@ -192,7 +194,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema0 public static class Schema0
diff --git a/samples/client/petstore/java/docs/components/schemas/SimpleQuadrilateral.md b/samples/client/petstore/java/docs/components/schemas/SimpleQuadrilateral.md index ac83d7979fa..5a56605462a 100644 --- a/samples/client/petstore/java/docs/components/schemas/SimpleQuadrilateral.md +++ b/samples/client/petstore/java/docs/components/schemas/SimpleQuadrilateral.md @@ -58,7 +58,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SimpleQuadrilateral1BoxedBoolean public record SimpleQuadrilateral1BoxedBoolean
@@ -75,7 +75,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SimpleQuadrilateral1BoxedNumber public record SimpleQuadrilateral1BoxedNumber
@@ -92,7 +92,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SimpleQuadrilateral1BoxedString public record SimpleQuadrilateral1BoxedString
@@ -109,7 +109,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SimpleQuadrilateral1BoxedList public record SimpleQuadrilateral1BoxedList
@@ -126,7 +126,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SimpleQuadrilateral1BoxedMap public record SimpleQuadrilateral1BoxedMap
@@ -143,7 +143,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SimpleQuadrilateral1 public static class SimpleQuadrilateral1
@@ -175,7 +175,9 @@ A schema class that validates payloads | [SimpleQuadrilateral1BoxedBoolean](#simplequadrilateral1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [SimpleQuadrilateral1BoxedMap](#simplequadrilateral1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [SimpleQuadrilateral1BoxedList](#simplequadrilateral1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [SimpleQuadrilateral1Boxed](#simplequadrilateral1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema1Boxed public sealed interface Schema1Boxed
permits
@@ -198,7 +200,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [Schema1Map](#schema1map) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema1 public static class Schema1
@@ -243,7 +245,9 @@ SimpleQuadrilateral.Schema1Map validatedPayload = | ----------------- | ---------------------- | | [Schema1Map](#schema1map) | validate([Map<?, ?>](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | [Schema1BoxedMap](#schema1boxedmap) | validateAndBox([Map<?, ?>](#schema1mapbuilder) arg, SchemaConfiguration configuration) | +| [Schema1Boxed](#schema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema1MapBuilder public class Schema1MapBuilder
builder for `Map` @@ -306,7 +310,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## QuadrilateralType public static class QuadrilateralType
@@ -348,7 +352,9 @@ String validatedPayload = SimpleQuadrilateral.QuadrilateralType.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringQuadrilateralTypeEnums](#stringquadrilateraltypeenums) arg, SchemaConfiguration configuration) | | [QuadrilateralTypeBoxedString](#quadrilateraltypeboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [QuadrilateralTypeBoxed](#quadrilateraltypeboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringQuadrilateralTypeEnums public enum StringQuadrilateralTypeEnums
extends `Enum` diff --git a/samples/client/petstore/java/docs/components/schemas/SomeObject.md b/samples/client/petstore/java/docs/components/schemas/SomeObject.md index c92d17b4570..29dd04ae202 100644 --- a/samples/client/petstore/java/docs/components/schemas/SomeObject.md +++ b/samples/client/petstore/java/docs/components/schemas/SomeObject.md @@ -46,7 +46,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SomeObject1BoxedBoolean public record SomeObject1BoxedBoolean
@@ -63,7 +63,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SomeObject1BoxedNumber public record SomeObject1BoxedNumber
@@ -80,7 +80,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SomeObject1BoxedString public record SomeObject1BoxedString
@@ -97,7 +97,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SomeObject1BoxedList public record SomeObject1BoxedList
@@ -114,7 +114,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SomeObject1BoxedMap public record SomeObject1BoxedMap
@@ -131,7 +131,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SomeObject1 public static class SomeObject1
@@ -163,5 +163,7 @@ A schema class that validates payloads | [SomeObject1BoxedBoolean](#someobject1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [SomeObject1BoxedMap](#someobject1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [SomeObject1BoxedList](#someobject1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [SomeObject1Boxed](#someobject1boxed) | 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/petstore/java/docs/components/schemas/SpecialModelname.md b/samples/client/petstore/java/docs/components/schemas/SpecialModelname.md index 0141e8a91eb..607dff4f3b8 100644 --- a/samples/client/petstore/java/docs/components/schemas/SpecialModelname.md +++ b/samples/client/petstore/java/docs/components/schemas/SpecialModelname.md @@ -43,7 +43,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [SpecialModelnameMap](#specialmodelnamemap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SpecialModelname1 public static class SpecialModelname1
@@ -91,7 +91,9 @@ SpecialModelname.SpecialModelnameMap validatedPayload = | ----------------- | ---------------------- | | [SpecialModelnameMap](#specialmodelnamemap) | validate([Map<?, ?>](#specialmodelnamemapbuilder) arg, SchemaConfiguration configuration) | | [SpecialModelname1BoxedMap](#specialmodelname1boxedmap) | validateAndBox([Map<?, ?>](#specialmodelnamemapbuilder) arg, SchemaConfiguration configuration) | +| [SpecialModelname1Boxed](#specialmodelname1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## SpecialModelnameMapBuilder public class SpecialModelnameMapBuilder
builder for `Map` @@ -153,7 +155,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## A public static class A
diff --git a/samples/client/petstore/java/docs/components/schemas/StringBooleanMap.md b/samples/client/petstore/java/docs/components/schemas/StringBooleanMap.md index fee33998ecc..a0a9584d1a6 100644 --- a/samples/client/petstore/java/docs/components/schemas/StringBooleanMap.md +++ b/samples/client/petstore/java/docs/components/schemas/StringBooleanMap.md @@ -43,7 +43,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [StringBooleanMapMap](#stringbooleanmapmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## StringBooleanMap1 public static class StringBooleanMap1
@@ -88,7 +88,9 @@ StringBooleanMap.StringBooleanMapMap validatedPayload = | ----------------- | ---------------------- | | [StringBooleanMapMap](#stringbooleanmapmap) | validate([Map<?, ?>](#stringbooleanmapmapbuilder) arg, SchemaConfiguration configuration) | | [StringBooleanMap1BoxedMap](#stringbooleanmap1boxedmap) | validateAndBox([Map<?, ?>](#stringbooleanmapmapbuilder) arg, SchemaConfiguration configuration) | +| [StringBooleanMap1Boxed](#stringbooleanmap1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringBooleanMapMapBuilder public class StringBooleanMapMapBuilder
builder for `Map` @@ -140,7 +142,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/StringEnum.md b/samples/client/petstore/java/docs/components/schemas/StringEnum.md index cbd7067fc5e..bfbbc9dbe02 100644 --- a/samples/client/petstore/java/docs/components/schemas/StringEnum.md +++ b/samples/client/petstore/java/docs/components/schemas/StringEnum.md @@ -41,7 +41,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## StringEnum1BoxedString public record StringEnum1BoxedString
@@ -58,7 +58,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## StringEnum1 public static class StringEnum1
@@ -109,7 +109,9 @@ String validatedPayload = StringEnum.StringEnum1.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringStringEnumEnums](#stringstringenumenums) arg, SchemaConfiguration configuration) | | [StringEnum1BoxedString](#stringenum1boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [StringEnum1Boxed](#stringenum1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringStringEnumEnums public enum StringStringEnumEnums
extends `Enum` diff --git a/samples/client/petstore/java/docs/components/schemas/StringEnumWithDefaultValue.md b/samples/client/petstore/java/docs/components/schemas/StringEnumWithDefaultValue.md index 2bc67b1009b..d7cf576fd29 100644 --- a/samples/client/petstore/java/docs/components/schemas/StringEnumWithDefaultValue.md +++ b/samples/client/petstore/java/docs/components/schemas/StringEnumWithDefaultValue.md @@ -38,7 +38,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## StringEnumWithDefaultValue1 public static class StringEnumWithDefaultValue1
@@ -81,7 +81,9 @@ String validatedPayload = StringEnumWithDefaultValue.StringEnumWithDefaultValue1 | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringStringEnumWithDefaultValueEnums](#stringstringenumwithdefaultvalueenums) arg, SchemaConfiguration configuration) | | [StringEnumWithDefaultValue1BoxedString](#stringenumwithdefaultvalue1boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [StringEnumWithDefaultValue1Boxed](#stringenumwithdefaultvalue1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringStringEnumWithDefaultValueEnums public enum StringStringEnumWithDefaultValueEnums
extends `Enum` diff --git a/samples/client/petstore/java/docs/components/schemas/StringSchema.md b/samples/client/petstore/java/docs/components/schemas/StringSchema.md index 2dc5dde78af..48445f4fa16 100644 --- a/samples/client/petstore/java/docs/components/schemas/StringSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/StringSchema.md @@ -36,7 +36,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## StringSchema1 public static class StringSchema1
diff --git a/samples/client/petstore/java/docs/components/schemas/StringWithValidation.md b/samples/client/petstore/java/docs/components/schemas/StringWithValidation.md index 50d02ce89d0..ad0b9688c20 100644 --- a/samples/client/petstore/java/docs/components/schemas/StringWithValidation.md +++ b/samples/client/petstore/java/docs/components/schemas/StringWithValidation.md @@ -36,7 +36,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## StringWithValidation1 public static class StringWithValidation1
@@ -77,5 +77,7 @@ String validatedPayload = StringWithValidation.StringWithValidation1.validate( | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | | [StringWithValidation1BoxedString](#stringwithvalidation1boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [StringWithValidation1Boxed](#stringwithvalidation1boxed) | 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/petstore/java/docs/components/schemas/Tag.md b/samples/client/petstore/java/docs/components/schemas/Tag.md index bad80775321..eeff8900e0d 100644 --- a/samples/client/petstore/java/docs/components/schemas/Tag.md +++ b/samples/client/petstore/java/docs/components/schemas/Tag.md @@ -46,7 +46,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [TagMap](#tagmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Tag1 public static class Tag1
@@ -93,7 +93,9 @@ Tag.TagMap validatedPayload = | ----------------- | ---------------------- | | [TagMap](#tagmap) | validate([Map<?, ?>](#tagmapbuilder) arg, SchemaConfiguration configuration) | | [Tag1BoxedMap](#tag1boxedmap) | validateAndBox([Map<?, ?>](#tagmapbuilder) arg, SchemaConfiguration configuration) | +| [Tag1Boxed](#tag1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## TagMapBuilder public class TagMapBuilder
builder for `Map` @@ -160,7 +162,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Name public static class Name
@@ -195,7 +197,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Id public static class Id
diff --git a/samples/client/petstore/java/docs/components/schemas/Triangle.md b/samples/client/petstore/java/docs/components/schemas/Triangle.md index 26cbc275205..5aa1ccb5529 100644 --- a/samples/client/petstore/java/docs/components/schemas/Triangle.md +++ b/samples/client/petstore/java/docs/components/schemas/Triangle.md @@ -46,7 +46,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Triangle1BoxedBoolean public record Triangle1BoxedBoolean
@@ -63,7 +63,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Triangle1BoxedNumber public record Triangle1BoxedNumber
@@ -80,7 +80,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Triangle1BoxedString public record Triangle1BoxedString
@@ -97,7 +97,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Triangle1BoxedList public record Triangle1BoxedList
@@ -114,7 +114,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Triangle1BoxedMap public record Triangle1BoxedMap
@@ -131,7 +131,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Triangle1 public static class Triangle1
@@ -163,5 +163,7 @@ A schema class that validates payloads | [Triangle1BoxedBoolean](#triangle1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [Triangle1BoxedMap](#triangle1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [Triangle1BoxedList](#triangle1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [Triangle1Boxed](#triangle1boxed) | 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/petstore/java/docs/components/schemas/TriangleInterface.md b/samples/client/petstore/java/docs/components/schemas/TriangleInterface.md index 7456f848e09..e8e8dbdacb9 100644 --- a/samples/client/petstore/java/docs/components/schemas/TriangleInterface.md +++ b/samples/client/petstore/java/docs/components/schemas/TriangleInterface.md @@ -58,7 +58,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## TriangleInterface1BoxedBoolean public record TriangleInterface1BoxedBoolean
@@ -75,7 +75,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## TriangleInterface1BoxedNumber public record TriangleInterface1BoxedNumber
@@ -92,7 +92,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## TriangleInterface1BoxedString public record TriangleInterface1BoxedString
@@ -109,7 +109,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## TriangleInterface1BoxedList public record TriangleInterface1BoxedList
@@ -126,7 +126,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## TriangleInterface1BoxedMap public record TriangleInterface1BoxedMap
@@ -143,7 +143,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [TriangleInterfaceMap](#triangleinterfacemap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## TriangleInterface1 public static class TriangleInterface1
@@ -176,7 +176,9 @@ A schema class that validates payloads | [TriangleInterface1BoxedBoolean](#triangleinterface1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [TriangleInterface1BoxedMap](#triangleinterface1boxedmap) | validateAndBox([Map<?, ?>](#triangleinterfacemapbuilder) arg, SchemaConfiguration configuration) | | [TriangleInterface1BoxedList](#triangleinterface1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [TriangleInterface1Boxed](#triangleinterface1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## TriangleInterfaceMap00Builder public class TriangleInterfaceMap00Builder
builder for `Map` @@ -289,7 +291,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## TriangleType public static class TriangleType
@@ -324,7 +326,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ShapeType public static class ShapeType
@@ -366,7 +368,9 @@ String validatedPayload = TriangleInterface.ShapeType.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringShapeTypeEnums](#stringshapetypeenums) arg, SchemaConfiguration configuration) | | [ShapeTypeBoxedString](#shapetypeboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [ShapeTypeBoxed](#shapetypeboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringShapeTypeEnums public enum StringShapeTypeEnums
extends `Enum` diff --git a/samples/client/petstore/java/docs/components/schemas/UUIDString.md b/samples/client/petstore/java/docs/components/schemas/UUIDString.md index 5a2facf7a1c..db934fa2a6e 100644 --- a/samples/client/petstore/java/docs/components/schemas/UUIDString.md +++ b/samples/client/petstore/java/docs/components/schemas/UUIDString.md @@ -36,7 +36,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## UUIDString1 public static class UUIDString1
@@ -78,5 +78,7 @@ String validatedPayload = UUIDString.UUIDString1.validate( | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | | [UUIDString1BoxedString](#uuidstring1boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [UUIDString1Boxed](#uuidstring1boxed) | 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/petstore/java/docs/components/schemas/User.md b/samples/client/petstore/java/docs/components/schemas/User.md index 21fefd54ef6..7d94e9130c4 100644 --- a/samples/client/petstore/java/docs/components/schemas/User.md +++ b/samples/client/petstore/java/docs/components/schemas/User.md @@ -98,7 +98,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [UserMap](#usermap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## User1 public static class User1
@@ -159,7 +159,9 @@ User.UserMap validatedPayload = | ----------------- | ---------------------- | | [UserMap](#usermap) | validate([Map<?, ?>](#usermapbuilder) arg, SchemaConfiguration configuration) | | [User1BoxedMap](#user1boxedmap) | validateAndBox([Map<?, ?>](#usermapbuilder) arg, SchemaConfiguration configuration) | +| [User1Boxed](#user1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## UserMapBuilder public class UserMapBuilder
builder for `Map` @@ -279,7 +281,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AnyTypePropNullableBoxedBoolean public record AnyTypePropNullableBoxedBoolean
@@ -296,7 +298,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AnyTypePropNullableBoxedNumber public record AnyTypePropNullableBoxedNumber
@@ -313,7 +315,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AnyTypePropNullableBoxedString public record AnyTypePropNullableBoxedString
@@ -330,7 +332,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AnyTypePropNullableBoxedList public record AnyTypePropNullableBoxedList
@@ -347,7 +349,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AnyTypePropNullableBoxedMap public record AnyTypePropNullableBoxedMap
@@ -364,7 +366,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AnyTypePropNullable public static class AnyTypePropNullable
@@ -407,7 +409,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AnyTypeExceptNullPropBoxedBoolean public record AnyTypeExceptNullPropBoxedBoolean
@@ -424,7 +426,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AnyTypeExceptNullPropBoxedNumber public record AnyTypeExceptNullPropBoxedNumber
@@ -441,7 +443,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AnyTypeExceptNullPropBoxedString public record AnyTypeExceptNullPropBoxedString
@@ -458,7 +460,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AnyTypeExceptNullPropBoxedList public record AnyTypeExceptNullPropBoxedList
@@ -475,7 +477,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AnyTypeExceptNullPropBoxedMap public record AnyTypeExceptNullPropBoxedMap
@@ -492,7 +494,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AnyTypeExceptNullProp public static class AnyTypeExceptNullProp
@@ -527,7 +529,9 @@ any type except 'null' Here the 'type' attribute is not spec | [AnyTypeExceptNullPropBoxedBoolean](#anytypeexceptnullpropboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [AnyTypeExceptNullPropBoxedMap](#anytypeexceptnullpropboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [AnyTypeExceptNullPropBoxedList](#anytypeexceptnullpropboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [AnyTypeExceptNullPropBoxed](#anytypeexceptnullpropboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## NotBoxed public sealed interface NotBoxed
permits
@@ -550,7 +554,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Not public static class Not
@@ -590,7 +594,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AnyTypePropBoxedBoolean public record AnyTypePropBoxedBoolean
@@ -607,7 +611,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AnyTypePropBoxedNumber public record AnyTypePropBoxedNumber
@@ -624,7 +628,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AnyTypePropBoxedString public record AnyTypePropBoxedString
@@ -641,7 +645,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AnyTypePropBoxedList public record AnyTypePropBoxedList
@@ -658,7 +662,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AnyTypePropBoxedMap public record AnyTypePropBoxedMap
@@ -675,7 +679,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AnyTypeProp public static class AnyTypeProp
@@ -714,7 +718,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ObjectWithNoDeclaredPropsNullableBoxedMap public record ObjectWithNoDeclaredPropsNullableBoxedMap
@@ -731,7 +735,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ObjectWithNoDeclaredPropsNullable public static class ObjectWithNoDeclaredPropsNullable
@@ -776,7 +780,9 @@ Void validatedPayload = User.ObjectWithNoDeclaredPropsNullable.validate( | [ObjectWithNoDeclaredPropsNullableBoxedVoid](#objectwithnodeclaredpropsnullableboxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | | FrozenMap | validate(Map<?, ?> arg, SchemaConfiguration configuration) | | [ObjectWithNoDeclaredPropsNullableBoxedMap](#objectwithnodeclaredpropsnullableboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | +| [ObjectWithNoDeclaredPropsNullableBoxed](#objectwithnodeclaredpropsnullableboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ObjectWithNoDeclaredPropsBoxed public sealed interface ObjectWithNoDeclaredPropsBoxed
permits
@@ -799,7 +805,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ObjectWithNoDeclaredProps public static class ObjectWithNoDeclaredProps
@@ -837,7 +843,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## UserStatus public static class UserStatus
@@ -875,7 +881,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Phone public static class Phone
@@ -910,7 +916,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Password public static class Password
@@ -945,7 +951,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Email public static class Email
@@ -980,7 +986,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## LastName public static class LastName
@@ -1015,7 +1021,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## FirstName public static class FirstName
@@ -1050,7 +1056,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Username public static class Username
@@ -1085,7 +1091,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Id public static class Id
diff --git a/samples/client/petstore/java/docs/components/schemas/Whale.md b/samples/client/petstore/java/docs/components/schemas/Whale.md index 8c225f97a12..91de529c5bd 100644 --- a/samples/client/petstore/java/docs/components/schemas/Whale.md +++ b/samples/client/petstore/java/docs/components/schemas/Whale.md @@ -51,7 +51,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [WhaleMap](#whalemap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Whale1 public static class Whale1
@@ -101,7 +101,9 @@ Whale.WhaleMap validatedPayload = | ----------------- | ---------------------- | | [WhaleMap](#whalemap) | validate([Map<?, ?>](#whalemapbuilder) arg, SchemaConfiguration configuration) | | [Whale1BoxedMap](#whale1boxedmap) | validateAndBox([Map<?, ?>](#whalemapbuilder) arg, SchemaConfiguration configuration) | +| [Whale1Boxed](#whale1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## WhaleMap0Builder public class WhaleMap0Builder
builder for `Map` @@ -183,7 +185,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ClassName public static class ClassName
@@ -225,7 +227,9 @@ String validatedPayload = Whale.ClassName.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringClassNameEnums](#stringclassnameenums) arg, SchemaConfiguration configuration) | | [ClassNameBoxedString](#classnameboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [ClassNameBoxed](#classnameboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringClassNameEnums public enum StringClassNameEnums
extends `Enum` @@ -259,7 +263,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## HasTeeth public static class HasTeeth
@@ -294,7 +298,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## HasBaleen public static class HasBaleen
diff --git a/samples/client/petstore/java/docs/components/schemas/Zebra.md b/samples/client/petstore/java/docs/components/schemas/Zebra.md index 9852b3a3210..48048773866 100644 --- a/samples/client/petstore/java/docs/components/schemas/Zebra.md +++ b/samples/client/petstore/java/docs/components/schemas/Zebra.md @@ -57,7 +57,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ZebraMap](#zebramap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Zebra1 public static class Zebra1
@@ -106,7 +106,9 @@ Zebra.ZebraMap validatedPayload = | ----------------- | ---------------------- | | [ZebraMap](#zebramap) | validate([Map<?, ?>](#zebramapbuilder) arg, SchemaConfiguration configuration) | | [Zebra1BoxedMap](#zebra1boxedmap) | validateAndBox([Map<?, ?>](#zebramapbuilder) arg, SchemaConfiguration configuration) | +| [Zebra1Boxed](#zebra1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ZebraMap0Builder public class ZebraMap0Builder
builder for `Map` @@ -187,7 +189,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ClassName public static class ClassName
@@ -229,7 +231,9 @@ String validatedPayload = Zebra.ClassName.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringClassNameEnums](#stringclassnameenums) arg, SchemaConfiguration configuration) | | [ClassNameBoxedString](#classnameboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [ClassNameBoxed](#classnameboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringClassNameEnums public enum StringClassNameEnums
extends `Enum` @@ -263,7 +267,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Type public static class Type
@@ -305,7 +309,9 @@ String validatedPayload = Zebra.Type.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringTypeEnums](#stringtypeenums) arg, SchemaConfiguration configuration) | | [TypeBoxedString](#typeboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [TypeBoxed](#typeboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringTypeEnums public enum StringTypeEnums
extends `Enum` @@ -346,7 +352,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedBoolean public record AdditionalPropertiesBoxedBoolean
@@ -363,7 +369,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedNumber public record AdditionalPropertiesBoxedNumber
@@ -380,7 +386,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedString public record AdditionalPropertiesBoxedString
@@ -397,7 +403,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedList public record AdditionalPropertiesBoxedList
@@ -414,7 +420,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalPropertiesBoxedMap public record AdditionalPropertiesBoxedMap
@@ -431,7 +437,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.md index edd11b6e174..9310f1ac75f 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01 public static class Schema01
diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md index 7b8323e07ef..fadcf5bbf58 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md @@ -37,7 +37,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema11 public static class Schema11
@@ -79,7 +79,9 @@ String validatedPayload = Schema1.Schema11.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringSchemaEnums1](#stringschemaenums1) arg, SchemaConfiguration configuration) | | [Schema11BoxedString](#schema11boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Schema11Boxed](#schema11boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringSchemaEnums1 public enum StringSchemaEnums1
extends `Enum` diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/parameters/parameter0/Schema0.md index edd11b6e174..9310f1ac75f 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/parameters/parameter0/Schema0.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01 public static class Schema01
diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.md index d174e5e45d0..c72c74d9bb5 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.md @@ -37,7 +37,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## PathParamSchema01 public static class PathParamSchema01
@@ -79,7 +79,9 @@ String validatedPayload = PathParamSchema0.PathParamSchema01.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringPathParamSchemaEnums0](#stringpathparamschemaenums0) arg, SchemaConfiguration configuration) | | [PathParamSchema01BoxedString](#pathparamschema01boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [PathParamSchema01Boxed](#pathparamschema01boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringPathParamSchemaEnums0 public enum StringPathParamSchemaEnums0
extends `Enum` diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/parameters/parameter0/Schema0.md index edd11b6e174..9310f1ac75f 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/parameters/parameter0/Schema0.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01 public static class Schema01
diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter0/Schema0.md index edd11b6e174..9310f1ac75f 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter0/Schema0.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01 public static class Schema01
diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter1/Schema1.md index 6e389c45efe..76f9566751a 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter1/Schema1.md @@ -37,7 +37,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema11 public static class Schema11
@@ -79,7 +79,9 @@ String validatedPayload = Schema1.Schema11.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringSchemaEnums1](#stringschemaenums1) arg, SchemaConfiguration configuration) | | [Schema11BoxedString](#schema11boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Schema11Boxed](#schema11boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringSchemaEnums1 public enum StringSchemaEnums1
extends `Enum` diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter2/Schema2.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter2/Schema2.md index d3142bffed7..67c8384f2cd 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter2/Schema2.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter2/Schema2.md @@ -35,7 +35,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema21 public static class Schema21
diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter3/Schema3.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter3/Schema3.md index bdadc9c7c7d..6e885952993 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter3/Schema3.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter3/Schema3.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema31 public static class Schema31
diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter4/Schema4.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter4/Schema4.md index ee150f523e1..29bf707f196 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter4/Schema4.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter4/Schema4.md @@ -37,7 +37,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema41 public static class Schema41
@@ -79,7 +79,9 @@ String validatedPayload = Schema4.Schema41.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringSchemaEnums4](#stringschemaenums4) arg, SchemaConfiguration configuration) | | [Schema41BoxedString](#schema41boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Schema41Boxed](#schema41boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringSchemaEnums4 public enum StringSchemaEnums4
extends `Enum` diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter5/Schema5.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter5/Schema5.md index 1b9717af8cb..80617b15eb4 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter5/Schema5.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter5/Schema5.md @@ -35,7 +35,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema51 public static class Schema51
diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter0/Schema0.md index 2b372c86935..a8fac1c63ca 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter0/Schema0.md @@ -44,7 +44,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [SchemaList0](#schemalist0) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01 public static class Schema01
@@ -89,7 +89,9 @@ Schema0.SchemaList0 validatedPayload = | ----------------- | ---------------------- | | [SchemaList0](#schemalist0) | validate([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | | [Schema01BoxedList](#schema01boxedlist) | validateAndBox([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | +| [Schema01Boxed](#schema01boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## SchemaListBuilder0 public class SchemaListBuilder0
builder for `List` @@ -142,7 +144,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Items0 public static class Items0
@@ -185,7 +187,9 @@ String validatedPayload = Schema0.Items0.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringItemsEnums0](#stringitemsenums0) arg, SchemaConfiguration configuration) | | [Items0BoxedString](#items0boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Items0Boxed](#items0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringItemsEnums0 public enum StringItemsEnums0
extends `Enum` diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter1/Schema1.md index 5a2690e0656..f85247c6822 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter1/Schema1.md @@ -37,7 +37,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema11 public static class Schema11
@@ -80,7 +80,9 @@ String validatedPayload = Schema1.Schema11.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringSchemaEnums1](#stringschemaenums1) arg, SchemaConfiguration configuration) | | [Schema11BoxedString](#schema11boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Schema11Boxed](#schema11boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringSchemaEnums1 public enum StringSchemaEnums1
extends `Enum` diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter2/Schema2.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter2/Schema2.md index 92138bfacd6..beeacda6560 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter2/Schema2.md +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter2/Schema2.md @@ -44,7 +44,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [SchemaList2](#schemalist2) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema21 public static class Schema21
@@ -89,7 +89,9 @@ Schema2.SchemaList2 validatedPayload = | ----------------- | ---------------------- | | [SchemaList2](#schemalist2) | validate([List](#schemalistbuilder2) arg, SchemaConfiguration configuration) | | [Schema21BoxedList](#schema21boxedlist) | validateAndBox([List](#schemalistbuilder2) arg, SchemaConfiguration configuration) | +| [Schema21Boxed](#schema21boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## SchemaListBuilder2 public class SchemaListBuilder2
builder for `List` @@ -142,7 +144,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Items2 public static class Items2
@@ -185,7 +187,9 @@ String validatedPayload = Schema2.Items2.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringItemsEnums2](#stringitemsenums2) arg, SchemaConfiguration configuration) | | [Items2BoxedString](#items2boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Items2Boxed](#items2boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringItemsEnums2 public enum StringItemsEnums2
extends `Enum` diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter3/Schema3.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter3/Schema3.md index d056e7079d1..79a92c2932b 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter3/Schema3.md +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter3/Schema3.md @@ -37,7 +37,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema31 public static class Schema31
@@ -80,7 +80,9 @@ String validatedPayload = Schema3.Schema31.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringSchemaEnums3](#stringschemaenums3) arg, SchemaConfiguration configuration) | | [Schema31BoxedString](#schema31boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Schema31Boxed](#schema31boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringSchemaEnums3 public enum StringSchemaEnums3
extends `Enum` diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter4/Schema4.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter4/Schema4.md index 6a790e1b4a4..bbf9abca49b 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter4/Schema4.md +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter4/Schema4.md @@ -40,7 +40,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema41 public static class Schema41
@@ -82,7 +82,9 @@ int validatedPayload = Schema4.Schema41.validate( | ----------------- | ---------------------- | | int | validate(int arg, SchemaConfiguration configuration) | | [Schema41BoxedNumber](#schema41boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [Schema41Boxed](#schema41boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## IntegerSchemaEnums4 public enum IntegerSchemaEnums4
extends `Enum` diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter5/Schema5.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter5/Schema5.md index 251901093f5..f563d4001bf 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter5/Schema5.md +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter5/Schema5.md @@ -38,7 +38,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema51 public static class Schema51
@@ -80,7 +80,9 @@ double validatedPayload = Schema5.Schema51.validate( | ----------------- | ---------------------- | | double | validate(double arg, SchemaConfiguration configuration) | | [Schema51BoxedNumber](#schema51boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [Schema51Boxed](#schema51boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## DoubleSchemaEnums5 public enum DoubleSchemaEnums5
extends `Enum` diff --git a/samples/client/petstore/java/docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md b/samples/client/petstore/java/docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md index 1eea3e413e9..88302e5657d 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md +++ b/samples/client/petstore/java/docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md @@ -55,7 +55,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationxwwwformurlencodedSchema1 public static class ApplicationxwwwformurlencodedSchema1
@@ -105,7 +105,9 @@ ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMap valid | ----------------- | ---------------------- | | [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | validate([Map<?, ?>](#applicationxwwwformurlencodedschemamapbuilder) arg, SchemaConfiguration configuration) | | [ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap) | validateAndBox([Map<?, ?>](#applicationxwwwformurlencodedschemamapbuilder) arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ApplicationxwwwformurlencodedSchemaMapBuilder public class ApplicationxwwwformurlencodedSchemaMapBuilder
builder for `Map` @@ -170,7 +172,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationxwwwformurlencodedEnumFormString public static class ApplicationxwwwformurlencodedEnumFormString
@@ -216,7 +218,9 @@ String validatedPayload = ApplicationxwwwformurlencodedSchema.Applicationxwwwfor | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringApplicationxwwwformurlencodedEnumFormStringEnums](#stringapplicationxwwwformurlencodedenumformstringenums) arg, SchemaConfiguration configuration) | | [ApplicationxwwwformurlencodedEnumFormStringBoxedString](#applicationxwwwformurlencodedenumformstringboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedEnumFormStringBoxed](#applicationxwwwformurlencodedenumformstringboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringApplicationxwwwformurlencodedEnumFormStringEnums public enum StringApplicationxwwwformurlencodedEnumFormStringEnums
extends `Enum` @@ -252,7 +256,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ApplicationxwwwformurlencodedEnumFormStringArrayList](#applicationxwwwformurlencodedenumformstringarraylist) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationxwwwformurlencodedEnumFormStringArray public static class ApplicationxwwwformurlencodedEnumFormStringArray
@@ -300,7 +304,9 @@ ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringA | ----------------- | ---------------------- | | [ApplicationxwwwformurlencodedEnumFormStringArrayList](#applicationxwwwformurlencodedenumformstringarraylist) | validate([List](#applicationxwwwformurlencodedenumformstringarraylistbuilder) arg, SchemaConfiguration configuration) | | [ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList](#applicationxwwwformurlencodedenumformstringarrayboxedlist) | validateAndBox([List](#applicationxwwwformurlencodedenumformstringarraylistbuilder) arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedEnumFormStringArrayBoxed](#applicationxwwwformurlencodedenumformstringarrayboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ApplicationxwwwformurlencodedEnumFormStringArrayListBuilder public class ApplicationxwwwformurlencodedEnumFormStringArrayListBuilder
builder for `List` @@ -353,7 +359,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationxwwwformurlencodedItems public static class ApplicationxwwwformurlencodedItems
@@ -396,7 +402,9 @@ String validatedPayload = ApplicationxwwwformurlencodedSchema.Applicationxwwwfor | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringApplicationxwwwformurlencodedItemsEnums](#stringapplicationxwwwformurlencodeditemsenums) arg, SchemaConfiguration configuration) | | [ApplicationxwwwformurlencodedItemsBoxedString](#applicationxwwwformurlencodeditemsboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedItemsBoxed](#applicationxwwwformurlencodeditemsboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringApplicationxwwwformurlencodedItemsEnums public enum StringApplicationxwwwformurlencodedItemsEnums
extends `Enum` diff --git a/samples/client/petstore/java/docs/paths/fake/get/responses/response404/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fake/get/responses/response404/content/applicationjson/ApplicationjsonSchema.md index df68d1ca2ee..64fd823405a 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/responses/response404/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fake/get/responses/response404/content/applicationjson/ApplicationjsonSchema.md @@ -35,7 +35,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
diff --git a/samples/client/petstore/java/docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md b/samples/client/petstore/java/docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md index 3f6f99f7ef5..e0755d53ae5 100644 --- a/samples/client/petstore/java/docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md +++ b/samples/client/petstore/java/docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md @@ -80,7 +80,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationxwwwformurlencodedSchema1 public static class ApplicationxwwwformurlencodedSchema1
@@ -152,7 +152,9 @@ ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMap valid | ----------------- | ---------------------- | | [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | validate([Map<?, ?>](#applicationxwwwformurlencodedschemamapbuilder) arg, SchemaConfiguration configuration) | | [ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap) | validateAndBox([Map<?, ?>](#applicationxwwwformurlencodedschemamapbuilder) arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ApplicationxwwwformurlencodedSchemaMap0000Builder public class ApplicationxwwwformurlencodedSchemaMap0000Builder
builder for `Map` @@ -546,7 +548,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationxwwwformurlencodedCallback public static class ApplicationxwwwformurlencodedCallback
@@ -584,7 +586,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationxwwwformurlencodedPassword public static class ApplicationxwwwformurlencodedPassword
@@ -630,7 +632,9 @@ String validatedPayload = ApplicationxwwwformurlencodedSchema.Applicationxwwwfor | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | | [ApplicationxwwwformurlencodedPasswordBoxedString](#applicationxwwwformurlencodedpasswordboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedPasswordBoxed](#applicationxwwwformurlencodedpasswordboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ApplicationxwwwformurlencodedDateTimeBoxed public sealed interface ApplicationxwwwformurlencodedDateTimeBoxed
permits
@@ -653,7 +657,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationxwwwformurlencodedDateTime public static class ApplicationxwwwformurlencodedDateTime
@@ -698,7 +702,9 @@ String validatedPayload = ApplicationxwwwformurlencodedSchema.Applicationxwwwfor | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | | [ApplicationxwwwformurlencodedDateTimeBoxedString](#applicationxwwwformurlencodeddatetimeboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedDateTimeBoxed](#applicationxwwwformurlencodeddatetimeboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ApplicationxwwwformurlencodedDateBoxed public sealed interface ApplicationxwwwformurlencodedDateBoxed
permits
@@ -721,7 +727,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationxwwwformurlencodedDate public static class ApplicationxwwwformurlencodedDate
@@ -774,7 +780,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationxwwwformurlencodedByte public static class ApplicationxwwwformurlencodedByte
@@ -807,7 +813,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationxwwwformurlencodedPatternWithoutDelimiter public static class ApplicationxwwwformurlencodedPatternWithoutDelimiter
@@ -851,7 +857,9 @@ String validatedPayload = ApplicationxwwwformurlencodedSchema.Applicationxwwwfor | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | | [ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString](#applicationxwwwformurlencodedpatternwithoutdelimiterboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed](#applicationxwwwformurlencodedpatternwithoutdelimiterboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ApplicationxwwwformurlencodedStringBoxed public sealed interface ApplicationxwwwformurlencodedStringBoxed
permits
@@ -874,7 +882,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationxwwwformurlencodedString public static class ApplicationxwwwformurlencodedString
@@ -918,7 +926,9 @@ String validatedPayload = ApplicationxwwwformurlencodedSchema.Applicationxwwwfor | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | | [ApplicationxwwwformurlencodedStringBoxedString](#applicationxwwwformurlencodedstringboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedStringBoxed](#applicationxwwwformurlencodedstringboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ApplicationxwwwformurlencodedDoubleBoxed public sealed interface ApplicationxwwwformurlencodedDoubleBoxed
permits
@@ -941,7 +951,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationxwwwformurlencodedDouble public static class ApplicationxwwwformurlencodedDouble
@@ -987,7 +997,9 @@ double validatedPayload = ApplicationxwwwformurlencodedSchema.Applicationxwwwfor | ----------------- | ---------------------- | | double | validate(double arg, SchemaConfiguration configuration) | | [ApplicationxwwwformurlencodedDoubleBoxedNumber](#applicationxwwwformurlencodeddoubleboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedDoubleBoxed](#applicationxwwwformurlencodeddoubleboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ApplicationxwwwformurlencodedFloatBoxed public sealed interface ApplicationxwwwformurlencodedFloatBoxed
permits
@@ -1010,7 +1022,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationxwwwformurlencodedFloat public static class ApplicationxwwwformurlencodedFloat
@@ -1055,7 +1067,9 @@ float validatedPayload = ApplicationxwwwformurlencodedSchema.Applicationxwwwform | ----------------- | ---------------------- | | float | validate(float arg, SchemaConfiguration configuration) | | [ApplicationxwwwformurlencodedFloatBoxedNumber](#applicationxwwwformurlencodedfloatboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedFloatBoxed](#applicationxwwwformurlencodedfloatboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ApplicationxwwwformurlencodedNumberBoxed public sealed interface ApplicationxwwwformurlencodedNumberBoxed
permits
@@ -1078,7 +1092,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationxwwwformurlencodedNumber public static class ApplicationxwwwformurlencodedNumber
@@ -1123,7 +1137,9 @@ int validatedPayload = ApplicationxwwwformurlencodedSchema.Applicationxwwwformur | ----------------- | ---------------------- | | Number | validate(Number arg, SchemaConfiguration configuration) | | [ApplicationxwwwformurlencodedNumberBoxedNumber](#applicationxwwwformurlencodednumberboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedNumberBoxed](#applicationxwwwformurlencodednumberboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ApplicationxwwwformurlencodedInt64Boxed public sealed interface ApplicationxwwwformurlencodedInt64Boxed
permits
@@ -1146,7 +1162,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationxwwwformurlencodedInt64 public static class ApplicationxwwwformurlencodedInt64
@@ -1184,7 +1200,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationxwwwformurlencodedInt32 public static class ApplicationxwwwformurlencodedInt32
@@ -1230,7 +1246,9 @@ int validatedPayload = ApplicationxwwwformurlencodedSchema.Applicationxwwwformur | ----------------- | ---------------------- | | int | validate(int arg, SchemaConfiguration configuration) | | [ApplicationxwwwformurlencodedInt32BoxedNumber](#applicationxwwwformurlencodedint32boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedInt32Boxed](#applicationxwwwformurlencodedint32boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ApplicationxwwwformurlencodedIntegerBoxed public sealed interface ApplicationxwwwformurlencodedIntegerBoxed
permits
@@ -1253,7 +1271,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationxwwwformurlencodedInteger public static class ApplicationxwwwformurlencodedInteger
@@ -1299,4 +1317,5 @@ int validatedPayload = ApplicationxwwwformurlencodedSchema.Applicationxwwwformur | ----------------- | ---------------------- | | long | validate(long arg, SchemaConfiguration configuration) | | [ApplicationxwwwformurlencodedIntegerBoxedNumber](#applicationxwwwformurlencodedintegerboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | \ No newline at end of file +| [ApplicationxwwwformurlencodedIntegerBoxed](#applicationxwwwformurlencodedintegerboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md index edd11b6e174..9310f1ac75f 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01 public static class Schema01
diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.md index edd11b6e174..9310f1ac75f 100644 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01 public static class Schema01
diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md index 8dfdf8085c2..7b37ff278b7 100644 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema11 public static class Schema11
diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md index 8659bbfaba4..5080368d390 100644 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema21 public static class Schema21
diff --git a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.md index edd11b6e174..9310f1ac75f 100644 --- a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01 public static class Schema01
diff --git a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index a8f7fc09ac6..efeac7a5fcf 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -42,7 +42,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ApplicationjsonSchemaMap](#applicationjsonschemamap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
@@ -87,7 +87,9 @@ ApplicationjsonSchema.ApplicationjsonSchemaMap validatedPayload = | ----------------- | ---------------------- | | [ApplicationjsonSchemaMap](#applicationjsonschemamap) | validate([Map<?, ?>](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | | [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) | validateAndBox([Map<?, ?>](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ApplicationjsonSchemaMapBuilder public class ApplicationjsonSchemaMapBuilder
builder for `Map` @@ -139,7 +141,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonAdditionalProperties public static class ApplicationjsonAdditionalProperties
diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md index 6d76476ee8b..d7aa9ed1d3c 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md @@ -48,7 +48,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01BoxedBoolean public record Schema01BoxedBoolean
@@ -65,7 +65,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01BoxedNumber public record Schema01BoxedNumber
@@ -82,7 +82,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01BoxedString public record Schema01BoxedString
@@ -99,7 +99,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01BoxedList public record Schema01BoxedList
@@ -116,7 +116,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01BoxedMap public record Schema01BoxedMap
@@ -133,7 +133,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01 public static class Schema01
@@ -165,7 +165,9 @@ 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) | + ## Schema00Boxed public sealed interface Schema00Boxed
permits
@@ -188,7 +190,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema00 public static class Schema00
@@ -229,4 +231,5 @@ String validatedPayload = Schema0.Schema00.validate( | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | | [Schema00BoxedString](#schema00boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | \ No newline at end of file +| [Schema00Boxed](#schema00boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md index 0f9763859da..198a6029829 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md @@ -50,7 +50,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [SchemaMap1](#schemamap1) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema11 public static class Schema11
@@ -93,7 +93,9 @@ Schema1.SchemaMap1 validatedPayload = | ----------------- | ---------------------- | | [SchemaMap1](#schemamap1) | validate([Map<?, ?>](#schemamapbuilder1) arg, SchemaConfiguration configuration) | | [Schema11BoxedMap](#schema11boxedmap) | validateAndBox([Map<?, ?>](#schemamapbuilder1) arg, SchemaConfiguration configuration) | +| [Schema11Boxed](#schema11boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## SchemaMapBuilder1 public class SchemaMapBuilder1
builder for `Map` @@ -168,7 +170,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SomeProp1BoxedBoolean public record SomeProp1BoxedBoolean
@@ -185,7 +187,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SomeProp1BoxedNumber public record SomeProp1BoxedNumber
@@ -202,7 +204,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SomeProp1BoxedString public record SomeProp1BoxedString
@@ -219,7 +221,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SomeProp1BoxedList public record SomeProp1BoxedList
@@ -236,7 +238,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SomeProp1BoxedMap public record SomeProp1BoxedMap
@@ -253,7 +255,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## SomeProp1 public static class SomeProp1
@@ -285,7 +287,9 @@ A schema class that validates payloads | [SomeProp1BoxedBoolean](#someprop1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [SomeProp1BoxedMap](#someprop1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [SomeProp1BoxedList](#someprop1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [SomeProp1Boxed](#someprop1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema01Boxed public sealed interface Schema01Boxed
permits
@@ -308,7 +312,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01 public static class Schema01
@@ -349,4 +353,5 @@ String validatedPayload = Schema1.Schema01.validate( | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | | [Schema01BoxedString](#schema01boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | \ No newline at end of file +| [Schema01Boxed](#schema01boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index da378c4ec25..0f9ad58f4f2 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -48,7 +48,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedBoolean public record ApplicationjsonSchema1BoxedBoolean
@@ -65,7 +65,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedNumber public record ApplicationjsonSchema1BoxedNumber
@@ -82,7 +82,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedString public record ApplicationjsonSchema1BoxedString
@@ -99,7 +99,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedList public record ApplicationjsonSchema1BoxedList
@@ -116,7 +116,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedMap public record ApplicationjsonSchema1BoxedMap
@@ -133,7 +133,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
@@ -165,7 +165,9 @@ A schema class that validates payloads | [ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Applicationjson0Boxed public sealed interface Applicationjson0Boxed
permits
@@ -188,7 +190,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Applicationjson0 public static class Applicationjson0
@@ -229,4 +231,5 @@ String validatedPayload = ApplicationjsonSchema.Applicationjson0.validate( | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | | [Applicationjson0BoxedString](#applicationjson0boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | \ No newline at end of file +| [Applicationjson0Boxed](#applicationjson0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md index 9896927ad60..1193ca3c9a3 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -50,7 +50,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [MultipartformdataSchemaMap](#multipartformdataschemamap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MultipartformdataSchema1 public static class MultipartformdataSchema1
@@ -93,7 +93,9 @@ MultipartformdataSchema.MultipartformdataSchemaMap validatedPayload = | ----------------- | ---------------------- | | [MultipartformdataSchemaMap](#multipartformdataschemamap) | validate([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | | [MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) | validateAndBox([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## MultipartformdataSchemaMapBuilder public class MultipartformdataSchemaMapBuilder
builder for `Map` @@ -168,7 +170,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MultipartformdataSomePropBoxedBoolean public record MultipartformdataSomePropBoxedBoolean
@@ -185,7 +187,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MultipartformdataSomePropBoxedNumber public record MultipartformdataSomePropBoxedNumber
@@ -202,7 +204,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MultipartformdataSomePropBoxedString public record MultipartformdataSomePropBoxedString
@@ -219,7 +221,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MultipartformdataSomePropBoxedList public record MultipartformdataSomePropBoxedList
@@ -236,7 +238,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MultipartformdataSomePropBoxedMap public record MultipartformdataSomePropBoxedMap
@@ -253,7 +255,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MultipartformdataSomeProp public static class MultipartformdataSomeProp
@@ -285,7 +287,9 @@ A schema class that validates payloads | [MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Multipartformdata0Boxed public sealed interface Multipartformdata0Boxed
permits
@@ -308,7 +312,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Multipartformdata0 public static class Multipartformdata0
@@ -349,4 +353,5 @@ String validatedPayload = MultipartformdataSchema.Multipartformdata0.validate( | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | | [Multipartformdata0BoxedString](#multipartformdata0boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | \ No newline at end of file +| [Multipartformdata0Boxed](#multipartformdata0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md index da378c4ec25..0f9ad58f4f2 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -48,7 +48,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedBoolean public record ApplicationjsonSchema1BoxedBoolean
@@ -65,7 +65,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedNumber public record ApplicationjsonSchema1BoxedNumber
@@ -82,7 +82,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedString public record ApplicationjsonSchema1BoxedString
@@ -99,7 +99,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedList public record ApplicationjsonSchema1BoxedList
@@ -116,7 +116,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedMap public record ApplicationjsonSchema1BoxedMap
@@ -133,7 +133,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
@@ -165,7 +165,9 @@ A schema class that validates payloads | [ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Applicationjson0Boxed public sealed interface Applicationjson0Boxed
permits
@@ -188,7 +190,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Applicationjson0 public static class Applicationjson0
@@ -229,4 +231,5 @@ String validatedPayload = ApplicationjsonSchema.Applicationjson0.validate( | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | | [Applicationjson0BoxedString](#applicationjson0boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | \ No newline at end of file +| [Applicationjson0Boxed](#applicationjson0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.md index 9896927ad60..1193ca3c9a3 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.md @@ -50,7 +50,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [MultipartformdataSchemaMap](#multipartformdataschemamap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MultipartformdataSchema1 public static class MultipartformdataSchema1
@@ -93,7 +93,9 @@ MultipartformdataSchema.MultipartformdataSchemaMap validatedPayload = | ----------------- | ---------------------- | | [MultipartformdataSchemaMap](#multipartformdataschemamap) | validate([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | | [MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) | validateAndBox([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## MultipartformdataSchemaMapBuilder public class MultipartformdataSchemaMapBuilder
builder for `Map` @@ -168,7 +170,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MultipartformdataSomePropBoxedBoolean public record MultipartformdataSomePropBoxedBoolean
@@ -185,7 +187,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MultipartformdataSomePropBoxedNumber public record MultipartformdataSomePropBoxedNumber
@@ -202,7 +204,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MultipartformdataSomePropBoxedString public record MultipartformdataSomePropBoxedString
@@ -219,7 +221,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MultipartformdataSomePropBoxedList public record MultipartformdataSomePropBoxedList
@@ -236,7 +238,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MultipartformdataSomePropBoxedMap public record MultipartformdataSomePropBoxedMap
@@ -253,7 +255,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MultipartformdataSomeProp public static class MultipartformdataSomeProp
@@ -285,7 +287,9 @@ A schema class that validates payloads | [MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Multipartformdata0Boxed public sealed interface Multipartformdata0Boxed
permits
@@ -308,7 +312,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Multipartformdata0 public static class Multipartformdata0
@@ -349,4 +353,5 @@ String validatedPayload = MultipartformdataSchema.Multipartformdata0.validate( | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | | [Multipartformdata0BoxedString](#multipartformdata0boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | \ No newline at end of file +| [Multipartformdata0Boxed](#multipartformdata0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md b/samples/client/petstore/java/docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md index aca503bfcd7..19ba2769f73 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md +++ b/samples/client/petstore/java/docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md @@ -45,7 +45,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationxwwwformurlencodedSchema1 public static class ApplicationxwwwformurlencodedSchema1
@@ -93,7 +93,9 @@ ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMap valid | ----------------- | ---------------------- | | [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | validate([Map<?, ?>](#applicationxwwwformurlencodedschemamapbuilder) arg, SchemaConfiguration configuration) | | [ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap) | validateAndBox([Map<?, ?>](#applicationxwwwformurlencodedschemamapbuilder) arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ApplicationxwwwformurlencodedSchemaMap00Builder public class ApplicationxwwwformurlencodedSchemaMap00Builder
builder for `Map` @@ -204,7 +206,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationxwwwformurlencodedParam2 public static class ApplicationxwwwformurlencodedParam2
@@ -242,7 +244,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationxwwwformurlencodedParam public static class ApplicationxwwwformurlencodedParam
diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md index 4c2b7cc3da7..c1e19a793a6 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md +++ b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md @@ -45,7 +45,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Applicationjsoncharsetutf8Schema1BoxedBoolean public record Applicationjsoncharsetutf8Schema1BoxedBoolean
@@ -62,7 +62,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Applicationjsoncharsetutf8Schema1BoxedNumber public record Applicationjsoncharsetutf8Schema1BoxedNumber
@@ -79,7 +79,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Applicationjsoncharsetutf8Schema1BoxedString public record Applicationjsoncharsetutf8Schema1BoxedString
@@ -96,7 +96,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Applicationjsoncharsetutf8Schema1BoxedList public record Applicationjsoncharsetutf8Schema1BoxedList
@@ -113,7 +113,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Applicationjsoncharsetutf8Schema1BoxedMap public record Applicationjsoncharsetutf8Schema1BoxedMap
@@ -130,7 +130,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Applicationjsoncharsetutf8Schema1 public static class Applicationjsoncharsetutf8Schema1
diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/response200/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/response200/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md index 4c2b7cc3da7..c1e19a793a6 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/response200/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md +++ b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/response200/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md @@ -45,7 +45,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Applicationjsoncharsetutf8Schema1BoxedBoolean public record Applicationjsoncharsetutf8Schema1BoxedBoolean
@@ -62,7 +62,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Applicationjsoncharsetutf8Schema1BoxedNumber public record Applicationjsoncharsetutf8Schema1BoxedNumber
@@ -79,7 +79,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Applicationjsoncharsetutf8Schema1BoxedString public record Applicationjsoncharsetutf8Schema1BoxedString
@@ -96,7 +96,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Applicationjsoncharsetutf8Schema1BoxedList public record Applicationjsoncharsetutf8Schema1BoxedList
@@ -113,7 +113,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Applicationjsoncharsetutf8Schema1BoxedMap public record Applicationjsoncharsetutf8Schema1BoxedMap
@@ -130,7 +130,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Applicationjsoncharsetutf8Schema1 public static class Applicationjsoncharsetutf8Schema1
diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index 7ac37707aff..99e4e5f8d2e 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -42,7 +42,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ApplicationjsonSchemaMap](#applicationjsonschemamap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
@@ -87,7 +87,9 @@ ApplicationjsonSchema.ApplicationjsonSchemaMap validatedPayload = | ----------------- | ---------------------- | | [ApplicationjsonSchemaMap](#applicationjsonschemamap) | validate([Map<?, ?>](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | | [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) | validateAndBox([Map<?, ?>](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ApplicationjsonSchemaMapBuilder public class ApplicationjsonSchemaMapBuilder
builder for `Map` @@ -149,7 +151,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonA public static class ApplicationjsonA
diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md index 8aadd09cff1..d205479b899 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -42,7 +42,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [MultipartformdataSchemaMap](#multipartformdataschemamap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MultipartformdataSchema1 public static class MultipartformdataSchema1
@@ -87,7 +87,9 @@ MultipartformdataSchema.MultipartformdataSchemaMap validatedPayload = | ----------------- | ---------------------- | | [MultipartformdataSchemaMap](#multipartformdataschemamap) | validate([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | | [MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) | validateAndBox([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## MultipartformdataSchemaMapBuilder public class MultipartformdataSchemaMapBuilder
builder for `Map` @@ -149,7 +151,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MultipartformdataB public static class MultipartformdataB
diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md index caf46ad5b86..122e5886047 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -45,7 +45,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedBoolean public record ApplicationjsonSchema1BoxedBoolean
@@ -62,7 +62,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedNumber public record ApplicationjsonSchema1BoxedNumber
@@ -79,7 +79,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedString public record ApplicationjsonSchema1BoxedString
@@ -96,7 +96,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedList public record ApplicationjsonSchema1BoxedList
@@ -113,7 +113,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedMap public record ApplicationjsonSchema1BoxedMap
@@ -130,7 +130,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md index caf46ad5b86..122e5886047 100644 --- a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -45,7 +45,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedBoolean public record ApplicationjsonSchema1BoxedBoolean
@@ -62,7 +62,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedNumber public record ApplicationjsonSchema1BoxedNumber
@@ -79,7 +79,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedString public record ApplicationjsonSchema1BoxedString
@@ -96,7 +96,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedList public record ApplicationjsonSchema1BoxedList
@@ -113,7 +113,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedMap public record ApplicationjsonSchema1BoxedMap
@@ -130,7 +130,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/response202/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/response202/content/applicationjson/ApplicationjsonSchema.md index caf46ad5b86..122e5886047 100644 --- a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/response202/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/response202/content/applicationjson/ApplicationjsonSchema.md @@ -45,7 +45,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedBoolean public record ApplicationjsonSchema1BoxedBoolean
@@ -62,7 +62,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedNumber public record ApplicationjsonSchema1BoxedNumber
@@ -79,7 +79,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedString public record ApplicationjsonSchema1BoxedString
@@ -96,7 +96,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedList public record ApplicationjsonSchema1BoxedList
@@ -113,7 +113,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedMap public record ApplicationjsonSchema1BoxedMap
@@ -130,7 +130,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md index caf46ad5b86..122e5886047 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -45,7 +45,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedBoolean public record ApplicationjsonSchema1BoxedBoolean
@@ -62,7 +62,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedNumber public record ApplicationjsonSchema1BoxedNumber
@@ -79,7 +79,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedString public record ApplicationjsonSchema1BoxedString
@@ -96,7 +96,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedList public record ApplicationjsonSchema1BoxedList
@@ -113,7 +113,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedMap public record ApplicationjsonSchema1BoxedMap
@@ -130,7 +130,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
diff --git a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md index cf28ed6f5dc..5bd67336ff4 100644 --- a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md @@ -42,7 +42,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [SchemaMap0](#schemamap0) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01 public static class Schema01
@@ -87,7 +87,9 @@ Schema0.SchemaMap0 validatedPayload = | ----------------- | ---------------------- | | [SchemaMap0](#schemamap0) | validate([Map<?, ?>](#schemamapbuilder0) arg, SchemaConfiguration configuration) | | [Schema01BoxedMap](#schema01boxedmap) | validateAndBox([Map<?, ?>](#schemamapbuilder0) arg, SchemaConfiguration configuration) | +| [Schema01Boxed](#schema01boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## SchemaMapBuilder0 public class SchemaMapBuilder0
builder for `Map` @@ -149,7 +151,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Keyword0 public static class Keyword0
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.md index edd11b6e174..9310f1ac75f 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01 public static class Schema01
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.md index 8dfdf8085c2..7b37ff278b7 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema11 public static class Schema11
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.md index 55946c80a4d..641c502d7e5 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema101 public static class Schema101
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.md index d9178c0a9c3..b940da5aecf 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema111 public static class Schema111
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.md index dd5a920b7d0..17c9ee8646c 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema121 public static class Schema121
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.md index 1c6bacab892..33ac64c5b34 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema131 public static class Schema131
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.md index d4d8d699290..5453caf859c 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema141 public static class Schema141
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.md index 0fb518cb220..ee632011480 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema151 public static class Schema151
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.md index 43156272c0a..3e6691ea9e8 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema161 public static class Schema161
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.md index e6b02c44507..3cddbd28728 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema171 public static class Schema171
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.md index dda78b4f943..76133db074f 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema181 public static class Schema181
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.md index 8659bbfaba4..5080368d390 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema21 public static class Schema21
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.md index bdadc9c7c7d..6e885952993 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema31 public static class Schema31
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.md index d2bf7b6ce26..f2d10411f78 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema41 public static class Schema41
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.md index 21b6266247e..c043290c296 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema51 public static class Schema51
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.md index 4e31aa7b290..5e772c675e3 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema61 public static class Schema61
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.md index 3d149d8735b..d027599c8a5 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema71 public static class Schema71
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.md index d2a5cb3c545..d348cca001b 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema81 public static class Schema81
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.md index fff0935b07c..8537201e725 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema91 public static class Schema91
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index caf46ad5b86..122e5886047 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -45,7 +45,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedBoolean public record ApplicationjsonSchema1BoxedBoolean
@@ -62,7 +62,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedNumber public record ApplicationjsonSchema1BoxedNumber
@@ -79,7 +79,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedString public record ApplicationjsonSchema1BoxedString
@@ -96,7 +96,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedList public record ApplicationjsonSchema1BoxedList
@@ -113,7 +113,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedMap public record ApplicationjsonSchema1BoxedMap
@@ -130,7 +130,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md index caf46ad5b86..122e5886047 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -45,7 +45,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedBoolean public record ApplicationjsonSchema1BoxedBoolean
@@ -62,7 +62,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedNumber public record ApplicationjsonSchema1BoxedNumber
@@ -79,7 +79,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedString public record ApplicationjsonSchema1BoxedString
@@ -96,7 +96,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedList public record ApplicationjsonSchema1BoxedList
@@ -113,7 +113,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedMap public record ApplicationjsonSchema1BoxedMap
@@ -130,7 +130,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md index 6eb07974455..143b9fe0d17 100644 --- a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md +++ b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationxpemfileSchema1 public static class ApplicationxpemfileSchema1
diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/response200/content/applicationxpemfile/ApplicationxpemfileSchema.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/response200/content/applicationxpemfile/ApplicationxpemfileSchema.md index 6eb07974455..143b9fe0d17 100644 --- a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/response200/content/applicationxpemfile/ApplicationxpemfileSchema.md +++ b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/response200/content/applicationxpemfile/ApplicationxpemfileSchema.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationxpemfileSchema1 public static class ApplicationxpemfileSchema1
diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.md index bf274deae04..2b8e20a095f 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.md @@ -35,7 +35,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01 public static class Schema01
diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md index e453120ac59..1ba8ce71878 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -44,7 +44,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [MultipartformdataSchemaMap](#multipartformdataschemamap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MultipartformdataSchema1 public static class MultipartformdataSchema1
@@ -92,7 +92,9 @@ MultipartformdataSchema.MultipartformdataSchemaMap validatedPayload = | ----------------- | ---------------------- | | [MultipartformdataSchemaMap](#multipartformdataschemamap) | validate([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | | [MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) | validateAndBox([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## MultipartformdataSchemaMap0Builder public class MultipartformdataSchemaMap0Builder
builder for `Map` @@ -186,7 +188,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MultipartformdataAdditionalMetadata public static class MultipartformdataAdditionalMetadata
diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.md index a8719d7bec6..a5e113330e6 100644 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.md @@ -45,7 +45,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01BoxedBoolean public record Schema01BoxedBoolean
@@ -62,7 +62,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01BoxedNumber public record Schema01BoxedNumber
@@ -79,7 +79,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01BoxedString public record Schema01BoxedString
@@ -96,7 +96,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01BoxedList public record Schema01BoxedList
@@ -113,7 +113,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01BoxedMap public record Schema01BoxedMap
@@ -130,7 +130,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01 public static class Schema01
diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md index caf46ad5b86..122e5886047 100644 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -45,7 +45,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedBoolean public record ApplicationjsonSchema1BoxedBoolean
@@ -62,7 +62,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedNumber public record ApplicationjsonSchema1BoxedNumber
@@ -79,7 +79,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedString public record ApplicationjsonSchema1BoxedString
@@ -96,7 +96,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedList public record ApplicationjsonSchema1BoxedList
@@ -113,7 +113,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedMap public record ApplicationjsonSchema1BoxedMap
@@ -130,7 +130,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md index eea70c9dff3..7dc41141603 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md @@ -42,7 +42,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [SchemaList0](#schemalist0) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01 public static class Schema01
@@ -87,7 +87,9 @@ Schema0.SchemaList0 validatedPayload = | ----------------- | ---------------------- | | [SchemaList0](#schemalist0) | validate([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | | [Schema01BoxedList](#schema01boxedlist) | validateAndBox([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | +| [Schema01Boxed](#schema01boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## SchemaListBuilder0 public class SchemaListBuilder0
builder for `List` @@ -139,7 +141,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Items0 public static class Items0
diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md index ad246234a47..b3563638a52 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md @@ -42,7 +42,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [SchemaList1](#schemalist1) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema11 public static class Schema11
@@ -87,7 +87,9 @@ Schema1.SchemaList1 validatedPayload = | ----------------- | ---------------------- | | [SchemaList1](#schemalist1) | validate([List](#schemalistbuilder1) arg, SchemaConfiguration configuration) | | [Schema11BoxedList](#schema11boxedlist) | validateAndBox([List](#schemalistbuilder1) arg, SchemaConfiguration configuration) | +| [Schema11Boxed](#schema11boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## SchemaListBuilder1 public class SchemaListBuilder1
builder for `List` @@ -139,7 +141,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Items1 public static class Items1
diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md index 9bd08d0539b..b141e10c86d 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md @@ -42,7 +42,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [SchemaList2](#schemalist2) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema21 public static class Schema21
@@ -87,7 +87,9 @@ Schema2.SchemaList2 validatedPayload = | ----------------- | ---------------------- | | [SchemaList2](#schemalist2) | validate([List](#schemalistbuilder2) arg, SchemaConfiguration configuration) | | [Schema21BoxedList](#schema21boxedlist) | validateAndBox([List](#schemalistbuilder2) arg, SchemaConfiguration configuration) | +| [Schema21Boxed](#schema21boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## SchemaListBuilder2 public class SchemaListBuilder2
builder for `List` @@ -139,7 +141,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Items2 public static class Items2
diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md index 92b4390f4f1..171eeb15e9f 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md @@ -42,7 +42,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [SchemaList3](#schemalist3) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema31 public static class Schema31
@@ -87,7 +87,9 @@ Schema3.SchemaList3 validatedPayload = | ----------------- | ---------------------- | | [SchemaList3](#schemalist3) | validate([List](#schemalistbuilder3) arg, SchemaConfiguration configuration) | | [Schema31BoxedList](#schema31boxedlist) | validateAndBox([List](#schemalistbuilder3) arg, SchemaConfiguration configuration) | +| [Schema31Boxed](#schema31boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## SchemaListBuilder3 public class SchemaListBuilder3
builder for `List` @@ -139,7 +141,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Items3 public static class Items3
diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md index 94e909f6d29..e279fae6d6a 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md @@ -42,7 +42,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [SchemaList4](#schemalist4) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema41 public static class Schema41
@@ -87,7 +87,9 @@ Schema4.SchemaList4 validatedPayload = | ----------------- | ---------------------- | | [SchemaList4](#schemalist4) | validate([List](#schemalistbuilder4) arg, SchemaConfiguration configuration) | | [Schema41BoxedList](#schema41boxedlist) | validateAndBox([List](#schemalistbuilder4) arg, SchemaConfiguration configuration) | +| [Schema41Boxed](#schema41boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## SchemaListBuilder4 public class SchemaListBuilder4
builder for `List` @@ -139,7 +141,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Items4 public static class Items4
diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md index 07b356fb404..0d6cfd4daef 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -44,7 +44,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [MultipartformdataSchemaMap](#multipartformdataschemamap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MultipartformdataSchema1 public static class MultipartformdataSchema1
@@ -92,7 +92,9 @@ MultipartformdataSchema.MultipartformdataSchemaMap validatedPayload = | ----------------- | ---------------------- | | [MultipartformdataSchemaMap](#multipartformdataschemamap) | validate([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | | [MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) | validateAndBox([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## MultipartformdataSchemaMap0Builder public class MultipartformdataSchemaMap0Builder
builder for `Map` @@ -186,7 +188,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MultipartformdataAdditionalMetadata public static class MultipartformdataAdditionalMetadata
diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md index c7c01fb15ed..d8acbf3a8dd 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -48,7 +48,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [MultipartformdataSchemaMap](#multipartformdataschemamap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MultipartformdataSchema1 public static class MultipartformdataSchema1
@@ -96,7 +96,9 @@ MultipartformdataSchema.MultipartformdataSchemaMap validatedPayload = | ----------------- | ---------------------- | | [MultipartformdataSchemaMap](#multipartformdataschemamap) | validate([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | | [MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) | validateAndBox([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## MultipartformdataSchemaMapBuilder public class MultipartformdataSchemaMapBuilder
builder for `Map` @@ -158,7 +160,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [MultipartformdataFilesList](#multipartformdatafileslist) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MultipartformdataFiles public static class MultipartformdataFiles
@@ -203,7 +205,9 @@ MultipartformdataSchema.MultipartformdataFilesList validatedPayload = | ----------------- | ---------------------- | | [MultipartformdataFilesList](#multipartformdatafileslist) | validate([List](#multipartformdatafileslistbuilder) arg, SchemaConfiguration configuration) | | [MultipartformdataFilesBoxedList](#multipartformdatafilesboxedlist) | validateAndBox([List](#multipartformdatafileslistbuilder) arg, SchemaConfiguration configuration) | +| [MultipartformdataFilesBoxed](#multipartformdatafilesboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## MultipartformdataFilesListBuilder public class MultipartformdataFilesListBuilder
builder for `List` diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response1xx/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response1xx/content/applicationjson/ApplicationjsonSchema.md index caf46ad5b86..122e5886047 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response1xx/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response1xx/content/applicationjson/ApplicationjsonSchema.md @@ -45,7 +45,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedBoolean public record ApplicationjsonSchema1BoxedBoolean
@@ -62,7 +62,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedNumber public record ApplicationjsonSchema1BoxedNumber
@@ -79,7 +79,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedString public record ApplicationjsonSchema1BoxedString
@@ -96,7 +96,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedList public record ApplicationjsonSchema1BoxedList
@@ -113,7 +113,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedMap public record ApplicationjsonSchema1BoxedMap
@@ -130,7 +130,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md index caf46ad5b86..122e5886047 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -45,7 +45,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedBoolean public record ApplicationjsonSchema1BoxedBoolean
@@ -62,7 +62,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedNumber public record ApplicationjsonSchema1BoxedNumber
@@ -79,7 +79,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedString public record ApplicationjsonSchema1BoxedString
@@ -96,7 +96,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedList public record ApplicationjsonSchema1BoxedList
@@ -113,7 +113,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedMap public record ApplicationjsonSchema1BoxedMap
@@ -130,7 +130,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response2xx/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response2xx/content/applicationjson/ApplicationjsonSchema.md index caf46ad5b86..122e5886047 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response2xx/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response2xx/content/applicationjson/ApplicationjsonSchema.md @@ -45,7 +45,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedBoolean public record ApplicationjsonSchema1BoxedBoolean
@@ -62,7 +62,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedNumber public record ApplicationjsonSchema1BoxedNumber
@@ -79,7 +79,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedString public record ApplicationjsonSchema1BoxedString
@@ -96,7 +96,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedList public record ApplicationjsonSchema1BoxedList
@@ -113,7 +113,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedMap public record ApplicationjsonSchema1BoxedMap
@@ -130,7 +130,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response3xx/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response3xx/content/applicationjson/ApplicationjsonSchema.md index caf46ad5b86..122e5886047 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response3xx/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response3xx/content/applicationjson/ApplicationjsonSchema.md @@ -45,7 +45,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedBoolean public record ApplicationjsonSchema1BoxedBoolean
@@ -62,7 +62,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedNumber public record ApplicationjsonSchema1BoxedNumber
@@ -79,7 +79,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedString public record ApplicationjsonSchema1BoxedString
@@ -96,7 +96,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedList public record ApplicationjsonSchema1BoxedList
@@ -113,7 +113,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedMap public record ApplicationjsonSchema1BoxedMap
@@ -130,7 +130,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response4xx/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response4xx/content/applicationjson/ApplicationjsonSchema.md index caf46ad5b86..122e5886047 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response4xx/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response4xx/content/applicationjson/ApplicationjsonSchema.md @@ -45,7 +45,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedBoolean public record ApplicationjsonSchema1BoxedBoolean
@@ -62,7 +62,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedNumber public record ApplicationjsonSchema1BoxedNumber
@@ -79,7 +79,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedString public record ApplicationjsonSchema1BoxedString
@@ -96,7 +96,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedList public record ApplicationjsonSchema1BoxedList
@@ -113,7 +113,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedMap public record ApplicationjsonSchema1BoxedMap
@@ -130,7 +130,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response5xx/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response5xx/content/applicationjson/ApplicationjsonSchema.md index caf46ad5b86..122e5886047 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response5xx/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response5xx/content/applicationjson/ApplicationjsonSchema.md @@ -45,7 +45,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedBoolean public record ApplicationjsonSchema1BoxedBoolean
@@ -62,7 +62,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedNumber public record ApplicationjsonSchema1BoxedNumber
@@ -79,7 +79,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedString public record ApplicationjsonSchema1BoxedString
@@ -96,7 +96,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedList public record ApplicationjsonSchema1BoxedList
@@ -113,7 +113,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1BoxedMap public record ApplicationjsonSchema1BoxedMap
@@ -130,7 +130,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
diff --git a/samples/client/petstore/java/docs/paths/foo/get/responses/responsedefault/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/foo/get/responses/responsedefault/content/applicationjson/ApplicationjsonSchema.md index e8c142952e6..0795164907b 100644 --- a/samples/client/petstore/java/docs/paths/foo/get/responses/responsedefault/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/foo/get/responses/responsedefault/content/applicationjson/ApplicationjsonSchema.md @@ -39,7 +39,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ApplicationjsonSchemaMap](#applicationjsonschemamap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
@@ -90,7 +90,9 @@ ApplicationjsonSchema.ApplicationjsonSchemaMap validatedPayload = | ----------------- | ---------------------- | | [ApplicationjsonSchemaMap](#applicationjsonschemamap) | validate([Map<?, ?>](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | | [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) | validateAndBox([Map<?, ?>](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ApplicationjsonSchemaMapBuilder public class ApplicationjsonSchemaMapBuilder
builder for `Map` diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/parameters/parameter0/Schema0.md index 9613e74286f..afbce10551e 100644 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/get/parameters/parameter0/Schema0.md @@ -44,7 +44,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [SchemaList0](#schemalist0) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01 public static class Schema01
@@ -89,7 +89,9 @@ Schema0.SchemaList0 validatedPayload = | ----------------- | ---------------------- | | [SchemaList0](#schemalist0) | validate([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | | [Schema01BoxedList](#schema01boxedlist) | validateAndBox([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | +| [Schema01Boxed](#schema01boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## SchemaListBuilder0 public class SchemaListBuilder0
builder for `List` @@ -142,7 +144,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Items0 public static class Items0
@@ -185,7 +187,9 @@ String validatedPayload = Schema0.Items0.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringItemsEnums0](#stringitemsenums0) arg, SchemaConfiguration configuration) | | [Items0BoxedString](#items0boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Items0Boxed](#items0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringItemsEnums0 public enum StringItemsEnums0
extends `Enum` diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petfindbytags/get/parameters/parameter0/Schema0.md index eea70c9dff3..7dc41141603 100644 --- a/samples/client/petstore/java/docs/paths/petfindbytags/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/petfindbytags/get/parameters/parameter0/Schema0.md @@ -42,7 +42,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [SchemaList0](#schemalist0) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01 public static class Schema01
@@ -87,7 +87,9 @@ Schema0.SchemaList0 validatedPayload = | ----------------- | ---------------------- | | [SchemaList0](#schemalist0) | validate([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | | [Schema01BoxedList](#schema01boxedlist) | validateAndBox([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | +| [Schema01Boxed](#schema01boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## SchemaListBuilder0 public class SchemaListBuilder0
builder for `List` @@ -139,7 +141,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Items0 public static class Items0
diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter0/Schema0.md index edd11b6e174..9310f1ac75f 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter0/Schema0.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01 public static class Schema01
diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter1/Schema1.md index 09dc2d30238..43e8dc6595a 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter1/Schema1.md @@ -35,7 +35,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema11 public static class Schema11
diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petpetid/get/parameters/parameter0/Schema0.md index bf274deae04..2b8e20a095f 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/petpetid/get/parameters/parameter0/Schema0.md @@ -35,7 +35,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01 public static class Schema01
diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petpetid/post/parameters/parameter0/Schema0.md index bf274deae04..2b8e20a095f 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/post/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/petpetid/post/parameters/parameter0/Schema0.md @@ -35,7 +35,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01 public static class Schema01
diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md b/samples/client/petstore/java/docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md index 40ed78fabf5..5d894e0d85e 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md +++ b/samples/client/petstore/java/docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md @@ -45,7 +45,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationxwwwformurlencodedSchema1 public static class ApplicationxwwwformurlencodedSchema1
@@ -92,7 +92,9 @@ ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMap valid | ----------------- | ---------------------- | | [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | validate([Map<?, ?>](#applicationxwwwformurlencodedschemamapbuilder) arg, SchemaConfiguration configuration) | | [ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap) | validateAndBox([Map<?, ?>](#applicationxwwwformurlencodedschemamapbuilder) arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ApplicationxwwwformurlencodedSchemaMapBuilder public class ApplicationxwwwformurlencodedSchemaMapBuilder
builder for `Map` @@ -156,7 +158,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationxwwwformurlencodedStatus public static class ApplicationxwwwformurlencodedStatus
@@ -194,7 +196,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationxwwwformurlencodedName public static class ApplicationxwwwformurlencodedName
diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md index bf274deae04..2b8e20a095f 100644 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md @@ -35,7 +35,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01 public static class Schema01
diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md index b305da5422f..4c08d0966cb 100644 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -44,7 +44,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [MultipartformdataSchemaMap](#multipartformdataschemamap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MultipartformdataSchema1 public static class MultipartformdataSchema1
@@ -91,7 +91,9 @@ MultipartformdataSchema.MultipartformdataSchemaMap validatedPayload = | ----------------- | ---------------------- | | [MultipartformdataSchemaMap](#multipartformdataschemamap) | validate([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | | [MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) | validateAndBox([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## MultipartformdataSchemaMapBuilder public class MultipartformdataSchemaMapBuilder
builder for `Map` @@ -170,7 +172,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## MultipartformdataAdditionalMetadata public static class MultipartformdataAdditionalMetadata
diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/storeorderorderid/delete/parameters/parameter0/Schema0.md index edd11b6e174..9310f1ac75f 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/delete/parameters/parameter0/Schema0.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01 public static class Schema01
diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/parameters/parameter0/Schema0.md index c38814dc8a0..49ee36df0f4 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/get/parameters/parameter0/Schema0.md @@ -35,7 +35,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01 public static class Schema01
@@ -78,4 +78,5 @@ long validatedPayload = Schema0.Schema01.validate( | ----------------- | ---------------------- | | long | validate(long arg, SchemaConfiguration configuration) | | [Schema01BoxedNumber](#schema01boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | \ No newline at end of file +| [Schema01Boxed](#schema01boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter0/Schema0.md index edd11b6e174..9310f1ac75f 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter0/Schema0.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema01 public static class Schema01
diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter1/Schema1.md index 8dfdf8085c2..7b37ff278b7 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter1/Schema1.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## Schema11 public static class Schema11
diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md index f12069522bc..d6804ae2058 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md index 517df5edc3e..3a80c9bf06d 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## ApplicationxmlSchema1 public static class ApplicationxmlSchema1
diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/headers/xexpiresafter/XExpiresAfterSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/headers/xexpiresafter/XExpiresAfterSchema.md index 346edda0574..3c127ce1e5a 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/headers/xexpiresafter/XExpiresAfterSchema.md +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/headers/xexpiresafter/XExpiresAfterSchema.md @@ -35,7 +35,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## XExpiresAfterSchema1 public static class XExpiresAfterSchema1
diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/headers/xratelimit/content/applicationjson/XRateLimitSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/headers/xratelimit/content/applicationjson/XRateLimitSchema.md index fd2a8448898..6a322ac2bc7 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/headers/xratelimit/content/applicationjson/XRateLimitSchema.md +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/headers/xratelimit/content/applicationjson/XRateLimitSchema.md @@ -35,7 +35,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ## XRateLimitSchema1 public static class XRateLimitSchema1
diff --git a/samples/client/petstore/java/docs/servers/Server0.md b/samples/client/petstore/java/docs/servers/Server0.md index c34a377b455..72600744e8f 100644 --- a/samples/client/petstore/java/docs/servers/Server0.md +++ b/samples/client/petstore/java/docs/servers/Server0.md @@ -77,7 +77,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [VariablesMap](#variablesmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ### Variables1 public static class Variables1
@@ -126,7 +126,9 @@ Variables.VariablesMap validatedPayload = | ----------------- | ---------------------- | | [VariablesMap](#variablesmap) | validate([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | | [Variables1BoxedMap](#variables1boxedmap) | validateAndBox([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | +| [Variables1Boxed](#variables1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ### VariablesMap00Builder public class VariablesMap00Builder
builder for `Map` @@ -231,7 +233,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ### Port public static class Port
@@ -277,7 +279,9 @@ String validatedPayload = Variables.Port.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringPortEnums](#stringportenums) arg, SchemaConfiguration configuration) | | [PortBoxedString](#portboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [PortBoxed](#portboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ### StringPortEnums public enum StringPortEnums
extends `Enum` @@ -312,7 +316,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ### Server public static class Server
@@ -358,7 +362,9 @@ String validatedPayload = Variables.Server.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringServerEnums](#stringserverenums) arg, SchemaConfiguration configuration) | | [ServerBoxedString](#serverboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [ServerBoxed](#serverboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ### StringServerEnums public enum StringServerEnums
extends `Enum` @@ -399,7 +405,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ### AdditionalPropertiesBoxedBoolean public record AdditionalPropertiesBoxedBoolean
@@ -416,7 +422,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ### AdditionalPropertiesBoxedNumber public record AdditionalPropertiesBoxedNumber
@@ -433,7 +439,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ### AdditionalPropertiesBoxedString public record AdditionalPropertiesBoxedString
@@ -450,7 +456,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ### AdditionalPropertiesBoxedList public record AdditionalPropertiesBoxedList
@@ -467,7 +473,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ### AdditionalPropertiesBoxedMap public record AdditionalPropertiesBoxedMap
@@ -484,7 +490,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ### AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/servers/Server1.md b/samples/client/petstore/java/docs/servers/Server1.md index 1e8b73452e8..7c3461f2e3c 100644 --- a/samples/client/petstore/java/docs/servers/Server1.md +++ b/samples/client/petstore/java/docs/servers/Server1.md @@ -73,7 +73,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [VariablesMap](#variablesmap) | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ### Variables1 public static class Variables1
@@ -120,7 +120,9 @@ Variables.VariablesMap validatedPayload = | ----------------- | ---------------------- | | [VariablesMap](#variablesmap) | validate([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | | [Variables1BoxedMap](#variables1boxedmap) | validateAndBox([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | +| [Variables1Boxed](#variables1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ### VariablesMap0Builder public class VariablesMap0Builder
builder for `Map` @@ -188,7 +190,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ### Version public static class Version
@@ -231,7 +233,9 @@ String validatedPayload = Variables.Version.validate( | String | validate(String arg, SchemaConfiguration configuration) | | String | validate([StringVersionEnums](#stringversionenums) arg, SchemaConfiguration configuration) | | [VersionBoxedString](#versionboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [VersionBoxed](#versionboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ### StringVersionEnums public enum StringVersionEnums
extends `Enum` @@ -271,7 +275,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ### AdditionalPropertiesBoxedBoolean public record AdditionalPropertiesBoxedBoolean
@@ -288,7 +292,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ### AdditionalPropertiesBoxedNumber public record AdditionalPropertiesBoxedNumber
@@ -305,7 +309,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ### AdditionalPropertiesBoxedString public record AdditionalPropertiesBoxedString
@@ -322,7 +326,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ### AdditionalPropertiesBoxedList public record AdditionalPropertiesBoxedList
@@ -339,7 +343,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ### AdditionalPropertiesBoxedMap public record AdditionalPropertiesBoxedMap
@@ -356,7 +360,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | ### AdditionalProperties public static class AdditionalProperties
diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedBoolean.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedBoolean.hbs index 667028a417b..e398aaf366f 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedBoolean.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedBoolean.hbs @@ -14,7 +14,7 @@ record that stores validated boolean payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | boolean | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | {{else}} public record {{jsonPathPiece.pascalCase}}BoxedBoolean(boolean data) implements {{jsonPathPiece.pascalCase}}Boxed { diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedList.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedList.hbs index ee68105b55f..3bee8c7d57e 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedList.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedList.hbs @@ -14,7 +14,7 @@ record that stores validated List payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | {{#if arrayOutputJsonPathPiece}}[{{arrayOutputJsonPathPiece.pascalCase}}](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces arrayOutputJsonPathPiece) }}){{else}}FrozenList<@Nullable Object>{{/if}} | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | {{else}} public record {{jsonPathPiece.pascalCase}}BoxedList({{#if arrayOutputJsonPathPiece}}{{arrayOutputJsonPathPiece.pascalCase}}{{else}}FrozenList<@Nullable Object>{{/if}} data) implements {{jsonPathPiece.pascalCase}}Boxed { diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedMap.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedMap.hbs index 757b4379518..83804d1ed4b 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedMap.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedMap.hbs @@ -14,7 +14,7 @@ record that stores validated Map payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | {{#if mapOutputJsonPathPiece}}[{{mapOutputJsonPathPiece.pascalCase}}](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces mapOutputJsonPathPiece) }}){{else}}FrozenMap<@Nullable Object>{{/if}} | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | {{else}} public record {{jsonPathPiece.pascalCase}}BoxedMap({{#if mapOutputJsonPathPiece}}{{mapOutputJsonPathPiece.pascalCase}}{{else}}FrozenMap<@Nullable Object>{{/if}} data) implements {{jsonPathPiece.pascalCase}}Boxed { diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedNumber.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedNumber.hbs index eac508b3a18..5706ccbba67 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedNumber.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedNumber.hbs @@ -14,7 +14,7 @@ record that stores validated Number payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Number | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | {{else}} public record {{jsonPathPiece.pascalCase}}BoxedNumber(Number data) implements {{jsonPathPiece.pascalCase}}Boxed { diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedString.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedString.hbs index 079baab39c7..d32717106e6 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedString.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedString.hbs @@ -14,7 +14,7 @@ record that stores validated String payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | {{else}} public record {{jsonPathPiece.pascalCase}}BoxedString(String data) implements {{jsonPathPiece.pascalCase}}Boxed { diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedVoid.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedVoid.hbs index 81cd77bcd20..e828f6952ff 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedVoid.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_boxedVoid.hbs @@ -14,7 +14,7 @@ record that stores validated null payloads, sealed permits implementation | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | data()
validated payload | -| @Nullable Object | getData()validated payload | +| @Nullable Object | getData()
validated payload | {{else}} public record {{jsonPathPiece.pascalCase}}BoxedVoid(Void data) implements {{jsonPathPiece.pascalCase}}Boxed { diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/docschema_io_types.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/docschema_io_types.hbs index 4ced53b7fdb..4ee33c93106 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/docschema_io_types.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/docschema_io_types.hbs @@ -118,4 +118,5 @@ {{/eq}} {{/each}} {{/eq}} -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | \ No newline at end of file +| [{{jsonPathPiece.pascalCase}}Boxed](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxed" ""))}}) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | From 9ae8ac2f6d3adc8153e22b70ff382d8d8a962e3c Mon Sep 17 00:00:00 2001 From: Justin Black Date: Tue, 20 Feb 2024 15:04:16 -0800 Subject: [PATCH 14/50] Handles case where response lacks content --- .../petstore/java/.openapi-generator/FILES | 100 ++++++++++++++++++ .../components/requestbodies/Client.java | 2 +- .../client/components/requestbodies/Pet.java | 2 +- .../components/requestbodies/UserArray.java | 2 +- .../responses/headerswithnobody.java | 33 ++++++ .../responses/refsuccessdescriptiononly.java | 6 ++ .../refsuccessfulxmlandjsonarrayofpet.java | 6 ++ .../responses/successdescriptiononly.java | 33 ++++++ .../successfulxmlandjsonarrayofpet.java | 57 ++++++++++ .../successinlinecontentandheader.java | 46 ++++++++ .../responses/successwithjsonapiresponse.java | 46 ++++++++ .../patch/responses/response200.java | 46 ++++++++ .../delete/responses/response200.java | 6 ++ .../get/responses/response200.java | 6 ++ .../post/responses/response200.java | 6 ++ .../fake/delete/responses/response200.java | 6 ++ .../client/paths/fake/get/RequestBody.java | 2 +- .../paths/fake/get/responses/response200.java | 6 ++ .../paths/fake/get/responses/response404.java | 46 ++++++++ .../fake/patch/responses/response200.java | 46 ++++++++ .../client/paths/fake/post/RequestBody.java | 2 +- .../fake/post/responses/response200.java | 6 ++ .../fake/post/responses/response404.java | 33 ++++++ .../get/RequestBody.java | 2 +- .../get/responses/response200.java | 46 ++++++++ .../put/RequestBody.java | 2 +- .../put/responses/response200.java | 6 ++ .../put/RequestBody.java | 2 +- .../put/responses/response200.java | 6 ++ .../put/responses/response200.java | 6 ++ .../patch/responses/response200.java | 46 ++++++++ .../delete/responses/response200.java | 6 ++ .../delete/responses/responsedefault.java | 33 ++++++ .../fakehealth/get/responses/response200.java | 46 ++++++++ .../post/RequestBody.java | 2 +- .../post/responses/response200.java | 6 ++ .../post/RequestBody.java | 2 +- .../post/responses/response200.java | 57 ++++++++++ .../fakejsonformdata/get/RequestBody.java | 2 +- .../get/responses/response200.java | 6 ++ .../fakejsonpatch/patch/RequestBody.java | 2 +- .../patch/responses/response200.java | 6 ++ .../fakejsonwithcharset/post/RequestBody.java | 2 +- .../post/responses/response200.java | 46 ++++++++ .../post/RequestBody.java | 2 +- .../post/responses/response200.java | 46 ++++++++ .../get/responses/response200.java | 46 ++++++++ .../get/responses/response202.java | 46 ++++++++ .../get/responses/response200.java | 46 ++++++++ .../get/responses/response200.java | 6 ++ .../post/RequestBody.java | 2 +- .../post/responses/response200.java | 46 ++++++++ .../fakepemcontenttype/get/RequestBody.java | 2 +- .../get/responses/response200.java | 46 ++++++++ .../post/RequestBody.java | 2 +- .../post/responses/response200.java | 46 ++++++++ .../get/responses/response200.java | 46 ++++++++ .../get/responses/response303.java | 33 ++++++ .../get/responses/response3xx.java | 33 ++++++ .../get/responses/response200.java | 6 ++ .../fakerefsarraymodel/post/RequestBody.java | 2 +- .../post/responses/response200.java | 46 ++++++++ .../post/RequestBody.java | 2 +- .../post/responses/response200.java | 46 ++++++++ .../fakerefsboolean/post/RequestBody.java | 2 +- .../post/responses/response200.java | 46 ++++++++ .../post/RequestBody.java | 2 +- .../post/responses/response200.java | 46 ++++++++ .../paths/fakerefsenum/post/RequestBody.java | 2 +- .../post/responses/response200.java | 46 ++++++++ .../fakerefsmammal/post/RequestBody.java | 2 +- .../post/responses/response200.java | 46 ++++++++ .../fakerefsnumber/post/RequestBody.java | 2 +- .../post/responses/response200.java | 46 ++++++++ .../post/RequestBody.java | 2 +- .../post/responses/response200.java | 46 ++++++++ .../fakerefsstring/post/RequestBody.java | 2 +- .../post/responses/response200.java | 46 ++++++++ .../get/responses/response200.java | 55 ++++++++++ .../put/responses/response200.java | 6 ++ .../post/RequestBody.java | 2 +- .../post/responses/response200.java | 46 ++++++++ .../fakeuploadfile/post/RequestBody.java | 2 +- .../post/responses/response200.java | 46 ++++++++ .../fakeuploadfiles/post/RequestBody.java | 2 +- .../post/responses/response200.java | 46 ++++++++ .../get/responses/response1xx.java | 46 ++++++++ .../get/responses/response200.java | 46 ++++++++ .../get/responses/response2xx.java | 46 ++++++++ .../get/responses/response3xx.java | 46 ++++++++ .../get/responses/response4xx.java | 46 ++++++++ .../get/responses/response5xx.java | 46 ++++++++ .../foo/get/responses/responsedefault.java | 46 ++++++++ .../paths/get/responses/response200.java | 6 ++ .../paths/pet/post/responses/response200.java | 6 ++ .../paths/pet/post/responses/response405.java | 33 ++++++ .../paths/pet/put/responses/response400.java | 33 ++++++ .../paths/pet/put/responses/response404.java | 33 ++++++ .../paths/pet/put/responses/response405.java | 33 ++++++ .../get/responses/response200.java | 6 ++ .../get/responses/response400.java | 33 ++++++ .../get/responses/response200.java | 6 ++ .../get/responses/response400.java | 33 ++++++ .../delete/responses/response400.java | 33 ++++++ .../petpetid/get/responses/response200.java | 57 ++++++++++ .../petpetid/get/responses/response400.java | 33 ++++++ .../petpetid/get/responses/response404.java | 33 ++++++ .../paths/petpetid/post/RequestBody.java | 2 +- .../petpetid/post/responses/response405.java | 33 ++++++ .../petpetiduploadimage/post/RequestBody.java | 2 +- .../post/responses/response200.java | 6 ++ .../get/responses/response200.java | 6 ++ .../paths/storeorder/post/RequestBody.java | 2 +- .../post/responses/response200.java | 57 ++++++++++ .../post/responses/response400.java | 33 ++++++ .../delete/responses/response400.java | 33 ++++++ .../delete/responses/response404.java | 33 ++++++ .../get/responses/response200.java | 57 ++++++++++ .../get/responses/response400.java | 33 ++++++ .../get/responses/response404.java | 33 ++++++ .../client/paths/user/post/RequestBody.java | 2 +- .../user/post/responses/responsedefault.java | 33 ++++++ .../post/responses/responsedefault.java | 33 ++++++ .../post/responses/responsedefault.java | 33 ++++++ .../userlogin/get/responses/response200.java | 57 ++++++++++ .../userlogin/get/responses/response400.java | 33 ++++++ .../get/responses/responsedefault.java | 6 ++ .../delete/responses/response200.java | 6 ++ .../delete/responses/response404.java | 33 ++++++ .../get/responses/response200.java | 57 ++++++++++ .../get/responses/response400.java | 33 ++++++ .../get/responses/response404.java | 33 ++++++ .../paths/userusername/put/RequestBody.java | 2 +- .../put/responses/response400.java | 33 ++++++ .../put/responses/response404.java | 33 ++++++ .../client/response/ResponseDeserializer.java | 4 + .../generators/JavaClientGenerator.java | 7 ++ .../components/requestbodies/RequestBody.hbs | 2 +- .../components/responses/Response.hbs | 83 +++++++++++++++ .../response/ResponseDeserializer.hbs | 4 + 140 files changed, 3489 insertions(+), 35 deletions(-) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/refsuccessdescriptiononly.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/refsuccessfulxmlandjsonarrayofpet.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successdescriptiononly.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successwithjsonapiresponse.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/response404.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/response404.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/responsedefault.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response202.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/response303.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/response3xx.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response1xx.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response2xx.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response3xx.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response4xx.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response5xx.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/responsedefault.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/get/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/response405.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response400.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response404.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response405.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/response400.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/response400.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/response400.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response400.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response404.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/response405.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response400.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/response400.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/response404.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response400.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response404.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/responsedefault.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/responsedefault.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/responsedefault.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response400.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/responsedefault.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/response404.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response400.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response404.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/response400.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/response404.java create mode 100644 src/main/resources/java/src/main/java/packagename/components/responses/Response.hbs diff --git a/samples/client/petstore/java/.openapi-generator/FILES b/samples/client/petstore/java/.openapi-generator/FILES index 96483db3518..0a8da8b56c2 100644 --- a/samples/client/petstore/java/.openapi-generator/FILES +++ b/samples/client/petstore/java/.openapi-generator/FILES @@ -333,13 +333,20 @@ src/main/java/org/openapijsonschematools/client/components/requestbodies/client/ src/main/java/org/openapijsonschematools/client/components/requestbodies/pet/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/components/requestbodies/pet/content/applicationxml/ApplicationxmlSchema.java src/main/java/org/openapijsonschematools/client/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody.java src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody/Headers.java src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody/headers/location/LocationSchema.java +src/main/java/org/openapijsonschematools/client/components/responses/refsuccessdescriptiononly.java +src/main/java/org/openapijsonschematools/client/components/responses/refsuccessfulxmlandjsonarrayofpet.java +src/main/java/org/openapijsonschematools/client/components/responses/successdescriptiononly.java +src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet.java src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.java +src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader.java src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/Headers.java src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/headers/someheader/SomeHeaderSchema.java +src/main/java/org/openapijsonschematools/client/components/responses/successwithjsonapiresponse.java src/main/java/org/openapijsonschematools/client/components/responses/successwithjsonapiresponse/Headers.java src/main/java/org/openapijsonschematools/client/components/responses/successwithjsonapiresponse/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/components/schemas/AbstractStepMessage.java @@ -500,18 +507,22 @@ src/main/java/org/openapijsonschematools/client/mediatype/Encoding.java src/main/java/org/openapijsonschematools/client/mediatype/MediaType.java src/main/java/org/openapijsonschematools/client/parameter/ParameterStyle.java src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/RequestBody.java +src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/HeaderParameters.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/PathParameters.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.java +src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/PathParameters.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/parameters/parameter0/Schema0.java +src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/HeaderParameters.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/PathParameters.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/parameters/parameter0/Schema0.java +src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/HeaderParameters.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/QueryParameters.java @@ -521,6 +532,7 @@ src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/par src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter3/Schema3.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter4/Schema4.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter5/Schema5.java +src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/fake/get/HeaderParameters.java src/main/java/org/openapijsonschematools/client/paths/fake/get/QueryParameters.java @@ -532,63 +544,86 @@ src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parame src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter4/Schema4.java src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter5/Schema5.java src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java +src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/response200.java +src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/response404.java src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/response404/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fake/patch/RequestBody.java +src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/fake/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java +src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/response200.java +src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/response404.java src/main/java/org/openapijsonschematools/client/paths/fake/post/security/FakePostSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.java src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.java +src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/RequestBody.java +src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/PathParameters.java src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.java +src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/response200.java +src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/responsedefault.java +src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.java src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java +src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/response200/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response202.java src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response202/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.java +src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.java src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/parameter0/Schema0.java +src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/CookieParameters.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/HeaderParameters.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/PathParameters.java @@ -614,49 +649,66 @@ src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ab src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/response200/content/applicationxpemfile/ApplicationxpemfileSchema.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.java +src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/response303.java +src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/response3xx.java src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.java +src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.java @@ -664,39 +716,58 @@ src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.java src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.java src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.java +src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/response200/content/applicationoctetstream/ApplicationoctetstreamSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response1xx.java src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response1xx/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response2xx.java src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response2xx/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response3xx.java src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response3xx/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response4xx.java src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response4xx/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response5xx.java src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response5xx/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/foo/get/FooGetServerInfo.java +src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/responsedefault.java src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/responsedefault/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer0.java src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer1.java src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/Variables.java +src/main/java/org/openapijsonschematools/client/paths/get/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/pet/post/RequestBody.java +src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/response200.java +src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/response405.java src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject1.java src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject2.java src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/pet/put/RequestBody.java +src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response400.java +src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response404.java +src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response405.java src/main/java/org/openapijsonschematools/client/paths/pet/put/security/PetPutSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/pet/put/security/PetPutSecurityRequirementObject1.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusServerInfo.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/parameter0/Schema0.java +src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/response200.java +src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/response400.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject1.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject2.java @@ -706,6 +777,8 @@ src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/se src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/parameter0/Schema0.java +src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/response200.java +src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/response400.java src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject1.java src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/HeaderParameters.java @@ -713,19 +786,24 @@ src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PathParame src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/parameter1/Schema1.java +src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/response400.java src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject1.java src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PathParameters.java src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/petpetid/get/parameters/parameter0/Schema0.java +src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response200/content/applicationxml/ApplicationxmlSchema.java +src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response400.java +src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response404.java src/main/java/org/openapijsonschematools/client/paths/petpetid/get/security/PetpetidGetSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PathParameters.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java +src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/response405.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject1.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PathParameters.java @@ -733,38 +811,60 @@ src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/P src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/security/PetpetiduploadimagePostSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/StoreinventoryGetSecurityInfo.java +src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/storeorder/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response200/content/applicationxml/ApplicationxmlSchema.java +src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response400.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/PathParameters.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/parameters/parameter0/Schema0.java +src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/response400.java +src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/response404.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/PathParameters.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/parameter0/Schema0.java +src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response200/content/applicationxml/ApplicationxmlSchema.java +src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response400.java +src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response404.java src/main/java/org/openapijsonschematools/client/paths/user/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/user/post/responses/responsedefault.java src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/RequestBody.java +src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/responsedefault.java src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/RequestBody.java +src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/responsedefault.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/parameter1/Schema1.java +src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200/Headers.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200/content/applicationxml/ApplicationxmlSchema.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200/headers/xexpiresafter/XExpiresAfterSchema.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200/headers/xratelimit/content/applicationjson/XRateLimitSchema.java +src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response400.java +src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/responsedefault.java src/main/java/org/openapijsonschematools/client/paths/userusername/delete/PathParameters.java +src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/response200.java +src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/response404.java src/main/java/org/openapijsonschematools/client/paths/userusername/get/PathParameters.java +src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response200.java src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response200/content/applicationxml/ApplicationxmlSchema.java +src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response400.java +src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response404.java src/main/java/org/openapijsonschematools/client/paths/userusername/put/PathParameters.java src/main/java/org/openapijsonschematools/client/paths/userusername/put/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/response400.java +src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/response404.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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Client.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Client.java index 5ed7c573168..8af71e06908 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Client.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Client.java @@ -6,9 +6,9 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.components.requestbodies.client.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Pet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Pet.java index e7f05d71175..8c27541c605 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Pet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Pet.java @@ -6,10 +6,10 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.components.requestbodies.pet.content.applicationjson.ApplicationjsonSchema; import org.openapijsonschematools.client.components.requestbodies.pet.content.applicationxml.ApplicationxmlSchema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/UserArray.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/UserArray.java index 171cc30936a..5f8287ec15c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/UserArray.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/UserArray.java @@ -6,9 +6,9 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.components.requestbodies.userarray.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody.java new file mode 100644 index 00000000000..7e3964d3897 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class HeadersWithNoBody { + + public static class HeadersWithNoBody1 extends ResponseDeserializer { + public HeadersWithNoBody1() { + super( + Map.ofEntries( + ) + ); + } + + @Override + public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/refsuccessdescriptiononly.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/refsuccessdescriptiononly.java new file mode 100644 index 00000000000..83d923fc410 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/refsuccessdescriptiononly.java @@ -0,0 +1,6 @@ +package org.openapijsonschematools.client.; + + +public class RefSuccessDescriptionOnly extends successdescriptiononly { + public static class RefSuccessDescriptionOnly1 extends successdescriptiononly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/refsuccessfulxmlandjsonarrayofpet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/refsuccessfulxmlandjsonarrayofpet.java new file mode 100644 index 00000000000..843c01181fa --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/refsuccessfulxmlandjsonarrayofpet.java @@ -0,0 +1,6 @@ +package org.openapijsonschematools.client.; + + +public class RefSuccessfulXmlAndJsonArrayOfPet extends successfulxmlandjsonarrayofpet { + public static class RefSuccessfulXmlAndJsonArrayOfPet1 extends successfulxmlandjsonarrayofpet1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successdescriptiononly.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successdescriptiononly.java new file mode 100644 index 00000000000..cd02f0d548d --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successdescriptiononly.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class SuccessDescriptionOnly { + + public static class SuccessDescriptionOnly1 extends ResponseDeserializer { + public SuccessDescriptionOnly1() { + super( + Map.ofEntries( + ) + ); + } + + @Override + public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet.java new file mode 100644 index 00000000000..1eb6071f4f6 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet.java @@ -0,0 +1,57 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.components.responses.successfulxmlandjsonarrayofpet.content.applicationxml.ApplicationxmlSchema; +import org.openapijsonschematools.client.components.responses.successfulxmlandjsonarrayofpet.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class SuccessfulXmlAndJsonArrayOfPet { + + public static class ApplicationxmlMediaType extends MediaType { + public ApplicationxmlMediaType() { + super(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); + } + } + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationxmlResponseBody, ApplicationjsonResponseBody {} + public record ApplicationxmlResponseBody(ApplicationxmlSchema.ApplicationxmlSchema1Boxed body) implements SealedResponseBody { } + public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApplicationjsonSchema1Boxed body) implements SealedResponseBody { } + + public static class SuccessfulXmlAndJsonArrayOfPet1 extends ResponseDeserializer { + public SuccessfulXmlAndJsonArrayOfPet1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/xml", new ApplicationxmlMediaType()), + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/xml".equals(contentType)) { + // todo implement deserialization + } else if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader.java new file mode 100644 index 00000000000..733a3dfbc87 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.components.responses.successinlinecontentandheader.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class SuccessInlineContentAndHeader { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApplicationjsonSchema1Boxed body) implements SealedResponseBody { } + + public static class SuccessInlineContentAndHeader1 extends ResponseDeserializer { + public SuccessInlineContentAndHeader1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successwithjsonapiresponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successwithjsonapiresponse.java new file mode 100644 index 00000000000..1980e50365e --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successwithjsonapiresponse.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.components.responses.successwithjsonapiresponse.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class SuccessWithJsonApiResponse { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApiResponseSchema1Boxed body) implements SealedResponseBody { } + + public static class SuccessWithJsonApiResponse1 extends ResponseDeserializer { + public SuccessWithJsonApiResponse1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/response200.java new file mode 100644 index 00000000000..b5a078d1de0 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/response200.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.anotherfakedummy.patch.responses.response200.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model200 { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.Client1Boxed body) implements SealedResponseBody { } + + public static class Model2001 extends ResponseDeserializer { + public Model2001() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/response200.java new file mode 100644 index 00000000000..68ab7bb8f18 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/response200.java @@ -0,0 +1,6 @@ +package org.openapijsonschematools.client.; + + +public class Model200 extends successdescriptiononly { + public static class Model2001 extends successdescriptiononly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/response200.java new file mode 100644 index 00000000000..68ab7bb8f18 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/response200.java @@ -0,0 +1,6 @@ +package org.openapijsonschematools.client.; + + +public class Model200 extends successdescriptiononly { + public static class Model2001 extends successdescriptiononly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/response200.java new file mode 100644 index 00000000000..68ab7bb8f18 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/response200.java @@ -0,0 +1,6 @@ +package org.openapijsonschematools.client.; + + +public class Model200 extends successdescriptiononly { + public static class Model2001 extends successdescriptiononly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/response200.java new file mode 100644 index 00000000000..68ab7bb8f18 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/response200.java @@ -0,0 +1,6 @@ +package org.openapijsonschematools.client.; + + +public class Model200 extends successdescriptiononly { + public static class Model2001 extends successdescriptiononly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/RequestBody.java index 1770a54771e..ed2813aed06 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/RequestBody.java @@ -6,9 +6,9 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fake.get.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/response200.java new file mode 100644 index 00000000000..68ab7bb8f18 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/response200.java @@ -0,0 +1,6 @@ +package org.openapijsonschematools.client.; + + +public class Model200 extends successdescriptiononly { + public static class Model2001 extends successdescriptiononly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/response404.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/response404.java new file mode 100644 index 00000000000..46336f22edb --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/response404.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fake.get.responses.response404.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model404 { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.MapJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class Model4041 extends ResponseDeserializer { + public Model4041() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/response200.java new file mode 100644 index 00000000000..f71c2ec51ec --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/response200.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fake.patch.responses.response200.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model200 { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.Client1Boxed body) implements SealedResponseBody { } + + public static class Model2001 extends ResponseDeserializer { + public Model2001() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/RequestBody.java index 47b807cfbda..525bf1df808 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/RequestBody.java @@ -6,9 +6,9 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fake.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/response200.java new file mode 100644 index 00000000000..68ab7bb8f18 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/response200.java @@ -0,0 +1,6 @@ +package org.openapijsonschematools.client.; + + +public class Model200 extends successdescriptiononly { + public static class Model2001 extends successdescriptiononly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/response404.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/response404.java new file mode 100644 index 00000000000..81127e6b03b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/response404.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model404 { + + public static class Model4041 extends ResponseDeserializer { + public Model4041() { + super( + Map.ofEntries( + ) + ); + } + + @Override + public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/RequestBody.java index cf5ce1e7432..a39fc233206 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/RequestBody.java @@ -6,9 +6,9 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.requestbody.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/response200.java new file mode 100644 index 00000000000..24d2793532a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/response200.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.responses.response200.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model200 { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.AdditionalPropertiesWithArrayOfEnums1Boxed body) implements SealedResponseBody { } + + public static class Model2001 extends ResponseDeserializer { + public Model2001() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/RequestBody.java index ca43860edf8..0d867d50516 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/RequestBody.java @@ -6,9 +6,9 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.requestbody.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/response200.java new file mode 100644 index 00000000000..68ab7bb8f18 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/response200.java @@ -0,0 +1,6 @@ +package org.openapijsonschematools.client.; + + +public class Model200 extends successdescriptiononly { + public static class Model2001 extends successdescriptiononly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/RequestBody.java index 105c36fcf3a..2d91277b9db 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/RequestBody.java @@ -6,9 +6,9 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.requestbody.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/response200.java new file mode 100644 index 00000000000..68ab7bb8f18 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/response200.java @@ -0,0 +1,6 @@ +package org.openapijsonschematools.client.; + + +public class Model200 extends successdescriptiononly { + public static class Model2001 extends successdescriptiononly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/response200.java new file mode 100644 index 00000000000..68ab7bb8f18 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/response200.java @@ -0,0 +1,6 @@ +package org.openapijsonschematools.client.; + + +public class Model200 extends successdescriptiononly { + public static class Model2001 extends successdescriptiononly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/response200.java new file mode 100644 index 00000000000..c169743604f --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/response200.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakeclassnametest.patch.responses.response200.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model200 { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.Client1Boxed body) implements SealedResponseBody { } + + public static class Model2001 extends ResponseDeserializer { + public Model2001() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/response200.java new file mode 100644 index 00000000000..68ab7bb8f18 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/response200.java @@ -0,0 +1,6 @@ +package org.openapijsonschematools.client.; + + +public class Model200 extends successdescriptiononly { + public static class Model2001 extends successdescriptiononly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/responsedefault.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/responsedefault.java new file mode 100644 index 00000000000..5073cd35112 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/responsedefault.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class ModelDefault { + + public static class ModelDefault1 extends ResponseDeserializer { + public ModelDefault1() { + super( + Map.ofEntries( + ) + ); + } + + @Override + public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/response200.java new file mode 100644 index 00000000000..fad38997881 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/response200.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakehealth.get.responses.response200.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model200 { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.HealthCheckResult1Boxed body) implements SealedResponseBody { } + + public static class Model2001 extends ResponseDeserializer { + public Model2001() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/RequestBody.java index e6bba1b26f6..64541860aae 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/RequestBody.java @@ -6,9 +6,9 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.requestbody.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/response200.java new file mode 100644 index 00000000000..68ab7bb8f18 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/response200.java @@ -0,0 +1,6 @@ +package org.openapijsonschematools.client.; + + +public class Model200 extends successdescriptiononly { + public static class Model2001 extends successdescriptiononly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/RequestBody.java index 97504588a6d..bbe59e5d056 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/RequestBody.java @@ -6,10 +6,10 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.requestbody.content.applicationjson.ApplicationjsonSchema; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.requestbody.content.multipartformdata.MultipartformdataSchema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200.java new file mode 100644 index 00000000000..46388844a7d --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200.java @@ -0,0 +1,57 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.response200.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.response200.content.multipartformdata.MultipartformdataSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model200 { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + + public static class MultipartformdataMediaType extends MediaType { + public MultipartformdataMediaType() { + super(MultipartformdataSchema.MultipartformdataSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody, MultipartformdataResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApplicationjsonSchema1Boxed body) implements SealedResponseBody { } + public record MultipartformdataResponseBody(MultipartformdataSchema.MultipartformdataSchema1Boxed body) implements SealedResponseBody { } + + public static class Model2001 extends ResponseDeserializer { + public Model2001() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()), + new AbstractMap.SimpleEntry<>("multipart/form-data", new MultipartformdataMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } else if ("multipart/form-data".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/RequestBody.java index 9e031d48900..496a521c202 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/RequestBody.java @@ -6,9 +6,9 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakejsonformdata.get.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/response200.java new file mode 100644 index 00000000000..68ab7bb8f18 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/response200.java @@ -0,0 +1,6 @@ +package org.openapijsonschematools.client.; + + +public class Model200 extends successdescriptiononly { + public static class Model2001 extends successdescriptiononly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/RequestBody.java index 789f8066e69..f1c2e4653e3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/RequestBody.java @@ -6,9 +6,9 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakejsonpatch.patch.requestbody.content.applicationjsonpatchjson.ApplicationjsonpatchjsonSchema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/response200.java new file mode 100644 index 00000000000..68ab7bb8f18 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/response200.java @@ -0,0 +1,6 @@ +package org.openapijsonschematools.client.; + + +public class Model200 extends successdescriptiononly { + public static class Model2001 extends successdescriptiononly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/RequestBody.java index 864fe1f705e..79dc6339111 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/RequestBody.java @@ -6,9 +6,9 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.requestbody.content.applicationjsoncharsetutf8.Applicationjsoncharsetutf8Schema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/response200.java new file mode 100644 index 00000000000..43114caf2dd --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/response200.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.responses.response200.content.applicationjsoncharsetutf8.Applicationjsoncharsetutf8Schema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model200 { + + public static class Applicationjsoncharsetutf8MediaType extends MediaType { + public Applicationjsoncharsetutf8MediaType() { + super(Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits Applicationjsoncharsetutf8ResponseBody {} + public record Applicationjsoncharsetutf8ResponseBody(Applicationjsoncharsetutf8Schema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class Model2001 extends ResponseDeserializer { + public Model2001() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json; charset=utf-8", new Applicationjsoncharsetutf8MediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json; charset=utf-8".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/RequestBody.java index 94d00f7f725..8f20910a812 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/RequestBody.java @@ -6,10 +6,10 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.requestbody.content.applicationjson.ApplicationjsonSchema; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.requestbody.content.multipartformdata.MultipartformdataSchema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/response200.java new file mode 100644 index 00000000000..394d4ded439 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/response200.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.responses.response200.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model200 { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class Model2001 extends ResponseDeserializer { + public Model2001() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response200.java new file mode 100644 index 00000000000..6e9319ab553 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response200.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.response200.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model200 { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class Model2001 extends ResponseDeserializer { + public Model2001() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response202.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response202.java new file mode 100644 index 00000000000..4f14e365bd4 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response202.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.response202.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model202 { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class Model2021 extends ResponseDeserializer { + public Model2021() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/response200.java new file mode 100644 index 00000000000..d0ff4764977 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/response200.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.responses.response200.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model200 { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class Model2001 extends ResponseDeserializer { + public Model2001() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/response200.java new file mode 100644 index 00000000000..68ab7bb8f18 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/response200.java @@ -0,0 +1,6 @@ +package org.openapijsonschematools.client.; + + +public class Model200 extends successdescriptiononly { + public static class Model2001 extends successdescriptiononly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/RequestBody.java index f1260e254ba..565f4b9b9fe 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/RequestBody.java @@ -6,9 +6,9 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.requestbody.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/response200.java new file mode 100644 index 00000000000..bdb9e91740f --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/response200.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.responses.response200.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model200 { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class Model2001 extends ResponseDeserializer { + public Model2001() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/RequestBody.java index e078f34b990..bf5da038e3e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/RequestBody.java @@ -6,9 +6,9 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakepemcontenttype.get.requestbody.content.applicationxpemfile.ApplicationxpemfileSchema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/response200.java new file mode 100644 index 00000000000..3bd7a52fc49 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/response200.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakepemcontenttype.get.responses.response200.content.applicationxpemfile.ApplicationxpemfileSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model200 { + + public static class ApplicationxpemfileMediaType extends MediaType { + public ApplicationxpemfileMediaType() { + super(ApplicationxpemfileSchema.ApplicationxpemfileSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationxpemfileResponseBody {} + public record ApplicationxpemfileResponseBody(ApplicationxpemfileSchema.StringJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class Model2001 extends ResponseDeserializer { + public Model2001() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/x-pem-file", new ApplicationxpemfileMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/x-pem-file".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/RequestBody.java index 853cbba21b6..65e168be4b6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/RequestBody.java @@ -6,9 +6,9 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.requestbody.content.multipartformdata.MultipartformdataSchema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/response200.java new file mode 100644 index 00000000000..d0905a254ee --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/response200.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.responses.response200.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model200 { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApiResponseSchema1Boxed body) implements SealedResponseBody { } + + public static class Model2001 extends ResponseDeserializer { + public Model2001() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/response200.java new file mode 100644 index 00000000000..798ca715054 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/response200.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.responses.response200.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model200 { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class Model2001 extends ResponseDeserializer { + public Model2001() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/response303.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/response303.java new file mode 100644 index 00000000000..74a62488734 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/response303.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model303 { + + public static class Model3031 extends ResponseDeserializer { + public Model3031() { + super( + Map.ofEntries( + ) + ); + } + + @Override + public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/response3xx.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/response3xx.java new file mode 100644 index 00000000000..8be0e7ef121 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/response3xx.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model3XX { + + public static class Model3XX1 extends ResponseDeserializer { + public Model3XX1() { + super( + Map.ofEntries( + ) + ); + } + + @Override + public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/response200.java new file mode 100644 index 00000000000..68ab7bb8f18 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/response200.java @@ -0,0 +1,6 @@ +package org.openapijsonschematools.client.; + + +public class Model200 extends successdescriptiononly { + public static class Model2001 extends successdescriptiononly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/RequestBody.java index 8ad686867e2..94d3de43de8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/RequestBody.java @@ -6,9 +6,9 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.requestbody.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/response200.java new file mode 100644 index 00000000000..c1d74be4448 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/response200.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.responses.response200.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model200 { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnimalFarm1Boxed body) implements SealedResponseBody { } + + public static class Model2001 extends ResponseDeserializer { + public Model2001() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/RequestBody.java index 0b9bea9b21d..267c368669d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/RequestBody.java @@ -6,9 +6,9 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.requestbody.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/response200.java new file mode 100644 index 00000000000..fa7bc6bb508 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/response200.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.responses.response200.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model200 { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.ArrayOfEnums1Boxed body) implements SealedResponseBody { } + + public static class Model2001 extends ResponseDeserializer { + public Model2001() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/RequestBody.java index 9737d312fef..ea5f10d1058 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/RequestBody.java @@ -6,9 +6,9 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakerefsboolean.post.requestbody.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/response200.java new file mode 100644 index 00000000000..4baea87cb68 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/response200.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakerefsboolean.post.responses.response200.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model200 { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.BooleanJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class Model2001 extends ResponseDeserializer { + public Model2001() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/RequestBody.java index 6dd6ecf2791..114d1ff1f24 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/RequestBody.java @@ -6,9 +6,9 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.requestbody.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/response200.java new file mode 100644 index 00000000000..fc38405f9d1 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/response200.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.responses.response200.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model200 { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.ComposedOneOfDifferentTypes1Boxed body) implements SealedResponseBody { } + + public static class Model2001 extends ResponseDeserializer { + public Model2001() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/RequestBody.java index 6f214557b85..63c894cc979 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/RequestBody.java @@ -6,9 +6,9 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakerefsenum.post.requestbody.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/response200.java new file mode 100644 index 00000000000..425f6541fa4 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/response200.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakerefsenum.post.responses.response200.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model200 { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.StringEnum1Boxed body) implements SealedResponseBody { } + + public static class Model2001 extends ResponseDeserializer { + public Model2001() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/RequestBody.java index 6b3bc74434e..3f13d84d40f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/RequestBody.java @@ -6,9 +6,9 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakerefsmammal.post.requestbody.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/response200.java new file mode 100644 index 00000000000..ee26cfbdf16 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/response200.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakerefsmammal.post.responses.response200.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model200 { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.Mammal1Boxed body) implements SealedResponseBody { } + + public static class Model2001 extends ResponseDeserializer { + public Model2001() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/RequestBody.java index d399c2fe96a..9777c890df9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/RequestBody.java @@ -6,9 +6,9 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakerefsnumber.post.requestbody.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/response200.java new file mode 100644 index 00000000000..cb61351de59 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/response200.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakerefsnumber.post.responses.response200.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model200 { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.NumberWithValidations1Boxed body) implements SealedResponseBody { } + + public static class Model2001 extends ResponseDeserializer { + public Model2001() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/RequestBody.java index c80c5c5037b..c34ef6008cc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/RequestBody.java @@ -6,9 +6,9 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.requestbody.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/response200.java new file mode 100644 index 00000000000..52e0fce0117 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/response200.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.responses.response200.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model200 { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.ObjectModelWithRefProps1Boxed body) implements SealedResponseBody { } + + public static class Model2001 extends ResponseDeserializer { + public Model2001() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/RequestBody.java index ea9d7a506a4..7fbccaa5ffe 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/RequestBody.java @@ -6,9 +6,9 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakerefsstring.post.requestbody.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/response200.java new file mode 100644 index 00000000000..4b544020368 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/response200.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakerefsstring.post.responses.response200.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model200 { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.StringJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class Model2001 extends ResponseDeserializer { + public Model2001() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/response200.java new file mode 100644 index 00000000000..cb845b54cc1 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/response200.java @@ -0,0 +1,55 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model200 { + + public static class ApplicationjsonMediaType extends MediaType<> { + public ApplicationjsonMediaType() { + super(); + } + } + + public static class ApplicationxmlMediaType extends MediaType<> { + public ApplicationxmlMediaType() { + super(); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody, ApplicationxmlResponseBody {} + public record ApplicationjsonResponseBody( body) implements SealedResponseBody { } + public record ApplicationxmlResponseBody( body) implements SealedResponseBody { } + + public static class Model2001 extends ResponseDeserializer { + public Model2001() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()), + new AbstractMap.SimpleEntry<>("application/xml", new ApplicationxmlMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } else if ("application/xml".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/response200.java new file mode 100644 index 00000000000..68ab7bb8f18 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/response200.java @@ -0,0 +1,6 @@ +package org.openapijsonschematools.client.; + + +public class Model200 extends successdescriptiononly { + public static class Model2001 extends successdescriptiononly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/RequestBody.java index 2647a67b8aa..b005ccc3eec 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/RequestBody.java @@ -6,9 +6,9 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.requestbody.content.applicationoctetstream.ApplicationoctetstreamSchema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/response200.java new file mode 100644 index 00000000000..c721a427127 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/response200.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.responses.response200.content.applicationoctetstream.ApplicationoctetstreamSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model200 { + + public static class ApplicationoctetstreamMediaType extends MediaType { + public ApplicationoctetstreamMediaType() { + super(ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationoctetstreamResponseBody {} + public record ApplicationoctetstreamResponseBody(ApplicationoctetstreamSchema.StringJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class Model2001 extends ResponseDeserializer { + public Model2001() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/octet-stream", new ApplicationoctetstreamMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/octet-stream".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/RequestBody.java index 706e7c74fbc..e4c67882895 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/RequestBody.java @@ -6,9 +6,9 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakeuploadfile.post.requestbody.content.multipartformdata.MultipartformdataSchema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/response200.java new file mode 100644 index 00000000000..d9a165b9d04 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/response200.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakeuploadfile.post.responses.response200.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model200 { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApiResponseSchema1Boxed body) implements SealedResponseBody { } + + public static class Model2001 extends ResponseDeserializer { + public Model2001() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/RequestBody.java index dddb18e6b8c..5b81525ad3f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/RequestBody.java @@ -6,9 +6,9 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakeuploadfiles.post.requestbody.content.multipartformdata.MultipartformdataSchema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/response200.java new file mode 100644 index 00000000000..4ff62deaa4b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/response200.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakeuploadfiles.post.responses.response200.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model200 { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApiResponseSchema1Boxed body) implements SealedResponseBody { } + + public static class Model2001 extends ResponseDeserializer { + public Model2001() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response1xx.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response1xx.java new file mode 100644 index 00000000000..92c76caa998 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response1xx.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.response1xx.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model1XX { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class Model1XX1 extends ResponseDeserializer { + public Model1XX1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response200.java new file mode 100644 index 00000000000..dbc27b5763d --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response200.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.response200.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model200 { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class Model2001 extends ResponseDeserializer { + public Model2001() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response2xx.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response2xx.java new file mode 100644 index 00000000000..3ca92c0ab0c --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response2xx.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.response2xx.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model2XX { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class Model2XX1 extends ResponseDeserializer { + public Model2XX1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response3xx.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response3xx.java new file mode 100644 index 00000000000..e0b446aaa85 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response3xx.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.response3xx.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model3XX { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class Model3XX1 extends ResponseDeserializer { + public Model3XX1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response4xx.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response4xx.java new file mode 100644 index 00000000000..3b65a84679f --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response4xx.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.response4xx.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model4XX { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class Model4XX1 extends ResponseDeserializer { + public Model4XX1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response5xx.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response5xx.java new file mode 100644 index 00000000000..89f9f58d770 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response5xx.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.response5xx.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model5XX { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class Model5XX1 extends ResponseDeserializer { + public Model5XX1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/responsedefault.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/responsedefault.java new file mode 100644 index 00000000000..86e77c6b7b7 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/responsedefault.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.foo.get.responses.responsedefault.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class ModelDefault { + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApplicationjsonSchema1Boxed body) implements SealedResponseBody { } + + public static class ModelDefault1 extends ResponseDeserializer { + public ModelDefault1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/get/responses/response200.java new file mode 100644 index 00000000000..68ab7bb8f18 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/get/responses/response200.java @@ -0,0 +1,6 @@ +package org.openapijsonschematools.client.; + + +public class Model200 extends successdescriptiononly { + public static class Model2001 extends successdescriptiononly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/response200.java new file mode 100644 index 00000000000..68ab7bb8f18 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/response200.java @@ -0,0 +1,6 @@ +package org.openapijsonschematools.client.; + + +public class Model200 extends successdescriptiononly { + public static class Model2001 extends successdescriptiononly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/response405.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/response405.java new file mode 100644 index 00000000000..522cfa75e50 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/response405.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model405 { + + public static class Model4051 extends ResponseDeserializer { + public Model4051() { + super( + Map.ofEntries( + ) + ); + } + + @Override + public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response400.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response400.java new file mode 100644 index 00000000000..e1cbe5d71b3 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response400.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model400 { + + public static class Model4001 extends ResponseDeserializer { + public Model4001() { + super( + Map.ofEntries( + ) + ); + } + + @Override + public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response404.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response404.java new file mode 100644 index 00000000000..81127e6b03b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response404.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model404 { + + public static class Model4041 extends ResponseDeserializer { + public Model4041() { + super( + Map.ofEntries( + ) + ); + } + + @Override + public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response405.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response405.java new file mode 100644 index 00000000000..522cfa75e50 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response405.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model405 { + + public static class Model4051 extends ResponseDeserializer { + public Model4051() { + super( + Map.ofEntries( + ) + ); + } + + @Override + public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/response200.java new file mode 100644 index 00000000000..3008d7d8ab4 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/response200.java @@ -0,0 +1,6 @@ +package org.openapijsonschematools.client.; + + +public class Model200 extends successfulxmlandjsonarrayofpet { + public static class Model2001 extends successfulxmlandjsonarrayofpet1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/response400.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/response400.java new file mode 100644 index 00000000000..e1cbe5d71b3 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/response400.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model400 { + + public static class Model4001 extends ResponseDeserializer { + public Model4001() { + super( + Map.ofEntries( + ) + ); + } + + @Override + public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/response200.java new file mode 100644 index 00000000000..9b9eb64ada0 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/response200.java @@ -0,0 +1,6 @@ +package org.openapijsonschematools.client.; + + +public class Model200 extends refsuccessfulxmlandjsonarrayofpet { + public static class Model2001 extends refsuccessfulxmlandjsonarrayofpet1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/response400.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/response400.java new file mode 100644 index 00000000000..e1cbe5d71b3 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/response400.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model400 { + + public static class Model4001 extends ResponseDeserializer { + public Model4001() { + super( + Map.ofEntries( + ) + ); + } + + @Override + public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/response400.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/response400.java new file mode 100644 index 00000000000..e1cbe5d71b3 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/response400.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model400 { + + public static class Model4001 extends ResponseDeserializer { + public Model4001() { + super( + Map.ofEntries( + ) + ); + } + + @Override + public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response200.java new file mode 100644 index 00000000000..1f218b786bd --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response200.java @@ -0,0 +1,57 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.petpetid.get.responses.response200.content.applicationxml.ApplicationxmlSchema; +import org.openapijsonschematools.client.paths.petpetid.get.responses.response200.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model200 { + + public static class ApplicationxmlMediaType extends MediaType { + public ApplicationxmlMediaType() { + super(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); + } + } + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationxmlResponseBody, ApplicationjsonResponseBody {} + public record ApplicationxmlResponseBody(ApplicationxmlSchema.Pet1Boxed body) implements SealedResponseBody { } + public record ApplicationjsonResponseBody(ApplicationjsonSchema.Pet1Boxed body) implements SealedResponseBody { } + + public static class Model2001 extends ResponseDeserializer { + public Model2001() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/xml", new ApplicationxmlMediaType()), + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/xml".equals(contentType)) { + // todo implement deserialization + } else if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response400.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response400.java new file mode 100644 index 00000000000..e1cbe5d71b3 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response400.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model400 { + + public static class Model4001 extends ResponseDeserializer { + public Model4001() { + super( + Map.ofEntries( + ) + ); + } + + @Override + public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response404.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response404.java new file mode 100644 index 00000000000..81127e6b03b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response404.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model404 { + + public static class Model4041 extends ResponseDeserializer { + public Model4041() { + super( + Map.ofEntries( + ) + ); + } + + @Override + public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/RequestBody.java index 3f9abb1b8c7..ca5f0ae57ec 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/RequestBody.java @@ -6,9 +6,9 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.petpetid.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/response405.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/response405.java new file mode 100644 index 00000000000..522cfa75e50 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/response405.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model405 { + + public static class Model4051 extends ResponseDeserializer { + public Model4051() { + super( + Map.ofEntries( + ) + ); + } + + @Override + public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/RequestBody.java index 13c2df0a56a..bc326ccbc66 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/RequestBody.java @@ -6,9 +6,9 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.requestbody.content.multipartformdata.MultipartformdataSchema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/response200.java new file mode 100644 index 00000000000..ce8a9a3da7e --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/response200.java @@ -0,0 +1,6 @@ +package org.openapijsonschematools.client.; + + +public class Model200 extends successwithjsonapiresponse { + public static class Model2001 extends successwithjsonapiresponse1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/response200.java new file mode 100644 index 00000000000..2da2b869c85 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/response200.java @@ -0,0 +1,6 @@ +package org.openapijsonschematools.client.; + + +public class Model200 extends successinlinecontentandheader { + public static class Model2001 extends successinlinecontentandheader1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/RequestBody.java index 90a887dfbe0..903504646bc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/RequestBody.java @@ -6,9 +6,9 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.storeorder.post.requestbody.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response200.java new file mode 100644 index 00000000000..df171f60de3 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response200.java @@ -0,0 +1,57 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.storeorder.post.responses.response200.content.applicationxml.ApplicationxmlSchema; +import org.openapijsonschematools.client.paths.storeorder.post.responses.response200.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model200 { + + public static class ApplicationxmlMediaType extends MediaType { + public ApplicationxmlMediaType() { + super(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); + } + } + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationxmlResponseBody, ApplicationjsonResponseBody {} + public record ApplicationxmlResponseBody(ApplicationxmlSchema.Order1Boxed body) implements SealedResponseBody { } + public record ApplicationjsonResponseBody(ApplicationjsonSchema.Order1Boxed body) implements SealedResponseBody { } + + public static class Model2001 extends ResponseDeserializer { + public Model2001() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/xml", new ApplicationxmlMediaType()), + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/xml".equals(contentType)) { + // todo implement deserialization + } else if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response400.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response400.java new file mode 100644 index 00000000000..e1cbe5d71b3 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response400.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model400 { + + public static class Model4001 extends ResponseDeserializer { + public Model4001() { + super( + Map.ofEntries( + ) + ); + } + + @Override + public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/response400.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/response400.java new file mode 100644 index 00000000000..e1cbe5d71b3 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/response400.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model400 { + + public static class Model4001 extends ResponseDeserializer { + public Model4001() { + super( + Map.ofEntries( + ) + ); + } + + @Override + public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/response404.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/response404.java new file mode 100644 index 00000000000..81127e6b03b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/response404.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model404 { + + public static class Model4041 extends ResponseDeserializer { + public Model4041() { + super( + Map.ofEntries( + ) + ); + } + + @Override + public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response200.java new file mode 100644 index 00000000000..536323aff59 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response200.java @@ -0,0 +1,57 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.response200.content.applicationxml.ApplicationxmlSchema; +import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.response200.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model200 { + + public static class ApplicationxmlMediaType extends MediaType { + public ApplicationxmlMediaType() { + super(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); + } + } + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationxmlResponseBody, ApplicationjsonResponseBody {} + public record ApplicationxmlResponseBody(ApplicationxmlSchema.Order1Boxed body) implements SealedResponseBody { } + public record ApplicationjsonResponseBody(ApplicationjsonSchema.Order1Boxed body) implements SealedResponseBody { } + + public static class Model2001 extends ResponseDeserializer { + public Model2001() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/xml", new ApplicationxmlMediaType()), + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/xml".equals(contentType)) { + // todo implement deserialization + } else if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response400.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response400.java new file mode 100644 index 00000000000..e1cbe5d71b3 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response400.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model400 { + + public static class Model4001 extends ResponseDeserializer { + public Model4001() { + super( + Map.ofEntries( + ) + ); + } + + @Override + public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response404.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response404.java new file mode 100644 index 00000000000..81127e6b03b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response404.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model404 { + + public static class Model4041 extends ResponseDeserializer { + public Model4041() { + super( + Map.ofEntries( + ) + ); + } + + @Override + public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/RequestBody.java index 4ad27611323..a6aa0dc7439 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/RequestBody.java @@ -6,9 +6,9 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.user.post.requestbody.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/responsedefault.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/responsedefault.java new file mode 100644 index 00000000000..5073cd35112 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/responsedefault.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class ModelDefault { + + public static class ModelDefault1 extends ResponseDeserializer { + public ModelDefault1() { + super( + Map.ofEntries( + ) + ); + } + + @Override + public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/responsedefault.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/responsedefault.java new file mode 100644 index 00000000000..5073cd35112 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/responsedefault.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class ModelDefault { + + public static class ModelDefault1 extends ResponseDeserializer { + public ModelDefault1() { + super( + Map.ofEntries( + ) + ); + } + + @Override + public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/responsedefault.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/responsedefault.java new file mode 100644 index 00000000000..5073cd35112 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/responsedefault.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class ModelDefault { + + public static class ModelDefault1 extends ResponseDeserializer { + public ModelDefault1() { + super( + Map.ofEntries( + ) + ); + } + + @Override + public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200.java new file mode 100644 index 00000000000..c3246514459 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200.java @@ -0,0 +1,57 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.userlogin.get.responses.response200.content.applicationxml.ApplicationxmlSchema; +import org.openapijsonschematools.client.paths.userlogin.get.responses.response200.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model200 { + + public static class ApplicationxmlMediaType extends MediaType { + public ApplicationxmlMediaType() { + super(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); + } + } + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationxmlResponseBody, ApplicationjsonResponseBody {} + public record ApplicationxmlResponseBody(ApplicationxmlSchema.StringJsonSchema1Boxed body) implements SealedResponseBody { } + public record ApplicationjsonResponseBody(ApplicationjsonSchema.StringJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class Model2001 extends ResponseDeserializer { + public Model2001() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/xml", new ApplicationxmlMediaType()), + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/xml".equals(contentType)) { + // todo implement deserialization + } else if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response400.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response400.java new file mode 100644 index 00000000000..e1cbe5d71b3 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response400.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model400 { + + public static class Model4001 extends ResponseDeserializer { + public Model4001() { + super( + Map.ofEntries( + ) + ); + } + + @Override + public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/responsedefault.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/responsedefault.java new file mode 100644 index 00000000000..e3ad5c26346 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/responsedefault.java @@ -0,0 +1,6 @@ +package org.openapijsonschematools.client.; + + +public class ModelDefault extends refsuccessdescriptiononly { + public static class ModelDefault1 extends refsuccessdescriptiononly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/response200.java new file mode 100644 index 00000000000..68ab7bb8f18 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/response200.java @@ -0,0 +1,6 @@ +package org.openapijsonschematools.client.; + + +public class Model200 extends successdescriptiononly { + public static class Model2001 extends successdescriptiononly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/response404.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/response404.java new file mode 100644 index 00000000000..81127e6b03b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/response404.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model404 { + + public static class Model4041 extends ResponseDeserializer { + public Model4041() { + super( + Map.ofEntries( + ) + ); + } + + @Override + public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response200.java new file mode 100644 index 00000000000..306f73b42ad --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response200.java @@ -0,0 +1,57 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.userusername.get.responses.response200.content.applicationxml.ApplicationxmlSchema; +import org.openapijsonschematools.client.paths.userusername.get.responses.response200.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model200 { + + public static class ApplicationxmlMediaType extends MediaType { + public ApplicationxmlMediaType() { + super(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); + } + } + + public static class ApplicationjsonMediaType extends MediaType { + public ApplicationjsonMediaType() { + super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + } + public sealed interface SealedResponseBody permits ApplicationxmlResponseBody, ApplicationjsonResponseBody {} + public record ApplicationxmlResponseBody(ApplicationxmlSchema.User1Boxed body) implements SealedResponseBody { } + public record ApplicationjsonResponseBody(ApplicationjsonSchema.User1Boxed body) implements SealedResponseBody { } + + public static class Model2001 extends ResponseDeserializer { + public Model2001() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/xml", new ApplicationxmlMediaType()), + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + if ("application/xml".equals(contentType)) { + // todo implement deserialization + } else if ("application/json".equals(contentType)) { + // todo implement deserialization + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response400.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response400.java new file mode 100644 index 00000000000..e1cbe5d71b3 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response400.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model400 { + + public static class Model4001 extends ResponseDeserializer { + public Model4001() { + super( + Map.ofEntries( + ) + ); + } + + @Override + public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response404.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response404.java new file mode 100644 index 00000000000..81127e6b03b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response404.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model404 { + + public static class Model4041 extends ResponseDeserializer { + public Model4041() { + super( + Map.ofEntries( + ) + ); + } + + @Override + public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/RequestBody.java index f064f43f158..f4c5c1ecbfd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/RequestBody.java @@ -6,9 +6,9 @@ import org.openapijsonschematools.client.requestbody.RequestBodySerializer; import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.userusername.put.requestbody.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/response400.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/response400.java new file mode 100644 index 00000000000..e1cbe5d71b3 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/response400.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model400 { + + public static class Model4001 extends ResponseDeserializer { + public Model4001() { + super( + Map.ofEntries( + ) + ); + } + + @Override + public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/response404.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/response404.java new file mode 100644 index 00000000000..81127e6b03b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/response404.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.DeserializedApiResponse; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.mediatype.MediaType; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class Model404 { + + public static class Model4041 extends ResponseDeserializer { + public Model4041() { + super( + Map.ofEntries( + ) + ); + } + + @Override + public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java index 96de973b43c..28d40be041e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java @@ -43,6 +43,10 @@ protected static boolean contentTypeIsJson(String contentType) { return jsonContentTypePattern.matcher(contentType).find(); } + protected static boolean contentTypeIsTextPlain(String contentType) { + return textPlainContentType.equals(contentType); + } + public ApiResponse deserialize(HttpResponse response, SchemaConfiguration configuration) { Optional contentTypeInfo = response.headers().firstValue("Content-Type"); if (contentTypeInfo.isEmpty()) { diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java index 3dd8ce49393..ecefd93368a 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java @@ -794,6 +794,13 @@ public void processOpts() { put("src/main/java/packagename/components/requestbodies/RequestBodyDoc.hbs", ".md"); }} ); + // responses + jsonPathTemplateFiles.put( + CodegenConstants.JSON_PATH_LOCATION_TYPE.RESPONSE, + new HashMap<>() {{ + put("src/main/java/packagename/components/responses/Response.hbs", ".java"); + }} + ); // schema HashMap schemaTemplates = new HashMap<>(); schemaTemplates.put("src/main/java/packagename/components/schemas/Schema.hbs", ".java"); diff --git a/src/main/resources/java/src/main/java/packagename/components/requestbodies/RequestBody.hbs b/src/main/resources/java/src/main/java/packagename/components/requestbodies/RequestBody.hbs index 2bd1f5bf733..bcf809b30e8 100644 --- a/src/main/resources/java/src/main/java/packagename/components/requestbodies/RequestBody.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/requestbodies/RequestBody.hbs @@ -14,13 +14,13 @@ public class {{jsonPathPiece.pascalCase}} extends {{refInfo.refModule}} { {{else}} import {{packageName}}.requestbody.RequestBodySerializer; import {{packageName}}.requestbody.GenericRequestBody; +import {{packageName}}.requestbody.SerializedRequestBody; import {{packageName}}.mediatype.MediaType; {{#each content}} {{#with schema}} import {{{packageName}}}.{{subpackage}}.{{containerJsonPathPiece.pascalCase}}; {{/with}} {{/each}} -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; import java.util.AbstractMap; import java.util.Map; diff --git a/src/main/resources/java/src/main/java/packagename/components/responses/Response.hbs b/src/main/resources/java/src/main/java/packagename/components/responses/Response.hbs new file mode 100644 index 00000000000..c46d9234cae --- /dev/null +++ b/src/main/resources/java/src/main/java/packagename/components/responses/Response.hbs @@ -0,0 +1,83 @@ +{{#with response}} +package {{packageName}}.{{subpackage}}; + +{{#if refInfo}} + {{#neq subpackage refInfo.ref.subpackage}} +import {{packageName}}.{{refInfo.ref.subpackage}}.{{refInfo.refModule}}; + {{/neq}} + +public class {{jsonPathPiece.pascalCase}} extends {{refInfo.refModule}} { + public static class {{jsonPathPiece.pascalCase}}1 extends {{refInfo.refModule}}1 {} +} +{{else}} +import {{packageName}}.configurations.SchemaConfiguration; +import {{packageName}}.response.ApiResponse; +import {{packageName}}.response.DeserializedApiResponse; +import {{packageName}}.response.ResponseDeserializer; +import {{packageName}}.mediatype.MediaType; + {{#each content}} + {{#with schema}} +import {{{packageName}}}.{{subpackage}}.{{containerJsonPathPiece.pascalCase}}; + {{/with}} + {{/each}} + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpHeaders; + +public class {{jsonPathPiece.pascalCase}} { + {{#each content}} + + public static class {{@key.pascalCase}}MediaType extends MediaType<{{#with this}}{{#with schema}}{{containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}{{/with}}{{/with}}> { + public {{@key.pascalCase}}MediaType() { + super({{#with this}}{{#with schema}}{{containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}.getInstance(){{/with}}{{/with}}); + } + } + {{/each}} + {{#if content}} + public sealed interface SealedResponseBody permits {{#each content}}{{@key.pascalCase}}ResponseBody{{#unless @last}}, {{/unless}}{{/each}} {} + {{/if}} + {{#each content}} + public record {{@key.pascalCase}}ResponseBody({{#with this}}{{#with schema}}{{containerJsonPathPiece.pascalCase}}.{{#with getSelfOrDeepestRef}}{{> src/main/java/packagename/components/schemas/_sealedClassName }}{{/with}}{{/with}}{{/with}} body) implements SealedResponseBody { } + {{/each}} + + public static class {{jsonPathPiece.pascalCase}}1 extends ResponseDeserializer<{{#if content}}SealedResponseBody{{else}}Void{{/if}}, Void> { + public {{jsonPathPiece.pascalCase}}1() { + super( + Map.ofEntries( + {{#each content}} + new AbstractMap.SimpleEntry<>("{{{@key.original}}}", new {{@key.pascalCase}}MediaType()){{#unless @last}},{{/unless}} + {{/each}} + ) + ); + } + + {{#if content}} + @Override + public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + {{#each content}} + {{#if @first}} + if ("{{{@key.original}}}".equals(contentType)) { + {{else}} + } else if ("{{{@key.original}}}".equals(contentType)) { + {{/if}} + // todo implement deserialization + {{/each}} + } + throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + } + {{else}} + @Override + public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + return null; + } + {{/if}} + + @Override + public Void getHeaders(HttpHeaders headers) { + return null; + } + } +} +{{/if}} +{{/with}} \ No newline at end of file diff --git a/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs b/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs index 71cb8796267..847e198dde1 100644 --- a/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs +++ b/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs @@ -43,6 +43,10 @@ public abstract class ResponseDeserializer { return jsonContentTypePattern.matcher(contentType).find(); } + protected static boolean contentTypeIsTextPlain(String contentType) { + return textPlainContentType.equals(contentType); + } + public ApiResponse deserialize(HttpResponse response, SchemaConfiguration configuration) { Optional contentTypeInfo = response.headers().firstValue("Content-Type"); if (contentTypeInfo.isEmpty()) { From 6d44b6fc28290dc3fff0dac99975d667b6845219 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Tue, 20 Feb 2024 15:21:56 -0800 Subject: [PATCH 15/50] Adds subpackage to responses --- .../client/components/responses/headerswithnobody.java | 2 +- .../components/responses/refsuccessdescriptiononly.java | 2 +- .../responses/refsuccessfulxmlandjsonarrayofpet.java | 2 +- .../client/components/responses/successdescriptiononly.java | 2 +- .../components/responses/successfulxmlandjsonarrayofpet.java | 2 +- .../components/responses/successinlinecontentandheader.java | 2 +- .../components/responses/successwithjsonapiresponse.java | 2 +- .../paths/anotherfakedummy/patch/responses/response200.java | 2 +- .../paths/commonparamsubdir/delete/responses/response200.java | 3 ++- .../paths/commonparamsubdir/get/responses/response200.java | 3 ++- .../paths/commonparamsubdir/post/responses/response200.java | 3 ++- .../client/paths/fake/delete/responses/response200.java | 3 ++- .../client/paths/fake/get/responses/response200.java | 3 ++- .../client/paths/fake/get/responses/response404.java | 2 +- .../client/paths/fake/patch/responses/response200.java | 2 +- .../client/paths/fake/post/responses/response200.java | 3 ++- .../client/paths/fake/post/responses/response404.java | 2 +- .../get/responses/response200.java | 2 +- .../fakebodywithfileschema/put/responses/response200.java | 3 ++- .../fakebodywithqueryparams/put/responses/response200.java | 3 ++- .../fakecasesensitiveparams/put/responses/response200.java | 3 ++- .../paths/fakeclassnametest/patch/responses/response200.java | 2 +- .../fakedeletecoffeeid/delete/responses/response200.java | 3 ++- .../fakedeletecoffeeid/delete/responses/responsedefault.java | 2 +- .../client/paths/fakehealth/get/responses/response200.java | 2 +- .../post/responses/response200.java | 3 ++- .../fakeinlinecomposition/post/responses/response200.java | 2 +- .../paths/fakejsonformdata/get/responses/response200.java | 3 ++- .../paths/fakejsonpatch/patch/responses/response200.java | 3 ++- .../paths/fakejsonwithcharset/post/responses/response200.java | 2 +- .../post/responses/response200.java | 2 +- .../fakemultipleresponsebodies/get/responses/response200.java | 2 +- .../fakemultipleresponsebodies/get/responses/response202.java | 2 +- .../fakemultiplesecurities/get/responses/response200.java | 2 +- .../paths/fakeobjinquery/get/responses/response200.java | 3 ++- .../post/responses/response200.java | 2 +- .../paths/fakepemcontenttype/get/responses/response200.java | 2 +- .../post/responses/response200.java | 2 +- .../get/responses/response200.java | 2 +- .../paths/fakeredirection/get/responses/response303.java | 2 +- .../paths/fakeredirection/get/responses/response3xx.java | 2 +- .../paths/fakerefobjinquery/get/responses/response200.java | 3 ++- .../paths/fakerefsarraymodel/post/responses/response200.java | 2 +- .../fakerefsarrayofenums/post/responses/response200.java | 2 +- .../paths/fakerefsboolean/post/responses/response200.java | 2 +- .../post/responses/response200.java | 2 +- .../client/paths/fakerefsenum/post/responses/response200.java | 2 +- .../paths/fakerefsmammal/post/responses/response200.java | 2 +- .../paths/fakerefsnumber/post/responses/response200.java | 2 +- .../post/responses/response200.java | 2 +- .../paths/fakerefsstring/post/responses/response200.java | 2 +- .../fakeresponsewithoutschema/get/responses/response200.java | 2 +- .../faketestqueryparamters/put/responses/response200.java | 3 ++- .../fakeuploaddownloadfile/post/responses/response200.java | 2 +- .../paths/fakeuploadfile/post/responses/response200.java | 2 +- .../paths/fakeuploadfiles/post/responses/response200.java | 2 +- .../fakewildcardresponses/get/responses/response1xx.java | 2 +- .../fakewildcardresponses/get/responses/response200.java | 2 +- .../fakewildcardresponses/get/responses/response2xx.java | 2 +- .../fakewildcardresponses/get/responses/response3xx.java | 2 +- .../fakewildcardresponses/get/responses/response4xx.java | 2 +- .../fakewildcardresponses/get/responses/response5xx.java | 2 +- .../client/paths/foo/get/responses/responsedefault.java | 2 +- .../client/paths/get/responses/response200.java | 3 ++- .../client/paths/pet/post/responses/response200.java | 3 ++- .../client/paths/pet/post/responses/response405.java | 2 +- .../client/paths/pet/put/responses/response400.java | 2 +- .../client/paths/pet/put/responses/response404.java | 2 +- .../client/paths/pet/put/responses/response405.java | 2 +- .../paths/petfindbystatus/get/responses/response200.java | 3 ++- .../paths/petfindbystatus/get/responses/response400.java | 2 +- .../client/paths/petfindbytags/get/responses/response200.java | 3 ++- .../client/paths/petfindbytags/get/responses/response400.java | 2 +- .../client/paths/petpetid/delete/responses/response400.java | 2 +- .../client/paths/petpetid/get/responses/response200.java | 2 +- .../client/paths/petpetid/get/responses/response400.java | 2 +- .../client/paths/petpetid/get/responses/response404.java | 2 +- .../client/paths/petpetid/post/responses/response405.java | 2 +- .../paths/petpetiduploadimage/post/responses/response200.java | 3 ++- .../paths/storeinventory/get/responses/response200.java | 3 ++- .../client/paths/storeorder/post/responses/response200.java | 2 +- .../client/paths/storeorder/post/responses/response400.java | 2 +- .../paths/storeorderorderid/delete/responses/response400.java | 2 +- .../paths/storeorderorderid/delete/responses/response404.java | 2 +- .../paths/storeorderorderid/get/responses/response200.java | 2 +- .../paths/storeorderorderid/get/responses/response400.java | 2 +- .../paths/storeorderorderid/get/responses/response404.java | 2 +- .../client/paths/user/post/responses/responsedefault.java | 2 +- .../usercreatewitharray/post/responses/responsedefault.java | 2 +- .../usercreatewithlist/post/responses/responsedefault.java | 2 +- .../client/paths/userlogin/get/responses/response200.java | 2 +- .../client/paths/userlogin/get/responses/response400.java | 2 +- .../paths/userlogout/get/responses/responsedefault.java | 3 ++- .../paths/userusername/delete/responses/response200.java | 3 ++- .../paths/userusername/delete/responses/response404.java | 2 +- .../client/paths/userusername/get/responses/response200.java | 2 +- .../client/paths/userusername/get/responses/response400.java | 2 +- .../client/paths/userusername/get/responses/response404.java | 2 +- .../client/paths/userusername/put/responses/response400.java | 2 +- .../client/paths/userusername/put/responses/response404.java | 2 +- .../codegen/generators/DefaultGenerator.java | 3 ++- .../codegen/generators/openapimodels/CodegenResponse.java | 4 +++- 102 files changed, 129 insertions(+), 102 deletions(-) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody.java index 7e3964d3897..836bcacacaa 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.components.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/refsuccessdescriptiononly.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/refsuccessdescriptiononly.java index 83d923fc410..f3e4e93529d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/refsuccessdescriptiononly.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/refsuccessdescriptiononly.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.components.responses; public class RefSuccessDescriptionOnly extends successdescriptiononly { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/refsuccessfulxmlandjsonarrayofpet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/refsuccessfulxmlandjsonarrayofpet.java index 843c01181fa..5317b7db17d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/refsuccessfulxmlandjsonarrayofpet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/refsuccessfulxmlandjsonarrayofpet.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.components.responses; public class RefSuccessfulXmlAndJsonArrayOfPet extends successfulxmlandjsonarrayofpet { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successdescriptiononly.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successdescriptiononly.java index cd02f0d548d..1557821d492 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successdescriptiononly.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successdescriptiononly.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.components.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet.java index 1eb6071f4f6..e2697c3fb06 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.components.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader.java index 733a3dfbc87..434e4012039 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.components.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successwithjsonapiresponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successwithjsonapiresponse.java index 1980e50365e..d257082ad7e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successwithjsonapiresponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successwithjsonapiresponse.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.components.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/response200.java index b5a078d1de0..e997ec446d5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/response200.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.anotherfakedummy.patch.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/response200.java index 68ab7bb8f18..8c7d1a6f05e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/response200.java @@ -1,5 +1,6 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.commonparamsubdir.delete.responses; +import org.openapijsonschematools.client.components.responses.successdescriptiononly; public class Model200 extends successdescriptiononly { public static class Model2001 extends successdescriptiononly1 {} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/response200.java index 68ab7bb8f18..e112f44bf2d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/response200.java @@ -1,5 +1,6 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.commonparamsubdir.get.responses; +import org.openapijsonschematools.client.components.responses.successdescriptiononly; public class Model200 extends successdescriptiononly { public static class Model2001 extends successdescriptiononly1 {} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/response200.java index 68ab7bb8f18..19d4e311626 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/response200.java @@ -1,5 +1,6 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.commonparamsubdir.post.responses; +import org.openapijsonschematools.client.components.responses.successdescriptiononly; public class Model200 extends successdescriptiononly { public static class Model2001 extends successdescriptiononly1 {} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/response200.java index 68ab7bb8f18..83feac31dac 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/response200.java @@ -1,5 +1,6 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fake.delete.responses; +import org.openapijsonschematools.client.components.responses.successdescriptiononly; public class Model200 extends successdescriptiononly { public static class Model2001 extends successdescriptiononly1 {} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/response200.java index 68ab7bb8f18..0f90d9a6062 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/response200.java @@ -1,5 +1,6 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fake.get.responses; +import org.openapijsonschematools.client.components.responses.successdescriptiononly; public class Model200 extends successdescriptiononly { public static class Model2001 extends successdescriptiononly1 {} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/response404.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/response404.java index 46336f22edb..0cb4ab6d45c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/response404.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/response404.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fake.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/response200.java index f71c2ec51ec..4aaf876e770 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/response200.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fake.patch.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/response200.java index 68ab7bb8f18..fc9ec7f4fe6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/response200.java @@ -1,5 +1,6 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fake.post.responses; +import org.openapijsonschematools.client.components.responses.successdescriptiononly; public class Model200 extends successdescriptiononly { public static class Model2001 extends successdescriptiononly1 {} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/response404.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/response404.java index 81127e6b03b..089feb009ca 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/response404.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/response404.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fake.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/response200.java index 24d2793532a..e26a86018fc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/response200.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/response200.java index 68ab7bb8f18..9cb2347d015 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/response200.java @@ -1,5 +1,6 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakebodywithfileschema.put.responses; +import org.openapijsonschematools.client.components.responses.successdescriptiononly; public class Model200 extends successdescriptiononly { public static class Model2001 extends successdescriptiononly1 {} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/response200.java index 68ab7bb8f18..aac9d49dd51 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/response200.java @@ -1,5 +1,6 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.responses; +import org.openapijsonschematools.client.components.responses.successdescriptiononly; public class Model200 extends successdescriptiononly { public static class Model2001 extends successdescriptiononly1 {} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/response200.java index 68ab7bb8f18..21f67a09f96 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/response200.java @@ -1,5 +1,6 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.responses; +import org.openapijsonschematools.client.components.responses.successdescriptiononly; public class Model200 extends successdescriptiononly { public static class Model2001 extends successdescriptiononly1 {} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/response200.java index c169743604f..8c6a418e95b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/response200.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakeclassnametest.patch.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/response200.java index 68ab7bb8f18..87d6e5fe01c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/response200.java @@ -1,5 +1,6 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses; +import org.openapijsonschematools.client.components.responses.successdescriptiononly; public class Model200 extends successdescriptiononly { public static class Model2001 extends successdescriptiononly1 {} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/responsedefault.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/responsedefault.java index 5073cd35112..a396f201b10 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/responsedefault.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/responsedefault.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/response200.java index fad38997881..b44213ec23f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/response200.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakehealth.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/response200.java index 68ab7bb8f18..e3f0055318a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/response200.java @@ -1,5 +1,6 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.responses; +import org.openapijsonschematools.client.components.responses.successdescriptiononly; public class Model200 extends successdescriptiononly { public static class Model2001 extends successdescriptiononly1 {} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200.java index 46388844a7d..95c3fd1fa3c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/response200.java index 68ab7bb8f18..69a629211bb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/response200.java @@ -1,5 +1,6 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakejsonformdata.get.responses; +import org.openapijsonschematools.client.components.responses.successdescriptiononly; public class Model200 extends successdescriptiononly { public static class Model2001 extends successdescriptiononly1 {} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/response200.java index 68ab7bb8f18..7f81391e86f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/response200.java @@ -1,5 +1,6 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakejsonpatch.patch.responses; +import org.openapijsonschematools.client.components.responses.successdescriptiononly; public class Model200 extends successdescriptiononly { public static class Model2001 extends successdescriptiononly1 {} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/response200.java index 43114caf2dd..ce938aa3d95 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/response200.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakejsonwithcharset.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/response200.java index 394d4ded439..50a1914e69f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/response200.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response200.java index 6e9319ab553..6cb2092d8a3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response200.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response202.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response202.java index 4f14e365bd4..05492834ba6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response202.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response202.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/response200.java index d0ff4764977..2d98a555c6c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/response200.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakemultiplesecurities.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/response200.java index 68ab7bb8f18..af2ff264e0a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/response200.java @@ -1,5 +1,6 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakeobjinquery.get.responses; +import org.openapijsonschematools.client.components.responses.successdescriptiononly; public class Model200 extends successdescriptiononly { public static class Model2001 extends successdescriptiononly1 {} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/response200.java index bdb9e91740f..eb5fb617898 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/response200.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/response200.java index 3bd7a52fc49..24aef9c5e6c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/response200.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakepemcontenttype.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/response200.java index d0905a254ee..fcd30268d18 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/response200.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/response200.java index 798ca715054..ad864d04712 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/response200.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/response303.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/response303.java index 74a62488734..ae350f4f569 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/response303.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/response303.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakeredirection.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/response3xx.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/response3xx.java index 8be0e7ef121..8ef5e2969d6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/response3xx.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/response3xx.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakeredirection.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/response200.java index 68ab7bb8f18..ba3dd8c87c9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/response200.java @@ -1,5 +1,6 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakerefobjinquery.get.responses; +import org.openapijsonschematools.client.components.responses.successdescriptiononly; public class Model200 extends successdescriptiononly { public static class Model2001 extends successdescriptiononly1 {} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/response200.java index c1d74be4448..ea798f50d7e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/response200.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakerefsarraymodel.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/response200.java index fa7bc6bb508..5b5555ee12d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/response200.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/response200.java index 4baea87cb68..c6b5a3190c8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/response200.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakerefsboolean.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/response200.java index fc38405f9d1..de6c4ffd912 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/response200.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/response200.java index 425f6541fa4..b8a270e0e36 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/response200.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakerefsenum.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/response200.java index ee26cfbdf16..5af5e1d0149 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/response200.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakerefsmammal.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/response200.java index cb61351de59..28a92d44164 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/response200.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakerefsnumber.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/response200.java index 52e0fce0117..6757c91d959 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/response200.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/response200.java index 4b544020368..d278cb3d95d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/response200.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakerefsstring.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/response200.java index cb845b54cc1..b0c9228ffb8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/response200.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/response200.java index 68ab7bb8f18..cdbef92f3fe 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/response200.java @@ -1,5 +1,6 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.faketestqueryparamters.put.responses; +import org.openapijsonschematools.client.components.responses.successdescriptiononly; public class Model200 extends successdescriptiononly { public static class Model2001 extends successdescriptiononly1 {} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/response200.java index c721a427127..8ba8939c3b5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/response200.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/response200.java index d9a165b9d04..2034ad355c3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/response200.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakeuploadfile.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/response200.java index 4ff62deaa4b..88ce32346b8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/response200.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakeuploadfiles.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response1xx.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response1xx.java index 92c76caa998..1a81293ffba 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response1xx.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response1xx.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response200.java index dbc27b5763d..47ee22cc055 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response200.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response2xx.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response2xx.java index 3ca92c0ab0c..0385dd0e14c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response2xx.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response2xx.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response3xx.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response3xx.java index e0b446aaa85..914afec9f27 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response3xx.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response3xx.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response4xx.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response4xx.java index 3b65a84679f..ac84139ed55 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response4xx.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response4xx.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response5xx.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response5xx.java index 89f9f58d770..1652a66e98e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response5xx.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response5xx.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/responsedefault.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/responsedefault.java index 86e77c6b7b7..cf3a8e804cd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/responsedefault.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/responsedefault.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.foo.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/get/responses/response200.java index 68ab7bb8f18..6caabf7a539 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/get/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/get/responses/response200.java @@ -1,5 +1,6 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths..get.responses; +import org.openapijsonschematools.client.components.responses.successdescriptiononly; public class Model200 extends successdescriptiononly { public static class Model2001 extends successdescriptiononly1 {} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/response200.java index 68ab7bb8f18..012d9768a4e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/response200.java @@ -1,5 +1,6 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.pet.post.responses; +import org.openapijsonschematools.client.components.responses.successdescriptiononly; public class Model200 extends successdescriptiononly { public static class Model2001 extends successdescriptiononly1 {} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/response405.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/response405.java index 522cfa75e50..120c2f1409b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/response405.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/response405.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.pet.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response400.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response400.java index e1cbe5d71b3..8b67b9f89b0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response400.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response400.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.pet.put.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response404.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response404.java index 81127e6b03b..ad98d47c551 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response404.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response404.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.pet.put.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response405.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response405.java index 522cfa75e50..37e15ea3d4f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response405.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response405.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.pet.put.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/response200.java index 3008d7d8ab4..9969bf22e5f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/response200.java @@ -1,5 +1,6 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.petfindbystatus.get.responses; +import org.openapijsonschematools.client.components.responses.successfulxmlandjsonarrayofpet; public class Model200 extends successfulxmlandjsonarrayofpet { public static class Model2001 extends successfulxmlandjsonarrayofpet1 {} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/response400.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/response400.java index e1cbe5d71b3..681ac6f3640 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/response400.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/response400.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.petfindbystatus.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/response200.java index 9b9eb64ada0..8ed6e83e094 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/response200.java @@ -1,5 +1,6 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.petfindbytags.get.responses; +import org.openapijsonschematools.client.components.responses.refsuccessfulxmlandjsonarrayofpet; public class Model200 extends refsuccessfulxmlandjsonarrayofpet { public static class Model2001 extends refsuccessfulxmlandjsonarrayofpet1 {} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/response400.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/response400.java index e1cbe5d71b3..441b88cf5e6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/response400.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/response400.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.petfindbytags.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/response400.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/response400.java index e1cbe5d71b3..dd7f22e304b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/response400.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/response400.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.petpetid.delete.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response200.java index 1f218b786bd..d720bb10a95 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response200.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.petpetid.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response400.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response400.java index e1cbe5d71b3..7bd39eaecca 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response400.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response400.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.petpetid.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response404.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response404.java index 81127e6b03b..c3ba7138215 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response404.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response404.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.petpetid.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/response405.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/response405.java index 522cfa75e50..f5b8f6b3c2b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/response405.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/response405.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.petpetid.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/response200.java index ce8a9a3da7e..379ab507b44 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/response200.java @@ -1,5 +1,6 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.petpetiduploadimage.post.responses; +import org.openapijsonschematools.client.components.responses.successwithjsonapiresponse; public class Model200 extends successwithjsonapiresponse { public static class Model2001 extends successwithjsonapiresponse1 {} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/response200.java index 2da2b869c85..fd29d4b606b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/response200.java @@ -1,5 +1,6 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.storeinventory.get.responses; +import org.openapijsonschematools.client.components.responses.successinlinecontentandheader; public class Model200 extends successinlinecontentandheader { public static class Model2001 extends successinlinecontentandheader1 {} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response200.java index df171f60de3..6de29200407 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response200.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.storeorder.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response400.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response400.java index e1cbe5d71b3..98ad324049e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response400.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response400.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.storeorder.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/response400.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/response400.java index e1cbe5d71b3..c8f29324381 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/response400.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/response400.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.storeorderorderid.delete.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/response404.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/response404.java index 81127e6b03b..7d4d50524b8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/response404.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/response404.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.storeorderorderid.delete.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response200.java index 536323aff59..ba3b4ba6c4f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response200.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.storeorderorderid.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response400.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response400.java index e1cbe5d71b3..6399501b3d7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response400.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response400.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.storeorderorderid.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response404.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response404.java index 81127e6b03b..3e1cdadaf9d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response404.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response404.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.storeorderorderid.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/responsedefault.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/responsedefault.java index 5073cd35112..f2987fe3b04 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/responsedefault.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/responsedefault.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.user.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/responsedefault.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/responsedefault.java index 5073cd35112..3f215fad4ac 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/responsedefault.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/responsedefault.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.usercreatewitharray.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/responsedefault.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/responsedefault.java index 5073cd35112..5e8b5a97009 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/responsedefault.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/responsedefault.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.usercreatewithlist.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200.java index c3246514459..3807debb122 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.userlogin.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response400.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response400.java index e1cbe5d71b3..73c573b677c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response400.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response400.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.userlogin.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/responsedefault.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/responsedefault.java index e3ad5c26346..1fc61a0041a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/responsedefault.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/responsedefault.java @@ -1,5 +1,6 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.userlogout.get.responses; +import org.openapijsonschematools.client.components.responses.refsuccessdescriptiononly; public class ModelDefault extends refsuccessdescriptiononly { public static class ModelDefault1 extends refsuccessdescriptiononly1 {} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/response200.java index 68ab7bb8f18..bfeaae1ba62 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/response200.java @@ -1,5 +1,6 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.userusername.delete.responses; +import org.openapijsonschematools.client.components.responses.successdescriptiononly; public class Model200 extends successdescriptiononly { public static class Model2001 extends successdescriptiononly1 {} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/response404.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/response404.java index 81127e6b03b..35627218e60 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/response404.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/response404.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.userusername.delete.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response200.java index 306f73b42ad..b2f47554798 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response200.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.userusername.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response400.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response400.java index e1cbe5d71b3..be48915d8ef 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response400.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response400.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.userusername.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response404.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response404.java index 81127e6b03b..3f07896d813 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response404.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response404.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.userusername.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/response400.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/response400.java index e1cbe5d71b3..d957043427f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/response400.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/response400.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.userusername.put.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/response404.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/response404.java index 81127e6b03b..0d18ea3295f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/response404.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/response404.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.; +package org.openapijsonschematools.client.paths.userusername.put.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ApiResponse; diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java index 52c01a0aad5..dd82cd5e9ec 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java @@ -3109,7 +3109,8 @@ public CodegenResponse fromResponse(ApiResponse response, String sourceJsonPath) TreeSet finalImports = imports; CodegenSchema headersObjectSchema = getXParametersSchema(headersProperties, headersRequired, sourceJsonPath + "/" + "Headers", sourceJsonPath + "/" + "Headers"); String pathFromDocRoot = responsePathFromDocRoot(sourceJsonPath); - r = new CodegenResponse(jsonPathPiece, headers, headersObjectSchema, description, finalVendorExtensions, content, refInfo, finalImports, componentModule, pathFromDocRoot); + String subpackage = getSubpackage(sourceJsonPath); + r = new CodegenResponse(jsonPathPiece, headers, headersObjectSchema, description, finalVendorExtensions, content, refInfo, finalImports, componentModule, pathFromDocRoot, subpackage); codegenResponseCache.put(sourceJsonPath, r); return r; } diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenResponse.java b/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenResponse.java index 709f41f8864..2a90cee518c 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenResponse.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenResponse.java @@ -31,6 +31,7 @@ public class CodegenResponse { public final TreeSet imports; public final boolean componentModule; public final String pathFromDocRoot; + public final String subpackage; public CodegenResponse getSelfOrDeepestRef() { if (refInfo == null) { @@ -43,7 +44,7 @@ public CodegenResponse getSelfOrDeepestRef() { return refObject; } - public CodegenResponse(CodegenKey jsonPathPiece, Map headers, CodegenSchema headersObjectSchema, CodegenText description, Map vendorExtensions, LinkedHashMap content, CodegenRefInfo refInfo, TreeSet imports, boolean componentModule, String pathFromDocRoot) { + public CodegenResponse(CodegenKey jsonPathPiece, Map headers, CodegenSchema headersObjectSchema, CodegenText description, Map vendorExtensions, LinkedHashMap content, CodegenRefInfo refInfo, TreeSet imports, boolean componentModule, String pathFromDocRoot, String subpackage) { this.jsonPathPiece = jsonPathPiece; this.headers = headers; this.headersObjectSchema = headersObjectSchema; @@ -54,6 +55,7 @@ public CodegenResponse(CodegenKey jsonPathPiece, Map head this.imports = imports; this.componentModule = componentModule; this.pathFromDocRoot = pathFromDocRoot; + this.subpackage = subpackage; } /** From 6d58b78f0447efeb58f6f049df8e7ec3ded32b2e Mon Sep 17 00:00:00 2001 From: Justin Black Date: Tue, 20 Feb 2024 15:58:59 -0800 Subject: [PATCH 16/50] Fixes response filenames in java --- .../petstore/java/.openapi-generator/FILES | 394 +++++++++--------- .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 49 +++ .../applicationjson/ApplicationjsonSchema.md | 49 +++ .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 235 +++++++++++ .../MultipartformdataSchema.md | 357 ++++++++++++++++ .../applicationjson/ApplicationjsonSchema.md | 235 +++++++++++ .../MultipartformdataSchema.md | 357 ++++++++++++++++ .../Applicationjsoncharsetutf8Schema.md | 144 +++++++ .../Applicationjsoncharsetutf8Schema.md | 144 +++++++ .../applicationjson/ApplicationjsonSchema.md | 144 +++++++ .../applicationjson/ApplicationjsonSchema.md | 144 +++++++ .../applicationjson/ApplicationjsonSchema.md | 144 +++++++ .../applicationjson/ApplicationjsonSchema.md | 144 +++++++ .../applicationjson/ApplicationjsonSchema.md | 144 +++++++ .../applicationjson/ApplicationjsonSchema.md | 144 +++++++ .../applicationjson/ApplicationjsonSchema.md | 144 +++++++ .../applicationjson/ApplicationjsonSchema.md | 144 +++++++ .../applicationjson/ApplicationjsonSchema.md | 144 +++++++ .../applicationjson/ApplicationjsonSchema.md | 144 +++++++ .../ApplicationxpemfileSchema.md | 49 +++ .../ApplicationxpemfileSchema.md | 49 +++ .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 144 +++++++ .../applicationjson/ApplicationjsonSchema.md | 144 +++++++ .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../ApplicationoctetstreamSchema.md | 28 ++ .../ApplicationoctetstreamSchema.md | 28 ++ .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 144 +++++++ .../applicationjson/ApplicationjsonSchema.md | 144 +++++++ .../applicationjson/ApplicationjsonSchema.md | 144 +++++++ .../applicationjson/ApplicationjsonSchema.md | 144 +++++++ .../applicationjson/ApplicationjsonSchema.md | 144 +++++++ .../applicationjson/ApplicationjsonSchema.md | 144 +++++++ .../applicationjson/ApplicationjsonSchema.md | 144 +++++++ .../applicationjson/ApplicationjsonSchema.md | 144 +++++++ .../applicationjson/ApplicationjsonSchema.md | 144 +++++++ .../applicationjson/ApplicationjsonSchema.md | 144 +++++++ .../applicationjson/ApplicationjsonSchema.md | 144 +++++++ .../applicationjson/ApplicationjsonSchema.md | 144 +++++++ .../applicationjson/ApplicationjsonSchema.md | 133 ++++++ .../applicationjson/ApplicationjsonSchema.md | 133 ++++++ .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationxml/ApplicationxmlSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationxml/ApplicationxmlSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationxml/ApplicationxmlSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationxml/ApplicationxmlSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationxml/ApplicationxmlSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationxml/ApplicationxmlSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 49 +++ .../applicationxml/ApplicationxmlSchema.md | 49 +++ .../xexpiresafter/XExpiresAfterSchema.md | 49 +++ .../applicationjson/XRateLimitSchema.md | 49 +++ .../applicationjson/ApplicationjsonSchema.md | 49 +++ .../applicationxml/ApplicationxmlSchema.md | 49 +++ .../xexpiresafter/XExpiresAfterSchema.md | 49 +++ .../applicationjson/XRateLimitSchema.md | 49 +++ .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationxml/ApplicationxmlSchema.md | 19 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationxml/ApplicationxmlSchema.md | 19 + ...withnobody.java => HeadersWithNoBody.java} | 0 .../responses/RefSuccessDescriptionOnly.java | 6 + ...=> RefSuccessfulXmlAndJsonArrayOfPet.java} | 4 +- ...nonly.java => SuccessDescriptionOnly.java} | 0 ...ava => SuccessInlineContentAndHeader.java} | 0 ...e.java => SuccessWithJsonApiResponse.java} | 0 ...va => SuccessfulXmlAndJsonArrayOfPet.java} | 0 .../responses/refsuccessdescriptiononly.java | 6 - ...{response200.java => Code200Response.java} | 2 +- .../ApplicationjsonSchema.java | 2 +- .../delete/responses/Code200Response.java | 7 + .../delete/responses/response200.java | 7 - .../get/responses/Code200Response.java | 7 + .../get/responses/response200.java | 7 - .../post/responses/Code200Response.java | 7 + .../post/responses/response200.java | 7 - .../delete/responses/Code200Response.java | 7 + .../fake/delete/responses/response200.java | 7 - .../fake/get/responses/Code200Response.java | 7 + ...{response404.java => Code404Response.java} | 2 +- .../ApplicationjsonSchema.java | 2 +- .../paths/fake/get/responses/response200.java | 7 - ...{response200.java => Code200Response.java} | 2 +- .../ApplicationjsonSchema.java | 2 +- .../fake/post/responses/Code200Response.java | 7 + ...{response404.java => Code404Response.java} | 0 .../fake/post/responses/response200.java | 7 - ...{response200.java => Code200Response.java} | 2 +- .../ApplicationjsonSchema.java | 2 +- .../put/responses/Code200Response.java | 7 + .../put/responses/response200.java | 7 - .../put/responses/Code200Response.java | 7 + .../put/responses/response200.java | 7 - .../put/responses/Code200Response.java | 7 + .../put/responses/response200.java | 7 - ...{response200.java => Code200Response.java} | 2 +- .../ApplicationjsonSchema.java | 2 +- .../delete/responses/Code200Response.java | 7 + ...edefault.java => CodedefaultResponse.java} | 0 .../delete/responses/response200.java | 7 - ...{response200.java => Code200Response.java} | 2 +- .../ApplicationjsonSchema.java | 2 +- .../post/responses/Code200Response.java | 7 + .../post/responses/response200.java | 7 - ...{response200.java => Code200Response.java} | 4 +- .../ApplicationjsonSchema.java | 2 +- .../MultipartformdataSchema.java | 2 +- .../get/responses/Code200Response.java | 7 + .../get/responses/response200.java | 7 - .../patch/responses/Code200Response.java | 7 + .../patch/responses/response200.java | 7 - ...{response200.java => Code200Response.java} | 2 +- .../Applicationjsoncharsetutf8Schema.java | 2 +- ...{response200.java => Code200Response.java} | 2 +- .../ApplicationjsonSchema.java | 2 +- ...{response200.java => Code200Response.java} | 2 +- ...{response202.java => Code202Response.java} | 2 +- .../ApplicationjsonSchema.java | 2 +- .../ApplicationjsonSchema.java | 2 +- ...{response200.java => Code200Response.java} | 2 +- .../ApplicationjsonSchema.java | 2 +- .../get/responses/Code200Response.java | 7 + .../get/responses/response200.java | 7 - ...{response200.java => Code200Response.java} | 2 +- .../ApplicationjsonSchema.java | 2 +- ...{response200.java => Code200Response.java} | 2 +- .../ApplicationxpemfileSchema.java | 2 +- ...{response200.java => Code200Response.java} | 2 +- .../ApplicationjsonSchema.java | 2 +- ...{response200.java => Code200Response.java} | 2 +- .../ApplicationjsonSchema.java | 2 +- ...{response303.java => Code303Response.java} | 0 ...{response3xx.java => Code3XXResponse.java} | 0 .../get/responses/Code200Response.java | 7 + .../get/responses/response200.java | 7 - ...{response200.java => Code200Response.java} | 2 +- .../ApplicationjsonSchema.java | 2 +- ...{response200.java => Code200Response.java} | 2 +- .../ApplicationjsonSchema.java | 2 +- ...{response200.java => Code200Response.java} | 2 +- .../ApplicationjsonSchema.java | 2 +- ...{response200.java => Code200Response.java} | 2 +- .../ApplicationjsonSchema.java | 2 +- ...{response200.java => Code200Response.java} | 2 +- .../ApplicationjsonSchema.java | 2 +- ...{response200.java => Code200Response.java} | 2 +- .../ApplicationjsonSchema.java | 2 +- ...{response200.java => Code200Response.java} | 2 +- .../ApplicationjsonSchema.java | 2 +- ...{response200.java => Code200Response.java} | 2 +- .../ApplicationjsonSchema.java | 2 +- ...{response200.java => Code200Response.java} | 2 +- .../ApplicationjsonSchema.java | 2 +- ...{response200.java => Code200Response.java} | 0 .../put/responses/Code200Response.java | 7 + .../put/responses/response200.java | 7 - ...{response200.java => Code200Response.java} | 2 +- .../ApplicationoctetstreamSchema.java | 2 +- ...{response200.java => Code200Response.java} | 2 +- .../ApplicationjsonSchema.java | 2 +- ...{response200.java => Code200Response.java} | 2 +- .../ApplicationjsonSchema.java | 2 +- ...{response1xx.java => Code1XXResponse.java} | 2 +- ...{response200.java => Code200Response.java} | 2 +- ...{response2xx.java => Code2XXResponse.java} | 2 +- ...{response3xx.java => Code3XXResponse.java} | 2 +- ...{response4xx.java => Code4XXResponse.java} | 2 +- ...{response5xx.java => Code5XXResponse.java} | 2 +- .../ApplicationjsonSchema.java | 2 +- .../ApplicationjsonSchema.java | 2 +- .../ApplicationjsonSchema.java | 2 +- .../ApplicationjsonSchema.java | 2 +- .../ApplicationjsonSchema.java | 19 + .../ApplicationjsonSchema.java | 19 + .../ApplicationjsonSchema.java | 19 - .../ApplicationjsonSchema.java | 19 - ...edefault.java => CodedefaultResponse.java} | 2 +- .../ApplicationjsonSchema.java | 2 +- .../paths/get/responses/Code200Response.java | 7 + .../paths/get/responses/response200.java | 7 - .../pet/post/responses/Code200Response.java | 7 + ...{response405.java => Code405Response.java} | 0 .../paths/pet/post/responses/response200.java | 7 - ...{response400.java => Code400Response.java} | 0 ...{response404.java => Code404Response.java} | 0 ...{response405.java => Code405Response.java} | 0 .../get/responses/Code200Response.java | 7 + ...{response400.java => Code400Response.java} | 0 .../get/responses/response200.java | 7 - .../get/responses/Code200Response.java | 7 + ...{response400.java => Code400Response.java} | 0 .../get/responses/response200.java | 7 - ...{response400.java => Code400Response.java} | 0 ...{response200.java => Code200Response.java} | 4 +- ...{response400.java => Code400Response.java} | 0 ...{response404.java => Code404Response.java} | 0 .../ApplicationjsonSchema.java | 2 +- .../applicationxml/ApplicationxmlSchema.java | 2 +- ...{response405.java => Code405Response.java} | 0 .../post/responses/Code200Response.java | 7 + .../post/responses/response200.java | 7 - .../get/responses/Code200Response.java | 7 + .../get/responses/response200.java | 7 - ...{response200.java => Code200Response.java} | 4 +- ...{response400.java => Code400Response.java} | 0 .../ApplicationjsonSchema.java | 2 +- .../applicationxml/ApplicationxmlSchema.java | 2 +- ...{response400.java => Code400Response.java} | 0 ...{response404.java => Code404Response.java} | 0 ...{response200.java => Code200Response.java} | 4 +- ...{response400.java => Code400Response.java} | 0 ...{response404.java => Code404Response.java} | 0 .../ApplicationjsonSchema.java | 2 +- .../applicationxml/ApplicationxmlSchema.java | 2 +- ...edefault.java => CodedefaultResponse.java} | 0 ...edefault.java => CodedefaultResponse.java} | 0 ...edefault.java => CodedefaultResponse.java} | 0 ...{response200.java => Code200Response.java} | 4 +- ...{response400.java => Code400Response.java} | 0 .../Headers.java | 6 +- .../ApplicationjsonSchema.java | 2 +- .../applicationxml/ApplicationxmlSchema.java | 2 +- .../xexpiresafter/XExpiresAfterSchema.java | 2 +- .../applicationjson/XRateLimitSchema.java | 2 +- .../get/responses/CodedefaultResponse.java | 7 + .../get/responses/responsedefault.java | 7 - .../delete/responses/Code200Response.java | 7 + ...{response404.java => Code404Response.java} | 0 .../delete/responses/response200.java | 7 - ...{response200.java => Code200Response.java} | 4 +- ...{response400.java => Code400Response.java} | 0 ...{response404.java => Code404Response.java} | 0 .../ApplicationjsonSchema.java | 2 +- .../applicationxml/ApplicationxmlSchema.java | 2 +- ...{response400.java => Code400Response.java} | 0 ...{response404.java => Code404Response.java} | 0 .../codegen/generators/DefaultGenerator.java | 6 +- .../generators/JavaClientGenerator.java | 11 +- 275 files changed, 7306 insertions(+), 511 deletions(-) create mode 100644 samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/Model200/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fake/get/responses/Code404Response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fake/get/responses/Model404/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fake/patch/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fake/patch/responses/Model200/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/Model200/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakehealth/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakehealth/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Code200Response/content/multipartformdata/MultipartformdataSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Model200/content/multipartformdata/MultipartformdataSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/Code200Response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md create mode 100644 samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/Model200/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md create mode 100644 samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code202Response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Model202/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/Code200Response/content/applicationxpemfile/ApplicationxpemfileSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/Model200/content/applicationxpemfile/ApplicationxpemfileSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/Code200Response/content/applicationoctetstream/ApplicationoctetstreamSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/Model200/content/applicationoctetstream/ApplicationoctetstreamSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code1XXResponse/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code2XXResponse/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code3XXResponse/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code4XXResponse/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code5XXResponse/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model1XX/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model2XX/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model3XX/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model4XX/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model5XX/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/foo/get/responses/CodedefaultResponse/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/foo/get/responses/ModelDefault/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/get/responses/Model200/content/applicationxml/ApplicationxmlSchema.md create mode 100644 samples/client/petstore/java/docs/paths/storeorder/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/storeorder/post/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md create mode 100644 samples/client/petstore/java/docs/paths/storeorder/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/storeorder/post/responses/Model200/content/applicationxml/ApplicationxmlSchema.md create mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md create mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Model200/content/applicationxml/ApplicationxmlSchema.md create mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md create mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/headers/xexpiresafter/XExpiresAfterSchema.md create mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/headers/xratelimit/content/applicationjson/XRateLimitSchema.md create mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/Model200/content/applicationxml/ApplicationxmlSchema.md create mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/Model200/headers/xexpiresafter/XExpiresAfterSchema.md create mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/Model200/headers/xratelimit/content/applicationjson/XRateLimitSchema.md create mode 100644 samples/client/petstore/java/docs/paths/userusername/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/userusername/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md create mode 100644 samples/client/petstore/java/docs/paths/userusername/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/userusername/get/responses/Model200/content/applicationxml/ApplicationxmlSchema.md rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/{headerswithnobody.java => HeadersWithNoBody.java} (100%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/RefSuccessDescriptionOnly.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/{refsuccessfulxmlandjsonarrayofpet.java => RefSuccessfulXmlAndJsonArrayOfPet.java} (51%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/{successdescriptiononly.java => SuccessDescriptionOnly.java} (100%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/{successinlinecontentandheader.java => SuccessInlineContentAndHeader.java} (100%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/{successwithjsonapiresponse.java => SuccessWithJsonApiResponse.java} (100%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/{successfulxmlandjsonarrayofpet.java => SuccessfulXmlAndJsonArrayOfPet.java} (100%) delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/refsuccessdescriptiononly.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/{response200.java => Code200Response.java} (96%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/{response200 => code200response}/content/applicationjson/ApplicationjsonSchema.java (91%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/Code200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/Code200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/Code200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/Code200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code200Response.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/{response404.java => Code404Response.java} (96%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/{response404 => code404response}/content/applicationjson/ApplicationjsonSchema.java (94%) delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/response200.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/{response200.java => Code200Response.java} (96%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/{response200 => code200response}/content/applicationjson/ApplicationjsonSchema.java (93%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code200Response.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/{response404.java => Code404Response.java} (100%) delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/response200.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/{response200.java => Code200Response.java} (95%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/{response200 => code200response}/content/applicationjson/ApplicationjsonSchema.java (89%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/Code200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/Code200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/Code200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/response200.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/{response200.java => Code200Response.java} (95%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/{response200 => code200response}/content/applicationjson/ApplicationjsonSchema.java (91%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/Code200Response.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/{responsedefault.java => CodedefaultResponse.java} (100%) delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/response200.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/{response200.java => Code200Response.java} (96%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/{response200 => code200response}/content/applicationjson/ApplicationjsonSchema.java (92%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/Code200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/response200.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/{response200.java => Code200Response.java} (93%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/{response200 => code200response}/content/applicationjson/ApplicationjsonSchema.java (99%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/{response200 => code200response}/content/multipartformdata/MultipartformdataSchema.java (99%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/Code200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/Code200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/response200.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/{response200.java => Code200Response.java} (95%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/{response200 => code200response}/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java (91%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/{response200.java => Code200Response.java} (95%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/{response200 => code200response}/content/applicationjson/ApplicationjsonSchema.java (90%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/{response200.java => Code200Response.java} (95%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/{response202.java => Code202Response.java} (95%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/{response200 => code200response}/content/applicationjson/ApplicationjsonSchema.java (91%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/{response202 => code202response}/content/applicationjson/ApplicationjsonSchema.java (91%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/{response200.java => Code200Response.java} (95%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/{response200 => code200response}/content/applicationjson/ApplicationjsonSchema.java (92%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/Code200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/response200.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/{response200.java => Code200Response.java} (95%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/{response200 => code200response}/content/applicationjson/ApplicationjsonSchema.java (90%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/{response200.java => Code200Response.java} (95%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/{response200 => code200response}/content/applicationxpemfile/ApplicationxpemfileSchema.java (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/{response200.java => Code200Response.java} (95%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/{response200 => code200response}/content/applicationjson/ApplicationjsonSchema.java (89%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/{response200.java => Code200Response.java} (95%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/{response200 => code200response}/content/applicationjson/ApplicationjsonSchema.java (90%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/{response303.java => Code303Response.java} (100%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/{response3xx.java => Code3XXResponse.java} (100%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/Code200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/response200.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/{response200.java => Code200Response.java} (95%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/{response200 => code200response}/content/applicationjson/ApplicationjsonSchema.java (91%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/{response200.java => Code200Response.java} (95%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/{response200 => code200response}/content/applicationjson/ApplicationjsonSchema.java (91%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/{response200.java => Code200Response.java} (96%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/{response200 => code200response}/content/applicationjson/ApplicationjsonSchema.java (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/{response200.java => Code200Response.java} (94%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/{response200 => code200response}/content/applicationjson/ApplicationjsonSchema.java (89%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/{response200.java => Code200Response.java} (96%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/{response200 => code200response}/content/applicationjson/ApplicationjsonSchema.java (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/{response200.java => Code200Response.java} (96%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/{response200 => code200response}/content/applicationjson/ApplicationjsonSchema.java (91%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/{response200.java => Code200Response.java} (96%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/{response200 => code200response}/content/applicationjson/ApplicationjsonSchema.java (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/{response200.java => Code200Response.java} (95%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/{response200 => code200response}/content/applicationjson/ApplicationjsonSchema.java (90%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/{response200.java => Code200Response.java} (96%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/{response200 => code200response}/content/applicationjson/ApplicationjsonSchema.java (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/{response200.java => Code200Response.java} (100%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/Code200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/response200.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/{response200.java => Code200Response.java} (95%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/{response200 => code200response}/content/applicationoctetstream/ApplicationoctetstreamSchema.java (91%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/{response200.java => Code200Response.java} (96%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/{response200 => code200response}/content/applicationjson/ApplicationjsonSchema.java (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/{response200.java => Code200Response.java} (96%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/{response200 => code200response}/content/applicationjson/ApplicationjsonSchema.java (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/{response1xx.java => Code1XXResponse.java} (95%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/{response200.java => Code200Response.java} (95%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/{response2xx.java => Code2XXResponse.java} (95%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/{response3xx.java => Code3XXResponse.java} (95%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/{response4xx.java => Code4XXResponse.java} (95%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/{response5xx.java => Code5XXResponse.java} (95%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/{response3xx => code1xxresponse}/content/applicationjson/ApplicationjsonSchema.java (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/{response1xx => code200response}/content/applicationjson/ApplicationjsonSchema.java (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/{response200 => code2xxresponse}/content/applicationjson/ApplicationjsonSchema.java (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/{response2xx => code3xxresponse}/content/applicationjson/ApplicationjsonSchema.java (92%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response4xx/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response5xx/content/applicationjson/ApplicationjsonSchema.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/{responsedefault.java => CodedefaultResponse.java} (96%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/{responsedefault => codedefaultresponse}/content/applicationjson/ApplicationjsonSchema.java (99%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/get/responses/Code200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/get/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code200Response.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/{response405.java => Code405Response.java} (100%) delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/response200.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/{response400.java => Code400Response.java} (100%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/{response404.java => Code404Response.java} (100%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/{response405.java => Code405Response.java} (100%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code200Response.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/{response400.java => Code400Response.java} (100%) delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code200Response.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/{response400.java => Code400Response.java} (100%) delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/response200.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/{response400.java => Code400Response.java} (100%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/{response200.java => Code200Response.java} (94%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/{response400.java => Code400Response.java} (100%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/{response404.java => Code404Response.java} (100%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/{response200 => code200response}/content/applicationjson/ApplicationjsonSchema.java (93%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/{response200 => code200response}/content/applicationxml/ApplicationxmlSchema.java (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/{response405.java => Code405Response.java} (100%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/Code200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/response200.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/Code200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/response200.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/{response200.java => Code200Response.java} (94%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/{response400.java => Code400Response.java} (100%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/{response200 => code200response}/content/applicationjson/ApplicationjsonSchema.java (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/{response200 => code200response}/content/applicationxml/ApplicationxmlSchema.java (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/{response400.java => Code400Response.java} (100%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/{response404.java => Code404Response.java} (100%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/{response200.java => Code200Response.java} (94%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/{response400.java => Code400Response.java} (100%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/{response404.java => Code404Response.java} (100%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/{response200 => code200response}/content/applicationjson/ApplicationjsonSchema.java (91%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/{response200 => code200response}/content/applicationxml/ApplicationxmlSchema.java (91%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/{responsedefault.java => CodedefaultResponse.java} (100%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/{responsedefault.java => CodedefaultResponse.java} (100%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/{responsedefault.java => CodedefaultResponse.java} (100%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/{response200.java => Code200Response.java} (94%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/{response400.java => Code400Response.java} (100%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/{response200 => code200response}/Headers.java (99%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/{response200 => code200response}/content/applicationjson/ApplicationjsonSchema.java (93%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/{response200 => code200response}/content/applicationxml/ApplicationxmlSchema.java (93%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/{response200 => code200response}/headers/xexpiresafter/XExpiresAfterSchema.java (93%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/{response200 => code200response}/headers/xratelimit/content/applicationjson/XRateLimitSchema.java (91%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/CodedefaultResponse.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/responsedefault.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code200Response.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/{response404.java => Code404Response.java} (100%) delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/response200.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/{response200.java => Code200Response.java} (94%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/{response400.java => Code400Response.java} (100%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/{response404.java => Code404Response.java} (100%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/{response200 => code200response}/content/applicationjson/ApplicationjsonSchema.java (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/{response200 => code200response}/content/applicationxml/ApplicationxmlSchema.java (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/{response400.java => Code400Response.java} (100%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/{response404.java => Code404Response.java} (100%) diff --git a/samples/client/petstore/java/.openapi-generator/FILES b/samples/client/petstore/java/.openapi-generator/FILES index 0a8da8b56c2..2ae36e3d604 100644 --- a/samples/client/petstore/java/.openapi-generator/FILES +++ b/samples/client/petstore/java/.openapi-generator/FILES @@ -167,7 +167,7 @@ docs/components/securityschemes/HttpBasicTest.md docs/components/securityschemes/HttpSignatureTest.md docs/components/securityschemes/OpenIdConnectTest.md docs/components/securityschemes/PetstoreAuth.md -docs/paths/anotherfakedummy/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.md +docs/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.md docs/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md docs/paths/commonparamsubdir/get/parameters/parameter0/Schema0.md @@ -186,37 +186,37 @@ docs/paths/fake/get/parameters/parameter3/Schema3.md docs/paths/fake/get/parameters/parameter4/Schema4.md docs/paths/fake/get/parameters/parameter5/Schema5.md docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md -docs/paths/fake/get/responses/response404/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fake/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.md +docs/paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.md +docs/paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md docs/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md docs/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.md docs/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md docs/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md -docs/paths/fakeclassnametest/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.md +docs/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.md -docs/paths/fakehealth/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +docs/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md docs/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md docs/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md -docs/paths/fakeinlinecomposition/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.md +docs/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +docs/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md docs/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.md docs/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md -docs/paths/fakejsonwithcharset/post/responses/response200/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md +docs/paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md -docs/paths/fakemultiplerequestbodycontenttypes/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakemultipleresponsebodies/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakemultipleresponsebodies/get/responses/response202/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakemultiplesecurities/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +docs/paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +docs/paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +docs/paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.md +docs/paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.md docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.md @@ -238,33 +238,33 @@ docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7 docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.md docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.md docs/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakeparametercollisions1ababselfab/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +docs/paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md -docs/paths/fakepemcontenttype/get/responses/response200/content/applicationxpemfile/ApplicationxpemfileSchema.md +docs/paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.md docs/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.md docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md -docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.md -docs/paths/fakequeryparamwithjsoncontenttype/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +docs/paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.md docs/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakerefsarraymodel/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +docs/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakerefsarrayofenums/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +docs/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakerefsboolean/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +docs/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakerefsenum/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +docs/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakerefsmammal/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +docs/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakerefsnumber/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +docs/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakerefsobjectmodelwithrefprops/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +docs/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakerefsstring/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +docs/paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md docs/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md docs/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md @@ -272,45 +272,45 @@ docs/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md docs/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md docs/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.md docs/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.md -docs/paths/fakeuploaddownloadfile/post/responses/response200/content/applicationoctetstream/ApplicationoctetstreamSchema.md +docs/paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.md docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md -docs/paths/fakeuploadfile/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +docs/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md -docs/paths/fakeuploadfiles/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakewildcardresponses/get/responses/response1xx/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakewildcardresponses/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakewildcardresponses/get/responses/response2xx/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakewildcardresponses/get/responses/response3xx/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakewildcardresponses/get/responses/response4xx/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakewildcardresponses/get/responses/response5xx/content/applicationjson/ApplicationjsonSchema.md -docs/paths/foo/get/responses/responsedefault/content/applicationjson/ApplicationjsonSchema.md +docs/paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +docs/paths/fakewildcardresponses/get/responses/code1xxresponse/content/applicationjson/ApplicationjsonSchema.md +docs/paths/fakewildcardresponses/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +docs/paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicationjson/ApplicationjsonSchema.md +docs/paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicationjson/ApplicationjsonSchema.md +docs/paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.md +docs/paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.md +docs/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md docs/paths/petfindbystatus/get/parameters/parameter0/Schema0.md docs/paths/petfindbytags/get/parameters/parameter0/Schema0.md docs/paths/petpetid/delete/parameters/parameter0/Schema0.md docs/paths/petpetid/delete/parameters/parameter1/Schema1.md docs/paths/petpetid/get/parameters/parameter0/Schema0.md -docs/paths/petpetid/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md -docs/paths/petpetid/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md +docs/paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +docs/paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md docs/paths/petpetid/post/parameters/parameter0/Schema0.md docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md docs/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md docs/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.md -docs/paths/storeorder/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md -docs/paths/storeorder/post/responses/response200/content/applicationxml/ApplicationxmlSchema.md +docs/paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +docs/paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.md docs/paths/storeorderorderid/delete/parameters/parameter0/Schema0.md docs/paths/storeorderorderid/get/parameters/parameter0/Schema0.md -docs/paths/storeorderorderid/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md -docs/paths/storeorderorderid/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md +docs/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +docs/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md docs/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/userlogin/get/parameters/parameter0/Schema0.md docs/paths/userlogin/get/parameters/parameter1/Schema1.md -docs/paths/userlogin/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md -docs/paths/userlogin/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md -docs/paths/userlogin/get/responses/response200/headers/xexpiresafter/XExpiresAfterSchema.md -docs/paths/userlogin/get/responses/response200/headers/xratelimit/content/applicationjson/XRateLimitSchema.md -docs/paths/userusername/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md -docs/paths/userusername/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md +docs/paths/userlogin/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +docs/paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md +docs/paths/userlogin/get/responses/code200response/headers/xexpiresafter/XExpiresAfterSchema.md +docs/paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/XRateLimitSchema.md +docs/paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +docs/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md docs/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/servers/Server0.md docs/servers/Server1.md @@ -333,20 +333,20 @@ src/main/java/org/openapijsonschematools/client/components/requestbodies/client/ src/main/java/org/openapijsonschematools/client/components/requestbodies/pet/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/components/requestbodies/pet/content/applicationxml/ApplicationxmlSchema.java src/main/java/org/openapijsonschematools/client/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody.java +src/main/java/org/openapijsonschematools/client/components/responses/HeadersWithNoBody.java +src/main/java/org/openapijsonschematools/client/components/responses/RefSuccessDescriptionOnly.java +src/main/java/org/openapijsonschematools/client/components/responses/RefSuccessfulXmlAndJsonArrayOfPet.java +src/main/java/org/openapijsonschematools/client/components/responses/SuccessDescriptionOnly.java +src/main/java/org/openapijsonschematools/client/components/responses/SuccessInlineContentAndHeader.java +src/main/java/org/openapijsonschematools/client/components/responses/SuccessWithJsonApiResponse.java +src/main/java/org/openapijsonschematools/client/components/responses/SuccessfulXmlAndJsonArrayOfPet.java src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody/Headers.java src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody/headers/location/LocationSchema.java -src/main/java/org/openapijsonschematools/client/components/responses/refsuccessdescriptiononly.java -src/main/java/org/openapijsonschematools/client/components/responses/refsuccessfulxmlandjsonarrayofpet.java -src/main/java/org/openapijsonschematools/client/components/responses/successdescriptiononly.java -src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet.java src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.java -src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader.java src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/Headers.java src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/headers/someheader/SomeHeaderSchema.java -src/main/java/org/openapijsonschematools/client/components/responses/successwithjsonapiresponse.java src/main/java/org/openapijsonschematools/client/components/responses/successwithjsonapiresponse/Headers.java src/main/java/org/openapijsonschematools/client/components/responses/successwithjsonapiresponse/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/components/schemas/AbstractStepMessage.java @@ -507,22 +507,22 @@ src/main/java/org/openapijsonschematools/client/mediatype/Encoding.java src/main/java/org/openapijsonschematools/client/mediatype/MediaType.java src/main/java/org/openapijsonschematools/client/parameter/ParameterStyle.java src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/RequestBody.java -src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/HeaderParameters.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/PathParameters.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.java -src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/response200.java +src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/PathParameters.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/parameters/parameter0/Schema0.java -src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/response200.java +src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/HeaderParameters.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/PathParameters.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/parameters/parameter0/Schema0.java -src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/response200.java +src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/HeaderParameters.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/QueryParameters.java @@ -532,7 +532,7 @@ src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/par src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter3/Schema3.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter4/Schema4.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter5/Schema5.java -src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/response200.java +src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/fake/get/HeaderParameters.java src/main/java/org/openapijsonschematools/client/paths/fake/get/QueryParameters.java @@ -544,86 +544,86 @@ src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parame src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter4/Schema4.java src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter5/Schema5.java src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java -src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/response404.java -src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/response404/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code404Response.java +src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fake/patch/RequestBody.java -src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/fake/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java -src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/response404.java +src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code404Response.java src/main/java/org/openapijsonschematools/client/paths/fake/post/security/FakePostSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/response200.java +src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/response200.java +src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.java src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.java -src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/response200.java +src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/RequestBody.java -src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/PathParameters.java src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.java -src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/responsedefault.java -src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.java +src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/response200.java +src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.java src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/response200.java +src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/response200.java +src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java -src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/response200/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java +src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response202.java -src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response202/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java +src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.java -src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.java src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/parameter0/Schema0.java -src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/response200.java +src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/CookieParameters.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/HeaderParameters.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/PathParameters.java @@ -649,66 +649,66 @@ src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ab src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/response200/content/applicationxpemfile/ApplicationxpemfileSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.java -src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/response303.java -src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/response3xx.java +src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code303Response.java +src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code3XXResponse.java src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.java -src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/response200.java +src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/response200.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.java @@ -716,58 +716,58 @@ src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.java src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.java src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.java -src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/response200.java +src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/response200/content/applicationoctetstream/ApplicationoctetstreamSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response1xx.java -src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response1xx/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response2xx.java -src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response2xx/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response3xx.java -src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response3xx/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response4xx.java -src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response4xx/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response5xx.java -src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response5xx/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code1XXResponse.java +src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code2XXResponse.java +src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code3XXResponse.java +src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code4XXResponse.java +src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code5XXResponse.java +src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code1xxresponse/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/foo/get/FooGetServerInfo.java -src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/responsedefault.java -src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/responsedefault/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java +src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer0.java src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer1.java src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/Variables.java -src/main/java/org/openapijsonschematools/client/paths/get/responses/response200.java +src/main/java/org/openapijsonschematools/client/paths/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/pet/post/RequestBody.java -src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/response405.java +src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code405Response.java src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject1.java src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject2.java src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/pet/put/RequestBody.java -src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response400.java -src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response404.java -src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response405.java +src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code400Response.java +src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code404Response.java +src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code405Response.java src/main/java/org/openapijsonschematools/client/paths/pet/put/security/PetPutSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/pet/put/security/PetPutSecurityRequirementObject1.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusServerInfo.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/parameter0/Schema0.java -src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/response400.java +src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code400Response.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject1.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject2.java @@ -777,8 +777,8 @@ src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/se src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/parameter0/Schema0.java -src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/response400.java +src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code400Response.java src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject1.java src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/HeaderParameters.java @@ -786,24 +786,24 @@ src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PathParame src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/parameter1/Schema1.java -src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/response400.java +src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/Code400Response.java src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject1.java src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PathParameters.java src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/petpetid/get/parameters/parameter0/Schema0.java -src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response200/content/applicationxml/ApplicationxmlSchema.java -src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response400.java -src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response404.java +src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code400Response.java +src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code404Response.java +src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java src/main/java/org/openapijsonschematools/client/paths/petpetid/get/security/PetpetidGetSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PathParameters.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java -src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/response405.java +src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/Code405Response.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject1.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PathParameters.java @@ -811,60 +811,60 @@ src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/P src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java -src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/response200.java +src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/security/PetpetiduploadimagePostSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/StoreinventoryGetSecurityInfo.java -src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/response200.java +src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/storeorder/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response200/content/applicationxml/ApplicationxmlSchema.java -src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response400.java +src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code400Response.java +src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/PathParameters.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/parameters/parameter0/Schema0.java -src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/response400.java -src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/response404.java +src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code400Response.java +src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code404Response.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/PathParameters.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/parameter0/Schema0.java -src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response200/content/applicationxml/ApplicationxmlSchema.java -src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response400.java -src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response404.java +src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code400Response.java +src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code404Response.java +src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java src/main/java/org/openapijsonschematools/client/paths/user/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/user/post/responses/responsedefault.java +src/main/java/org/openapijsonschematools/client/paths/user/post/responses/CodedefaultResponse.java src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/RequestBody.java -src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/responsedefault.java +src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/CodedefaultResponse.java src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/RequestBody.java -src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/responsedefault.java +src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/CodedefaultResponse.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/parameter1/Schema1.java -src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200/Headers.java -src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200/content/applicationxml/ApplicationxmlSchema.java -src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200/headers/xexpiresafter/XExpiresAfterSchema.java -src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200/headers/xratelimit/content/applicationjson/XRateLimitSchema.java -src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response400.java -src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/responsedefault.java +src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code400Response.java +src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/Headers.java +src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java +src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/xexpiresafter/XExpiresAfterSchema.java +src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/XRateLimitSchema.java +src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/CodedefaultResponse.java src/main/java/org/openapijsonschematools/client/paths/userusername/delete/PathParameters.java -src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/response404.java +src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code404Response.java src/main/java/org/openapijsonschematools/client/paths/userusername/get/PathParameters.java -src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response200.java -src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response200/content/applicationxml/ApplicationxmlSchema.java -src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response400.java -src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response404.java +src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code400Response.java +src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code404Response.java +src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java src/main/java/org/openapijsonschematools/client/paths/userusername/put/PathParameters.java src/main/java/org/openapijsonschematools/client/paths/userusername/put/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/response400.java -src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/response404.java +src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code400Response.java +src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code404Response.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 diff --git a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..1bc0d6e8e15 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [Client1](../../../../../../../../../components/schemas/Client.md#client) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [Client.Client1](../../../../../../../../../components/schemas/Client.md#client1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/Model200/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..1bc0d6e8e15 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/Model200/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [Client1](../../../../../../../../../components/schemas/Client.md#client) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [Client.Client1](../../../../../../../../../components/schemas/Client.md#client1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fake/get/responses/Code404Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fake/get/responses/Code404Response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..64fd823405a --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/get/responses/Code404Response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,49 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends MapJsonSchema.MapJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.MapJsonSchema.MapJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fake/get/responses/Model404/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fake/get/responses/Model404/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..64fd823405a --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/get/responses/Model404/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,49 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends MapJsonSchema.MapJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.MapJsonSchema.MapJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fake/patch/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fake/patch/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..1bc0d6e8e15 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/patch/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [Client1](../../../../../../../../../components/schemas/Client.md#client) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [Client.Client1](../../../../../../../../../components/schemas/Client.md#client1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fake/patch/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fake/patch/responses/Model200/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..1bc0d6e8e15 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/patch/responses/Model200/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [Client1](../../../../../../../../../components/schemas/Client.md#client) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [Client.Client1](../../../../../../../../../components/schemas/Client.md#client1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..0aeccbe12bf --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [AdditionalPropertiesWithArrayOfEnums1](../../../../../../../../../components/schemas/AdditionalPropertiesWithArrayOfEnums.md#additionalpropertieswitharrayofenums) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesWithArrayOfEnums1](../../../../../../../../../components/schemas/AdditionalPropertiesWithArrayOfEnums.md#additionalpropertieswitharrayofenums1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..0aeccbe12bf --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [AdditionalPropertiesWithArrayOfEnums1](../../../../../../../../../components/schemas/AdditionalPropertiesWithArrayOfEnums.md#additionalpropertieswitharrayofenums) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesWithArrayOfEnums1](../../../../../../../../../components/schemas/AdditionalPropertiesWithArrayOfEnums.md#additionalpropertieswitharrayofenums1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..1bc0d6e8e15 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [Client1](../../../../../../../../../components/schemas/Client.md#client) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [Client.Client1](../../../../../../../../../components/schemas/Client.md#client1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/Model200/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..1bc0d6e8e15 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/Model200/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [Client1](../../../../../../../../../components/schemas/Client.md#client) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [Client.Client1](../../../../../../../../../components/schemas/Client.md#client1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakehealth/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakehealth/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..e7211f0c470 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakehealth/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [HealthCheckResult1](../../../../../../../../../components/schemas/HealthCheckResult.md#healthcheckresult) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [HealthCheckResult.HealthCheckResult1](../../../../../../../../../components/schemas/HealthCheckResult.md#healthcheckresult1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakehealth/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakehealth/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..e7211f0c470 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakehealth/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [HealthCheckResult1](../../../../../../../../../components/schemas/HealthCheckResult.md#healthcheckresult) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [HealthCheckResult.HealthCheckResult1](../../../../../../../../../components/schemas/HealthCheckResult.md#healthcheckresult1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..0f9ad58f4f2 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,235 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | +| sealed interface | [ApplicationjsonSchema.Applicationjson0Boxed](#applicationjson0boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.Applicationjson0BoxedString](#applicationjson0boxedstring)
boxed class to store validated String payloads | +| static class | [ApplicationjsonSchema.Applicationjson0](#applicationjson0)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends JsonSchema + +A schema class that validates payloads + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| List> | allOf = List.of(
    [Applicationjson0.class](#applicationjson0)
;)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| Void | validate(Void arg, SchemaConfiguration configuration) | +| int | validate(int arg, SchemaConfiguration configuration) | +| long | validate(long arg, SchemaConfiguration configuration) | +| float | validate(float arg, SchemaConfiguration configuration) | +| double | validate(double arg, SchemaConfiguration configuration) | +| Number | validate(Number arg, SchemaConfiguration configuration) | +| boolean | validate(boolean arg, SchemaConfiguration configuration) | +| FrozenMap<@Nullable Object> | validate(Map<?, ?> arg, SchemaConfiguration configuration) | +| FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## Applicationjson0Boxed +public sealed interface Applicationjson0Boxed
+permits
+[Applicationjson0BoxedString](#applicationjson0boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Applicationjson0BoxedString +public record Applicationjson0BoxedString
+implements [Applicationjson0Boxed](#applicationjson0boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Applicationjson0BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Applicationjson0 +public static class Applicationjson0
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + +// String validation +String validatedPayload = ApplicationjsonSchema.Applicationjson0.validate( + "a", + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    String.class
)
| +| Integer | minLength = 1 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| [Applicationjson0BoxedString](#applicationjson0boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Applicationjson0Boxed](#applicationjson0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Code200Response/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Code200Response/content/multipartformdata/MultipartformdataSchema.md new file mode 100644 index 00000000000..1193ca3c9a3 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Code200Response/content/multipartformdata/MultipartformdataSchema.md @@ -0,0 +1,357 @@ +# MultipartformdataSchema +public class MultipartformdataSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
abstract sealed validated payload class | +| record | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [MultipartformdataSchema.MultipartformdataSchema1](#multipartformdataschema1)
schema class | +| static class | [MultipartformdataSchema.MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder)
builder for Map payloads | +| static class | [MultipartformdataSchema.MultipartformdataSchemaMap](#multipartformdataschemamap)
output class for Map payloads | +| sealed interface | [MultipartformdataSchema.MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed)
abstract sealed validated payload class | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedVoid](#multipartformdatasomepropboxedvoid)
boxed class to store validated null payloads | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean)
boxed class to store validated boolean payloads | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedNumber](#multipartformdatasomepropboxednumber)
boxed class to store validated Number payloads | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedString](#multipartformdatasomepropboxedstring)
boxed class to store validated String payloads | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist)
boxed class to store validated List payloads | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap)
boxed class to store validated Map payloads | +| static class | [MultipartformdataSchema.MultipartformdataSomeProp](#multipartformdatasomeprop)
schema class | +| sealed interface | [MultipartformdataSchema.Multipartformdata0Boxed](#multipartformdata0boxed)
abstract sealed validated payload class | +| record | [MultipartformdataSchema.Multipartformdata0BoxedString](#multipartformdata0boxedstring)
boxed class to store validated String payloads | +| static class | [MultipartformdataSchema.Multipartformdata0](#multipartformdata0)
schema class | + +## MultipartformdataSchema1Boxed +public sealed interface MultipartformdataSchema1Boxed
+permits
+[MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## MultipartformdataSchema1BoxedMap +public record MultipartformdataSchema1BoxedMap
+implements [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSchema1BoxedMap([MultipartformdataSchemaMap](#multipartformdataschemamap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [MultipartformdataSchemaMap](#multipartformdataschemamap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataSchema1 +public static class MultipartformdataSchema1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + +// Map validation +MultipartformdataSchema.MultipartformdataSchemaMap validatedPayload = + MultipartformdataSchema.MultipartformdataSchema1.validate( + new MultipartformdataSchema.MultipartformdataSchemaMapBuilder() + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("someProp", [MultipartformdataSomeProp.class](#multipartformdatasomeprop)))
)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [MultipartformdataSchemaMap](#multipartformdataschemamap) | validate([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| [MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) | validateAndBox([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## MultipartformdataSchemaMapBuilder +public class MultipartformdataSchemaMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSchemaMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(Void value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(boolean value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(String value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(int value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(float value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(long value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(double value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(List value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(Map value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, Void value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, boolean value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, String value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, int value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, float value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, long value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, double value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, List value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, Map value) | + +## MultipartformdataSchemaMap +public static class MultipartformdataSchemaMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [MultipartformdataSchemaMap](#multipartformdataschemamap) | of([Map](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| @Nullable Object | someProp()
[optional] | +| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | + +## MultipartformdataSomePropBoxed +public sealed interface MultipartformdataSomePropBoxed
+permits
+[MultipartformdataSomePropBoxedVoid](#multipartformdatasomepropboxedvoid), +[MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean), +[MultipartformdataSomePropBoxedNumber](#multipartformdatasomepropboxednumber), +[MultipartformdataSomePropBoxedString](#multipartformdatasomepropboxedstring), +[MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist), +[MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## MultipartformdataSomePropBoxedVoid +public record MultipartformdataSomePropBoxedVoid
+implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSomePropBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataSomePropBoxedBoolean +public record MultipartformdataSomePropBoxedBoolean
+implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSomePropBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataSomePropBoxedNumber +public record MultipartformdataSomePropBoxedNumber
+implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSomePropBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataSomePropBoxedString +public record MultipartformdataSomePropBoxedString
+implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSomePropBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataSomePropBoxedList +public record MultipartformdataSomePropBoxedList
+implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSomePropBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataSomePropBoxedMap +public record MultipartformdataSomePropBoxedMap
+implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSomePropBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataSomeProp +public static class MultipartformdataSomeProp
+extends JsonSchema + +A schema class that validates payloads + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| List> | allOf = List.of(
    [Multipartformdata0.class](#multipartformdata0)
;)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| Void | validate(Void arg, SchemaConfiguration configuration) | +| int | validate(int arg, SchemaConfiguration configuration) | +| long | validate(long arg, SchemaConfiguration configuration) | +| float | validate(float arg, SchemaConfiguration configuration) | +| double | validate(double arg, SchemaConfiguration configuration) | +| Number | validate(Number arg, SchemaConfiguration configuration) | +| boolean | validate(boolean arg, SchemaConfiguration configuration) | +| FrozenMap<@Nullable Object> | validate(Map<?, ?> arg, SchemaConfiguration configuration) | +| FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | +| [MultipartformdataSomePropBoxedString](#multipartformdatasomepropboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [MultipartformdataSomePropBoxedVoid](#multipartformdatasomepropboxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | +| [MultipartformdataSomePropBoxedNumber](#multipartformdatasomepropboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | +| [MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | +| [MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## Multipartformdata0Boxed +public sealed interface Multipartformdata0Boxed
+permits
+[Multipartformdata0BoxedString](#multipartformdata0boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Multipartformdata0BoxedString +public record Multipartformdata0BoxedString
+implements [Multipartformdata0Boxed](#multipartformdata0boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Multipartformdata0BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Multipartformdata0 +public static class Multipartformdata0
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + +// String validation +String validatedPayload = MultipartformdataSchema.Multipartformdata0.validate( + "a", + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    String.class
)
| +| Integer | minLength = 1 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| [Multipartformdata0BoxedString](#multipartformdata0boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Multipartformdata0Boxed](#multipartformdata0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..0f9ad58f4f2 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,235 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | +| sealed interface | [ApplicationjsonSchema.Applicationjson0Boxed](#applicationjson0boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.Applicationjson0BoxedString](#applicationjson0boxedstring)
boxed class to store validated String payloads | +| static class | [ApplicationjsonSchema.Applicationjson0](#applicationjson0)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends JsonSchema + +A schema class that validates payloads + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| List> | allOf = List.of(
    [Applicationjson0.class](#applicationjson0)
;)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| Void | validate(Void arg, SchemaConfiguration configuration) | +| int | validate(int arg, SchemaConfiguration configuration) | +| long | validate(long arg, SchemaConfiguration configuration) | +| float | validate(float arg, SchemaConfiguration configuration) | +| double | validate(double arg, SchemaConfiguration configuration) | +| Number | validate(Number arg, SchemaConfiguration configuration) | +| boolean | validate(boolean arg, SchemaConfiguration configuration) | +| FrozenMap<@Nullable Object> | validate(Map<?, ?> arg, SchemaConfiguration configuration) | +| FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## Applicationjson0Boxed +public sealed interface Applicationjson0Boxed
+permits
+[Applicationjson0BoxedString](#applicationjson0boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Applicationjson0BoxedString +public record Applicationjson0BoxedString
+implements [Applicationjson0Boxed](#applicationjson0boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Applicationjson0BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Applicationjson0 +public static class Applicationjson0
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + +// String validation +String validatedPayload = ApplicationjsonSchema.Applicationjson0.validate( + "a", + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    String.class
)
| +| Integer | minLength = 1 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| [Applicationjson0BoxedString](#applicationjson0boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Applicationjson0Boxed](#applicationjson0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Model200/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Model200/content/multipartformdata/MultipartformdataSchema.md new file mode 100644 index 00000000000..1193ca3c9a3 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Model200/content/multipartformdata/MultipartformdataSchema.md @@ -0,0 +1,357 @@ +# MultipartformdataSchema +public class MultipartformdataSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
abstract sealed validated payload class | +| record | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [MultipartformdataSchema.MultipartformdataSchema1](#multipartformdataschema1)
schema class | +| static class | [MultipartformdataSchema.MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder)
builder for Map payloads | +| static class | [MultipartformdataSchema.MultipartformdataSchemaMap](#multipartformdataschemamap)
output class for Map payloads | +| sealed interface | [MultipartformdataSchema.MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed)
abstract sealed validated payload class | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedVoid](#multipartformdatasomepropboxedvoid)
boxed class to store validated null payloads | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean)
boxed class to store validated boolean payloads | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedNumber](#multipartformdatasomepropboxednumber)
boxed class to store validated Number payloads | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedString](#multipartformdatasomepropboxedstring)
boxed class to store validated String payloads | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist)
boxed class to store validated List payloads | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap)
boxed class to store validated Map payloads | +| static class | [MultipartformdataSchema.MultipartformdataSomeProp](#multipartformdatasomeprop)
schema class | +| sealed interface | [MultipartformdataSchema.Multipartformdata0Boxed](#multipartformdata0boxed)
abstract sealed validated payload class | +| record | [MultipartformdataSchema.Multipartformdata0BoxedString](#multipartformdata0boxedstring)
boxed class to store validated String payloads | +| static class | [MultipartformdataSchema.Multipartformdata0](#multipartformdata0)
schema class | + +## MultipartformdataSchema1Boxed +public sealed interface MultipartformdataSchema1Boxed
+permits
+[MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## MultipartformdataSchema1BoxedMap +public record MultipartformdataSchema1BoxedMap
+implements [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSchema1BoxedMap([MultipartformdataSchemaMap](#multipartformdataschemamap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [MultipartformdataSchemaMap](#multipartformdataschemamap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataSchema1 +public static class MultipartformdataSchema1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + +// Map validation +MultipartformdataSchema.MultipartformdataSchemaMap validatedPayload = + MultipartformdataSchema.MultipartformdataSchema1.validate( + new MultipartformdataSchema.MultipartformdataSchemaMapBuilder() + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("someProp", [MultipartformdataSomeProp.class](#multipartformdatasomeprop)))
)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [MultipartformdataSchemaMap](#multipartformdataschemamap) | validate([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| [MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) | validateAndBox([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## MultipartformdataSchemaMapBuilder +public class MultipartformdataSchemaMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSchemaMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(Void value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(boolean value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(String value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(int value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(float value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(long value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(double value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(List value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(Map value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, Void value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, boolean value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, String value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, int value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, float value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, long value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, double value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, List value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, Map value) | + +## MultipartformdataSchemaMap +public static class MultipartformdataSchemaMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [MultipartformdataSchemaMap](#multipartformdataschemamap) | of([Map](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| @Nullable Object | someProp()
[optional] | +| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | + +## MultipartformdataSomePropBoxed +public sealed interface MultipartformdataSomePropBoxed
+permits
+[MultipartformdataSomePropBoxedVoid](#multipartformdatasomepropboxedvoid), +[MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean), +[MultipartformdataSomePropBoxedNumber](#multipartformdatasomepropboxednumber), +[MultipartformdataSomePropBoxedString](#multipartformdatasomepropboxedstring), +[MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist), +[MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## MultipartformdataSomePropBoxedVoid +public record MultipartformdataSomePropBoxedVoid
+implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSomePropBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataSomePropBoxedBoolean +public record MultipartformdataSomePropBoxedBoolean
+implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSomePropBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataSomePropBoxedNumber +public record MultipartformdataSomePropBoxedNumber
+implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSomePropBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataSomePropBoxedString +public record MultipartformdataSomePropBoxedString
+implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSomePropBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataSomePropBoxedList +public record MultipartformdataSomePropBoxedList
+implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSomePropBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataSomePropBoxedMap +public record MultipartformdataSomePropBoxedMap
+implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSomePropBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataSomeProp +public static class MultipartformdataSomeProp
+extends JsonSchema + +A schema class that validates payloads + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| List> | allOf = List.of(
    [Multipartformdata0.class](#multipartformdata0)
;)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| Void | validate(Void arg, SchemaConfiguration configuration) | +| int | validate(int arg, SchemaConfiguration configuration) | +| long | validate(long arg, SchemaConfiguration configuration) | +| float | validate(float arg, SchemaConfiguration configuration) | +| double | validate(double arg, SchemaConfiguration configuration) | +| Number | validate(Number arg, SchemaConfiguration configuration) | +| boolean | validate(boolean arg, SchemaConfiguration configuration) | +| FrozenMap<@Nullable Object> | validate(Map<?, ?> arg, SchemaConfiguration configuration) | +| FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | +| [MultipartformdataSomePropBoxedString](#multipartformdatasomepropboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [MultipartformdataSomePropBoxedVoid](#multipartformdatasomepropboxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | +| [MultipartformdataSomePropBoxedNumber](#multipartformdatasomepropboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | +| [MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | +| [MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## Multipartformdata0Boxed +public sealed interface Multipartformdata0Boxed
+permits
+[Multipartformdata0BoxedString](#multipartformdata0boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Multipartformdata0BoxedString +public record Multipartformdata0BoxedString
+implements [Multipartformdata0Boxed](#multipartformdata0boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Multipartformdata0BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Multipartformdata0 +public static class Multipartformdata0
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + +// String validation +String validatedPayload = MultipartformdataSchema.Multipartformdata0.validate( + "a", + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    String.class
)
| +| Integer | minLength = 1 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| [Multipartformdata0BoxedString](#multipartformdata0boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Multipartformdata0Boxed](#multipartformdata0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/Code200Response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/Code200Response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md new file mode 100644 index 00000000000..c1e19a793a6 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/Code200Response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md @@ -0,0 +1,144 @@ +# Applicationjsoncharsetutf8Schema +public class Applicationjsoncharsetutf8Schema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed)
abstract sealed validated payload class | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedVoid](#applicationjsoncharsetutf8schema1boxedvoid)
boxed class to store validated null payloads | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedBoolean](#applicationjsoncharsetutf8schema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedNumber](#applicationjsoncharsetutf8schema1boxednumber)
boxed class to store validated Number payloads | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedString](#applicationjsoncharsetutf8schema1boxedstring)
boxed class to store validated String payloads | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedList](#applicationjsoncharsetutf8schema1boxedlist)
boxed class to store validated List payloads | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedMap](#applicationjsoncharsetutf8schema1boxedmap)
boxed class to store validated Map payloads | +| static class | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1](#applicationjsoncharsetutf8schema1)
schema class | + +## Applicationjsoncharsetutf8Schema1Boxed +public sealed interface Applicationjsoncharsetutf8Schema1Boxed
+permits
+[Applicationjsoncharsetutf8Schema1BoxedVoid](#applicationjsoncharsetutf8schema1boxedvoid), +[Applicationjsoncharsetutf8Schema1BoxedBoolean](#applicationjsoncharsetutf8schema1boxedboolean), +[Applicationjsoncharsetutf8Schema1BoxedNumber](#applicationjsoncharsetutf8schema1boxednumber), +[Applicationjsoncharsetutf8Schema1BoxedString](#applicationjsoncharsetutf8schema1boxedstring), +[Applicationjsoncharsetutf8Schema1BoxedList](#applicationjsoncharsetutf8schema1boxedlist), +[Applicationjsoncharsetutf8Schema1BoxedMap](#applicationjsoncharsetutf8schema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## Applicationjsoncharsetutf8Schema1BoxedVoid +public record Applicationjsoncharsetutf8Schema1BoxedVoid
+implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Applicationjsoncharsetutf8Schema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Applicationjsoncharsetutf8Schema1BoxedBoolean +public record Applicationjsoncharsetutf8Schema1BoxedBoolean
+implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Applicationjsoncharsetutf8Schema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Applicationjsoncharsetutf8Schema1BoxedNumber +public record Applicationjsoncharsetutf8Schema1BoxedNumber
+implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Applicationjsoncharsetutf8Schema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Applicationjsoncharsetutf8Schema1BoxedString +public record Applicationjsoncharsetutf8Schema1BoxedString
+implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Applicationjsoncharsetutf8Schema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Applicationjsoncharsetutf8Schema1BoxedList +public record Applicationjsoncharsetutf8Schema1BoxedList
+implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Applicationjsoncharsetutf8Schema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Applicationjsoncharsetutf8Schema1BoxedMap +public record Applicationjsoncharsetutf8Schema1BoxedMap
+implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Applicationjsoncharsetutf8Schema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Applicationjsoncharsetutf8Schema1 +public static class Applicationjsoncharsetutf8Schema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/Model200/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/Model200/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md new file mode 100644 index 00000000000..c1e19a793a6 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/Model200/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md @@ -0,0 +1,144 @@ +# Applicationjsoncharsetutf8Schema +public class Applicationjsoncharsetutf8Schema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed)
abstract sealed validated payload class | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedVoid](#applicationjsoncharsetutf8schema1boxedvoid)
boxed class to store validated null payloads | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedBoolean](#applicationjsoncharsetutf8schema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedNumber](#applicationjsoncharsetutf8schema1boxednumber)
boxed class to store validated Number payloads | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedString](#applicationjsoncharsetutf8schema1boxedstring)
boxed class to store validated String payloads | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedList](#applicationjsoncharsetutf8schema1boxedlist)
boxed class to store validated List payloads | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedMap](#applicationjsoncharsetutf8schema1boxedmap)
boxed class to store validated Map payloads | +| static class | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1](#applicationjsoncharsetutf8schema1)
schema class | + +## Applicationjsoncharsetutf8Schema1Boxed +public sealed interface Applicationjsoncharsetutf8Schema1Boxed
+permits
+[Applicationjsoncharsetutf8Schema1BoxedVoid](#applicationjsoncharsetutf8schema1boxedvoid), +[Applicationjsoncharsetutf8Schema1BoxedBoolean](#applicationjsoncharsetutf8schema1boxedboolean), +[Applicationjsoncharsetutf8Schema1BoxedNumber](#applicationjsoncharsetutf8schema1boxednumber), +[Applicationjsoncharsetutf8Schema1BoxedString](#applicationjsoncharsetutf8schema1boxedstring), +[Applicationjsoncharsetutf8Schema1BoxedList](#applicationjsoncharsetutf8schema1boxedlist), +[Applicationjsoncharsetutf8Schema1BoxedMap](#applicationjsoncharsetutf8schema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## Applicationjsoncharsetutf8Schema1BoxedVoid +public record Applicationjsoncharsetutf8Schema1BoxedVoid
+implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Applicationjsoncharsetutf8Schema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Applicationjsoncharsetutf8Schema1BoxedBoolean +public record Applicationjsoncharsetutf8Schema1BoxedBoolean
+implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Applicationjsoncharsetutf8Schema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Applicationjsoncharsetutf8Schema1BoxedNumber +public record Applicationjsoncharsetutf8Schema1BoxedNumber
+implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Applicationjsoncharsetutf8Schema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Applicationjsoncharsetutf8Schema1BoxedString +public record Applicationjsoncharsetutf8Schema1BoxedString
+implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Applicationjsoncharsetutf8Schema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Applicationjsoncharsetutf8Schema1BoxedList +public record Applicationjsoncharsetutf8Schema1BoxedList
+implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Applicationjsoncharsetutf8Schema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Applicationjsoncharsetutf8Schema1BoxedMap +public record Applicationjsoncharsetutf8Schema1BoxedMap
+implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Applicationjsoncharsetutf8Schema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Applicationjsoncharsetutf8Schema1 +public static class Applicationjsoncharsetutf8Schema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..122e5886047 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..122e5886047 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..122e5886047 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code202Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code202Response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..122e5886047 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code202Response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..122e5886047 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Model202/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Model202/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..122e5886047 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Model202/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..122e5886047 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..122e5886047 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..122e5886047 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..122e5886047 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/Code200Response/content/applicationxpemfile/ApplicationxpemfileSchema.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/Code200Response/content/applicationxpemfile/ApplicationxpemfileSchema.md new file mode 100644 index 00000000000..143b9fe0d17 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/Code200Response/content/applicationxpemfile/ApplicationxpemfileSchema.md @@ -0,0 +1,49 @@ +# ApplicationxpemfileSchema +public class ApplicationxpemfileSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1Boxed](#applicationxpemfileschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1BoxedString](#applicationxpemfileschema1boxedstring)
boxed class to store validated String payloads | +| static class | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1](#applicationxpemfileschema1)
schema class | + +## ApplicationxpemfileSchema1Boxed +public sealed interface ApplicationxpemfileSchema1Boxed
+permits
+[ApplicationxpemfileSchema1BoxedString](#applicationxpemfileschema1boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationxpemfileSchema1BoxedString +public record ApplicationxpemfileSchema1BoxedString
+implements [ApplicationxpemfileSchema1Boxed](#applicationxpemfileschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxpemfileSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationxpemfileSchema1 +public static class ApplicationxpemfileSchema1
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/Model200/content/applicationxpemfile/ApplicationxpemfileSchema.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/Model200/content/applicationxpemfile/ApplicationxpemfileSchema.md new file mode 100644 index 00000000000..143b9fe0d17 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/Model200/content/applicationxpemfile/ApplicationxpemfileSchema.md @@ -0,0 +1,49 @@ +# ApplicationxpemfileSchema +public class ApplicationxpemfileSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1Boxed](#applicationxpemfileschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1BoxedString](#applicationxpemfileschema1boxedstring)
boxed class to store validated String payloads | +| static class | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1](#applicationxpemfileschema1)
schema class | + +## ApplicationxpemfileSchema1Boxed +public sealed interface ApplicationxpemfileSchema1Boxed
+permits
+[ApplicationxpemfileSchema1BoxedString](#applicationxpemfileschema1boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationxpemfileSchema1BoxedString +public record ApplicationxpemfileSchema1BoxedString
+implements [ApplicationxpemfileSchema1Boxed](#applicationxpemfileschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxpemfileSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationxpemfileSchema1 +public static class ApplicationxpemfileSchema1
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..1f0f43be973 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [ApiResponseSchema1](../../../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [ApiResponseSchema.ApiResponseSchema1](../../../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..1f0f43be973 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [ApiResponseSchema1](../../../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [ApiResponseSchema.ApiResponseSchema1](../../../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..122e5886047 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..122e5886047 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..8c0ac4c578a --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [AnimalFarm1](../../../../../../../../../components/schemas/AnimalFarm.md#animalfarm) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [AnimalFarm.AnimalFarm1](../../../../../../../../../components/schemas/AnimalFarm.md#animalfarm1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..8c0ac4c578a --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [AnimalFarm1](../../../../../../../../../components/schemas/AnimalFarm.md#animalfarm) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [AnimalFarm.AnimalFarm1](../../../../../../../../../components/schemas/AnimalFarm.md#animalfarm1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..1844e5f5212 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [ArrayOfEnums1](../../../../../../../../../components/schemas/ArrayOfEnums.md#arrayofenums) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [ArrayOfEnums.ArrayOfEnums1](../../../../../../../../../components/schemas/ArrayOfEnums.md#arrayofenums1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..1844e5f5212 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [ArrayOfEnums1](../../../../../../../../../components/schemas/ArrayOfEnums.md#arrayofenums) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [ArrayOfEnums.ArrayOfEnums1](../../../../../../../../../components/schemas/ArrayOfEnums.md#arrayofenums1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..f01369f2068 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [BooleanSchema1](../../../../../../../../../components/schemas/BooleanSchema.md#booleanschema) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [BooleanSchema.BooleanSchema1](../../../../../../../../../components/schemas/BooleanSchema.md#booleanschema1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..f01369f2068 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [BooleanSchema1](../../../../../../../../../components/schemas/BooleanSchema.md#booleanschema) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [BooleanSchema.BooleanSchema1](../../../../../../../../../components/schemas/BooleanSchema.md#booleanschema1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..2607baa8830 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [ComposedOneOfDifferentTypes1](../../../../../../../../../components/schemas/ComposedOneOfDifferentTypes.md#composedoneofdifferenttypes) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1](../../../../../../../../../components/schemas/ComposedOneOfDifferentTypes.md#composedoneofdifferenttypes1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..2607baa8830 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [ComposedOneOfDifferentTypes1](../../../../../../../../../components/schemas/ComposedOneOfDifferentTypes.md#composedoneofdifferenttypes) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1](../../../../../../../../../components/schemas/ComposedOneOfDifferentTypes.md#composedoneofdifferenttypes1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..5cee5e75327 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [StringEnum1](../../../../../../../../../components/schemas/StringEnum.md#stringenum) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [StringEnum.StringEnum1](../../../../../../../../../components/schemas/StringEnum.md#stringenum1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..5cee5e75327 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [StringEnum1](../../../../../../../../../components/schemas/StringEnum.md#stringenum) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [StringEnum.StringEnum1](../../../../../../../../../components/schemas/StringEnum.md#stringenum1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..c6b3b628c02 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [Mammal1](../../../../../../../../../components/schemas/Mammal.md#mammal) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [Mammal.Mammal1](../../../../../../../../../components/schemas/Mammal.md#mammal1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..c6b3b628c02 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [Mammal1](../../../../../../../../../components/schemas/Mammal.md#mammal) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [Mammal.Mammal1](../../../../../../../../../components/schemas/Mammal.md#mammal1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..a1938be5dde --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [NumberWithValidations1](../../../../../../../../../components/schemas/NumberWithValidations.md#numberwithvalidations) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [NumberWithValidations.NumberWithValidations1](../../../../../../../../../components/schemas/NumberWithValidations.md#numberwithvalidations1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..a1938be5dde --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [NumberWithValidations1](../../../../../../../../../components/schemas/NumberWithValidations.md#numberwithvalidations) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [NumberWithValidations.NumberWithValidations1](../../../../../../../../../components/schemas/NumberWithValidations.md#numberwithvalidations1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..e11383cf962 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [ObjectModelWithRefProps1](../../../../../../../../../components/schemas/ObjectModelWithRefProps.md#objectmodelwithrefprops) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [ObjectModelWithRefProps.ObjectModelWithRefProps1](../../../../../../../../../components/schemas/ObjectModelWithRefProps.md#objectmodelwithrefprops1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..e11383cf962 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [ObjectModelWithRefProps1](../../../../../../../../../components/schemas/ObjectModelWithRefProps.md#objectmodelwithrefprops) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [ObjectModelWithRefProps.ObjectModelWithRefProps1](../../../../../../../../../components/schemas/ObjectModelWithRefProps.md#objectmodelwithrefprops1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..a70d4b832ca --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [StringSchema1](../../../../../../../../../components/schemas/StringSchema.md#stringschema) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [StringSchema.StringSchema1](../../../../../../../../../components/schemas/StringSchema.md#stringschema1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..a70d4b832ca --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [StringSchema1](../../../../../../../../../components/schemas/StringSchema.md#stringschema) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [StringSchema.StringSchema1](../../../../../../../../../components/schemas/StringSchema.md#stringschema1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/Code200Response/content/applicationoctetstream/ApplicationoctetstreamSchema.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/Code200Response/content/applicationoctetstream/ApplicationoctetstreamSchema.md new file mode 100644 index 00000000000..65fa580db40 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/Code200Response/content/applicationoctetstream/ApplicationoctetstreamSchema.md @@ -0,0 +1,28 @@ +# ApplicationoctetstreamSchema +public class ApplicationoctetstreamSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1Boxed](#applicationoctetstreamschema1boxed)
abstract sealed validated payload class | +| static class | [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1](#applicationoctetstreamschema1)
schema class | + +## ApplicationoctetstreamSchema1Boxed +public sealed interface ApplicationoctetstreamSchema1Boxed
+permits
+ +sealed interface that stores validated payloads using boxed classes + +## ApplicationoctetstreamSchema1 +public static class ApplicationoctetstreamSchema1
+extends JsonSchema + +A schema class that validates payloads + +## Description +file to download diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/Model200/content/applicationoctetstream/ApplicationoctetstreamSchema.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/Model200/content/applicationoctetstream/ApplicationoctetstreamSchema.md new file mode 100644 index 00000000000..65fa580db40 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/Model200/content/applicationoctetstream/ApplicationoctetstreamSchema.md @@ -0,0 +1,28 @@ +# ApplicationoctetstreamSchema +public class ApplicationoctetstreamSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1Boxed](#applicationoctetstreamschema1boxed)
abstract sealed validated payload class | +| static class | [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1](#applicationoctetstreamschema1)
schema class | + +## ApplicationoctetstreamSchema1Boxed +public sealed interface ApplicationoctetstreamSchema1Boxed
+permits
+ +sealed interface that stores validated payloads using boxed classes + +## ApplicationoctetstreamSchema1 +public static class ApplicationoctetstreamSchema1
+extends JsonSchema + +A schema class that validates payloads + +## Description +file to download diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..1f0f43be973 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [ApiResponseSchema1](../../../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [ApiResponseSchema.ApiResponseSchema1](../../../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..1f0f43be973 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [ApiResponseSchema1](../../../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [ApiResponseSchema.ApiResponseSchema1](../../../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..1f0f43be973 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [ApiResponseSchema1](../../../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [ApiResponseSchema.ApiResponseSchema1](../../../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..1f0f43be973 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [ApiResponseSchema1](../../../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [ApiResponseSchema.ApiResponseSchema1](../../../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code1XXResponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code1XXResponse/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..122e5886047 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code1XXResponse/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..122e5886047 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code2XXResponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code2XXResponse/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..122e5886047 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code2XXResponse/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code3XXResponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code3XXResponse/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..122e5886047 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code3XXResponse/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code4XXResponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code4XXResponse/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..122e5886047 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code4XXResponse/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code5XXResponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code5XXResponse/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..122e5886047 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code5XXResponse/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model1XX/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model1XX/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..122e5886047 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model1XX/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..122e5886047 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model2XX/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model2XX/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..122e5886047 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model2XX/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model3XX/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model3XX/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..122e5886047 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model3XX/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model4XX/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model4XX/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..122e5886047 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model4XX/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model5XX/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model5XX/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..122e5886047 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model5XX/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/foo/get/responses/CodedefaultResponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/foo/get/responses/CodedefaultResponse/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..0795164907b --- /dev/null +++ b/samples/client/petstore/java/docs/paths/foo/get/responses/CodedefaultResponse/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,133 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | +| static class | [ApplicationjsonSchema.ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder)
builder for Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchemaMap](#applicationjsonschemamap)
output class for Map payloads | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap([ApplicationjsonSchemaMap](#applicationjsonschemamap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchemaMap](#applicationjsonschemamap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + +// Map validation +ApplicationjsonSchema.ApplicationjsonSchemaMap validatedPayload = + ApplicationjsonSchema.ApplicationjsonSchema1.validate( + new ApplicationjsonSchema.ApplicationjsonSchemaMapBuilder() + .setString( + MapUtils.makeMap( + new AbstractMap.SimpleEntry( + "bar", + "a" + ) + ) + ) + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("string", [Foo.Foo1.class](../../../../../../../../../components/schemas/Foo.md#foo1))
)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchemaMap](#applicationjsonschemamap) | validate([Map<?, ?>](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) | validateAndBox([Map<?, ?>](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## ApplicationjsonSchemaMapBuilder +public class ApplicationjsonSchemaMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchemaMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | setString(Map value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, Void value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, boolean value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, String value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, int value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, float value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, long value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, double value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, List value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, Map value) | + +## ApplicationjsonSchemaMap +public static class ApplicationjsonSchemaMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [ApplicationjsonSchemaMap](#applicationjsonschemamap) | of([Map](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | +| @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["string"], | +| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/paths/foo/get/responses/ModelDefault/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/foo/get/responses/ModelDefault/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..0795164907b --- /dev/null +++ b/samples/client/petstore/java/docs/paths/foo/get/responses/ModelDefault/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,133 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | +| static class | [ApplicationjsonSchema.ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder)
builder for Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchemaMap](#applicationjsonschemamap)
output class for Map payloads | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap([ApplicationjsonSchemaMap](#applicationjsonschemamap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchemaMap](#applicationjsonschemamap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + +// Map validation +ApplicationjsonSchema.ApplicationjsonSchemaMap validatedPayload = + ApplicationjsonSchema.ApplicationjsonSchema1.validate( + new ApplicationjsonSchema.ApplicationjsonSchemaMapBuilder() + .setString( + MapUtils.makeMap( + new AbstractMap.SimpleEntry( + "bar", + "a" + ) + ) + ) + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("string", [Foo.Foo1.class](../../../../../../../../../components/schemas/Foo.md#foo1))
)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchemaMap](#applicationjsonschemamap) | validate([Map<?, ?>](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) | validateAndBox([Map<?, ?>](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## ApplicationjsonSchemaMapBuilder +public class ApplicationjsonSchemaMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchemaMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | setString(Map value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, Void value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, boolean value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, String value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, int value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, float value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, long value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, double value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, List value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, Map value) | + +## ApplicationjsonSchemaMap +public static class ApplicationjsonSchemaMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [ApplicationjsonSchemaMap](#applicationjsonschemamap) | of([Map](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | +| @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["string"], | +| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/petpetid/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..9161e29f533 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [RefPet1](../../../../../../../../../components/schemas/RefPet.md#refpet) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [RefPet.RefPet1](../../../../../../../../../components/schemas/RefPet.md#refpet1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/petpetid/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md new file mode 100644 index 00000000000..982355e1a21 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md @@ -0,0 +1,19 @@ +# ApplicationxmlSchema +public class ApplicationxmlSchema
+extends [Pet1](../../../../../../../../../components/schemas/Pet.md#pet) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | + +## ApplicationxmlSchema1 +public static class ApplicationxmlSchema1
+extends [Pet.Pet1](../../../../../../../../../components/schemas/Pet.md#pet1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/petpetid/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..9161e29f533 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [RefPet1](../../../../../../../../../components/schemas/RefPet.md#refpet) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [RefPet.RefPet1](../../../../../../../../../components/schemas/RefPet.md#refpet1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/responses/Model200/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/petpetid/get/responses/Model200/content/applicationxml/ApplicationxmlSchema.md new file mode 100644 index 00000000000..982355e1a21 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/get/responses/Model200/content/applicationxml/ApplicationxmlSchema.md @@ -0,0 +1,19 @@ +# ApplicationxmlSchema +public class ApplicationxmlSchema
+extends [Pet1](../../../../../../../../../components/schemas/Pet.md#pet) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | + +## ApplicationxmlSchema1 +public static class ApplicationxmlSchema1
+extends [Pet.Pet1](../../../../../../../../../components/schemas/Pet.md#pet1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/storeorder/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..96c3664deb4 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeorder/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [Order1](../../../../../../../../../components/schemas/Order.md#order) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [Order.Order1](../../../../../../../../../components/schemas/Order.md#order1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/storeorder/post/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md new file mode 100644 index 00000000000..2bcf70b5efd --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeorder/post/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md @@ -0,0 +1,19 @@ +# ApplicationxmlSchema +public class ApplicationxmlSchema
+extends [Order1](../../../../../../../../../components/schemas/Order.md#order) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | + +## ApplicationxmlSchema1 +public static class ApplicationxmlSchema1
+extends [Order.Order1](../../../../../../../../../components/schemas/Order.md#order1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/storeorder/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..96c3664deb4 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeorder/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [Order1](../../../../../../../../../components/schemas/Order.md#order) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [Order.Order1](../../../../../../../../../components/schemas/Order.md#order1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/responses/Model200/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/storeorder/post/responses/Model200/content/applicationxml/ApplicationxmlSchema.md new file mode 100644 index 00000000000..2bcf70b5efd --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeorder/post/responses/Model200/content/applicationxml/ApplicationxmlSchema.md @@ -0,0 +1,19 @@ +# ApplicationxmlSchema +public class ApplicationxmlSchema
+extends [Order1](../../../../../../../../../components/schemas/Order.md#order) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | + +## ApplicationxmlSchema1 +public static class ApplicationxmlSchema1
+extends [Order.Order1](../../../../../../../../../components/schemas/Order.md#order1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..96c3664deb4 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [Order1](../../../../../../../../../components/schemas/Order.md#order) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [Order.Order1](../../../../../../../../../components/schemas/Order.md#order1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md new file mode 100644 index 00000000000..2bcf70b5efd --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md @@ -0,0 +1,19 @@ +# ApplicationxmlSchema +public class ApplicationxmlSchema
+extends [Order1](../../../../../../../../../components/schemas/Order.md#order) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | + +## ApplicationxmlSchema1 +public static class ApplicationxmlSchema1
+extends [Order.Order1](../../../../../../../../../components/schemas/Order.md#order1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..96c3664deb4 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [Order1](../../../../../../../../../components/schemas/Order.md#order) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [Order.Order1](../../../../../../../../../components/schemas/Order.md#order1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Model200/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Model200/content/applicationxml/ApplicationxmlSchema.md new file mode 100644 index 00000000000..2bcf70b5efd --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Model200/content/applicationxml/ApplicationxmlSchema.md @@ -0,0 +1,19 @@ +# ApplicationxmlSchema +public class ApplicationxmlSchema
+extends [Order1](../../../../../../../../../components/schemas/Order.md#order) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | + +## ApplicationxmlSchema1 +public static class ApplicationxmlSchema1
+extends [Order.Order1](../../../../../../../../../components/schemas/Order.md#order1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..d6804ae2058 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,49 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md new file mode 100644 index 00000000000..3a80c9bf06d --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md @@ -0,0 +1,49 @@ +# ApplicationxmlSchema +public class ApplicationxmlSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationxmlSchema.ApplicationxmlSchema1Boxed](#applicationxmlschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationxmlSchema.ApplicationxmlSchema1BoxedString](#applicationxmlschema1boxedstring)
boxed class to store validated String payloads | +| static class | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | + +## ApplicationxmlSchema1Boxed +public sealed interface ApplicationxmlSchema1Boxed
+permits
+[ApplicationxmlSchema1BoxedString](#applicationxmlschema1boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationxmlSchema1BoxedString +public record ApplicationxmlSchema1BoxedString
+implements [ApplicationxmlSchema1Boxed](#applicationxmlschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxmlSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationxmlSchema1 +public static class ApplicationxmlSchema1
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/headers/xexpiresafter/XExpiresAfterSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/headers/xexpiresafter/XExpiresAfterSchema.md new file mode 100644 index 00000000000..3c127ce1e5a --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/headers/xexpiresafter/XExpiresAfterSchema.md @@ -0,0 +1,49 @@ +# XExpiresAfterSchema +public class XExpiresAfterSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [XExpiresAfterSchema.XExpiresAfterSchema1Boxed](#xexpiresafterschema1boxed)
abstract sealed validated payload class | +| record | [XExpiresAfterSchema.XExpiresAfterSchema1BoxedString](#xexpiresafterschema1boxedstring)
boxed class to store validated String payloads | +| static class | [XExpiresAfterSchema.XExpiresAfterSchema1](#xexpiresafterschema1)
schema class | + +## XExpiresAfterSchema1Boxed +public sealed interface XExpiresAfterSchema1Boxed
+permits
+[XExpiresAfterSchema1BoxedString](#xexpiresafterschema1boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## XExpiresAfterSchema1BoxedString +public record XExpiresAfterSchema1BoxedString
+implements [XExpiresAfterSchema1Boxed](#xexpiresafterschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| XExpiresAfterSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## XExpiresAfterSchema1 +public static class XExpiresAfterSchema1
+extends DateTimeJsonSchema.DateTimeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.DateTimeJsonSchema.DateTimeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/headers/xratelimit/content/applicationjson/XRateLimitSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/headers/xratelimit/content/applicationjson/XRateLimitSchema.md new file mode 100644 index 00000000000..6a322ac2bc7 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/headers/xratelimit/content/applicationjson/XRateLimitSchema.md @@ -0,0 +1,49 @@ +# XRateLimitSchema +public class XRateLimitSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [XRateLimitSchema.XRateLimitSchema1Boxed](#xratelimitschema1boxed)
abstract sealed validated payload class | +| record | [XRateLimitSchema.XRateLimitSchema1BoxedNumber](#xratelimitschema1boxednumber)
boxed class to store validated Number payloads | +| static class | [XRateLimitSchema.XRateLimitSchema1](#xratelimitschema1)
schema class | + +## XRateLimitSchema1Boxed +public sealed interface XRateLimitSchema1Boxed
+permits
+[XRateLimitSchema1BoxedNumber](#xratelimitschema1boxednumber) + +sealed interface that stores validated payloads using boxed classes + +## XRateLimitSchema1BoxedNumber +public record XRateLimitSchema1BoxedNumber
+implements [XRateLimitSchema1Boxed](#xratelimitschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| XRateLimitSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## XRateLimitSchema1 +public static class XRateLimitSchema1
+extends Int32JsonSchema.Int32JsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.Int32JsonSchema.Int32JsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..d6804ae2058 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,49 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/Model200/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/Model200/content/applicationxml/ApplicationxmlSchema.md new file mode 100644 index 00000000000..3a80c9bf06d --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/Model200/content/applicationxml/ApplicationxmlSchema.md @@ -0,0 +1,49 @@ +# ApplicationxmlSchema +public class ApplicationxmlSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationxmlSchema.ApplicationxmlSchema1Boxed](#applicationxmlschema1boxed)
abstract sealed validated payload class | +| record | [ApplicationxmlSchema.ApplicationxmlSchema1BoxedString](#applicationxmlschema1boxedstring)
boxed class to store validated String payloads | +| static class | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | + +## ApplicationxmlSchema1Boxed +public sealed interface ApplicationxmlSchema1Boxed
+permits
+[ApplicationxmlSchema1BoxedString](#applicationxmlschema1boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationxmlSchema1BoxedString +public record ApplicationxmlSchema1BoxedString
+implements [ApplicationxmlSchema1Boxed](#applicationxmlschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxmlSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationxmlSchema1 +public static class ApplicationxmlSchema1
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/Model200/headers/xexpiresafter/XExpiresAfterSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/Model200/headers/xexpiresafter/XExpiresAfterSchema.md new file mode 100644 index 00000000000..3c127ce1e5a --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/Model200/headers/xexpiresafter/XExpiresAfterSchema.md @@ -0,0 +1,49 @@ +# XExpiresAfterSchema +public class XExpiresAfterSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [XExpiresAfterSchema.XExpiresAfterSchema1Boxed](#xexpiresafterschema1boxed)
abstract sealed validated payload class | +| record | [XExpiresAfterSchema.XExpiresAfterSchema1BoxedString](#xexpiresafterschema1boxedstring)
boxed class to store validated String payloads | +| static class | [XExpiresAfterSchema.XExpiresAfterSchema1](#xexpiresafterschema1)
schema class | + +## XExpiresAfterSchema1Boxed +public sealed interface XExpiresAfterSchema1Boxed
+permits
+[XExpiresAfterSchema1BoxedString](#xexpiresafterschema1boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## XExpiresAfterSchema1BoxedString +public record XExpiresAfterSchema1BoxedString
+implements [XExpiresAfterSchema1Boxed](#xexpiresafterschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| XExpiresAfterSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## XExpiresAfterSchema1 +public static class XExpiresAfterSchema1
+extends DateTimeJsonSchema.DateTimeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.DateTimeJsonSchema.DateTimeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/Model200/headers/xratelimit/content/applicationjson/XRateLimitSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/Model200/headers/xratelimit/content/applicationjson/XRateLimitSchema.md new file mode 100644 index 00000000000..6a322ac2bc7 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/Model200/headers/xratelimit/content/applicationjson/XRateLimitSchema.md @@ -0,0 +1,49 @@ +# XRateLimitSchema +public class XRateLimitSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | +| ----------------- | ---------------------- | +| sealed interface | [XRateLimitSchema.XRateLimitSchema1Boxed](#xratelimitschema1boxed)
abstract sealed validated payload class | +| record | [XRateLimitSchema.XRateLimitSchema1BoxedNumber](#xratelimitschema1boxednumber)
boxed class to store validated Number payloads | +| static class | [XRateLimitSchema.XRateLimitSchema1](#xratelimitschema1)
schema class | + +## XRateLimitSchema1Boxed +public sealed interface XRateLimitSchema1Boxed
+permits
+[XRateLimitSchema1BoxedNumber](#xratelimitschema1boxednumber) + +sealed interface that stores validated payloads using boxed classes + +## XRateLimitSchema1BoxedNumber +public record XRateLimitSchema1BoxedNumber
+implements [XRateLimitSchema1Boxed](#xratelimitschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| XRateLimitSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## XRateLimitSchema1 +public static class XRateLimitSchema1
+extends Int32JsonSchema.Int32JsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.Int32JsonSchema.Int32JsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userusername/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/userusername/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..755157ca72a --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userusername/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [User1](../../../../../../../../../components/schemas/User.md#user) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [User.User1](../../../../../../../../../components/schemas/User.md#user1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/userusername/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/userusername/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md new file mode 100644 index 00000000000..3c1d62f3db3 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userusername/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md @@ -0,0 +1,19 @@ +# ApplicationxmlSchema +public class ApplicationxmlSchema
+extends [User1](../../../../../../../../../components/schemas/User.md#user) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | + +## ApplicationxmlSchema1 +public static class ApplicationxmlSchema1
+extends [User.User1](../../../../../../../../../components/schemas/User.md#user1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/userusername/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/userusername/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..755157ca72a --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userusername/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [User1](../../../../../../../../../components/schemas/User.md#user) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [User.User1](../../../../../../../../../components/schemas/User.md#user1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/userusername/get/responses/Model200/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/userusername/get/responses/Model200/content/applicationxml/ApplicationxmlSchema.md new file mode 100644 index 00000000000..3c1d62f3db3 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userusername/get/responses/Model200/content/applicationxml/ApplicationxmlSchema.md @@ -0,0 +1,19 @@ +# ApplicationxmlSchema +public class ApplicationxmlSchema
+extends [User1](../../../../../../../../../components/schemas/User.md#user) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- abstract 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 | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | + +## ApplicationxmlSchema1 +public static class ApplicationxmlSchema1
+extends [User.User1](../../../../../../../../../components/schemas/User.md#user1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/HeadersWithNoBody.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/HeadersWithNoBody.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/RefSuccessDescriptionOnly.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/RefSuccessDescriptionOnly.java new file mode 100644 index 00000000000..13509546a1f --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/RefSuccessDescriptionOnly.java @@ -0,0 +1,6 @@ +package org.openapijsonschematools.client.components.responses; + + +public class RefSuccessDescriptionOnly extends SuccessDescriptionOnly { + public static class RefSuccessDescriptionOnly1 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/refsuccessfulxmlandjsonarrayofpet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/RefSuccessfulXmlAndJsonArrayOfPet.java similarity index 51% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/refsuccessfulxmlandjsonarrayofpet.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/RefSuccessfulXmlAndJsonArrayOfPet.java index 5317b7db17d..c4276b6db9c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/refsuccessfulxmlandjsonarrayofpet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/RefSuccessfulXmlAndJsonArrayOfPet.java @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.components.responses; -public class RefSuccessfulXmlAndJsonArrayOfPet extends successfulxmlandjsonarrayofpet { - public static class RefSuccessfulXmlAndJsonArrayOfPet1 extends successfulxmlandjsonarrayofpet1 {} +public class RefSuccessfulXmlAndJsonArrayOfPet extends SuccessfulXmlAndJsonArrayOfPet { + public static class RefSuccessfulXmlAndJsonArrayOfPet1 extends SuccessfulXmlAndJsonArrayOfPet1 {} } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successdescriptiononly.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessDescriptionOnly.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successdescriptiononly.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessDescriptionOnly.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessInlineContentAndHeader.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessInlineContentAndHeader.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successwithjsonapiresponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessWithJsonApiResponse.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successwithjsonapiresponse.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessWithJsonApiResponse.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessfulXmlAndJsonArrayOfPet.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessfulXmlAndJsonArrayOfPet.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/refsuccessdescriptiononly.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/refsuccessdescriptiononly.java deleted file mode 100644 index f3e4e93529d..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/refsuccessdescriptiononly.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.openapijsonschematools.client.components.responses; - - -public class RefSuccessDescriptionOnly extends successdescriptiononly { - public static class RefSuccessDescriptionOnly1 extends successdescriptiononly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java similarity index 96% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/response200.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java index e997ec446d5..a463e573539 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.anotherfakedummy.patch.responses.response200.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.anotherfakedummy.patch.responses.code200response.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java index 4140a2dea28..8e0f8a56f68 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.anotherfakedummy.patch.responses.response200.content.applicationjson; +package org.openapijsonschematools.client.paths.anotherfakedummy.patch.responses.code200response.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.components.schemas.Client; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/Code200Response.java new file mode 100644 index 00000000000..4255444e844 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/Code200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.commonparamsubdir.delete.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class Model200 extends SuccessDescriptionOnly { + public static class Model2001 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/response200.java deleted file mode 100644 index 8c7d1a6f05e..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/response200.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir.delete.responses; - -import org.openapijsonschematools.client.components.responses.successdescriptiononly; - -public class Model200 extends successdescriptiononly { - public static class Model2001 extends successdescriptiononly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/Code200Response.java new file mode 100644 index 00000000000..a78fe2739a9 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/Code200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.commonparamsubdir.get.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class Model200 extends SuccessDescriptionOnly { + public static class Model2001 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/response200.java deleted file mode 100644 index e112f44bf2d..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/response200.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir.get.responses; - -import org.openapijsonschematools.client.components.responses.successdescriptiononly; - -public class Model200 extends successdescriptiononly { - public static class Model2001 extends successdescriptiononly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/Code200Response.java new file mode 100644 index 00000000000..868c20bcf15 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/Code200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.commonparamsubdir.post.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class Model200 extends SuccessDescriptionOnly { + public static class Model2001 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/response200.java deleted file mode 100644 index 19d4e311626..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/response200.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir.post.responses; - -import org.openapijsonschematools.client.components.responses.successdescriptiononly; - -public class Model200 extends successdescriptiononly { - public static class Model2001 extends successdescriptiononly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/Code200Response.java new file mode 100644 index 00000000000..4e4a74764d2 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/Code200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.fake.delete.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class Model200 extends SuccessDescriptionOnly { + public static class Model2001 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/response200.java deleted file mode 100644 index 83feac31dac..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/response200.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.delete.responses; - -import org.openapijsonschematools.client.components.responses.successdescriptiononly; - -public class Model200 extends successdescriptiononly { - public static class Model2001 extends successdescriptiononly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code200Response.java new file mode 100644 index 00000000000..14660ea2527 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.fake.get.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class Model200 extends SuccessDescriptionOnly { + public static class Model2001 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/response404.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code404Response.java similarity index 96% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/response404.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code404Response.java index 0cb4ab6d45c..b9cc4ec0cfa 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/response404.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code404Response.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fake.get.responses.response404.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fake.get.responses.code404response.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/response404/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.java similarity index 94% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/response404/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.java index fbf4bc44bc1..b9a4b76bd20 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/response404/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.fake.get.responses.response404.content.applicationjson; +package org.openapijsonschematools.client.paths.fake.get.responses.code404response.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.schemas.MapJsonSchema; import org.openapijsonschematools.client.schemas.validation.FrozenMap; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/response200.java deleted file mode 100644 index 0f90d9a6062..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/response200.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.get.responses; - -import org.openapijsonschematools.client.components.responses.successdescriptiononly; - -public class Model200 extends successdescriptiononly { - public static class Model2001 extends successdescriptiononly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/Code200Response.java similarity index 96% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/response200.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/Code200Response.java index 4aaf876e770..0df0d93962f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/Code200Response.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fake.patch.responses.response200.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fake.patch.responses.code200response.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java similarity index 93% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java index ec4863611be..f61bbf1fe44 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.fake.patch.responses.response200.content.applicationjson; +package org.openapijsonschematools.client.paths.fake.patch.responses.code200response.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.components.schemas.Client; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code200Response.java new file mode 100644 index 00000000000..bd7d88d77f0 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.fake.post.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class Model200 extends SuccessDescriptionOnly { + public static class Model2001 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/response404.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code404Response.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/response404.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code404Response.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/response200.java deleted file mode 100644 index fc9ec7f4fe6..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/response200.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.post.responses; - -import org.openapijsonschematools.client.components.responses.successdescriptiononly; - -public class Model200 extends successdescriptiononly { - public static class Model2001 extends successdescriptiononly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java similarity index 95% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/response200.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java index e26a86018fc..02ab1d611f0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.responses.response200.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java similarity index 89% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java index 9f831b7d11a..365fe1691e1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.responses.response200.content.applicationjson; +package org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.responses.code200response.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.components.schemas.AdditionalPropertiesWithArrayOfEnums; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/Code200Response.java new file mode 100644 index 00000000000..755cc1d8ce7 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/Code200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.fakebodywithfileschema.put.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class Model200 extends SuccessDescriptionOnly { + public static class Model2001 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/response200.java deleted file mode 100644 index 9cb2347d015..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/response200.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fakebodywithfileschema.put.responses; - -import org.openapijsonschematools.client.components.responses.successdescriptiononly; - -public class Model200 extends successdescriptiononly { - public static class Model2001 extends successdescriptiononly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/Code200Response.java new file mode 100644 index 00000000000..c693a26dbd2 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/Code200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class Model200 extends SuccessDescriptionOnly { + public static class Model2001 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/response200.java deleted file mode 100644 index aac9d49dd51..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/response200.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.responses; - -import org.openapijsonschematools.client.components.responses.successdescriptiononly; - -public class Model200 extends successdescriptiononly { - public static class Model2001 extends successdescriptiononly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/Code200Response.java new file mode 100644 index 00000000000..03e7c793fa1 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/Code200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class Model200 extends SuccessDescriptionOnly { + public static class Model2001 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/response200.java deleted file mode 100644 index 21f67a09f96..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/response200.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.responses; - -import org.openapijsonschematools.client.components.responses.successdescriptiononly; - -public class Model200 extends successdescriptiononly { - public static class Model2001 extends successdescriptiononly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java similarity index 95% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/response200.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java index 8c6a418e95b..51c7221987e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakeclassnametest.patch.responses.response200.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fakeclassnametest.patch.responses.code200response.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java index 3403aec0de0..ba79861d2e9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.fakeclassnametest.patch.responses.response200.content.applicationjson; +package org.openapijsonschematools.client.paths.fakeclassnametest.patch.responses.code200response.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.components.schemas.Client; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/Code200Response.java new file mode 100644 index 00000000000..50b021fe3ed --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/Code200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class Model200 extends SuccessDescriptionOnly { + public static class Model2001 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/responsedefault.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/responsedefault.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/response200.java deleted file mode 100644 index 87d6e5fe01c..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/response200.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses; - -import org.openapijsonschematools.client.components.responses.successdescriptiononly; - -public class Model200 extends successdescriptiononly { - public static class Model2001 extends successdescriptiononly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java similarity index 96% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/response200.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java index b44213ec23f..5fcbd8e215e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakehealth.get.responses.response200.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fakehealth.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java index dc1f2dc8d3d..e9d84e9a57a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.fakehealth.get.responses.response200.content.applicationjson; +package org.openapijsonschematools.client.paths.fakehealth.get.responses.code200response.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.components.schemas.HealthCheckResult; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/Code200Response.java new file mode 100644 index 00000000000..bb651f43688 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/Code200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class Model200 extends SuccessDescriptionOnly { + public static class Model2001 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/response200.java deleted file mode 100644 index e3f0055318a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/response200.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.responses; - -import org.openapijsonschematools.client.components.responses.successdescriptiononly; - -public class Model200 extends successdescriptiononly { - public static class Model2001 extends successdescriptiononly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/Code200Response.java similarity index 93% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/Code200Response.java index 95c3fd1fa3c..1dd23e4aaf2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/Code200Response.java @@ -5,8 +5,8 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.response200.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.response200.content.multipartformdata.MultipartformdataSchema; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.code200response.content.multipartformdata.MultipartformdataSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java similarity index 99% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java index 0628b53de68..8edb735d783 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.response200.content.applicationjson; +package org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.code200response.content.applicationjson; import java.time.LocalDate; import java.time.ZonedDateTime; import java.util.ArrayList; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.java similarity index 99% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.java index 682ac451f33..b097d422eeb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.response200.content.multipartformdata; +package org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.code200response.content.multipartformdata; import java.time.LocalDate; import java.time.ZonedDateTime; import java.util.ArrayList; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/Code200Response.java new file mode 100644 index 00000000000..7f228130188 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/Code200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.fakejsonformdata.get.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class Model200 extends SuccessDescriptionOnly { + public static class Model2001 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/response200.java deleted file mode 100644 index 69a629211bb..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/response200.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fakejsonformdata.get.responses; - -import org.openapijsonschematools.client.components.responses.successdescriptiononly; - -public class Model200 extends successdescriptiononly { - public static class Model2001 extends successdescriptiononly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/Code200Response.java new file mode 100644 index 00000000000..2b4ad95f1d3 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/Code200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.fakejsonpatch.patch.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class Model200 extends SuccessDescriptionOnly { + public static class Model2001 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/response200.java deleted file mode 100644 index 7f81391e86f..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/response200.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fakejsonpatch.patch.responses; - -import org.openapijsonschematools.client.components.responses.successdescriptiononly; - -public class Model200 extends successdescriptiononly { - public static class Model2001 extends successdescriptiononly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java similarity index 95% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/response200.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java index ce938aa3d95..41b9ccbf7fc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.responses.response200.content.applicationjsoncharsetutf8.Applicationjsoncharsetutf8Schema; +import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.responses.code200response.content.applicationjsoncharsetutf8.Applicationjsoncharsetutf8Schema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/response200/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/response200/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java index ad286ed4678..8e4d5dbf902 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/response200/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.fakejsonwithcharset.post.responses.response200.content.applicationjsoncharsetutf8; +package org.openapijsonschematools.client.paths.fakejsonwithcharset.post.responses.code200response.content.applicationjsoncharsetutf8; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java similarity index 95% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/response200.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java index 50a1914e69f..8a95c3e79a1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.responses.response200.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java similarity index 90% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java index 61ea6619cf0..68f600e23d6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.responses.response200.content.applicationjson; +package org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.responses.code200response.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code200Response.java similarity index 95% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response200.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code200Response.java index 6cb2092d8a3..02d52f09998 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code200Response.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.response200.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response202.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java similarity index 95% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response202.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java index 05492834ba6..8776b45feea 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response202.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.response202.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.code202response.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java index 7525189004e..0a2a9520c57 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.response200.content.applicationjson; +package org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.code200response.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response202/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response202/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.java index 15a07422ebe..53ce26bfe16 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/response202/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.response202.content.applicationjson; +package org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.code202response.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java similarity index 95% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/response200.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java index 2d98a555c6c..49cd265aefa 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.responses.response200.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java index 19f1aaf5196..19cca1a1b80 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.fakemultiplesecurities.get.responses.response200.content.applicationjson; +package org.openapijsonschematools.client.paths.fakemultiplesecurities.get.responses.code200response.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/Code200Response.java new file mode 100644 index 00000000000..f7c61691fa9 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/Code200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.fakeobjinquery.get.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class Model200 extends SuccessDescriptionOnly { + public static class Model2001 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/response200.java deleted file mode 100644 index af2ff264e0a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/response200.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeobjinquery.get.responses; - -import org.openapijsonschematools.client.components.responses.successdescriptiononly; - -public class Model200 extends successdescriptiononly { - public static class Model2001 extends successdescriptiononly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java similarity index 95% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/response200.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java index eb5fb617898..1e01d16adff 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.responses.response200.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java similarity index 90% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java index afe56ce05c6..bb2a30a2a2e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.responses.response200.content.applicationjson; +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.responses.code200response.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java similarity index 95% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/response200.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java index 24aef9c5e6c..5bb65dee19d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakepemcontenttype.get.responses.response200.content.applicationxpemfile.ApplicationxpemfileSchema; +import org.openapijsonschematools.client.paths.fakepemcontenttype.get.responses.code200response.content.applicationxpemfile.ApplicationxpemfileSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/response200/content/applicationxpemfile/ApplicationxpemfileSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/response200/content/applicationxpemfile/ApplicationxpemfileSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.java index 8063adce1e0..0d12b96b19a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/response200/content/applicationxpemfile/ApplicationxpemfileSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.fakepemcontenttype.get.responses.response200.content.applicationxpemfile; +package org.openapijsonschematools.client.paths.fakepemcontenttype.get.responses.code200response.content.applicationxpemfile; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.schemas.StringJsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.java similarity index 95% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/response200.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.java index fcd30268d18..c9424ae3f6d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.responses.response200.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java similarity index 89% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java index 88c88b000e0..42e57377e16 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.responses.response200.content.applicationjson; +package org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.responses.code200response.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.components.schemas.ApiResponseSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java similarity index 95% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/response200.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java index ad864d04712..caf035500b4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.responses.response200.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java similarity index 90% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java index a899c3992b0..b9b66780181 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.responses.response200.content.applicationjson; +package org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.responses.code200response.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/response303.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code303Response.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/response303.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code303Response.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/response3xx.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code3XXResponse.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/response3xx.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code3XXResponse.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/Code200Response.java new file mode 100644 index 00000000000..8bfd78fc751 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/Code200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.fakerefobjinquery.get.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class Model200 extends SuccessDescriptionOnly { + public static class Model2001 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/response200.java deleted file mode 100644 index ba3dd8c87c9..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/response200.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefobjinquery.get.responses; - -import org.openapijsonschematools.client.components.responses.successdescriptiononly; - -public class Model200 extends successdescriptiononly { - public static class Model2001 extends successdescriptiononly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java similarity index 95% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/response200.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java index ea798f50d7e..b8f35bbdfca 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.responses.response200.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java index 6d432a25447..3183986a750 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.fakerefsarraymodel.post.responses.response200.content.applicationjson; +package org.openapijsonschematools.client.paths.fakerefsarraymodel.post.responses.code200response.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.components.schemas.AnimalFarm; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java similarity index 95% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/response200.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java index 5b5555ee12d..c004219b138 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.responses.response200.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java index fa90b99901d..aae5071d1b6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.responses.response200.content.applicationjson; +package org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.responses.code200response.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.components.schemas.ArrayOfEnums; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java similarity index 96% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/response200.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java index c6b5a3190c8..0c283d675b7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakerefsboolean.post.responses.response200.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fakerefsboolean.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java index 46e1e12787b..064050b09bf 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.fakerefsboolean.post.responses.response200.content.applicationjson; +package org.openapijsonschematools.client.paths.fakerefsboolean.post.responses.code200response.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.components.schemas.BooleanSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java similarity index 94% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/response200.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java index de6c4ffd912..22b74234b93 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.responses.response200.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java similarity index 89% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java index 577f97e58df..075b7ade4dd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.responses.response200.content.applicationjson; +package org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.responses.code200response.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.components.schemas.ComposedOneOfDifferentTypes; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java similarity index 96% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/response200.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java index b8a270e0e36..ee94210ef37 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakerefsenum.post.responses.response200.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fakerefsenum.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java index 82b4434b894..f32e80d609f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.fakerefsenum.post.responses.response200.content.applicationjson; +package org.openapijsonschematools.client.paths.fakerefsenum.post.responses.code200response.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.components.schemas.StringEnum; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java similarity index 96% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/response200.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java index 5af5e1d0149..864cacb9f44 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakerefsmammal.post.responses.response200.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fakerefsmammal.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java index a08ee0f2c39..89dac1bf71a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.fakerefsmammal.post.responses.response200.content.applicationjson; +package org.openapijsonschematools.client.paths.fakerefsmammal.post.responses.code200response.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.components.schemas.Mammal; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java similarity index 96% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/response200.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java index 28a92d44164..a86d5ef4b0b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakerefsnumber.post.responses.response200.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fakerefsnumber.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java index 4b5413ba9d6..735f78f40f2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.fakerefsnumber.post.responses.response200.content.applicationjson; +package org.openapijsonschematools.client.paths.fakerefsnumber.post.responses.code200response.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.components.schemas.NumberWithValidations; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java similarity index 95% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/response200.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java index 6757c91d959..7588d3f7683 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.responses.response200.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java similarity index 90% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java index 55b36e6e1bf..ae20e625adc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.responses.response200.content.applicationjson; +package org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.responses.code200response.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.components.schemas.ObjectModelWithRefProps; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java similarity index 96% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/response200.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java index d278cb3d95d..574015d00d9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakerefsstring.post.responses.response200.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fakerefsstring.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java index a6ccbbf4963..9f140dc31c3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.fakerefsstring.post.responses.response200.content.applicationjson; +package org.openapijsonschematools.client.paths.fakerefsstring.post.responses.code200response.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.components.schemas.StringSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/response200.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/Code200Response.java new file mode 100644 index 00000000000..ec73dec6301 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/Code200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.faketestqueryparamters.put.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class Model200 extends SuccessDescriptionOnly { + public static class Model2001 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/response200.java deleted file mode 100644 index cdbef92f3fe..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/response200.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.faketestqueryparamters.put.responses; - -import org.openapijsonschematools.client.components.responses.successdescriptiononly; - -public class Model200 extends successdescriptiononly { - public static class Model2001 extends successdescriptiononly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java similarity index 95% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/response200.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java index 8ba8939c3b5..12f5ea50532 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.responses.response200.content.applicationoctetstream.ApplicationoctetstreamSchema; +import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.responses.code200response.content.applicationoctetstream.ApplicationoctetstreamSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/response200/content/applicationoctetstream/ApplicationoctetstreamSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/response200/content/applicationoctetstream/ApplicationoctetstreamSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.java index 88c3716da57..4560be3af67 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/response200/content/applicationoctetstream/ApplicationoctetstreamSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.responses.response200.content.applicationoctetstream; +package org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.responses.code200response.content.applicationoctetstream; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.schemas.StringJsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java similarity index 96% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/response200.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java index 2034ad355c3..273538cc728 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakeuploadfile.post.responses.response200.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fakeuploadfile.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java index 1cf13d84d64..efbbe4fc405 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.fakeuploadfile.post.responses.response200.content.applicationjson; +package org.openapijsonschematools.client.paths.fakeuploadfile.post.responses.code200response.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.components.schemas.ApiResponseSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java similarity index 96% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/response200.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java index 88ce32346b8..72e5f3561bb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakeuploadfiles.post.responses.response200.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fakeuploadfiles.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java index 2a8dca40c8b..df28450acdb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.fakeuploadfiles.post.responses.response200.content.applicationjson; +package org.openapijsonschematools.client.paths.fakeuploadfiles.post.responses.code200response.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.components.schemas.ApiResponseSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response1xx.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code1XXResponse.java similarity index 95% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response1xx.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code1XXResponse.java index 1a81293ffba..e467de7ba2b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response1xx.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code1XXResponse.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.response1xx.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code1xxresponse.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java similarity index 95% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response200.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java index 47ee22cc055..9a1a305d4a9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.response200.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response2xx.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code2XXResponse.java similarity index 95% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response2xx.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code2XXResponse.java index 0385dd0e14c..a2e2bd0c1fc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response2xx.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code2XXResponse.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.response2xx.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code2xxresponse.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response3xx.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code3XXResponse.java similarity index 95% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response3xx.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code3XXResponse.java index 914afec9f27..15be2f9d42a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response3xx.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code3XXResponse.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.response3xx.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code3xxresponse.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response4xx.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code4XXResponse.java similarity index 95% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response4xx.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code4XXResponse.java index ac84139ed55..97e8bbae70a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response4xx.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code4XXResponse.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.response4xx.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code4xxresponse.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response5xx.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code5XXResponse.java similarity index 95% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response5xx.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code5XXResponse.java index 1652a66e98e..edf756f151f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response5xx.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code5XXResponse.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.response5xx.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code5xxresponse.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response3xx/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code1xxresponse/content/applicationjson/ApplicationjsonSchema.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response3xx/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code1xxresponse/content/applicationjson/ApplicationjsonSchema.java index f57172c4538..bc6d5118003 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response3xx/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code1xxresponse/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.response3xx.content.applicationjson; +package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code1xxresponse.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response1xx/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response1xx/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java index 709f61b704d..7e12b7b922a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response1xx/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.response1xx.content.applicationjson; +package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code200response.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicationjson/ApplicationjsonSchema.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicationjson/ApplicationjsonSchema.java index 46fd0782efb..a5d19b2fa85 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.response200.content.applicationjson; +package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code2xxresponse.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response2xx/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicationjson/ApplicationjsonSchema.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response2xx/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicationjson/ApplicationjsonSchema.java index ecd3163b3c7..3b4a18033e7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response2xx/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.response2xx.content.applicationjson; +package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code3xxresponse.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..346bbf338f9 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code4xxresponse.content.applicationjson; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; + +public class ApplicationjsonSchema extends AnyTypeJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class ApplicationjsonSchema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..6b9394e4858 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code5xxresponse.content.applicationjson; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; + +public class ApplicationjsonSchema extends AnyTypeJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class ApplicationjsonSchema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response4xx/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response4xx/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 5104a0858a3..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response4xx/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.response4xx.content.applicationjson; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; - -public class ApplicationjsonSchema extends AnyTypeJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class ApplicationjsonSchema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response5xx/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response5xx/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index e5b1fafe997..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/response5xx/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.response5xx.content.applicationjson; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; - -public class ApplicationjsonSchema extends AnyTypeJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class ApplicationjsonSchema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/responsedefault.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java similarity index 96% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/responsedefault.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java index cf3a8e804cd..6ee73132681 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/responsedefault.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.foo.get.responses.responsedefault.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.foo.get.responses.codedefaultresponse.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/responsedefault/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.java similarity index 99% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/responsedefault/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.java index 042499594a9..cefb5c067ce 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/responsedefault/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.foo.get.responses.responsedefault.content.applicationjson; +package org.openapijsonschematools.client.paths.foo.get.responses.codedefaultresponse.content.applicationjson; import java.util.ArrayList; import java.util.HashSet; import java.util.LinkedHashMap; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/get/responses/Code200Response.java new file mode 100644 index 00000000000..cda5909ba00 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/get/responses/Code200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths..get.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class Model200 extends SuccessDescriptionOnly { + public static class Model2001 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/get/responses/response200.java deleted file mode 100644 index 6caabf7a539..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/get/responses/response200.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths..get.responses; - -import org.openapijsonschematools.client.components.responses.successdescriptiononly; - -public class Model200 extends successdescriptiononly { - public static class Model2001 extends successdescriptiononly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code200Response.java new file mode 100644 index 00000000000..59ec279b77d --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.pet.post.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class Model200 extends SuccessDescriptionOnly { + public static class Model2001 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/response405.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code405Response.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/response405.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code405Response.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/response200.java deleted file mode 100644 index 012d9768a4e..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/response200.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.pet.post.responses; - -import org.openapijsonschematools.client.components.responses.successdescriptiononly; - -public class Model200 extends successdescriptiononly { - public static class Model2001 extends successdescriptiononly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response400.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code400Response.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response400.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code400Response.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response404.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code404Response.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response404.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code404Response.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response405.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code405Response.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/response405.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code405Response.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code200Response.java new file mode 100644 index 00000000000..79c2b3ac4c1 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.petfindbystatus.get.responses; + +import org.openapijsonschematools.client.components.responses.SuccessfulXmlAndJsonArrayOfPet; + +public class Model200 extends SuccessfulXmlAndJsonArrayOfPet { + public static class Model2001 extends SuccessfulXmlAndJsonArrayOfPet1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/response400.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code400Response.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/response400.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code400Response.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/response200.java deleted file mode 100644 index 9969bf22e5f..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/response200.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.petfindbystatus.get.responses; - -import org.openapijsonschematools.client.components.responses.successfulxmlandjsonarrayofpet; - -public class Model200 extends successfulxmlandjsonarrayofpet { - public static class Model2001 extends successfulxmlandjsonarrayofpet1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code200Response.java new file mode 100644 index 00000000000..c69d8a75c16 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.petfindbytags.get.responses; + +import org.openapijsonschematools.client.components.responses.RefSuccessfulXmlAndJsonArrayOfPet; + +public class Model200 extends RefSuccessfulXmlAndJsonArrayOfPet { + public static class Model2001 extends RefSuccessfulXmlAndJsonArrayOfPet1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/response400.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code400Response.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/response400.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code400Response.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/response200.java deleted file mode 100644 index 8ed6e83e094..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/response200.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.petfindbytags.get.responses; - -import org.openapijsonschematools.client.components.responses.refsuccessfulxmlandjsonarrayofpet; - -public class Model200 extends refsuccessfulxmlandjsonarrayofpet { - public static class Model2001 extends refsuccessfulxmlandjsonarrayofpet1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/response400.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/Code400Response.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/response400.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/Code400Response.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code200Response.java similarity index 94% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response200.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code200Response.java index d720bb10a95..fc12a10e42a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code200Response.java @@ -5,8 +5,8 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.petpetid.get.responses.response200.content.applicationxml.ApplicationxmlSchema; -import org.openapijsonschematools.client.paths.petpetid.get.responses.response200.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.petpetid.get.responses.code200response.content.applicationxml.ApplicationxmlSchema; +import org.openapijsonschematools.client.paths.petpetid.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response400.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code400Response.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response400.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code400Response.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response404.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code404Response.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response404.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code404Response.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java similarity index 93% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java index 0fdd18baa36..1409b9ae6dd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.petpetid.get.responses.response200.content.applicationjson; +package org.openapijsonschematools.client.paths.petpetid.get.responses.code200response.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.components.schemas.Pet; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response200/content/applicationxml/ApplicationxmlSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response200/content/applicationxml/ApplicationxmlSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java index 61e624f5cf6..2c49b59c0e5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/response200/content/applicationxml/ApplicationxmlSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.petpetid.get.responses.response200.content.applicationxml; +package org.openapijsonschematools.client.paths.petpetid.get.responses.code200response.content.applicationxml; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.components.schemas.Pet; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/response405.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/Code405Response.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/response405.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/Code405Response.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/Code200Response.java new file mode 100644 index 00000000000..5d677f34f23 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/Code200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.petpetiduploadimage.post.responses; + +import org.openapijsonschematools.client.components.responses.SuccessWithJsonApiResponse; + +public class Model200 extends SuccessWithJsonApiResponse { + public static class Model2001 extends SuccessWithJsonApiResponse1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/response200.java deleted file mode 100644 index 379ab507b44..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/response200.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetiduploadimage.post.responses; - -import org.openapijsonschematools.client.components.responses.successwithjsonapiresponse; - -public class Model200 extends successwithjsonapiresponse { - public static class Model2001 extends successwithjsonapiresponse1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/Code200Response.java new file mode 100644 index 00000000000..fac6c984526 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/Code200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.storeinventory.get.responses; + +import org.openapijsonschematools.client.components.responses.SuccessInlineContentAndHeader; + +public class Model200 extends SuccessInlineContentAndHeader { + public static class Model2001 extends SuccessInlineContentAndHeader1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/response200.java deleted file mode 100644 index fd29d4b606b..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/response200.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.storeinventory.get.responses; - -import org.openapijsonschematools.client.components.responses.successinlinecontentandheader; - -public class Model200 extends successinlinecontentandheader { - public static class Model2001 extends successinlinecontentandheader1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code200Response.java similarity index 94% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response200.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code200Response.java index 6de29200407..314b274dbf6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code200Response.java @@ -5,8 +5,8 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.storeorder.post.responses.response200.content.applicationxml.ApplicationxmlSchema; -import org.openapijsonschematools.client.paths.storeorder.post.responses.response200.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.storeorder.post.responses.code200response.content.applicationxml.ApplicationxmlSchema; +import org.openapijsonschematools.client.paths.storeorder.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response400.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code400Response.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response400.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code400Response.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java index 0f27bef136b..c7b1d3035af 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response200/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.storeorder.post.responses.response200.content.applicationjson; +package org.openapijsonschematools.client.paths.storeorder.post.responses.code200response.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.components.schemas.Order; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response200/content/applicationxml/ApplicationxmlSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response200/content/applicationxml/ApplicationxmlSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.java index 257ec58e862..d0a1692555b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/response200/content/applicationxml/ApplicationxmlSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.storeorder.post.responses.response200.content.applicationxml; +package org.openapijsonschematools.client.paths.storeorder.post.responses.code200response.content.applicationxml; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.components.schemas.Order; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/response400.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code400Response.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/response400.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code400Response.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/response404.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code404Response.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/response404.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code404Response.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code200Response.java similarity index 94% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response200.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code200Response.java index ba3b4ba6c4f..740c22b5ef3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code200Response.java @@ -5,8 +5,8 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.response200.content.applicationxml.ApplicationxmlSchema; -import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.response200.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.code200response.content.applicationxml.ApplicationxmlSchema; +import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response400.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code400Response.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response400.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code400Response.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response404.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code404Response.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response404.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code404Response.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java index f2cbf3c93c6..b1b2c0183b4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.storeorderorderid.get.responses.response200.content.applicationjson; +package org.openapijsonschematools.client.paths.storeorderorderid.get.responses.code200response.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.components.schemas.Order; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response200/content/applicationxml/ApplicationxmlSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response200/content/applicationxml/ApplicationxmlSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java index 0dbbb6fe513..91ca54812cd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/response200/content/applicationxml/ApplicationxmlSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.storeorderorderid.get.responses.response200.content.applicationxml; +package org.openapijsonschematools.client.paths.storeorderorderid.get.responses.code200response.content.applicationxml; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.components.schemas.Order; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/responsedefault.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/CodedefaultResponse.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/responsedefault.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/CodedefaultResponse.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/responsedefault.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/CodedefaultResponse.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/responsedefault.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/CodedefaultResponse.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/responsedefault.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/CodedefaultResponse.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/responsedefault.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/CodedefaultResponse.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code200Response.java similarity index 94% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code200Response.java index 3807debb122..b798f2f4db8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code200Response.java @@ -5,8 +5,8 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.userlogin.get.responses.response200.content.applicationxml.ApplicationxmlSchema; -import org.openapijsonschematools.client.paths.userlogin.get.responses.response200.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.content.applicationxml.ApplicationxmlSchema; +import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response400.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code400Response.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response400.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code400Response.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200/Headers.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/Headers.java similarity index 99% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200/Headers.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/Headers.java index 6ee38292b6a..ec8a16aa7de 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200/Headers.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/Headers.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.userlogin.get.responses.response200; +package org.openapijsonschematools.client.paths.userlogin.get.responses.code200response; import java.util.ArrayList; import java.util.HashSet; import java.util.LinkedHashMap; @@ -16,8 +16,8 @@ import org.openapijsonschematools.client.exceptions.InvalidTypeException; import org.openapijsonschematools.client.exceptions.UnsetPropertyException; import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.userlogin.get.responses.response200.headers.xexpiresafter.XExpiresAfterSchema; -import org.openapijsonschematools.client.paths.userlogin.get.responses.response200.headers.xratelimit.content.applicationjson.XRateLimitSchema; +import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers.xexpiresafter.XExpiresAfterSchema; +import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers.xratelimit.content.applicationjson.XRateLimitSchema; import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; import org.openapijsonschematools.client.schemas.GenericBuilder; import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java similarity index 93% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java index 6611ee831f7..93f4ea3148c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.userlogin.get.responses.response200.content.applicationjson; +package org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.schemas.StringJsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200/content/applicationxml/ApplicationxmlSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java similarity index 93% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200/content/applicationxml/ApplicationxmlSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java index b95e5cb8847..557f1fbe8d1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200/content/applicationxml/ApplicationxmlSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.userlogin.get.responses.response200.content.applicationxml; +package org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.content.applicationxml; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.schemas.StringJsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200/headers/xexpiresafter/XExpiresAfterSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/xexpiresafter/XExpiresAfterSchema.java similarity index 93% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200/headers/xexpiresafter/XExpiresAfterSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/xexpiresafter/XExpiresAfterSchema.java index 654c1d53c4b..13ec38f4440 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200/headers/xexpiresafter/XExpiresAfterSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/xexpiresafter/XExpiresAfterSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.userlogin.get.responses.response200.headers.xexpiresafter; +package org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers.xexpiresafter; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.schemas.DateTimeJsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200/headers/xratelimit/content/applicationjson/XRateLimitSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/XRateLimitSchema.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200/headers/xratelimit/content/applicationjson/XRateLimitSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/XRateLimitSchema.java index 048f92f8f9f..9ce160e834c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200/headers/xratelimit/content/applicationjson/XRateLimitSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/XRateLimitSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.userlogin.get.responses.response200.headers.xratelimit.content.applicationjson; +package org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers.xratelimit.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.schemas.Int32JsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/CodedefaultResponse.java new file mode 100644 index 00000000000..833cfca5714 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/CodedefaultResponse.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.userlogout.get.responses; + +import org.openapijsonschematools.client.components.responses.RefSuccessDescriptionOnly; + +public class ModelDefault extends RefSuccessDescriptionOnly { + public static class ModelDefault1 extends RefSuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/responsedefault.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/responsedefault.java deleted file mode 100644 index 1fc61a0041a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/responsedefault.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.userlogout.get.responses; - -import org.openapijsonschematools.client.components.responses.refsuccessdescriptiononly; - -public class ModelDefault extends refsuccessdescriptiononly { - public static class ModelDefault1 extends refsuccessdescriptiononly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code200Response.java new file mode 100644 index 00000000000..05d2269cd13 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.userusername.delete.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class Model200 extends SuccessDescriptionOnly { + public static class Model2001 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/response404.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code404Response.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/response404.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code404Response.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/response200.java deleted file mode 100644 index bfeaae1ba62..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/response200.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.userusername.delete.responses; - -import org.openapijsonschematools.client.components.responses.successdescriptiononly; - -public class Model200 extends successdescriptiononly { - public static class Model2001 extends successdescriptiononly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response200.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code200Response.java similarity index 94% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response200.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code200Response.java index b2f47554798..5af72fa126e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response200.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code200Response.java @@ -5,8 +5,8 @@ import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.userusername.get.responses.response200.content.applicationxml.ApplicationxmlSchema; -import org.openapijsonschematools.client.paths.userusername.get.responses.response200.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.userusername.get.responses.code200response.content.applicationxml.ApplicationxmlSchema; +import org.openapijsonschematools.client.paths.userusername.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response400.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code400Response.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response400.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code400Response.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response404.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code404Response.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response404.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code404Response.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java index 897db39b646..910120ee863 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response200/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.userusername.get.responses.response200.content.applicationjson; +package org.openapijsonschematools.client.paths.userusername.get.responses.code200response.content.applicationjson; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.components.schemas.User; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response200/content/applicationxml/ApplicationxmlSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response200/content/applicationxml/ApplicationxmlSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java index 1cfc713d97a..0d8e9cf0d9a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/response200/content/applicationxml/ApplicationxmlSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths.userusername.get.responses.response200.content.applicationxml; +package org.openapijsonschematools.client.paths.userusername.get.responses.code200response.content.applicationxml; import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.components.schemas.User; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/response400.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code400Response.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/response400.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code400Response.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/response404.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code404Response.java similarity index 100% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/response404.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code404Response.java diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java index dd82cd5e9ec..36f60186080 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java @@ -3775,8 +3775,7 @@ protected void updateComponentsFilepath(String[] pathPieces) { } } else if (pathPieces[2].equals("responses")) { // #/components/responses/SuccessWithJsonApiResponse/headers - String responseJsonPath = "#/components/responses/" + pathPieces[3]; - pathPieces[3] = toResponseModuleName(pathPieces[3], responseJsonPath); + pathPieces[3] = toResponseModuleName(pathPieces[3], jsonPath); if (pathPieces.length == 5 && pathPieces[4].equals("Headers")) { // synthetic json path @@ -3900,8 +3899,7 @@ private void updatePathsFilepath(String[] pathPieces) { return; } // #/paths/user_login/get/responses/200 -> 200 -> response_200 -> length 6 - String responseJsonPath = "#/paths/" + path + "/" + pathPieces[3] + "/responses/" + pathPieces[5]; - pathPieces[5] = toResponseModuleName(pathPieces[5], responseJsonPath); + pathPieces[5] = toResponseModuleName(pathPieces[5], jsonPath); if (pathPieces.length == 7 && pathPieces[6].equals("Headers")) { // synthetic json path // #/paths/user_login/get/responses/200/Headers diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java index ecefd93368a..953e6661334 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java @@ -892,10 +892,19 @@ public String toRequestBodyFilename(String componentName, String jsonPath) { @Override public String toResponseModuleName(String componentName, String jsonPath) { + String[] pathPieces = jsonPath.split("/"); if (jsonPath.startsWith("#/components/responses/")) { + if (pathPieces.length == 4) { + // #/components/responses/SomeResponse + return toModelName(componentName, null); + } return toModuleFilename(componentName, jsonPath); } - return toModuleFilename("response"+componentName, jsonPath); + if (pathPieces.length == 6) { + // #/paths/somePath/verb/responses/200 + return toModelName("Code"+componentName+"Response", null); + } + return toModuleFilename("code"+componentName+"response", null); } @Override From a02629c8d563c850503bc183a086642326aebf41 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Tue, 20 Feb 2024 22:00:57 -0800 Subject: [PATCH 17/50] Fixes MediaType usages in RequestBodySerializer and ResponseDeserializer --- .../client/mediatype/MediaType.java | 19 +++---------------- .../requestbody/RequestBodySerializer.java | 4 ++-- .../client/response/ResponseDeserializer.java | 4 ++-- .../java/packagename/mediatype/MediaType.hbs | 19 +++---------------- .../requestbody/RequestBodySerializer.hbs | 4 ++-- .../response/ResponseDeserializer.hbs | 4 ++-- 6 files changed, 14 insertions(+), 40 deletions(-) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/mediatype/MediaType.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/mediatype/MediaType.java index 7e55f79c911..926e72020db 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/mediatype/MediaType.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/mediatype/MediaType.java @@ -1,11 +1,8 @@ package org.openapijsonschematools.client.mediatype; import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.checkerframework.checker.nullness.qual.Nullable; -import java.util.Map; - -public class MediaType { +public interface MediaType { /* * Used to store request and response body schema information * encoding: @@ -14,16 +11,6 @@ public class MediaType { * The encoding object SHALL only apply to requestBody objects when the media type is * multipart or application/x-www-form-urlencoded. */ - public final T schema; - public final @Nullable Map encoding; - - public MediaType(T schema, @Nullable Map encoding) { - this.schema = schema; - this.encoding = encoding; - } - - public MediaType(T schema) { - this.schema = schema; - this.encoding = null; - } + T schema(); + U encoding(); } \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java index e2d3e07f5bd..955108567ce 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java @@ -17,7 +17,7 @@ public abstract class RequestBodySerializer { * Describes a single request body * content: contentType to MediaType schema info */ - public final Map> content; + public final Map> content; public final boolean required; private static final Pattern jsonContentTypePattern = Pattern.compile( "application/[^+]*[+]?(json);?.*" @@ -28,7 +28,7 @@ public abstract class RequestBodySerializer { .create(); private static final String textPlainContentType = "text/plain"; - public RequestBodySerializer(Map> content, boolean required) { + public RequestBodySerializer(Map> content, boolean required) { this.content = content; this.required = required; } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java index 28d40be041e..818c97f8a4f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java @@ -14,7 +14,7 @@ import org.openapijsonschematools.client.mediatype.MediaType; public abstract class ResponseDeserializer { - public final @Nullable Map> content; + public final @Nullable Map> content; public final @Nullable Map headers; // todo change the value to header private static final Pattern jsonContentTypePattern = Pattern.compile( "application/[^+]*[+]?(json);?.*" @@ -22,7 +22,7 @@ public abstract class ResponseDeserializer { private static final Gson gson = new Gson(); protected static final String textPlainContentType = "text/plain"; - public ResponseDeserializer(@Nullable Map> content) { + public ResponseDeserializer(@Nullable Map> content) { this.content = content; this.headers = null; } diff --git a/src/main/resources/java/src/main/java/packagename/mediatype/MediaType.hbs b/src/main/resources/java/src/main/java/packagename/mediatype/MediaType.hbs index e745f595905..a23ca4249bf 100644 --- a/src/main/resources/java/src/main/java/packagename/mediatype/MediaType.hbs +++ b/src/main/resources/java/src/main/java/packagename/mediatype/MediaType.hbs @@ -1,11 +1,8 @@ package {{{packageName}}}.mediatype; import {{{packageName}}}.schemas.validation.JsonSchema; -import org.checkerframework.checker.nullness.qual.Nullable; -import java.util.Map; - -public class MediaType { +public interface MediaType { /* * Used to store request and response body schema information * encoding: @@ -14,16 +11,6 @@ public class MediaType { * The encoding object SHALL only apply to requestBody objects when the media type is * multipart or application/x-www-form-urlencoded. */ - public final T schema; - public final @Nullable Map encoding; - - public MediaType(T schema, @Nullable Map encoding) { - this.schema = schema; - this.encoding = encoding; - } - - public MediaType(T schema) { - this.schema = schema; - this.encoding = null; - } + T schema(); + U encoding(); } \ No newline at end of file diff --git a/src/main/resources/java/src/main/java/packagename/requestbody/RequestBodySerializer.hbs b/src/main/resources/java/src/main/java/packagename/requestbody/RequestBodySerializer.hbs index 31e9b98154f..7e99d0ac170 100644 --- a/src/main/resources/java/src/main/java/packagename/requestbody/RequestBodySerializer.hbs +++ b/src/main/resources/java/src/main/java/packagename/requestbody/RequestBodySerializer.hbs @@ -17,7 +17,7 @@ public abstract class RequestBodySerializer { * Describes a single request body * content: contentType to MediaType schema info */ - public final Map> content; + public final Map> content; public final boolean required; private static final Pattern jsonContentTypePattern = Pattern.compile( "application/[^+]*[+]?(json);?.*" @@ -28,7 +28,7 @@ public abstract class RequestBodySerializer { .create(); private static final String textPlainContentType = "text/plain"; - public RequestBodySerializer(Map> content, boolean required) { + public RequestBodySerializer(Map> content, boolean required) { this.content = content; this.required = required; } diff --git a/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs b/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs index 847e198dde1..75e97d97afc 100644 --- a/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs +++ b/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs @@ -14,7 +14,7 @@ import {{{packageName}}}.configurations.SchemaConfiguration; import {{{packageName}}}.mediatype.MediaType; public abstract class ResponseDeserializer { - public final @Nullable Map> content; + public final @Nullable Map> content; public final @Nullable Map headers; // todo change the value to header private static final Pattern jsonContentTypePattern = Pattern.compile( "application/[^+]*[+]?(json);?.*" @@ -22,7 +22,7 @@ public abstract class ResponseDeserializer { private static final Gson gson = new Gson(); protected static final String textPlainContentType = "text/plain"; - public ResponseDeserializer(@Nullable Map> content) { + public ResponseDeserializer(@Nullable Map> content) { this.content = content; this.headers = null; } From 8e9e50e24bdd62e2ce94c4ae543f2f62c827f867 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Tue, 20 Feb 2024 22:59:46 -0800 Subject: [PATCH 18/50] Changes MediaType into sealed interface and record classes --- .../components/requestbodies/Client.java | 11 ++++++++--- .../client/components/requestbodies/Pet.java | 19 ++++++++++++++----- .../components/requestbodies/UserArray.java | 11 ++++++++--- .../responses/HeadersWithNoBody.java | 2 +- .../responses/SuccessDescriptionOnly.java | 2 +- .../SuccessInlineContentAndHeader.java | 9 +++++++-- .../responses/SuccessWithJsonApiResponse.java | 9 +++++++-- .../SuccessfulXmlAndJsonArrayOfPet.java | 15 ++++++++++++--- .../patch/responses/Code200Response.java | 9 +++++++-- .../client/paths/fake/get/RequestBody.java | 11 ++++++++--- .../fake/get/responses/Code404Response.java | 9 +++++++-- .../fake/patch/responses/Code200Response.java | 9 +++++++-- .../client/paths/fake/post/RequestBody.java | 11 ++++++++--- .../fake/post/responses/Code404Response.java | 2 +- .../get/RequestBody.java | 11 ++++++++--- .../get/responses/Code200Response.java | 9 +++++++-- .../put/RequestBody.java | 11 ++++++++--- .../put/RequestBody.java | 11 ++++++++--- .../patch/responses/Code200Response.java | 9 +++++++-- .../delete/responses/CodedefaultResponse.java | 2 +- .../get/responses/Code200Response.java | 9 +++++++-- .../post/RequestBody.java | 11 ++++++++--- .../post/RequestBody.java | 19 ++++++++++++++----- .../post/responses/Code200Response.java | 15 ++++++++++++--- .../fakejsonformdata/get/RequestBody.java | 11 ++++++++--- .../fakejsonpatch/patch/RequestBody.java | 11 ++++++++--- .../fakejsonwithcharset/post/RequestBody.java | 11 ++++++++--- .../post/responses/Code200Response.java | 9 +++++++-- .../post/RequestBody.java | 19 ++++++++++++++----- .../post/responses/Code200Response.java | 9 +++++++-- .../get/responses/Code200Response.java | 9 +++++++-- .../get/responses/Code202Response.java | 9 +++++++-- .../get/responses/Code200Response.java | 9 +++++++-- .../post/RequestBody.java | 11 ++++++++--- .../post/responses/Code200Response.java | 9 +++++++-- .../fakepemcontenttype/get/RequestBody.java | 11 ++++++++--- .../get/responses/Code200Response.java | 9 +++++++-- .../post/RequestBody.java | 11 ++++++++--- .../post/responses/Code200Response.java | 9 +++++++-- .../get/responses/Code200Response.java | 9 +++++++-- .../get/responses/Code303Response.java | 2 +- .../get/responses/Code3XXResponse.java | 2 +- .../fakerefsarraymodel/post/RequestBody.java | 11 ++++++++--- .../post/responses/Code200Response.java | 9 +++++++-- .../post/RequestBody.java | 11 ++++++++--- .../post/responses/Code200Response.java | 9 +++++++-- .../fakerefsboolean/post/RequestBody.java | 11 ++++++++--- .../post/responses/Code200Response.java | 9 +++++++-- .../post/RequestBody.java | 11 ++++++++--- .../post/responses/Code200Response.java | 9 +++++++-- .../paths/fakerefsenum/post/RequestBody.java | 11 ++++++++--- .../post/responses/Code200Response.java | 9 +++++++-- .../fakerefsmammal/post/RequestBody.java | 11 ++++++++--- .../post/responses/Code200Response.java | 9 +++++++-- .../fakerefsnumber/post/RequestBody.java | 11 ++++++++--- .../post/responses/Code200Response.java | 9 +++++++-- .../post/RequestBody.java | 11 ++++++++--- .../post/responses/Code200Response.java | 9 +++++++-- .../fakerefsstring/post/RequestBody.java | 11 ++++++++--- .../post/responses/Code200Response.java | 9 +++++++-- .../get/responses/Code200Response.java | 15 ++++++++++++--- .../post/RequestBody.java | 11 ++++++++--- .../post/responses/Code200Response.java | 9 +++++++-- .../fakeuploadfile/post/RequestBody.java | 11 ++++++++--- .../post/responses/Code200Response.java | 9 +++++++-- .../fakeuploadfiles/post/RequestBody.java | 11 ++++++++--- .../post/responses/Code200Response.java | 9 +++++++-- .../get/responses/Code1XXResponse.java | 9 +++++++-- .../get/responses/Code200Response.java | 9 +++++++-- .../get/responses/Code2XXResponse.java | 9 +++++++-- .../get/responses/Code3XXResponse.java | 9 +++++++-- .../get/responses/Code4XXResponse.java | 9 +++++++-- .../get/responses/Code5XXResponse.java | 9 +++++++-- .../get/responses/CodedefaultResponse.java | 9 +++++++-- .../pet/post/responses/Code405Response.java | 2 +- .../pet/put/responses/Code400Response.java | 2 +- .../pet/put/responses/Code404Response.java | 2 +- .../pet/put/responses/Code405Response.java | 2 +- .../get/responses/Code400Response.java | 2 +- .../get/responses/Code400Response.java | 2 +- .../delete/responses/Code400Response.java | 2 +- .../get/responses/Code200Response.java | 15 ++++++++++++--- .../get/responses/Code400Response.java | 2 +- .../get/responses/Code404Response.java | 2 +- .../paths/petpetid/post/RequestBody.java | 11 ++++++++--- .../post/responses/Code405Response.java | 2 +- .../petpetiduploadimage/post/RequestBody.java | 11 ++++++++--- .../paths/storeorder/post/RequestBody.java | 11 ++++++++--- .../post/responses/Code200Response.java | 15 ++++++++++++--- .../post/responses/Code400Response.java | 2 +- .../delete/responses/Code400Response.java | 2 +- .../delete/responses/Code404Response.java | 2 +- .../get/responses/Code200Response.java | 15 ++++++++++++--- .../get/responses/Code400Response.java | 2 +- .../get/responses/Code404Response.java | 2 +- .../client/paths/user/post/RequestBody.java | 11 ++++++++--- .../post/responses/CodedefaultResponse.java | 2 +- .../post/responses/CodedefaultResponse.java | 2 +- .../post/responses/CodedefaultResponse.java | 2 +- .../get/responses/Code200Response.java | 15 ++++++++++++--- .../get/responses/Code400Response.java | 2 +- .../delete/responses/Code404Response.java | 2 +- .../get/responses/Code200Response.java | 15 ++++++++++++--- .../get/responses/Code400Response.java | 2 +- .../get/responses/Code404Response.java | 2 +- .../paths/userusername/put/RequestBody.java | 11 ++++++++--- .../put/responses/Code400Response.java | 2 +- .../put/responses/Code404Response.java | 2 +- .../requestbody/RequestBodySerializer.java | 6 +++--- .../client/response/ResponseDeserializer.java | 7 +++---- .../components/requestbodies/RequestBody.hbs | 13 ++++++++++--- .../components/responses/Response.hbs | 11 +++++++++-- .../requestbody/RequestBodySerializer.hbs | 6 +++--- .../response/ResponseDeserializer.hbs | 7 +++---- 114 files changed, 699 insertions(+), 253 deletions(-) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Client.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Client.java index 8af71e06908..4c4ca5901c7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Client.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Client.java @@ -14,14 +14,19 @@ import java.util.Map; public class Client { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class Client1 extends RequestBodySerializer { + public static class Client1 extends RequestBodySerializer { public Client1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Pet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Pet.java index 8c27541c605..8a7f7c6e732 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Pet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Pet.java @@ -15,20 +15,29 @@ import java.util.Map; public class Pet { + public sealed interface SealedMediaType permits ApplicationjsonMediaType, ApplicationxmlMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class ApplicationxmlMediaType extends MediaType { + public record ApplicationxmlMediaType(ApplicationxmlSchema.ApplicationxmlSchema1 schema) implements SealedMediaType, MediaType { public ApplicationxmlMediaType() { - super(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); + this(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class Pet1 extends RequestBodySerializer { + public static class Pet1 extends RequestBodySerializer { public Pet1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/UserArray.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/UserArray.java index 5f8287ec15c..f94e5690f59 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/UserArray.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/UserArray.java @@ -14,14 +14,19 @@ import java.util.Map; public class UserArray { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class UserArray1 extends RequestBodySerializer { + public static class UserArray1 extends RequestBodySerializer { public UserArray1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/HeadersWithNoBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/HeadersWithNoBody.java index 836bcacacaa..964226193e4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/HeadersWithNoBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/HeadersWithNoBody.java @@ -12,7 +12,7 @@ public class HeadersWithNoBody { - public static class HeadersWithNoBody1 extends ResponseDeserializer { + public static class HeadersWithNoBody1 extends ResponseDeserializer { public HeadersWithNoBody1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessDescriptionOnly.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessDescriptionOnly.java index 1557821d492..c0416f8747d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessDescriptionOnly.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessDescriptionOnly.java @@ -12,7 +12,7 @@ public class SuccessDescriptionOnly { - public static class SuccessDescriptionOnly1 extends ResponseDeserializer { + public static class SuccessDescriptionOnly1 extends ResponseDeserializer { public SuccessDescriptionOnly1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessInlineContentAndHeader.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessInlineContentAndHeader.java index 434e4012039..a07451eac9e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessInlineContentAndHeader.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessInlineContentAndHeader.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class SuccessInlineContentAndHeader { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApplicationjsonSchema1Boxed body) implements SealedResponseBody { } - public static class SuccessInlineContentAndHeader1 extends ResponseDeserializer { + public static class SuccessInlineContentAndHeader1 extends ResponseDeserializer { public SuccessInlineContentAndHeader1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessWithJsonApiResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessWithJsonApiResponse.java index d257082ad7e..707c1ad4063 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessWithJsonApiResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessWithJsonApiResponse.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class SuccessWithJsonApiResponse { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApiResponseSchema1Boxed body) implements SealedResponseBody { } - public static class SuccessWithJsonApiResponse1 extends ResponseDeserializer { + public static class SuccessWithJsonApiResponse1 extends ResponseDeserializer { public SuccessWithJsonApiResponse1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessfulXmlAndJsonArrayOfPet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessfulXmlAndJsonArrayOfPet.java index e2697c3fb06..5ebb649ded1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessfulXmlAndJsonArrayOfPet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessfulXmlAndJsonArrayOfPet.java @@ -13,23 +13,32 @@ import java.net.http.HttpHeaders; public class SuccessfulXmlAndJsonArrayOfPet { + public sealed interface SealedMediaType permits ApplicationxmlMediaType, ApplicationjsonMediaType {} - public static class ApplicationxmlMediaType extends MediaType { + public record ApplicationxmlMediaType(ApplicationxmlSchema.ApplicationxmlSchema1 schema) implements SealedMediaType, MediaType { public ApplicationxmlMediaType() { super(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationxmlResponseBody, ApplicationjsonResponseBody {} public record ApplicationxmlResponseBody(ApplicationxmlSchema.ApplicationxmlSchema1Boxed body) implements SealedResponseBody { } public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApplicationjsonSchema1Boxed body) implements SealedResponseBody { } - public static class SuccessfulXmlAndJsonArrayOfPet1 extends ResponseDeserializer { + public static class SuccessfulXmlAndJsonArrayOfPet1 extends ResponseDeserializer { public SuccessfulXmlAndJsonArrayOfPet1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java index a463e573539..bb57a91bb76 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class Model200 { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.Client1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { + public static class Model2001 extends ResponseDeserializer { public Model2001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/RequestBody.java index ed2813aed06..c14807b0629 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/RequestBody.java @@ -14,14 +14,19 @@ import java.util.Map; public class RequestBody { + public sealed interface SealedMediaType permits ApplicationxwwwformurlencodedMediaType {} - public static class ApplicationxwwwformurlencodedMediaType extends MediaType { + public record ApplicationxwwwformurlencodedMediaType(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1 schema) implements SealedMediaType, MediaType { public ApplicationxwwwformurlencodedMediaType() { - super(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1.getInstance()); + this(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class RequestBody1 extends RequestBodySerializer { + public static class RequestBody1 extends RequestBodySerializer { public RequestBody1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code404Response.java index b9cc4ec0cfa..cb753203824 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code404Response.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class Model404 { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.MapJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model4041 extends ResponseDeserializer { + public static class Model4041 extends ResponseDeserializer { public Model4041() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/Code200Response.java index 0df0d93962f..5aeb5b5adac 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/Code200Response.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class Model200 { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.Client1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { + public static class Model2001 extends ResponseDeserializer { public Model2001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/RequestBody.java index 525bf1df808..818941bb213 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/RequestBody.java @@ -14,14 +14,19 @@ import java.util.Map; public class RequestBody { + public sealed interface SealedMediaType permits ApplicationxwwwformurlencodedMediaType {} - public static class ApplicationxwwwformurlencodedMediaType extends MediaType { + public record ApplicationxwwwformurlencodedMediaType(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1 schema) implements SealedMediaType, MediaType { public ApplicationxwwwformurlencodedMediaType() { - super(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1.getInstance()); + this(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class RequestBody1 extends RequestBodySerializer { + public static class RequestBody1 extends RequestBodySerializer { public RequestBody1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code404Response.java index 089feb009ca..d0cbcce7988 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code404Response.java @@ -12,7 +12,7 @@ public class Model404 { - public static class Model4041 extends ResponseDeserializer { + public static class Model4041 extends ResponseDeserializer { public Model4041() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/RequestBody.java index a39fc233206..c1f5f3adacd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/RequestBody.java @@ -14,14 +14,19 @@ import java.util.Map; public class RequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class RequestBody1 extends RequestBodySerializer { + public static class RequestBody1 extends RequestBodySerializer { public RequestBody1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java index 02ab1d611f0..d54d274820c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class Model200 { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AdditionalPropertiesWithArrayOfEnums1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { + public static class Model2001 extends ResponseDeserializer { public Model2001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/RequestBody.java index 0d867d50516..3ce0af9cb18 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/RequestBody.java @@ -14,14 +14,19 @@ import java.util.Map; public class RequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class RequestBody1 extends RequestBodySerializer { + public static class RequestBody1 extends RequestBodySerializer { public RequestBody1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/RequestBody.java index 2d91277b9db..ec82360b6dd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/RequestBody.java @@ -14,14 +14,19 @@ import java.util.Map; public class RequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class RequestBody1 extends RequestBodySerializer { + public static class RequestBody1 extends RequestBodySerializer { public RequestBody1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java index 51c7221987e..2ee41a5d68b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class Model200 { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.Client1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { + public static class Model2001 extends ResponseDeserializer { public Model2001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.java index a396f201b10..4cb16117162 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.java @@ -12,7 +12,7 @@ public class ModelDefault { - public static class ModelDefault1 extends ResponseDeserializer { + public static class ModelDefault1 extends ResponseDeserializer { public ModelDefault1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java index 5fcbd8e215e..f39e37dfccf 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class Model200 { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.HealthCheckResult1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { + public static class Model2001 extends ResponseDeserializer { public Model2001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/RequestBody.java index 64541860aae..628b1efee55 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/RequestBody.java @@ -14,14 +14,19 @@ import java.util.Map; public class RequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class RequestBody1 extends RequestBodySerializer { + public static class RequestBody1 extends RequestBodySerializer { public RequestBody1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/RequestBody.java index bbe59e5d056..062e79c82e3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/RequestBody.java @@ -15,20 +15,29 @@ import java.util.Map; public class RequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType, MultipartformdataMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class MultipartformdataMediaType extends MediaType { + public record MultipartformdataMediaType(MultipartformdataSchema.MultipartformdataSchema1 schema) implements SealedMediaType, MediaType { public MultipartformdataMediaType() { - super(MultipartformdataSchema.MultipartformdataSchema1.getInstance()); + this(MultipartformdataSchema.MultipartformdataSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class RequestBody1 extends RequestBodySerializer { + public static class RequestBody1 extends RequestBodySerializer { public RequestBody1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/Code200Response.java index 1dd23e4aaf2..b0216abd30d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/Code200Response.java @@ -13,23 +13,32 @@ import java.net.http.HttpHeaders; public class Model200 { + public sealed interface SealedMediaType permits ApplicationjsonMediaType, MultipartformdataMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } - public static class MultipartformdataMediaType extends MediaType { + public record MultipartformdataMediaType(MultipartformdataSchema.MultipartformdataSchema1 schema) implements SealedMediaType, MediaType { public MultipartformdataMediaType() { super(MultipartformdataSchema.MultipartformdataSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody, MultipartformdataResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApplicationjsonSchema1Boxed body) implements SealedResponseBody { } public record MultipartformdataResponseBody(MultipartformdataSchema.MultipartformdataSchema1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { + public static class Model2001 extends ResponseDeserializer { public Model2001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/RequestBody.java index 496a521c202..d7fbbcbadcb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/RequestBody.java @@ -14,14 +14,19 @@ import java.util.Map; public class RequestBody { + public sealed interface SealedMediaType permits ApplicationxwwwformurlencodedMediaType {} - public static class ApplicationxwwwformurlencodedMediaType extends MediaType { + public record ApplicationxwwwformurlencodedMediaType(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1 schema) implements SealedMediaType, MediaType { public ApplicationxwwwformurlencodedMediaType() { - super(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1.getInstance()); + this(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class RequestBody1 extends RequestBodySerializer { + public static class RequestBody1 extends RequestBodySerializer { public RequestBody1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/RequestBody.java index f1c2e4653e3..468041f351a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/RequestBody.java @@ -14,14 +14,19 @@ import java.util.Map; public class RequestBody { + public sealed interface SealedMediaType permits ApplicationjsonpatchjsonMediaType {} - public static class ApplicationjsonpatchjsonMediaType extends MediaType { + public record ApplicationjsonpatchjsonMediaType(ApplicationjsonpatchjsonSchema.ApplicationjsonpatchjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonpatchjsonMediaType() { - super(ApplicationjsonpatchjsonSchema.ApplicationjsonpatchjsonSchema1.getInstance()); + this(ApplicationjsonpatchjsonSchema.ApplicationjsonpatchjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class RequestBody1 extends RequestBodySerializer { + public static class RequestBody1 extends RequestBodySerializer { public RequestBody1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/RequestBody.java index 79dc6339111..5ae2a3289b0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/RequestBody.java @@ -14,14 +14,19 @@ import java.util.Map; public class RequestBody { + public sealed interface SealedMediaType permits Applicationjsoncharsetutf8MediaType {} - public static class Applicationjsoncharsetutf8MediaType extends MediaType { + public record Applicationjsoncharsetutf8MediaType(Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1 schema) implements SealedMediaType, MediaType { public Applicationjsoncharsetutf8MediaType() { - super(Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1.getInstance()); + this(Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class RequestBody1 extends RequestBodySerializer { + public static class RequestBody1 extends RequestBodySerializer { public RequestBody1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java index 41b9ccbf7fc..8d839281d03 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class Model200 { + public sealed interface SealedMediaType permits Applicationjsoncharsetutf8MediaType {} - public static class Applicationjsoncharsetutf8MediaType extends MediaType { + public record Applicationjsoncharsetutf8MediaType(Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1 schema) implements SealedMediaType, MediaType { public Applicationjsoncharsetutf8MediaType() { super(Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits Applicationjsoncharsetutf8ResponseBody {} public record Applicationjsoncharsetutf8ResponseBody(Applicationjsoncharsetutf8Schema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { + public static class Model2001 extends ResponseDeserializer { public Model2001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/RequestBody.java index 8f20910a812..bfc18b8c3f8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/RequestBody.java @@ -15,20 +15,29 @@ import java.util.Map; public class RequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType, MultipartformdataMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class MultipartformdataMediaType extends MediaType { + public record MultipartformdataMediaType(MultipartformdataSchema.MultipartformdataSchema1 schema) implements SealedMediaType, MediaType { public MultipartformdataMediaType() { - super(MultipartformdataSchema.MultipartformdataSchema1.getInstance()); + this(MultipartformdataSchema.MultipartformdataSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class RequestBody1 extends RequestBodySerializer { + public static class RequestBody1 extends RequestBodySerializer { public RequestBody1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java index 8a95c3e79a1..cc0251f3f44 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class Model200 { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { + public static class Model2001 extends ResponseDeserializer { public Model2001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code200Response.java index 02d52f09998..7c43c557f16 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code200Response.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class Model200 { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { + public static class Model2001 extends ResponseDeserializer { public Model2001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java index 8776b45feea..8aa39c7bfe3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class Model202 { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model2021 extends ResponseDeserializer { + public static class Model2021 extends ResponseDeserializer { public Model2021() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java index 49cd265aefa..e410211136b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class Model200 { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { + public static class Model2001 extends ResponseDeserializer { public Model2001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/RequestBody.java index 565f4b9b9fe..61c0cb2c691 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/RequestBody.java @@ -14,14 +14,19 @@ import java.util.Map; public class RequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class RequestBody1 extends RequestBodySerializer { + public static class RequestBody1 extends RequestBodySerializer { public RequestBody1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java index 1e01d16adff..bf6860e0b51 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class Model200 { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { + public static class Model2001 extends ResponseDeserializer { public Model2001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/RequestBody.java index bf5da038e3e..ff68a6c95d5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/RequestBody.java @@ -14,14 +14,19 @@ import java.util.Map; public class RequestBody { + public sealed interface SealedMediaType permits ApplicationxpemfileMediaType {} - public static class ApplicationxpemfileMediaType extends MediaType { + public record ApplicationxpemfileMediaType(ApplicationxpemfileSchema.ApplicationxpemfileSchema1 schema) implements SealedMediaType, MediaType { public ApplicationxpemfileMediaType() { - super(ApplicationxpemfileSchema.ApplicationxpemfileSchema1.getInstance()); + this(ApplicationxpemfileSchema.ApplicationxpemfileSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class RequestBody1 extends RequestBodySerializer { + public static class RequestBody1 extends RequestBodySerializer { public RequestBody1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java index 5bb65dee19d..c380febbf54 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class Model200 { + public sealed interface SealedMediaType permits ApplicationxpemfileMediaType {} - public static class ApplicationxpemfileMediaType extends MediaType { + public record ApplicationxpemfileMediaType(ApplicationxpemfileSchema.ApplicationxpemfileSchema1 schema) implements SealedMediaType, MediaType { public ApplicationxpemfileMediaType() { super(ApplicationxpemfileSchema.ApplicationxpemfileSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationxpemfileResponseBody {} public record ApplicationxpemfileResponseBody(ApplicationxpemfileSchema.StringJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { + public static class Model2001 extends ResponseDeserializer { public Model2001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/RequestBody.java index 65e168be4b6..3fc03d40157 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/RequestBody.java @@ -14,14 +14,19 @@ import java.util.Map; public class RequestBody { + public sealed interface SealedMediaType permits MultipartformdataMediaType {} - public static class MultipartformdataMediaType extends MediaType { + public record MultipartformdataMediaType(MultipartformdataSchema.MultipartformdataSchema1 schema) implements SealedMediaType, MediaType { public MultipartformdataMediaType() { - super(MultipartformdataSchema.MultipartformdataSchema1.getInstance()); + this(MultipartformdataSchema.MultipartformdataSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class RequestBody1 extends RequestBodySerializer { + public static class RequestBody1 extends RequestBodySerializer { public RequestBody1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.java index c9424ae3f6d..2a670fdcf86 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class Model200 { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApiResponseSchema1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { + public static class Model2001 extends ResponseDeserializer { public Model2001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java index caf035500b4..789b2e88e23 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class Model200 { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { + public static class Model2001 extends ResponseDeserializer { public Model2001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code303Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code303Response.java index ae350f4f569..a8c20311bb2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code303Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code303Response.java @@ -12,7 +12,7 @@ public class Model303 { - public static class Model3031 extends ResponseDeserializer { + public static class Model3031 extends ResponseDeserializer { public Model3031() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code3XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code3XXResponse.java index 8ef5e2969d6..fc547e29a6c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code3XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code3XXResponse.java @@ -12,7 +12,7 @@ public class Model3XX { - public static class Model3XX1 extends ResponseDeserializer { + public static class Model3XX1 extends ResponseDeserializer { public Model3XX1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/RequestBody.java index 94d3de43de8..331c85336ed 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/RequestBody.java @@ -14,14 +14,19 @@ import java.util.Map; public class RequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class RequestBody1 extends RequestBodySerializer { + public static class RequestBody1 extends RequestBodySerializer { public RequestBody1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java index b8f35bbdfca..ba032c1611f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class Model200 { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnimalFarm1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { + public static class Model2001 extends ResponseDeserializer { public Model2001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/RequestBody.java index 267c368669d..614bd30d021 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/RequestBody.java @@ -14,14 +14,19 @@ import java.util.Map; public class RequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class RequestBody1 extends RequestBodySerializer { + public static class RequestBody1 extends RequestBodySerializer { public RequestBody1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java index c004219b138..10d2be1ccb2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class Model200 { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.ArrayOfEnums1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { + public static class Model2001 extends ResponseDeserializer { public Model2001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/RequestBody.java index ea5f10d1058..892772867fc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/RequestBody.java @@ -14,14 +14,19 @@ import java.util.Map; public class RequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class RequestBody1 extends RequestBodySerializer { + public static class RequestBody1 extends RequestBodySerializer { public RequestBody1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java index 0c283d675b7..99bc60d81a7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class Model200 { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.BooleanJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { + public static class Model2001 extends ResponseDeserializer { public Model2001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/RequestBody.java index 114d1ff1f24..705f750a6d0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/RequestBody.java @@ -14,14 +14,19 @@ import java.util.Map; public class RequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class RequestBody1 extends RequestBodySerializer { + public static class RequestBody1 extends RequestBodySerializer { public RequestBody1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java index 22b74234b93..10298aa1e63 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class Model200 { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.ComposedOneOfDifferentTypes1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { + public static class Model2001 extends ResponseDeserializer { public Model2001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/RequestBody.java index 63c894cc979..f149f2bc22f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/RequestBody.java @@ -14,14 +14,19 @@ import java.util.Map; public class RequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class RequestBody1 extends RequestBodySerializer { + public static class RequestBody1 extends RequestBodySerializer { public RequestBody1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java index ee94210ef37..5369cc2c7ad 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class Model200 { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.StringEnum1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { + public static class Model2001 extends ResponseDeserializer { public Model2001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/RequestBody.java index 3f13d84d40f..c5b28579c34 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/RequestBody.java @@ -14,14 +14,19 @@ import java.util.Map; public class RequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class RequestBody1 extends RequestBodySerializer { + public static class RequestBody1 extends RequestBodySerializer { public RequestBody1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java index 864cacb9f44..9070f81133d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class Model200 { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.Mammal1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { + public static class Model2001 extends ResponseDeserializer { public Model2001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/RequestBody.java index 9777c890df9..dd306ec59bd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/RequestBody.java @@ -14,14 +14,19 @@ import java.util.Map; public class RequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class RequestBody1 extends RequestBodySerializer { + public static class RequestBody1 extends RequestBodySerializer { public RequestBody1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java index a86d5ef4b0b..6822b155940 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class Model200 { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.NumberWithValidations1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { + public static class Model2001 extends ResponseDeserializer { public Model2001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/RequestBody.java index c34ef6008cc..c00f02f2221 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/RequestBody.java @@ -14,14 +14,19 @@ import java.util.Map; public class RequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class RequestBody1 extends RequestBodySerializer { + public static class RequestBody1 extends RequestBodySerializer { public RequestBody1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java index 7588d3f7683..2da6ce5c06c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class Model200 { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.ObjectModelWithRefProps1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { + public static class Model2001 extends ResponseDeserializer { public Model2001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/RequestBody.java index 7fbccaa5ffe..ba47936d312 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/RequestBody.java @@ -14,14 +14,19 @@ import java.util.Map; public class RequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class RequestBody1 extends RequestBodySerializer { + public static class RequestBody1 extends RequestBodySerializer { public RequestBody1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java index 574015d00d9..723589f44af 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class Model200 { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.StringJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { + public static class Model2001 extends ResponseDeserializer { public Model2001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java index b0c9228ffb8..ff2b399d5f1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java @@ -11,23 +11,32 @@ import java.net.http.HttpHeaders; public class Model200 { + public sealed interface SealedMediaType permits ApplicationjsonMediaType, ApplicationxmlMediaType {} - public static class ApplicationjsonMediaType extends MediaType<> { + public record ApplicationjsonMediaType() implements SealedMediaType, MediaType<> { public ApplicationjsonMediaType() { super(); } + @Override + public Void encoding() { + return null; + } } - public static class ApplicationxmlMediaType extends MediaType<> { + public record ApplicationxmlMediaType() implements SealedMediaType, MediaType<> { public ApplicationxmlMediaType() { super(); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody, ApplicationxmlResponseBody {} public record ApplicationjsonResponseBody( body) implements SealedResponseBody { } public record ApplicationxmlResponseBody( body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { + public static class Model2001 extends ResponseDeserializer { public Model2001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/RequestBody.java index b005ccc3eec..0dbaf136d1e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/RequestBody.java @@ -14,14 +14,19 @@ import java.util.Map; public class RequestBody { + public sealed interface SealedMediaType permits ApplicationoctetstreamMediaType {} - public static class ApplicationoctetstreamMediaType extends MediaType { + public record ApplicationoctetstreamMediaType(ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1 schema) implements SealedMediaType, MediaType { public ApplicationoctetstreamMediaType() { - super(ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1.getInstance()); + this(ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class RequestBody1 extends RequestBodySerializer { + public static class RequestBody1 extends RequestBodySerializer { public RequestBody1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java index 12f5ea50532..e9cabbbf0c0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class Model200 { + public sealed interface SealedMediaType permits ApplicationoctetstreamMediaType {} - public static class ApplicationoctetstreamMediaType extends MediaType { + public record ApplicationoctetstreamMediaType(ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1 schema) implements SealedMediaType, MediaType { public ApplicationoctetstreamMediaType() { super(ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationoctetstreamResponseBody {} public record ApplicationoctetstreamResponseBody(ApplicationoctetstreamSchema.StringJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { + public static class Model2001 extends ResponseDeserializer { public Model2001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/RequestBody.java index e4c67882895..972187e5cca 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/RequestBody.java @@ -14,14 +14,19 @@ import java.util.Map; public class RequestBody { + public sealed interface SealedMediaType permits MultipartformdataMediaType {} - public static class MultipartformdataMediaType extends MediaType { + public record MultipartformdataMediaType(MultipartformdataSchema.MultipartformdataSchema1 schema) implements SealedMediaType, MediaType { public MultipartformdataMediaType() { - super(MultipartformdataSchema.MultipartformdataSchema1.getInstance()); + this(MultipartformdataSchema.MultipartformdataSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class RequestBody1 extends RequestBodySerializer { + public static class RequestBody1 extends RequestBodySerializer { public RequestBody1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java index 273538cc728..92c09da6897 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class Model200 { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApiResponseSchema1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { + public static class Model2001 extends ResponseDeserializer { public Model2001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/RequestBody.java index 5b81525ad3f..221c62968d4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/RequestBody.java @@ -14,14 +14,19 @@ import java.util.Map; public class RequestBody { + public sealed interface SealedMediaType permits MultipartformdataMediaType {} - public static class MultipartformdataMediaType extends MediaType { + public record MultipartformdataMediaType(MultipartformdataSchema.MultipartformdataSchema1 schema) implements SealedMediaType, MediaType { public MultipartformdataMediaType() { - super(MultipartformdataSchema.MultipartformdataSchema1.getInstance()); + this(MultipartformdataSchema.MultipartformdataSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class RequestBody1 extends RequestBodySerializer { + public static class RequestBody1 extends RequestBodySerializer { public RequestBody1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java index 72e5f3561bb..91ed004132e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class Model200 { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApiResponseSchema1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { + public static class Model2001 extends ResponseDeserializer { public Model2001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code1XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code1XXResponse.java index e467de7ba2b..671dd7233a5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code1XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code1XXResponse.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class Model1XX { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model1XX1 extends ResponseDeserializer { + public static class Model1XX1 extends ResponseDeserializer { public Model1XX1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java index 9a1a305d4a9..cf2d701131b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class Model200 { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { + public static class Model2001 extends ResponseDeserializer { public Model2001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code2XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code2XXResponse.java index a2e2bd0c1fc..f1c107a620f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code2XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code2XXResponse.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class Model2XX { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model2XX1 extends ResponseDeserializer { + public static class Model2XX1 extends ResponseDeserializer { public Model2XX1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code3XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code3XXResponse.java index 15be2f9d42a..338e110989f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code3XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code3XXResponse.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class Model3XX { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model3XX1 extends ResponseDeserializer { + public static class Model3XX1 extends ResponseDeserializer { public Model3XX1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code4XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code4XXResponse.java index 97e8bbae70a..0d2a8887189 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code4XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code4XXResponse.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class Model4XX { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model4XX1 extends ResponseDeserializer { + public static class Model4XX1 extends ResponseDeserializer { public Model4XX1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code5XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code5XXResponse.java index edf756f151f..778d15ead42 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code5XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code5XXResponse.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class Model5XX { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model5XX1 extends ResponseDeserializer { + public static class Model5XX1 extends ResponseDeserializer { public Model5XX1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java index 6ee73132681..f14f78dce55 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java @@ -12,16 +12,21 @@ import java.net.http.HttpHeaders; public class ModelDefault { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApplicationjsonSchema1Boxed body) implements SealedResponseBody { } - public static class ModelDefault1 extends ResponseDeserializer { + public static class ModelDefault1 extends ResponseDeserializer { public ModelDefault1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code405Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code405Response.java index 120c2f1409b..b69a8afa465 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code405Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code405Response.java @@ -12,7 +12,7 @@ public class Model405 { - public static class Model4051 extends ResponseDeserializer { + public static class Model4051 extends ResponseDeserializer { public Model4051() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code400Response.java index 8b67b9f89b0..7fb93591039 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code400Response.java @@ -12,7 +12,7 @@ public class Model400 { - public static class Model4001 extends ResponseDeserializer { + public static class Model4001 extends ResponseDeserializer { public Model4001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code404Response.java index ad98d47c551..e01bccf2efb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code404Response.java @@ -12,7 +12,7 @@ public class Model404 { - public static class Model4041 extends ResponseDeserializer { + public static class Model4041 extends ResponseDeserializer { public Model4041() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code405Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code405Response.java index 37e15ea3d4f..cf2c237168e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code405Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code405Response.java @@ -12,7 +12,7 @@ public class Model405 { - public static class Model4051 extends ResponseDeserializer { + public static class Model4051 extends ResponseDeserializer { public Model4051() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code400Response.java index 681ac6f3640..199ce09d493 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code400Response.java @@ -12,7 +12,7 @@ public class Model400 { - public static class Model4001 extends ResponseDeserializer { + public static class Model4001 extends ResponseDeserializer { public Model4001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code400Response.java index 441b88cf5e6..2dc76b1aee7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code400Response.java @@ -12,7 +12,7 @@ public class Model400 { - public static class Model4001 extends ResponseDeserializer { + public static class Model4001 extends ResponseDeserializer { public Model4001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/Code400Response.java index dd7f22e304b..967a0404efa 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/Code400Response.java @@ -12,7 +12,7 @@ public class Model400 { - public static class Model4001 extends ResponseDeserializer { + public static class Model4001 extends ResponseDeserializer { public Model4001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code200Response.java index fc12a10e42a..7a2e87f9fb1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code200Response.java @@ -13,23 +13,32 @@ import java.net.http.HttpHeaders; public class Model200 { + public sealed interface SealedMediaType permits ApplicationxmlMediaType, ApplicationjsonMediaType {} - public static class ApplicationxmlMediaType extends MediaType { + public record ApplicationxmlMediaType(ApplicationxmlSchema.ApplicationxmlSchema1 schema) implements SealedMediaType, MediaType { public ApplicationxmlMediaType() { super(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationxmlResponseBody, ApplicationjsonResponseBody {} public record ApplicationxmlResponseBody(ApplicationxmlSchema.Pet1Boxed body) implements SealedResponseBody { } public record ApplicationjsonResponseBody(ApplicationjsonSchema.Pet1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { + public static class Model2001 extends ResponseDeserializer { public Model2001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code400Response.java index 7bd39eaecca..1e5d1df5c01 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code400Response.java @@ -12,7 +12,7 @@ public class Model400 { - public static class Model4001 extends ResponseDeserializer { + public static class Model4001 extends ResponseDeserializer { public Model4001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code404Response.java index c3ba7138215..12a749809e0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code404Response.java @@ -12,7 +12,7 @@ public class Model404 { - public static class Model4041 extends ResponseDeserializer { + public static class Model4041 extends ResponseDeserializer { public Model4041() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/RequestBody.java index ca5f0ae57ec..bcfe59527bb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/RequestBody.java @@ -14,14 +14,19 @@ import java.util.Map; public class RequestBody { + public sealed interface SealedMediaType permits ApplicationxwwwformurlencodedMediaType {} - public static class ApplicationxwwwformurlencodedMediaType extends MediaType { + public record ApplicationxwwwformurlencodedMediaType(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1 schema) implements SealedMediaType, MediaType { public ApplicationxwwwformurlencodedMediaType() { - super(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1.getInstance()); + this(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class RequestBody1 extends RequestBodySerializer { + public static class RequestBody1 extends RequestBodySerializer { public RequestBody1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/Code405Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/Code405Response.java index f5b8f6b3c2b..14efc29f216 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/Code405Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/Code405Response.java @@ -12,7 +12,7 @@ public class Model405 { - public static class Model4051 extends ResponseDeserializer { + public static class Model4051 extends ResponseDeserializer { public Model4051() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/RequestBody.java index bc326ccbc66..8fd7c0f6302 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/RequestBody.java @@ -14,14 +14,19 @@ import java.util.Map; public class RequestBody { + public sealed interface SealedMediaType permits MultipartformdataMediaType {} - public static class MultipartformdataMediaType extends MediaType { + public record MultipartformdataMediaType(MultipartformdataSchema.MultipartformdataSchema1 schema) implements SealedMediaType, MediaType { public MultipartformdataMediaType() { - super(MultipartformdataSchema.MultipartformdataSchema1.getInstance()); + this(MultipartformdataSchema.MultipartformdataSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class RequestBody1 extends RequestBodySerializer { + public static class RequestBody1 extends RequestBodySerializer { public RequestBody1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/RequestBody.java index 903504646bc..fa09117b1c6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/RequestBody.java @@ -14,14 +14,19 @@ import java.util.Map; public class RequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class RequestBody1 extends RequestBodySerializer { + public static class RequestBody1 extends RequestBodySerializer { public RequestBody1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code200Response.java index 314b274dbf6..4577f23c92e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code200Response.java @@ -13,23 +13,32 @@ import java.net.http.HttpHeaders; public class Model200 { + public sealed interface SealedMediaType permits ApplicationxmlMediaType, ApplicationjsonMediaType {} - public static class ApplicationxmlMediaType extends MediaType { + public record ApplicationxmlMediaType(ApplicationxmlSchema.ApplicationxmlSchema1 schema) implements SealedMediaType, MediaType { public ApplicationxmlMediaType() { super(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationxmlResponseBody, ApplicationjsonResponseBody {} public record ApplicationxmlResponseBody(ApplicationxmlSchema.Order1Boxed body) implements SealedResponseBody { } public record ApplicationjsonResponseBody(ApplicationjsonSchema.Order1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { + public static class Model2001 extends ResponseDeserializer { public Model2001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code400Response.java index 98ad324049e..645c111a7dc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code400Response.java @@ -12,7 +12,7 @@ public class Model400 { - public static class Model4001 extends ResponseDeserializer { + public static class Model4001 extends ResponseDeserializer { public Model4001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code400Response.java index c8f29324381..72c70fe8b99 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code400Response.java @@ -12,7 +12,7 @@ public class Model400 { - public static class Model4001 extends ResponseDeserializer { + public static class Model4001 extends ResponseDeserializer { public Model4001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code404Response.java index 7d4d50524b8..75ae4faa431 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code404Response.java @@ -12,7 +12,7 @@ public class Model404 { - public static class Model4041 extends ResponseDeserializer { + public static class Model4041 extends ResponseDeserializer { public Model4041() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code200Response.java index 740c22b5ef3..93a9f4e3c62 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code200Response.java @@ -13,23 +13,32 @@ import java.net.http.HttpHeaders; public class Model200 { + public sealed interface SealedMediaType permits ApplicationxmlMediaType, ApplicationjsonMediaType {} - public static class ApplicationxmlMediaType extends MediaType { + public record ApplicationxmlMediaType(ApplicationxmlSchema.ApplicationxmlSchema1 schema) implements SealedMediaType, MediaType { public ApplicationxmlMediaType() { super(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationxmlResponseBody, ApplicationjsonResponseBody {} public record ApplicationxmlResponseBody(ApplicationxmlSchema.Order1Boxed body) implements SealedResponseBody { } public record ApplicationjsonResponseBody(ApplicationjsonSchema.Order1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { + public static class Model2001 extends ResponseDeserializer { public Model2001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code400Response.java index 6399501b3d7..cc48181a459 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code400Response.java @@ -12,7 +12,7 @@ public class Model400 { - public static class Model4001 extends ResponseDeserializer { + public static class Model4001 extends ResponseDeserializer { public Model4001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code404Response.java index 3e1cdadaf9d..01f7b8cd293 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code404Response.java @@ -12,7 +12,7 @@ public class Model404 { - public static class Model4041 extends ResponseDeserializer { + public static class Model4041 extends ResponseDeserializer { public Model4041() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/RequestBody.java index a6aa0dc7439..9db899fe59e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/RequestBody.java @@ -14,14 +14,19 @@ import java.util.Map; public class RequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class RequestBody1 extends RequestBodySerializer { + public static class RequestBody1 extends RequestBodySerializer { public RequestBody1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/CodedefaultResponse.java index f2987fe3b04..142b3172b08 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/CodedefaultResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/CodedefaultResponse.java @@ -12,7 +12,7 @@ public class ModelDefault { - public static class ModelDefault1 extends ResponseDeserializer { + public static class ModelDefault1 extends ResponseDeserializer { public ModelDefault1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/CodedefaultResponse.java index 3f215fad4ac..ac8338b41e9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/CodedefaultResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/CodedefaultResponse.java @@ -12,7 +12,7 @@ public class ModelDefault { - public static class ModelDefault1 extends ResponseDeserializer { + public static class ModelDefault1 extends ResponseDeserializer { public ModelDefault1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/CodedefaultResponse.java index 5e8b5a97009..d6ba1fb3d47 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/CodedefaultResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/CodedefaultResponse.java @@ -12,7 +12,7 @@ public class ModelDefault { - public static class ModelDefault1 extends ResponseDeserializer { + public static class ModelDefault1 extends ResponseDeserializer { public ModelDefault1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code200Response.java index b798f2f4db8..35eb922d68f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code200Response.java @@ -13,23 +13,32 @@ import java.net.http.HttpHeaders; public class Model200 { + public sealed interface SealedMediaType permits ApplicationxmlMediaType, ApplicationjsonMediaType {} - public static class ApplicationxmlMediaType extends MediaType { + public record ApplicationxmlMediaType(ApplicationxmlSchema.ApplicationxmlSchema1 schema) implements SealedMediaType, MediaType { public ApplicationxmlMediaType() { super(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationxmlResponseBody, ApplicationjsonResponseBody {} public record ApplicationxmlResponseBody(ApplicationxmlSchema.StringJsonSchema1Boxed body) implements SealedResponseBody { } public record ApplicationjsonResponseBody(ApplicationjsonSchema.StringJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { + public static class Model2001 extends ResponseDeserializer { public Model2001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code400Response.java index 73c573b677c..b6b67e0331b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code400Response.java @@ -12,7 +12,7 @@ public class Model400 { - public static class Model4001 extends ResponseDeserializer { + public static class Model4001 extends ResponseDeserializer { public Model4001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code404Response.java index 35627218e60..eb062607c0c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code404Response.java @@ -12,7 +12,7 @@ public class Model404 { - public static class Model4041 extends ResponseDeserializer { + public static class Model4041 extends ResponseDeserializer { public Model4041() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code200Response.java index 5af72fa126e..d4582d0f9ae 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code200Response.java @@ -13,23 +13,32 @@ import java.net.http.HttpHeaders; public class Model200 { + public sealed interface SealedMediaType permits ApplicationxmlMediaType, ApplicationjsonMediaType {} - public static class ApplicationxmlMediaType extends MediaType { + public record ApplicationxmlMediaType(ApplicationxmlSchema.ApplicationxmlSchema1 schema) implements SealedMediaType, MediaType { public ApplicationxmlMediaType() { super(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } + @Override + public Void encoding() { + return null; + } } public sealed interface SealedResponseBody permits ApplicationxmlResponseBody, ApplicationjsonResponseBody {} public record ApplicationxmlResponseBody(ApplicationxmlSchema.User1Boxed body) implements SealedResponseBody { } public record ApplicationjsonResponseBody(ApplicationjsonSchema.User1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { + public static class Model2001 extends ResponseDeserializer { public Model2001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code400Response.java index be48915d8ef..a49b2c6c71e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code400Response.java @@ -12,7 +12,7 @@ public class Model400 { - public static class Model4001 extends ResponseDeserializer { + public static class Model4001 extends ResponseDeserializer { public Model4001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code404Response.java index 3f07896d813..8efccf13943 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code404Response.java @@ -12,7 +12,7 @@ public class Model404 { - public static class Model4041 extends ResponseDeserializer { + public static class Model4041 extends ResponseDeserializer { public Model4041() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/RequestBody.java index f4c5c1ecbfd..22d0e1f9007 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/RequestBody.java @@ -14,14 +14,19 @@ import java.util.Map; public class RequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - public static class ApplicationjsonMediaType extends MediaType { + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class RequestBody1 extends RequestBodySerializer { + public static class RequestBody1 extends RequestBodySerializer { public RequestBody1() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code400Response.java index d957043427f..6d2a25334d7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code400Response.java @@ -12,7 +12,7 @@ public class Model400 { - public static class Model4001 extends ResponseDeserializer { + public static class Model4001 extends ResponseDeserializer { public Model4001() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code404Response.java index 0d18ea3295f..030a0bf5290 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code404Response.java @@ -12,7 +12,7 @@ public class Model404 { - public static class Model4041 extends ResponseDeserializer { + public static class Model4041 extends ResponseDeserializer { public Model4041() { super( Map.ofEntries( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java index 955108567ce..e3196a72861 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java @@ -12,12 +12,12 @@ import java.util.Map; import java.util.regex.Pattern; -public abstract class RequestBodySerializer { +public abstract class RequestBodySerializer { /* * Describes a single request body * content: contentType to MediaType schema info */ - public final Map> content; + public final Map content; public final boolean required; private static final Pattern jsonContentTypePattern = Pattern.compile( "application/[^+]*[+]?(json);?.*" @@ -28,7 +28,7 @@ public abstract class RequestBodySerializer { .create(); private static final String textPlainContentType = "text/plain"; - public RequestBodySerializer(Map> content, boolean required) { + public RequestBodySerializer(Map content, boolean required) { this.content = content; this.required = required; } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java index 818c97f8a4f..554b5cb8fcd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java @@ -11,10 +11,9 @@ import com.google.gson.Gson; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.mediatype.MediaType; -public abstract class ResponseDeserializer { - public final @Nullable Map> content; +public abstract class ResponseDeserializer { + public final @Nullable Map content; public final @Nullable Map headers; // todo change the value to header private static final Pattern jsonContentTypePattern = Pattern.compile( "application/[^+]*[+]?(json);?.*" @@ -22,7 +21,7 @@ public abstract class ResponseDeserializer { private static final Gson gson = new Gson(); protected static final String textPlainContentType = "text/plain"; - public ResponseDeserializer(@Nullable Map> content) { + public ResponseDeserializer(@Nullable Map content) { this.content = content; this.headers = null; } diff --git a/src/main/resources/java/src/main/java/packagename/components/requestbodies/RequestBody.hbs b/src/main/resources/java/src/main/java/packagename/components/requestbodies/RequestBody.hbs index bcf809b30e8..0dfe0ab8cbf 100644 --- a/src/main/resources/java/src/main/java/packagename/components/requestbodies/RequestBody.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/requestbodies/RequestBody.hbs @@ -26,16 +26,23 @@ import java.util.AbstractMap; import java.util.Map; public class {{jsonPathPiece.pascalCase}} { + {{#if content}} + public sealed interface SealedMediaType permits {{#each content}}{{@key.pascalCase}}MediaType{{#unless @last}}, {{/unless}}{{/each}} {} + {{/if}} {{#each content}} - public static class {{@key.pascalCase}}MediaType extends MediaType<{{#with this}}{{#with schema}}{{containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}{{/with}}{{/with}}> { + public record {{@key.pascalCase}}MediaType({{#with this}}{{#with schema}}{{containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}} schema{{/with}}{{/with}}) implements SealedMediaType, MediaType<{{#with this}}{{#with schema}}{{containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}{{/with}}{{/with}}, Void> { public {{@key.pascalCase}}MediaType() { - super({{#with this}}{{#with schema}}{{containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}.getInstance(){{/with}}{{/with}}); + this({{#with this}}{{#with schema}}{{containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}.getInstance(){{/with}}{{/with}}); + } + @Override + public Void encoding() { + return null; } } {{/each}} - public static class {{jsonPathPiece.pascalCase}}1 extends RequestBodySerializer { + public static class {{jsonPathPiece.pascalCase}}1 extends RequestBodySerializer { public {{jsonPathPiece.pascalCase}}1() { super( Map.ofEntries( diff --git a/src/main/resources/java/src/main/java/packagename/components/responses/Response.hbs b/src/main/resources/java/src/main/java/packagename/components/responses/Response.hbs index c46d9234cae..b6a8c437968 100644 --- a/src/main/resources/java/src/main/java/packagename/components/responses/Response.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/responses/Response.hbs @@ -26,12 +26,19 @@ import java.util.Map; import java.net.http.HttpHeaders; public class {{jsonPathPiece.pascalCase}} { + {{#if content}} + public sealed interface SealedMediaType permits {{#each content}}{{@key.pascalCase}}MediaType{{#unless @last}}, {{/unless}}{{/each}} {} + {{/if}} {{#each content}} - public static class {{@key.pascalCase}}MediaType extends MediaType<{{#with this}}{{#with schema}}{{containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}{{/with}}{{/with}}> { + public record {{@key.pascalCase}}MediaType({{#with this}}{{#with schema}}{{containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}} schema{{/with}}{{/with}}) implements SealedMediaType, MediaType<{{#with this}}{{#with schema}}{{containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}, Void{{/with}}{{/with}}> { public {{@key.pascalCase}}MediaType() { super({{#with this}}{{#with schema}}{{containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}.getInstance(){{/with}}{{/with}}); } + @Override + public Void encoding() { + return null; + } } {{/each}} {{#if content}} @@ -41,7 +48,7 @@ public class {{jsonPathPiece.pascalCase}} { public record {{@key.pascalCase}}ResponseBody({{#with this}}{{#with schema}}{{containerJsonPathPiece.pascalCase}}.{{#with getSelfOrDeepestRef}}{{> src/main/java/packagename/components/schemas/_sealedClassName }}{{/with}}{{/with}}{{/with}} body) implements SealedResponseBody { } {{/each}} - public static class {{jsonPathPiece.pascalCase}}1 extends ResponseDeserializer<{{#if content}}SealedResponseBody{{else}}Void{{/if}}, Void> { + public static class {{jsonPathPiece.pascalCase}}1 extends ResponseDeserializer<{{#if content}}SealedResponseBody{{else}}Void{{/if}}, Void, {{#if content}}SealedMediaType{{else}}Void{{/if}}> { public {{jsonPathPiece.pascalCase}}1() { super( Map.ofEntries( diff --git a/src/main/resources/java/src/main/java/packagename/requestbody/RequestBodySerializer.hbs b/src/main/resources/java/src/main/java/packagename/requestbody/RequestBodySerializer.hbs index 7e99d0ac170..58f41e90c2c 100644 --- a/src/main/resources/java/src/main/java/packagename/requestbody/RequestBodySerializer.hbs +++ b/src/main/resources/java/src/main/java/packagename/requestbody/RequestBodySerializer.hbs @@ -12,12 +12,12 @@ import {{{packageName}}}.schemas.validation.JsonSchema; import java.util.Map; import java.util.regex.Pattern; -public abstract class RequestBodySerializer { +public abstract class RequestBodySerializer { /* * Describes a single request body * content: contentType to MediaType schema info */ - public final Map> content; + public final Map content; public final boolean required; private static final Pattern jsonContentTypePattern = Pattern.compile( "application/[^+]*[+]?(json);?.*" @@ -28,7 +28,7 @@ public abstract class RequestBodySerializer { .create(); private static final String textPlainContentType = "text/plain"; - public RequestBodySerializer(Map> content, boolean required) { + public RequestBodySerializer(Map content, boolean required) { this.content = content; this.required = required; } diff --git a/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs b/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs index 75e97d97afc..e6814bdad4f 100644 --- a/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs +++ b/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs @@ -11,10 +11,9 @@ import org.checkerframework.checker.nullness.qual.Nullable; import com.google.gson.Gson; import {{{packageName}}}.configurations.SchemaConfiguration; -import {{{packageName}}}.mediatype.MediaType; -public abstract class ResponseDeserializer { - public final @Nullable Map> content; +public abstract class ResponseDeserializer { + public final @Nullable Map content; public final @Nullable Map headers; // todo change the value to header private static final Pattern jsonContentTypePattern = Pattern.compile( "application/[^+]*[+]?(json);?.*" @@ -22,7 +21,7 @@ public abstract class ResponseDeserializer { private static final Gson gson = new Gson(); protected static final String textPlainContentType = "text/plain"; - public ResponseDeserializer(@Nullable Map> content) { + public ResponseDeserializer(@Nullable Map content) { this.content = content; this.headers = null; } From d1fd075bc74aed45a0fcf9f8d13d433eb3cddc35 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Tue, 20 Feb 2024 23:07:00 -0800 Subject: [PATCH 19/50] Updates response deserializer gson instance --- .../client/response/ResponseDeserializer.java | 7 ++++++- .../java/packagename/response/ResponseDeserializer.hbs | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java index 554b5cb8fcd..883c1c927e1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java @@ -9,6 +9,8 @@ import org.checkerframework.checker.nullness.qual.Nullable; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.ToNumberPolicy; import org.openapijsonschematools.client.configurations.SchemaConfiguration; @@ -18,7 +20,10 @@ public abstract class ResponseDeserializer content) { diff --git a/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs b/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs index e6814bdad4f..7cea82bad5a 100644 --- a/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs +++ b/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs @@ -9,6 +9,8 @@ import java.util.regex.Pattern; import org.checkerframework.checker.nullness.qual.Nullable; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.ToNumberPolicy; import {{{packageName}}}.configurations.SchemaConfiguration; @@ -18,7 +20,10 @@ public abstract class ResponseDeserializer content) { From a0d00a3ef4751ea3e26a70fca28d0eeae20a328b Mon Sep 17 00:00:00 2001 From: Justin Black Date: Wed, 21 Feb 2024 10:00:56 -0800 Subject: [PATCH 20/50] Updates request body dos to show sealed media type interface --- .../docs/components/requestbodies/Client.md | 31 ++++++++---- .../java/docs/components/requestbodies/Pet.md | 47 ++++++++++++------- .../components/requestbodies/UserArray.md | 31 ++++++++---- .../requestbodies/RequestBodyDoc.hbs | 33 +++++++++---- 4 files changed, 95 insertions(+), 47 deletions(-) diff --git a/samples/client/petstore/java/docs/components/requestbodies/Client.md b/samples/client/petstore/java/docs/components/requestbodies/Client.md index a81aa8ffbd9..5c8107f5119 100644 --- a/samples/client/petstore/java/docs/components/requestbodies/Client.md +++ b/samples/client/petstore/java/docs/components/requestbodies/Client.md @@ -4,22 +4,32 @@ Client.java public class Client A class that contains necessary nested request body classes -- supporting XMediaType classes which store the openapi request body contentType to schema information +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types - a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody class, a sealed interface which contains all the contentType/schema input types -- final classes which implement SealedRequestBody, the concrete request body types +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Client.ApplicationjsonMediaType](#applicationjsonmediatype)
class storing schema info for a specific contentType | +| sealed interface | [Client.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [Client.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | | static class | [Client.Client1](#client1)
class that serializes request bodies | | sealed interface | [Client.SealedRequestBody](#sealedrequestbody)
request body sealed interface | | record | [Client.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + + ## ApplicationjsonMediaType -public static class ApplicationjsonMediaType
-extends MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../components/requestbodies/client/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1)> +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../components/requestbodies/client/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -28,10 +38,11 @@ class storing schema info for a specific contentType | --------------------------- | | ApplicationjsonMediaType()
Creates an instance | -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../components/requestbodies/client/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema
the schema for this MediaType | +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../components/requestbodies/client/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | ## Client1 public static class Client1
diff --git a/samples/client/petstore/java/docs/components/requestbodies/Pet.md b/samples/client/petstore/java/docs/components/requestbodies/Pet.md index 77e7db81f87..fb896ed1068 100644 --- a/samples/client/petstore/java/docs/components/requestbodies/Pet.md +++ b/samples/client/petstore/java/docs/components/requestbodies/Pet.md @@ -4,24 +4,35 @@ Pet.java public class Pet A class that contains necessary nested request body classes -- supporting XMediaType classes which store the openapi request body contentType to schema information +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types - a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody class, a sealed interface which contains all the contentType/schema input types -- final classes which implement SealedRequestBody, the concrete request body types +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Pet.ApplicationjsonMediaType](#applicationjsonmediatype)
class storing schema info for a specific contentType | -| static class | [Pet.ApplicationxmlMediaType](#applicationxmlmediatype)
class storing schema info for a specific contentType | +| sealed interface | [Pet.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [Pet.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| record | [Pet.ApplicationxmlMediaType](#applicationxmlmediatype)
record storing schema + encoding for a specific contentType | | static class | [Pet.Pet1](#pet1)
class that serializes request bodies | | sealed interface | [Pet.SealedRequestBody](#sealedrequestbody)
request body sealed interface | | record | [Pet.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | | record | [Pet.ApplicationxmlRequestBody](#applicationxmlrequestbody)
implements sealed interface to store request body input | +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype), +[ApplicationxmlMediaType](#applicationxmlmediatype) + +sealed interface that stores schema and encoding info + + ## ApplicationjsonMediaType -public static class ApplicationjsonMediaType
-extends MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../components/requestbodies/pet/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1)> +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../components/requestbodies/pet/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -30,14 +41,15 @@ class storing schema info for a specific contentType | --------------------------- | | ApplicationjsonMediaType()
Creates an instance | -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../components/requestbodies/pet/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema
the schema for this MediaType | +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../components/requestbodies/pet/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | ## ApplicationxmlMediaType -public static class ApplicationxmlMediaType
-extends MediaType<[ApplicationxmlSchema.ApplicationxmlSchema1](../../components/requestbodies/pet/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1)> +public record ApplicationxmlMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxmlSchema.ApplicationxmlSchema1](../../components/requestbodies/pet/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1), Void> class storing schema info for a specific contentType @@ -46,10 +58,11 @@ class storing schema info for a specific contentType | --------------------------- | | ApplicationxmlMediaType()
Creates an instance | -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [ApplicationxmlSchema.ApplicationxmlSchema1](../../components/requestbodies/pet/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1) | schema
the schema for this MediaType | +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxmlSchema.ApplicationxmlSchema1](../../components/requestbodies/pet/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | ## Pet1 public static class Pet1
diff --git a/samples/client/petstore/java/docs/components/requestbodies/UserArray.md b/samples/client/petstore/java/docs/components/requestbodies/UserArray.md index 1b1f12d598e..fa65fa0df0e 100644 --- a/samples/client/petstore/java/docs/components/requestbodies/UserArray.md +++ b/samples/client/petstore/java/docs/components/requestbodies/UserArray.md @@ -4,22 +4,32 @@ UserArray.java public class UserArray A class that contains necessary nested request body classes -- supporting XMediaType classes which store the openapi request body contentType to schema information +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types - a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody class, a sealed interface which contains all the contentType/schema input types -- final classes which implement SealedRequestBody, the concrete request body types +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [UserArray.ApplicationjsonMediaType](#applicationjsonmediatype)
class storing schema info for a specific contentType | +| sealed interface | [UserArray.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [UserArray.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | | static class | [UserArray.UserArray1](#userarray1)
class that serializes request bodies | | sealed interface | [UserArray.SealedRequestBody](#sealedrequestbody)
request body sealed interface | | record | [UserArray.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + + ## ApplicationjsonMediaType -public static class ApplicationjsonMediaType
-extends MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1)> +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -28,10 +38,11 @@ class storing schema info for a specific contentType | --------------------------- | | ApplicationjsonMediaType()
Creates an instance | -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema
the schema for this MediaType | +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | ## UserArray1 public static class UserArray1
diff --git a/src/main/resources/java/src/main/java/packagename/components/requestbodies/RequestBodyDoc.hbs b/src/main/resources/java/src/main/java/packagename/components/requestbodies/RequestBodyDoc.hbs index 0e9a963cf27..17690ef9132 100644 --- a/src/main/resources/java/src/main/java/packagename/components/requestbodies/RequestBodyDoc.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/requestbodies/RequestBodyDoc.hbs @@ -28,27 +28,39 @@ a class that serializes SealedRequestBody request bodies, extended from the $ref public class {{jsonPathPiece.pascalCase}} A class that contains necessary nested request body classes -- supporting XMediaType classes which store the openapi request body contentType to schema information +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types - a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody class, a sealed interface which contains all the contentType/schema input types -- final classes which implement SealedRequestBody, the concrete request body types +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types {{headerSize}}# Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | +| sealed interface | [{{jsonPathPiece.pascalCase}}.SealedMediaType](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces "sealedmediatype") }})
media type sealed interface | {{#each content}} -| static class | [{{jsonPathPiece.pascalCase}}.{{@key.pascalCase}}MediaType](#{{@key.kebabCase}}mediatype)
class storing schema info for a specific contentType | +| record | [{{jsonPathPiece.pascalCase}}.{{@key.pascalCase}}MediaType](#{{@key.kebabCase}}mediatype)
record storing schema + encoding for a specific contentType | {{/each}} | static class | [{{jsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}1](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "1" "")) }})
class that serializes request bodies | | sealed interface | [{{jsonPathPiece.pascalCase}}.SealedRequestBody](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces "sealedrequestbody") }})
request body sealed interface | {{#each content}} | record | [{{jsonPathPiece.pascalCase}}.{{@key.pascalCase}}RequestBody](#{{@key.kebabCase}}requestbody)
implements sealed interface to store request body input | {{/each}} + +{{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces "SealedMediaType") }} +public sealed interface SealedMediaType
+permits
+{{#each content}} +[{{@key.pascalCase}}MediaType](#{{@key.kebabCase}}mediatype){{#unless @last}},{{/unless}} +{{/each}} + +sealed interface that stores schema and encoding info + {{#each content}} {{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces (join @key.pascalCase "MediaType" "")) }} -public static class {{@key.pascalCase}}MediaType
-extends MediaType<{{#with this}}{{#with schema}}[{{containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}]({{docRoot}}{{pathFromDocRoot}}.md#{{jsonPathPiece.kebabCase}}){{/with}}{{/with}}> +public record {{@key.pascalCase}}MediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<{{#with this}}{{#with schema}}[{{containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}]({{docRoot}}{{pathFromDocRoot}}.md#{{jsonPathPiece.kebabCase}}){{/with}}{{/with}}, Void> class storing schema info for a specific contentType @@ -57,10 +69,11 @@ class storing schema info for a specific contentType | --------------------------- | | {{@key.pascalCase}}MediaType()
Creates an instance | -{{headerSize}}## Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| {{#with this}}{{#with schema}}[{{containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}]({{docRoot}}{{pathFromDocRoot}}.md#{{jsonPathPiece.kebabCase}}){{/with}}{{/with}} | schema
the schema for this MediaType | +{{headerSize}}## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| {{#with this}}{{#with schema}}[{{containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}]({{docRoot}}{{pathFromDocRoot}}.md#{{jsonPathPiece.kebabCase}}){{/with}}{{/with}} | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | {{/each}} {{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces (join jsonPathPiece.pascalCase "1" "")) }} From 3ecbfc6a785dda0e53047517e41d983ac36949e2 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Wed, 21 Feb 2024 11:31:07 -0800 Subject: [PATCH 21/50] Fixes request body doc for content value, adds comment about schema generic --- .../docs/components/requestbodies/Client.md | 2 +- .../java/docs/components/requestbodies/Pet.md | 2 +- .../components/requestbodies/UserArray.md | 2 +- .../SuccessInlineContentAndHeader.java | 2 +- .../responses/SuccessWithJsonApiResponse.java | 2 +- .../SuccessfulXmlAndJsonArrayOfPet.java | 4 +- .../patch/responses/Code200Response.java | 2 +- .../fake/get/responses/Code404Response.java | 2 +- .../fake/patch/responses/Code200Response.java | 2 +- .../get/responses/Code200Response.java | 2 +- .../patch/responses/Code200Response.java | 2 +- .../get/responses/Code200Response.java | 2 +- .../post/responses/Code200Response.java | 4 +- .../post/responses/Code200Response.java | 2 +- .../post/responses/Code200Response.java | 2 +- .../get/responses/Code200Response.java | 2 +- .../get/responses/Code202Response.java | 2 +- .../get/responses/Code200Response.java | 2 +- .../post/responses/Code200Response.java | 2 +- .../get/responses/Code200Response.java | 2 +- .../post/responses/Code200Response.java | 2 +- .../get/responses/Code200Response.java | 2 +- .../post/responses/Code200Response.java | 2 +- .../post/responses/Code200Response.java | 2 +- .../post/responses/Code200Response.java | 2 +- .../post/responses/Code200Response.java | 2 +- .../post/responses/Code200Response.java | 2 +- .../post/responses/Code200Response.java | 2 +- .../post/responses/Code200Response.java | 2 +- .../post/responses/Code200Response.java | 2 +- .../post/responses/Code200Response.java | 2 +- .../get/responses/Code200Response.java | 4 +- .../post/responses/Code200Response.java | 2 +- .../post/responses/Code200Response.java | 2 +- .../post/responses/Code200Response.java | 2 +- .../get/responses/Code1XXResponse.java | 2 +- .../get/responses/Code200Response.java | 2 +- .../get/responses/Code2XXResponse.java | 2 +- .../get/responses/Code3XXResponse.java | 2 +- .../get/responses/Code4XXResponse.java | 2 +- .../get/responses/Code5XXResponse.java | 2 +- .../get/responses/CodedefaultResponse.java | 2 +- .../get/responses/Code200Response.java | 4 +- .../post/responses/Code200Response.java | 4 +- .../get/responses/Code200Response.java | 4 +- .../get/responses/Code200Response.java | 4 +- .../get/responses/Code200Response.java | 4 +- .../requestbody/RequestBodySerializer.java | 2 - .../client/response/ResponseDeserializer.java | 2 +- .../response/ResponseDeserializerTest.java | 42 +++++++++++++++---- .../requestbodies/RequestBodyDoc.hbs | 2 +- .../components/responses/Response.hbs | 2 +- .../requestbody/RequestBodySerializer.hbs | 2 - .../response/ResponseDeserializer.hbs | 2 +- .../response/ResponseDeserializerTest.hbs | 38 +++++++++++++---- 55 files changed, 121 insertions(+), 81 deletions(-) diff --git a/samples/client/petstore/java/docs/components/requestbodies/Client.md b/samples/client/petstore/java/docs/components/requestbodies/Client.md index 5c8107f5119..287b9634107 100644 --- a/samples/client/petstore/java/docs/components/requestbodies/Client.md +++ b/samples/client/petstore/java/docs/components/requestbodies/Client.md @@ -58,7 +58,7 @@ a class that serializes SealedRequestBody request bodies | Modifier and Type | Field and Description | | ----------------- | --------------------- | | boolean | required = true
whether the request body is required | -| Map> | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | ### Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/components/requestbodies/Pet.md b/samples/client/petstore/java/docs/components/requestbodies/Pet.md index fb896ed1068..c7c5a349462 100644 --- a/samples/client/petstore/java/docs/components/requestbodies/Pet.md +++ b/samples/client/petstore/java/docs/components/requestbodies/Pet.md @@ -78,7 +78,7 @@ a class that serializes SealedRequestBody request bodies | Modifier and Type | Field and Description | | ----------------- | --------------------- | | boolean | required = true
whether the request body is required | -| Map> | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)()),
    new AbstractMap.SimpleEntry<>("application/xml", new [ApplicationxmlMediaType](#applicationxmlmediatype)())
)
the contentType to schema info | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)()),
    new AbstractMap.SimpleEntry<>("application/xml", new [ApplicationxmlMediaType](#applicationxmlmediatype)())
)
the contentType to schema info | ### Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/components/requestbodies/UserArray.md b/samples/client/petstore/java/docs/components/requestbodies/UserArray.md index fa65fa0df0e..bd309e0092d 100644 --- a/samples/client/petstore/java/docs/components/requestbodies/UserArray.md +++ b/samples/client/petstore/java/docs/components/requestbodies/UserArray.md @@ -58,7 +58,7 @@ a class that serializes SealedRequestBody request bodies | Modifier and Type | Field and Description | | ----------------- | --------------------- | | boolean | required = true
whether the request body is required | -| Map> | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | ### Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessInlineContentAndHeader.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessInlineContentAndHeader.java index a07451eac9e..ff670f9dfe1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessInlineContentAndHeader.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessInlineContentAndHeader.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessWithJsonApiResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessWithJsonApiResponse.java index 707c1ad4063..8fd9611a397 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessWithJsonApiResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessWithJsonApiResponse.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessfulXmlAndJsonArrayOfPet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessfulXmlAndJsonArrayOfPet.java index 5ebb649ded1..44fec5a0041 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessfulXmlAndJsonArrayOfPet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessfulXmlAndJsonArrayOfPet.java @@ -17,7 +17,7 @@ public sealed interface SealedMediaType permits ApplicationxmlMediaType, Applica public record ApplicationxmlMediaType(ApplicationxmlSchema.ApplicationxmlSchema1 schema) implements SealedMediaType, MediaType { public ApplicationxmlMediaType() { - super(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); + this(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); } @Override public Void encoding() { @@ -27,7 +27,7 @@ public Void encoding() { public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java index bb57a91bb76..00249b83d61 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code404Response.java index cb753203824..7a575afa3c8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code404Response.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/Code200Response.java index 5aeb5b5adac..2ea38f8ca2d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/Code200Response.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java index d54d274820c..487e691e2fc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java index 2ee41a5d68b..304db184f18 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java index f39e37dfccf..8bfa097ad3f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/Code200Response.java index b0216abd30d..fb37a3ec92d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/Code200Response.java @@ -17,7 +17,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType, Multip public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { @@ -27,7 +27,7 @@ public Void encoding() { public record MultipartformdataMediaType(MultipartformdataSchema.MultipartformdataSchema1 schema) implements SealedMediaType, MediaType { public MultipartformdataMediaType() { - super(MultipartformdataSchema.MultipartformdataSchema1.getInstance()); + this(MultipartformdataSchema.MultipartformdataSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java index 8d839281d03..f6e774a1a94 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits Applicationjsoncharsetutf8MediaT public record Applicationjsoncharsetutf8MediaType(Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1 schema) implements SealedMediaType, MediaType { public Applicationjsoncharsetutf8MediaType() { - super(Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1.getInstance()); + this(Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java index cc0251f3f44..7fd899f46d3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code200Response.java index 7c43c557f16..4b8676c6ec2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code200Response.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java index 8aa39c7bfe3..d9acf21c3f5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java index e410211136b..cad7c944e2c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java index bf6860e0b51..ec08fa2bcdd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java index c380febbf54..ecb0f9314b3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationxpemfileMediaType {} public record ApplicationxpemfileMediaType(ApplicationxpemfileSchema.ApplicationxpemfileSchema1 schema) implements SealedMediaType, MediaType { public ApplicationxpemfileMediaType() { - super(ApplicationxpemfileSchema.ApplicationxpemfileSchema1.getInstance()); + this(ApplicationxpemfileSchema.ApplicationxpemfileSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.java index 2a670fdcf86..402a253d7ea 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java index 789b2e88e23..3e09cefb831 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java index ba032c1611f..0bde3a93ecf 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java index 10d2be1ccb2..614d60425c4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java index 99bc60d81a7..d4b97391d76 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java index 10298aa1e63..4dac6f89dfc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java index 5369cc2c7ad..a48894f8f3f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java index 9070f81133d..f826a492ab5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java index 6822b155940..6d7e96663d8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java index 2da6ce5c06c..35ed135b6f8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java index 723589f44af..04f1c8a160b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java index ff2b399d5f1..2b9f4e14e55 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java @@ -15,7 +15,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType, Applic public record ApplicationjsonMediaType() implements SealedMediaType, MediaType<> { public ApplicationjsonMediaType() { - super(); + this(); } @Override public Void encoding() { @@ -25,7 +25,7 @@ public Void encoding() { public record ApplicationxmlMediaType() implements SealedMediaType, MediaType<> { public ApplicationxmlMediaType() { - super(); + this(); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java index e9cabbbf0c0..0cb17647475 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationoctetstreamMediaType public record ApplicationoctetstreamMediaType(ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1 schema) implements SealedMediaType, MediaType { public ApplicationoctetstreamMediaType() { - super(ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1.getInstance()); + this(ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java index 92c09da6897..5bd165ba20c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java index 91ed004132e..7dd7157c8b6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code1XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code1XXResponse.java index 671dd7233a5..0bc835e26d0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code1XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code1XXResponse.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java index cf2d701131b..d744c00418d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code2XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code2XXResponse.java index f1c107a620f..d96fb42c449 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code2XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code2XXResponse.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code3XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code3XXResponse.java index 338e110989f..307eb4e9685 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code3XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code3XXResponse.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code4XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code4XXResponse.java index 0d2a8887189..5f5de7d0a56 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code4XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code4XXResponse.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code5XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code5XXResponse.java index 778d15ead42..8079fe732b4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code5XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code5XXResponse.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java index f14f78dce55..19a48601239 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java @@ -16,7 +16,7 @@ public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code200Response.java index 7a2e87f9fb1..b5077b5b293 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code200Response.java @@ -17,7 +17,7 @@ public sealed interface SealedMediaType permits ApplicationxmlMediaType, Applica public record ApplicationxmlMediaType(ApplicationxmlSchema.ApplicationxmlSchema1 schema) implements SealedMediaType, MediaType { public ApplicationxmlMediaType() { - super(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); + this(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); } @Override public Void encoding() { @@ -27,7 +27,7 @@ public Void encoding() { public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code200Response.java index 4577f23c92e..b718b88941e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code200Response.java @@ -17,7 +17,7 @@ public sealed interface SealedMediaType permits ApplicationxmlMediaType, Applica public record ApplicationxmlMediaType(ApplicationxmlSchema.ApplicationxmlSchema1 schema) implements SealedMediaType, MediaType { public ApplicationxmlMediaType() { - super(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); + this(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); } @Override public Void encoding() { @@ -27,7 +27,7 @@ public Void encoding() { public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code200Response.java index 93a9f4e3c62..7d8408b687f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code200Response.java @@ -17,7 +17,7 @@ public sealed interface SealedMediaType permits ApplicationxmlMediaType, Applica public record ApplicationxmlMediaType(ApplicationxmlSchema.ApplicationxmlSchema1 schema) implements SealedMediaType, MediaType { public ApplicationxmlMediaType() { - super(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); + this(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); } @Override public Void encoding() { @@ -27,7 +27,7 @@ public Void encoding() { public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code200Response.java index 35eb922d68f..c4e278ba03b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code200Response.java @@ -17,7 +17,7 @@ public sealed interface SealedMediaType permits ApplicationxmlMediaType, Applica public record ApplicationxmlMediaType(ApplicationxmlSchema.ApplicationxmlSchema1 schema) implements SealedMediaType, MediaType { public ApplicationxmlMediaType() { - super(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); + this(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); } @Override public Void encoding() { @@ -27,7 +27,7 @@ public Void encoding() { public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code200Response.java index d4582d0f9ae..d8524441fa1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code200Response.java @@ -17,7 +17,7 @@ public sealed interface SealedMediaType permits ApplicationxmlMediaType, Applica public record ApplicationxmlMediaType(ApplicationxmlSchema.ApplicationxmlSchema1 schema) implements SealedMediaType, MediaType { public ApplicationxmlMediaType() { - super(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); + this(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); } @Override public Void encoding() { @@ -27,7 +27,7 @@ public Void encoding() { public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediaType() { - super(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); } @Override public Void encoding() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java index e3196a72861..490c0e3e8a2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java @@ -1,7 +1,5 @@ package org.openapijsonschematools.client.requestbody; -import org.openapijsonschematools.client.mediatype.MediaType; - import java.net.http.HttpRequest; import org.checkerframework.checker.nullness.qual.Nullable; import com.google.gson.Gson; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java index 883c1c927e1..40052c5a6e4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java @@ -15,7 +15,7 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; public abstract class ResponseDeserializer { - public final @Nullable Map content; + public final Map content; public final @Nullable Map headers; // todo change the value to header private static final Pattern jsonContentTypePattern = Pattern.compile( "application/[^+]*[+]?(json);?.*" diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java index 85918009931..4702bdc2f82 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java @@ -35,20 +35,33 @@ public record ApplicationjsonBody(AnyTypeJsonSchema.AnyTypeJsonSchema1Boxed body public record TextplainBody(StringJsonSchema.StringJsonSchema1Boxed body) implements SealedResponseBody {} - public static class ApplicationjsonMediatype extends MediaType { + public sealed interface SealedMediaType permits ApplicationjsonMediatype, TextplainMediatype { } + + public record ApplicationjsonMediatype(AnyTypeJsonSchema.AnyTypeJsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediatype() { - super(AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance()); + this(AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance()); + } + public Class sealedType() { + return AnyTypeJsonSchema.AnyTypeJsonSchema1Boxed.class; + } + + @Override + public Void encoding() { + return null; } } - public static class TextplainMediatype extends MediaType { + public record TextplainMediatype(StringJsonSchema.StringJsonSchema1 schema) implements SealedMediaType, MediaType { public TextplainMediatype() { - super(StringJsonSchema.StringJsonSchema1.getInstance()); + this(StringJsonSchema.StringJsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - - public static class MyResponseDeserializer extends ResponseDeserializer { + public static class MyResponseDeserializer extends ResponseDeserializer { public MyResponseDeserializer() { super(Map.of("application/json", new ApplicationjsonMediatype(), "text/plain", new TextplainMediatype())); @@ -56,13 +69,24 @@ public MyResponseDeserializer() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if (contentTypeIsJson(contentType)) { + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediatype thisMediaType) { + /* + var deserializedBody = deserializeBody(String contentType, JsonSchema schema); + if contentType is json + @Nullable Object bodyData = deserializeJson(body); + return schema.validateAndBox(bodyData, configuration) + */ @Nullable Object bodyData = deserializeJson(body); - var deserializedBody = AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(bodyData, configuration); + var deserializedBody = thisMediaType.schema.validateAndBox(bodyData, configuration); return new ApplicationjsonBody(deserializedBody); } else { + TextplainMediatype thisMediaType = (TextplainMediatype) mediaType; String bodyData = deserializeTextPlain(body); - var deserializedBody = StringJsonSchema.StringJsonSchema1.getInstance().validateAndBox(bodyData, configuration); + var deserializedBody = thisMediaType.schema.validateAndBox(bodyData, configuration); return new TextplainBody(deserializedBody); } } diff --git a/src/main/resources/java/src/main/java/packagename/components/requestbodies/RequestBodyDoc.hbs b/src/main/resources/java/src/main/java/packagename/components/requestbodies/RequestBodyDoc.hbs index 17690ef9132..52c1eaee508 100644 --- a/src/main/resources/java/src/main/java/packagename/components/requestbodies/RequestBodyDoc.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/requestbodies/RequestBodyDoc.hbs @@ -90,7 +90,7 @@ a class that serializes SealedRequestBody request bodies | Modifier and Type | Field and Description | | ----------------- | --------------------- | | boolean | required = {{required}}
whether the request body is required | -| Map> | content = Map.ofEntries(
{{#each content}}    new AbstractMap.SimpleEntry<>("{{{@key.original}}}", new [{{@key.pascalCase}}MediaType](#{{@key.kebabCase}}mediatype)()){{#unless @last}},{{/unless}}
{{/each}})
the contentType to schema info | +| Map | content = Map.ofEntries(
{{#each content}}    new AbstractMap.SimpleEntry<>("{{{@key.original}}}", new [{{@key.pascalCase}}MediaType](#{{@key.kebabCase}}mediatype)()){{#unless @last}},{{/unless}}
{{/each}})
the contentType to schema info | {{headerSize}}## Method Summary | Modifier and Type | Method and Description | diff --git a/src/main/resources/java/src/main/java/packagename/components/responses/Response.hbs b/src/main/resources/java/src/main/java/packagename/components/responses/Response.hbs index b6a8c437968..a1981eacca7 100644 --- a/src/main/resources/java/src/main/java/packagename/components/responses/Response.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/responses/Response.hbs @@ -33,7 +33,7 @@ public class {{jsonPathPiece.pascalCase}} { public record {{@key.pascalCase}}MediaType({{#with this}}{{#with schema}}{{containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}} schema{{/with}}{{/with}}) implements SealedMediaType, MediaType<{{#with this}}{{#with schema}}{{containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}, Void{{/with}}{{/with}}> { public {{@key.pascalCase}}MediaType() { - super({{#with this}}{{#with schema}}{{containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}.getInstance(){{/with}}{{/with}}); + this({{#with this}}{{#with schema}}{{containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}.getInstance(){{/with}}{{/with}}); } @Override public Void encoding() { diff --git a/src/main/resources/java/src/main/java/packagename/requestbody/RequestBodySerializer.hbs b/src/main/resources/java/src/main/java/packagename/requestbody/RequestBodySerializer.hbs index 58f41e90c2c..0984cb424c8 100644 --- a/src/main/resources/java/src/main/java/packagename/requestbody/RequestBodySerializer.hbs +++ b/src/main/resources/java/src/main/java/packagename/requestbody/RequestBodySerializer.hbs @@ -1,7 +1,5 @@ package {{{packageName}}}.requestbody; -import {{{packageName}}}.mediatype.MediaType; - import java.net.http.HttpRequest; import org.checkerframework.checker.nullness.qual.Nullable; import com.google.gson.Gson; diff --git a/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs b/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs index 7cea82bad5a..7cb4d42ce46 100644 --- a/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs +++ b/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs @@ -15,7 +15,7 @@ import com.google.gson.ToNumberPolicy; import {{{packageName}}}.configurations.SchemaConfiguration; public abstract class ResponseDeserializer { - public final @Nullable Map content; + public final Map content; public final @Nullable Map headers; // todo change the value to header private static final Pattern jsonContentTypePattern = Pattern.compile( "application/[^+]*[+]?(json);?.*" diff --git a/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs b/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs index 47050aa3193..0269697ff0b 100644 --- a/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs @@ -35,20 +35,29 @@ public class ResponseDeserializerTest { public record TextplainBody(StringJsonSchema.StringJsonSchema1Boxed body) implements SealedResponseBody {} - public static class ApplicationjsonMediatype extends MediaType { + public sealed interface SealedMediaType permits ApplicationjsonMediatype, TextplainMediatype { } + + public record ApplicationjsonMediatype(AnyTypeJsonSchema.AnyTypeJsonSchema1 schema) implements SealedMediaType, MediaType { public ApplicationjsonMediatype() { - super(AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance()); + this(AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - public static class TextplainMediatype extends MediaType { + public record TextplainMediatype(StringJsonSchema.StringJsonSchema1 schema) implements SealedMediaType, MediaType { public TextplainMediatype() { - super(StringJsonSchema.StringJsonSchema1.getInstance()); + this(StringJsonSchema.StringJsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; } } - - public static class MyResponseDeserializer extends ResponseDeserializer { + public static class MyResponseDeserializer extends ResponseDeserializer { public MyResponseDeserializer() { super(Map.of("application/json", new ApplicationjsonMediatype(), "text/plain", new TextplainMediatype())); @@ -56,13 +65,24 @@ public class ResponseDeserializerTest { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if (contentTypeIsJson(contentType)) { + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediatype thisMediaType) { + /* + var deserializedBody = deserializeBody(String contentType, JsonSchema schema); + if contentType is json + @Nullable Object bodyData = deserializeJson(body); + return schema.validateAndBox(bodyData, configuration) + */ @Nullable Object bodyData = deserializeJson(body); - var deserializedBody = AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(bodyData, configuration); + var deserializedBody = thisMediaType.schema.validateAndBox(bodyData, configuration); return new ApplicationjsonBody(deserializedBody); } else { + TextplainMediatype thisMediaType = (TextplainMediatype) mediaType; String bodyData = deserializeTextPlain(body); - var deserializedBody = StringJsonSchema.StringJsonSchema1.getInstance().validateAndBox(bodyData, configuration); + var deserializedBody = thisMediaType.schema.validateAndBox(bodyData, configuration); return new TextplainBody(deserializedBody); } } From b7050c24af751950b45c4891964d93400163ea72 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Wed, 21 Feb 2024 12:06:38 -0800 Subject: [PATCH 22/50] Fixes response class names --- .../anotherfakedummy/patch/responses/Code200Response.java | 6 +++--- .../delete/responses/Code200Response.java | 4 ++-- .../commonparamsubdir/get/responses/Code200Response.java | 4 ++-- .../commonparamsubdir/post/responses/Code200Response.java | 4 ++-- .../paths/fake/delete/responses/Code200Response.java | 4 ++-- .../client/paths/fake/get/responses/Code200Response.java | 4 ++-- .../client/paths/fake/get/responses/Code404Response.java | 6 +++--- .../paths/fake/patch/responses/Code200Response.java | 6 +++--- .../client/paths/fake/post/responses/Code200Response.java | 4 ++-- .../client/paths/fake/post/responses/Code404Response.java | 6 +++--- .../get/responses/Code200Response.java | 6 +++--- .../put/responses/Code200Response.java | 4 ++-- .../put/responses/Code200Response.java | 4 ++-- .../put/responses/Code200Response.java | 4 ++-- .../patch/responses/Code200Response.java | 6 +++--- .../delete/responses/Code200Response.java | 4 ++-- .../delete/responses/CodedefaultResponse.java | 6 +++--- .../paths/fakehealth/get/responses/Code200Response.java | 6 +++--- .../post/responses/Code200Response.java | 4 ++-- .../post/responses/Code200Response.java | 6 +++--- .../fakejsonformdata/get/responses/Code200Response.java | 4 ++-- .../fakejsonpatch/patch/responses/Code200Response.java | 4 ++-- .../post/responses/Code200Response.java | 6 +++--- .../post/responses/Code200Response.java | 6 +++--- .../get/responses/Code200Response.java | 6 +++--- .../get/responses/Code202Response.java | 6 +++--- .../get/responses/Code200Response.java | 6 +++--- .../fakeobjinquery/get/responses/Code200Response.java | 4 ++-- .../post/responses/Code200Response.java | 6 +++--- .../fakepemcontenttype/get/responses/Code200Response.java | 6 +++--- .../post/responses/Code200Response.java | 6 +++--- .../get/responses/Code200Response.java | 6 +++--- .../fakeredirection/get/responses/Code303Response.java | 6 +++--- .../fakeredirection/get/responses/Code3XXResponse.java | 6 +++--- .../fakerefobjinquery/get/responses/Code200Response.java | 4 ++-- .../post/responses/Code200Response.java | 6 +++--- .../post/responses/Code200Response.java | 6 +++--- .../fakerefsboolean/post/responses/Code200Response.java | 6 +++--- .../post/responses/Code200Response.java | 6 +++--- .../fakerefsenum/post/responses/Code200Response.java | 6 +++--- .../fakerefsmammal/post/responses/Code200Response.java | 6 +++--- .../fakerefsnumber/post/responses/Code200Response.java | 6 +++--- .../post/responses/Code200Response.java | 6 +++--- .../fakerefsstring/post/responses/Code200Response.java | 6 +++--- .../get/responses/Code200Response.java | 6 +++--- .../put/responses/Code200Response.java | 4 ++-- .../post/responses/Code200Response.java | 6 +++--- .../fakeuploadfile/post/responses/Code200Response.java | 6 +++--- .../fakeuploadfiles/post/responses/Code200Response.java | 6 +++--- .../get/responses/Code1XXResponse.java | 6 +++--- .../get/responses/Code200Response.java | 6 +++--- .../get/responses/Code2XXResponse.java | 6 +++--- .../get/responses/Code3XXResponse.java | 6 +++--- .../get/responses/Code4XXResponse.java | 6 +++--- .../get/responses/Code5XXResponse.java | 6 +++--- .../paths/foo/get/responses/CodedefaultResponse.java | 6 +++--- .../client/paths/get/responses/Code200Response.java | 4 ++-- .../client/paths/pet/post/responses/Code200Response.java | 4 ++-- .../client/paths/pet/post/responses/Code405Response.java | 6 +++--- .../client/paths/pet/put/responses/Code400Response.java | 6 +++--- .../client/paths/pet/put/responses/Code404Response.java | 6 +++--- .../client/paths/pet/put/responses/Code405Response.java | 6 +++--- .../petfindbystatus/get/responses/Code200Response.java | 4 ++-- .../petfindbystatus/get/responses/Code400Response.java | 6 +++--- .../petfindbytags/get/responses/Code200Response.java | 4 ++-- .../petfindbytags/get/responses/Code400Response.java | 6 +++--- .../paths/petpetid/delete/responses/Code400Response.java | 6 +++--- .../paths/petpetid/get/responses/Code200Response.java | 6 +++--- .../paths/petpetid/get/responses/Code400Response.java | 6 +++--- .../paths/petpetid/get/responses/Code404Response.java | 6 +++--- .../paths/petpetid/post/responses/Code405Response.java | 6 +++--- .../post/responses/Code200Response.java | 4 ++-- .../storeinventory/get/responses/Code200Response.java | 4 ++-- .../paths/storeorder/post/responses/Code200Response.java | 6 +++--- .../paths/storeorder/post/responses/Code400Response.java | 6 +++--- .../delete/responses/Code400Response.java | 6 +++--- .../delete/responses/Code404Response.java | 6 +++--- .../storeorderorderid/get/responses/Code200Response.java | 6 +++--- .../storeorderorderid/get/responses/Code400Response.java | 6 +++--- .../storeorderorderid/get/responses/Code404Response.java | 6 +++--- .../paths/user/post/responses/CodedefaultResponse.java | 6 +++--- .../post/responses/CodedefaultResponse.java | 6 +++--- .../post/responses/CodedefaultResponse.java | 6 +++--- .../paths/userlogin/get/responses/Code200Response.java | 6 +++--- .../paths/userlogin/get/responses/Code400Response.java | 6 +++--- .../userlogout/get/responses/CodedefaultResponse.java | 4 ++-- .../userusername/delete/responses/Code200Response.java | 4 ++-- .../userusername/delete/responses/Code404Response.java | 6 +++--- .../paths/userusername/get/responses/Code200Response.java | 6 +++--- .../paths/userusername/get/responses/Code400Response.java | 6 +++--- .../paths/userusername/get/responses/Code404Response.java | 6 +++--- .../paths/userusername/put/responses/Code400Response.java | 6 +++--- .../paths/userusername/put/responses/Code404Response.java | 6 +++--- .../client/response/ResponseDeserializerTest.java | 4 ---- .../codegen/generators/DefaultGenerator.java | 4 ++-- .../codegen/generators/JavaClientGenerator.java | 8 ++++++++ 96 files changed, 265 insertions(+), 261 deletions(-) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java index 00249b83d61..6f003e20272 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model200 { +public class Code200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.Client1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { - public Model2001() { + public static class Code200Response1 extends ResponseDeserializer { + public Code200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/Code200Response.java index 4255444e844..d91fc8bb9f7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/Code200Response.java @@ -2,6 +2,6 @@ import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; -public class Model200 extends SuccessDescriptionOnly { - public static class Model2001 extends SuccessDescriptionOnly1 {} +public class Code200Response extends SuccessDescriptionOnly { + public static class Code200Response1 extends SuccessDescriptionOnly1 {} } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/Code200Response.java index a78fe2739a9..92947e99863 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/Code200Response.java @@ -2,6 +2,6 @@ import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; -public class Model200 extends SuccessDescriptionOnly { - public static class Model2001 extends SuccessDescriptionOnly1 {} +public class Code200Response extends SuccessDescriptionOnly { + public static class Code200Response1 extends SuccessDescriptionOnly1 {} } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/Code200Response.java index 868c20bcf15..81cdc60a4cd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/Code200Response.java @@ -2,6 +2,6 @@ import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; -public class Model200 extends SuccessDescriptionOnly { - public static class Model2001 extends SuccessDescriptionOnly1 {} +public class Code200Response extends SuccessDescriptionOnly { + public static class Code200Response1 extends SuccessDescriptionOnly1 {} } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/Code200Response.java index 4e4a74764d2..5094d251738 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/Code200Response.java @@ -2,6 +2,6 @@ import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; -public class Model200 extends SuccessDescriptionOnly { - public static class Model2001 extends SuccessDescriptionOnly1 {} +public class Code200Response extends SuccessDescriptionOnly { + public static class Code200Response1 extends SuccessDescriptionOnly1 {} } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code200Response.java index 14660ea2527..4c45da77e38 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code200Response.java @@ -2,6 +2,6 @@ import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; -public class Model200 extends SuccessDescriptionOnly { - public static class Model2001 extends SuccessDescriptionOnly1 {} +public class Code200Response extends SuccessDescriptionOnly { + public static class Code200Response1 extends SuccessDescriptionOnly1 {} } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code404Response.java index 7a575afa3c8..0e38f1e3489 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code404Response.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model404 { +public class Code404Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.MapJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model4041 extends ResponseDeserializer { - public Model4041() { + public static class Code404Response1 extends ResponseDeserializer { + public Code404Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/Code200Response.java index 2ea38f8ca2d..f3ec7da41df 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/Code200Response.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model200 { +public class Code200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.Client1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { - public Model2001() { + public static class Code200Response1 extends ResponseDeserializer { + public Code200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code200Response.java index bd7d88d77f0..e04e39b1f73 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code200Response.java @@ -2,6 +2,6 @@ import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; -public class Model200 extends SuccessDescriptionOnly { - public static class Model2001 extends SuccessDescriptionOnly1 {} +public class Code200Response extends SuccessDescriptionOnly { + public static class Code200Response1 extends SuccessDescriptionOnly1 {} } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code404Response.java index d0cbcce7988..bc7ac86738e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code404Response.java @@ -10,10 +10,10 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model404 { +public class Code404Response { - public static class Model4041 extends ResponseDeserializer { - public Model4041() { + public static class Code404Response1 extends ResponseDeserializer { + public Code404Response1() { super( Map.ofEntries( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java index 487e691e2fc..63c53439cd8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model200 { +public class Code200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AdditionalPropertiesWithArrayOfEnums1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { - public Model2001() { + public static class Code200Response1 extends ResponseDeserializer { + public Code200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/Code200Response.java index 755cc1d8ce7..71a49134261 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/Code200Response.java @@ -2,6 +2,6 @@ import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; -public class Model200 extends SuccessDescriptionOnly { - public static class Model2001 extends SuccessDescriptionOnly1 {} +public class Code200Response extends SuccessDescriptionOnly { + public static class Code200Response1 extends SuccessDescriptionOnly1 {} } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/Code200Response.java index c693a26dbd2..4370c358e93 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/Code200Response.java @@ -2,6 +2,6 @@ import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; -public class Model200 extends SuccessDescriptionOnly { - public static class Model2001 extends SuccessDescriptionOnly1 {} +public class Code200Response extends SuccessDescriptionOnly { + public static class Code200Response1 extends SuccessDescriptionOnly1 {} } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/Code200Response.java index 03e7c793fa1..3b79dac0ee0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/Code200Response.java @@ -2,6 +2,6 @@ import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; -public class Model200 extends SuccessDescriptionOnly { - public static class Model2001 extends SuccessDescriptionOnly1 {} +public class Code200Response extends SuccessDescriptionOnly { + public static class Code200Response1 extends SuccessDescriptionOnly1 {} } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java index 304db184f18..14a79d57ff5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model200 { +public class Code200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.Client1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { - public Model2001() { + public static class Code200Response1 extends ResponseDeserializer { + public Code200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/Code200Response.java index 50b021fe3ed..29983a94575 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/Code200Response.java @@ -2,6 +2,6 @@ import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; -public class Model200 extends SuccessDescriptionOnly { - public static class Model2001 extends SuccessDescriptionOnly1 {} +public class Code200Response extends SuccessDescriptionOnly { + public static class Code200Response1 extends SuccessDescriptionOnly1 {} } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.java index 4cb16117162..1cbc491ef02 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.java @@ -10,10 +10,10 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class ModelDefault { +public class CodedefaultResponse { - public static class ModelDefault1 extends ResponseDeserializer { - public ModelDefault1() { + public static class CodedefaultResponse1 extends ResponseDeserializer { + public CodedefaultResponse1() { super( Map.ofEntries( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java index 8bfa097ad3f..4955bad78f1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model200 { +public class Code200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.HealthCheckResult1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { - public Model2001() { + public static class Code200Response1 extends ResponseDeserializer { + public Code200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/Code200Response.java index bb651f43688..ce64200111e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/Code200Response.java @@ -2,6 +2,6 @@ import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; -public class Model200 extends SuccessDescriptionOnly { - public static class Model2001 extends SuccessDescriptionOnly1 {} +public class Code200Response extends SuccessDescriptionOnly { + public static class Code200Response1 extends SuccessDescriptionOnly1 {} } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/Code200Response.java index fb37a3ec92d..38c865250c2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/Code200Response.java @@ -12,7 +12,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model200 { +public class Code200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType, MultipartformdataMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -38,8 +38,8 @@ public sealed interface SealedResponseBody permits ApplicationjsonResponseBody, public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApplicationjsonSchema1Boxed body) implements SealedResponseBody { } public record MultipartformdataResponseBody(MultipartformdataSchema.MultipartformdataSchema1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { - public Model2001() { + public static class Code200Response1 extends ResponseDeserializer { + public Code200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()), diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/Code200Response.java index 7f228130188..7973ff46632 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/Code200Response.java @@ -2,6 +2,6 @@ import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; -public class Model200 extends SuccessDescriptionOnly { - public static class Model2001 extends SuccessDescriptionOnly1 {} +public class Code200Response extends SuccessDescriptionOnly { + public static class Code200Response1 extends SuccessDescriptionOnly1 {} } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/Code200Response.java index 2b4ad95f1d3..261e52cbb39 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/Code200Response.java @@ -2,6 +2,6 @@ import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; -public class Model200 extends SuccessDescriptionOnly { - public static class Model2001 extends SuccessDescriptionOnly1 {} +public class Code200Response extends SuccessDescriptionOnly { + public static class Code200Response1 extends SuccessDescriptionOnly1 {} } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java index f6e774a1a94..0c01a493e5d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model200 { +public class Code200Response { public sealed interface SealedMediaType permits Applicationjsoncharsetutf8MediaType {} public record Applicationjsoncharsetutf8MediaType(Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits Applicationjsoncharsetutf8ResponseBody {} public record Applicationjsoncharsetutf8ResponseBody(Applicationjsoncharsetutf8Schema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { - public Model2001() { + public static class Code200Response1 extends ResponseDeserializer { + public Code200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json; charset=utf-8", new Applicationjsoncharsetutf8MediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java index 7fd899f46d3..857bcf793b3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model200 { +public class Code200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { - public Model2001() { + public static class Code200Response1 extends ResponseDeserializer { + public Code200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code200Response.java index 4b8676c6ec2..2cffa271911 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code200Response.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model200 { +public class Code200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { - public Model2001() { + public static class Code200Response1 extends ResponseDeserializer { + public Code200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java index d9acf21c3f5..9efb7ba730e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model202 { +public class Code202Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model2021 extends ResponseDeserializer { - public Model2021() { + public static class Code202Response1 extends ResponseDeserializer { + public Code202Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java index cad7c944e2c..c11d6634376 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model200 { +public class Code200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { - public Model2001() { + public static class Code200Response1 extends ResponseDeserializer { + public Code200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/Code200Response.java index f7c61691fa9..3e317ea4671 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/Code200Response.java @@ -2,6 +2,6 @@ import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; -public class Model200 extends SuccessDescriptionOnly { - public static class Model2001 extends SuccessDescriptionOnly1 {} +public class Code200Response extends SuccessDescriptionOnly { + public static class Code200Response1 extends SuccessDescriptionOnly1 {} } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java index ec08fa2bcdd..02254d22175 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model200 { +public class Code200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { - public Model2001() { + public static class Code200Response1 extends ResponseDeserializer { + public Code200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java index ecb0f9314b3..93a42fd895c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model200 { +public class Code200Response { public sealed interface SealedMediaType permits ApplicationxpemfileMediaType {} public record ApplicationxpemfileMediaType(ApplicationxpemfileSchema.ApplicationxpemfileSchema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationxpemfileResponseBody {} public record ApplicationxpemfileResponseBody(ApplicationxpemfileSchema.StringJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { - public Model2001() { + public static class Code200Response1 extends ResponseDeserializer { + public Code200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/x-pem-file", new ApplicationxpemfileMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.java index 402a253d7ea..311218668d6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model200 { +public class Code200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApiResponseSchema1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { - public Model2001() { + public static class Code200Response1 extends ResponseDeserializer { + public Code200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java index 3e09cefb831..81555b52ea2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model200 { +public class Code200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { - public Model2001() { + public static class Code200Response1 extends ResponseDeserializer { + public Code200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code303Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code303Response.java index a8c20311bb2..91d739ab0aa 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code303Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code303Response.java @@ -10,10 +10,10 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model303 { +public class Code303Response { - public static class Model3031 extends ResponseDeserializer { - public Model3031() { + public static class Code303Response1 extends ResponseDeserializer { + public Code303Response1() { super( Map.ofEntries( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code3XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code3XXResponse.java index fc547e29a6c..1e5d6a87225 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code3XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code3XXResponse.java @@ -10,10 +10,10 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model3XX { +public class Code3XXResponse { - public static class Model3XX1 extends ResponseDeserializer { - public Model3XX1() { + public static class Code3XXResponse1 extends ResponseDeserializer { + public Code3XXResponse1() { super( Map.ofEntries( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/Code200Response.java index 8bfd78fc751..ef459550ec7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/Code200Response.java @@ -2,6 +2,6 @@ import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; -public class Model200 extends SuccessDescriptionOnly { - public static class Model2001 extends SuccessDescriptionOnly1 {} +public class Code200Response extends SuccessDescriptionOnly { + public static class Code200Response1 extends SuccessDescriptionOnly1 {} } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java index 0bde3a93ecf..e3b29e61f79 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model200 { +public class Code200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnimalFarm1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { - public Model2001() { + public static class Code200Response1 extends ResponseDeserializer { + public Code200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java index 614d60425c4..f308a1b8ed5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model200 { +public class Code200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.ArrayOfEnums1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { - public Model2001() { + public static class Code200Response1 extends ResponseDeserializer { + public Code200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java index d4b97391d76..2c8e347f0de 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model200 { +public class Code200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.BooleanJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { - public Model2001() { + public static class Code200Response1 extends ResponseDeserializer { + public Code200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java index 4dac6f89dfc..f1bcb623bd9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model200 { +public class Code200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.ComposedOneOfDifferentTypes1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { - public Model2001() { + public static class Code200Response1 extends ResponseDeserializer { + public Code200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java index a48894f8f3f..ed5d6188c3e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model200 { +public class Code200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.StringEnum1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { - public Model2001() { + public static class Code200Response1 extends ResponseDeserializer { + public Code200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java index f826a492ab5..28ae691a15a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model200 { +public class Code200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.Mammal1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { - public Model2001() { + public static class Code200Response1 extends ResponseDeserializer { + public Code200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java index 6d7e96663d8..24005dbaf26 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model200 { +public class Code200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.NumberWithValidations1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { - public Model2001() { + public static class Code200Response1 extends ResponseDeserializer { + public Code200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java index 35ed135b6f8..24a87ade9ed 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model200 { +public class Code200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.ObjectModelWithRefProps1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { - public Model2001() { + public static class Code200Response1 extends ResponseDeserializer { + public Code200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java index 04f1c8a160b..f0c8ed855b6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model200 { +public class Code200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.StringJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { - public Model2001() { + public static class Code200Response1 extends ResponseDeserializer { + public Code200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java index 2b9f4e14e55..1b76bafbe24 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java @@ -10,7 +10,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model200 { +public class Code200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType, ApplicationxmlMediaType {} public record ApplicationjsonMediaType() implements SealedMediaType, MediaType<> { @@ -36,8 +36,8 @@ public sealed interface SealedResponseBody permits ApplicationjsonResponseBody, public record ApplicationjsonResponseBody( body) implements SealedResponseBody { } public record ApplicationxmlResponseBody( body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { - public Model2001() { + public static class Code200Response1 extends ResponseDeserializer { + public Code200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()), diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/Code200Response.java index ec73dec6301..ca41d3b2624 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/Code200Response.java @@ -2,6 +2,6 @@ import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; -public class Model200 extends SuccessDescriptionOnly { - public static class Model2001 extends SuccessDescriptionOnly1 {} +public class Code200Response extends SuccessDescriptionOnly { + public static class Code200Response1 extends SuccessDescriptionOnly1 {} } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java index 0cb17647475..69faed4694a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model200 { +public class Code200Response { public sealed interface SealedMediaType permits ApplicationoctetstreamMediaType {} public record ApplicationoctetstreamMediaType(ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationoctetstreamResponseBody {} public record ApplicationoctetstreamResponseBody(ApplicationoctetstreamSchema.StringJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { - public Model2001() { + public static class Code200Response1 extends ResponseDeserializer { + public Code200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/octet-stream", new ApplicationoctetstreamMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java index 5bd165ba20c..fdf083aa635 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model200 { +public class Code200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApiResponseSchema1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { - public Model2001() { + public static class Code200Response1 extends ResponseDeserializer { + public Code200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java index 7dd7157c8b6..f99cb1331ae 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model200 { +public class Code200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApiResponseSchema1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { - public Model2001() { + public static class Code200Response1 extends ResponseDeserializer { + public Code200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code1XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code1XXResponse.java index 0bc835e26d0..5d193bfadab 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code1XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code1XXResponse.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model1XX { +public class Code1XXResponse { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model1XX1 extends ResponseDeserializer { - public Model1XX1() { + public static class Code1XXResponse1 extends ResponseDeserializer { + public Code1XXResponse1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java index d744c00418d..838564d9867 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model200 { +public class Code200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { - public Model2001() { + public static class Code200Response1 extends ResponseDeserializer { + public Code200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code2XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code2XXResponse.java index d96fb42c449..5b11fcee79d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code2XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code2XXResponse.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model2XX { +public class Code2XXResponse { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model2XX1 extends ResponseDeserializer { - public Model2XX1() { + public static class Code2XXResponse1 extends ResponseDeserializer { + public Code2XXResponse1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code3XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code3XXResponse.java index 307eb4e9685..b93c81a85ec 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code3XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code3XXResponse.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model3XX { +public class Code3XXResponse { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model3XX1 extends ResponseDeserializer { - public Model3XX1() { + public static class Code3XXResponse1 extends ResponseDeserializer { + public Code3XXResponse1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code4XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code4XXResponse.java index 5f5de7d0a56..ceae6aff3c5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code4XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code4XXResponse.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model4XX { +public class Code4XXResponse { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model4XX1 extends ResponseDeserializer { - public Model4XX1() { + public static class Code4XXResponse1 extends ResponseDeserializer { + public Code4XXResponse1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code5XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code5XXResponse.java index 8079fe732b4..214954c8c1f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code5XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code5XXResponse.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model5XX { +public class Code5XXResponse { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model5XX1 extends ResponseDeserializer { - public Model5XX1() { + public static class Code5XXResponse1 extends ResponseDeserializer { + public Code5XXResponse1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java index 19a48601239..f2f9c686894 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java @@ -11,7 +11,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class ModelDefault { +public class CodedefaultResponse { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -26,8 +26,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApplicationjsonSchema1Boxed body) implements SealedResponseBody { } - public static class ModelDefault1 extends ResponseDeserializer { - public ModelDefault1() { + public static class CodedefaultResponse1 extends ResponseDeserializer { + public CodedefaultResponse1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/get/responses/Code200Response.java index cda5909ba00..2c74b914f01 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/get/responses/Code200Response.java @@ -2,6 +2,6 @@ import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; -public class Model200 extends SuccessDescriptionOnly { - public static class Model2001 extends SuccessDescriptionOnly1 {} +public class Code200Response extends SuccessDescriptionOnly { + public static class Code200Response1 extends SuccessDescriptionOnly1 {} } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code200Response.java index 59ec279b77d..77a882b268d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code200Response.java @@ -2,6 +2,6 @@ import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; -public class Model200 extends SuccessDescriptionOnly { - public static class Model2001 extends SuccessDescriptionOnly1 {} +public class Code200Response extends SuccessDescriptionOnly { + public static class Code200Response1 extends SuccessDescriptionOnly1 {} } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code405Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code405Response.java index b69a8afa465..a72f0cbf7e7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code405Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code405Response.java @@ -10,10 +10,10 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model405 { +public class Code405Response { - public static class Model4051 extends ResponseDeserializer { - public Model4051() { + public static class Code405Response1 extends ResponseDeserializer { + public Code405Response1() { super( Map.ofEntries( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code400Response.java index 7fb93591039..d457063ed8a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code400Response.java @@ -10,10 +10,10 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model400 { +public class Code400Response { - public static class Model4001 extends ResponseDeserializer { - public Model4001() { + public static class Code400Response1 extends ResponseDeserializer { + public Code400Response1() { super( Map.ofEntries( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code404Response.java index e01bccf2efb..c07df4c365b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code404Response.java @@ -10,10 +10,10 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model404 { +public class Code404Response { - public static class Model4041 extends ResponseDeserializer { - public Model4041() { + public static class Code404Response1 extends ResponseDeserializer { + public Code404Response1() { super( Map.ofEntries( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code405Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code405Response.java index cf2c237168e..c07b29e0bf5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code405Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code405Response.java @@ -10,10 +10,10 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model405 { +public class Code405Response { - public static class Model4051 extends ResponseDeserializer { - public Model4051() { + public static class Code405Response1 extends ResponseDeserializer { + public Code405Response1() { super( Map.ofEntries( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code200Response.java index 79c2b3ac4c1..0bfcce006b9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code200Response.java @@ -2,6 +2,6 @@ import org.openapijsonschematools.client.components.responses.SuccessfulXmlAndJsonArrayOfPet; -public class Model200 extends SuccessfulXmlAndJsonArrayOfPet { - public static class Model2001 extends SuccessfulXmlAndJsonArrayOfPet1 {} +public class Code200Response extends SuccessfulXmlAndJsonArrayOfPet { + public static class Code200Response1 extends SuccessfulXmlAndJsonArrayOfPet1 {} } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code400Response.java index 199ce09d493..73736b63a46 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code400Response.java @@ -10,10 +10,10 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model400 { +public class Code400Response { - public static class Model4001 extends ResponseDeserializer { - public Model4001() { + public static class Code400Response1 extends ResponseDeserializer { + public Code400Response1() { super( Map.ofEntries( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code200Response.java index c69d8a75c16..ab2690f07ef 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code200Response.java @@ -2,6 +2,6 @@ import org.openapijsonschematools.client.components.responses.RefSuccessfulXmlAndJsonArrayOfPet; -public class Model200 extends RefSuccessfulXmlAndJsonArrayOfPet { - public static class Model2001 extends RefSuccessfulXmlAndJsonArrayOfPet1 {} +public class Code200Response extends RefSuccessfulXmlAndJsonArrayOfPet { + public static class Code200Response1 extends RefSuccessfulXmlAndJsonArrayOfPet1 {} } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code400Response.java index 2dc76b1aee7..3b55cbd30a4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code400Response.java @@ -10,10 +10,10 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model400 { +public class Code400Response { - public static class Model4001 extends ResponseDeserializer { - public Model4001() { + public static class Code400Response1 extends ResponseDeserializer { + public Code400Response1() { super( Map.ofEntries( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/Code400Response.java index 967a0404efa..a8f2c888fbc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/Code400Response.java @@ -10,10 +10,10 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model400 { +public class Code400Response { - public static class Model4001 extends ResponseDeserializer { - public Model4001() { + public static class Code400Response1 extends ResponseDeserializer { + public Code400Response1() { super( Map.ofEntries( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code200Response.java index b5077b5b293..10c45bdeca8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code200Response.java @@ -12,7 +12,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model200 { +public class Code200Response { public sealed interface SealedMediaType permits ApplicationxmlMediaType, ApplicationjsonMediaType {} public record ApplicationxmlMediaType(ApplicationxmlSchema.ApplicationxmlSchema1 schema) implements SealedMediaType, MediaType { @@ -38,8 +38,8 @@ public sealed interface SealedResponseBody permits ApplicationxmlResponseBody, A public record ApplicationxmlResponseBody(ApplicationxmlSchema.Pet1Boxed body) implements SealedResponseBody { } public record ApplicationjsonResponseBody(ApplicationjsonSchema.Pet1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { - public Model2001() { + public static class Code200Response1 extends ResponseDeserializer { + public Code200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/xml", new ApplicationxmlMediaType()), diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code400Response.java index 1e5d1df5c01..5fb18202e31 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code400Response.java @@ -10,10 +10,10 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model400 { +public class Code400Response { - public static class Model4001 extends ResponseDeserializer { - public Model4001() { + public static class Code400Response1 extends ResponseDeserializer { + public Code400Response1() { super( Map.ofEntries( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code404Response.java index 12a749809e0..be68b2459a0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code404Response.java @@ -10,10 +10,10 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model404 { +public class Code404Response { - public static class Model4041 extends ResponseDeserializer { - public Model4041() { + public static class Code404Response1 extends ResponseDeserializer { + public Code404Response1() { super( Map.ofEntries( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/Code405Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/Code405Response.java index 14efc29f216..2a37575faae 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/Code405Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/Code405Response.java @@ -10,10 +10,10 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model405 { +public class Code405Response { - public static class Model4051 extends ResponseDeserializer { - public Model4051() { + public static class Code405Response1 extends ResponseDeserializer { + public Code405Response1() { super( Map.ofEntries( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/Code200Response.java index 5d677f34f23..593e5a8bd71 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/Code200Response.java @@ -2,6 +2,6 @@ import org.openapijsonschematools.client.components.responses.SuccessWithJsonApiResponse; -public class Model200 extends SuccessWithJsonApiResponse { - public static class Model2001 extends SuccessWithJsonApiResponse1 {} +public class Code200Response extends SuccessWithJsonApiResponse { + public static class Code200Response1 extends SuccessWithJsonApiResponse1 {} } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/Code200Response.java index fac6c984526..0dcc3b8d63f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/Code200Response.java @@ -2,6 +2,6 @@ import org.openapijsonschematools.client.components.responses.SuccessInlineContentAndHeader; -public class Model200 extends SuccessInlineContentAndHeader { - public static class Model2001 extends SuccessInlineContentAndHeader1 {} +public class Code200Response extends SuccessInlineContentAndHeader { + public static class Code200Response1 extends SuccessInlineContentAndHeader1 {} } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code200Response.java index b718b88941e..00cfc1bdd98 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code200Response.java @@ -12,7 +12,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model200 { +public class Code200Response { public sealed interface SealedMediaType permits ApplicationxmlMediaType, ApplicationjsonMediaType {} public record ApplicationxmlMediaType(ApplicationxmlSchema.ApplicationxmlSchema1 schema) implements SealedMediaType, MediaType { @@ -38,8 +38,8 @@ public sealed interface SealedResponseBody permits ApplicationxmlResponseBody, A public record ApplicationxmlResponseBody(ApplicationxmlSchema.Order1Boxed body) implements SealedResponseBody { } public record ApplicationjsonResponseBody(ApplicationjsonSchema.Order1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { - public Model2001() { + public static class Code200Response1 extends ResponseDeserializer { + public Code200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/xml", new ApplicationxmlMediaType()), diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code400Response.java index 645c111a7dc..0c39f5df76e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code400Response.java @@ -10,10 +10,10 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model400 { +public class Code400Response { - public static class Model4001 extends ResponseDeserializer { - public Model4001() { + public static class Code400Response1 extends ResponseDeserializer { + public Code400Response1() { super( Map.ofEntries( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code400Response.java index 72c70fe8b99..8f2eb073ba4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code400Response.java @@ -10,10 +10,10 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model400 { +public class Code400Response { - public static class Model4001 extends ResponseDeserializer { - public Model4001() { + public static class Code400Response1 extends ResponseDeserializer { + public Code400Response1() { super( Map.ofEntries( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code404Response.java index 75ae4faa431..395df7b4918 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code404Response.java @@ -10,10 +10,10 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model404 { +public class Code404Response { - public static class Model4041 extends ResponseDeserializer { - public Model4041() { + public static class Code404Response1 extends ResponseDeserializer { + public Code404Response1() { super( Map.ofEntries( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code200Response.java index 7d8408b687f..fe690fb3162 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code200Response.java @@ -12,7 +12,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model200 { +public class Code200Response { public sealed interface SealedMediaType permits ApplicationxmlMediaType, ApplicationjsonMediaType {} public record ApplicationxmlMediaType(ApplicationxmlSchema.ApplicationxmlSchema1 schema) implements SealedMediaType, MediaType { @@ -38,8 +38,8 @@ public sealed interface SealedResponseBody permits ApplicationxmlResponseBody, A public record ApplicationxmlResponseBody(ApplicationxmlSchema.Order1Boxed body) implements SealedResponseBody { } public record ApplicationjsonResponseBody(ApplicationjsonSchema.Order1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { - public Model2001() { + public static class Code200Response1 extends ResponseDeserializer { + public Code200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/xml", new ApplicationxmlMediaType()), diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code400Response.java index cc48181a459..43d36c1e02f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code400Response.java @@ -10,10 +10,10 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model400 { +public class Code400Response { - public static class Model4001 extends ResponseDeserializer { - public Model4001() { + public static class Code400Response1 extends ResponseDeserializer { + public Code400Response1() { super( Map.ofEntries( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code404Response.java index 01f7b8cd293..a97cad8f9c7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code404Response.java @@ -10,10 +10,10 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model404 { +public class Code404Response { - public static class Model4041 extends ResponseDeserializer { - public Model4041() { + public static class Code404Response1 extends ResponseDeserializer { + public Code404Response1() { super( Map.ofEntries( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/CodedefaultResponse.java index 142b3172b08..c11f51b4d0e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/CodedefaultResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/CodedefaultResponse.java @@ -10,10 +10,10 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class ModelDefault { +public class CodedefaultResponse { - public static class ModelDefault1 extends ResponseDeserializer { - public ModelDefault1() { + public static class CodedefaultResponse1 extends ResponseDeserializer { + public CodedefaultResponse1() { super( Map.ofEntries( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/CodedefaultResponse.java index ac8338b41e9..b1cb5ee3791 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/CodedefaultResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/CodedefaultResponse.java @@ -10,10 +10,10 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class ModelDefault { +public class CodedefaultResponse { - public static class ModelDefault1 extends ResponseDeserializer { - public ModelDefault1() { + public static class CodedefaultResponse1 extends ResponseDeserializer { + public CodedefaultResponse1() { super( Map.ofEntries( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/CodedefaultResponse.java index d6ba1fb3d47..d36c2354aff 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/CodedefaultResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/CodedefaultResponse.java @@ -10,10 +10,10 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class ModelDefault { +public class CodedefaultResponse { - public static class ModelDefault1 extends ResponseDeserializer { - public ModelDefault1() { + public static class CodedefaultResponse1 extends ResponseDeserializer { + public CodedefaultResponse1() { super( Map.ofEntries( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code200Response.java index c4e278ba03b..df14517d325 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code200Response.java @@ -12,7 +12,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model200 { +public class Code200Response { public sealed interface SealedMediaType permits ApplicationxmlMediaType, ApplicationjsonMediaType {} public record ApplicationxmlMediaType(ApplicationxmlSchema.ApplicationxmlSchema1 schema) implements SealedMediaType, MediaType { @@ -38,8 +38,8 @@ public sealed interface SealedResponseBody permits ApplicationxmlResponseBody, A public record ApplicationxmlResponseBody(ApplicationxmlSchema.StringJsonSchema1Boxed body) implements SealedResponseBody { } public record ApplicationjsonResponseBody(ApplicationjsonSchema.StringJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { - public Model2001() { + public static class Code200Response1 extends ResponseDeserializer { + public Code200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/xml", new ApplicationxmlMediaType()), diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code400Response.java index b6b67e0331b..87961803df8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code400Response.java @@ -10,10 +10,10 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model400 { +public class Code400Response { - public static class Model4001 extends ResponseDeserializer { - public Model4001() { + public static class Code400Response1 extends ResponseDeserializer { + public Code400Response1() { super( Map.ofEntries( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/CodedefaultResponse.java index 833cfca5714..827132f3fd6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/CodedefaultResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/CodedefaultResponse.java @@ -2,6 +2,6 @@ import org.openapijsonschematools.client.components.responses.RefSuccessDescriptionOnly; -public class ModelDefault extends RefSuccessDescriptionOnly { - public static class ModelDefault1 extends RefSuccessDescriptionOnly1 {} +public class CodedefaultResponse extends RefSuccessDescriptionOnly { + public static class CodedefaultResponse1 extends RefSuccessDescriptionOnly1 {} } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code200Response.java index 05d2269cd13..3dc59f474c4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code200Response.java @@ -2,6 +2,6 @@ import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; -public class Model200 extends SuccessDescriptionOnly { - public static class Model2001 extends SuccessDescriptionOnly1 {} +public class Code200Response extends SuccessDescriptionOnly { + public static class Code200Response1 extends SuccessDescriptionOnly1 {} } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code404Response.java index eb062607c0c..901c68da5bc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code404Response.java @@ -10,10 +10,10 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model404 { +public class Code404Response { - public static class Model4041 extends ResponseDeserializer { - public Model4041() { + public static class Code404Response1 extends ResponseDeserializer { + public Code404Response1() { super( Map.ofEntries( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code200Response.java index d8524441fa1..7a7c00405ce 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code200Response.java @@ -12,7 +12,7 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model200 { +public class Code200Response { public sealed interface SealedMediaType permits ApplicationxmlMediaType, ApplicationjsonMediaType {} public record ApplicationxmlMediaType(ApplicationxmlSchema.ApplicationxmlSchema1 schema) implements SealedMediaType, MediaType { @@ -38,8 +38,8 @@ public sealed interface SealedResponseBody permits ApplicationxmlResponseBody, A public record ApplicationxmlResponseBody(ApplicationxmlSchema.User1Boxed body) implements SealedResponseBody { } public record ApplicationjsonResponseBody(ApplicationjsonSchema.User1Boxed body) implements SealedResponseBody { } - public static class Model2001 extends ResponseDeserializer { - public Model2001() { + public static class Code200Response1 extends ResponseDeserializer { + public Code200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/xml", new ApplicationxmlMediaType()), diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code400Response.java index a49b2c6c71e..e582c58a2db 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code400Response.java @@ -10,10 +10,10 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model400 { +public class Code400Response { - public static class Model4001 extends ResponseDeserializer { - public Model4001() { + public static class Code400Response1 extends ResponseDeserializer { + public Code400Response1() { super( Map.ofEntries( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code404Response.java index 8efccf13943..fa2593c8087 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code404Response.java @@ -10,10 +10,10 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model404 { +public class Code404Response { - public static class Model4041 extends ResponseDeserializer { - public Model4041() { + public static class Code404Response1 extends ResponseDeserializer { + public Code404Response1() { super( Map.ofEntries( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code400Response.java index 6d2a25334d7..6637a73ef35 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code400Response.java @@ -10,10 +10,10 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model400 { +public class Code400Response { - public static class Model4001 extends ResponseDeserializer { - public Model4001() { + public static class Code400Response1 extends ResponseDeserializer { + public Code400Response1() { super( Map.ofEntries( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code404Response.java index 030a0bf5290..27b5dcbb9ca 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code404Response.java @@ -10,10 +10,10 @@ import java.util.Map; import java.net.http.HttpHeaders; -public class Model404 { +public class Code404Response { - public static class Model4041 extends ResponseDeserializer { - public Model4041() { + public static class Code404Response1 extends ResponseDeserializer { + public Code404Response1() { super( Map.ofEntries( ) diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java index 4702bdc2f82..e859608c9e2 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java @@ -41,10 +41,6 @@ public record ApplicationjsonMediatype(AnyTypeJsonSchema.AnyTypeJsonSchema1 sche public ApplicationjsonMediatype() { this(AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance()); } - public Class sealedType() { - return AnyTypeJsonSchema.AnyTypeJsonSchema1Boxed.class; - } - @Override public Void encoding() { return null; diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java index 36f60186080..524259675a2 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java @@ -734,7 +734,7 @@ public HashMap public String toResponseModuleName(String componentName, String jsonPath) { return toModuleFilename(componentName, jsonPath); } - public String getPascalCaseResponse(String componentName) { return toModelName(componentName, null); } + public String getPascalCaseResponse(String componentName, String jsonPath) { return toModelName(componentName, null); } public String toHeaderFilename(String componentName, String jsonPath) { return toModuleFilename(componentName, jsonPath); } @@ -4892,7 +4892,7 @@ public CodegenKey getKey(String key, String keyType, String sourceJsonPath) { usedKey = escapeUnsafeCharacters(key); isValid = isValid(usedKey); snakeCaseName = toResponseModuleName(usedKey, sourceJsonPath); - pascalCaseName = getPascalCaseResponse(usedKey); + pascalCaseName = getPascalCaseResponse(usedKey, sourceJsonPath); break; case "securitySchemes": usedKey = escapeUnsafeCharacters(key); diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java index 953e6661334..a4bd49cddda 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java @@ -890,6 +890,14 @@ public String toRequestBodyFilename(String componentName, String jsonPath) { return toModuleFilename(componentName, null); } + public String getPascalCaseResponse(String componentName, String jsonPath) { + if (jsonPath.startsWith("#/components/responses/")) { + return toModelName(componentName, null); + } else { + return toModelName("Code"+componentName+"Response", null); + } + } + @Override public String toResponseModuleName(String componentName, String jsonPath) { String[] pathPieces = jsonPath.split("/"); From 85f5a6d3ac23eea690cefdd4b03db6f4bb061fb9 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Wed, 21 Feb 2024 12:18:28 -0800 Subject: [PATCH 23/50] Fixes handling or responses with no schema definition --- .../get/responses/Code200Response.java | 39 +++---------------- .../components/responses/Response.hbs | 20 +++++----- 2 files changed, 14 insertions(+), 45 deletions(-) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java index 1b76bafbe24..c84aefe7aa2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java @@ -11,49 +11,20 @@ import java.net.http.HttpHeaders; public class Code200Response { - public sealed interface SealedMediaType permits ApplicationjsonMediaType, ApplicationxmlMediaType {} - public record ApplicationjsonMediaType() implements SealedMediaType, MediaType<> { - public ApplicationjsonMediaType() { - this(); - } - @Override - public Void encoding() { - return null; - } - } - - public record ApplicationxmlMediaType() implements SealedMediaType, MediaType<> { - public ApplicationxmlMediaType() { - this(); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationjsonResponseBody, ApplicationxmlResponseBody {} - public record ApplicationjsonResponseBody( body) implements SealedResponseBody { } - public record ApplicationxmlResponseBody( body) implements SealedResponseBody { } - - public static class Code200Response1 extends ResponseDeserializer { + public static class Code200Response1 extends ResponseDeserializer { public Code200Response1() { super( Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()), - new AbstractMap.SimpleEntry<>("application/xml", new ApplicationxmlMediaType()) + new AbstractMap.SimpleEntry<>("application/json", null), + new AbstractMap.SimpleEntry<>("application/xml", null) ) ); } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization - } else if ("application/xml".equals(contentType)) { - // todo implement deserialization - } - throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); + public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + return null; } @Override diff --git a/src/main/resources/java/src/main/java/packagename/components/responses/Response.hbs b/src/main/resources/java/src/main/java/packagename/components/responses/Response.hbs index a1981eacca7..ab6eaa7f2e7 100644 --- a/src/main/resources/java/src/main/java/packagename/components/responses/Response.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/responses/Response.hbs @@ -26,10 +26,9 @@ import java.util.Map; import java.net.http.HttpHeaders; public class {{jsonPathPiece.pascalCase}} { - {{#if content}} + {{#if hasContentSchema}} public sealed interface SealedMediaType permits {{#each content}}{{@key.pascalCase}}MediaType{{#unless @last}}, {{/unless}}{{/each}} {} - {{/if}} - {{#each content}} + {{#each content}} public record {{@key.pascalCase}}MediaType({{#with this}}{{#with schema}}{{containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}} schema{{/with}}{{/with}}) implements SealedMediaType, MediaType<{{#with this}}{{#with schema}}{{containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}, Void{{/with}}{{/with}}> { public {{@key.pascalCase}}MediaType() { @@ -40,26 +39,25 @@ public class {{jsonPathPiece.pascalCase}} { return null; } } - {{/each}} - {{#if content}} + {{/each}} public sealed interface SealedResponseBody permits {{#each content}}{{@key.pascalCase}}ResponseBody{{#unless @last}}, {{/unless}}{{/each}} {} - {{/if}} - {{#each content}} + {{#each content}} public record {{@key.pascalCase}}ResponseBody({{#with this}}{{#with schema}}{{containerJsonPathPiece.pascalCase}}.{{#with getSelfOrDeepestRef}}{{> src/main/java/packagename/components/schemas/_sealedClassName }}{{/with}}{{/with}}{{/with}} body) implements SealedResponseBody { } - {{/each}} + {{/each}} + {{/if}} - public static class {{jsonPathPiece.pascalCase}}1 extends ResponseDeserializer<{{#if content}}SealedResponseBody{{else}}Void{{/if}}, Void, {{#if content}}SealedMediaType{{else}}Void{{/if}}> { + public static class {{jsonPathPiece.pascalCase}}1 extends ResponseDeserializer<{{#if hasContentSchema}}SealedResponseBody{{else}}Void{{/if}}, Void, {{#if hasContentSchema}}SealedMediaType{{else}}Void{{/if}}> { public {{jsonPathPiece.pascalCase}}1() { super( Map.ofEntries( {{#each content}} - new AbstractMap.SimpleEntry<>("{{{@key.original}}}", new {{@key.pascalCase}}MediaType()){{#unless @last}},{{/unless}} + new AbstractMap.SimpleEntry<>("{{{@key.original}}}", {{#if schema}}new {{@key.pascalCase}}MediaType(){{else}}null{{/if}}){{#unless @last}},{{/unless}} {{/each}} ) ); } - {{#if content}} + {{#if hasContentSchema}} @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { {{#each content}} From c8c734b766477271257fe3e4f09b821a42aec297 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Wed, 21 Feb 2024 12:42:46 -0800 Subject: [PATCH 24/50] Fixes solidus package path --- samples/client/petstore/java/.openapi-generator/FILES | 2 +- .../client/components/responses/SuccessDescriptionOnly.java | 2 +- .../paths/{ => solidus}/get/responses/Code200Response.java | 2 +- .../codegen/generators/DefaultGenerator.java | 1 - .../codegen/generators/JavaClientGenerator.java | 6 +++++- .../main/java/packagename/components/responses/Response.hbs | 6 ++++-- 6 files changed, 12 insertions(+), 7 deletions(-) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/{ => solidus}/get/responses/Code200Response.java (76%) diff --git a/samples/client/petstore/java/.openapi-generator/FILES b/samples/client/petstore/java/.openapi-generator/FILES index 2ae36e3d604..1696f53f60e 100644 --- a/samples/client/petstore/java/.openapi-generator/FILES +++ b/samples/client/petstore/java/.openapi-generator/FILES @@ -747,7 +747,6 @@ src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/codedefa src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer0.java src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer1.java src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/Variables.java -src/main/java/org/openapijsonschematools/client/paths/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/pet/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code200Response.java @@ -813,6 +812,7 @@ src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/p src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/security/PetpetiduploadimagePostSecurityRequirementObject0.java +src/main/java/org/openapijsonschematools/client/paths/solidus/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/StoreinventoryGetSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessDescriptionOnly.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessDescriptionOnly.java index c0416f8747d..df2e9ba2caa 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessDescriptionOnly.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessDescriptionOnly.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.components.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.c; import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/get/responses/Code200Response.java similarity index 76% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/get/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/get/responses/Code200Response.java index 2c74b914f01..cc3db94ea0f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/get/responses/Code200Response.java @@ -1,4 +1,4 @@ -package org.openapijsonschematools.client.paths..get.responses; +package org.openapijsonschematools.client.paths.solidus.get.responses; import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java index 524259675a2..66dd29cf4e0 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java @@ -3821,7 +3821,6 @@ private void updatePathsFilepath(String[] pathPieces) { return; } // #/paths/somePath - String path = pathPieces[2]; pathPieces[2] = toPathFilename(ModelUtils.decodeSlashes(pathPieces[2]), null); if (pathPieces.length < 4) { return; diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java index a4bd49cddda..52873e8c837 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java @@ -118,7 +118,11 @@ public String toModuleFilename(String name, String jsonPath) { String usedName = sanitizeName(name, "[^a-zA-Z0-9]+"); // todo check if empty and if so them use enum name // todo fix this, this does not handle names starting with numbers - return usedName.toLowerCase(Locale.ROOT); + usedName = usedName.toLowerCase(Locale.ROOT); + if (usedName.isEmpty()) { + usedName = toEnumVarName(name, null).toLowerCase(Locale.ROOT); + } + return usedName; } protected void updateServersFilepath(String[] pathPieces) { diff --git a/src/main/resources/java/src/main/java/packagename/components/responses/Response.hbs b/src/main/resources/java/src/main/java/packagename/components/responses/Response.hbs index ab6eaa7f2e7..4d306695f8a 100644 --- a/src/main/resources/java/src/main/java/packagename/components/responses/Response.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/responses/Response.hbs @@ -11,17 +11,19 @@ public class {{jsonPathPiece.pascalCase}} extends {{refInfo.refModule}} { } {{else}} import {{packageName}}.configurations.SchemaConfiguration; -import {{packageName}}.response.ApiResponse; -import {{packageName}}.response.DeserializedApiResponse; import {{packageName}}.response.ResponseDeserializer; + {{#if hasContentSchema}} import {{packageName}}.mediatype.MediaType; + {{/if}} {{#each content}} {{#with schema}} import {{{packageName}}}.{{subpackage}}.{{containerJsonPathPiece.pascalCase}}; {{/with}} {{/each}} + {{#if content}} import java.util.AbstractMap; + {{/if}} import java.util.Map; import java.net.http.HttpHeaders; From a6bda620186ef61b313581029442b353040ca899 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Wed, 21 Feb 2024 13:11:07 -0800 Subject: [PATCH 25/50] Adds validateAndBox method requiremnt for JsonSchemas --- .../components/responses/HeadersWithNoBody.java | 4 ---- .../responses/SuccessDescriptionOnly.java | 4 ---- .../responses/SuccessInlineContentAndHeader.java | 2 -- .../responses/SuccessWithJsonApiResponse.java | 2 -- .../responses/SuccessfulXmlAndJsonArrayOfPet.java | 2 -- .../schemas/AdditionalPropertiesSchema.java | 2 ++ .../components/schemas/AnyTypeAndFormat.java | 9 +++++++++ .../components/schemas/AnyTypeNotString.java | 1 + .../client/components/schemas/Apple.java | 1 + .../client/components/schemas/Cat.java | 1 + .../client/components/schemas/ChildCat.java | 1 + .../client/components/schemas/ClassModel.java | 1 + .../components/schemas/ComplexQuadrilateral.java | 1 + .../ComposedAnyOfDifferentTypesNoValidations.java | 1 + .../schemas/ComposedOneOfDifferentTypes.java | 1 + .../client/components/schemas/Dog.java | 1 + .../components/schemas/EquilateralTriangle.java | 1 + .../client/components/schemas/Fruit.java | 1 + .../client/components/schemas/FruitReq.java | 1 + .../client/components/schemas/GmFruit.java | 1 + .../components/schemas/HealthCheckResult.java | 1 + .../components/schemas/IsoscelesTriangle.java | 1 + .../components/schemas/JSONPatchRequest.java | 1 + .../client/components/schemas/Mammal.java | 1 + .../client/components/schemas/Name.java | 1 + .../client/components/schemas/NullableClass.java | 15 +++++++++++++++ .../client/components/schemas/NullableShape.java | 1 + .../client/components/schemas/NullableString.java | 1 + ...tWithAllOfWithReqTestPropFromUnsetAddProp.java | 1 + .../ObjectWithInlineCompositionProperty.java | 1 + .../client/components/schemas/Pig.java | 1 + .../client/components/schemas/Quadrilateral.java | 1 + .../schemas/QuadrilateralInterface.java | 1 + .../client/components/schemas/ReturnSchema.java | 1 + .../components/schemas/ScaleneTriangle.java | 1 + .../components/schemas/Schema200Response.java | 1 + .../client/components/schemas/Shape.java | 1 + .../client/components/schemas/ShapeOrNull.java | 1 + .../components/schemas/SimpleQuadrilateral.java | 1 + .../client/components/schemas/SomeObject.java | 1 + .../client/components/schemas/StringEnum.java | 1 + .../client/components/schemas/Triangle.java | 1 + .../components/schemas/TriangleInterface.java | 1 + .../client/components/schemas/User.java | 2 ++ .../patch/responses/Code200Response.java | 2 -- .../paths/fake/get/responses/Code404Response.java | 2 -- .../fake/patch/responses/Code200Response.java | 2 -- .../fake/post/responses/Code404Response.java | 4 ---- .../get/responses/Code200Response.java | 2 -- .../patch/responses/Code200Response.java | 2 -- .../delete/responses/CodedefaultResponse.java | 4 ---- .../fakehealth/get/responses/Code200Response.java | 2 -- .../post/parameters/parameter0/Schema0.java | 1 + .../post/parameters/parameter1/Schema1.java | 1 + .../applicationjson/ApplicationjsonSchema.java | 1 + .../MultipartformdataSchema.java | 1 + .../post/responses/Code200Response.java | 2 -- .../applicationjson/ApplicationjsonSchema.java | 1 + .../MultipartformdataSchema.java | 1 + .../post/responses/Code200Response.java | 2 -- .../post/responses/Code200Response.java | 2 -- .../get/responses/Code200Response.java | 2 -- .../get/responses/Code202Response.java | 2 -- .../get/responses/Code200Response.java | 2 -- .../post/responses/Code200Response.java | 2 -- .../get/responses/Code200Response.java | 2 -- .../post/responses/Code200Response.java | 2 -- .../get/responses/Code200Response.java | 2 -- .../get/responses/Code303Response.java | 4 ---- .../get/responses/Code3XXResponse.java | 4 ---- .../post/responses/Code200Response.java | 2 -- .../post/responses/Code200Response.java | 2 -- .../post/responses/Code200Response.java | 2 -- .../post/responses/Code200Response.java | 2 -- .../post/responses/Code200Response.java | 2 -- .../post/responses/Code200Response.java | 2 -- .../post/responses/Code200Response.java | 2 -- .../post/responses/Code200Response.java | 2 -- .../post/responses/Code200Response.java | 2 -- .../get/responses/Code200Response.java | 3 --- .../post/responses/Code200Response.java | 2 -- .../post/responses/Code200Response.java | 2 -- .../post/responses/Code200Response.java | 2 -- .../get/responses/Code1XXResponse.java | 2 -- .../get/responses/Code200Response.java | 2 -- .../get/responses/Code2XXResponse.java | 2 -- .../get/responses/Code3XXResponse.java | 2 -- .../get/responses/Code4XXResponse.java | 2 -- .../get/responses/Code5XXResponse.java | 2 -- .../foo/get/responses/CodedefaultResponse.java | 2 -- .../paths/pet/post/responses/Code405Response.java | 4 ---- .../paths/pet/put/responses/Code400Response.java | 4 ---- .../paths/pet/put/responses/Code404Response.java | 4 ---- .../paths/pet/put/responses/Code405Response.java | 4 ---- .../get/responses/Code400Response.java | 4 ---- .../get/responses/Code400Response.java | 4 ---- .../delete/responses/Code400Response.java | 4 ---- .../petpetid/get/responses/Code200Response.java | 2 -- .../petpetid/get/responses/Code400Response.java | 4 ---- .../petpetid/get/responses/Code404Response.java | 4 ---- .../petpetid/post/responses/Code405Response.java | 4 ---- .../post/responses/Code200Response.java | 2 -- .../post/responses/Code400Response.java | 4 ---- .../delete/responses/Code400Response.java | 4 ---- .../delete/responses/Code404Response.java | 4 ---- .../get/responses/Code200Response.java | 2 -- .../get/responses/Code400Response.java | 4 ---- .../get/responses/Code404Response.java | 4 ---- .../user/post/responses/CodedefaultResponse.java | 4 ---- .../post/responses/CodedefaultResponse.java | 4 ---- .../post/responses/CodedefaultResponse.java | 4 ---- .../userlogin/get/responses/Code200Response.java | 2 -- .../userlogin/get/responses/Code400Response.java | 4 ---- .../delete/responses/Code404Response.java | 4 ---- .../get/responses/Code200Response.java | 2 -- .../get/responses/Code400Response.java | 4 ---- .../get/responses/Code404Response.java | 4 ---- .../put/responses/Code400Response.java | 4 ---- .../put/responses/Code404Response.java | 4 ---- .../client/schemas/AnyTypeJsonSchema.java | 7 +++++++ .../client/schemas/BooleanJsonSchema.java | 2 ++ .../client/schemas/DateJsonSchema.java | 1 + .../client/schemas/DateTimeJsonSchema.java | 1 + .../client/schemas/DecimalJsonSchema.java | 1 + .../client/schemas/DoubleJsonSchema.java | 2 ++ .../client/schemas/FloatJsonSchema.java | 2 ++ .../client/schemas/Int32JsonSchema.java | 1 + .../client/schemas/Int64JsonSchema.java | 1 + .../client/schemas/IntJsonSchema.java | 1 + .../client/schemas/ListJsonSchema.java | 1 + .../client/schemas/MapJsonSchema.java | 1 + .../client/schemas/NotAnyTypeJsonSchema.java | 7 +++++++ .../client/schemas/NullJsonSchema.java | 2 ++ .../client/schemas/NumberJsonSchema.java | 2 ++ .../client/schemas/StringJsonSchema.java | 1 + .../client/schemas/UuidJsonSchema.java | 1 + .../client/schemas/validation/JsonSchema.java | 3 ++- .../validation/UnsetAnyTypeJsonSchema.java | 7 +++++++ .../schemas/SchemaClass/_validateAndBox.hbs | 2 ++ .../packagename/schemas/AnyTypeJsonSchema.hbs | 7 +++++++ .../packagename/schemas/BooleanJsonSchema.hbs | 2 ++ .../java/packagename/schemas/DateJsonSchema.hbs | 1 + .../packagename/schemas/DateTimeJsonSchema.hbs | 1 + .../packagename/schemas/DecimalJsonSchema.hbs | 1 + .../java/packagename/schemas/DoubleJsonSchema.hbs | 2 ++ .../java/packagename/schemas/FloatJsonSchema.hbs | 2 ++ .../java/packagename/schemas/Int32JsonSchema.hbs | 1 + .../java/packagename/schemas/Int64JsonSchema.hbs | 1 + .../java/packagename/schemas/IntJsonSchema.hbs | 1 + .../java/packagename/schemas/ListJsonSchema.hbs | 1 + .../java/packagename/schemas/MapJsonSchema.hbs | 1 + .../packagename/schemas/NotAnyTypeJsonSchema.hbs | 7 +++++++ .../java/packagename/schemas/NullJsonSchema.hbs | 2 ++ .../java/packagename/schemas/NumberJsonSchema.hbs | 2 ++ .../java/packagename/schemas/StringJsonSchema.hbs | 1 + .../java/packagename/schemas/UuidJsonSchema.hbs | 1 + .../packagename/schemas/validation/JsonSchema.hbs | 3 ++- .../schemas/validation/UnsetAnyTypeJsonSchema.hbs | 7 +++++++ 158 files changed, 157 insertions(+), 211 deletions(-) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/HeadersWithNoBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/HeadersWithNoBody.java index 964226193e4..fb8dab19b52 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/HeadersWithNoBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/HeadersWithNoBody.java @@ -1,12 +1,8 @@ package org.openapijsonschematools.client.components.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.mediatype.MediaType; -import java.util.AbstractMap; import java.util.Map; import java.net.http.HttpHeaders; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessDescriptionOnly.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessDescriptionOnly.java index df2e9ba2caa..337022abf6a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessDescriptionOnly.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessDescriptionOnly.java @@ -1,12 +1,8 @@ package org.openapijsonschematools.client.components.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.c; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.mediatype.MediaType; -import java.util.AbstractMap; import java.util.Map; import java.net.http.HttpHeaders; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessInlineContentAndHeader.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessInlineContentAndHeader.java index ff670f9dfe1..973b6de1c07 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessInlineContentAndHeader.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessInlineContentAndHeader.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.components.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.components.responses.successinlinecontentandheader.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessWithJsonApiResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessWithJsonApiResponse.java index 8fd9611a397..fc192a1a643 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessWithJsonApiResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessWithJsonApiResponse.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.components.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.components.responses.successwithjsonapiresponse.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessfulXmlAndJsonArrayOfPet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessfulXmlAndJsonArrayOfPet.java index 44fec5a0041..7e5c08c97e3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessfulXmlAndJsonArrayOfPet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessfulXmlAndJsonArrayOfPet.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.components.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.components.responses.successfulxmlandjsonarrayofpet.content.applicationxml.ApplicationxmlSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesSchema.java index ac1d9eb05ca..cf9dc05693e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesSchema.java @@ -502,6 +502,7 @@ public AdditionalProperties1BoxedList validateAndBox(List arg, SchemaConfigur public AdditionalProperties1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AdditionalProperties1BoxedMap(validate(arg, configuration)); } + @Override public AdditionalProperties1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; @@ -975,6 +976,7 @@ public AdditionalProperties2BoxedList validateAndBox(List arg, SchemaConfigur public AdditionalProperties2BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AdditionalProperties2BoxedMap(validate(arg, configuration)); } + @Override public AdditionalProperties2Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormat.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormat.java index 74b013be266..fcc24a1e3b6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormat.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormat.java @@ -301,6 +301,7 @@ public UuidSchemaBoxedList validateAndBox(List arg, SchemaConfiguration confi public UuidSchemaBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UuidSchemaBoxedMap(validate(arg, configuration)); } + @Override public UuidSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; @@ -585,6 +586,7 @@ public DateBoxedList validateAndBox(List arg, SchemaConfiguration configurati public DateBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DateBoxedMap(validate(arg, configuration)); } + @Override public DateBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; @@ -869,6 +871,7 @@ public DatetimeBoxedList validateAndBox(List arg, SchemaConfiguration configu public DatetimeBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DatetimeBoxedMap(validate(arg, configuration)); } + @Override public DatetimeBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; @@ -1153,6 +1156,7 @@ public NumberSchemaBoxedList validateAndBox(List arg, SchemaConfiguration con public NumberSchemaBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NumberSchemaBoxedMap(validate(arg, configuration)); } + @Override public NumberSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; @@ -1437,6 +1441,7 @@ public BinaryBoxedList validateAndBox(List arg, SchemaConfiguration configura public BinaryBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new BinaryBoxedMap(validate(arg, configuration)); } + @Override public BinaryBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; @@ -1721,6 +1726,7 @@ public Int32BoxedList validateAndBox(List arg, SchemaConfiguration configurat public Int32BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Int32BoxedMap(validate(arg, configuration)); } + @Override public Int32Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; @@ -2005,6 +2011,7 @@ public Int64BoxedList validateAndBox(List arg, SchemaConfiguration configurat public Int64BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Int64BoxedMap(validate(arg, configuration)); } + @Override public Int64Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; @@ -2289,6 +2296,7 @@ public DoubleSchemaBoxedList validateAndBox(List arg, SchemaConfiguration con public DoubleSchemaBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DoubleSchemaBoxedMap(validate(arg, configuration)); } + @Override public DoubleSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; @@ -2573,6 +2581,7 @@ public FloatSchemaBoxedList validateAndBox(List arg, SchemaConfiguration conf public FloatSchemaBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new FloatSchemaBoxedMap(validate(arg, configuration)); } + @Override public FloatSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeNotString.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeNotString.java index b047f96128e..f1e1cb7d5c7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeNotString.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeNotString.java @@ -317,6 +317,7 @@ public AnyTypeNotString1BoxedList validateAndBox(List arg, SchemaConfiguratio public AnyTypeNotString1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyTypeNotString1BoxedMap(validate(arg, configuration)); } + @Override public AnyTypeNotString1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Apple.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Apple.java index efac8325ebe..0ac62529a74 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Apple.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Apple.java @@ -385,6 +385,7 @@ public Apple1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuratio public Apple1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Apple1BoxedMap(validate(arg, configuration)); } + @Override public Apple1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Cat.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Cat.java index 58bd9194d88..675ecc03743 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Cat.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Cat.java @@ -474,6 +474,7 @@ public Cat1BoxedList validateAndBox(List arg, SchemaConfiguration configurati public Cat1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Cat1BoxedMap(validate(arg, configuration)); } + @Override public Cat1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ChildCat.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ChildCat.java index ca4f11a591d..5d6bcb903f2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ChildCat.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ChildCat.java @@ -474,6 +474,7 @@ public ChildCat1BoxedList validateAndBox(List arg, SchemaConfiguration config public ChildCat1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ChildCat1BoxedMap(validate(arg, configuration)); } + @Override public ChildCat1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ClassModel.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ClassModel.java index eaf0845e118..379ccd9abc5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ClassModel.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ClassModel.java @@ -379,6 +379,7 @@ public ClassModel1BoxedList validateAndBox(List arg, SchemaConfiguration conf public ClassModel1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ClassModel1BoxedMap(validate(arg, configuration)); } + @Override public ClassModel1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComplexQuadrilateral.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComplexQuadrilateral.java index ff67eb9bd43..517a8b776ac 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComplexQuadrilateral.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComplexQuadrilateral.java @@ -553,6 +553,7 @@ public ComplexQuadrilateral1BoxedList validateAndBox(List arg, SchemaConfigur public ComplexQuadrilateral1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ComplexQuadrilateral1BoxedMap(validate(arg, configuration)); } + @Override public ComplexQuadrilateral1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidations.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidations.java index 43259ced108..ac079d07f7b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidations.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidations.java @@ -664,6 +664,7 @@ public ComposedAnyOfDifferentTypesNoValidations1BoxedList validateAndBox(List public ComposedAnyOfDifferentTypesNoValidations1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ComposedAnyOfDifferentTypesNoValidations1BoxedMap(validate(arg, configuration)); } + @Override public ComposedAnyOfDifferentTypesNoValidations1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypes.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypes.java index 872a4145cd1..49154b45a55 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypes.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypes.java @@ -657,6 +657,7 @@ public ComposedOneOfDifferentTypes1BoxedList validateAndBox(List arg, SchemaC public ComposedOneOfDifferentTypes1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ComposedOneOfDifferentTypes1BoxedMap(validate(arg, configuration)); } + @Override public ComposedOneOfDifferentTypes1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Dog.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Dog.java index e665685969a..45c3601ab17 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Dog.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Dog.java @@ -474,6 +474,7 @@ public Dog1BoxedList validateAndBox(List arg, SchemaConfiguration configurati public Dog1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Dog1BoxedMap(validate(arg, configuration)); } + @Override public Dog1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EquilateralTriangle.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EquilateralTriangle.java index d912e9aadea..4f3d2929e87 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EquilateralTriangle.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EquilateralTriangle.java @@ -553,6 +553,7 @@ public EquilateralTriangle1BoxedList validateAndBox(List arg, SchemaConfigura public EquilateralTriangle1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new EquilateralTriangle1BoxedMap(validate(arg, configuration)); } + @Override public EquilateralTriangle1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Fruit.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Fruit.java index 7c463c3e71c..9d54de4bedf 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Fruit.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Fruit.java @@ -391,6 +391,7 @@ public Fruit1BoxedList validateAndBox(List arg, SchemaConfiguration configura public Fruit1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Fruit1BoxedMap(validate(arg, configuration)); } + @Override public Fruit1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FruitReq.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FruitReq.java index eee6a73df53..0202e6fae04 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FruitReq.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FruitReq.java @@ -321,6 +321,7 @@ public FruitReq1BoxedList validateAndBox(List arg, SchemaConfiguration config public FruitReq1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new FruitReq1BoxedMap(validate(arg, configuration)); } + @Override public FruitReq1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GmFruit.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GmFruit.java index 8793046154a..97601f24262 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GmFruit.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GmFruit.java @@ -391,6 +391,7 @@ public GmFruit1BoxedList validateAndBox(List arg, SchemaConfiguration configu public GmFruit1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new GmFruit1BoxedMap(validate(arg, configuration)); } + @Override public GmFruit1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HealthCheckResult.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HealthCheckResult.java index a9448985070..38a9afffd85 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HealthCheckResult.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HealthCheckResult.java @@ -117,6 +117,7 @@ public NullableMessageBoxedVoid validateAndBox(Void arg, SchemaConfiguration con public NullableMessageBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NullableMessageBoxedString(validate(arg, configuration)); } + @Override public NullableMessageBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IsoscelesTriangle.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IsoscelesTriangle.java index fa3f840f592..4ffd3ba76aa 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IsoscelesTriangle.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IsoscelesTriangle.java @@ -553,6 +553,7 @@ public IsoscelesTriangle1BoxedList validateAndBox(List arg, SchemaConfigurati public IsoscelesTriangle1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new IsoscelesTriangle1BoxedMap(validate(arg, configuration)); } + @Override public IsoscelesTriangle1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequest.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequest.java index 967aa9a8a36..edfd6625244 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequest.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequest.java @@ -303,6 +303,7 @@ public ItemsBoxedList validateAndBox(List arg, SchemaConfiguration configurat public ItemsBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ItemsBoxedMap(validate(arg, configuration)); } + @Override public ItemsBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Mammal.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Mammal.java index 67ce0e24a54..d1bbf97f191 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Mammal.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Mammal.java @@ -309,6 +309,7 @@ public Mammal1BoxedList validateAndBox(List arg, SchemaConfiguration configur public Mammal1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Mammal1BoxedMap(validate(arg, configuration)); } + @Override public Mammal1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Name.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Name.java index 3445fa832e7..4e3742c93aa 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Name.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Name.java @@ -490,6 +490,7 @@ public Name1BoxedList validateAndBox(List arg, SchemaConfiguration configurat public Name1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Name1BoxedMap(validate(arg, configuration)); } + @Override public Name1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableClass.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableClass.java index e19fccbdc3d..8f6ffbc1605 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableClass.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableClass.java @@ -147,6 +147,7 @@ public AdditionalProperties3BoxedVoid validateAndBox(Void arg, SchemaConfigurati public AdditionalProperties3BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AdditionalProperties3BoxedMap(validate(arg, configuration)); } + @Override public AdditionalProperties3Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; @@ -265,6 +266,7 @@ public IntegerPropBoxedVoid validateAndBox(Void arg, SchemaConfiguration configu public IntegerPropBoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new IntegerPropBoxedNumber(validate(arg, configuration)); } + @Override public IntegerPropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; @@ -382,6 +384,7 @@ public NumberPropBoxedVoid validateAndBox(Void arg, SchemaConfiguration configur public NumberPropBoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NumberPropBoxedNumber(validate(arg, configuration)); } + @Override public NumberPropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; @@ -482,6 +485,7 @@ public BooleanPropBoxedVoid validateAndBox(Void arg, SchemaConfiguration configu public BooleanPropBoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new BooleanPropBoxedBoolean(validate(arg, configuration)); } + @Override public BooleanPropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; @@ -581,6 +585,7 @@ public StringPropBoxedVoid validateAndBox(Void arg, SchemaConfiguration configur public StringPropBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new StringPropBoxedString(validate(arg, configuration)); } + @Override public StringPropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; @@ -680,6 +685,7 @@ public DatePropBoxedVoid validateAndBox(Void arg, SchemaConfiguration configurat public DatePropBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DatePropBoxedString(validate(arg, configuration)); } + @Override public DatePropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; @@ -779,6 +785,7 @@ public DatetimePropBoxedVoid validateAndBox(Void arg, SchemaConfiguration config public DatetimePropBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DatetimePropBoxedString(validate(arg, configuration)); } + @Override public DatetimePropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; @@ -943,6 +950,7 @@ public ArrayNullablePropBoxedVoid validateAndBox(Void arg, SchemaConfiguration c public ArrayNullablePropBoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ArrayNullablePropBoxedList(validate(arg, configuration)); } + @Override public ArrayNullablePropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; @@ -1063,6 +1071,7 @@ public Items1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuratio public Items1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Items1BoxedMap(validate(arg, configuration)); } + @Override public Items1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; @@ -1221,6 +1230,7 @@ public ArrayAndItemsNullablePropBoxedVoid validateAndBox(Void arg, SchemaConfigu public ArrayAndItemsNullablePropBoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ArrayAndItemsNullablePropBoxedList(validate(arg, configuration)); } + @Override public ArrayAndItemsNullablePropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; @@ -1341,6 +1351,7 @@ public Items2BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuratio public Items2BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Items2BoxedMap(validate(arg, configuration)); } + @Override public Items2Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; @@ -1645,6 +1656,7 @@ public ObjectNullablePropBoxedVoid validateAndBox(Void arg, SchemaConfiguration public ObjectNullablePropBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ObjectNullablePropBoxedMap(validate(arg, configuration)); } + @Override public ObjectNullablePropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; @@ -1765,6 +1777,7 @@ public AdditionalProperties1BoxedVoid validateAndBox(Void arg, SchemaConfigurati public AdditionalProperties1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AdditionalProperties1BoxedMap(validate(arg, configuration)); } + @Override public AdditionalProperties1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; @@ -1945,6 +1958,7 @@ public ObjectAndItemsNullablePropBoxedVoid validateAndBox(Void arg, SchemaConfig public ObjectAndItemsNullablePropBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ObjectAndItemsNullablePropBoxedMap(validate(arg, configuration)); } + @Override public ObjectAndItemsNullablePropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; @@ -2065,6 +2079,7 @@ public AdditionalProperties2BoxedVoid validateAndBox(Void arg, SchemaConfigurati public AdditionalProperties2BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AdditionalProperties2BoxedMap(validate(arg, configuration)); } + @Override public AdditionalProperties2Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableShape.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableShape.java index 2c30837c7f7..6fcce644b90 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableShape.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableShape.java @@ -323,6 +323,7 @@ public NullableShape1BoxedList validateAndBox(List arg, SchemaConfiguration c public NullableShape1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NullableShape1BoxedMap(validate(arg, configuration)); } + @Override public NullableShape1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableString.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableString.java index 88f0b44411c..44e08bb14ac 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableString.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableString.java @@ -114,6 +114,7 @@ public NullableString1BoxedVoid validateAndBox(Void arg, SchemaConfiguration con public NullableString1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NullableString1BoxedString(validate(arg, configuration)); } + @Override public NullableString1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.java index bad8d81d9f7..b943eac3dd9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.java @@ -556,6 +556,7 @@ public ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedList validateAndBox(L public ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedMap(validate(arg, configuration)); } + @Override public ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionProperty.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionProperty.java index 55a453cb63e..baaab3019de 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionProperty.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionProperty.java @@ -366,6 +366,7 @@ public SomePropBoxedList validateAndBox(List arg, SchemaConfiguration configu public SomePropBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new SomePropBoxedMap(validate(arg, configuration)); } + @Override public SomePropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pig.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pig.java index 59db379b5c6..5194e3d802a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pig.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pig.java @@ -308,6 +308,7 @@ public Pig1BoxedList validateAndBox(List arg, SchemaConfiguration configurati public Pig1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Pig1BoxedMap(validate(arg, configuration)); } + @Override public Pig1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Quadrilateral.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Quadrilateral.java index f7b0ed13188..5be4b63c3aa 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Quadrilateral.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Quadrilateral.java @@ -308,6 +308,7 @@ public Quadrilateral1BoxedList validateAndBox(List arg, SchemaConfiguration c public Quadrilateral1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Quadrilateral1BoxedMap(validate(arg, configuration)); } + @Override public Quadrilateral1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterface.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterface.java index 6ae021582e3..2ac2f9a4ad8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterface.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterface.java @@ -541,6 +541,7 @@ public QuadrilateralInterface1BoxedList validateAndBox(List arg, SchemaConfig public QuadrilateralInterface1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new QuadrilateralInterface1BoxedMap(validate(arg, configuration)); } + @Override public QuadrilateralInterface1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReturnSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReturnSchema.java index 89dfbace220..1ad4e77d6fb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReturnSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReturnSchema.java @@ -385,6 +385,7 @@ public ReturnSchema1BoxedList validateAndBox(List arg, SchemaConfiguration co public ReturnSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ReturnSchema1BoxedMap(validate(arg, configuration)); } + @Override public ReturnSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangle.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangle.java index 1944fb43206..724f679cc5c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangle.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangle.java @@ -553,6 +553,7 @@ public ScaleneTriangle1BoxedList validateAndBox(List arg, SchemaConfiguration public ScaleneTriangle1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ScaleneTriangle1BoxedMap(validate(arg, configuration)); } + @Override public ScaleneTriangle1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Schema200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Schema200Response.java index f955a0903ff..289643bb88d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Schema200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Schema200Response.java @@ -424,6 +424,7 @@ public Schema200Response1BoxedList validateAndBox(List arg, SchemaConfigurati public Schema200Response1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema200Response1BoxedMap(validate(arg, configuration)); } + @Override public Schema200Response1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Shape.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Shape.java index bc684e7c57a..003b3bfbafd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Shape.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Shape.java @@ -308,6 +308,7 @@ public Shape1BoxedList validateAndBox(List arg, SchemaConfiguration configura public Shape1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Shape1BoxedMap(validate(arg, configuration)); } + @Override public Shape1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ShapeOrNull.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ShapeOrNull.java index afdcb1e2114..dd36aa00179 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ShapeOrNull.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ShapeOrNull.java @@ -323,6 +323,7 @@ public ShapeOrNull1BoxedList validateAndBox(List arg, SchemaConfiguration con public ShapeOrNull1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ShapeOrNull1BoxedMap(validate(arg, configuration)); } + @Override public ShapeOrNull1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateral.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateral.java index 63673787ae2..09bc4eaa0f2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateral.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateral.java @@ -553,6 +553,7 @@ public SimpleQuadrilateral1BoxedList validateAndBox(List arg, SchemaConfigura public SimpleQuadrilateral1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new SimpleQuadrilateral1BoxedMap(validate(arg, configuration)); } + @Override public SimpleQuadrilateral1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SomeObject.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SomeObject.java index 527f1d8c022..712b449778c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SomeObject.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SomeObject.java @@ -307,6 +307,7 @@ public SomeObject1BoxedList validateAndBox(List arg, SchemaConfiguration conf public SomeObject1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new SomeObject1BoxedMap(validate(arg, configuration)); } + @Override public SomeObject1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringEnum.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringEnum.java index e2261968321..421d6767dce 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringEnum.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringEnum.java @@ -167,6 +167,7 @@ public StringEnum1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configu public StringEnum1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new StringEnum1BoxedString(validate(arg, configuration)); } + @Override public StringEnum1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Triangle.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Triangle.java index bb7c88c2a61..a73f3c44e1c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Triangle.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Triangle.java @@ -309,6 +309,7 @@ public Triangle1BoxedList validateAndBox(List arg, SchemaConfiguration config public Triangle1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Triangle1BoxedMap(validate(arg, configuration)); } + @Override public Triangle1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/TriangleInterface.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/TriangleInterface.java index 9ec46e7f88c..f54ff53ec08 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/TriangleInterface.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/TriangleInterface.java @@ -541,6 +541,7 @@ public TriangleInterface1BoxedList validateAndBox(List arg, SchemaConfigurati public TriangleInterface1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new TriangleInterface1BoxedMap(validate(arg, configuration)); } + @Override public TriangleInterface1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/User.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/User.java index 4d1cafc2684..8ea592e934d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/User.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/User.java @@ -251,6 +251,7 @@ public ObjectWithNoDeclaredPropsNullableBoxedVoid validateAndBox(Void arg, Schem public ObjectWithNoDeclaredPropsNullableBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ObjectWithNoDeclaredPropsNullableBoxedMap(validate(arg, configuration)); } + @Override public ObjectWithNoDeclaredPropsNullableBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; @@ -548,6 +549,7 @@ public AnyTypeExceptNullPropBoxedList validateAndBox(List arg, SchemaConfigur public AnyTypeExceptNullPropBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyTypeExceptNullPropBoxedMap(validate(arg, configuration)); } + @Override public AnyTypeExceptNullPropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java index 6f003e20272..145f432e5e2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.anotherfakedummy.patch.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.anotherfakedummy.patch.responses.code200response.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code404Response.java index 0e38f1e3489..d52f545e0c3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code404Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.fake.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fake.get.responses.code404response.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/Code200Response.java index f3ec7da41df..0c164701965 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/Code200Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.fake.patch.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fake.patch.responses.code200response.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code404Response.java index bc7ac86738e..0555aa6f4ae 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code404Response.java @@ -1,12 +1,8 @@ package org.openapijsonschematools.client.paths.fake.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.mediatype.MediaType; -import java.util.AbstractMap; import java.util.Map; import java.net.http.HttpHeaders; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java index 63c53439cd8..3df975eadbf 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java index 14a79d57ff5..f2419f132c3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.fakeclassnametest.patch.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakeclassnametest.patch.responses.code200response.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.java index 1cbc491ef02..b9396a45010 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.java @@ -1,12 +1,8 @@ package org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.mediatype.MediaType; -import java.util.AbstractMap; import java.util.Map; import java.net.http.HttpHeaders; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java index 4955bad78f1..167464bf591 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.fakehealth.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakehealth.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.java index b809448b1b1..fcaf6a8817d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.java @@ -364,6 +364,7 @@ public Schema01BoxedList validateAndBox(List arg, SchemaConfiguration configu public Schema01BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema01BoxedMap(validate(arg, configuration)); } + @Override public Schema01Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java index fe88b2bcf8f..64b010cc2e5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java @@ -366,6 +366,7 @@ public SomeProp1BoxedList validateAndBox(List arg, SchemaConfiguration config public SomeProp1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new SomeProp1BoxedMap(validate(arg, configuration)); } + @Override public SomeProp1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.java index b25cb41efe6..d7136c1c978 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.java @@ -364,6 +364,7 @@ public ApplicationjsonSchema1BoxedList validateAndBox(List arg, SchemaConfigu public ApplicationjsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ApplicationjsonSchema1BoxedMap(validate(arg, configuration)); } + @Override public ApplicationjsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java index ce0d62ebd95..dcde35a01e7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -366,6 +366,7 @@ public MultipartformdataSomePropBoxedList validateAndBox(List arg, SchemaConf public MultipartformdataSomePropBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MultipartformdataSomePropBoxedMap(validate(arg, configuration)); } + @Override public MultipartformdataSomePropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/Code200Response.java index 38c865250c2..132ee73b736 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/Code200Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java index 8edb735d783..beb2cb68d87 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -364,6 +364,7 @@ public ApplicationjsonSchema1BoxedList validateAndBox(List arg, SchemaConfigu public ApplicationjsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ApplicationjsonSchema1BoxedMap(validate(arg, configuration)); } + @Override public ApplicationjsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.java index b097d422eeb..7ca4a4a3e61 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.java @@ -366,6 +366,7 @@ public MultipartformdataSomePropBoxedList validateAndBox(List arg, SchemaConf public MultipartformdataSomePropBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MultipartformdataSomePropBoxedMap(validate(arg, configuration)); } + @Override public MultipartformdataSomePropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java index 0c01a493e5d..732c25fc1ea 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.fakejsonwithcharset.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.responses.code200response.content.applicationjsoncharsetutf8.Applicationjsoncharsetutf8Schema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java index 857bcf793b3..66d7242e07d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code200Response.java index 2cffa271911..6b2f3464a27 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code200Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java index 9efb7ba730e..93972b95758 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.code202response.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java index c11d6634376..867793ac08f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.fakemultiplesecurities.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java index 02254d22175..25128344c6c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java index 93a42fd895c..7d81397a8da 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.fakepemcontenttype.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakepemcontenttype.get.responses.code200response.content.applicationxpemfile.ApplicationxpemfileSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.java index 311218668d6..f77b9b94012 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java index 81555b52ea2..88b35e6b9e9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code303Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code303Response.java index 91d739ab0aa..bf17d9aeffc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code303Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code303Response.java @@ -1,12 +1,8 @@ package org.openapijsonschematools.client.paths.fakeredirection.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.mediatype.MediaType; -import java.util.AbstractMap; import java.util.Map; import java.net.http.HttpHeaders; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code3XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code3XXResponse.java index 1e5d6a87225..fe4f9728064 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code3XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code3XXResponse.java @@ -1,12 +1,8 @@ package org.openapijsonschematools.client.paths.fakeredirection.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.mediatype.MediaType; -import java.util.AbstractMap; import java.util.Map; import java.net.http.HttpHeaders; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java index e3b29e61f79..f368e5fb019 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.fakerefsarraymodel.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java index f308a1b8ed5..7339a48e3a3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java index 2c8e347f0de..e6214b3cbe2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.fakerefsboolean.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakerefsboolean.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java index f1bcb623bd9..df70a77aaaa 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java index ed5d6188c3e..94639a3a19c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.fakerefsenum.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakerefsenum.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java index 28ae691a15a..685201356c8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.fakerefsmammal.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakerefsmammal.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java index 24005dbaf26..df2d4074332 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.fakerefsnumber.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakerefsnumber.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java index 24a87ade9ed..23d036382f3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java index f0c8ed855b6..44523d6ff28 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.fakerefsstring.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakerefsstring.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java index c84aefe7aa2..249ed793974 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java @@ -1,10 +1,7 @@ package org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.mediatype.MediaType; import java.util.AbstractMap; import java.util.Map; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java index 69faed4694a..5c14279a490 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.responses.code200response.content.applicationoctetstream.ApplicationoctetstreamSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java index fdf083aa635..f0f6c2e4dd0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.fakeuploadfile.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakeuploadfile.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java index f99cb1331ae..140e69d3cb7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.fakeuploadfiles.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakeuploadfiles.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code1XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code1XXResponse.java index 5d193bfadab..9a34863f380 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code1XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code1XXResponse.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code1xxresponse.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java index 838564d9867..cb216f4b9a5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code2XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code2XXResponse.java index 5b11fcee79d..991da4f0534 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code2XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code2XXResponse.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code2xxresponse.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code3XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code3XXResponse.java index b93c81a85ec..4dc6f5ec010 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code3XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code3XXResponse.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code3xxresponse.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code4XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code4XXResponse.java index ceae6aff3c5..8eeb544f38d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code4XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code4XXResponse.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code4xxresponse.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code5XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code5XXResponse.java index 214954c8c1f..cf94a3d4ed2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code5XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code5XXResponse.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code5xxresponse.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java index f2f9c686894..d80173c7446 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.foo.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.foo.get.responses.codedefaultresponse.content.applicationjson.ApplicationjsonSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code405Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code405Response.java index a72f0cbf7e7..19f2bc6fafe 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code405Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code405Response.java @@ -1,12 +1,8 @@ package org.openapijsonschematools.client.paths.pet.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.mediatype.MediaType; -import java.util.AbstractMap; import java.util.Map; import java.net.http.HttpHeaders; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code400Response.java index d457063ed8a..84a0f0086d2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code400Response.java @@ -1,12 +1,8 @@ package org.openapijsonschematools.client.paths.pet.put.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.mediatype.MediaType; -import java.util.AbstractMap; import java.util.Map; import java.net.http.HttpHeaders; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code404Response.java index c07df4c365b..0b28c367e6c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code404Response.java @@ -1,12 +1,8 @@ package org.openapijsonschematools.client.paths.pet.put.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.mediatype.MediaType; -import java.util.AbstractMap; import java.util.Map; import java.net.http.HttpHeaders; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code405Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code405Response.java index c07b29e0bf5..37c341a13df 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code405Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code405Response.java @@ -1,12 +1,8 @@ package org.openapijsonschematools.client.paths.pet.put.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.mediatype.MediaType; -import java.util.AbstractMap; import java.util.Map; import java.net.http.HttpHeaders; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code400Response.java index 73736b63a46..d21b969a3a2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code400Response.java @@ -1,12 +1,8 @@ package org.openapijsonschematools.client.paths.petfindbystatus.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.mediatype.MediaType; -import java.util.AbstractMap; import java.util.Map; import java.net.http.HttpHeaders; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code400Response.java index 3b55cbd30a4..273d21472f9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code400Response.java @@ -1,12 +1,8 @@ package org.openapijsonschematools.client.paths.petfindbytags.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.mediatype.MediaType; -import java.util.AbstractMap; import java.util.Map; import java.net.http.HttpHeaders; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/Code400Response.java index a8f2c888fbc..c8b6e5c1a26 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/Code400Response.java @@ -1,12 +1,8 @@ package org.openapijsonschematools.client.paths.petpetid.delete.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.mediatype.MediaType; -import java.util.AbstractMap; import java.util.Map; import java.net.http.HttpHeaders; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code200Response.java index 10c45bdeca8..360687bb859 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code200Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.petpetid.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.petpetid.get.responses.code200response.content.applicationxml.ApplicationxmlSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code400Response.java index 5fb18202e31..03928567792 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code400Response.java @@ -1,12 +1,8 @@ package org.openapijsonschematools.client.paths.petpetid.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.mediatype.MediaType; -import java.util.AbstractMap; import java.util.Map; import java.net.http.HttpHeaders; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code404Response.java index be68b2459a0..357185273c9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code404Response.java @@ -1,12 +1,8 @@ package org.openapijsonschematools.client.paths.petpetid.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.mediatype.MediaType; -import java.util.AbstractMap; import java.util.Map; import java.net.http.HttpHeaders; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/Code405Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/Code405Response.java index 2a37575faae..4f7e717fa04 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/Code405Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/Code405Response.java @@ -1,12 +1,8 @@ package org.openapijsonschematools.client.paths.petpetid.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.mediatype.MediaType; -import java.util.AbstractMap; import java.util.Map; import java.net.http.HttpHeaders; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code200Response.java index 00cfc1bdd98..b9d13e5a0b0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code200Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.storeorder.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.storeorder.post.responses.code200response.content.applicationxml.ApplicationxmlSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code400Response.java index 0c39f5df76e..98732174bf0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code400Response.java @@ -1,12 +1,8 @@ package org.openapijsonschematools.client.paths.storeorder.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.mediatype.MediaType; -import java.util.AbstractMap; import java.util.Map; import java.net.http.HttpHeaders; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code400Response.java index 8f2eb073ba4..6e37c49783a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code400Response.java @@ -1,12 +1,8 @@ package org.openapijsonschematools.client.paths.storeorderorderid.delete.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.mediatype.MediaType; -import java.util.AbstractMap; import java.util.Map; import java.net.http.HttpHeaders; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code404Response.java index 395df7b4918..74c20b5c8f9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code404Response.java @@ -1,12 +1,8 @@ package org.openapijsonschematools.client.paths.storeorderorderid.delete.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.mediatype.MediaType; -import java.util.AbstractMap; import java.util.Map; import java.net.http.HttpHeaders; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code200Response.java index fe690fb3162..eceaf58e4dc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code200Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.storeorderorderid.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.code200response.content.applicationxml.ApplicationxmlSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code400Response.java index 43d36c1e02f..64b412bd723 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code400Response.java @@ -1,12 +1,8 @@ package org.openapijsonschematools.client.paths.storeorderorderid.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.mediatype.MediaType; -import java.util.AbstractMap; import java.util.Map; import java.net.http.HttpHeaders; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code404Response.java index a97cad8f9c7..22bf02e359f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code404Response.java @@ -1,12 +1,8 @@ package org.openapijsonschematools.client.paths.storeorderorderid.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.mediatype.MediaType; -import java.util.AbstractMap; import java.util.Map; import java.net.http.HttpHeaders; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/CodedefaultResponse.java index c11f51b4d0e..2239df50dee 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/CodedefaultResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/CodedefaultResponse.java @@ -1,12 +1,8 @@ package org.openapijsonschematools.client.paths.user.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.mediatype.MediaType; -import java.util.AbstractMap; import java.util.Map; import java.net.http.HttpHeaders; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/CodedefaultResponse.java index b1cb5ee3791..dd16ae9bc23 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/CodedefaultResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/CodedefaultResponse.java @@ -1,12 +1,8 @@ package org.openapijsonschematools.client.paths.usercreatewitharray.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.mediatype.MediaType; -import java.util.AbstractMap; import java.util.Map; import java.net.http.HttpHeaders; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/CodedefaultResponse.java index d36c2354aff..1c9c682143a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/CodedefaultResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/CodedefaultResponse.java @@ -1,12 +1,8 @@ package org.openapijsonschematools.client.paths.usercreatewithlist.post.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.mediatype.MediaType; -import java.util.AbstractMap; import java.util.Map; import java.net.http.HttpHeaders; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code200Response.java index df14517d325..c66c1a2c7cb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code200Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.userlogin.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.content.applicationxml.ApplicationxmlSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code400Response.java index 87961803df8..f9d6bfd42bd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code400Response.java @@ -1,12 +1,8 @@ package org.openapijsonschematools.client.paths.userlogin.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.mediatype.MediaType; -import java.util.AbstractMap; import java.util.Map; import java.net.http.HttpHeaders; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code404Response.java index 901c68da5bc..79d5bef5bf9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code404Response.java @@ -1,12 +1,8 @@ package org.openapijsonschematools.client.paths.userusername.delete.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.mediatype.MediaType; -import java.util.AbstractMap; import java.util.Map; import java.net.http.HttpHeaders; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code200Response.java index 7a7c00405ce..53a4753a3f4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code200Response.java @@ -1,8 +1,6 @@ package org.openapijsonschematools.client.paths.userusername.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; import org.openapijsonschematools.client.mediatype.MediaType; import org.openapijsonschematools.client.paths.userusername.get.responses.code200response.content.applicationxml.ApplicationxmlSchema; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code400Response.java index e582c58a2db..47f3a2a8321 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code400Response.java @@ -1,12 +1,8 @@ package org.openapijsonschematools.client.paths.userusername.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.mediatype.MediaType; -import java.util.AbstractMap; import java.util.Map; import java.net.http.HttpHeaders; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code404Response.java index fa2593c8087..defa8e82eab 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code404Response.java @@ -1,12 +1,8 @@ package org.openapijsonschematools.client.paths.userusername.get.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.mediatype.MediaType; -import java.util.AbstractMap; import java.util.Map; import java.net.http.HttpHeaders; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code400Response.java index 6637a73ef35..d0ff8d60fbb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code400Response.java @@ -1,12 +1,8 @@ package org.openapijsonschematools.client.paths.userusername.put.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.mediatype.MediaType; -import java.util.AbstractMap; import java.util.Map; import java.net.http.HttpHeaders; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code404Response.java index 27b5dcbb9ca..63174a4a58f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code404Response.java @@ -1,12 +1,8 @@ package org.openapijsonschematools.client.paths.userusername.put.responses; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.DeserializedApiResponse; import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.mediatype.MediaType; -import java.util.AbstractMap; import java.util.Map; import java.net.http.HttpHeaders; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java index 8d7b491c7a6..2ca30278a2e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java @@ -267,26 +267,33 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid public AnyTypeJsonSchema1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyTypeJsonSchema1BoxedVoid(validate(arg, configuration)); } + @Override public AnyTypeJsonSchema1BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyTypeJsonSchema1BoxedBoolean(validate(arg, configuration)); } + @Override public AnyTypeJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyTypeJsonSchema1BoxedNumber(validate(arg, configuration)); } + @Override public AnyTypeJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyTypeJsonSchema1BoxedString(validate(arg, configuration)); } + @Override public AnyTypeJsonSchema1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyTypeJsonSchema1BoxedList(validate(arg, configuration)); } + @Override public AnyTypeJsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyTypeJsonSchema1BoxedMap(validate(arg, configuration)); } + + @Override public AnyTypeJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java index e7f622dc945..aa878fccfe9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java @@ -76,6 +76,8 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V public BooleanJsonSchema1BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new BooleanJsonSchema1BoxedBoolean(validate(arg, configuration)); } + + @Override public BooleanJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof Boolean booleanArg) { boolean castArg = booleanArg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java index 4ff2b87a81b..07213eeef9f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java @@ -84,6 +84,7 @@ public DateJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration return new DateJsonSchema1BoxedString(validate(arg, configuration)); } + @Override public DateJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof String castArg) { return validateAndBox(castArg, configuration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java index 565d5dc6f3a..f6bd785be13 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java @@ -84,6 +84,7 @@ public DateTimeJsonSchema1BoxedString validateAndBox(String arg, SchemaConfigura return new DateTimeJsonSchema1BoxedString(validate(arg, configuration)); } + @Override public DateTimeJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof String castArg) { return validateAndBox(castArg, configuration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java index 9de87659925..782d23fe162 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java @@ -77,6 +77,7 @@ public DecimalJsonSchema1BoxedString validateAndBox(String arg, SchemaConfigurat return new DecimalJsonSchema1BoxedString(validate(arg, configuration)); } + @Override public DecimalJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof String castArg) { return validateAndBox(castArg, configuration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java index d043bc6923b..4c9c56c6048 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java @@ -80,6 +80,8 @@ public double validate(double arg, SchemaConfiguration configuration) { public DoubleJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DoubleJsonSchema1BoxedNumber(validate(arg, configuration)); } + + @Override public DoubleJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof Number castArg) { return validateAndBox(castArg, configuration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java index 0e6204d6f6a..33433cd1595 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java @@ -80,6 +80,8 @@ public float validate(float arg, SchemaConfiguration configuration) { public FloatJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new FloatJsonSchema1BoxedNumber(validate(arg, configuration)); } + + @Override public FloatJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof Number castArg) { return validateAndBox(castArg, configuration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java index f7f37bc3ce1..25c2bb23ec9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java @@ -88,6 +88,7 @@ public Int32JsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguratio return new Int32JsonSchema1BoxedNumber(validate(arg, configuration)); } + @Override public Int32JsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof Number castArg) { return validateAndBox(castArg, configuration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java index 234bc1355c8..39fd6553ca1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java @@ -98,6 +98,7 @@ public Int64JsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguratio return new Int64JsonSchema1BoxedNumber(validate(arg, configuration)); } + @Override public Int64JsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof Number castArg) { return validateAndBox(castArg, configuration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java index 2ff327f55ba..25fdb0bfede 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java @@ -98,6 +98,7 @@ public IntJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration return new IntJsonSchema1BoxedNumber(validate(arg, configuration)); } + @Override public IntJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof Number castArg) { return validateAndBox(castArg, configuration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java index e58d6a166e8..5e164f6f286 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java @@ -98,6 +98,7 @@ public ListJsonSchema1BoxedList validateAndBox(List arg, SchemaConfiguration return new ListJsonSchema1BoxedList(validate(arg, configuration)); } + @Override public ListJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof List castArg) { return validateAndBox(castArg, configuration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java index bb2a3fd718a..0fb1ae1aa24 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java @@ -102,6 +102,7 @@ public MapJsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration return new MapJsonSchema1BoxedMap(validate(arg, configuration)); } + @Override public MapJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof Map castArg) { return validateAndBox(castArg, configuration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java index 333620c81c1..956f25a49db 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java @@ -269,26 +269,33 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid public NotAnyTypeJsonSchema1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NotAnyTypeJsonSchema1BoxedVoid(validate(arg, configuration)); } + @Override public NotAnyTypeJsonSchema1BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NotAnyTypeJsonSchema1BoxedBoolean(validate(arg, configuration)); } + @Override public NotAnyTypeJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NotAnyTypeJsonSchema1BoxedNumber(validate(arg, configuration)); } + @Override public NotAnyTypeJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NotAnyTypeJsonSchema1BoxedString(validate(arg, configuration)); } + @Override public NotAnyTypeJsonSchema1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NotAnyTypeJsonSchema1BoxedList(validate(arg, configuration)); } + @Override public NotAnyTypeJsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NotAnyTypeJsonSchema1BoxedMap(validate(arg, configuration)); } + + @Override public NotAnyTypeJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java index 5051ed4b972..74f40b8c428 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java @@ -75,6 +75,8 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat public NullJsonSchema1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NullJsonSchema1BoxedVoid(validate(arg, configuration)); } + + @Override public NullJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java index df7b9894039..8d1c184511b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java @@ -96,6 +96,8 @@ public double validate(double arg, SchemaConfiguration configuration) { public NumberJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NumberJsonSchema1BoxedNumber(validate(arg, configuration)); } + + @Override public NumberJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof Number castArg) { return validateAndBox(castArg, configuration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java index 34e9cd3cf4d..a03175a69d1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java @@ -96,6 +96,7 @@ public StringJsonSchema1BoxedString validateAndBox(String arg, SchemaConfigurati return new StringJsonSchema1BoxedString(validate(arg, configuration)); } + @Override public StringJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof String castArg) { return validateAndBox(castArg, configuration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java index b4c8ca15f02..f03df54d662 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java @@ -84,6 +84,7 @@ public UuidJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration return new UuidJsonSchema1BoxedString(validate(arg, configuration)); } + @Override public UuidJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof String castArg) { return validateAndBox(castArg, configuration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchema.java index 10d636e6b9d..89528e1e69a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchema.java @@ -17,7 +17,7 @@ import java.util.UUID; import java.util.regex.Pattern; -public abstract class JsonSchema { +public abstract class JsonSchema { public final @Nullable Set> type; public final @Nullable String format; public final @Nullable Class items; @@ -223,6 +223,7 @@ protected JsonSchema(JsonSchemaInfo jsonSchemaInfo) { public abstract @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) throws InvalidTypeException; public abstract @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException; + public abstract T validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException; private List getContainsPathToSchemas( @Nullable Object arg, diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java index 50933bf2645..aa0be23defe 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java @@ -254,26 +254,33 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid public UnsetAnyTypeJsonSchema1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnsetAnyTypeJsonSchema1BoxedVoid(validate(arg, configuration)); } + @Override public UnsetAnyTypeJsonSchema1BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnsetAnyTypeJsonSchema1BoxedBoolean(validate(arg, configuration)); } + @Override public UnsetAnyTypeJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnsetAnyTypeJsonSchema1BoxedNumber(validate(arg, configuration)); } + @Override public UnsetAnyTypeJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnsetAnyTypeJsonSchema1BoxedString(validate(arg, configuration)); } + @Override public UnsetAnyTypeJsonSchema1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnsetAnyTypeJsonSchema1BoxedList(validate(arg, configuration)); } + @Override public UnsetAnyTypeJsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnsetAnyTypeJsonSchema1BoxedMap(validate(arg, configuration)); } + + @Override public UnsetAnyTypeJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_validateAndBox.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_validateAndBox.hbs index da5fa7d6fe4..61e1ac280f5 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_validateAndBox.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_validateAndBox.hbs @@ -19,6 +19,7 @@ {{> src/main/java/packagename/components/schemas/SchemaClass/_validateAndBoxMap }} {{/eq}} {{/each}} +@Override public {{jsonPathPiece.pascalCase}}Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { {{#each types}} {{#if @first}} @@ -76,6 +77,7 @@ public {{jsonPathPiece.pascalCase}}Boxed validateAndBox(@Nullable Object arg, Sc {{> src/main/java/packagename/components/schemas/SchemaClass/_validateAndBoxString }} {{> src/main/java/packagename/components/schemas/SchemaClass/_validateAndBoxList }} {{> src/main/java/packagename/components/schemas/SchemaClass/_validateAndBoxMap }} +@Override public {{jsonPathPiece.pascalCase}}Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/src/main/resources/java/src/main/java/packagename/schemas/AnyTypeJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/AnyTypeJsonSchema.hbs index d4cf3ee9c24..5cc4cbdbf1d 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/AnyTypeJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/AnyTypeJsonSchema.hbs @@ -267,26 +267,33 @@ public class AnyTypeJsonSchema { public AnyTypeJsonSchema1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyTypeJsonSchema1BoxedVoid(validate(arg, configuration)); } + @Override public AnyTypeJsonSchema1BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyTypeJsonSchema1BoxedBoolean(validate(arg, configuration)); } + @Override public AnyTypeJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyTypeJsonSchema1BoxedNumber(validate(arg, configuration)); } + @Override public AnyTypeJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyTypeJsonSchema1BoxedString(validate(arg, configuration)); } + @Override public AnyTypeJsonSchema1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyTypeJsonSchema1BoxedList(validate(arg, configuration)); } + @Override public AnyTypeJsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyTypeJsonSchema1BoxedMap(validate(arg, configuration)); } + + @Override public AnyTypeJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/src/main/resources/java/src/main/java/packagename/schemas/BooleanJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/BooleanJsonSchema.hbs index 55d9fb83873..e3a75614b1e 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/BooleanJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/BooleanJsonSchema.hbs @@ -76,6 +76,8 @@ public class BooleanJsonSchema { public BooleanJsonSchema1BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new BooleanJsonSchema1BoxedBoolean(validate(arg, configuration)); } + + @Override public BooleanJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof Boolean booleanArg) { boolean castArg = booleanArg; diff --git a/src/main/resources/java/src/main/java/packagename/schemas/DateJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/DateJsonSchema.hbs index 0531ad25fa5..7a38276103d 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/DateJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/DateJsonSchema.hbs @@ -84,6 +84,7 @@ public class DateJsonSchema { return new DateJsonSchema1BoxedString(validate(arg, configuration)); } + @Override public DateJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof String castArg) { return validateAndBox(castArg, configuration); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/DateTimeJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/DateTimeJsonSchema.hbs index e45b49a71d5..bee4b34bf1d 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/DateTimeJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/DateTimeJsonSchema.hbs @@ -84,6 +84,7 @@ public class DateTimeJsonSchema { return new DateTimeJsonSchema1BoxedString(validate(arg, configuration)); } + @Override public DateTimeJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof String castArg) { return validateAndBox(castArg, configuration); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/DecimalJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/DecimalJsonSchema.hbs index 8e4987d8c51..3369bbb6d84 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/DecimalJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/DecimalJsonSchema.hbs @@ -77,6 +77,7 @@ public class DecimalJsonSchema { return new DecimalJsonSchema1BoxedString(validate(arg, configuration)); } + @Override public DecimalJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof String castArg) { return validateAndBox(castArg, configuration); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/DoubleJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/DoubleJsonSchema.hbs index 285c6fb7e64..92ae8bcdc8d 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/DoubleJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/DoubleJsonSchema.hbs @@ -80,6 +80,8 @@ public class DoubleJsonSchema { public DoubleJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DoubleJsonSchema1BoxedNumber(validate(arg, configuration)); } + + @Override public DoubleJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof Number castArg) { return validateAndBox(castArg, configuration); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/FloatJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/FloatJsonSchema.hbs index 7c06fac50c8..bef5dfe2163 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/FloatJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/FloatJsonSchema.hbs @@ -80,6 +80,8 @@ public class FloatJsonSchema { public FloatJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new FloatJsonSchema1BoxedNumber(validate(arg, configuration)); } + + @Override public FloatJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof Number castArg) { return validateAndBox(castArg, configuration); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/Int32JsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/Int32JsonSchema.hbs index 818ac6408ac..419d336343e 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/Int32JsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/Int32JsonSchema.hbs @@ -88,6 +88,7 @@ public class Int32JsonSchema { return new Int32JsonSchema1BoxedNumber(validate(arg, configuration)); } + @Override public Int32JsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof Number castArg) { return validateAndBox(castArg, configuration); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/Int64JsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/Int64JsonSchema.hbs index b265d9a1f17..10d4d6344bd 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/Int64JsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/Int64JsonSchema.hbs @@ -98,6 +98,7 @@ public class Int64JsonSchema { return new Int64JsonSchema1BoxedNumber(validate(arg, configuration)); } + @Override public Int64JsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof Number castArg) { return validateAndBox(castArg, configuration); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/IntJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/IntJsonSchema.hbs index 47404e49ec2..920d98a9e94 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/IntJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/IntJsonSchema.hbs @@ -98,6 +98,7 @@ public class IntJsonSchema { return new IntJsonSchema1BoxedNumber(validate(arg, configuration)); } + @Override public IntJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof Number castArg) { return validateAndBox(castArg, configuration); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/ListJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/ListJsonSchema.hbs index 0338635965f..bc874efabf6 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/ListJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/ListJsonSchema.hbs @@ -98,6 +98,7 @@ public class ListJsonSchema { return new ListJsonSchema1BoxedList(validate(arg, configuration)); } + @Override public ListJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof List castArg) { return validateAndBox(castArg, configuration); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/MapJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/MapJsonSchema.hbs index 71c56a471e7..c5a600eafb9 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/MapJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/MapJsonSchema.hbs @@ -102,6 +102,7 @@ public class MapJsonSchema { return new MapJsonSchema1BoxedMap(validate(arg, configuration)); } + @Override public MapJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof Map castArg) { return validateAndBox(castArg, configuration); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/NotAnyTypeJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/NotAnyTypeJsonSchema.hbs index 3050b4a2766..04df41e6618 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/NotAnyTypeJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/NotAnyTypeJsonSchema.hbs @@ -269,26 +269,33 @@ public class NotAnyTypeJsonSchema { public NotAnyTypeJsonSchema1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NotAnyTypeJsonSchema1BoxedVoid(validate(arg, configuration)); } + @Override public NotAnyTypeJsonSchema1BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NotAnyTypeJsonSchema1BoxedBoolean(validate(arg, configuration)); } + @Override public NotAnyTypeJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NotAnyTypeJsonSchema1BoxedNumber(validate(arg, configuration)); } + @Override public NotAnyTypeJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NotAnyTypeJsonSchema1BoxedString(validate(arg, configuration)); } + @Override public NotAnyTypeJsonSchema1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NotAnyTypeJsonSchema1BoxedList(validate(arg, configuration)); } + @Override public NotAnyTypeJsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NotAnyTypeJsonSchema1BoxedMap(validate(arg, configuration)); } + + @Override public NotAnyTypeJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/src/main/resources/java/src/main/java/packagename/schemas/NullJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/NullJsonSchema.hbs index 488996cdb73..e86e1bf3713 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/NullJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/NullJsonSchema.hbs @@ -75,6 +75,8 @@ public class NullJsonSchema { public NullJsonSchema1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NullJsonSchema1BoxedVoid(validate(arg, configuration)); } + + @Override public NullJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; diff --git a/src/main/resources/java/src/main/java/packagename/schemas/NumberJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/NumberJsonSchema.hbs index b0954de1ea8..7c6d358811c 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/NumberJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/NumberJsonSchema.hbs @@ -96,6 +96,8 @@ public class NumberJsonSchema { public NumberJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NumberJsonSchema1BoxedNumber(validate(arg, configuration)); } + + @Override public NumberJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof Number castArg) { return validateAndBox(castArg, configuration); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/StringJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/StringJsonSchema.hbs index 08b456bd225..607b1ee0fb5 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/StringJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/StringJsonSchema.hbs @@ -96,6 +96,7 @@ public class StringJsonSchema { return new StringJsonSchema1BoxedString(validate(arg, configuration)); } + @Override public StringJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof String castArg) { return validateAndBox(castArg, configuration); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/UuidJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/UuidJsonSchema.hbs index a1b05d8d6d7..a1f0c94f16d 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/UuidJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/UuidJsonSchema.hbs @@ -84,6 +84,7 @@ public class UuidJsonSchema { return new UuidJsonSchema1BoxedString(validate(arg, configuration)); } + @Override public UuidJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg instanceof String castArg) { return validateAndBox(castArg, configuration); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/validation/JsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/validation/JsonSchema.hbs index d5f38b5be93..ef9c80b9968 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/validation/JsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/validation/JsonSchema.hbs @@ -17,7 +17,7 @@ import java.util.Set; import java.util.UUID; import java.util.regex.Pattern; -public abstract class JsonSchema { +public abstract class JsonSchema { public final @Nullable Set> type; public final @Nullable String format; public final @Nullable Class items; @@ -223,6 +223,7 @@ public abstract class JsonSchema { public abstract @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) throws InvalidTypeException; public abstract @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException; + public abstract T validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException; private List getContainsPathToSchemas( @Nullable Object arg, diff --git a/src/main/resources/java/src/main/java/packagename/schemas/validation/UnsetAnyTypeJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/validation/UnsetAnyTypeJsonSchema.hbs index b7811868825..b589bd4448f 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/validation/UnsetAnyTypeJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/validation/UnsetAnyTypeJsonSchema.hbs @@ -254,26 +254,33 @@ public class UnsetAnyTypeJsonSchema { public UnsetAnyTypeJsonSchema1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnsetAnyTypeJsonSchema1BoxedVoid(validate(arg, configuration)); } + @Override public UnsetAnyTypeJsonSchema1BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnsetAnyTypeJsonSchema1BoxedBoolean(validate(arg, configuration)); } + @Override public UnsetAnyTypeJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnsetAnyTypeJsonSchema1BoxedNumber(validate(arg, configuration)); } + @Override public UnsetAnyTypeJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnsetAnyTypeJsonSchema1BoxedString(validate(arg, configuration)); } + @Override public UnsetAnyTypeJsonSchema1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnsetAnyTypeJsonSchema1BoxedList(validate(arg, configuration)); } + @Override public UnsetAnyTypeJsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnsetAnyTypeJsonSchema1BoxedMap(validate(arg, configuration)); } + + @Override public UnsetAnyTypeJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { if (arg == null) { Void castArg = (Void) arg; From d55f61b39dd2fc50ba9123d0f97fd0c8a4f8bf2c Mon Sep 17 00:00:00 2001 From: Justin Black Date: Wed, 21 Feb 2024 13:24:48 -0800 Subject: [PATCH 26/50] Passes generic into JsonSchema classes --- .../ApplicationjsonSchema.java | 2 +- .../responses/headerswithnobody/Headers.java | 2 +- .../ApplicationjsonSchema.java | 2 +- .../applicationxml/ApplicationxmlSchema.java | 2 +- .../Headers.java | 2 +- .../ApplicationjsonSchema.java | 2 +- .../successwithjsonapiresponse/Headers.java | 2 +- .../schemas/AbstractStepMessage.java | 2 +- .../schemas/AdditionalPropertiesClass.java | 14 ++++---- .../schemas/AdditionalPropertiesSchema.java | 12 +++---- .../AdditionalPropertiesWithArrayOfEnums.java | 4 +-- .../client/components/schemas/Address.java | 2 +- .../client/components/schemas/Animal.java | 4 +-- .../client/components/schemas/AnimalFarm.java | 2 +- .../components/schemas/AnyTypeAndFormat.java | 20 +++++------ .../components/schemas/AnyTypeNotString.java | 2 +- .../components/schemas/ApiResponseSchema.java | 2 +- .../client/components/schemas/Apple.java | 6 ++-- .../client/components/schemas/AppleReq.java | 2 +- .../schemas/ArrayHoldingAnyType.java | 2 +- .../schemas/ArrayOfArrayOfNumberOnly.java | 6 ++-- .../components/schemas/ArrayOfEnums.java | 2 +- .../components/schemas/ArrayOfNumberOnly.java | 4 +-- .../client/components/schemas/ArrayTest.java | 12 +++---- .../schemas/ArrayWithValidationsInItems.java | 4 +-- .../client/components/schemas/Banana.java | 2 +- .../client/components/schemas/BananaReq.java | 2 +- .../client/components/schemas/Bar.java | 2 +- .../client/components/schemas/BasquePig.java | 4 +-- .../components/schemas/BooleanEnum.java | 2 +- .../components/schemas/Capitalization.java | 2 +- .../client/components/schemas/Cat.java | 4 +-- .../client/components/schemas/Category.java | 4 +-- .../client/components/schemas/ChildCat.java | 4 +-- .../client/components/schemas/ClassModel.java | 2 +- .../client/components/schemas/Client.java | 2 +- .../schemas/ComplexQuadrilateral.java | 6 ++-- ...posedAnyOfDifferentTypesNoValidations.java | 4 +-- .../components/schemas/ComposedArray.java | 2 +- .../components/schemas/ComposedBool.java | 2 +- .../components/schemas/ComposedNone.java | 2 +- .../components/schemas/ComposedNumber.java | 2 +- .../components/schemas/ComposedObject.java | 2 +- .../schemas/ComposedOneOfDifferentTypes.java | 8 ++--- .../components/schemas/ComposedString.java | 2 +- .../client/components/schemas/Currency.java | 2 +- .../client/components/schemas/DanishPig.java | 4 +-- .../components/schemas/DateTimeTest.java | 2 +- .../schemas/DateTimeWithValidations.java | 2 +- .../schemas/DateWithValidations.java | 2 +- .../client/components/schemas/Dog.java | 4 +-- .../client/components/schemas/Drawing.java | 4 +-- .../client/components/schemas/EnumArrays.java | 8 ++--- .../client/components/schemas/EnumClass.java | 2 +- .../client/components/schemas/EnumTest.java | 10 +++--- .../schemas/EquilateralTriangle.java | 6 ++-- .../client/components/schemas/File.java | 2 +- .../schemas/FileSchemaTestClass.java | 4 +-- .../client/components/schemas/Foo.java | 2 +- .../client/components/schemas/FormatTest.java | 22 ++++++------ .../client/components/schemas/FromSchema.java | 2 +- .../client/components/schemas/Fruit.java | 2 +- .../client/components/schemas/FruitReq.java | 2 +- .../client/components/schemas/GmFruit.java | 2 +- .../components/schemas/GrandparentAnimal.java | 2 +- .../components/schemas/HasOnlyReadOnly.java | 2 +- .../components/schemas/HealthCheckResult.java | 4 +-- .../components/schemas/IntegerEnum.java | 2 +- .../components/schemas/IntegerEnumBig.java | 2 +- .../schemas/IntegerEnumOneValue.java | 2 +- .../schemas/IntegerEnumWithDefaultValue.java | 2 +- .../components/schemas/IntegerMax10.java | 2 +- .../components/schemas/IntegerMin15.java | 2 +- .../components/schemas/IsoscelesTriangle.java | 6 ++-- .../client/components/schemas/Items.java | 2 +- .../components/schemas/JSONPatchRequest.java | 4 +-- .../JSONPatchRequestAddReplaceTest.java | 4 +-- .../schemas/JSONPatchRequestMoveCopy.java | 4 +-- .../schemas/JSONPatchRequestRemove.java | 4 +-- .../client/components/schemas/Mammal.java | 2 +- .../client/components/schemas/MapTest.java | 12 +++---- ...ropertiesAndAdditionalPropertiesClass.java | 4 +-- .../client/components/schemas/Money.java | 2 +- .../components/schemas/MyObjectDto.java | 2 +- .../client/components/schemas/Name.java | 2 +- .../schemas/NoAdditionalProperties.java | 2 +- .../components/schemas/NullableClass.java | 36 +++++++++---------- .../components/schemas/NullableShape.java | 2 +- .../components/schemas/NullableString.java | 2 +- .../client/components/schemas/NumberOnly.java | 2 +- .../schemas/NumberWithExclusiveMinMax.java | 2 +- .../schemas/NumberWithValidations.java | 2 +- .../schemas/ObjWithRequiredProps.java | 2 +- .../schemas/ObjWithRequiredPropsBase.java | 2 +- .../ObjectModelWithArgAndArgsProperties.java | 2 +- .../schemas/ObjectModelWithRefProps.java | 2 +- ...hAllOfWithReqTestPropFromUnsetAddProp.java | 4 +-- .../ObjectWithCollidingProperties.java | 2 +- .../schemas/ObjectWithDecimalProperties.java | 2 +- .../ObjectWithDifficultlyNamedProps.java | 2 +- .../ObjectWithInlineCompositionProperty.java | 6 ++-- ...ObjectWithInvalidNamedRefedProperties.java | 2 +- .../ObjectWithNonIntersectingValues.java | 2 +- .../schemas/ObjectWithOnlyOptionalProps.java | 2 +- .../schemas/ObjectWithOptionalTestProp.java | 2 +- .../schemas/ObjectWithValidations.java | 2 +- .../client/components/schemas/Order.java | 4 +-- .../schemas/PaginatedResultMyObjectDto.java | 4 +-- .../client/components/schemas/ParentPet.java | 2 +- .../client/components/schemas/Pet.java | 8 ++--- .../client/components/schemas/Pig.java | 2 +- .../client/components/schemas/Player.java | 2 +- .../client/components/schemas/PublicKey.java | 2 +- .../components/schemas/Quadrilateral.java | 2 +- .../schemas/QuadrilateralInterface.java | 4 +-- .../components/schemas/ReadOnlyFirst.java | 2 +- .../schemas/ReqPropsFromExplicitAddProps.java | 2 +- .../schemas/ReqPropsFromTrueAddProps.java | 2 +- .../schemas/ReqPropsFromUnsetAddProps.java | 2 +- .../components/schemas/ReturnSchema.java | 2 +- .../components/schemas/ScaleneTriangle.java | 6 ++-- .../components/schemas/Schema200Response.java | 2 +- .../schemas/SelfReferencingArrayModel.java | 2 +- .../schemas/SelfReferencingObjectModel.java | 2 +- .../client/components/schemas/Shape.java | 2 +- .../components/schemas/ShapeOrNull.java | 2 +- .../schemas/SimpleQuadrilateral.java | 6 ++-- .../client/components/schemas/SomeObject.java | 2 +- .../components/schemas/SpecialModelname.java | 2 +- .../components/schemas/StringBooleanMap.java | 2 +- .../client/components/schemas/StringEnum.java | 2 +- .../schemas/StringEnumWithDefaultValue.java | 2 +- .../schemas/StringWithValidation.java | 2 +- .../client/components/schemas/Tag.java | 2 +- .../client/components/schemas/Triangle.java | 2 +- .../components/schemas/TriangleInterface.java | 4 +-- .../client/components/schemas/UUIDString.java | 2 +- .../client/components/schemas/User.java | 6 ++-- .../client/components/schemas/Whale.java | 4 +-- .../client/components/schemas/Zebra.java | 6 ++-- .../delete/HeaderParameters.java | 2 +- .../delete/PathParameters.java | 2 +- .../delete/parameters/parameter1/Schema1.java | 2 +- .../commonparamsubdir/get/PathParameters.java | 2 +- .../get/QueryParameters.java | 2 +- .../parameter0/PathParamSchema0.java | 2 +- .../post/HeaderParameters.java | 2 +- .../post/PathParameters.java | 2 +- .../paths/fake/delete/HeaderParameters.java | 2 +- .../paths/fake/delete/QueryParameters.java | 2 +- .../delete/parameters/parameter1/Schema1.java | 2 +- .../delete/parameters/parameter4/Schema4.java | 2 +- .../paths/fake/get/HeaderParameters.java | 2 +- .../paths/fake/get/QueryParameters.java | 2 +- .../get/parameters/parameter0/Schema0.java | 4 +-- .../get/parameters/parameter1/Schema1.java | 2 +- .../get/parameters/parameter2/Schema2.java | 4 +-- .../get/parameters/parameter3/Schema3.java | 2 +- .../get/parameters/parameter4/Schema4.java | 2 +- .../get/parameters/parameter5/Schema5.java | 2 +- .../ApplicationxwwwformurlencodedSchema.java | 8 ++--- .../ApplicationxwwwformurlencodedSchema.java | 20 +++++------ .../put/QueryParameters.java | 2 +- .../put/QueryParameters.java | 2 +- .../delete/PathParameters.java | 2 +- .../ApplicationjsonSchema.java | 2 +- .../post/QueryParameters.java | 2 +- .../post/parameters/parameter0/Schema0.java | 4 +-- .../post/parameters/parameter1/Schema1.java | 6 ++-- .../ApplicationjsonSchema.java | 4 +-- .../MultipartformdataSchema.java | 6 ++-- .../ApplicationjsonSchema.java | 4 +-- .../MultipartformdataSchema.java | 6 ++-- .../ApplicationxwwwformurlencodedSchema.java | 2 +- .../ApplicationjsonSchema.java | 2 +- .../MultipartformdataSchema.java | 2 +- .../fakeobjinquery/get/QueryParameters.java | 2 +- .../get/parameters/parameter0/Schema0.java | 2 +- .../post/CookieParameters.java | 2 +- .../post/HeaderParameters.java | 2 +- .../post/PathParameters.java | 2 +- .../post/QueryParameters.java | 2 +- .../post/PathParameters.java | 2 +- .../MultipartformdataSchema.java | 2 +- .../get/QueryParameters.java | 2 +- .../get/QueryParameters.java | 2 +- .../put/QueryParameters.java | 2 +- .../put/parameters/parameter0/Schema0.java | 2 +- .../put/parameters/parameter1/Schema1.java | 2 +- .../put/parameters/parameter2/Schema2.java | 2 +- .../put/parameters/parameter3/Schema3.java | 2 +- .../put/parameters/parameter4/Schema4.java | 2 +- .../MultipartformdataSchema.java | 2 +- .../MultipartformdataSchema.java | 4 +-- .../ApplicationjsonSchema.java | 2 +- .../foo/get/servers/server1/Variables.java | 4 +-- .../petfindbystatus/get/QueryParameters.java | 2 +- .../get/parameters/parameter0/Schema0.java | 4 +-- .../servers/server1/Variables.java | 4 +-- .../petfindbytags/get/QueryParameters.java | 2 +- .../get/parameters/parameter0/Schema0.java | 2 +- .../petpetid/delete/HeaderParameters.java | 2 +- .../paths/petpetid/delete/PathParameters.java | 2 +- .../paths/petpetid/get/PathParameters.java | 2 +- .../paths/petpetid/post/PathParameters.java | 2 +- .../ApplicationxwwwformurlencodedSchema.java | 2 +- .../post/PathParameters.java | 2 +- .../MultipartformdataSchema.java | 2 +- .../delete/PathParameters.java | 2 +- .../storeorderorderid/get/PathParameters.java | 2 +- .../get/parameters/parameter0/Schema0.java | 2 +- .../paths/userlogin/get/QueryParameters.java | 2 +- .../responses/code200response/Headers.java | 2 +- .../userusername/delete/PathParameters.java | 2 +- .../userusername/get/PathParameters.java | 2 +- .../userusername/put/PathParameters.java | 2 +- .../client/schemas/AnyTypeJsonSchema.java | 2 +- .../client/schemas/BooleanJsonSchema.java | 2 +- .../client/schemas/DateJsonSchema.java | 2 +- .../client/schemas/DateTimeJsonSchema.java | 2 +- .../client/schemas/DecimalJsonSchema.java | 2 +- .../client/schemas/DoubleJsonSchema.java | 2 +- .../client/schemas/FloatJsonSchema.java | 2 +- .../client/schemas/Int32JsonSchema.java | 2 +- .../client/schemas/Int64JsonSchema.java | 2 +- .../client/schemas/IntJsonSchema.java | 2 +- .../client/schemas/ListJsonSchema.java | 2 +- .../client/schemas/MapJsonSchema.java | 2 +- .../client/schemas/NotAnyTypeJsonSchema.java | 2 +- .../client/schemas/NullJsonSchema.java | 2 +- .../client/schemas/NumberJsonSchema.java | 2 +- .../client/schemas/StringJsonSchema.java | 2 +- .../client/schemas/UuidJsonSchema.java | 2 +- .../validation/UnsetAnyTypeJsonSchema.java | 2 +- .../client/servers/server0/Variables.java | 6 ++-- .../client/servers/server1/Variables.java | 4 +-- .../_Schema_anytypeOrMultitype.hbs | 4 +-- .../schemas/SchemaClass/_Schema_boolean.hbs | 2 +- .../schemas/SchemaClass/_Schema_list.hbs | 2 +- .../schemas/SchemaClass/_Schema_map.hbs | 2 +- .../schemas/SchemaClass/_Schema_null.hbs | 2 +- .../schemas/SchemaClass/_Schema_number.hbs | 2 +- .../schemas/SchemaClass/_Schema_string.hbs | 2 +- .../packagename/schemas/AnyTypeJsonSchema.hbs | 2 +- .../packagename/schemas/BooleanJsonSchema.hbs | 2 +- .../packagename/schemas/DateJsonSchema.hbs | 2 +- .../schemas/DateTimeJsonSchema.hbs | 2 +- .../packagename/schemas/DecimalJsonSchema.hbs | 2 +- .../packagename/schemas/DoubleJsonSchema.hbs | 2 +- .../packagename/schemas/FloatJsonSchema.hbs | 2 +- .../packagename/schemas/Int32JsonSchema.hbs | 2 +- .../packagename/schemas/Int64JsonSchema.hbs | 2 +- .../packagename/schemas/IntJsonSchema.hbs | 2 +- .../packagename/schemas/ListJsonSchema.hbs | 2 +- .../packagename/schemas/MapJsonSchema.hbs | 2 +- .../schemas/NotAnyTypeJsonSchema.hbs | 2 +- .../packagename/schemas/NullJsonSchema.hbs | 2 +- .../packagename/schemas/NumberJsonSchema.hbs | 2 +- .../packagename/schemas/StringJsonSchema.hbs | 2 +- .../packagename/schemas/UuidJsonSchema.hbs | 2 +- .../validation/UnsetAnyTypeJsonSchema.hbs | 2 +- 261 files changed, 407 insertions(+), 407 deletions(-) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.java index 16d6f5b5619..4ead2f27823 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.java @@ -70,7 +70,7 @@ public record ApplicationjsonSchema1BoxedList(ApplicationjsonSchemaList data) im - public static class ApplicationjsonSchema1 extends JsonSchema implements ListSchemaValidator { + public static class ApplicationjsonSchema1 extends JsonSchema implements ListSchemaValidator { private static @Nullable ApplicationjsonSchema1 instance = null; protected ApplicationjsonSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody/Headers.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody/Headers.java index 79a77523e3d..8b29b0f641b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody/Headers.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody/Headers.java @@ -105,7 +105,7 @@ public record Headers1BoxedMap(HeadersMap data) implements Headers1Boxed { } - public static class Headers1 extends JsonSchema implements MapSchemaValidator { + public static class Headers1 extends JsonSchema implements MapSchemaValidator { private static @Nullable Headers1 instance = null; protected Headers1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.java index 8d086ad3563..cc9a24dc33c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.java @@ -71,7 +71,7 @@ public record ApplicationjsonSchema1BoxedList(ApplicationjsonSchemaList data) im - public static class ApplicationjsonSchema1 extends JsonSchema implements ListSchemaValidator { + public static class ApplicationjsonSchema1 extends JsonSchema implements ListSchemaValidator { private static @Nullable ApplicationjsonSchema1 instance = null; protected ApplicationjsonSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.java index 8e754cdbfbb..247c596a985 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.java @@ -70,7 +70,7 @@ public record ApplicationxmlSchema1BoxedList(ApplicationxmlSchemaList data) impl - public static class ApplicationxmlSchema1 extends JsonSchema implements ListSchemaValidator { + public static class ApplicationxmlSchema1 extends JsonSchema implements ListSchemaValidator { private static @Nullable ApplicationxmlSchema1 instance = null; protected ApplicationxmlSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/Headers.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/Headers.java index 98f5c7d0d48..33bb7e82e63 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/Headers.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/Headers.java @@ -105,7 +105,7 @@ public record Headers1BoxedMap(HeadersMap data) implements Headers1Boxed { } - public static class Headers1 extends JsonSchema implements MapSchemaValidator { + public static class Headers1 extends JsonSchema implements MapSchemaValidator { private static @Nullable Headers1 instance = null; protected Headers1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.java index 18e68b29811..5116459dfc8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.java @@ -107,7 +107,7 @@ public record ApplicationjsonSchema1BoxedMap(ApplicationjsonSchemaMap data) impl } - public static class ApplicationjsonSchema1 extends JsonSchema implements MapSchemaValidator { + public static class ApplicationjsonSchema1 extends JsonSchema implements MapSchemaValidator { private static @Nullable ApplicationjsonSchema1 instance = null; protected ApplicationjsonSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successwithjsonapiresponse/Headers.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successwithjsonapiresponse/Headers.java index 7ccd5da004b..8b9f7963cb9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successwithjsonapiresponse/Headers.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successwithjsonapiresponse/Headers.java @@ -435,7 +435,7 @@ public record Headers1BoxedMap(HeadersMap data) implements Headers1Boxed { } - public static class Headers1 extends JsonSchema implements MapSchemaValidator { + public static class Headers1 extends JsonSchema implements MapSchemaValidator { private static @Nullable Headers1 instance = null; protected Headers1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AbstractStepMessage.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AbstractStepMessage.java index 49858c13197..4f2f43a2725 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AbstractStepMessage.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AbstractStepMessage.java @@ -349,7 +349,7 @@ public record AbstractStepMessage1BoxedMap(AbstractStepMessageMap data) implemen } - public static class AbstractStepMessage1 extends JsonSchema implements MapSchemaValidator { + public static class AbstractStepMessage1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesClass.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesClass.java index fe9b6ea9ae5..fdff5853f87 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesClass.java @@ -105,7 +105,7 @@ public record MapPropertyBoxedMap(MapPropertyMap data) implements MapPropertyBox } - public static class MapProperty extends JsonSchema implements MapSchemaValidator { + public static class MapProperty extends JsonSchema implements MapSchemaValidator { private static @Nullable MapProperty instance = null; protected MapProperty() { @@ -252,7 +252,7 @@ public record AdditionalProperties1BoxedMap(AdditionalPropertiesMap data) implem } - public static class AdditionalProperties1 extends JsonSchema implements MapSchemaValidator { + public static class AdditionalProperties1 extends JsonSchema implements MapSchemaValidator { private static @Nullable AdditionalProperties1 instance = null; protected AdditionalProperties1() { @@ -388,7 +388,7 @@ public record MapOfMapPropertyBoxedMap(MapOfMapPropertyMap data) implements MapO } - public static class MapOfMapProperty extends JsonSchema implements MapSchemaValidator { + public static class MapOfMapProperty extends JsonSchema implements MapSchemaValidator { private static @Nullable MapOfMapProperty instance = null; protected MapOfMapProperty() { @@ -624,7 +624,7 @@ public record MapWithUndeclaredPropertiesAnytype3BoxedMap(MapWithUndeclaredPrope } - public static class MapWithUndeclaredPropertiesAnytype3 extends JsonSchema implements MapSchemaValidator { + public static class MapWithUndeclaredPropertiesAnytype3 extends JsonSchema implements MapSchemaValidator { private static @Nullable MapWithUndeclaredPropertiesAnytype3 instance = null; protected MapWithUndeclaredPropertiesAnytype3() { @@ -747,7 +747,7 @@ public record EmptyMapBoxedMap(EmptyMapMap data) implements EmptyMapBoxed { } - public static class EmptyMap extends JsonSchema implements MapSchemaValidator { + public static class EmptyMap extends JsonSchema implements MapSchemaValidator { private static @Nullable EmptyMap instance = null; protected EmptyMap() { @@ -891,7 +891,7 @@ public record MapWithUndeclaredPropertiesStringBoxedMap(MapWithUndeclaredPropert } - public static class MapWithUndeclaredPropertiesString extends JsonSchema implements MapSchemaValidator { + public static class MapWithUndeclaredPropertiesString extends JsonSchema implements MapSchemaValidator { private static @Nullable MapWithUndeclaredPropertiesString instance = null; protected MapWithUndeclaredPropertiesString() { @@ -1268,7 +1268,7 @@ public record AdditionalPropertiesClass1BoxedMap(AdditionalPropertiesClassMap da } - public static class AdditionalPropertiesClass1 extends JsonSchema implements MapSchemaValidator { + public static class AdditionalPropertiesClass1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesSchema.java index cf9dc05693e..777d990146b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesSchema.java @@ -166,7 +166,7 @@ public record Schema0BoxedMap(Schema0Map data) implements Schema0Boxed { } - public static class Schema0 extends JsonSchema implements MapSchemaValidator { + public static class Schema0 extends JsonSchema implements MapSchemaValidator { private static @Nullable Schema0 instance = null; protected Schema0() { @@ -285,7 +285,7 @@ public record AdditionalProperties1BoxedMap(FrozenMap<@Nullable Object> data) im } - public static class AdditionalProperties1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AdditionalProperties1BoxedList>, MapSchemaValidator, AdditionalProperties1BoxedMap> { + public static class AdditionalProperties1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AdditionalProperties1BoxedList>, MapSchemaValidator, AdditionalProperties1BoxedMap> { private static @Nullable AdditionalProperties1 instance = null; protected AdditionalProperties1() { @@ -640,7 +640,7 @@ public record Schema1BoxedMap(Schema1Map data) implements Schema1Boxed { } - public static class Schema1 extends JsonSchema implements MapSchemaValidator { + public static class Schema1 extends JsonSchema implements MapSchemaValidator { private static @Nullable Schema1 instance = null; protected Schema1() { @@ -759,7 +759,7 @@ public record AdditionalProperties2BoxedMap(FrozenMap<@Nullable Object> data) im } - public static class AdditionalProperties2 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AdditionalProperties2BoxedList>, MapSchemaValidator, AdditionalProperties2BoxedMap> { + public static class AdditionalProperties2 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AdditionalProperties2BoxedList>, MapSchemaValidator, AdditionalProperties2BoxedMap> { private static @Nullable AdditionalProperties2 instance = null; protected AdditionalProperties2() { @@ -1114,7 +1114,7 @@ public record Schema2BoxedMap(Schema2Map data) implements Schema2Boxed { } - public static class Schema2 extends JsonSchema implements MapSchemaValidator { + public static class Schema2 extends JsonSchema implements MapSchemaValidator { private static @Nullable Schema2 instance = null; protected Schema2() { @@ -1198,7 +1198,7 @@ public record AdditionalPropertiesSchema1BoxedMap(FrozenMap<@Nullable Object> da } - public static class AdditionalPropertiesSchema1 extends JsonSchema implements MapSchemaValidator, AdditionalPropertiesSchema1BoxedMap> { + public static class AdditionalPropertiesSchema1 extends JsonSchema implements MapSchemaValidator, AdditionalPropertiesSchema1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesWithArrayOfEnums.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesWithArrayOfEnums.java index 3b99d9df35a..c2c6e2af45b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesWithArrayOfEnums.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesWithArrayOfEnums.java @@ -79,7 +79,7 @@ public record AdditionalPropertiesBoxedList(AdditionalPropertiesList data) imple - public static class AdditionalProperties extends JsonSchema implements ListSchemaValidator { + public static class AdditionalProperties extends JsonSchema implements ListSchemaValidator { private static @Nullable AdditionalProperties instance = null; protected AdditionalProperties() { @@ -214,7 +214,7 @@ public record AdditionalPropertiesWithArrayOfEnums1BoxedMap(AdditionalProperties } - public static class AdditionalPropertiesWithArrayOfEnums1 extends JsonSchema implements MapSchemaValidator { + public static class AdditionalPropertiesWithArrayOfEnums1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Address.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Address.java index 8b6108c0a6a..9d770704d02 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Address.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Address.java @@ -121,7 +121,7 @@ public record Address1BoxedMap(AddressMap data) implements Address1Boxed { } - public static class Address1 extends JsonSchema implements MapSchemaValidator { + public static class Address1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Animal.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Animal.java index 5d71394f6c0..2994bc1e974 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Animal.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Animal.java @@ -55,7 +55,7 @@ public record ColorBoxedString(String data) implements ColorBoxed { - public static class Color extends JsonSchema implements StringSchemaValidator, DefaultValueMethod { + public static class Color extends JsonSchema implements StringSchemaValidator, DefaultValueMethod { private static @Nullable Color instance = null; protected Color() { @@ -224,7 +224,7 @@ public record Animal1BoxedMap(AnimalMap data) implements Animal1Boxed { } - public static class Animal1 extends JsonSchema implements MapSchemaValidator { + public static class Animal1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnimalFarm.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnimalFarm.java index 818199e7265..0854c83e299 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnimalFarm.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnimalFarm.java @@ -69,7 +69,7 @@ public record AnimalFarm1BoxedList(AnimalFarmList data) implements AnimalFarm1Bo - public static class AnimalFarm1 extends JsonSchema implements ListSchemaValidator { + public static class AnimalFarm1 extends JsonSchema implements ListSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormat.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormat.java index fcc24a1e3b6..ce0c59d635f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormat.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormat.java @@ -84,7 +84,7 @@ public record UuidSchemaBoxedMap(FrozenMap<@Nullable Object> data) implements Uu } - public static class UuidSchema extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UuidSchemaBoxedList>, MapSchemaValidator, UuidSchemaBoxedMap> { + public static class UuidSchema extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UuidSchemaBoxedList>, MapSchemaValidator, UuidSchemaBoxedMap> { private static @Nullable UuidSchema instance = null; protected UuidSchema() { @@ -369,7 +369,7 @@ public record DateBoxedMap(FrozenMap<@Nullable Object> data) implements DateBoxe } - public static class Date extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, DateBoxedList>, MapSchemaValidator, DateBoxedMap> { + public static class Date extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, DateBoxedList>, MapSchemaValidator, DateBoxedMap> { private static @Nullable Date instance = null; protected Date() { @@ -654,7 +654,7 @@ public record DatetimeBoxedMap(FrozenMap<@Nullable Object> data) implements Date } - public static class Datetime extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, DatetimeBoxedList>, MapSchemaValidator, DatetimeBoxedMap> { + public static class Datetime extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, DatetimeBoxedList>, MapSchemaValidator, DatetimeBoxedMap> { private static @Nullable Datetime instance = null; protected Datetime() { @@ -939,7 +939,7 @@ public record NumberSchemaBoxedMap(FrozenMap<@Nullable Object> data) implements } - public static class NumberSchema extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, NumberSchemaBoxedList>, MapSchemaValidator, NumberSchemaBoxedMap> { + public static class NumberSchema extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, NumberSchemaBoxedList>, MapSchemaValidator, NumberSchemaBoxedMap> { private static @Nullable NumberSchema instance = null; protected NumberSchema() { @@ -1224,7 +1224,7 @@ public record BinaryBoxedMap(FrozenMap<@Nullable Object> data) implements Binary } - public static class Binary extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, BinaryBoxedList>, MapSchemaValidator, BinaryBoxedMap> { + public static class Binary extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, BinaryBoxedList>, MapSchemaValidator, BinaryBoxedMap> { private static @Nullable Binary instance = null; protected Binary() { @@ -1509,7 +1509,7 @@ public record Int32BoxedMap(FrozenMap<@Nullable Object> data) implements Int32Bo } - public static class Int32 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Int32BoxedList>, MapSchemaValidator, Int32BoxedMap> { + public static class Int32 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Int32BoxedList>, MapSchemaValidator, Int32BoxedMap> { private static @Nullable Int32 instance = null; protected Int32() { @@ -1794,7 +1794,7 @@ public record Int64BoxedMap(FrozenMap<@Nullable Object> data) implements Int64Bo } - public static class Int64 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Int64BoxedList>, MapSchemaValidator, Int64BoxedMap> { + public static class Int64 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Int64BoxedList>, MapSchemaValidator, Int64BoxedMap> { private static @Nullable Int64 instance = null; protected Int64() { @@ -2079,7 +2079,7 @@ public record DoubleSchemaBoxedMap(FrozenMap<@Nullable Object> data) implements } - public static class DoubleSchema extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, DoubleSchemaBoxedList>, MapSchemaValidator, DoubleSchemaBoxedMap> { + public static class DoubleSchema extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, DoubleSchemaBoxedList>, MapSchemaValidator, DoubleSchemaBoxedMap> { private static @Nullable DoubleSchema instance = null; protected DoubleSchema() { @@ -2364,7 +2364,7 @@ public record FloatSchemaBoxedMap(FrozenMap<@Nullable Object> data) implements F } - public static class FloatSchema extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, FloatSchemaBoxedList>, MapSchemaValidator, FloatSchemaBoxedMap> { + public static class FloatSchema extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, FloatSchemaBoxedList>, MapSchemaValidator, FloatSchemaBoxedMap> { private static @Nullable FloatSchema instance = null; protected FloatSchema() { @@ -3246,7 +3246,7 @@ public record AnyTypeAndFormat1BoxedMap(AnyTypeAndFormatMap data) implements Any } - public static class AnyTypeAndFormat1 extends JsonSchema implements MapSchemaValidator { + public static class AnyTypeAndFormat1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeNotString.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeNotString.java index f1e1cb7d5c7..dd68371a15b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeNotString.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeNotString.java @@ -94,7 +94,7 @@ public record AnyTypeNotString1BoxedMap(FrozenMap<@Nullable Object> data) implem } - public static class AnyTypeNotString1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AnyTypeNotString1BoxedList>, MapSchemaValidator, AnyTypeNotString1BoxedMap> { + public static class AnyTypeNotString1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AnyTypeNotString1BoxedList>, MapSchemaValidator, AnyTypeNotString1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ApiResponseSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ApiResponseSchema.java index cf78c09eaf9..c0c91a44ba3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ApiResponseSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ApiResponseSchema.java @@ -199,7 +199,7 @@ public record ApiResponseSchema1BoxedMap(ApiResponseMap data) implements ApiResp } - public static class ApiResponseSchema1 extends JsonSchema implements MapSchemaValidator { + public static class ApiResponseSchema1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Apple.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Apple.java index 0ac62529a74..22d6f1a7d4c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Apple.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Apple.java @@ -44,7 +44,7 @@ public record CultivarBoxedString(String data) implements CultivarBoxed { - public static class Cultivar extends JsonSchema implements StringSchemaValidator { + public static class Cultivar extends JsonSchema implements StringSchemaValidator { private static @Nullable Cultivar instance = null; protected Cultivar() { @@ -109,7 +109,7 @@ public record OriginBoxedString(String data) implements OriginBoxed { - public static class Origin extends JsonSchema implements StringSchemaValidator { + public static class Origin extends JsonSchema implements StringSchemaValidator { private static @Nullable Origin instance = null; protected Origin() { @@ -282,7 +282,7 @@ public record Apple1BoxedMap(AppleMap data) implements Apple1Boxed { } - public static class Apple1 extends JsonSchema implements NullSchemaValidator, MapSchemaValidator { + public static class Apple1 extends JsonSchema implements NullSchemaValidator, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AppleReq.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AppleReq.java index fd5c5565600..c6469df06a9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AppleReq.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AppleReq.java @@ -169,7 +169,7 @@ public record AppleReq1BoxedMap(AppleReqMap data) implements AppleReq1Boxed { } - public static class AppleReq1 extends JsonSchema implements MapSchemaValidator { + public static class AppleReq1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayHoldingAnyType.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayHoldingAnyType.java index fde3bc8b23a..6eee8ba6a59 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayHoldingAnyType.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayHoldingAnyType.java @@ -120,7 +120,7 @@ public record ArrayHoldingAnyType1BoxedList(ArrayHoldingAnyTypeList data) implem - public static class ArrayHoldingAnyType1 extends JsonSchema implements ListSchemaValidator { + public static class ArrayHoldingAnyType1 extends JsonSchema implements ListSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfArrayOfNumberOnly.java index 37532ed307b..bc0cc34d94c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfArrayOfNumberOnly.java @@ -102,7 +102,7 @@ public record ItemsBoxedList(ItemsList data) implements ItemsBoxed { - public static class Items extends JsonSchema implements ListSchemaValidator { + public static class Items extends JsonSchema implements ListSchemaValidator { private static @Nullable Items instance = null; protected Items() { @@ -217,7 +217,7 @@ public record ArrayArrayNumberBoxedList(ArrayArrayNumberList data) implements Ar - public static class ArrayArrayNumber extends JsonSchema implements ListSchemaValidator { + public static class ArrayArrayNumber extends JsonSchema implements ListSchemaValidator { private static @Nullable ArrayArrayNumber instance = null; protected ArrayArrayNumber() { @@ -365,7 +365,7 @@ public record ArrayOfArrayOfNumberOnly1BoxedMap(ArrayOfArrayOfNumberOnlyMap data } - public static class ArrayOfArrayOfNumberOnly1 extends JsonSchema implements MapSchemaValidator { + public static class ArrayOfArrayOfNumberOnly1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfEnums.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfEnums.java index 370f50458ff..13d09318585 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfEnums.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfEnums.java @@ -82,7 +82,7 @@ public record ArrayOfEnums1BoxedList(ArrayOfEnumsList data) implements ArrayOfEn - public static class ArrayOfEnums1 extends JsonSchema implements ListSchemaValidator { + public static class ArrayOfEnums1 extends JsonSchema implements ListSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfNumberOnly.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfNumberOnly.java index 21d0b580344..d165f0b8649 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfNumberOnly.java @@ -102,7 +102,7 @@ public record ArrayNumberBoxedList(ArrayNumberList data) implements ArrayNumberB - public static class ArrayNumber extends JsonSchema implements ListSchemaValidator { + public static class ArrayNumber extends JsonSchema implements ListSchemaValidator { private static @Nullable ArrayNumber instance = null; protected ArrayNumber() { @@ -250,7 +250,7 @@ public record ArrayOfNumberOnly1BoxedMap(ArrayOfNumberOnlyMap data) implements A } - public static class ArrayOfNumberOnly1 extends JsonSchema implements MapSchemaValidator { + public static class ArrayOfNumberOnly1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayTest.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayTest.java index 28fd1106f5f..2cb9a172784 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayTest.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayTest.java @@ -88,7 +88,7 @@ public record ArrayOfStringBoxedList(ArrayOfStringList data) implements ArrayOfS - public static class ArrayOfString extends JsonSchema implements ListSchemaValidator { + public static class ArrayOfString extends JsonSchema implements ListSchemaValidator { private static @Nullable ArrayOfString instance = null; protected ArrayOfString() { @@ -229,7 +229,7 @@ public record Items1BoxedList(ItemsList data) implements Items1Boxed { - public static class Items1 extends JsonSchema implements ListSchemaValidator { + public static class Items1 extends JsonSchema implements ListSchemaValidator { private static @Nullable Items1 instance = null; protected Items1() { @@ -344,7 +344,7 @@ public record ArrayArrayOfIntegerBoxedList(ArrayArrayOfIntegerList data) impleme - public static class ArrayArrayOfInteger extends JsonSchema implements ListSchemaValidator { + public static class ArrayArrayOfInteger extends JsonSchema implements ListSchemaValidator { private static @Nullable ArrayArrayOfInteger instance = null; protected ArrayArrayOfInteger() { @@ -459,7 +459,7 @@ public record Items3BoxedList(ItemsList1 data) implements Items3Boxed { - public static class Items3 extends JsonSchema implements ListSchemaValidator { + public static class Items3 extends JsonSchema implements ListSchemaValidator { private static @Nullable Items3 instance = null; protected Items3() { @@ -574,7 +574,7 @@ public record ArrayArrayOfModelBoxedList(ArrayArrayOfModelList data) implements - public static class ArrayArrayOfModel extends JsonSchema implements ListSchemaValidator { + public static class ArrayArrayOfModel extends JsonSchema implements ListSchemaValidator { private static @Nullable ArrayArrayOfModel instance = null; protected ArrayArrayOfModel() { @@ -774,7 +774,7 @@ public record ArrayTest1BoxedMap(ArrayTestMap data) implements ArrayTest1Boxed { } - public static class ArrayTest1 extends JsonSchema implements MapSchemaValidator { + public static class ArrayTest1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayWithValidationsInItems.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayWithValidationsInItems.java index 563f9945eff..cbfd571597e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayWithValidationsInItems.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayWithValidationsInItems.java @@ -36,7 +36,7 @@ public record ItemsBoxedNumber(Number data) implements ItemsBoxed { - public static class Items extends JsonSchema implements NumberSchemaValidator { + public static class Items extends JsonSchema implements NumberSchemaValidator { private static @Nullable Items instance = null; protected Items() { @@ -166,7 +166,7 @@ public record ArrayWithValidationsInItems1BoxedList(ArrayWithValidationsInItemsL - public static class ArrayWithValidationsInItems1 extends JsonSchema implements ListSchemaValidator { + public static class ArrayWithValidationsInItems1 extends JsonSchema implements ListSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Banana.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Banana.java index 02e95a5b4bd..ae52d00b906 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Banana.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Banana.java @@ -144,7 +144,7 @@ public record Banana1BoxedMap(BananaMap data) implements Banana1Boxed { } - public static class Banana1 extends JsonSchema implements MapSchemaValidator { + public static class Banana1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BananaReq.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BananaReq.java index 0d771f6c5e5..c989bf7830e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BananaReq.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BananaReq.java @@ -187,7 +187,7 @@ public record BananaReq1BoxedMap(BananaReqMap data) implements BananaReq1Boxed { } - public static class BananaReq1 extends JsonSchema implements MapSchemaValidator { + public static class BananaReq1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Bar.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Bar.java index d4e3e1858f0..0f398f61210 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Bar.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Bar.java @@ -33,7 +33,7 @@ public record Bar1BoxedString(String data) implements Bar1Boxed { - public static class Bar1 extends JsonSchema implements StringSchemaValidator, DefaultValueMethod { + public static class Bar1 extends JsonSchema implements StringSchemaValidator, DefaultValueMethod { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BasquePig.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BasquePig.java index 36cbac19130..79f4360c4f3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BasquePig.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BasquePig.java @@ -57,7 +57,7 @@ public record ClassNameBoxedString(String data) implements ClassNameBoxed { - public static class ClassName extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class ClassName extends JsonSchema implements StringSchemaValidator, StringEnumValidator { private static @Nullable ClassName instance = null; protected ClassName() { @@ -206,7 +206,7 @@ public record BasquePig1BoxedMap(BasquePigMap data) implements BasquePig1Boxed { } - public static class BasquePig1 extends JsonSchema implements MapSchemaValidator { + public static class BasquePig1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BooleanEnum.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BooleanEnum.java index 60597df6f67..011f7e2c85e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BooleanEnum.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BooleanEnum.java @@ -47,7 +47,7 @@ public record BooleanEnum1BoxedBoolean(boolean data) implements BooleanEnum1Boxe - public static class BooleanEnum1 extends JsonSchema implements BooleanSchemaValidator, BooleanEnumValidator { + public static class BooleanEnum1 extends JsonSchema implements BooleanSchemaValidator, BooleanEnumValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Capitalization.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Capitalization.java index 45ffa31dd90..9003f30ff4e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Capitalization.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Capitalization.java @@ -303,7 +303,7 @@ public record Capitalization1BoxedMap(CapitalizationMap data) implements Capital } - public static class Capitalization1 extends JsonSchema implements MapSchemaValidator { + public static class Capitalization1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Cat.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Cat.java index 675ecc03743..432d7d852e5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Cat.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Cat.java @@ -127,7 +127,7 @@ public record Schema1BoxedMap(Schema1Map data) implements Schema1Boxed { } - public static class Schema1 extends JsonSchema implements MapSchemaValidator { + public static class Schema1 extends JsonSchema implements MapSchemaValidator { private static @Nullable Schema1 instance = null; protected Schema1() { @@ -248,7 +248,7 @@ public record Cat1BoxedMap(FrozenMap<@Nullable Object> data) implements Cat1Boxe } - public static class Cat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Cat1BoxedList>, MapSchemaValidator, Cat1BoxedMap> { + public static class Cat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Cat1BoxedList>, MapSchemaValidator, Cat1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Category.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Category.java index 14300928c9c..16827ba09bb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Category.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Category.java @@ -55,7 +55,7 @@ public record NameBoxedString(String data) implements NameBoxed { - public static class Name extends JsonSchema implements StringSchemaValidator, DefaultValueMethod { + public static class Name extends JsonSchema implements StringSchemaValidator, DefaultValueMethod { private static @Nullable Name instance = null; protected Name() { @@ -242,7 +242,7 @@ public record Category1BoxedMap(CategoryMap data) implements Category1Boxed { } - public static class Category1 extends JsonSchema implements MapSchemaValidator { + public static class Category1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ChildCat.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ChildCat.java index 5d6bcb903f2..e6dfea1868b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ChildCat.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ChildCat.java @@ -127,7 +127,7 @@ public record Schema1BoxedMap(Schema1Map data) implements Schema1Boxed { } - public static class Schema1 extends JsonSchema implements MapSchemaValidator { + public static class Schema1 extends JsonSchema implements MapSchemaValidator { private static @Nullable Schema1 instance = null; protected Schema1() { @@ -248,7 +248,7 @@ public record ChildCat1BoxedMap(FrozenMap<@Nullable Object> data) implements Chi } - public static class ChildCat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ChildCat1BoxedList>, MapSchemaValidator, ChildCat1BoxedMap> { + public static class ChildCat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ChildCat1BoxedList>, MapSchemaValidator, ChildCat1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ClassModel.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ClassModel.java index 379ccd9abc5..6c7028d8c1e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ClassModel.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ClassModel.java @@ -152,7 +152,7 @@ public record ClassModel1BoxedMap(ClassModelMap data) implements ClassModel1Boxe } - public static class ClassModel1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ClassModel1BoxedList>, MapSchemaValidator { + public static class ClassModel1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ClassModel1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Client.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Client.java index a3c368c3b9b..05703d0d897 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Client.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Client.java @@ -118,7 +118,7 @@ public record Client1BoxedMap(ClientMap data) implements Client1Boxed { } - public static class Client1 extends JsonSchema implements MapSchemaValidator { + public static class Client1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComplexQuadrilateral.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComplexQuadrilateral.java index 517a8b776ac..5d2b4827a34 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComplexQuadrilateral.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComplexQuadrilateral.java @@ -65,7 +65,7 @@ public record QuadrilateralTypeBoxedString(String data) implements Quadrilateral - public static class QuadrilateralType extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class QuadrilateralType extends JsonSchema implements StringSchemaValidator, StringEnumValidator { private static @Nullable QuadrilateralType instance = null; protected QuadrilateralType() { @@ -206,7 +206,7 @@ public record Schema1BoxedMap(Schema1Map data) implements Schema1Boxed { } - public static class Schema1 extends JsonSchema implements MapSchemaValidator { + public static class Schema1 extends JsonSchema implements MapSchemaValidator { private static @Nullable Schema1 instance = null; protected Schema1() { @@ -327,7 +327,7 @@ public record ComplexQuadrilateral1BoxedMap(FrozenMap<@Nullable Object> data) im } - public static class ComplexQuadrilateral1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ComplexQuadrilateral1BoxedList>, MapSchemaValidator, ComplexQuadrilateral1BoxedMap> { + public static class ComplexQuadrilateral1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ComplexQuadrilateral1BoxedList>, MapSchemaValidator, ComplexQuadrilateral1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidations.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidations.java index ac079d07f7b..034154530e5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidations.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidations.java @@ -244,7 +244,7 @@ public record Schema9BoxedList(Schema9List data) implements Schema9Boxed { - public static class Schema9 extends JsonSchema implements ListSchemaValidator { + public static class Schema9 extends JsonSchema implements ListSchemaValidator { private static @Nullable Schema9 instance = null; protected Schema9() { @@ -424,7 +424,7 @@ public record ComposedAnyOfDifferentTypesNoValidations1BoxedMap(FrozenMap<@Nulla } - public static class ComposedAnyOfDifferentTypesNoValidations1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ComposedAnyOfDifferentTypesNoValidations1BoxedList>, MapSchemaValidator, ComposedAnyOfDifferentTypesNoValidations1BoxedMap> { + public static class ComposedAnyOfDifferentTypesNoValidations1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ComposedAnyOfDifferentTypesNoValidations1BoxedList>, MapSchemaValidator, ComposedAnyOfDifferentTypesNoValidations1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedArray.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedArray.java index 223e8c885ba..2e3dbb9f70e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedArray.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedArray.java @@ -120,7 +120,7 @@ public record ComposedArray1BoxedList(ComposedArrayList data) implements Compose - public static class ComposedArray1 extends JsonSchema implements ListSchemaValidator { + public static class ComposedArray1 extends JsonSchema implements ListSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedBool.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedBool.java index b5d802b5be2..86b372a1e83 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedBool.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedBool.java @@ -44,7 +44,7 @@ public record ComposedBool1BoxedBoolean(boolean data) implements ComposedBool1Bo - public static class ComposedBool1 extends JsonSchema implements BooleanSchemaValidator { + public static class ComposedBool1 extends JsonSchema implements BooleanSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNone.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNone.java index 6265ae947b8..07f7475d298 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNone.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNone.java @@ -44,7 +44,7 @@ public record ComposedNone1BoxedVoid(Void data) implements ComposedNone1Boxed { - public static class ComposedNone1 extends JsonSchema implements NullSchemaValidator { + public static class ComposedNone1 extends JsonSchema implements NullSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNumber.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNumber.java index fac8446ceb7..af40d4055bc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNumber.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNumber.java @@ -44,7 +44,7 @@ public record ComposedNumber1BoxedNumber(Number data) implements ComposedNumber1 - public static class ComposedNumber1 extends JsonSchema implements NumberSchemaValidator { + public static class ComposedNumber1 extends JsonSchema implements NumberSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedObject.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedObject.java index 7616eed1f3a..79220b58dba 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedObject.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedObject.java @@ -50,7 +50,7 @@ public record ComposedObject1BoxedMap(FrozenMap<@Nullable Object> data) implemen } - public static class ComposedObject1 extends JsonSchema implements MapSchemaValidator, ComposedObject1BoxedMap> { + public static class ComposedObject1 extends JsonSchema implements MapSchemaValidator, ComposedObject1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypes.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypes.java index 49154b45a55..dab37f03129 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypes.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypes.java @@ -73,7 +73,7 @@ public record Schema4BoxedMap(FrozenMap<@Nullable Object> data) implements Schem } - public static class Schema4 extends JsonSchema implements MapSchemaValidator, Schema4BoxedMap> { + public static class Schema4 extends JsonSchema implements MapSchemaValidator, Schema4BoxedMap> { private static @Nullable Schema4 instance = null; protected Schema4() { @@ -242,7 +242,7 @@ public record Schema5BoxedList(Schema5List data) implements Schema5Boxed { - public static class Schema5 extends JsonSchema implements ListSchemaValidator { + public static class Schema5 extends JsonSchema implements ListSchemaValidator { private static @Nullable Schema5 instance = null; protected Schema5() { @@ -324,7 +324,7 @@ public record Schema6BoxedString(String data) implements Schema6Boxed { - public static class Schema6 extends JsonSchema implements StringSchemaValidator { + public static class Schema6 extends JsonSchema implements StringSchemaValidator { private static @Nullable Schema6 instance = null; protected Schema6() { @@ -424,7 +424,7 @@ public record ComposedOneOfDifferentTypes1BoxedMap(FrozenMap<@Nullable Object> d } - public static class ComposedOneOfDifferentTypes1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ComposedOneOfDifferentTypes1BoxedList>, MapSchemaValidator, ComposedOneOfDifferentTypes1BoxedMap> { + public static class ComposedOneOfDifferentTypes1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ComposedOneOfDifferentTypes1BoxedList>, MapSchemaValidator, ComposedOneOfDifferentTypes1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedString.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedString.java index 6839333aced..4b4a023b6cd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedString.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedString.java @@ -44,7 +44,7 @@ public record ComposedString1BoxedString(String data) implements ComposedString1 - public static class ComposedString1 extends JsonSchema implements StringSchemaValidator { + public static class ComposedString1 extends JsonSchema implements StringSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Currency.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Currency.java index f14aadf180f..0842da2efaa 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Currency.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Currency.java @@ -48,7 +48,7 @@ public record Currency1BoxedString(String data) implements Currency1Boxed { - public static class Currency1 extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class Currency1 extends JsonSchema implements StringSchemaValidator, StringEnumValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DanishPig.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DanishPig.java index 99a783805a9..a903fecf15a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DanishPig.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DanishPig.java @@ -57,7 +57,7 @@ public record ClassNameBoxedString(String data) implements ClassNameBoxed { - public static class ClassName extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class ClassName extends JsonSchema implements StringSchemaValidator, StringEnumValidator { private static @Nullable ClassName instance = null; protected ClassName() { @@ -206,7 +206,7 @@ public record DanishPig1BoxedMap(DanishPigMap data) implements DanishPig1Boxed { } - public static class DanishPig1 extends JsonSchema implements MapSchemaValidator { + public static class DanishPig1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeTest.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeTest.java index 4eed8bab9c9..ed097307bea 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeTest.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeTest.java @@ -34,7 +34,7 @@ public record DateTimeTest1BoxedString(String data) implements DateTimeTest1Boxe - public static class DateTimeTest1 extends JsonSchema implements StringSchemaValidator, DefaultValueMethod { + public static class DateTimeTest1 extends JsonSchema implements StringSchemaValidator, DefaultValueMethod { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeWithValidations.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeWithValidations.java index d3c4cc12825..ae2af22fa18 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeWithValidations.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeWithValidations.java @@ -34,7 +34,7 @@ public record DateTimeWithValidations1BoxedString(String data) implements DateTi - public static class DateTimeWithValidations1 extends JsonSchema implements StringSchemaValidator { + public static class DateTimeWithValidations1 extends JsonSchema implements StringSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateWithValidations.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateWithValidations.java index 2410fcf578b..c0c8b2250d6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateWithValidations.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateWithValidations.java @@ -34,7 +34,7 @@ public record DateWithValidations1BoxedString(String data) implements DateWithVa - public static class DateWithValidations1 extends JsonSchema implements StringSchemaValidator { + public static class DateWithValidations1 extends JsonSchema implements StringSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Dog.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Dog.java index 45c3601ab17..7333285e839 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Dog.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Dog.java @@ -127,7 +127,7 @@ public record Schema1BoxedMap(Schema1Map data) implements Schema1Boxed { } - public static class Schema1 extends JsonSchema implements MapSchemaValidator { + public static class Schema1 extends JsonSchema implements MapSchemaValidator { private static @Nullable Schema1 instance = null; protected Schema1() { @@ -248,7 +248,7 @@ public record Dog1BoxedMap(FrozenMap<@Nullable Object> data) implements Dog1Boxe } - public static class Dog1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Dog1BoxedList>, MapSchemaValidator, Dog1BoxedMap> { + public static class Dog1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Dog1BoxedList>, MapSchemaValidator, Dog1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Drawing.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Drawing.java index 3b0e8b2d885..e27b9bd39b3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Drawing.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Drawing.java @@ -115,7 +115,7 @@ public record ShapesBoxedList(ShapesList data) implements ShapesBoxed { - public static class Shapes extends JsonSchema implements ListSchemaValidator { + public static class Shapes extends JsonSchema implements ListSchemaValidator { private static @Nullable Shapes instance = null; protected Shapes() { @@ -557,7 +557,7 @@ public record Drawing1BoxedMap(DrawingMap data) implements Drawing1Boxed { } - public static class Drawing1 extends JsonSchema implements MapSchemaValidator { + public static class Drawing1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumArrays.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumArrays.java index 8de1bc4f0ad..5c7051000bf 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumArrays.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumArrays.java @@ -60,7 +60,7 @@ public record JustSymbolBoxedString(String data) implements JustSymbolBoxed { - public static class JustSymbol extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class JustSymbol extends JsonSchema implements StringSchemaValidator, StringEnumValidator { private static @Nullable JustSymbol instance = null; protected JustSymbol() { @@ -144,7 +144,7 @@ public record ItemsBoxedString(String data) implements ItemsBoxed { - public static class Items extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class Items extends JsonSchema implements StringSchemaValidator, StringEnumValidator { private static @Nullable Items instance = null; protected Items() { @@ -252,7 +252,7 @@ public record ArrayEnumBoxedList(ArrayEnumList data) implements ArrayEnumBoxed { - public static class ArrayEnum extends JsonSchema implements ListSchemaValidator { + public static class ArrayEnum extends JsonSchema implements ListSchemaValidator { private static @Nullable ArrayEnum instance = null; protected ArrayEnum() { @@ -432,7 +432,7 @@ public record EnumArrays1BoxedMap(EnumArraysMap data) implements EnumArrays1Boxe } - public static class EnumArrays1 extends JsonSchema implements MapSchemaValidator { + public static class EnumArrays1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumClass.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumClass.java index ba9725b65bb..7e81546e4e9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumClass.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumClass.java @@ -52,7 +52,7 @@ public record EnumClass1BoxedString(String data) implements EnumClass1Boxed { - public static class EnumClass1 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + public static class EnumClass1 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumTest.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumTest.java index 3c1cd7e3697..3157a1913ba 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumTest.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumTest.java @@ -69,7 +69,7 @@ public record EnumStringBoxedString(String data) implements EnumStringBoxed { - public static class EnumString extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class EnumString extends JsonSchema implements StringSchemaValidator, StringEnumValidator { private static @Nullable EnumString instance = null; protected EnumString() { @@ -155,7 +155,7 @@ public record EnumStringRequiredBoxedString(String data) implements EnumStringRe - public static class EnumStringRequired extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class EnumStringRequired extends JsonSchema implements StringSchemaValidator, StringEnumValidator { private static @Nullable EnumStringRequired instance = null; protected EnumStringRequired() { @@ -279,7 +279,7 @@ public record EnumIntegerBoxedNumber(Number data) implements EnumIntegerBoxed { - public static class EnumInteger extends JsonSchema implements IntegerEnumValidator, LongEnumValidator, FloatEnumValidator, DoubleEnumValidator, NumberSchemaValidator { + public static class EnumInteger extends JsonSchema implements IntegerEnumValidator, LongEnumValidator, FloatEnumValidator, DoubleEnumValidator, NumberSchemaValidator { private static @Nullable EnumInteger instance = null; protected EnumInteger() { @@ -403,7 +403,7 @@ public record EnumNumberBoxedNumber(Number data) implements EnumNumberBoxed { - public static class EnumNumber extends JsonSchema implements FloatEnumValidator, DoubleEnumValidator, NumberSchemaValidator { + public static class EnumNumber extends JsonSchema implements FloatEnumValidator, DoubleEnumValidator, NumberSchemaValidator { private static @Nullable EnumNumber instance = null; protected EnumNumber() { @@ -990,7 +990,7 @@ public record EnumTest1BoxedMap(EnumTestMap data) implements EnumTest1Boxed { } - public static class EnumTest1 extends JsonSchema implements MapSchemaValidator { + public static class EnumTest1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EquilateralTriangle.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EquilateralTriangle.java index 4f3d2929e87..9e323817d1e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EquilateralTriangle.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EquilateralTriangle.java @@ -65,7 +65,7 @@ public record TriangleTypeBoxedString(String data) implements TriangleTypeBoxed - public static class TriangleType extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class TriangleType extends JsonSchema implements StringSchemaValidator, StringEnumValidator { private static @Nullable TriangleType instance = null; protected TriangleType() { @@ -206,7 +206,7 @@ public record Schema1BoxedMap(Schema1Map data) implements Schema1Boxed { } - public static class Schema1 extends JsonSchema implements MapSchemaValidator { + public static class Schema1 extends JsonSchema implements MapSchemaValidator { private static @Nullable Schema1 instance = null; protected Schema1() { @@ -327,7 +327,7 @@ public record EquilateralTriangle1BoxedMap(FrozenMap<@Nullable Object> data) imp } - public static class EquilateralTriangle1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, EquilateralTriangle1BoxedList>, MapSchemaValidator, EquilateralTriangle1BoxedMap> { + public static class EquilateralTriangle1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, EquilateralTriangle1BoxedList>, MapSchemaValidator, EquilateralTriangle1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/File.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/File.java index 7bfb8274c71..d4f12a3944d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/File.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/File.java @@ -118,7 +118,7 @@ public record File1BoxedMap(FileMap data) implements File1Boxed { } - public static class File1 extends JsonSchema implements MapSchemaValidator { + public static class File1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FileSchemaTestClass.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FileSchemaTestClass.java index c54a9e186db..aa4d922dffa 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FileSchemaTestClass.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FileSchemaTestClass.java @@ -75,7 +75,7 @@ public record FilesBoxedList(FilesList data) implements FilesBoxed { - public static class Files extends JsonSchema implements ListSchemaValidator { + public static class Files extends JsonSchema implements ListSchemaValidator { private static @Nullable Files instance = null; protected Files() { @@ -249,7 +249,7 @@ public record FileSchemaTestClass1BoxedMap(FileSchemaTestClassMap data) implemen } - public static class FileSchemaTestClass1 extends JsonSchema implements MapSchemaValidator { + public static class FileSchemaTestClass1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Foo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Foo.java index cb0e76f2151..532ba8be8fc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Foo.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Foo.java @@ -106,7 +106,7 @@ public record Foo1BoxedMap(FooMap data) implements Foo1Boxed { } - public static class Foo1 extends JsonSchema implements MapSchemaValidator { + public static class Foo1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FormatTest.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FormatTest.java index 854fb0774ad..2e3be44e7d2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FormatTest.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FormatTest.java @@ -57,7 +57,7 @@ public record IntegerSchemaBoxedNumber(Number data) implements IntegerSchemaBoxe - public static class IntegerSchema extends JsonSchema implements NumberSchemaValidator { + public static class IntegerSchema extends JsonSchema implements NumberSchemaValidator { private static @Nullable IntegerSchema instance = null; protected IntegerSchema() { @@ -153,7 +153,7 @@ public record Int32withValidationsBoxedNumber(Number data) implements Int32withV - public static class Int32withValidations extends JsonSchema implements NumberSchemaValidator { + public static class Int32withValidations extends JsonSchema implements NumberSchemaValidator { private static @Nullable Int32withValidations instance = null; protected Int32withValidations() { @@ -240,7 +240,7 @@ public record NumberSchemaBoxedNumber(Number data) implements NumberSchemaBoxed - public static class NumberSchema extends JsonSchema implements NumberSchemaValidator { + public static class NumberSchema extends JsonSchema implements NumberSchemaValidator { private static @Nullable NumberSchema instance = null; protected NumberSchema() { @@ -324,7 +324,7 @@ public record FloatSchemaBoxedNumber(Number data) implements FloatSchemaBoxed { - public static class FloatSchema extends JsonSchema implements NumberSchemaValidator { + public static class FloatSchema extends JsonSchema implements NumberSchemaValidator { private static @Nullable FloatSchema instance = null; protected FloatSchema() { @@ -406,7 +406,7 @@ public record DoubleSchemaBoxedNumber(Number data) implements DoubleSchemaBoxed - public static class DoubleSchema extends JsonSchema implements NumberSchemaValidator { + public static class DoubleSchema extends JsonSchema implements NumberSchemaValidator { private static @Nullable DoubleSchema instance = null; protected DoubleSchema() { @@ -546,7 +546,7 @@ public record ArrayWithUniqueItemsBoxedList(ArrayWithUniqueItemsList data) imple - public static class ArrayWithUniqueItems extends JsonSchema implements ListSchemaValidator { + public static class ArrayWithUniqueItems extends JsonSchema implements ListSchemaValidator { private static @Nullable ArrayWithUniqueItems instance = null; protected ArrayWithUniqueItems() { @@ -630,7 +630,7 @@ public record StringSchemaBoxedString(String data) implements StringSchemaBoxed - public static class StringSchema extends JsonSchema implements StringSchemaValidator { + public static class StringSchema extends JsonSchema implements StringSchemaValidator { private static @Nullable StringSchema instance = null; protected StringSchema() { @@ -763,7 +763,7 @@ public record PasswordBoxedString(String data) implements PasswordBoxed { - public static class Password extends JsonSchema implements StringSchemaValidator { + public static class Password extends JsonSchema implements StringSchemaValidator { private static @Nullable Password instance = null; protected Password() { @@ -828,7 +828,7 @@ public record PatternWithDigitsBoxedString(String data) implements PatternWithDi - public static class PatternWithDigits extends JsonSchema implements StringSchemaValidator { + public static class PatternWithDigits extends JsonSchema implements StringSchemaValidator { private static @Nullable PatternWithDigits instance = null; protected PatternWithDigits() { @@ -893,7 +893,7 @@ public record PatternWithDigitsAndDelimiterBoxedString(String data) implements P - public static class PatternWithDigitsAndDelimiter extends JsonSchema implements StringSchemaValidator { + public static class PatternWithDigitsAndDelimiter extends JsonSchema implements StringSchemaValidator { private static @Nullable PatternWithDigitsAndDelimiter instance = null; protected PatternWithDigitsAndDelimiter() { @@ -1854,7 +1854,7 @@ public record FormatTest1BoxedMap(FormatTestMap data) implements FormatTest1Boxe } - public static class FormatTest1 extends JsonSchema implements MapSchemaValidator { + public static class FormatTest1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FromSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FromSchema.java index f51793de16f..9dd7e0e46a3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FromSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FromSchema.java @@ -174,7 +174,7 @@ public record FromSchema1BoxedMap(FromSchemaMap data) implements FromSchema1Boxe } - public static class FromSchema1 extends JsonSchema implements MapSchemaValidator { + public static class FromSchema1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Fruit.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Fruit.java index 9d54de4bedf..1bdcf88ff5c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Fruit.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Fruit.java @@ -162,7 +162,7 @@ public record Fruit1BoxedMap(FruitMap data) implements Fruit1Boxed { } - public static class Fruit1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Fruit1BoxedList>, MapSchemaValidator { + public static class Fruit1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Fruit1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FruitReq.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FruitReq.java index 0202e6fae04..4e17b6d312f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FruitReq.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FruitReq.java @@ -94,7 +94,7 @@ public record FruitReq1BoxedMap(FrozenMap<@Nullable Object> data) implements Fru } - public static class FruitReq1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, FruitReq1BoxedList>, MapSchemaValidator, FruitReq1BoxedMap> { + public static class FruitReq1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, FruitReq1BoxedList>, MapSchemaValidator, FruitReq1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GmFruit.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GmFruit.java index 97601f24262..14b914f74c3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GmFruit.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GmFruit.java @@ -162,7 +162,7 @@ public record GmFruit1BoxedMap(GmFruitMap data) implements GmFruit1Boxed { } - public static class GmFruit1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, GmFruit1BoxedList>, MapSchemaValidator { + public static class GmFruit1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, GmFruit1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GrandparentAnimal.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GrandparentAnimal.java index 45d2aba0831..668d0aa0ee4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GrandparentAnimal.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GrandparentAnimal.java @@ -126,7 +126,7 @@ public record GrandparentAnimal1BoxedMap(GrandparentAnimalMap data) implements G } - public static class GrandparentAnimal1 extends JsonSchema implements MapSchemaValidator { + public static class GrandparentAnimal1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HasOnlyReadOnly.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HasOnlyReadOnly.java index 7c9ab33d28a..922ad832e80 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HasOnlyReadOnly.java @@ -155,7 +155,7 @@ public record HasOnlyReadOnly1BoxedMap(HasOnlyReadOnlyMap data) implements HasOn } - public static class HasOnlyReadOnly1 extends JsonSchema implements MapSchemaValidator { + public static class HasOnlyReadOnly1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HealthCheckResult.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HealthCheckResult.java index 38a9afffd85..71ee9e5afe7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HealthCheckResult.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HealthCheckResult.java @@ -50,7 +50,7 @@ public record NullableMessageBoxedString(String data) implements NullableMessage - public static class NullableMessage extends JsonSchema implements NullSchemaValidator, StringSchemaValidator { + public static class NullableMessage extends JsonSchema implements NullSchemaValidator, StringSchemaValidator { private static @Nullable NullableMessage instance = null; protected NullableMessage() { @@ -213,7 +213,7 @@ public record HealthCheckResult1BoxedMap(HealthCheckResultMap data) implements H } - public static class HealthCheckResult1 extends JsonSchema implements MapSchemaValidator { + public static class HealthCheckResult1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnum.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnum.java index e1c2b0f7442..c7511ff378d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnum.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnum.java @@ -98,7 +98,7 @@ public record IntegerEnum1BoxedNumber(Number data) implements IntegerEnum1Boxed - public static class IntegerEnum1 extends JsonSchema implements IntegerEnumValidator, LongEnumValidator, FloatEnumValidator, DoubleEnumValidator, NumberSchemaValidator { + public static class IntegerEnum1 extends JsonSchema implements IntegerEnumValidator, LongEnumValidator, FloatEnumValidator, DoubleEnumValidator, NumberSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumBig.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumBig.java index a7df59cd6e7..cbfb98f8b25 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumBig.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumBig.java @@ -98,7 +98,7 @@ public record IntegerEnumBig1BoxedNumber(Number data) implements IntegerEnumBig1 - public static class IntegerEnumBig1 extends JsonSchema implements IntegerEnumValidator, LongEnumValidator, FloatEnumValidator, DoubleEnumValidator, NumberSchemaValidator { + public static class IntegerEnumBig1 extends JsonSchema implements IntegerEnumValidator, LongEnumValidator, FloatEnumValidator, DoubleEnumValidator, NumberSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumOneValue.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumOneValue.java index 3051c633c56..40c3c688741 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumOneValue.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumOneValue.java @@ -90,7 +90,7 @@ public record IntegerEnumOneValue1BoxedNumber(Number data) implements IntegerEnu - public static class IntegerEnumOneValue1 extends JsonSchema implements IntegerEnumValidator, LongEnumValidator, FloatEnumValidator, DoubleEnumValidator, NumberSchemaValidator { + public static class IntegerEnumOneValue1 extends JsonSchema implements IntegerEnumValidator, LongEnumValidator, FloatEnumValidator, DoubleEnumValidator, NumberSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumWithDefaultValue.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumWithDefaultValue.java index 1d3435bdf71..d27652915b7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumWithDefaultValue.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumWithDefaultValue.java @@ -99,7 +99,7 @@ public record IntegerEnumWithDefaultValue1BoxedNumber(Number data) implements In - public static class IntegerEnumWithDefaultValue1 extends JsonSchema implements IntegerEnumValidator, LongEnumValidator, FloatEnumValidator, DoubleEnumValidator, NumberSchemaValidator { + public static class IntegerEnumWithDefaultValue1 extends JsonSchema implements IntegerEnumValidator, LongEnumValidator, FloatEnumValidator, DoubleEnumValidator, NumberSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerMax10.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerMax10.java index dc1acfabb92..8939d1038b9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerMax10.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerMax10.java @@ -32,7 +32,7 @@ public record IntegerMax101BoxedNumber(Number data) implements IntegerMax101Boxe - public static class IntegerMax101 extends JsonSchema implements NumberSchemaValidator { + public static class IntegerMax101 extends JsonSchema implements NumberSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerMin15.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerMin15.java index e2edf728438..d3996ca18c3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerMin15.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerMin15.java @@ -32,7 +32,7 @@ public record IntegerMin151BoxedNumber(Number data) implements IntegerMin151Boxe - public static class IntegerMin151 extends JsonSchema implements NumberSchemaValidator { + public static class IntegerMin151 extends JsonSchema implements NumberSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IsoscelesTriangle.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IsoscelesTriangle.java index 4ffd3ba76aa..d40278b9ccc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IsoscelesTriangle.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IsoscelesTriangle.java @@ -65,7 +65,7 @@ public record TriangleTypeBoxedString(String data) implements TriangleTypeBoxed - public static class TriangleType extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class TriangleType extends JsonSchema implements StringSchemaValidator, StringEnumValidator { private static @Nullable TriangleType instance = null; protected TriangleType() { @@ -206,7 +206,7 @@ public record Schema1BoxedMap(Schema1Map data) implements Schema1Boxed { } - public static class Schema1 extends JsonSchema implements MapSchemaValidator { + public static class Schema1 extends JsonSchema implements MapSchemaValidator { private static @Nullable Schema1 instance = null; protected Schema1() { @@ -327,7 +327,7 @@ public record IsoscelesTriangle1BoxedMap(FrozenMap<@Nullable Object> data) imple } - public static class IsoscelesTriangle1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IsoscelesTriangle1BoxedList>, MapSchemaValidator, IsoscelesTriangle1BoxedMap> { + public static class IsoscelesTriangle1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IsoscelesTriangle1BoxedList>, MapSchemaValidator, IsoscelesTriangle1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Items.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Items.java index 9e2383dca17..cd1fc379619 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Items.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Items.java @@ -81,7 +81,7 @@ public record Items1BoxedList(ItemsList data) implements Items1Boxed { - public static class Items1 extends JsonSchema implements ListSchemaValidator { + public static class Items1 extends JsonSchema implements ListSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequest.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequest.java index edfd6625244..96fa1b69a43 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequest.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequest.java @@ -82,7 +82,7 @@ public record ItemsBoxedMap(FrozenMap<@Nullable Object> data) implements ItemsBo } - public static class Items extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ItemsBoxedList>, MapSchemaValidator, ItemsBoxedMap> { + public static class Items extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ItemsBoxedList>, MapSchemaValidator, ItemsBoxedMap> { private static @Nullable Items instance = null; protected Items() { @@ -409,7 +409,7 @@ public record JSONPatchRequest1BoxedList(JSONPatchRequestList data) implements J - public static class JSONPatchRequest1 extends JsonSchema implements ListSchemaValidator { + public static class JSONPatchRequest1 extends JsonSchema implements ListSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestAddReplaceTest.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestAddReplaceTest.java index a7494d0c7ed..f35347d2c72 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestAddReplaceTest.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestAddReplaceTest.java @@ -95,7 +95,7 @@ public record OpBoxedString(String data) implements OpBoxed { - public static class Op extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class Op extends JsonSchema implements StringSchemaValidator, StringEnumValidator { private static @Nullable Op instance = null; protected Op() { @@ -413,7 +413,7 @@ public record JSONPatchRequestAddReplaceTest1BoxedMap(JSONPatchRequestAddReplace } - public static class JSONPatchRequestAddReplaceTest1 extends JsonSchema implements MapSchemaValidator { + public static class JSONPatchRequestAddReplaceTest1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestMoveCopy.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestMoveCopy.java index c3500955e9c..fc8cb358b22 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestMoveCopy.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestMoveCopy.java @@ -94,7 +94,7 @@ public record OpBoxedString(String data) implements OpBoxed { - public static class Op extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class Op extends JsonSchema implements StringSchemaValidator, StringEnumValidator { private static @Nullable Op instance = null; protected Op() { @@ -359,7 +359,7 @@ public record JSONPatchRequestMoveCopy1BoxedMap(JSONPatchRequestMoveCopyMap data } - public static class JSONPatchRequestMoveCopy1 extends JsonSchema implements MapSchemaValidator { + public static class JSONPatchRequestMoveCopy1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestRemove.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestRemove.java index 9ed7dbba6ae..13248ed3a80 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestRemove.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestRemove.java @@ -82,7 +82,7 @@ public record OpBoxedString(String data) implements OpBoxed { - public static class Op extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class Op extends JsonSchema implements StringSchemaValidator, StringEnumValidator { private static @Nullable Op instance = null; protected Op() { @@ -265,7 +265,7 @@ public record JSONPatchRequestRemove1BoxedMap(JSONPatchRequestRemoveMap data) im } - public static class JSONPatchRequestRemove1 extends JsonSchema implements MapSchemaValidator { + public static class JSONPatchRequestRemove1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Mammal.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Mammal.java index d1bbf97f191..1bae55f9faa 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Mammal.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Mammal.java @@ -82,7 +82,7 @@ public record Mammal1BoxedMap(FrozenMap<@Nullable Object> data) implements Mamma } - public static class Mammal1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Mammal1BoxedList>, MapSchemaValidator, Mammal1BoxedMap> { + public static class Mammal1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Mammal1BoxedList>, MapSchemaValidator, Mammal1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MapTest.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MapTest.java index ec574d49874..26764454780 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MapTest.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MapTest.java @@ -107,7 +107,7 @@ public record AdditionalPropertiesBoxedMap(AdditionalPropertiesMap data) impleme } - public static class AdditionalProperties extends JsonSchema implements MapSchemaValidator { + public static class AdditionalProperties extends JsonSchema implements MapSchemaValidator { private static @Nullable AdditionalProperties instance = null; protected AdditionalProperties() { @@ -243,7 +243,7 @@ public record MapMapOfStringBoxedMap(MapMapOfStringMap data) implements MapMapOf } - public static class MapMapOfString extends JsonSchema implements MapSchemaValidator { + public static class MapMapOfString extends JsonSchema implements MapSchemaValidator { private static @Nullable MapMapOfString instance = null; protected MapMapOfString() { @@ -344,7 +344,7 @@ public record AdditionalProperties2BoxedString(String data) implements Additiona - public static class AdditionalProperties2 extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class AdditionalProperties2 extends JsonSchema implements StringSchemaValidator, StringEnumValidator { private static @Nullable AdditionalProperties2 instance = null; protected AdditionalProperties2() { @@ -470,7 +470,7 @@ public record MapOfEnumStringBoxedMap(MapOfEnumStringMap data) implements MapOfE } - public static class MapOfEnumString extends JsonSchema implements MapSchemaValidator { + public static class MapOfEnumString extends JsonSchema implements MapSchemaValidator { private static @Nullable MapOfEnumString instance = null; protected MapOfEnumString() { @@ -622,7 +622,7 @@ public record DirectMapBoxedMap(DirectMapMap data) implements DirectMapBoxed { } - public static class DirectMap extends JsonSchema implements MapSchemaValidator { + public static class DirectMap extends JsonSchema implements MapSchemaValidator { private static @Nullable DirectMap instance = null; protected DirectMap() { @@ -853,7 +853,7 @@ public record MapTest1BoxedMap(MapTestMap data) implements MapTest1Boxed { } - public static class MapTest1 extends JsonSchema implements MapSchemaValidator { + public static class MapTest1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.java index 318f723566f..fb59caeb809 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.java @@ -114,7 +114,7 @@ public record MapSchemaBoxedMap(MapMap data) implements MapSchemaBoxed { } - public static class MapSchema extends JsonSchema implements MapSchemaValidator { + public static class MapSchema extends JsonSchema implements MapSchemaValidator { private static @Nullable MapSchema instance = null; protected MapSchema() { @@ -299,7 +299,7 @@ public record MixedPropertiesAndAdditionalPropertiesClass1BoxedMap(MixedProperti } - public static class MixedPropertiesAndAdditionalPropertiesClass1 extends JsonSchema implements MapSchemaValidator { + public static class MixedPropertiesAndAdditionalPropertiesClass1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Money.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Money.java index a595eafa7f5..fe66af637af 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Money.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Money.java @@ -183,7 +183,7 @@ public record Money1BoxedMap(MoneyMap data) implements Money1Boxed { } - public static class Money1 extends JsonSchema implements MapSchemaValidator { + public static class Money1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MyObjectDto.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MyObjectDto.java index e8da6982f7d..c613d5fb8f8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MyObjectDto.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MyObjectDto.java @@ -116,7 +116,7 @@ public record MyObjectDto1BoxedMap(MyObjectDtoMap data) implements MyObjectDto1B } - public static class MyObjectDto1 extends JsonSchema implements MapSchemaValidator { + public static class MyObjectDto1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Name.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Name.java index 4e3742c93aa..21f701f01eb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Name.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Name.java @@ -258,7 +258,7 @@ public record Name1BoxedMap(NameMap data) implements Name1Boxed { } - public static class Name1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Name1BoxedList>, MapSchemaValidator { + public static class Name1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Name1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NoAdditionalProperties.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NoAdditionalProperties.java index 016ea77a573..4990251ea04 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NoAdditionalProperties.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NoAdditionalProperties.java @@ -194,7 +194,7 @@ public record NoAdditionalProperties1BoxedMap(NoAdditionalPropertiesMap data) im } - public static class NoAdditionalProperties1 extends JsonSchema implements MapSchemaValidator { + public static class NoAdditionalProperties1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableClass.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableClass.java index 8f6ffbc1605..137b783560e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableClass.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableClass.java @@ -57,7 +57,7 @@ public record AdditionalProperties3BoxedMap(FrozenMap<@Nullable Object> data) im } - public static class AdditionalProperties3 extends JsonSchema implements NullSchemaValidator, MapSchemaValidator, AdditionalProperties3BoxedMap> { + public static class AdditionalProperties3 extends JsonSchema implements NullSchemaValidator, MapSchemaValidator, AdditionalProperties3BoxedMap> { private static @Nullable AdditionalProperties3 instance = null; protected AdditionalProperties3() { @@ -179,7 +179,7 @@ public record IntegerPropBoxedNumber(Number data) implements IntegerPropBoxed { - public static class IntegerProp extends JsonSchema implements NullSchemaValidator, NumberSchemaValidator { + public static class IntegerProp extends JsonSchema implements NullSchemaValidator, NumberSchemaValidator { private static @Nullable IntegerProp instance = null; protected IntegerProp() { @@ -298,7 +298,7 @@ public record NumberPropBoxedNumber(Number data) implements NumberPropBoxed { - public static class NumberProp extends JsonSchema implements NullSchemaValidator, NumberSchemaValidator { + public static class NumberProp extends JsonSchema implements NullSchemaValidator, NumberSchemaValidator { private static @Nullable NumberProp instance = null; protected NumberProp() { @@ -416,7 +416,7 @@ public record BooleanPropBoxedBoolean(boolean data) implements BooleanPropBoxed - public static class BooleanProp extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator { + public static class BooleanProp extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator { private static @Nullable BooleanProp instance = null; protected BooleanProp() { @@ -518,7 +518,7 @@ public record StringPropBoxedString(String data) implements StringPropBoxed { - public static class StringProp extends JsonSchema implements NullSchemaValidator, StringSchemaValidator { + public static class StringProp extends JsonSchema implements NullSchemaValidator, StringSchemaValidator { private static @Nullable StringProp instance = null; protected StringProp() { @@ -617,7 +617,7 @@ public record DatePropBoxedString(String data) implements DatePropBoxed { - public static class DateProp extends JsonSchema implements NullSchemaValidator, StringSchemaValidator { + public static class DateProp extends JsonSchema implements NullSchemaValidator, StringSchemaValidator { private static @Nullable DateProp instance = null; protected DateProp() { @@ -717,7 +717,7 @@ public record DatetimePropBoxedString(String data) implements DatetimePropBoxed - public static class DatetimeProp extends JsonSchema implements NullSchemaValidator, StringSchemaValidator { + public static class DatetimeProp extends JsonSchema implements NullSchemaValidator, StringSchemaValidator { private static @Nullable DatetimeProp instance = null; protected DatetimeProp() { @@ -860,7 +860,7 @@ public record ArrayNullablePropBoxedList(ArrayNullablePropList data) implements - public static class ArrayNullableProp extends JsonSchema implements NullSchemaValidator, ListSchemaValidator { + public static class ArrayNullableProp extends JsonSchema implements NullSchemaValidator, ListSchemaValidator { private static @Nullable ArrayNullableProp instance = null; protected ArrayNullableProp() { @@ -981,7 +981,7 @@ public record Items1BoxedMap(FrozenMap<@Nullable Object> data) implements Items1 } - public static class Items1 extends JsonSchema implements NullSchemaValidator, MapSchemaValidator, Items1BoxedMap> { + public static class Items1 extends JsonSchema implements NullSchemaValidator, MapSchemaValidator, Items1BoxedMap> { private static @Nullable Items1 instance = null; protected Items1() { @@ -1140,7 +1140,7 @@ public record ArrayAndItemsNullablePropBoxedList(ArrayAndItemsNullablePropList d - public static class ArrayAndItemsNullableProp extends JsonSchema implements NullSchemaValidator, ListSchemaValidator { + public static class ArrayAndItemsNullableProp extends JsonSchema implements NullSchemaValidator, ListSchemaValidator { private static @Nullable ArrayAndItemsNullableProp instance = null; protected ArrayAndItemsNullableProp() { @@ -1261,7 +1261,7 @@ public record Items2BoxedMap(FrozenMap<@Nullable Object> data) implements Items2 } - public static class Items2 extends JsonSchema implements NullSchemaValidator, MapSchemaValidator, Items2BoxedMap> { + public static class Items2 extends JsonSchema implements NullSchemaValidator, MapSchemaValidator, Items2BoxedMap> { private static @Nullable Items2 instance = null; protected Items2() { @@ -1413,7 +1413,7 @@ public record ArrayItemsNullableBoxedList(ArrayItemsNullableList data) implement - public static class ArrayItemsNullable extends JsonSchema implements ListSchemaValidator { + public static class ArrayItemsNullable extends JsonSchema implements ListSchemaValidator { private static @Nullable ArrayItemsNullable instance = null; protected ArrayItemsNullable() { @@ -1562,7 +1562,7 @@ public record ObjectNullablePropBoxedMap(ObjectNullablePropMap data) implements } - public static class ObjectNullableProp extends JsonSchema implements NullSchemaValidator, MapSchemaValidator { + public static class ObjectNullableProp extends JsonSchema implements NullSchemaValidator, MapSchemaValidator { private static @Nullable ObjectNullableProp instance = null; protected ObjectNullableProp() { @@ -1687,7 +1687,7 @@ public record AdditionalProperties1BoxedMap(FrozenMap<@Nullable Object> data) im } - public static class AdditionalProperties1 extends JsonSchema implements NullSchemaValidator, MapSchemaValidator, AdditionalProperties1BoxedMap> { + public static class AdditionalProperties1 extends JsonSchema implements NullSchemaValidator, MapSchemaValidator, AdditionalProperties1BoxedMap> { private static @Nullable AdditionalProperties1 instance = null; protected AdditionalProperties1() { @@ -1864,7 +1864,7 @@ public record ObjectAndItemsNullablePropBoxedMap(ObjectAndItemsNullablePropMap d } - public static class ObjectAndItemsNullableProp extends JsonSchema implements NullSchemaValidator, MapSchemaValidator { + public static class ObjectAndItemsNullableProp extends JsonSchema implements NullSchemaValidator, MapSchemaValidator { private static @Nullable ObjectAndItemsNullableProp instance = null; protected ObjectAndItemsNullableProp() { @@ -1989,7 +1989,7 @@ public record AdditionalProperties2BoxedMap(FrozenMap<@Nullable Object> data) im } - public static class AdditionalProperties2 extends JsonSchema implements NullSchemaValidator, MapSchemaValidator, AdditionalProperties2BoxedMap> { + public static class AdditionalProperties2 extends JsonSchema implements NullSchemaValidator, MapSchemaValidator, AdditionalProperties2BoxedMap> { private static @Nullable AdditionalProperties2 instance = null; protected AdditionalProperties2() { @@ -2159,7 +2159,7 @@ public record ObjectItemsNullableBoxedMap(ObjectItemsNullableMap data) implement } - public static class ObjectItemsNullable extends JsonSchema implements MapSchemaValidator { + public static class ObjectItemsNullable extends JsonSchema implements MapSchemaValidator { private static @Nullable ObjectItemsNullable instance = null; protected ObjectItemsNullable() { @@ -2717,7 +2717,7 @@ public record NullableClass1BoxedMap(NullableClassMap data) implements NullableC } - public static class NullableClass1 extends JsonSchema implements MapSchemaValidator { + public static class NullableClass1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableShape.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableShape.java index 6fcce644b90..7a1eda1e21b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableShape.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableShape.java @@ -94,7 +94,7 @@ public record NullableShape1BoxedMap(FrozenMap<@Nullable Object> data) implement } - public static class NullableShape1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, NullableShape1BoxedList>, MapSchemaValidator, NullableShape1BoxedMap> { + public static class NullableShape1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, NullableShape1BoxedList>, MapSchemaValidator, NullableShape1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableString.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableString.java index 44e08bb14ac..d52f8c2d9bb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableString.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableString.java @@ -41,7 +41,7 @@ public record NullableString1BoxedString(String data) implements NullableString1 - public static class NullableString1 extends JsonSchema implements NullSchemaValidator, StringSchemaValidator { + public static class NullableString1 extends JsonSchema implements NullSchemaValidator, StringSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberOnly.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberOnly.java index 02999c0ddad..1ecaf3e6563 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberOnly.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberOnly.java @@ -136,7 +136,7 @@ public record NumberOnly1BoxedMap(NumberOnlyMap data) implements NumberOnly1Boxe } - public static class NumberOnly1 extends JsonSchema implements MapSchemaValidator { + public static class NumberOnly1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberWithExclusiveMinMax.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberWithExclusiveMinMax.java index 1248fcef477..4b8d73325b3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberWithExclusiveMinMax.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberWithExclusiveMinMax.java @@ -32,7 +32,7 @@ public record NumberWithExclusiveMinMax1BoxedNumber(Number data) implements Numb - public static class NumberWithExclusiveMinMax1 extends JsonSchema implements NumberSchemaValidator { + public static class NumberWithExclusiveMinMax1 extends JsonSchema implements NumberSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberWithValidations.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberWithValidations.java index 3fdf4b7f7de..a3290034da7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberWithValidations.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberWithValidations.java @@ -32,7 +32,7 @@ public record NumberWithValidations1BoxedNumber(Number data) implements NumberWi - public static class NumberWithValidations1 extends JsonSchema implements NumberSchemaValidator { + public static class NumberWithValidations1 extends JsonSchema implements NumberSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredProps.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredProps.java index 2f670f7a145..a7fdceaef88 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredProps.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredProps.java @@ -126,7 +126,7 @@ public record ObjWithRequiredProps1BoxedMap(ObjWithRequiredPropsMap data) implem } - public static class ObjWithRequiredProps1 extends JsonSchema implements MapSchemaValidator { + public static class ObjWithRequiredProps1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredPropsBase.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredPropsBase.java index 49ff57ae067..34ab740d896 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredPropsBase.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredPropsBase.java @@ -126,7 +126,7 @@ public record ObjWithRequiredPropsBase1BoxedMap(ObjWithRequiredPropsBaseMap data } - public static class ObjWithRequiredPropsBase1 extends JsonSchema implements MapSchemaValidator { + public static class ObjWithRequiredPropsBase1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithArgAndArgsProperties.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithArgAndArgsProperties.java index 5cf4feac8bb..ac0a50d13ac 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithArgAndArgsProperties.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithArgAndArgsProperties.java @@ -187,7 +187,7 @@ public record ObjectModelWithArgAndArgsProperties1BoxedMap(ObjectModelWithArgAnd } - public static class ObjectModelWithArgAndArgsProperties1 extends JsonSchema implements MapSchemaValidator { + public static class ObjectModelWithArgAndArgsProperties1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithRefProps.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithRefProps.java index 87d821b7083..72a124f4cf8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithRefProps.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithRefProps.java @@ -176,7 +176,7 @@ public record ObjectModelWithRefProps1BoxedMap(ObjectModelWithRefPropsMap data) } - public static class ObjectModelWithRefProps1 extends JsonSchema implements MapSchemaValidator { + public static class ObjectModelWithRefProps1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.java index b943eac3dd9..3c31db8c2b2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.java @@ -206,7 +206,7 @@ public record Schema1BoxedMap(Schema1Map data) implements Schema1Boxed { } - public static class Schema1 extends JsonSchema implements MapSchemaValidator { + public static class Schema1 extends JsonSchema implements MapSchemaValidator { private static @Nullable Schema1 instance = null; protected Schema1() { @@ -330,7 +330,7 @@ public record ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedMap(FrozenMap< } - public static class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedList>, MapSchemaValidator, ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedMap> { + public static class ObjectWithAllOfWithReqTestPropFromUnsetAddProp1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedList>, MapSchemaValidator, ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithCollidingProperties.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithCollidingProperties.java index ce1c428b29a..9e1dfee66b9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithCollidingProperties.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithCollidingProperties.java @@ -155,7 +155,7 @@ public record ObjectWithCollidingProperties1BoxedMap(ObjectWithCollidingProperti } - public static class ObjectWithCollidingProperties1 extends JsonSchema implements MapSchemaValidator { + public static class ObjectWithCollidingProperties1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDecimalProperties.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDecimalProperties.java index 4af1e5bb1c9..be4e76abbd3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDecimalProperties.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDecimalProperties.java @@ -170,7 +170,7 @@ public record ObjectWithDecimalProperties1BoxedMap(ObjectWithDecimalPropertiesMa } - public static class ObjectWithDecimalProperties1 extends JsonSchema implements MapSchemaValidator { + public static class ObjectWithDecimalProperties1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDifficultlyNamedProps.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDifficultlyNamedProps.java index cf96daa8a99..ff934f2df7e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDifficultlyNamedProps.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDifficultlyNamedProps.java @@ -211,7 +211,7 @@ public record ObjectWithDifficultlyNamedProps1BoxedMap(ObjectWithDifficultlyName } - public static class ObjectWithDifficultlyNamedProps1 extends JsonSchema implements MapSchemaValidator { + public static class ObjectWithDifficultlyNamedProps1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionProperty.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionProperty.java index baaab3019de..d17d17e791c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionProperty.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionProperty.java @@ -50,7 +50,7 @@ public record Schema0BoxedString(String data) implements Schema0Boxed { - public static class Schema0 extends JsonSchema implements StringSchemaValidator { + public static class Schema0 extends JsonSchema implements StringSchemaValidator { private static @Nullable Schema0 instance = null; protected Schema0() { @@ -147,7 +147,7 @@ public record SomePropBoxedMap(FrozenMap<@Nullable Object> data) implements Some } - public static class SomeProp extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, SomePropBoxedList>, MapSchemaValidator, SomePropBoxedMap> { + public static class SomeProp extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, SomePropBoxedList>, MapSchemaValidator, SomePropBoxedMap> { private static @Nullable SomeProp instance = null; protected SomeProp() { @@ -507,7 +507,7 @@ public record ObjectWithInlineCompositionProperty1BoxedMap(ObjectWithInlineCompo } - public static class ObjectWithInlineCompositionProperty1 extends JsonSchema implements MapSchemaValidator { + public static class ObjectWithInlineCompositionProperty1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInvalidNamedRefedProperties.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInvalidNamedRefedProperties.java index 9ecbd5ac05a..d01389c8786 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInvalidNamedRefedProperties.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInvalidNamedRefedProperties.java @@ -156,7 +156,7 @@ public record ObjectWithInvalidNamedRefedProperties1BoxedMap(ObjectWithInvalidNa } - public static class ObjectWithInvalidNamedRefedProperties1 extends JsonSchema implements MapSchemaValidator { + public static class ObjectWithInvalidNamedRefedProperties1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithNonIntersectingValues.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithNonIntersectingValues.java index c1737bd495e..a7e971e4b97 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithNonIntersectingValues.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithNonIntersectingValues.java @@ -164,7 +164,7 @@ public record ObjectWithNonIntersectingValues1BoxedMap(ObjectWithNonIntersecting } - public static class ObjectWithNonIntersectingValues1 extends JsonSchema implements MapSchemaValidator { + public static class ObjectWithNonIntersectingValues1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithOnlyOptionalProps.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithOnlyOptionalProps.java index 992fb5a5726..09eb8c0d06c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithOnlyOptionalProps.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithOnlyOptionalProps.java @@ -178,7 +178,7 @@ public record ObjectWithOnlyOptionalProps1BoxedMap(ObjectWithOnlyOptionalPropsMa } - public static class ObjectWithOnlyOptionalProps1 extends JsonSchema implements MapSchemaValidator { + public static class ObjectWithOnlyOptionalProps1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithOptionalTestProp.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithOptionalTestProp.java index d36e926f77d..a360d06fe01 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithOptionalTestProp.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithOptionalTestProp.java @@ -118,7 +118,7 @@ public record ObjectWithOptionalTestProp1BoxedMap(ObjectWithOptionalTestPropMap } - public static class ObjectWithOptionalTestProp1 extends JsonSchema implements MapSchemaValidator { + public static class ObjectWithOptionalTestProp1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithValidations.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithValidations.java index af6027ff0ea..12a0cb837ea 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithValidations.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithValidations.java @@ -38,7 +38,7 @@ public record ObjectWithValidations1BoxedMap(FrozenMap<@Nullable Object> data) i } - public static class ObjectWithValidations1 extends JsonSchema implements MapSchemaValidator, ObjectWithValidations1BoxedMap> { + public static class ObjectWithValidations1 extends JsonSchema implements MapSchemaValidator, ObjectWithValidations1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Order.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Order.java index 7ad51cc77d4..f3a55eeb46a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Order.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Order.java @@ -107,7 +107,7 @@ public record StatusBoxedString(String data) implements StatusBoxed { - public static class Status extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class Status extends JsonSchema implements StringSchemaValidator, StringEnumValidator { private static @Nullable Status instance = null; protected Status() { @@ -433,7 +433,7 @@ public record Order1BoxedMap(OrderMap data) implements Order1Boxed { } - public static class Order1 extends JsonSchema implements MapSchemaValidator { + public static class Order1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/PaginatedResultMyObjectDto.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/PaginatedResultMyObjectDto.java index 99d0d5f2978..1b76d56bae7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/PaginatedResultMyObjectDto.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/PaginatedResultMyObjectDto.java @@ -100,7 +100,7 @@ public record ResultsBoxedList(ResultsList data) implements ResultsBoxed { - public static class Results extends JsonSchema implements ListSchemaValidator { + public static class Results extends JsonSchema implements ListSchemaValidator { private static @Nullable Results instance = null; protected Results() { @@ -312,7 +312,7 @@ public record PaginatedResultMyObjectDto1BoxedMap(PaginatedResultMyObjectDtoMap } - public static class PaginatedResultMyObjectDto1 extends JsonSchema implements MapSchemaValidator { + public static class PaginatedResultMyObjectDto1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ParentPet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ParentPet.java index ef44987161e..e9cf6bd481a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ParentPet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ParentPet.java @@ -38,7 +38,7 @@ public record ParentPet1BoxedMap(FrozenMap<@Nullable Object> data) implements Pa } - public static class ParentPet1 extends JsonSchema implements MapSchemaValidator, ParentPet1BoxedMap> { + public static class ParentPet1 extends JsonSchema implements MapSchemaValidator, ParentPet1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pet.java index 3369e27472b..a7e4c75a87a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pet.java @@ -114,7 +114,7 @@ public record PhotoUrlsBoxedList(PhotoUrlsList data) implements PhotoUrlsBoxed { - public static class PhotoUrls extends JsonSchema implements ListSchemaValidator { + public static class PhotoUrls extends JsonSchema implements ListSchemaValidator { private static @Nullable PhotoUrls instance = null; protected PhotoUrls() { @@ -211,7 +211,7 @@ public record StatusBoxedString(String data) implements StatusBoxed { - public static class Status extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class Status extends JsonSchema implements StringSchemaValidator, StringEnumValidator { private static @Nullable Status instance = null; protected Status() { @@ -315,7 +315,7 @@ public record TagsBoxedList(TagsList data) implements TagsBoxed { - public static class Tags extends JsonSchema implements ListSchemaValidator { + public static class Tags extends JsonSchema implements ListSchemaValidator { private static @Nullable Tags instance = null; protected Tags() { @@ -650,7 +650,7 @@ public record Pet1BoxedMap(PetMap data) implements Pet1Boxed { } - public static class Pet1 extends JsonSchema implements MapSchemaValidator { + public static class Pet1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pig.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pig.java index 5194e3d802a..b6960ea8971 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pig.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pig.java @@ -82,7 +82,7 @@ public record Pig1BoxedMap(FrozenMap<@Nullable Object> data) implements Pig1Boxe } - public static class Pig1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Pig1BoxedList>, MapSchemaValidator, Pig1BoxedMap> { + public static class Pig1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Pig1BoxedList>, MapSchemaValidator, Pig1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Player.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Player.java index e7512f66ff9..820a6465e07 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Player.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Player.java @@ -144,7 +144,7 @@ public record Player1BoxedMap(PlayerMap data) implements Player1Boxed { } - public static class Player1 extends JsonSchema implements MapSchemaValidator { + public static class Player1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/PublicKey.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/PublicKey.java index 787da343437..9464b7074e6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/PublicKey.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/PublicKey.java @@ -118,7 +118,7 @@ public record PublicKey1BoxedMap(PublicKeyMap data) implements PublicKey1Boxed { } - public static class PublicKey1 extends JsonSchema implements MapSchemaValidator { + public static class PublicKey1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Quadrilateral.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Quadrilateral.java index 5be4b63c3aa..c23f3cfa049 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Quadrilateral.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Quadrilateral.java @@ -82,7 +82,7 @@ public record Quadrilateral1BoxedMap(FrozenMap<@Nullable Object> data) implement } - public static class Quadrilateral1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Quadrilateral1BoxedList>, MapSchemaValidator, Quadrilateral1BoxedMap> { + public static class Quadrilateral1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Quadrilateral1BoxedList>, MapSchemaValidator, Quadrilateral1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterface.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterface.java index 2ac2f9a4ad8..9f5713fd16b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterface.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterface.java @@ -66,7 +66,7 @@ public record ShapeTypeBoxedString(String data) implements ShapeTypeBoxed { - public static class ShapeType extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class ShapeType extends JsonSchema implements StringSchemaValidator, StringEnumValidator { private static @Nullable ShapeType instance = null; protected ShapeType() { @@ -311,7 +311,7 @@ public record QuadrilateralInterface1BoxedMap(QuadrilateralInterfaceMap data) im } - public static class QuadrilateralInterface1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, QuadrilateralInterface1BoxedList>, MapSchemaValidator { + public static class QuadrilateralInterface1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, QuadrilateralInterface1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReadOnlyFirst.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReadOnlyFirst.java index bdeafc99b43..6ca5599a7ef 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReadOnlyFirst.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReadOnlyFirst.java @@ -155,7 +155,7 @@ public record ReadOnlyFirst1BoxedMap(ReadOnlyFirstMap data) implements ReadOnlyF } - public static class ReadOnlyFirst1 extends JsonSchema implements MapSchemaValidator { + public static class ReadOnlyFirst1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromExplicitAddProps.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromExplicitAddProps.java index 527213362e0..bfcb0c28bb5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromExplicitAddProps.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromExplicitAddProps.java @@ -175,7 +175,7 @@ public record ReqPropsFromExplicitAddProps1BoxedMap(ReqPropsFromExplicitAddProps } - public static class ReqPropsFromExplicitAddProps1 extends JsonSchema implements MapSchemaValidator { + public static class ReqPropsFromExplicitAddProps1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromTrueAddProps.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromTrueAddProps.java index 74418a6aa76..baa255bfd36 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromTrueAddProps.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromTrueAddProps.java @@ -327,7 +327,7 @@ public record ReqPropsFromTrueAddProps1BoxedMap(ReqPropsFromTrueAddPropsMap data } - public static class ReqPropsFromTrueAddProps1 extends JsonSchema implements MapSchemaValidator { + public static class ReqPropsFromTrueAddProps1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromUnsetAddProps.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromUnsetAddProps.java index 8228247cb24..6191b97cc32 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromUnsetAddProps.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromUnsetAddProps.java @@ -247,7 +247,7 @@ public record ReqPropsFromUnsetAddProps1BoxedMap(ReqPropsFromUnsetAddPropsMap da } - public static class ReqPropsFromUnsetAddProps1 extends JsonSchema implements MapSchemaValidator { + public static class ReqPropsFromUnsetAddProps1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReturnSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReturnSchema.java index 1ad4e77d6fb..c9f4c7eb82f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReturnSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReturnSchema.java @@ -158,7 +158,7 @@ public record ReturnSchema1BoxedMap(ReturnMap data) implements ReturnSchema1Boxe } - public static class ReturnSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ReturnSchema1BoxedList>, MapSchemaValidator { + public static class ReturnSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ReturnSchema1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangle.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangle.java index 724f679cc5c..18fcede7625 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangle.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangle.java @@ -65,7 +65,7 @@ public record TriangleTypeBoxedString(String data) implements TriangleTypeBoxed - public static class TriangleType extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class TriangleType extends JsonSchema implements StringSchemaValidator, StringEnumValidator { private static @Nullable TriangleType instance = null; protected TriangleType() { @@ -206,7 +206,7 @@ public record Schema1BoxedMap(Schema1Map data) implements Schema1Boxed { } - public static class Schema1 extends JsonSchema implements MapSchemaValidator { + public static class Schema1 extends JsonSchema implements MapSchemaValidator { private static @Nullable Schema1 instance = null; protected Schema1() { @@ -327,7 +327,7 @@ public record ScaleneTriangle1BoxedMap(FrozenMap<@Nullable Object> data) impleme } - public static class ScaleneTriangle1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ScaleneTriangle1BoxedList>, MapSchemaValidator, ScaleneTriangle1BoxedMap> { + public static class ScaleneTriangle1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ScaleneTriangle1BoxedList>, MapSchemaValidator, ScaleneTriangle1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Schema200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Schema200Response.java index 289643bb88d..26eea412af7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Schema200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Schema200Response.java @@ -196,7 +196,7 @@ public record Schema200Response1BoxedMap(Schema200ResponseMap data) implements S } - public static class Schema200Response1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema200Response1BoxedList>, MapSchemaValidator { + public static class Schema200Response1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema200Response1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingArrayModel.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingArrayModel.java index becab53f2ea..6980cea60eb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingArrayModel.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingArrayModel.java @@ -68,7 +68,7 @@ public record SelfReferencingArrayModel1BoxedList(SelfReferencingArrayModelList - public static class SelfReferencingArrayModel1 extends JsonSchema implements ListSchemaValidator { + public static class SelfReferencingArrayModel1 extends JsonSchema implements ListSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingObjectModel.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingObjectModel.java index c7a9fb1bed9..5547957a0d1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingObjectModel.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingObjectModel.java @@ -122,7 +122,7 @@ public record SelfReferencingObjectModel1BoxedMap(SelfReferencingObjectModelMap } - public static class SelfReferencingObjectModel1 extends JsonSchema implements MapSchemaValidator { + public static class SelfReferencingObjectModel1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Shape.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Shape.java index 003b3bfbafd..2f667feb8e6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Shape.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Shape.java @@ -82,7 +82,7 @@ public record Shape1BoxedMap(FrozenMap<@Nullable Object> data) implements Shape1 } - public static class Shape1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Shape1BoxedList>, MapSchemaValidator, Shape1BoxedMap> { + public static class Shape1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Shape1BoxedList>, MapSchemaValidator, Shape1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ShapeOrNull.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ShapeOrNull.java index dd36aa00179..19fda5fde0f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ShapeOrNull.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ShapeOrNull.java @@ -94,7 +94,7 @@ public record ShapeOrNull1BoxedMap(FrozenMap<@Nullable Object> data) implements } - public static class ShapeOrNull1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ShapeOrNull1BoxedList>, MapSchemaValidator, ShapeOrNull1BoxedMap> { + public static class ShapeOrNull1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ShapeOrNull1BoxedList>, MapSchemaValidator, ShapeOrNull1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateral.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateral.java index 09bc4eaa0f2..f50b64e3687 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateral.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateral.java @@ -65,7 +65,7 @@ public record QuadrilateralTypeBoxedString(String data) implements Quadrilateral - public static class QuadrilateralType extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class QuadrilateralType extends JsonSchema implements StringSchemaValidator, StringEnumValidator { private static @Nullable QuadrilateralType instance = null; protected QuadrilateralType() { @@ -206,7 +206,7 @@ public record Schema1BoxedMap(Schema1Map data) implements Schema1Boxed { } - public static class Schema1 extends JsonSchema implements MapSchemaValidator { + public static class Schema1 extends JsonSchema implements MapSchemaValidator { private static @Nullable Schema1 instance = null; protected Schema1() { @@ -327,7 +327,7 @@ public record SimpleQuadrilateral1BoxedMap(FrozenMap<@Nullable Object> data) imp } - public static class SimpleQuadrilateral1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, SimpleQuadrilateral1BoxedList>, MapSchemaValidator, SimpleQuadrilateral1BoxedMap> { + public static class SimpleQuadrilateral1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, SimpleQuadrilateral1BoxedList>, MapSchemaValidator, SimpleQuadrilateral1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SomeObject.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SomeObject.java index 712b449778c..4e0a9043d28 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SomeObject.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SomeObject.java @@ -82,7 +82,7 @@ public record SomeObject1BoxedMap(FrozenMap<@Nullable Object> data) implements S } - public static class SomeObject1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, SomeObject1BoxedList>, MapSchemaValidator, SomeObject1BoxedMap> { + public static class SomeObject1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, SomeObject1BoxedList>, MapSchemaValidator, SomeObject1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SpecialModelname.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SpecialModelname.java index 857c089c4a0..4034a0b97e1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SpecialModelname.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SpecialModelname.java @@ -118,7 +118,7 @@ public record SpecialModelname1BoxedMap(SpecialModelnameMap data) implements Spe } - public static class SpecialModelname1 extends JsonSchema implements MapSchemaValidator { + public static class SpecialModelname1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringBooleanMap.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringBooleanMap.java index 0dac4311f01..f8fc1ea7641 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringBooleanMap.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringBooleanMap.java @@ -105,7 +105,7 @@ public record StringBooleanMap1BoxedMap(StringBooleanMapMap data) implements Str } - public static class StringBooleanMap1 extends JsonSchema implements MapSchemaValidator { + public static class StringBooleanMap1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringEnum.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringEnum.java index 421d6767dce..2be475bc0f4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringEnum.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringEnum.java @@ -75,7 +75,7 @@ public record StringEnum1BoxedString(String data) implements StringEnum1Boxed { - public static class StringEnum1 extends JsonSchema implements NullEnumValidator, StringEnumValidator, NullSchemaValidator, StringSchemaValidator { + public static class StringEnum1 extends JsonSchema implements NullEnumValidator, StringEnumValidator, NullSchemaValidator, StringSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringEnumWithDefaultValue.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringEnumWithDefaultValue.java index d02d1402794..c0db69e11cd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringEnumWithDefaultValue.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringEnumWithDefaultValue.java @@ -50,7 +50,7 @@ public record StringEnumWithDefaultValue1BoxedString(String data) implements Str - public static class StringEnumWithDefaultValue1 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + public static class StringEnumWithDefaultValue1 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringWithValidation.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringWithValidation.java index e009c581798..d2d50e28628 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringWithValidation.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringWithValidation.java @@ -32,7 +32,7 @@ public record StringWithValidation1BoxedString(String data) implements StringWit - public static class StringWithValidation1 extends JsonSchema implements StringSchemaValidator { + public static class StringWithValidation1 extends JsonSchema implements StringSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Tag.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Tag.java index ecbc3f8a340..66dfdc271ab 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Tag.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Tag.java @@ -174,7 +174,7 @@ public record Tag1BoxedMap(TagMap data) implements Tag1Boxed { } - public static class Tag1 extends JsonSchema implements MapSchemaValidator { + public static class Tag1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Triangle.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Triangle.java index a73f3c44e1c..33d35b49bb5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Triangle.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Triangle.java @@ -82,7 +82,7 @@ public record Triangle1BoxedMap(FrozenMap<@Nullable Object> data) implements Tri } - public static class Triangle1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Triangle1BoxedList>, MapSchemaValidator, Triangle1BoxedMap> { + public static class Triangle1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Triangle1BoxedList>, MapSchemaValidator, Triangle1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/TriangleInterface.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/TriangleInterface.java index f54ff53ec08..7ac12b0a168 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/TriangleInterface.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/TriangleInterface.java @@ -66,7 +66,7 @@ public record ShapeTypeBoxedString(String data) implements ShapeTypeBoxed { - public static class ShapeType extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class ShapeType extends JsonSchema implements StringSchemaValidator, StringEnumValidator { private static @Nullable ShapeType instance = null; protected ShapeType() { @@ -311,7 +311,7 @@ public record TriangleInterface1BoxedMap(TriangleInterfaceMap data) implements T } - public static class TriangleInterface1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, TriangleInterface1BoxedList>, MapSchemaValidator { + public static class TriangleInterface1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, TriangleInterface1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/UUIDString.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/UUIDString.java index e33fdee647b..1b7585a4d25 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/UUIDString.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/UUIDString.java @@ -33,7 +33,7 @@ public record UUIDString1BoxedString(String data) implements UUIDString1Boxed { - public static class UUIDString1 extends JsonSchema implements StringSchemaValidator { + public static class UUIDString1 extends JsonSchema implements StringSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/User.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/User.java index 8ea592e934d..e557bebb9e2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/User.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/User.java @@ -161,7 +161,7 @@ public record ObjectWithNoDeclaredPropsNullableBoxedMap(FrozenMap<@Nullable Obje } - public static class ObjectWithNoDeclaredPropsNullable extends JsonSchema implements NullSchemaValidator, MapSchemaValidator, ObjectWithNoDeclaredPropsNullableBoxedMap> { + public static class ObjectWithNoDeclaredPropsNullable extends JsonSchema implements NullSchemaValidator, MapSchemaValidator, ObjectWithNoDeclaredPropsNullableBoxedMap> { private static @Nullable ObjectWithNoDeclaredPropsNullable instance = null; protected ObjectWithNoDeclaredPropsNullable() { @@ -332,7 +332,7 @@ public record AnyTypeExceptNullPropBoxedMap(FrozenMap<@Nullable Object> data) im } - public static class AnyTypeExceptNullProp extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AnyTypeExceptNullPropBoxedList>, MapSchemaValidator, AnyTypeExceptNullPropBoxedMap> { + public static class AnyTypeExceptNullProp extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AnyTypeExceptNullPropBoxedList>, MapSchemaValidator, AnyTypeExceptNullPropBoxedMap> { private static @Nullable AnyTypeExceptNullProp instance = null; protected AnyTypeExceptNullProp() { @@ -1127,7 +1127,7 @@ public record User1BoxedMap(UserMap data) implements User1Boxed { } - public static class User1 extends JsonSchema implements MapSchemaValidator { + public static class User1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Whale.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Whale.java index 89ec26b6556..f39b89908e4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Whale.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Whale.java @@ -80,7 +80,7 @@ public record ClassNameBoxedString(String data) implements ClassNameBoxed { - public static class ClassName extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class ClassName extends JsonSchema implements StringSchemaValidator, StringEnumValidator { private static @Nullable ClassName instance = null; protected ClassName() { @@ -282,7 +282,7 @@ public record Whale1BoxedMap(WhaleMap data) implements Whale1Boxed { } - public static class Whale1 extends JsonSchema implements MapSchemaValidator { + public static class Whale1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Zebra.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Zebra.java index 077501bfd68..1dc0d43a493 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Zebra.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Zebra.java @@ -71,7 +71,7 @@ public record TypeBoxedString(String data) implements TypeBoxed { - public static class Type extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class Type extends JsonSchema implements StringSchemaValidator, StringEnumValidator { private static @Nullable Type instance = null; protected Type() { @@ -155,7 +155,7 @@ public record ClassNameBoxedString(String data) implements ClassNameBoxed { - public static class ClassName extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class ClassName extends JsonSchema implements StringSchemaValidator, StringEnumValidator { private static @Nullable ClassName instance = null; protected ClassName() { @@ -405,7 +405,7 @@ public record Zebra1BoxedMap(ZebraMap data) implements Zebra1Boxed { } - public static class Zebra1 extends JsonSchema implements MapSchemaValidator { + public static class Zebra1 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/HeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/HeaderParameters.java index f534ffafd2e..f7550c05b31 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/HeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/HeaderParameters.java @@ -105,7 +105,7 @@ public record HeaderParameters1BoxedMap(HeaderParametersMap data) implements Hea } - public static class HeaderParameters1 extends JsonSchema implements MapSchemaValidator { + public static class HeaderParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable HeaderParameters1 instance = null; protected HeaderParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/PathParameters.java index 72e91298197..9f09ff30d0c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/PathParameters.java @@ -118,7 +118,7 @@ public record PathParameters1BoxedMap(PathParametersMap data) implements PathPar } - public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable PathParameters1 instance = null; protected PathParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.java index 663db88fd49..cd82681419e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.java @@ -48,7 +48,7 @@ public record Schema11BoxedString(String data) implements Schema11Boxed { - public static class Schema11 extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class Schema11 extends JsonSchema implements StringSchemaValidator, StringEnumValidator { private static @Nullable Schema11 instance = null; protected Schema11() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/PathParameters.java index 4401a26e63e..f5a13e1dc6f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/PathParameters.java @@ -118,7 +118,7 @@ public record PathParameters1BoxedMap(PathParametersMap data) implements PathPar } - public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable PathParameters1 instance = null; protected PathParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/QueryParameters.java index 2a7425dc66e..faa969b33ae 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/QueryParameters.java @@ -105,7 +105,7 @@ public record QueryParameters1BoxedMap(QueryParametersMap data) implements Query } - public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable QueryParameters1 instance = null; protected QueryParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.java index a6ab29bd379..811ae6fb709 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.java @@ -48,7 +48,7 @@ public record PathParamSchema01BoxedString(String data) implements PathParamSche - public static class PathParamSchema01 extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class PathParamSchema01 extends JsonSchema implements StringSchemaValidator, StringEnumValidator { private static @Nullable PathParamSchema01 instance = null; protected PathParamSchema01() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/HeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/HeaderParameters.java index eb2e3565bc5..30d3a935480 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/HeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/HeaderParameters.java @@ -105,7 +105,7 @@ public record HeaderParameters1BoxedMap(HeaderParametersMap data) implements Hea } - public static class HeaderParameters1 extends JsonSchema implements MapSchemaValidator { + public static class HeaderParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable HeaderParameters1 instance = null; protected HeaderParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/PathParameters.java index bff9621aac5..91ffc1a894d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/PathParameters.java @@ -118,7 +118,7 @@ public record PathParameters1BoxedMap(PathParametersMap data) implements PathPar } - public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable PathParameters1 instance = null; protected PathParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/HeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/HeaderParameters.java index 7a06c7bc8f6..271be7caa4a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/HeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/HeaderParameters.java @@ -159,7 +159,7 @@ public record HeaderParameters1BoxedMap(HeaderParametersMap data) implements Hea } - public static class HeaderParameters1 extends JsonSchema implements MapSchemaValidator { + public static class HeaderParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable HeaderParameters1 instance = null; protected HeaderParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/QueryParameters.java index 6214bd65520..94757a95468 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/QueryParameters.java @@ -261,7 +261,7 @@ public record QueryParameters1BoxedMap(QueryParametersMap data) implements Query } - public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable QueryParameters1 instance = null; protected QueryParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter1/Schema1.java index 5b9796b6223..98fb519d5df 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter1/Schema1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter1/Schema1.java @@ -48,7 +48,7 @@ public record Schema11BoxedString(String data) implements Schema11Boxed { - public static class Schema11 extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class Schema11 extends JsonSchema implements StringSchemaValidator, StringEnumValidator { private static @Nullable Schema11 instance = null; protected Schema11() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter4/Schema4.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter4/Schema4.java index fecde3efe8d..73619d7e805 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter4/Schema4.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter4/Schema4.java @@ -48,7 +48,7 @@ public record Schema41BoxedString(String data) implements Schema41Boxed { - public static class Schema41 extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class Schema41 extends JsonSchema implements StringSchemaValidator, StringEnumValidator { private static @Nullable Schema41 instance = null; protected Schema41() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/HeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/HeaderParameters.java index 50c36a8511b..c5b02cd231a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/HeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/HeaderParameters.java @@ -144,7 +144,7 @@ public record HeaderParameters1BoxedMap(HeaderParametersMap data) implements Hea } - public static class HeaderParameters1 extends JsonSchema implements MapSchemaValidator { + public static class HeaderParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable HeaderParameters1 instance = null; protected HeaderParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/QueryParameters.java index c569173114c..fbfdabb609a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/QueryParameters.java @@ -258,7 +258,7 @@ public record QueryParameters1BoxedMap(QueryParametersMap data) implements Query } - public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable QueryParameters1 instance = null; protected QueryParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter0/Schema0.java index 23d09d0283b..a391636ce60 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter0/Schema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter0/Schema0.java @@ -53,7 +53,7 @@ public record Items0BoxedString(String data) implements Items0Boxed { - public static class Items0 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + public static class Items0 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { private static @Nullable Items0 instance = null; protected Items0() { @@ -168,7 +168,7 @@ public record Schema01BoxedList(SchemaList0 data) implements Schema01Boxed { - public static class Schema01 extends JsonSchema implements ListSchemaValidator { + public static class Schema01 extends JsonSchema implements ListSchemaValidator { private static @Nullable Schema01 instance = null; protected Schema01() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter1/Schema1.java index 1c7146cbe1f..e7ace986adc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter1/Schema1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter1/Schema1.java @@ -50,7 +50,7 @@ public record Schema11BoxedString(String data) implements Schema11Boxed { - public static class Schema11 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + public static class Schema11 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { private static @Nullable Schema11 instance = null; protected Schema11() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter2/Schema2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter2/Schema2.java index 0f0217cbc8b..73048bf3a86 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter2/Schema2.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter2/Schema2.java @@ -53,7 +53,7 @@ public record Items2BoxedString(String data) implements Items2Boxed { - public static class Items2 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + public static class Items2 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { private static @Nullable Items2 instance = null; protected Items2() { @@ -168,7 +168,7 @@ public record Schema21BoxedList(SchemaList2 data) implements Schema21Boxed { - public static class Schema21 extends JsonSchema implements ListSchemaValidator { + public static class Schema21 extends JsonSchema implements ListSchemaValidator { private static @Nullable Schema21 instance = null; protected Schema21() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter3/Schema3.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter3/Schema3.java index 220702b867a..2e4e5c53fc2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter3/Schema3.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter3/Schema3.java @@ -50,7 +50,7 @@ public record Schema31BoxedString(String data) implements Schema31Boxed { - public static class Schema31 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + public static class Schema31 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { private static @Nullable Schema31 instance = null; protected Schema31() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter4/Schema4.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter4/Schema4.java index 080d1a97005..b9ffefc15db 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter4/Schema4.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter4/Schema4.java @@ -94,7 +94,7 @@ public record Schema41BoxedNumber(Number data) implements Schema41Boxed { - public static class Schema41 extends JsonSchema implements IntegerEnumValidator, LongEnumValidator, FloatEnumValidator, DoubleEnumValidator, NumberSchemaValidator { + public static class Schema41 extends JsonSchema implements IntegerEnumValidator, LongEnumValidator, FloatEnumValidator, DoubleEnumValidator, NumberSchemaValidator { private static @Nullable Schema41 instance = null; protected Schema41() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter5/Schema5.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter5/Schema5.java index 664bf3b7db2..30ca7130b1a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter5/Schema5.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter5/Schema5.java @@ -64,7 +64,7 @@ public record Schema51BoxedNumber(Number data) implements Schema51Boxed { - public static class Schema51 extends JsonSchema implements FloatEnumValidator, DoubleEnumValidator, NumberSchemaValidator { + public static class Schema51 extends JsonSchema implements FloatEnumValidator, DoubleEnumValidator, NumberSchemaValidator { private static @Nullable Schema51 instance = null; protected Schema51() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java index caa33910743..859281d7f7e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java @@ -61,7 +61,7 @@ public record ApplicationxwwwformurlencodedItemsBoxedString(String data) impleme - public static class ApplicationxwwwformurlencodedItems extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + public static class ApplicationxwwwformurlencodedItems extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { private static @Nullable ApplicationxwwwformurlencodedItems instance = null; protected ApplicationxwwwformurlencodedItems() { @@ -176,7 +176,7 @@ public record ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList(Applicat - public static class ApplicationxwwwformurlencodedEnumFormStringArray extends JsonSchema implements ListSchemaValidator { + public static class ApplicationxwwwformurlencodedEnumFormStringArray extends JsonSchema implements ListSchemaValidator { private static @Nullable ApplicationxwwwformurlencodedEnumFormStringArray instance = null; protected ApplicationxwwwformurlencodedEnumFormStringArray() { @@ -273,7 +273,7 @@ public record ApplicationxwwwformurlencodedEnumFormStringBoxedString(String data - public static class ApplicationxwwwformurlencodedEnumFormString extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + public static class ApplicationxwwwformurlencodedEnumFormString extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { private static @Nullable ApplicationxwwwformurlencodedEnumFormString instance = null; protected ApplicationxwwwformurlencodedEnumFormString() { @@ -449,7 +449,7 @@ public record ApplicationxwwwformurlencodedSchema1BoxedMap(Applicationxwwwformur } - public static class ApplicationxwwwformurlencodedSchema1 extends JsonSchema implements MapSchemaValidator { + public static class ApplicationxwwwformurlencodedSchema1 extends JsonSchema implements MapSchemaValidator { private static @Nullable ApplicationxwwwformurlencodedSchema1 instance = null; protected ApplicationxwwwformurlencodedSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java index 32d0ace5f94..9d5a9ca8517 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java @@ -49,7 +49,7 @@ public record ApplicationxwwwformurlencodedIntegerBoxedNumber(Number data) imple - public static class ApplicationxwwwformurlencodedInteger extends JsonSchema implements NumberSchemaValidator { + public static class ApplicationxwwwformurlencodedInteger extends JsonSchema implements NumberSchemaValidator { private static @Nullable ApplicationxwwwformurlencodedInteger instance = null; protected ApplicationxwwwformurlencodedInteger() { @@ -133,7 +133,7 @@ public record ApplicationxwwwformurlencodedInt32BoxedNumber(Number data) impleme - public static class ApplicationxwwwformurlencodedInt32 extends JsonSchema implements NumberSchemaValidator { + public static class ApplicationxwwwformurlencodedInt32 extends JsonSchema implements NumberSchemaValidator { private static @Nullable ApplicationxwwwformurlencodedInt32 instance = null; protected ApplicationxwwwformurlencodedInt32() { @@ -220,7 +220,7 @@ public record ApplicationxwwwformurlencodedNumberBoxedNumber(Number data) implem - public static class ApplicationxwwwformurlencodedNumber extends JsonSchema implements NumberSchemaValidator { + public static class ApplicationxwwwformurlencodedNumber extends JsonSchema implements NumberSchemaValidator { private static @Nullable ApplicationxwwwformurlencodedNumber instance = null; protected ApplicationxwwwformurlencodedNumber() { @@ -303,7 +303,7 @@ public record ApplicationxwwwformurlencodedFloatBoxedNumber(Number data) impleme - public static class ApplicationxwwwformurlencodedFloat extends JsonSchema implements NumberSchemaValidator { + public static class ApplicationxwwwformurlencodedFloat extends JsonSchema implements NumberSchemaValidator { private static @Nullable ApplicationxwwwformurlencodedFloat instance = null; protected ApplicationxwwwformurlencodedFloat() { @@ -373,7 +373,7 @@ public record ApplicationxwwwformurlencodedDoubleBoxedNumber(Number data) implem - public static class ApplicationxwwwformurlencodedDouble extends JsonSchema implements NumberSchemaValidator { + public static class ApplicationxwwwformurlencodedDouble extends JsonSchema implements NumberSchemaValidator { private static @Nullable ApplicationxwwwformurlencodedDouble instance = null; protected ApplicationxwwwformurlencodedDouble() { @@ -444,7 +444,7 @@ public record ApplicationxwwwformurlencodedStringBoxedString(String data) implem - public static class ApplicationxwwwformurlencodedString extends JsonSchema implements StringSchemaValidator { + public static class ApplicationxwwwformurlencodedString extends JsonSchema implements StringSchemaValidator { private static @Nullable ApplicationxwwwformurlencodedString instance = null; protected ApplicationxwwwformurlencodedString() { @@ -510,7 +510,7 @@ public record ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString(St - public static class ApplicationxwwwformurlencodedPatternWithoutDelimiter extends JsonSchema implements StringSchemaValidator { + public static class ApplicationxwwwformurlencodedPatternWithoutDelimiter extends JsonSchema implements StringSchemaValidator { private static @Nullable ApplicationxwwwformurlencodedPatternWithoutDelimiter instance = null; protected ApplicationxwwwformurlencodedPatternWithoutDelimiter() { @@ -609,7 +609,7 @@ public record ApplicationxwwwformurlencodedDateTimeBoxedString(String data) impl - public static class ApplicationxwwwformurlencodedDateTime extends JsonSchema implements StringSchemaValidator, DefaultValueMethod { + public static class ApplicationxwwwformurlencodedDateTime extends JsonSchema implements StringSchemaValidator, DefaultValueMethod { private static @Nullable ApplicationxwwwformurlencodedDateTime instance = null; protected ApplicationxwwwformurlencodedDateTime() { @@ -679,7 +679,7 @@ public record ApplicationxwwwformurlencodedPasswordBoxedString(String data) impl - public static class ApplicationxwwwformurlencodedPassword extends JsonSchema implements StringSchemaValidator { + public static class ApplicationxwwwformurlencodedPassword extends JsonSchema implements StringSchemaValidator { private static @Nullable ApplicationxwwwformurlencodedPassword instance = null; protected ApplicationxwwwformurlencodedPassword() { @@ -1427,7 +1427,7 @@ public record ApplicationxwwwformurlencodedSchema1BoxedMap(Applicationxwwwformur } - public static class ApplicationxwwwformurlencodedSchema1 extends JsonSchema implements MapSchemaValidator { + public static class ApplicationxwwwformurlencodedSchema1 extends JsonSchema implements MapSchemaValidator { private static @Nullable ApplicationxwwwformurlencodedSchema1 instance = null; protected ApplicationxwwwformurlencodedSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/QueryParameters.java index 4623bb91635..1cbe6427469 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/QueryParameters.java @@ -112,7 +112,7 @@ public record QueryParameters1BoxedMap(QueryParametersMap data) implements Query } - public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable QueryParameters1 instance = null; protected QueryParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/QueryParameters.java index 9458c39e664..fccf968d375 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/QueryParameters.java @@ -253,7 +253,7 @@ public record QueryParameters1BoxedMap(QueryParametersMap data) implements Query } - public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable QueryParameters1 instance = null; protected QueryParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/PathParameters.java index c2342c8b2bd..b9f02433644 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/PathParameters.java @@ -112,7 +112,7 @@ public record PathParameters1BoxedMap(PathParametersMap data) implements PathPar } - public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable PathParameters1 instance = null; protected PathParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java index 8f87100eb88..a3cad293856 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java @@ -100,7 +100,7 @@ public record ApplicationjsonSchema1BoxedMap(ApplicationjsonSchemaMap data) impl } - public static class ApplicationjsonSchema1 extends JsonSchema implements MapSchemaValidator { + public static class ApplicationjsonSchema1 extends JsonSchema implements MapSchemaValidator { private static @Nullable ApplicationjsonSchema1 instance = null; protected ApplicationjsonSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/QueryParameters.java index 535954f4085..86fb2036f31 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/QueryParameters.java @@ -186,7 +186,7 @@ public record QueryParameters1BoxedMap(QueryParametersMap data) implements Query } - public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable QueryParameters1 instance = null; protected QueryParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.java index fcaf6a8817d..fd6188828da 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.java @@ -48,7 +48,7 @@ public record Schema00BoxedString(String data) implements Schema00Boxed { - public static class Schema00 extends JsonSchema implements StringSchemaValidator { + public static class Schema00 extends JsonSchema implements StringSchemaValidator { private static @Nullable Schema00 instance = null; protected Schema00() { @@ -145,7 +145,7 @@ public record Schema01BoxedMap(FrozenMap<@Nullable Object> data) implements Sche } - public static class Schema01 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema01BoxedList>, MapSchemaValidator, Schema01BoxedMap> { + public static class Schema01 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema01BoxedList>, MapSchemaValidator, Schema01BoxedMap> { private static @Nullable Schema01 instance = null; protected Schema01() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java index 64b010cc2e5..f3246b5724a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java @@ -50,7 +50,7 @@ public record Schema01BoxedString(String data) implements Schema01Boxed { - public static class Schema01 extends JsonSchema implements StringSchemaValidator { + public static class Schema01 extends JsonSchema implements StringSchemaValidator { private static @Nullable Schema01 instance = null; protected Schema01() { @@ -147,7 +147,7 @@ public record SomeProp1BoxedMap(FrozenMap<@Nullable Object> data) implements Som } - public static class SomeProp1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, SomeProp1BoxedList>, MapSchemaValidator, SomeProp1BoxedMap> { + public static class SomeProp1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, SomeProp1BoxedList>, MapSchemaValidator, SomeProp1BoxedMap> { private static @Nullable SomeProp1 instance = null; protected SomeProp1() { @@ -507,7 +507,7 @@ public record Schema11BoxedMap(SchemaMap1 data) implements Schema11Boxed { } - public static class Schema11 extends JsonSchema implements MapSchemaValidator { + public static class Schema11 extends JsonSchema implements MapSchemaValidator { private static @Nullable Schema11 instance = null; protected Schema11() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.java index d7136c1c978..8e212b7f0c1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.java @@ -48,7 +48,7 @@ public record Applicationjson0BoxedString(String data) implements Applicationjso - public static class Applicationjson0 extends JsonSchema implements StringSchemaValidator { + public static class Applicationjson0 extends JsonSchema implements StringSchemaValidator { private static @Nullable Applicationjson0 instance = null; protected Applicationjson0() { @@ -145,7 +145,7 @@ public record ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) i } - public static class ApplicationjsonSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ApplicationjsonSchema1BoxedList>, MapSchemaValidator, ApplicationjsonSchema1BoxedMap> { + public static class ApplicationjsonSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ApplicationjsonSchema1BoxedList>, MapSchemaValidator, ApplicationjsonSchema1BoxedMap> { private static @Nullable ApplicationjsonSchema1 instance = null; protected ApplicationjsonSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java index dcde35a01e7..7f83c94f025 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -50,7 +50,7 @@ public record Multipartformdata0BoxedString(String data) implements Multipartfor - public static class Multipartformdata0 extends JsonSchema implements StringSchemaValidator { + public static class Multipartformdata0 extends JsonSchema implements StringSchemaValidator { private static @Nullable Multipartformdata0 instance = null; protected Multipartformdata0() { @@ -147,7 +147,7 @@ public record MultipartformdataSomePropBoxedMap(FrozenMap<@Nullable Object> data } - public static class MultipartformdataSomeProp extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MultipartformdataSomePropBoxedList>, MapSchemaValidator, MultipartformdataSomePropBoxedMap> { + public static class MultipartformdataSomeProp extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MultipartformdataSomePropBoxedList>, MapSchemaValidator, MultipartformdataSomePropBoxedMap> { private static @Nullable MultipartformdataSomeProp instance = null; protected MultipartformdataSomeProp() { @@ -507,7 +507,7 @@ public record MultipartformdataSchema1BoxedMap(MultipartformdataSchemaMap data) } - public static class MultipartformdataSchema1 extends JsonSchema implements MapSchemaValidator { + public static class MultipartformdataSchema1 extends JsonSchema implements MapSchemaValidator { private static @Nullable MultipartformdataSchema1 instance = null; protected MultipartformdataSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java index beb2cb68d87..220ba3893a3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -48,7 +48,7 @@ public record Applicationjson0BoxedString(String data) implements Applicationjso - public static class Applicationjson0 extends JsonSchema implements StringSchemaValidator { + public static class Applicationjson0 extends JsonSchema implements StringSchemaValidator { private static @Nullable Applicationjson0 instance = null; protected Applicationjson0() { @@ -145,7 +145,7 @@ public record ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) i } - public static class ApplicationjsonSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ApplicationjsonSchema1BoxedList>, MapSchemaValidator, ApplicationjsonSchema1BoxedMap> { + public static class ApplicationjsonSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ApplicationjsonSchema1BoxedList>, MapSchemaValidator, ApplicationjsonSchema1BoxedMap> { private static @Nullable ApplicationjsonSchema1 instance = null; protected ApplicationjsonSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.java index 7ca4a4a3e61..aba4ece9243 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.java @@ -50,7 +50,7 @@ public record Multipartformdata0BoxedString(String data) implements Multipartfor - public static class Multipartformdata0 extends JsonSchema implements StringSchemaValidator { + public static class Multipartformdata0 extends JsonSchema implements StringSchemaValidator { private static @Nullable Multipartformdata0 instance = null; protected Multipartformdata0() { @@ -147,7 +147,7 @@ public record MultipartformdataSomePropBoxedMap(FrozenMap<@Nullable Object> data } - public static class MultipartformdataSomeProp extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MultipartformdataSomePropBoxedList>, MapSchemaValidator, MultipartformdataSomePropBoxedMap> { + public static class MultipartformdataSomeProp extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MultipartformdataSomePropBoxedList>, MapSchemaValidator, MultipartformdataSomePropBoxedMap> { private static @Nullable MultipartformdataSomeProp instance = null; protected MultipartformdataSomeProp() { @@ -507,7 +507,7 @@ public record MultipartformdataSchema1BoxedMap(MultipartformdataSchemaMap data) } - public static class MultipartformdataSchema1 extends JsonSchema implements MapSchemaValidator { + public static class MultipartformdataSchema1 extends JsonSchema implements MapSchemaValidator { private static @Nullable MultipartformdataSchema1 instance = null; protected MultipartformdataSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java index 48139e5dc21..b7c55e7c11f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java @@ -187,7 +187,7 @@ public record ApplicationxwwwformurlencodedSchema1BoxedMap(Applicationxwwwformur } - public static class ApplicationxwwwformurlencodedSchema1 extends JsonSchema implements MapSchemaValidator { + public static class ApplicationxwwwformurlencodedSchema1 extends JsonSchema implements MapSchemaValidator { private static @Nullable ApplicationxwwwformurlencodedSchema1 instance = null; protected ApplicationxwwwformurlencodedSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.java index 981022e4310..0ec60b5540b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.java @@ -118,7 +118,7 @@ public record ApplicationjsonSchema1BoxedMap(ApplicationjsonSchemaMap data) impl } - public static class ApplicationjsonSchema1 extends JsonSchema implements MapSchemaValidator { + public static class ApplicationjsonSchema1 extends JsonSchema implements MapSchemaValidator { private static @Nullable ApplicationjsonSchema1 instance = null; protected ApplicationjsonSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.java index 7e804195fee..4072be30824 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -118,7 +118,7 @@ public record MultipartformdataSchema1BoxedMap(MultipartformdataSchemaMap data) } - public static class MultipartformdataSchema1 extends JsonSchema implements MapSchemaValidator { + public static class MultipartformdataSchema1 extends JsonSchema implements MapSchemaValidator { private static @Nullable MultipartformdataSchema1 instance = null; protected MultipartformdataSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/QueryParameters.java index 4b8dfedd582..d27a5760d0a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/QueryParameters.java @@ -105,7 +105,7 @@ public record QueryParameters1BoxedMap(QueryParametersMap data) implements Query } - public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable QueryParameters1 instance = null; protected QueryParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/parameter0/Schema0.java index d898431c152..9924d9435e5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/parameter0/Schema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/parameter0/Schema0.java @@ -118,7 +118,7 @@ public record Schema01BoxedMap(SchemaMap0 data) implements Schema01Boxed { } - public static class Schema01 extends JsonSchema implements MapSchemaValidator { + public static class Schema01 extends JsonSchema implements MapSchemaValidator { private static @Nullable Schema01 instance = null; protected Schema01() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/CookieParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/CookieParameters.java index f8082ca0dd3..d3ac7bbb603 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/CookieParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/CookieParameters.java @@ -199,7 +199,7 @@ public record CookieParameters1BoxedMap(CookieParametersMap data) implements Coo } - public static class CookieParameters1 extends JsonSchema implements MapSchemaValidator { + public static class CookieParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable CookieParameters1 instance = null; protected CookieParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/HeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/HeaderParameters.java index ac745c0c528..9c0bf861e55 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/HeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/HeaderParameters.java @@ -172,7 +172,7 @@ public record HeaderParameters1BoxedMap(HeaderParametersMap data) implements Hea } - public static class HeaderParameters1 extends JsonSchema implements MapSchemaValidator { + public static class HeaderParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable HeaderParameters1 instance = null; protected HeaderParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/PathParameters.java index 84e4f2a5010..bb4fe0ab198 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/PathParameters.java @@ -725,7 +725,7 @@ public record PathParameters1BoxedMap(PathParametersMap data) implements PathPar } - public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable PathParameters1 instance = null; protected PathParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/QueryParameters.java index 9dad83087b9..2aedf118e66 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/QueryParameters.java @@ -199,7 +199,7 @@ public record QueryParameters1BoxedMap(QueryParametersMap data) implements Query } - public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable QueryParameters1 instance = null; protected QueryParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.java index e0e8694da18..70e9a94e065 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.java @@ -130,7 +130,7 @@ public record PathParameters1BoxedMap(PathParametersMap data) implements PathPar } - public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable PathParameters1 instance = null; protected PathParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java index 8609af7bb98..5e1e51c2941 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -165,7 +165,7 @@ public record MultipartformdataSchema1BoxedMap(MultipartformdataSchemaMap data) } - public static class MultipartformdataSchema1 extends JsonSchema implements MapSchemaValidator { + public static class MultipartformdataSchema1 extends JsonSchema implements MapSchemaValidator { private static @Nullable MultipartformdataSchema1 instance = null; protected MultipartformdataSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.java index dc8c359c18e..ce6e0c060b5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.java @@ -160,7 +160,7 @@ public record QueryParameters1BoxedMap(QueryParametersMap data) implements Query } - public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable QueryParameters1 instance = null; protected QueryParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/QueryParameters.java index 3413532bdac..ad5b56e6ca9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/QueryParameters.java @@ -105,7 +105,7 @@ public record QueryParameters1BoxedMap(QueryParametersMap data) implements Query } - public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable QueryParameters1 instance = null; protected QueryParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/QueryParameters.java index 281f8315879..07ccfdd4448 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/QueryParameters.java @@ -1419,7 +1419,7 @@ public record QueryParameters1BoxedMap(QueryParametersMap data) implements Query } - public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable QueryParameters1 instance = null; protected QueryParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.java index eb7e8a5de61..de352321486 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.java @@ -79,7 +79,7 @@ public record Schema01BoxedList(SchemaList0 data) implements Schema01Boxed { - public static class Schema01 extends JsonSchema implements ListSchemaValidator { + public static class Schema01 extends JsonSchema implements ListSchemaValidator { private static @Nullable Schema01 instance = null; protected Schema01() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.java index 043462a5e1f..286caa25cbd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.java @@ -79,7 +79,7 @@ public record Schema11BoxedList(SchemaList1 data) implements Schema11Boxed { - public static class Schema11 extends JsonSchema implements ListSchemaValidator { + public static class Schema11 extends JsonSchema implements ListSchemaValidator { private static @Nullable Schema11 instance = null; protected Schema11() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.java index 061bd11e80e..feec8b007b7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.java @@ -79,7 +79,7 @@ public record Schema21BoxedList(SchemaList2 data) implements Schema21Boxed { - public static class Schema21 extends JsonSchema implements ListSchemaValidator { + public static class Schema21 extends JsonSchema implements ListSchemaValidator { private static @Nullable Schema21 instance = null; protected Schema21() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.java index 04acb3dcd31..3f62a62556e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.java @@ -79,7 +79,7 @@ public record Schema31BoxedList(SchemaList3 data) implements Schema31Boxed { - public static class Schema31 extends JsonSchema implements ListSchemaValidator { + public static class Schema31 extends JsonSchema implements ListSchemaValidator { private static @Nullable Schema31 instance = null; protected Schema31() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.java index 93f2dc3cfa8..3903bdaafc0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.java @@ -79,7 +79,7 @@ public record Schema41BoxedList(SchemaList4 data) implements Schema41Boxed { - public static class Schema41 extends JsonSchema implements ListSchemaValidator { + public static class Schema41 extends JsonSchema implements ListSchemaValidator { private static @Nullable Schema41 instance = null; protected Schema41() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java index 190ff1368be..ed0d6b2d8b2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -165,7 +165,7 @@ public record MultipartformdataSchema1BoxedMap(MultipartformdataSchemaMap data) } - public static class MultipartformdataSchema1 extends JsonSchema implements MapSchemaValidator { + public static class MultipartformdataSchema1 extends JsonSchema implements MapSchemaValidator { private static @Nullable MultipartformdataSchema1 instance = null; protected MultipartformdataSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java index 5f305f3e814..a28954a3a9d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -88,7 +88,7 @@ public record MultipartformdataFilesBoxedList(MultipartformdataFilesList data) i - public static class MultipartformdataFiles extends JsonSchema implements ListSchemaValidator { + public static class MultipartformdataFiles extends JsonSchema implements ListSchemaValidator { private static @Nullable MultipartformdataFiles instance = null; protected MultipartformdataFiles() { @@ -236,7 +236,7 @@ public record MultipartformdataSchema1BoxedMap(MultipartformdataSchemaMap data) } - public static class MultipartformdataSchema1 extends JsonSchema implements MapSchemaValidator { + public static class MultipartformdataSchema1 extends JsonSchema implements MapSchemaValidator { private static @Nullable MultipartformdataSchema1 instance = null; protected MultipartformdataSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.java index cefb5c067ce..c4c69019b13 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.java @@ -97,7 +97,7 @@ public record ApplicationjsonSchema1BoxedMap(ApplicationjsonSchemaMap data) impl } - public static class ApplicationjsonSchema1 extends JsonSchema implements MapSchemaValidator { + public static class ApplicationjsonSchema1 extends JsonSchema implements MapSchemaValidator { private static @Nullable ApplicationjsonSchema1 instance = null; protected ApplicationjsonSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/Variables.java index f8e003b2e87..314bd147ba7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/Variables.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/Variables.java @@ -72,7 +72,7 @@ public record VersionBoxedString(String data) implements VersionBoxed { - public static class Version extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + public static class Version extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { private static @Nullable Version instance = null; protected Version() { @@ -213,7 +213,7 @@ public record Variables1BoxedMap(VariablesMap data) implements Variables1Boxed { } - public static class Variables1 extends JsonSchema implements MapSchemaValidator { + public static class Variables1 extends JsonSchema implements MapSchemaValidator { private static @Nullable Variables1 instance = null; protected Variables1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/QueryParameters.java index b9a6a81f75a..a8ce53e2377 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/QueryParameters.java @@ -113,7 +113,7 @@ public record QueryParameters1BoxedMap(QueryParametersMap data) implements Query } - public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable QueryParameters1 instance = null; protected QueryParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/parameter0/Schema0.java index 2276300f19c..bf15bf166a0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/parameter0/Schema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/parameter0/Schema0.java @@ -54,7 +54,7 @@ public record Items0BoxedString(String data) implements Items0Boxed { - public static class Items0 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + public static class Items0 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { private static @Nullable Items0 instance = null; protected Items0() { @@ -170,7 +170,7 @@ public record Schema01BoxedList(SchemaList0 data) implements Schema01Boxed { - public static class Schema01 extends JsonSchema implements ListSchemaValidator { + public static class Schema01 extends JsonSchema implements ListSchemaValidator { private static @Nullable Schema01 instance = null; protected Schema01() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.java index 139729730ab..440803fd5f7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.java @@ -72,7 +72,7 @@ public record VersionBoxedString(String data) implements VersionBoxed { - public static class Version extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + public static class Version extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { private static @Nullable Version instance = null; protected Version() { @@ -213,7 +213,7 @@ public record Variables1BoxedMap(VariablesMap data) implements Variables1Boxed { } - public static class Variables1 extends JsonSchema implements MapSchemaValidator { + public static class Variables1 extends JsonSchema implements MapSchemaValidator { private static @Nullable Variables1 instance = null; protected Variables1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/QueryParameters.java index ec12ead3d02..273206e53d4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/QueryParameters.java @@ -113,7 +113,7 @@ public record QueryParameters1BoxedMap(QueryParametersMap data) implements Query } - public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable QueryParameters1 instance = null; protected QueryParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/parameter0/Schema0.java index 344b768315a..4c82a96d893 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/parameter0/Schema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/parameter0/Schema0.java @@ -79,7 +79,7 @@ public record Schema01BoxedList(SchemaList0 data) implements Schema01Boxed { - public static class Schema01 extends JsonSchema implements ListSchemaValidator { + public static class Schema01 extends JsonSchema implements ListSchemaValidator { private static @Nullable Schema01 instance = null; protected Schema01() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/HeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/HeaderParameters.java index cfdfb27a7ef..e84dd6d4206 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/HeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/HeaderParameters.java @@ -105,7 +105,7 @@ public record HeaderParameters1BoxedMap(HeaderParametersMap data) implements Hea } - public static class HeaderParameters1 extends JsonSchema implements MapSchemaValidator { + public static class HeaderParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable HeaderParameters1 instance = null; protected HeaderParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PathParameters.java index d94b04b8040..344a22e14be 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PathParameters.java @@ -130,7 +130,7 @@ public record PathParameters1BoxedMap(PathParametersMap data) implements PathPar } - public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable PathParameters1 instance = null; protected PathParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PathParameters.java index f039154d59e..6269eb01406 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PathParameters.java @@ -130,7 +130,7 @@ public record PathParameters1BoxedMap(PathParametersMap data) implements PathPar } - public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable PathParameters1 instance = null; protected PathParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PathParameters.java index bc30cb1b96d..4436c4c04da 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PathParameters.java @@ -130,7 +130,7 @@ public record PathParameters1BoxedMap(PathParametersMap data) implements PathPar } - public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable PathParameters1 instance = null; protected PathParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java index fe847c5eb0d..86470641b89 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java @@ -155,7 +155,7 @@ public record ApplicationxwwwformurlencodedSchema1BoxedMap(Applicationxwwwformur } - public static class ApplicationxwwwformurlencodedSchema1 extends JsonSchema implements MapSchemaValidator { + public static class ApplicationxwwwformurlencodedSchema1 extends JsonSchema implements MapSchemaValidator { private static @Nullable ApplicationxwwwformurlencodedSchema1 instance = null; protected ApplicationxwwwformurlencodedSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PathParameters.java index 09ab3cb5ab3..eb3f7ff3d08 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PathParameters.java @@ -130,7 +130,7 @@ public record PathParameters1BoxedMap(PathParametersMap data) implements PathPar } - public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable PathParameters1 instance = null; protected PathParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java index f1370071d83..ccc53cca486 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -156,7 +156,7 @@ public record MultipartformdataSchema1BoxedMap(MultipartformdataSchemaMap data) } - public static class MultipartformdataSchema1 extends JsonSchema implements MapSchemaValidator { + public static class MultipartformdataSchema1 extends JsonSchema implements MapSchemaValidator { private static @Nullable MultipartformdataSchema1 instance = null; protected MultipartformdataSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/PathParameters.java index af42e49ba9c..12c7ae0a9eb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/PathParameters.java @@ -112,7 +112,7 @@ public record PathParameters1BoxedMap(PathParametersMap data) implements PathPar } - public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable PathParameters1 instance = null; protected PathParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/PathParameters.java index 59a4ba3a744..37a9ad46872 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/PathParameters.java @@ -130,7 +130,7 @@ public record PathParameters1BoxedMap(PathParametersMap data) implements PathPar } - public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable PathParameters1 instance = null; protected PathParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/parameter0/Schema0.java index d16f20d4a7e..43d1f4f3dc7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/parameter0/Schema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/parameter0/Schema0.java @@ -32,7 +32,7 @@ public record Schema01BoxedNumber(Number data) implements Schema01Boxed { - public static class Schema01 extends JsonSchema implements NumberSchemaValidator { + public static class Schema01 extends JsonSchema implements NumberSchemaValidator { private static @Nullable Schema01 instance = null; protected Schema01() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/QueryParameters.java index b5328c73bde..8389997d8b5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/QueryParameters.java @@ -167,7 +167,7 @@ public record QueryParameters1BoxedMap(QueryParametersMap data) implements Query } - public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable QueryParameters1 instance = null; protected QueryParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/Headers.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/Headers.java index ec8a16aa7de..7a4d3ee1522 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/Headers.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/Headers.java @@ -297,7 +297,7 @@ public record Headers1BoxedMap(HeadersMap data) implements Headers1Boxed { } - public static class Headers1 extends JsonSchema implements MapSchemaValidator { + public static class Headers1 extends JsonSchema implements MapSchemaValidator { private static @Nullable Headers1 instance = null; protected Headers1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/PathParameters.java index be2b2cc8512..ec5ca55048d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/PathParameters.java @@ -112,7 +112,7 @@ public record PathParameters1BoxedMap(PathParametersMap data) implements PathPar } - public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable PathParameters1 instance = null; protected PathParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/PathParameters.java index b03a1859955..db175d1a1f4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/PathParameters.java @@ -112,7 +112,7 @@ public record PathParameters1BoxedMap(PathParametersMap data) implements PathPar } - public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable PathParameters1 instance = null; protected PathParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/PathParameters.java index b231eb6164f..055729fb639 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/PathParameters.java @@ -112,7 +112,7 @@ public record PathParameters1BoxedMap(PathParametersMap data) implements PathPar } - public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable PathParameters1 instance = null; protected PathParameters1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java index 2ca30278a2e..9fa18d1ff76 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java @@ -71,7 +71,7 @@ public record AnyTypeJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) imple } } - public static class AnyTypeJsonSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AnyTypeJsonSchema1BoxedList>, MapSchemaValidator, AnyTypeJsonSchema1BoxedMap> { + public static class AnyTypeJsonSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AnyTypeJsonSchema1BoxedList>, MapSchemaValidator, AnyTypeJsonSchema1BoxedMap> { private static @Nullable AnyTypeJsonSchema1 instance = null; protected AnyTypeJsonSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java index aa878fccfe9..2cceae9d49f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java @@ -27,7 +27,7 @@ public record BooleanJsonSchema1BoxedBoolean(boolean data) implements BooleanJso return data; } } - public static class BooleanJsonSchema1 extends JsonSchema implements BooleanSchemaValidator { + public static class BooleanJsonSchema1 extends JsonSchema implements BooleanSchemaValidator { private static @Nullable BooleanJsonSchema1 instance = null; protected BooleanJsonSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java index 07213eeef9f..15b5ca67f26 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java @@ -29,7 +29,7 @@ public record DateJsonSchema1BoxedString(String data) implements DateJsonSchema1 } } - public static class DateJsonSchema1 extends JsonSchema implements StringSchemaValidator { + public static class DateJsonSchema1 extends JsonSchema implements StringSchemaValidator { private static @Nullable DateJsonSchema1 instance = null; protected DateJsonSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java index f6bd785be13..e695f3c2ac9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java @@ -29,7 +29,7 @@ public record DateTimeJsonSchema1BoxedString(String data) implements DateTimeJso } } - public static class DateTimeJsonSchema1 extends JsonSchema implements StringSchemaValidator { + public static class DateTimeJsonSchema1 extends JsonSchema implements StringSchemaValidator { private static @Nullable DateTimeJsonSchema1 instance = null; protected DateTimeJsonSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java index 782d23fe162..f961e94f802 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java @@ -28,7 +28,7 @@ public record DecimalJsonSchema1BoxedString(String data) implements DecimalJsonS } } - public static class DecimalJsonSchema1 extends JsonSchema implements StringSchemaValidator { + public static class DecimalJsonSchema1 extends JsonSchema implements StringSchemaValidator { private static @Nullable DecimalJsonSchema1 instance = null; protected DecimalJsonSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java index 4c9c56c6048..56f7894f670 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java @@ -28,7 +28,7 @@ public record DoubleJsonSchema1BoxedNumber(Number data) implements DoubleJsonSch } } - public static class DoubleJsonSchema1 extends JsonSchema implements NumberSchemaValidator { + public static class DoubleJsonSchema1 extends JsonSchema implements NumberSchemaValidator { private static @Nullable DoubleJsonSchema1 instance = null; protected DoubleJsonSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java index 33433cd1595..65221627b46 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java @@ -28,7 +28,7 @@ public record FloatJsonSchema1BoxedNumber(Number data) implements FloatJsonSchem } } - public static class FloatJsonSchema1 extends JsonSchema implements NumberSchemaValidator { + public static class FloatJsonSchema1 extends JsonSchema implements NumberSchemaValidator { private static @Nullable FloatJsonSchema1 instance = null; protected FloatJsonSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java index 25c2bb23ec9..836fa1db724 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java @@ -28,7 +28,7 @@ public record Int32JsonSchema1BoxedNumber(Number data) implements Int32JsonSchem } } - public static class Int32JsonSchema1 extends JsonSchema implements NumberSchemaValidator { + public static class Int32JsonSchema1 extends JsonSchema implements NumberSchemaValidator { private static @Nullable Int32JsonSchema1 instance = null; protected Int32JsonSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java index 39fd6553ca1..da3f9d8d5f7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java @@ -28,7 +28,7 @@ public record Int64JsonSchema1BoxedNumber(Number data) implements Int64JsonSchem } } - public static class Int64JsonSchema1 extends JsonSchema implements NumberSchemaValidator { + public static class Int64JsonSchema1 extends JsonSchema implements NumberSchemaValidator { private static @Nullable Int64JsonSchema1 instance = null; protected Int64JsonSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java index 25fdb0bfede..6205c5b4380 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java @@ -28,7 +28,7 @@ public record IntJsonSchema1BoxedNumber(Number data) implements IntJsonSchema1Bo } } - public static class IntJsonSchema1 extends JsonSchema implements NumberSchemaValidator { + public static class IntJsonSchema1 extends JsonSchema implements NumberSchemaValidator { private static @Nullable IntJsonSchema1 instance = null; protected IntJsonSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java index 5e164f6f286..1099759e5bb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java @@ -31,7 +31,7 @@ public record ListJsonSchema1BoxedList(FrozenList<@Nullable Object> data) implem } } - public static class ListJsonSchema1 extends JsonSchema implements ListSchemaValidator, ListJsonSchema1BoxedList> { + public static class ListJsonSchema1 extends JsonSchema implements ListSchemaValidator, ListJsonSchema1BoxedList> { private static @Nullable ListJsonSchema1 instance = null; protected ListJsonSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java index 0fb1ae1aa24..d6f3b1dd918 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java @@ -32,7 +32,7 @@ public record MapJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) implement } } - public static class MapJsonSchema1 extends JsonSchema implements MapSchemaValidator, MapJsonSchema1BoxedMap> { + public static class MapJsonSchema1 extends JsonSchema implements MapSchemaValidator, MapJsonSchema1BoxedMap> { private static @Nullable MapJsonSchema1 instance = null; protected MapJsonSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java index 956f25a49db..52447e425ae 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java @@ -71,7 +71,7 @@ public record NotAnyTypeJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) im } } - public static class NotAnyTypeJsonSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, NotAnyTypeJsonSchema1BoxedList>, MapSchemaValidator, NotAnyTypeJsonSchema1BoxedMap> { + public static class NotAnyTypeJsonSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, NotAnyTypeJsonSchema1BoxedList>, MapSchemaValidator, NotAnyTypeJsonSchema1BoxedMap> { private static @Nullable NotAnyTypeJsonSchema1 instance = null; protected NotAnyTypeJsonSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java index 74f40b8c428..d028dbf295e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java @@ -28,7 +28,7 @@ public record NullJsonSchema1BoxedVoid(Void data) implements NullJsonSchema1Boxe } } - public static class NullJsonSchema1 extends JsonSchema implements NullSchemaValidator { + public static class NullJsonSchema1 extends JsonSchema implements NullSchemaValidator { private static @Nullable NullJsonSchema1 instance = null; protected NullJsonSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java index 8d1c184511b..5c33b047d95 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java @@ -28,7 +28,7 @@ public record NumberJsonSchema1BoxedNumber(Number data) implements NumberJsonSch } } - public static class NumberJsonSchema1 extends JsonSchema implements NumberSchemaValidator { + public static class NumberJsonSchema1 extends JsonSchema implements NumberSchemaValidator { private static @Nullable NumberJsonSchema1 instance = null; protected NumberJsonSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java index a03175a69d1..749f5faba63 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java @@ -30,7 +30,7 @@ public record StringJsonSchema1BoxedString(String data) implements StringJsonSch return data; } } - public static class StringJsonSchema1 extends JsonSchema implements StringSchemaValidator { + public static class StringJsonSchema1 extends JsonSchema implements StringSchemaValidator { private static @Nullable StringJsonSchema1 instance = null; protected StringJsonSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java index f03df54d662..c2087929db7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java @@ -29,7 +29,7 @@ public record UuidJsonSchema1BoxedString(String data) implements UuidJsonSchema1 } } - public static class UuidJsonSchema1 extends JsonSchema implements StringSchemaValidator { + public static class UuidJsonSchema1 extends JsonSchema implements StringSchemaValidator { private static @Nullable UuidJsonSchema1 instance = null; protected UuidJsonSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java index aa0be23defe..3f105b40929 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java @@ -58,7 +58,7 @@ public record UnsetAnyTypeJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) return data; } } - public static class UnsetAnyTypeJsonSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UnsetAnyTypeJsonSchema1BoxedList>, MapSchemaValidator, UnsetAnyTypeJsonSchema1BoxedMap> { + public static class UnsetAnyTypeJsonSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UnsetAnyTypeJsonSchema1BoxedList>, MapSchemaValidator, UnsetAnyTypeJsonSchema1BoxedMap> { private static @Nullable UnsetAnyTypeJsonSchema1 instance = null; protected UnsetAnyTypeJsonSchema1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Variables.java index a9445a4c9a0..6901f9c3ba9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Variables.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Variables.java @@ -73,7 +73,7 @@ public record ServerBoxedString(String data) implements ServerBoxed { - public static class Server extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + public static class Server extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { private static @Nullable Server instance = null; protected Server() { @@ -165,7 +165,7 @@ public record PortBoxedString(String data) implements PortBoxed { - public static class Port extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + public static class Port extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { private static @Nullable Port instance = null; protected Port() { @@ -366,7 +366,7 @@ public record Variables1BoxedMap(VariablesMap data) implements Variables1Boxed { } - public static class Variables1 extends JsonSchema implements MapSchemaValidator { + public static class Variables1 extends JsonSchema implements MapSchemaValidator { private static @Nullable Variables1 instance = null; protected Variables1() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Variables.java index ae89b194e01..61a3919ea25 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Variables.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Variables.java @@ -72,7 +72,7 @@ public record VersionBoxedString(String data) implements VersionBoxed { - public static class Version extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + public static class Version extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { private static @Nullable Version instance = null; protected Version() { @@ -213,7 +213,7 @@ public record Variables1BoxedMap(VariablesMap data) implements Variables1Boxed { } - public static class Variables1 extends JsonSchema implements MapSchemaValidator { + public static class Variables1 extends JsonSchema implements MapSchemaValidator { private static @Nullable Variables1 instance = null; protected Variables1() { diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_anytypeOrMultitype.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_anytypeOrMultitype.hbs index cbecfdd81b9..b84ca5875a8 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_anytypeOrMultitype.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_anytypeOrMultitype.hbs @@ -4,9 +4,9 @@ {{#if types}} -public static class {{jsonPathPiece.pascalCase}} extends JsonSchema implements {{#with enumInfo}}{{#if typeToValues.null}}NullEnumValidator, {{/if}}{{#if typeToValues.boolean}}BooleanEnumValidator, {{/if}}{{#if typeToValues.string}}StringEnumValidator, {{/if}}{{#if typeToValues.Integer}}IntegerEnumValidator, {{/if}}{{#if typeToValues.Long}}LongEnumValidator, {{/if}}{{#if typeToValues.Float}}FloatEnumValidator, {{/if}}{{#if typeToValues.Double}}DoubleEnumValidator, {{/if}}{{/with}}{{#each types}}{{#eq this "null"}}NullSchemaValidator<{{jsonPathPiece.pascalCase}}BoxedVoid>{{else}}{{#eq this "boolean"}}BooleanSchemaValidator<{{jsonPathPiece.pascalCase}}BoxedBoolean>{{else}}{{#or (eq this "number") (eq this "integer")}}NumberSchemaValidator<{{jsonPathPiece.pascalCase}}BoxedNumber>{{else}}{{#eq this "string"}}StringSchemaValidator<{{jsonPathPiece.pascalCase}}BoxedString>{{else}}{{#eq this "array"}}ListSchemaValidator<{{#if arrayOutputJsonPathPiece}}{{arrayOutputJsonPathPiece.pascalCase}}{{else}}FrozenList<@Nullable Object>{{/if}}, {{jsonPathPiece.pascalCase}}BoxedList>{{else}}{{#eq this "object"}}MapSchemaValidator<{{#if mapOutputJsonPathPiece}}{{mapOutputJsonPathPiece.pascalCase}}{{else}}FrozenMap<{{#with mapValueSchema}}{{> src/main/java/packagename/components/schemas/types/schema_output_type sourceJsonPath=../jsonPath forceNull=true }}{{else}}@Nullable Object{{/with}}>{{/if}}, {{jsonPathPiece.pascalCase}}BoxedMap>{{/eq}}{{/eq}}{{/eq}}{{/or}}{{/eq}}{{/eq}}{{#unless @last}}, {{/unless}}{{/each}} { +public static class {{jsonPathPiece.pascalCase}} extends JsonSchema<{{jsonPathPiece.pascalCase}}Boxed> implements {{#with enumInfo}}{{#if typeToValues.null}}NullEnumValidator, {{/if}}{{#if typeToValues.boolean}}BooleanEnumValidator, {{/if}}{{#if typeToValues.string}}StringEnumValidator, {{/if}}{{#if typeToValues.Integer}}IntegerEnumValidator, {{/if}}{{#if typeToValues.Long}}LongEnumValidator, {{/if}}{{#if typeToValues.Float}}FloatEnumValidator, {{/if}}{{#if typeToValues.Double}}DoubleEnumValidator, {{/if}}{{/with}}{{#each types}}{{#eq this "null"}}NullSchemaValidator<{{jsonPathPiece.pascalCase}}BoxedVoid>{{else}}{{#eq this "boolean"}}BooleanSchemaValidator<{{jsonPathPiece.pascalCase}}BoxedBoolean>{{else}}{{#or (eq this "number") (eq this "integer")}}NumberSchemaValidator<{{jsonPathPiece.pascalCase}}BoxedNumber>{{else}}{{#eq this "string"}}StringSchemaValidator<{{jsonPathPiece.pascalCase}}BoxedString>{{else}}{{#eq this "array"}}ListSchemaValidator<{{#if arrayOutputJsonPathPiece}}{{arrayOutputJsonPathPiece.pascalCase}}{{else}}FrozenList<@Nullable Object>{{/if}}, {{jsonPathPiece.pascalCase}}BoxedList>{{else}}{{#eq this "object"}}MapSchemaValidator<{{#if mapOutputJsonPathPiece}}{{mapOutputJsonPathPiece.pascalCase}}{{else}}FrozenMap<{{#with mapValueSchema}}{{> src/main/java/packagename/components/schemas/types/schema_output_type sourceJsonPath=../jsonPath forceNull=true }}{{else}}@Nullable Object{{/with}}>{{/if}}, {{jsonPathPiece.pascalCase}}BoxedMap>{{/eq}}{{/eq}}{{/eq}}{{/or}}{{/eq}}{{/eq}}{{#unless @last}}, {{/unless}}{{/each}} { {{else}} -public static class {{jsonPathPiece.pascalCase}} extends JsonSchema implements {{#with enumInfo}}{{#if typeToValues.null}}NullEnumValidator, {{/if}}{{#if typeToValues.boolean}}BooleanEnumValidator, {{/if}}{{#if typeToValues.string}}StringEnumValidator, {{/if}}{{#if typeToValues.Integer}}IntegerEnumValidator, {{/if}}{{#if typeToValues.Long}}LongEnumValidator, {{/if}}{{#if typeToValues.Float}}FloatEnumValidator, {{/if}}{{#if typeToValues.Double}}DoubleEnumValidator, {{/if}}{{/with}}NullSchemaValidator<{{jsonPathPiece.pascalCase}}BoxedVoid>, BooleanSchemaValidator<{{jsonPathPiece.pascalCase}}BoxedBoolean>, NumberSchemaValidator<{{jsonPathPiece.pascalCase}}BoxedNumber>, StringSchemaValidator<{{jsonPathPiece.pascalCase}}BoxedString>, ListSchemaValidator<{{#if arrayOutputJsonPathPiece}}{{arrayOutputJsonPathPiece.pascalCase}}{{else}}FrozenList<@Nullable Object>{{/if}}, {{jsonPathPiece.pascalCase}}BoxedList>, MapSchemaValidator<{{#if mapOutputJsonPathPiece}}{{mapOutputJsonPathPiece.pascalCase}}{{else}}FrozenMap<{{#with mapValueSchema}}{{> src/main/java/packagename/components/schemas/types/schema_output_type sourceJsonPath=../jsonPath forceNull=true }}{{else}}@Nullable Object{{/with}}>{{/if}}, {{jsonPathPiece.pascalCase}}BoxedMap> { +public static class {{jsonPathPiece.pascalCase}} extends JsonSchema<{{jsonPathPiece.pascalCase}}Boxed> implements {{#with enumInfo}}{{#if typeToValues.null}}NullEnumValidator, {{/if}}{{#if typeToValues.boolean}}BooleanEnumValidator, {{/if}}{{#if typeToValues.string}}StringEnumValidator, {{/if}}{{#if typeToValues.Integer}}IntegerEnumValidator, {{/if}}{{#if typeToValues.Long}}LongEnumValidator, {{/if}}{{#if typeToValues.Float}}FloatEnumValidator, {{/if}}{{#if typeToValues.Double}}DoubleEnumValidator, {{/if}}{{/with}}NullSchemaValidator<{{jsonPathPiece.pascalCase}}BoxedVoid>, BooleanSchemaValidator<{{jsonPathPiece.pascalCase}}BoxedBoolean>, NumberSchemaValidator<{{jsonPathPiece.pascalCase}}BoxedNumber>, StringSchemaValidator<{{jsonPathPiece.pascalCase}}BoxedString>, ListSchemaValidator<{{#if arrayOutputJsonPathPiece}}{{arrayOutputJsonPathPiece.pascalCase}}{{else}}FrozenList<@Nullable Object>{{/if}}, {{jsonPathPiece.pascalCase}}BoxedList>, MapSchemaValidator<{{#if mapOutputJsonPathPiece}}{{mapOutputJsonPathPiece.pascalCase}}{{else}}FrozenMap<{{#with mapValueSchema}}{{> src/main/java/packagename/components/schemas/types/schema_output_type sourceJsonPath=../jsonPath forceNull=true }}{{else}}@Nullable Object{{/with}}>{{/if}}, {{jsonPathPiece.pascalCase}}BoxedMap> { {{/if}} {{#if componentModule}} /* diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_boolean.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_boolean.hbs index 92b1b84e4b8..414c387de44 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_boolean.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_boolean.hbs @@ -3,7 +3,7 @@ {{> src/main/java/packagename/components/schemas/SchemaClass/_boxedClasses }} -public static class {{jsonPathPiece.pascalCase}} extends JsonSchema implements BooleanSchemaValidator<{{jsonPathPiece.pascalCase}}BoxedBoolean>{{#and enumInfo enumInfo.typeToValues.boolean}}, BooleanEnumValidator{{/and}} { +public static class {{jsonPathPiece.pascalCase}} extends JsonSchema<{{jsonPathPiece.pascalCase}}Boxed> implements BooleanSchemaValidator<{{jsonPathPiece.pascalCase}}BoxedBoolean>{{#and enumInfo enumInfo.typeToValues.boolean}}, BooleanEnumValidator{{/and}} { {{#if componentModule}} /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_list.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_list.hbs index b1e914b5801..94c53979eab 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_list.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_list.hbs @@ -3,7 +3,7 @@ {{> src/main/java/packagename/components/schemas/SchemaClass/_boxedClasses }} -public static class {{jsonPathPiece.pascalCase}} extends JsonSchema implements ListSchemaValidator<{{#if arrayOutputJsonPathPiece}}{{arrayOutputJsonPathPiece.pascalCase}}{{else}}FrozenList<@Nullable Object>{{/if}}, {{jsonPathPiece.pascalCase}}BoxedList> { +public static class {{jsonPathPiece.pascalCase}} extends JsonSchema<{{jsonPathPiece.pascalCase}}Boxed> implements ListSchemaValidator<{{#if arrayOutputJsonPathPiece}}{{arrayOutputJsonPathPiece.pascalCase}}{{else}}FrozenList<@Nullable Object>{{/if}}, {{jsonPathPiece.pascalCase}}BoxedList> { {{#if componentModule}} /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_map.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_map.hbs index 55f9e8cb689..181f2c8c3a6 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_map.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_map.hbs @@ -3,7 +3,7 @@ {{> src/main/java/packagename/components/schemas/SchemaClass/_boxedClasses }} -public static class {{jsonPathPiece.pascalCase}} extends JsonSchema implements MapSchemaValidator<{{#if mapOutputJsonPathPiece}}{{mapOutputJsonPathPiece.pascalCase}}{{else}}FrozenMap<{{#with mapValueSchema}}{{> src/main/java/packagename/components/schemas/types/schema_output_type sourceJsonPath=../jsonPath forceNull=true }}{{else}}@Nullable Object{{/with}}>{{/if}}, {{jsonPathPiece.pascalCase}}BoxedMap> { +public static class {{jsonPathPiece.pascalCase}} extends JsonSchema<{{jsonPathPiece.pascalCase}}Boxed> implements MapSchemaValidator<{{#if mapOutputJsonPathPiece}}{{mapOutputJsonPathPiece.pascalCase}}{{else}}FrozenMap<{{#with mapValueSchema}}{{> src/main/java/packagename/components/schemas/types/schema_output_type sourceJsonPath=../jsonPath forceNull=true }}{{else}}@Nullable Object{{/with}}>{{/if}}, {{jsonPathPiece.pascalCase}}BoxedMap> { {{#if componentModule}} /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_null.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_null.hbs index eaf72af47f7..1c3beefa602 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_null.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_null.hbs @@ -3,7 +3,7 @@ {{> src/main/java/packagename/components/schemas/SchemaClass/_boxedClasses }} -public static class {{jsonPathPiece.pascalCase}} extends JsonSchema implements NullSchemaValidator<{{jsonPathPiece.pascalCase}}BoxedVoid>{{#and enumInfo enumInfo.typeToValues.null}}, NullEnumValidator{{/and}} { +public static class {{jsonPathPiece.pascalCase}} extends JsonSchema<{{jsonPathPiece.pascalCase}}Boxed> implements NullSchemaValidator<{{jsonPathPiece.pascalCase}}BoxedVoid>{{#and enumInfo enumInfo.typeToValues.null}}, NullEnumValidator{{/and}} { {{#if componentModule}} /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_number.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_number.hbs index e9be837d381..899ccd9441f 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_number.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_number.hbs @@ -3,7 +3,7 @@ {{> src/main/java/packagename/components/schemas/SchemaClass/_boxedClasses }} -public static class {{jsonPathPiece.pascalCase}} extends JsonSchema implements {{#with enumInfo}}{{#if typeToValues.Integer}}IntegerEnumValidator, {{/if}}{{#if typeToValues.Long}}LongEnumValidator, {{/if}}{{#if typeToValues.Float}}FloatEnumValidator, {{/if}}{{#if typeToValues.Double}}DoubleEnumValidator, {{/if}}{{/with}}NumberSchemaValidator<{{jsonPathPiece.pascalCase}}BoxedNumber> { +public static class {{jsonPathPiece.pascalCase}} extends JsonSchema<{{jsonPathPiece.pascalCase}}Boxed> implements {{#with enumInfo}}{{#if typeToValues.Integer}}IntegerEnumValidator, {{/if}}{{#if typeToValues.Long}}LongEnumValidator, {{/if}}{{#if typeToValues.Float}}FloatEnumValidator, {{/if}}{{#if typeToValues.Double}}DoubleEnumValidator, {{/if}}{{/with}}NumberSchemaValidator<{{jsonPathPiece.pascalCase}}BoxedNumber> { {{#if componentModule}} /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_string.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_string.hbs index cd604001e4e..3a3d80a6409 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_string.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_string.hbs @@ -3,7 +3,7 @@ {{> src/main/java/packagename/components/schemas/SchemaClass/_boxedClasses }} -public static class {{jsonPathPiece.pascalCase}} extends JsonSchema implements StringSchemaValidator<{{jsonPathPiece.pascalCase}}BoxedString>{{#and enumInfo enumInfo.typeToValues.string}}, StringEnumValidator{{/and}}{{#if defaultValue}}, DefaultValueMethod{{/if}} { +public static class {{jsonPathPiece.pascalCase}} extends JsonSchema<{{jsonPathPiece.pascalCase}}Boxed> implements StringSchemaValidator<{{jsonPathPiece.pascalCase}}BoxedString>{{#and enumInfo enumInfo.typeToValues.string}}, StringEnumValidator{{/and}}{{#if defaultValue}}, DefaultValueMethod{{/if}} { {{#if componentModule}} /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. diff --git a/src/main/resources/java/src/main/java/packagename/schemas/AnyTypeJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/AnyTypeJsonSchema.hbs index 5cc4cbdbf1d..6b2a24672c6 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/AnyTypeJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/AnyTypeJsonSchema.hbs @@ -71,7 +71,7 @@ public class AnyTypeJsonSchema { } } - public static class AnyTypeJsonSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AnyTypeJsonSchema1BoxedList>, MapSchemaValidator, AnyTypeJsonSchema1BoxedMap> { + public static class AnyTypeJsonSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AnyTypeJsonSchema1BoxedList>, MapSchemaValidator, AnyTypeJsonSchema1BoxedMap> { private static @Nullable AnyTypeJsonSchema1 instance = null; protected AnyTypeJsonSchema1() { diff --git a/src/main/resources/java/src/main/java/packagename/schemas/BooleanJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/BooleanJsonSchema.hbs index e3a75614b1e..3e7af6f87b4 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/BooleanJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/BooleanJsonSchema.hbs @@ -27,7 +27,7 @@ public class BooleanJsonSchema { return data; } } - public static class BooleanJsonSchema1 extends JsonSchema implements BooleanSchemaValidator { + public static class BooleanJsonSchema1 extends JsonSchema implements BooleanSchemaValidator { private static @Nullable BooleanJsonSchema1 instance = null; protected BooleanJsonSchema1() { diff --git a/src/main/resources/java/src/main/java/packagename/schemas/DateJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/DateJsonSchema.hbs index 7a38276103d..dabd73a8398 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/DateJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/DateJsonSchema.hbs @@ -29,7 +29,7 @@ public class DateJsonSchema { } } - public static class DateJsonSchema1 extends JsonSchema implements StringSchemaValidator { + public static class DateJsonSchema1 extends JsonSchema implements StringSchemaValidator { private static @Nullable DateJsonSchema1 instance = null; protected DateJsonSchema1() { diff --git a/src/main/resources/java/src/main/java/packagename/schemas/DateTimeJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/DateTimeJsonSchema.hbs index bee4b34bf1d..b18195dce18 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/DateTimeJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/DateTimeJsonSchema.hbs @@ -29,7 +29,7 @@ public class DateTimeJsonSchema { } } - public static class DateTimeJsonSchema1 extends JsonSchema implements StringSchemaValidator { + public static class DateTimeJsonSchema1 extends JsonSchema implements StringSchemaValidator { private static @Nullable DateTimeJsonSchema1 instance = null; protected DateTimeJsonSchema1() { diff --git a/src/main/resources/java/src/main/java/packagename/schemas/DecimalJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/DecimalJsonSchema.hbs index 3369bbb6d84..609cdb31e4b 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/DecimalJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/DecimalJsonSchema.hbs @@ -28,7 +28,7 @@ public class DecimalJsonSchema { } } - public static class DecimalJsonSchema1 extends JsonSchema implements StringSchemaValidator { + public static class DecimalJsonSchema1 extends JsonSchema implements StringSchemaValidator { private static @Nullable DecimalJsonSchema1 instance = null; protected DecimalJsonSchema1() { diff --git a/src/main/resources/java/src/main/java/packagename/schemas/DoubleJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/DoubleJsonSchema.hbs index 92ae8bcdc8d..e668e781762 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/DoubleJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/DoubleJsonSchema.hbs @@ -28,7 +28,7 @@ public class DoubleJsonSchema { } } - public static class DoubleJsonSchema1 extends JsonSchema implements NumberSchemaValidator { + public static class DoubleJsonSchema1 extends JsonSchema implements NumberSchemaValidator { private static @Nullable DoubleJsonSchema1 instance = null; protected DoubleJsonSchema1() { diff --git a/src/main/resources/java/src/main/java/packagename/schemas/FloatJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/FloatJsonSchema.hbs index bef5dfe2163..7256d2d2b44 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/FloatJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/FloatJsonSchema.hbs @@ -28,7 +28,7 @@ public class FloatJsonSchema { } } - public static class FloatJsonSchema1 extends JsonSchema implements NumberSchemaValidator { + public static class FloatJsonSchema1 extends JsonSchema implements NumberSchemaValidator { private static @Nullable FloatJsonSchema1 instance = null; protected FloatJsonSchema1() { diff --git a/src/main/resources/java/src/main/java/packagename/schemas/Int32JsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/Int32JsonSchema.hbs index 419d336343e..8070af2f97b 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/Int32JsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/Int32JsonSchema.hbs @@ -28,7 +28,7 @@ public class Int32JsonSchema { } } - public static class Int32JsonSchema1 extends JsonSchema implements NumberSchemaValidator { + public static class Int32JsonSchema1 extends JsonSchema implements NumberSchemaValidator { private static @Nullable Int32JsonSchema1 instance = null; protected Int32JsonSchema1() { diff --git a/src/main/resources/java/src/main/java/packagename/schemas/Int64JsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/Int64JsonSchema.hbs index 10d4d6344bd..0f02ee44e78 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/Int64JsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/Int64JsonSchema.hbs @@ -28,7 +28,7 @@ public class Int64JsonSchema { } } - public static class Int64JsonSchema1 extends JsonSchema implements NumberSchemaValidator { + public static class Int64JsonSchema1 extends JsonSchema implements NumberSchemaValidator { private static @Nullable Int64JsonSchema1 instance = null; protected Int64JsonSchema1() { diff --git a/src/main/resources/java/src/main/java/packagename/schemas/IntJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/IntJsonSchema.hbs index 920d98a9e94..679b44450b0 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/IntJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/IntJsonSchema.hbs @@ -28,7 +28,7 @@ public class IntJsonSchema { } } - public static class IntJsonSchema1 extends JsonSchema implements NumberSchemaValidator { + public static class IntJsonSchema1 extends JsonSchema implements NumberSchemaValidator { private static @Nullable IntJsonSchema1 instance = null; protected IntJsonSchema1() { diff --git a/src/main/resources/java/src/main/java/packagename/schemas/ListJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/ListJsonSchema.hbs index bc874efabf6..61edf2bf8bf 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/ListJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/ListJsonSchema.hbs @@ -31,7 +31,7 @@ public class ListJsonSchema { } } - public static class ListJsonSchema1 extends JsonSchema implements ListSchemaValidator, ListJsonSchema1BoxedList> { + public static class ListJsonSchema1 extends JsonSchema implements ListSchemaValidator, ListJsonSchema1BoxedList> { private static @Nullable ListJsonSchema1 instance = null; protected ListJsonSchema1() { diff --git a/src/main/resources/java/src/main/java/packagename/schemas/MapJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/MapJsonSchema.hbs index c5a600eafb9..bed98bf9713 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/MapJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/MapJsonSchema.hbs @@ -32,7 +32,7 @@ public class MapJsonSchema { } } - public static class MapJsonSchema1 extends JsonSchema implements MapSchemaValidator, MapJsonSchema1BoxedMap> { + public static class MapJsonSchema1 extends JsonSchema implements MapSchemaValidator, MapJsonSchema1BoxedMap> { private static @Nullable MapJsonSchema1 instance = null; protected MapJsonSchema1() { diff --git a/src/main/resources/java/src/main/java/packagename/schemas/NotAnyTypeJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/NotAnyTypeJsonSchema.hbs index 04df41e6618..ee016083af1 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/NotAnyTypeJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/NotAnyTypeJsonSchema.hbs @@ -71,7 +71,7 @@ public class NotAnyTypeJsonSchema { } } - public static class NotAnyTypeJsonSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, NotAnyTypeJsonSchema1BoxedList>, MapSchemaValidator, NotAnyTypeJsonSchema1BoxedMap> { + public static class NotAnyTypeJsonSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, NotAnyTypeJsonSchema1BoxedList>, MapSchemaValidator, NotAnyTypeJsonSchema1BoxedMap> { private static @Nullable NotAnyTypeJsonSchema1 instance = null; protected NotAnyTypeJsonSchema1() { diff --git a/src/main/resources/java/src/main/java/packagename/schemas/NullJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/NullJsonSchema.hbs index e86e1bf3713..06da666054b 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/NullJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/NullJsonSchema.hbs @@ -28,7 +28,7 @@ public class NullJsonSchema { } } - public static class NullJsonSchema1 extends JsonSchema implements NullSchemaValidator { + public static class NullJsonSchema1 extends JsonSchema implements NullSchemaValidator { private static @Nullable NullJsonSchema1 instance = null; protected NullJsonSchema1() { diff --git a/src/main/resources/java/src/main/java/packagename/schemas/NumberJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/NumberJsonSchema.hbs index 7c6d358811c..a980452e6ab 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/NumberJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/NumberJsonSchema.hbs @@ -28,7 +28,7 @@ public class NumberJsonSchema { } } - public static class NumberJsonSchema1 extends JsonSchema implements NumberSchemaValidator { + public static class NumberJsonSchema1 extends JsonSchema implements NumberSchemaValidator { private static @Nullable NumberJsonSchema1 instance = null; protected NumberJsonSchema1() { diff --git a/src/main/resources/java/src/main/java/packagename/schemas/StringJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/StringJsonSchema.hbs index 607b1ee0fb5..b1d30874a11 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/StringJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/StringJsonSchema.hbs @@ -30,7 +30,7 @@ public class StringJsonSchema { return data; } } - public static class StringJsonSchema1 extends JsonSchema implements StringSchemaValidator { + public static class StringJsonSchema1 extends JsonSchema implements StringSchemaValidator { private static @Nullable StringJsonSchema1 instance = null; protected StringJsonSchema1() { diff --git a/src/main/resources/java/src/main/java/packagename/schemas/UuidJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/UuidJsonSchema.hbs index a1f0c94f16d..806c13edc67 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/UuidJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/UuidJsonSchema.hbs @@ -29,7 +29,7 @@ public class UuidJsonSchema { } } - public static class UuidJsonSchema1 extends JsonSchema implements StringSchemaValidator { + public static class UuidJsonSchema1 extends JsonSchema implements StringSchemaValidator { private static @Nullable UuidJsonSchema1 instance = null; protected UuidJsonSchema1() { diff --git a/src/main/resources/java/src/main/java/packagename/schemas/validation/UnsetAnyTypeJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/validation/UnsetAnyTypeJsonSchema.hbs index b589bd4448f..06a1b0ffead 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/validation/UnsetAnyTypeJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/validation/UnsetAnyTypeJsonSchema.hbs @@ -58,7 +58,7 @@ public class UnsetAnyTypeJsonSchema { return data; } } - public static class UnsetAnyTypeJsonSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UnsetAnyTypeJsonSchema1BoxedList>, MapSchemaValidator, UnsetAnyTypeJsonSchema1BoxedMap> { + public static class UnsetAnyTypeJsonSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UnsetAnyTypeJsonSchema1BoxedList>, MapSchemaValidator, UnsetAnyTypeJsonSchema1BoxedMap> { private static @Nullable UnsetAnyTypeJsonSchema1 instance = null; protected UnsetAnyTypeJsonSchema1() { From 8491d21585cc70f05678484ad5a8fa9e7919cbe0 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Wed, 21 Feb 2024 14:07:38 -0800 Subject: [PATCH 27/50] Adds more needed JsonSchema ? generics --- .../ApplicationjsonSchema.java | 11 ++- .../responses/headerswithnobody/Headers.java | 11 ++- .../ApplicationjsonSchema.java | 11 ++- .../applicationxml/ApplicationxmlSchema.java | 11 ++- .../Headers.java | 11 ++- .../ApplicationjsonSchema.java | 11 ++- .../successwithjsonapiresponse/Headers.java | 11 ++- .../schemas/AbstractStepMessage.java | 11 ++- .../schemas/AdditionalPropertiesClass.java | 77 ++++++++++++++--- .../schemas/AdditionalPropertiesSchema.java | 60 +++++++++---- .../AdditionalPropertiesWithArrayOfEnums.java | 22 ++++- .../client/components/schemas/Address.java | 11 ++- .../client/components/schemas/Animal.java | 18 +++- .../client/components/schemas/AnimalFarm.java | 11 ++- .../components/schemas/AnyTypeAndFormat.java | 83 +++++++++--------- .../components/schemas/AnyTypeNotString.java | 8 +- .../components/schemas/ApiResponseSchema.java | 11 ++- .../client/components/schemas/Apple.java | 18 +++- .../client/components/schemas/AppleReq.java | 11 ++- .../schemas/ArrayHoldingAnyType.java | 11 ++- .../schemas/ArrayOfArrayOfNumberOnly.java | 33 +++++-- .../components/schemas/ArrayOfEnums.java | 11 ++- .../components/schemas/ArrayOfNumberOnly.java | 22 ++++- .../client/components/schemas/ArrayTest.java | 66 +++++++++++--- .../schemas/ArrayWithValidationsInItems.java | 18 +++- .../client/components/schemas/Banana.java | 11 ++- .../client/components/schemas/BananaReq.java | 11 ++- .../client/components/schemas/Bar.java | 7 ++ .../client/components/schemas/BasquePig.java | 18 +++- .../components/schemas/BooleanEnum.java | 8 ++ .../components/schemas/Capitalization.java | 11 ++- .../client/components/schemas/Cat.java | 19 +++-- .../client/components/schemas/Category.java | 18 +++- .../client/components/schemas/ChildCat.java | 19 +++-- .../client/components/schemas/ClassModel.java | 8 +- .../client/components/schemas/Client.java | 11 ++- .../schemas/ComplexQuadrilateral.java | 26 ++++-- ...posedAnyOfDifferentTypesNoValidations.java | 19 +++-- .../components/schemas/ComposedArray.java | 11 ++- .../components/schemas/ComposedBool.java | 8 ++ .../components/schemas/ComposedNone.java | 8 ++ .../components/schemas/ComposedNumber.java | 7 ++ .../components/schemas/ComposedObject.java | 11 ++- .../schemas/ComposedOneOfDifferentTypes.java | 37 ++++++-- .../components/schemas/ComposedString.java | 7 ++ .../client/components/schemas/Currency.java | 7 ++ .../client/components/schemas/DanishPig.java | 18 +++- .../components/schemas/DateTimeTest.java | 7 ++ .../schemas/DateTimeWithValidations.java | 7 ++ .../schemas/DateWithValidations.java | 7 ++ .../client/components/schemas/Dog.java | 19 +++-- .../client/components/schemas/Drawing.java | 22 ++++- .../client/components/schemas/EnumArrays.java | 36 +++++++- .../client/components/schemas/EnumClass.java | 7 ++ .../client/components/schemas/EnumTest.java | 39 ++++++++- .../schemas/EquilateralTriangle.java | 26 ++++-- .../client/components/schemas/File.java | 11 ++- .../schemas/FileSchemaTestClass.java | 22 ++++- .../client/components/schemas/Foo.java | 11 ++- .../client/components/schemas/FormatTest.java | 85 ++++++++++++++++++- .../client/components/schemas/FromSchema.java | 11 ++- .../client/components/schemas/Fruit.java | 8 +- .../client/components/schemas/FruitReq.java | 8 +- .../client/components/schemas/GmFruit.java | 8 +- .../components/schemas/GrandparentAnimal.java | 11 ++- .../components/schemas/HasOnlyReadOnly.java | 11 ++- .../components/schemas/HealthCheckResult.java | 11 ++- .../components/schemas/IntegerEnum.java | 7 ++ .../components/schemas/IntegerEnumBig.java | 7 ++ .../schemas/IntegerEnumOneValue.java | 7 ++ .../schemas/IntegerEnumWithDefaultValue.java | 7 ++ .../components/schemas/IntegerMax10.java | 7 ++ .../components/schemas/IntegerMin15.java | 7 ++ .../components/schemas/IsoscelesTriangle.java | 26 ++++-- .../client/components/schemas/Items.java | 11 ++- .../components/schemas/JSONPatchRequest.java | 19 +++-- .../JSONPatchRequestAddReplaceTest.java | 18 +++- .../schemas/JSONPatchRequestMoveCopy.java | 18 +++- .../schemas/JSONPatchRequestRemove.java | 18 +++- .../client/components/schemas/Mammal.java | 8 +- .../client/components/schemas/MapTest.java | 62 +++++++++++--- ...ropertiesAndAdditionalPropertiesClass.java | 22 ++++- .../client/components/schemas/Money.java | 11 ++- .../components/schemas/MyObjectDto.java | 11 ++- .../client/components/schemas/Name.java | 8 +- .../schemas/NoAdditionalProperties.java | 11 ++- .../components/schemas/NullableClass.java | 69 +++++++++------ .../components/schemas/NullableShape.java | 8 +- .../client/components/schemas/NumberOnly.java | 11 ++- .../schemas/NumberWithExclusiveMinMax.java | 7 ++ .../schemas/NumberWithValidations.java | 7 ++ .../schemas/ObjWithRequiredProps.java | 11 ++- .../schemas/ObjWithRequiredPropsBase.java | 11 ++- .../ObjectModelWithArgAndArgsProperties.java | 11 ++- .../schemas/ObjectModelWithRefProps.java | 11 ++- ...hAllOfWithReqTestPropFromUnsetAddProp.java | 19 +++-- .../ObjectWithCollidingProperties.java | 11 ++- .../schemas/ObjectWithDecimalProperties.java | 11 ++- .../ObjectWithDifficultlyNamedProps.java | 11 ++- .../ObjectWithInlineCompositionProperty.java | 26 ++++-- ...ObjectWithInvalidNamedRefedProperties.java | 11 ++- .../ObjectWithNonIntersectingValues.java | 11 ++- .../schemas/ObjectWithOnlyOptionalProps.java | 11 ++- .../schemas/ObjectWithOptionalTestProp.java | 11 ++- .../schemas/ObjectWithValidations.java | 11 ++- .../client/components/schemas/Order.java | 18 +++- .../schemas/PaginatedResultMyObjectDto.java | 22 ++++- .../client/components/schemas/ParentPet.java | 11 ++- .../client/components/schemas/Pet.java | 40 +++++++-- .../client/components/schemas/Pig.java | 8 +- .../client/components/schemas/Player.java | 11 ++- .../client/components/schemas/PublicKey.java | 11 ++- .../components/schemas/Quadrilateral.java | 8 +- .../schemas/QuadrilateralInterface.java | 15 +++- .../components/schemas/ReadOnlyFirst.java | 11 ++- .../schemas/ReqPropsFromExplicitAddProps.java | 11 ++- .../schemas/ReqPropsFromTrueAddProps.java | 11 ++- .../schemas/ReqPropsFromUnsetAddProps.java | 11 ++- .../components/schemas/ReturnSchema.java | 8 +- .../components/schemas/ScaleneTriangle.java | 26 ++++-- .../components/schemas/Schema200Response.java | 8 +- .../schemas/SelfReferencingArrayModel.java | 11 ++- .../schemas/SelfReferencingObjectModel.java | 11 ++- .../client/components/schemas/Shape.java | 8 +- .../components/schemas/ShapeOrNull.java | 8 +- .../schemas/SimpleQuadrilateral.java | 26 ++++-- .../client/components/schemas/SomeObject.java | 8 +- .../components/schemas/SpecialModelname.java | 11 ++- .../components/schemas/StringBooleanMap.java | 11 ++- .../schemas/StringEnumWithDefaultValue.java | 7 ++ .../schemas/StringWithValidation.java | 7 ++ .../client/components/schemas/Tag.java | 11 ++- .../client/components/schemas/Triangle.java | 8 +- .../components/schemas/TriangleInterface.java | 15 +++- .../client/components/schemas/UUIDString.java | 7 ++ .../client/components/schemas/User.java | 23 +++-- .../client/components/schemas/Whale.java | 18 +++- .../client/components/schemas/Zebra.java | 25 +++++- .../delete/HeaderParameters.java | 11 ++- .../delete/PathParameters.java | 11 ++- .../delete/parameters/parameter1/Schema1.java | 7 ++ .../commonparamsubdir/get/PathParameters.java | 11 ++- .../get/QueryParameters.java | 11 ++- .../parameter0/PathParamSchema0.java | 7 ++ .../post/HeaderParameters.java | 11 ++- .../post/PathParameters.java | 11 ++- .../paths/fake/delete/HeaderParameters.java | 11 ++- .../paths/fake/delete/QueryParameters.java | 11 ++- .../delete/parameters/parameter1/Schema1.java | 7 ++ .../delete/parameters/parameter4/Schema4.java | 7 ++ .../paths/fake/get/HeaderParameters.java | 11 ++- .../paths/fake/get/QueryParameters.java | 11 ++- .../get/parameters/parameter0/Schema0.java | 18 +++- .../get/parameters/parameter1/Schema1.java | 7 ++ .../get/parameters/parameter2/Schema2.java | 18 +++- .../get/parameters/parameter3/Schema3.java | 7 ++ .../get/parameters/parameter4/Schema4.java | 7 ++ .../get/parameters/parameter5/Schema5.java | 7 ++ .../ApplicationxwwwformurlencodedSchema.java | 36 +++++++- .../ApplicationxwwwformurlencodedSchema.java | 74 +++++++++++++++- .../put/QueryParameters.java | 11 ++- .../put/QueryParameters.java | 11 ++- .../delete/PathParameters.java | 11 ++- .../ApplicationjsonSchema.java | 11 ++- .../post/QueryParameters.java | 11 ++- .../post/parameters/parameter0/Schema0.java | 15 +++- .../post/parameters/parameter1/Schema1.java | 26 ++++-- .../ApplicationjsonSchema.java | 15 +++- .../MultipartformdataSchema.java | 26 ++++-- .../ApplicationjsonSchema.java | 15 +++- .../MultipartformdataSchema.java | 26 ++++-- .../ApplicationxwwwformurlencodedSchema.java | 11 ++- .../ApplicationjsonSchema.java | 11 ++- .../MultipartformdataSchema.java | 11 ++- .../fakeobjinquery/get/QueryParameters.java | 11 ++- .../get/parameters/parameter0/Schema0.java | 11 ++- .../post/CookieParameters.java | 11 ++- .../post/HeaderParameters.java | 11 ++- .../post/PathParameters.java | 11 ++- .../post/QueryParameters.java | 11 ++- .../post/PathParameters.java | 11 ++- .../MultipartformdataSchema.java | 11 ++- .../get/QueryParameters.java | 11 ++- .../get/QueryParameters.java | 11 ++- .../put/QueryParameters.java | 11 ++- .../put/parameters/parameter0/Schema0.java | 11 ++- .../put/parameters/parameter1/Schema1.java | 11 ++- .../put/parameters/parameter2/Schema2.java | 11 ++- .../put/parameters/parameter3/Schema3.java | 11 ++- .../put/parameters/parameter4/Schema4.java | 11 ++- .../MultipartformdataSchema.java | 11 ++- .../MultipartformdataSchema.java | 22 ++++- .../ApplicationjsonSchema.java | 11 ++- .../foo/get/servers/server1/Variables.java | 18 +++- .../petfindbystatus/get/QueryParameters.java | 11 ++- .../get/parameters/parameter0/Schema0.java | 18 +++- .../servers/server1/Variables.java | 18 +++- .../petfindbytags/get/QueryParameters.java | 11 ++- .../get/parameters/parameter0/Schema0.java | 11 ++- .../petpetid/delete/HeaderParameters.java | 11 ++- .../paths/petpetid/delete/PathParameters.java | 11 ++- .../paths/petpetid/get/PathParameters.java | 11 ++- .../paths/petpetid/post/PathParameters.java | 11 ++- .../ApplicationxwwwformurlencodedSchema.java | 11 ++- .../post/PathParameters.java | 11 ++- .../MultipartformdataSchema.java | 11 ++- .../delete/PathParameters.java | 11 ++- .../storeorderorderid/get/PathParameters.java | 11 ++- .../get/parameters/parameter0/Schema0.java | 7 ++ .../paths/userlogin/get/QueryParameters.java | 11 ++- .../responses/code200response/Headers.java | 11 ++- .../userusername/delete/PathParameters.java | 11 ++- .../userusername/get/PathParameters.java | 11 ++- .../userusername/put/PathParameters.java | 11 ++- .../client/schemas/AnyTypeJsonSchema.java | 8 +- .../client/schemas/ListJsonSchema.java | 4 +- .../client/schemas/MapJsonSchema.java | 4 +- .../client/schemas/NotAnyTypeJsonSchema.java | 8 +- .../client/schemas/validation/JsonSchema.java | 54 ++++++------ .../schemas/validation/JsonSchemaInfo.java | 68 +++++++-------- .../schemas/validation/PathToSchemasMap.java | 6 +- .../schemas/validation/PropertyEntry.java | 6 +- .../validation/UnsetAnyTypeJsonSchema.java | 8 +- .../schemas/validation/ValidationData.java | 4 +- .../validation/ValidationMetadata.java | 4 +- .../client/servers/server0/Variables.java | 25 +++++- .../client/servers/server1/Variables.java | 18 +++- .../client/schemas/ArrayTypeSchemaTest.java | 8 +- .../client/schemas/ObjectTypeSchemaTest.java | 16 ++-- .../schemas/SchemaClass/_Schema_boolean.hbs | 2 +- .../schemas/SchemaClass/_Schema_list.hbs | 2 +- .../schemas/SchemaClass/_Schema_map.hbs | 2 +- .../schemas/SchemaClass/_Schema_null.hbs | 2 +- .../schemas/SchemaClass/_Schema_number.hbs | 2 +- .../schemas/SchemaClass/_Schema_string.hbs | 2 +- .../SchemaClass/_validate_implementor.hbs | 16 ++-- .../packagename/schemas/AnyTypeJsonSchema.hbs | 8 +- .../packagename/schemas/ListJsonSchema.hbs | 4 +- .../packagename/schemas/MapJsonSchema.hbs | 4 +- .../schemas/NotAnyTypeJsonSchema.hbs | 8 +- .../schemas/validation/JsonSchema.hbs | 54 ++++++------ .../schemas/validation/JsonSchemaInfo.hbs | 68 +++++++-------- .../schemas/validation/PathToSchemasMap.hbs | 6 +- .../schemas/validation/PropertyEntry.hbs | 6 +- .../validation/UnsetAnyTypeJsonSchema.hbs | 8 +- .../schemas/validation/ValidationData.hbs | 4 +- .../schemas/validation/ValidationMetadata.hbs | 4 +- .../schemas/ArrayTypeSchemaTest.hbs | 8 +- .../schemas/ObjectTypeSchemaTest.hbs | 16 ++-- 249 files changed, 2887 insertions(+), 826 deletions(-) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.java index 4ead2f27823..9e4ba1794ae 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.java @@ -94,11 +94,11 @@ public ApplicationjsonSchemaList getNewInstance(List arg, List pathTo for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof User.UserMap)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -138,5 +138,12 @@ public ApplicationjsonSchemaList validate(List arg, SchemaConfiguration confi public ApplicationjsonSchema1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ApplicationjsonSchema1BoxedList(validate(arg, configuration)); } + @Override + public ApplicationjsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody/Headers.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody/Headers.java index 8b29b0f641b..5a4894c3c3a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody/Headers.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody/Headers.java @@ -136,11 +136,11 @@ public HeadersMap getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -180,6 +180,13 @@ public HeadersMap validate(Map arg, SchemaConfiguration configuration) thr public Headers1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Headers1BoxedMap(validate(arg, configuration)); } + @Override + public Headers1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.java index cc9a24dc33c..cf00c44021c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.java @@ -95,11 +95,11 @@ public ApplicationjsonSchemaList getNewInstance(List arg, List pathTo for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof Pet.PetMap)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -139,5 +139,12 @@ public ApplicationjsonSchemaList validate(List arg, SchemaConfiguration confi public ApplicationjsonSchema1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ApplicationjsonSchema1BoxedList(validate(arg, configuration)); } + @Override + public ApplicationjsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.java index 247c596a985..0ed36ee6a42 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.java @@ -94,11 +94,11 @@ public ApplicationxmlSchemaList getNewInstance(List arg, List pathToI for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof Pet.PetMap)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -138,5 +138,12 @@ public ApplicationxmlSchemaList validate(List arg, SchemaConfiguration config public ApplicationxmlSchema1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ApplicationxmlSchema1BoxedList(validate(arg, configuration)); } + @Override + public ApplicationxmlSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/Headers.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/Headers.java index 33bb7e82e63..209447c856e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/Headers.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/Headers.java @@ -136,11 +136,11 @@ public HeadersMap getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -180,6 +180,13 @@ public HeadersMap validate(Map arg, SchemaConfiguration configuration) thr public Headers1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Headers1BoxedMap(validate(arg, configuration)); } + @Override + public Headers1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.java index 5116459dfc8..7d1f6c17975 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.java @@ -135,11 +135,11 @@ public ApplicationjsonSchemaMap getNewInstance(Map arg, List pathT List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof Number)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -179,6 +179,13 @@ public ApplicationjsonSchemaMap validate(Map arg, SchemaConfiguration conf public ApplicationjsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ApplicationjsonSchema1BoxedMap(validate(arg, configuration)); } + @Override + public ApplicationjsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successwithjsonapiresponse/Headers.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successwithjsonapiresponse/Headers.java index 8b9f7963cb9..4e0a0752df7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successwithjsonapiresponse/Headers.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successwithjsonapiresponse/Headers.java @@ -476,11 +476,11 @@ public HeadersMap getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -517,6 +517,13 @@ public HeadersMap validate(Map arg, SchemaConfiguration configuration) thr public Headers1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Headers1BoxedMap(validate(arg, configuration)); } + @Override + public Headers1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AbstractStepMessage.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AbstractStepMessage.java index 4f2f43a2725..0491701ee19 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AbstractStepMessage.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AbstractStepMessage.java @@ -395,11 +395,11 @@ public AbstractStepMessageMap getNewInstance(Map arg, List pathToI List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -436,6 +436,13 @@ public AbstractStepMessageMap validate(Map arg, SchemaConfiguration config public AbstractStepMessage1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AbstractStepMessage1BoxedMap(validate(arg, configuration)); } + @Override + public AbstractStepMessage1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesClass.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesClass.java index fdff5853f87..e5c4d17f293 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesClass.java @@ -133,11 +133,11 @@ public MapPropertyMap getNewInstance(Map arg, List pathToItem, Pat List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -177,6 +177,13 @@ public MapPropertyMap validate(Map arg, SchemaConfiguration configuration) public MapPropertyBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MapPropertyBoxedMap(validate(arg, configuration)); } + @Override + public MapPropertyBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } @@ -280,11 +287,11 @@ public AdditionalPropertiesMap getNewInstance(Map arg, List pathTo List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -324,6 +331,13 @@ public AdditionalPropertiesMap validate(Map arg, SchemaConfiguration confi public AdditionalProperties1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AdditionalProperties1BoxedMap(validate(arg, configuration)); } + @Override + public AdditionalProperties1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } @@ -416,11 +430,11 @@ public MapOfMapPropertyMap getNewInstance(Map arg, List pathToItem List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof AdditionalPropertiesMap)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -460,6 +474,13 @@ public MapOfMapPropertyMap validate(Map arg, SchemaConfiguration configura public MapOfMapPropertyBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MapOfMapPropertyBoxedMap(validate(arg, configuration)); } + @Override + public MapOfMapPropertyBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } @@ -652,11 +673,11 @@ public MapWithUndeclaredPropertiesAnytype3Map getNewInstance(Map arg, List List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -693,6 +714,13 @@ public MapWithUndeclaredPropertiesAnytype3Map validate(Map arg, SchemaConf public MapWithUndeclaredPropertiesAnytype3BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MapWithUndeclaredPropertiesAnytype3BoxedMap(validate(arg, configuration)); } + @Override + public MapWithUndeclaredPropertiesAnytype3Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } @@ -775,11 +803,11 @@ public EmptyMapMap getNewInstance(Map arg, List pathToItem, PathTo List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -816,6 +844,13 @@ public EmptyMapMap validate(Map arg, SchemaConfiguration configuration) th public EmptyMapBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new EmptyMapBoxedMap(validate(arg, configuration)); } + @Override + public EmptyMapBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } @@ -919,11 +954,11 @@ public MapWithUndeclaredPropertiesStringMap getNewInstance(Map arg, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -963,6 +998,13 @@ public MapWithUndeclaredPropertiesStringMap validate(Map arg, SchemaConfig public MapWithUndeclaredPropertiesStringBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MapWithUndeclaredPropertiesStringBoxedMap(validate(arg, configuration)); } + @Override + public MapWithUndeclaredPropertiesStringBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } @@ -1311,11 +1353,11 @@ public AdditionalPropertiesClassMap getNewInstance(Map arg, List p List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1352,6 +1394,13 @@ public AdditionalPropertiesClassMap validate(Map arg, SchemaConfiguration public AdditionalPropertiesClass1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AdditionalPropertiesClass1BoxedMap(validate(arg, configuration)); } + @Override + public AdditionalPropertiesClass1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesSchema.java index 777d990146b..6cc2511dad8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesSchema.java @@ -194,11 +194,11 @@ public Schema0Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -235,6 +235,13 @@ public Schema0Map validate(Map arg, SchemaConfiguration configuration) thr public Schema0BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema0BoxedMap(validate(arg, configuration)); } + @Override + public Schema0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } @@ -384,11 +391,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -419,11 +426,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -668,11 +675,11 @@ public Schema1Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -709,6 +716,13 @@ public Schema1Map validate(Map arg, SchemaConfiguration configuration) thr public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema1BoxedMap(validate(arg, configuration)); } + @Override + public Schema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } @@ -858,11 +872,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -893,11 +907,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1142,11 +1156,11 @@ public Schema2Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1183,6 +1197,13 @@ public Schema2Map validate(Map arg, SchemaConfiguration configuration) thr public Schema2BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema2BoxedMap(validate(arg, configuration)); } + @Override + public Schema2Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } @@ -1236,11 +1257,11 @@ public static AdditionalPropertiesSchema1 getInstance() { List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1277,6 +1298,13 @@ public static AdditionalPropertiesSchema1 getInstance() { public AdditionalPropertiesSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AdditionalPropertiesSchema1BoxedMap(validate(arg, configuration)); } + @Override + public AdditionalPropertiesSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesWithArrayOfEnums.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesWithArrayOfEnums.java index c2c6e2af45b..bcbef03c5d4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesWithArrayOfEnums.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesWithArrayOfEnums.java @@ -103,11 +103,11 @@ public AdditionalPropertiesList getNewInstance(List arg, List pathToI for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -147,6 +147,13 @@ public AdditionalPropertiesList validate(List arg, SchemaConfiguration config public AdditionalPropertiesBoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AdditionalPropertiesBoxedList(validate(arg, configuration)); } + @Override + public AdditionalPropertiesBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class AdditionalPropertiesWithArrayOfEnumsMap extends FrozenMap { @@ -248,11 +255,11 @@ public AdditionalPropertiesWithArrayOfEnumsMap getNewInstance(Map arg, Lis List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof AdditionalPropertiesList)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -292,6 +299,13 @@ public AdditionalPropertiesWithArrayOfEnumsMap validate(Map arg, SchemaCon public AdditionalPropertiesWithArrayOfEnums1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AdditionalPropertiesWithArrayOfEnums1BoxedMap(validate(arg, configuration)); } + @Override + public AdditionalPropertiesWithArrayOfEnums1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Address.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Address.java index 9d770704d02..b0ed926c90e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Address.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Address.java @@ -155,11 +155,11 @@ public AddressMap getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof Number)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -199,6 +199,13 @@ public AddressMap validate(Map arg, SchemaConfiguration configuration) thr public Address1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Address1BoxedMap(validate(arg, configuration)); } + @Override + public Address1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Animal.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Animal.java index 2994bc1e974..bb25f8c14eb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Animal.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Animal.java @@ -109,6 +109,13 @@ public String defaultValue() { public ColorBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ColorBoxedString(validate(arg, configuration)); } + @Override + public ColorBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class AnimalMap extends FrozenMap<@Nullable Object> { @@ -264,11 +271,11 @@ public AnimalMap getNewInstance(Map arg, List pathToItem, PathToSc List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -305,6 +312,13 @@ public AnimalMap validate(Map arg, SchemaConfiguration configuration) thro public Animal1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Animal1BoxedMap(validate(arg, configuration)); } + @Override + public Animal1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnimalFarm.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnimalFarm.java index 0854c83e299..e6ee613c3e1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnimalFarm.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnimalFarm.java @@ -99,11 +99,11 @@ public AnimalFarmList getNewInstance(List arg, List pathToItem, PathT for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof Animal.AnimalMap)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -143,5 +143,12 @@ public AnimalFarmList validate(List arg, SchemaConfiguration configuration) t public AnimalFarm1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnimalFarm1BoxedList(validate(arg, configuration)); } + @Override + public AnimalFarm1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormat.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormat.java index ce0c59d635f..e3dc79b70c1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormat.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormat.java @@ -183,11 +183,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -218,11 +218,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -468,11 +468,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -503,11 +503,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -753,11 +753,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -788,11 +788,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1038,11 +1038,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -1073,11 +1073,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1323,11 +1323,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -1358,11 +1358,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1608,11 +1608,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -1643,11 +1643,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1893,11 +1893,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -1928,11 +1928,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -2178,11 +2178,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -2213,11 +2213,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -2463,11 +2463,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -2498,11 +2498,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -3290,11 +3290,11 @@ public AnyTypeAndFormatMap getNewInstance(Map arg, List pathToItem List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -3331,6 +3331,13 @@ public AnyTypeAndFormatMap validate(Map arg, SchemaConfiguration configura public AnyTypeAndFormat1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyTypeAndFormat1BoxedMap(validate(arg, configuration)); } + @Override + public AnyTypeAndFormat1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeNotString.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeNotString.java index dd68371a15b..13dfb48e9a9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeNotString.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeNotString.java @@ -199,11 +199,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -234,11 +234,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ApiResponseSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ApiResponseSchema.java index c0c91a44ba3..19681cbe576 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ApiResponseSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ApiResponseSchema.java @@ -237,11 +237,11 @@ public ApiResponseMap getNewInstance(Map arg, List pathToItem, Pat List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -278,6 +278,13 @@ public ApiResponseMap validate(Map arg, SchemaConfiguration configuration) public ApiResponseSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ApiResponseSchema1BoxedMap(validate(arg, configuration)); } + @Override + public ApiResponseSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Apple.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Apple.java index 22d6f1a7d4c..1ff84d0d77f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Apple.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Apple.java @@ -94,6 +94,13 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val public CultivarBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new CultivarBoxedString(validate(arg, configuration)); } + @Override + public CultivarBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface OriginBoxed permits OriginBoxedString { @@ -160,6 +167,13 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val public OriginBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new OriginBoxedString(validate(arg, configuration)); } + @Override + public OriginBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class AppleMap extends FrozenMap<@Nullable Object> { @@ -336,11 +350,11 @@ public AppleMap getNewInstance(Map arg, List pathToItem, PathToSch List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AppleReq.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AppleReq.java index c6469df06a9..e5e5ec8123c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AppleReq.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AppleReq.java @@ -210,11 +210,11 @@ public AppleReqMap getNewInstance(Map arg, List pathToItem, PathTo List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof Object)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -254,6 +254,13 @@ public AppleReqMap validate(Map arg, SchemaConfiguration configuration) th public AppleReq1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AppleReq1BoxedMap(validate(arg, configuration)); } + @Override + public AppleReq1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayHoldingAnyType.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayHoldingAnyType.java index 6eee8ba6a59..6b80d6a622a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayHoldingAnyType.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayHoldingAnyType.java @@ -150,11 +150,11 @@ public ArrayHoldingAnyTypeList getNewInstance(List arg, List pathToIt for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -191,5 +191,12 @@ public ArrayHoldingAnyTypeList validate(List arg, SchemaConfiguration configu public ArrayHoldingAnyType1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ArrayHoldingAnyType1BoxedList(validate(arg, configuration)); } + @Override + public ArrayHoldingAnyType1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfArrayOfNumberOnly.java index bc0cc34d94c..b7f9fd7e937 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfArrayOfNumberOnly.java @@ -126,11 +126,11 @@ public ItemsList getNewInstance(List arg, List pathToItem, PathToSche for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof Number)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -170,6 +170,13 @@ public ItemsList validate(List arg, SchemaConfiguration configuration) throws public ItemsBoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ItemsBoxedList(validate(arg, configuration)); } + @Override + public ItemsBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class ArrayArrayNumberList extends FrozenList { @@ -241,11 +248,11 @@ public ArrayArrayNumberList getNewInstance(List arg, List pathToItem, for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof ItemsList)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -285,6 +292,13 @@ public ArrayArrayNumberList validate(List arg, SchemaConfiguration configurat public ArrayArrayNumberBoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ArrayArrayNumberBoxedList(validate(arg, configuration)); } + @Override + public ArrayArrayNumberBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class ArrayOfArrayOfNumberOnlyMap extends FrozenMap<@Nullable Object> { @@ -401,11 +415,11 @@ public ArrayOfArrayOfNumberOnlyMap getNewInstance(Map arg, List pa List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -442,6 +456,13 @@ public ArrayOfArrayOfNumberOnlyMap validate(Map arg, SchemaConfiguration c public ArrayOfArrayOfNumberOnly1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ArrayOfArrayOfNumberOnly1BoxedMap(validate(arg, configuration)); } + @Override + public ArrayOfArrayOfNumberOnly1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfEnums.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfEnums.java index 13d09318585..8364d46380d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfEnums.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfEnums.java @@ -112,11 +112,11 @@ public ArrayOfEnumsList getNewInstance(List arg, List pathToItem, Pat for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -156,5 +156,12 @@ public ArrayOfEnumsList validate(List arg, SchemaConfiguration configuration) public ArrayOfEnums1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ArrayOfEnums1BoxedList(validate(arg, configuration)); } + @Override + public ArrayOfEnums1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfNumberOnly.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfNumberOnly.java index d165f0b8649..03b7659a3c1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfNumberOnly.java @@ -126,11 +126,11 @@ public ArrayNumberList getNewInstance(List arg, List pathToItem, Path for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof Number)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -170,6 +170,13 @@ public ArrayNumberList validate(List arg, SchemaConfiguration configuration) public ArrayNumberBoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ArrayNumberBoxedList(validate(arg, configuration)); } + @Override + public ArrayNumberBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class ArrayOfNumberOnlyMap extends FrozenMap<@Nullable Object> { @@ -286,11 +293,11 @@ public ArrayOfNumberOnlyMap getNewInstance(Map arg, List pathToIte List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -327,6 +334,13 @@ public ArrayOfNumberOnlyMap validate(Map arg, SchemaConfiguration configur public ArrayOfNumberOnly1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ArrayOfNumberOnly1BoxedMap(validate(arg, configuration)); } + @Override + public ArrayOfNumberOnly1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayTest.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayTest.java index 2cb9a172784..a6de7bc8168 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayTest.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayTest.java @@ -112,11 +112,11 @@ public ArrayOfStringList getNewInstance(List arg, List pathToItem, Pa for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -156,6 +156,13 @@ public ArrayOfStringList validate(List arg, SchemaConfiguration configuration public ArrayOfStringBoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ArrayOfStringBoxedList(validate(arg, configuration)); } + @Override + public ArrayOfStringBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class Items2 extends Int64JsonSchema.Int64JsonSchema1 { @@ -253,11 +260,11 @@ public ItemsList getNewInstance(List arg, List pathToItem, PathToSche for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof Number)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -297,6 +304,13 @@ public ItemsList validate(List arg, SchemaConfiguration configuration) throws public Items1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Items1BoxedList(validate(arg, configuration)); } + @Override + public Items1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class ArrayArrayOfIntegerList extends FrozenList { @@ -368,11 +382,11 @@ public ArrayArrayOfIntegerList getNewInstance(List arg, List pathToIt for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof ItemsList)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -412,6 +426,13 @@ public ArrayArrayOfIntegerList validate(List arg, SchemaConfiguration configu public ArrayArrayOfIntegerBoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ArrayArrayOfIntegerBoxedList(validate(arg, configuration)); } + @Override + public ArrayArrayOfIntegerBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class ItemsList1 extends FrozenList { @@ -483,11 +504,11 @@ public ItemsList1 getNewInstance(List arg, List pathToItem, PathToSch for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof ReadOnlyFirst.ReadOnlyFirstMap)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -527,6 +548,13 @@ public ItemsList1 validate(List arg, SchemaConfiguration configuration) throw public Items3BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Items3BoxedList(validate(arg, configuration)); } + @Override + public Items3Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class ArrayArrayOfModelList extends FrozenList { @@ -598,11 +626,11 @@ public ArrayArrayOfModelList getNewInstance(List arg, List pathToItem for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof ItemsList1)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -642,6 +670,13 @@ public ArrayArrayOfModelList validate(List arg, SchemaConfiguration configura public ArrayArrayOfModelBoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ArrayArrayOfModelBoxedList(validate(arg, configuration)); } + @Override + public ArrayArrayOfModelBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class ArrayTestMap extends FrozenMap<@Nullable Object> { @@ -812,11 +847,11 @@ public ArrayTestMap getNewInstance(Map arg, List pathToItem, PathT List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -853,6 +888,13 @@ public ArrayTestMap validate(Map arg, SchemaConfiguration configuration) t public ArrayTest1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ArrayTest1BoxedMap(validate(arg, configuration)); } + @Override + public ArrayTest1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayWithValidationsInItems.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayWithValidationsInItems.java index cbfd571597e..99a7c45a8d2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayWithValidationsInItems.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayWithValidationsInItems.java @@ -104,6 +104,13 @@ public double validate(double arg, SchemaConfiguration configuration) throws Val public ItemsBoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ItemsBoxedNumber(validate(arg, configuration)); } + @Override + public ItemsBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class ArrayWithValidationsInItemsList extends FrozenList { @@ -197,11 +204,11 @@ public ArrayWithValidationsInItemsList getNewInstance(List arg, List for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof Number)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -241,5 +248,12 @@ public ArrayWithValidationsInItemsList validate(List arg, SchemaConfiguration public ArrayWithValidationsInItems1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ArrayWithValidationsInItems1BoxedList(validate(arg, configuration)); } + @Override + public ArrayWithValidationsInItems1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Banana.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Banana.java index ae52d00b906..ffa0682bd6c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Banana.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Banana.java @@ -183,11 +183,11 @@ public BananaMap getNewInstance(Map arg, List pathToItem, PathToSc List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -224,6 +224,13 @@ public BananaMap validate(Map arg, SchemaConfiguration configuration) thro public Banana1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Banana1BoxedMap(validate(arg, configuration)); } + @Override + public Banana1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BananaReq.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BananaReq.java index c989bf7830e..9ca17cb18fc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BananaReq.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BananaReq.java @@ -228,11 +228,11 @@ public BananaReqMap getNewInstance(Map arg, List pathToItem, PathT List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof Object)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -272,6 +272,13 @@ public BananaReqMap validate(Map arg, SchemaConfiguration configuration) t public BananaReq1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new BananaReq1BoxedMap(validate(arg, configuration)); } + @Override + public BananaReq1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Bar.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Bar.java index 0f398f61210..a46435968b3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Bar.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Bar.java @@ -93,5 +93,12 @@ public String defaultValue() { public Bar1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Bar1BoxedString(validate(arg, configuration)); } + @Override + public Bar1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BasquePig.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BasquePig.java index 79f4360c4f3..826127d11ee 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BasquePig.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BasquePig.java @@ -112,6 +112,13 @@ public String validate(StringClassNameEnums arg,SchemaConfiguration configuratio public ClassNameBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ClassNameBoxedString(validate(arg, configuration)); } + @Override + public ClassNameBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class BasquePigMap extends FrozenMap<@Nullable Object> { @@ -245,11 +252,11 @@ public BasquePigMap getNewInstance(Map arg, List pathToItem, PathT List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -286,6 +293,13 @@ public BasquePigMap validate(Map arg, SchemaConfiguration configuration) t public BasquePig1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new BasquePig1BoxedMap(validate(arg, configuration)); } + @Override + public BasquePig1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BooleanEnum.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BooleanEnum.java index 011f7e2c85e..0681c9d4961 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BooleanEnum.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BooleanEnum.java @@ -108,5 +108,13 @@ public boolean validate(BooleanBooleanEnumEnums arg,SchemaConfiguration configur public BooleanEnum1BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new BooleanEnum1BoxedBoolean(validate(arg, configuration)); } + @Override + public BooleanEnum1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Capitalization.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Capitalization.java index 9003f30ff4e..d5fb609e4e8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Capitalization.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Capitalization.java @@ -344,11 +344,11 @@ public CapitalizationMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -385,6 +385,13 @@ public CapitalizationMap validate(Map arg, SchemaConfiguration configurati public Capitalization1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Capitalization1BoxedMap(validate(arg, configuration)); } + @Override + public Capitalization1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Cat.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Cat.java index 432d7d852e5..b05aec208e2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Cat.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Cat.java @@ -157,11 +157,11 @@ public Schema1Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -198,6 +198,13 @@ public Schema1Map validate(Map arg, SchemaConfiguration configuration) thr public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema1BoxedMap(validate(arg, configuration)); } + @Override + public Schema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } @@ -356,11 +363,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -391,11 +398,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Category.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Category.java index 16827ba09bb..b19f935049b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Category.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Category.java @@ -109,6 +109,13 @@ public String defaultValue() { public NameBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NameBoxedString(validate(arg, configuration)); } + @Override + public NameBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class CategoryMap extends FrozenMap<@Nullable Object> { @@ -282,11 +289,11 @@ public CategoryMap getNewInstance(Map arg, List pathToItem, PathTo List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -323,6 +330,13 @@ public CategoryMap validate(Map arg, SchemaConfiguration configuration) th public Category1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Category1BoxedMap(validate(arg, configuration)); } + @Override + public Category1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ChildCat.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ChildCat.java index e6dfea1868b..fdb76bf0d38 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ChildCat.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ChildCat.java @@ -157,11 +157,11 @@ public Schema1Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -198,6 +198,13 @@ public Schema1Map validate(Map arg, SchemaConfiguration configuration) thr public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema1BoxedMap(validate(arg, configuration)); } + @Override + public Schema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } @@ -356,11 +363,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -391,11 +398,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ClassModel.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ClassModel.java index 6c7028d8c1e..65855781634 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ClassModel.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ClassModel.java @@ -261,11 +261,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -296,11 +296,11 @@ public ClassModelMap getNewInstance(Map arg, List pathToItem, Path List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Client.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Client.java index 05703d0d897..9cd4880d680 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Client.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Client.java @@ -154,11 +154,11 @@ public ClientMap getNewInstance(Map arg, List pathToItem, PathToSc List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -195,6 +195,13 @@ public ClientMap validate(Map arg, SchemaConfiguration configuration) thro public Client1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Client1BoxedMap(validate(arg, configuration)); } + @Override + public Client1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComplexQuadrilateral.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComplexQuadrilateral.java index 5d2b4827a34..0f5fe34f199 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComplexQuadrilateral.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComplexQuadrilateral.java @@ -120,6 +120,13 @@ public String validate(StringQuadrilateralTypeEnums arg,SchemaConfiguration conf public QuadrilateralTypeBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new QuadrilateralTypeBoxedString(validate(arg, configuration)); } + @Override + public QuadrilateralTypeBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class Schema1Map extends FrozenMap<@Nullable Object> { @@ -236,11 +243,11 @@ public Schema1Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -277,6 +284,13 @@ public Schema1Map validate(Map arg, SchemaConfiguration configuration) thr public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema1BoxedMap(validate(arg, configuration)); } + @Override + public Schema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } @@ -435,11 +449,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -470,11 +484,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidations.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidations.java index 034154530e5..688e2a66912 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidations.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidations.java @@ -268,11 +268,11 @@ public Schema9List getNewInstance(List arg, List pathToItem, PathToSc for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -309,6 +309,13 @@ public Schema9List validate(List arg, SchemaConfiguration configuration) thro public Schema9BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema9BoxedList(validate(arg, configuration)); } + @Override + public Schema9Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class Schema10 extends NumberJsonSchema.NumberJsonSchema1 { @@ -546,11 +553,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -581,11 +588,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedArray.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedArray.java index 2e3dbb9f70e..924341f499f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedArray.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedArray.java @@ -150,11 +150,11 @@ public ComposedArrayList getNewInstance(List arg, List pathToItem, Pa for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -191,5 +191,12 @@ public ComposedArrayList validate(List arg, SchemaConfiguration configuration public ComposedArray1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ComposedArray1BoxedList(validate(arg, configuration)); } + @Override + public ComposedArray1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedBool.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedBool.java index 86b372a1e83..ec600363510 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedBool.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedBool.java @@ -100,5 +100,13 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V public ComposedBool1BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ComposedBool1BoxedBoolean(validate(arg, configuration)); } + @Override + public ComposedBool1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNone.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNone.java index 07f7475d298..bee61f4d10f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNone.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNone.java @@ -98,5 +98,13 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat public ComposedNone1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ComposedNone1BoxedVoid(validate(arg, configuration)); } + @Override + public ComposedNone1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNumber.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNumber.java index af40d4055bc..37c4b6c7c2c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNumber.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNumber.java @@ -119,5 +119,12 @@ public double validate(double arg, SchemaConfiguration configuration) throws Val public ComposedNumber1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ComposedNumber1BoxedNumber(validate(arg, configuration)); } + @Override + public ComposedNumber1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedObject.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedObject.java index 79220b58dba..89afb88c828 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedObject.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedObject.java @@ -86,11 +86,11 @@ public static ComposedObject1 getInstance() { List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -127,6 +127,13 @@ public static ComposedObject1 getInstance() { public ComposedObject1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ComposedObject1BoxedMap(validate(arg, configuration)); } + @Override + public ComposedObject1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypes.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypes.java index dab37f03129..100e117efda 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypes.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypes.java @@ -102,11 +102,11 @@ public static Schema4 getInstance() { List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -143,6 +143,13 @@ public static Schema4 getInstance() { public Schema4BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema4BoxedMap(validate(arg, configuration)); } + @Override + public Schema4Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } @@ -268,11 +275,11 @@ public Schema5List getNewInstance(List arg, List pathToItem, PathToSc for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -309,6 +316,13 @@ public Schema5List validate(List arg, SchemaConfiguration configuration) thro public Schema5BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema5BoxedList(validate(arg, configuration)); } + @Override + public Schema5Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface Schema6Boxed permits Schema6BoxedString { @@ -375,6 +389,13 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val public Schema6BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema6BoxedString(validate(arg, configuration)); } + @Override + public Schema6Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface ComposedOneOfDifferentTypes1Boxed permits ComposedOneOfDifferentTypes1BoxedVoid, ComposedOneOfDifferentTypes1BoxedBoolean, ComposedOneOfDifferentTypes1BoxedNumber, ComposedOneOfDifferentTypes1BoxedString, ComposedOneOfDifferentTypes1BoxedList, ComposedOneOfDifferentTypes1BoxedMap { @@ -539,11 +560,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -574,11 +595,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedString.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedString.java index 4b4a023b6cd..d4dc9ec084f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedString.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedString.java @@ -100,5 +100,12 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val public ComposedString1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ComposedString1BoxedString(validate(arg, configuration)); } + @Override + public ComposedString1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Currency.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Currency.java index 0842da2efaa..cc540c8c2f9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Currency.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Currency.java @@ -110,5 +110,12 @@ public String validate(StringCurrencyEnums arg,SchemaConfiguration configuration public Currency1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Currency1BoxedString(validate(arg, configuration)); } + @Override + public Currency1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DanishPig.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DanishPig.java index a903fecf15a..9b28b43a094 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DanishPig.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DanishPig.java @@ -112,6 +112,13 @@ public String validate(StringClassNameEnums arg,SchemaConfiguration configuratio public ClassNameBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ClassNameBoxedString(validate(arg, configuration)); } + @Override + public ClassNameBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class DanishPigMap extends FrozenMap<@Nullable Object> { @@ -245,11 +252,11 @@ public DanishPigMap getNewInstance(Map arg, List pathToItem, PathT List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -286,6 +293,13 @@ public DanishPigMap validate(Map arg, SchemaConfiguration configuration) t public DanishPig1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DanishPig1BoxedMap(validate(arg, configuration)); } + @Override + public DanishPig1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeTest.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeTest.java index ed097307bea..5d34b2dc7b9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeTest.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeTest.java @@ -95,5 +95,12 @@ public String defaultValue() { public DateTimeTest1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DateTimeTest1BoxedString(validate(arg, configuration)); } + @Override + public DateTimeTest1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeWithValidations.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeWithValidations.java index ae2af22fa18..eadd8a76100 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeWithValidations.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeWithValidations.java @@ -91,5 +91,12 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val public DateTimeWithValidations1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DateTimeWithValidations1BoxedString(validate(arg, configuration)); } + @Override + public DateTimeWithValidations1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateWithValidations.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateWithValidations.java index c0c8b2250d6..c30a44c17dd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateWithValidations.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateWithValidations.java @@ -91,5 +91,12 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val public DateWithValidations1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DateWithValidations1BoxedString(validate(arg, configuration)); } + @Override + public DateWithValidations1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Dog.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Dog.java index 7333285e839..4732a7167ce 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Dog.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Dog.java @@ -157,11 +157,11 @@ public Schema1Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -198,6 +198,13 @@ public Schema1Map validate(Map arg, SchemaConfiguration configuration) thr public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema1BoxedMap(validate(arg, configuration)); } + @Override + public Schema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } @@ -356,11 +363,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -391,11 +398,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Drawing.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Drawing.java index e27b9bd39b3..9af29e766a2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Drawing.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Drawing.java @@ -139,11 +139,11 @@ public ShapesList getNewInstance(List arg, List pathToItem, PathToSch for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof Object)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -183,6 +183,13 @@ public ShapesList validate(List arg, SchemaConfiguration configuration) throw public ShapesBoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ShapesBoxedList(validate(arg, configuration)); } + @Override + public ShapesBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class DrawingMap extends FrozenMap<@Nullable Object> { @@ -597,11 +604,11 @@ public DrawingMap getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -638,6 +645,13 @@ public DrawingMap validate(Map arg, SchemaConfiguration configuration) thr public Drawing1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Drawing1BoxedMap(validate(arg, configuration)); } + @Override + public Drawing1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumArrays.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumArrays.java index 5c7051000bf..1cb148337ee 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumArrays.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumArrays.java @@ -116,6 +116,13 @@ public String validate(StringJustSymbolEnums arg,SchemaConfiguration configurati public JustSymbolBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new JustSymbolBoxedString(validate(arg, configuration)); } + @Override + public JustSymbolBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public enum StringItemsEnums implements StringValueMethod { FISH("fish"), @@ -200,6 +207,13 @@ public String validate(StringItemsEnums arg,SchemaConfiguration configuration) t public ItemsBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ItemsBoxedString(validate(arg, configuration)); } + @Override + public ItemsBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class ArrayEnumList extends FrozenList { @@ -276,11 +290,11 @@ public ArrayEnumList getNewInstance(List arg, List pathToItem, PathTo for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -320,6 +334,13 @@ public ArrayEnumList validate(List arg, SchemaConfiguration configuration) th public ArrayEnumBoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ArrayEnumBoxedList(validate(arg, configuration)); } + @Override + public ArrayEnumBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class EnumArraysMap extends FrozenMap<@Nullable Object> { @@ -469,11 +490,11 @@ public EnumArraysMap getNewInstance(Map arg, List pathToItem, Path List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -510,6 +531,13 @@ public EnumArraysMap validate(Map arg, SchemaConfiguration configuration) public EnumArrays1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new EnumArrays1BoxedMap(validate(arg, configuration)); } + @Override + public EnumArrays1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumClass.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumClass.java index 7e81546e4e9..bea73702102 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumClass.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumClass.java @@ -124,5 +124,12 @@ public String defaultValue() { public EnumClass1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new EnumClass1BoxedString(validate(arg, configuration)); } + @Override + public EnumClass1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumTest.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumTest.java index 3157a1913ba..b0ab185439e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumTest.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumTest.java @@ -126,6 +126,13 @@ public String validate(StringEnumStringEnums arg,SchemaConfiguration configurati public EnumStringBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new EnumStringBoxedString(validate(arg, configuration)); } + @Override + public EnumStringBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public enum StringEnumStringRequiredEnums implements StringValueMethod { UPPER("UPPER"), @@ -212,6 +219,13 @@ public String validate(StringEnumStringRequiredEnums arg,SchemaConfiguration con public EnumStringRequiredBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new EnumStringRequiredBoxedString(validate(arg, configuration)); } + @Override + public EnumStringRequiredBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public enum IntegerEnumIntegerEnums implements IntegerValueMethod { POSITIVE_1(1), @@ -362,6 +376,13 @@ public double validate(DoubleEnumIntegerEnums arg,SchemaConfiguration configurat public EnumIntegerBoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new EnumIntegerBoxedNumber(validate(arg, configuration)); } + @Override + public EnumIntegerBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public enum DoubleEnumNumberEnums implements DoubleValueMethod { POSITIVE_1_PT_1(1.1d), @@ -471,6 +492,13 @@ public double validate(DoubleEnumNumberEnums arg,SchemaConfiguration configurati public EnumNumberBoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new EnumNumberBoxedNumber(validate(arg, configuration)); } + @Override + public EnumNumberBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class EnumTestMap extends FrozenMap<@Nullable Object> { @@ -1037,11 +1065,11 @@ public EnumTestMap getNewInstance(Map arg, List pathToItem, PathTo List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1078,6 +1106,13 @@ public EnumTestMap validate(Map arg, SchemaConfiguration configuration) th public EnumTest1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new EnumTest1BoxedMap(validate(arg, configuration)); } + @Override + public EnumTest1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EquilateralTriangle.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EquilateralTriangle.java index 9e323817d1e..511d329cb47 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EquilateralTriangle.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EquilateralTriangle.java @@ -120,6 +120,13 @@ public String validate(StringTriangleTypeEnums arg,SchemaConfiguration configura public TriangleTypeBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new TriangleTypeBoxedString(validate(arg, configuration)); } + @Override + public TriangleTypeBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class Schema1Map extends FrozenMap<@Nullable Object> { @@ -236,11 +243,11 @@ public Schema1Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -277,6 +284,13 @@ public Schema1Map validate(Map arg, SchemaConfiguration configuration) thr public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema1BoxedMap(validate(arg, configuration)); } + @Override + public Schema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } @@ -435,11 +449,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -470,11 +484,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/File.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/File.java index d4f12a3944d..4b2eb51f91e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/File.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/File.java @@ -156,11 +156,11 @@ public FileMap getNewInstance(Map arg, List pathToItem, PathToSche List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -197,6 +197,13 @@ public FileMap validate(Map arg, SchemaConfiguration configuration) throws public File1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new File1BoxedMap(validate(arg, configuration)); } + @Override + public File1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FileSchemaTestClass.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FileSchemaTestClass.java index aa4d922dffa..cc4f912d614 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FileSchemaTestClass.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FileSchemaTestClass.java @@ -99,11 +99,11 @@ public FilesList getNewInstance(List arg, List pathToItem, PathToSche for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof File.FileMap)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -143,6 +143,13 @@ public FilesList validate(List arg, SchemaConfiguration configuration) throws public FilesBoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new FilesBoxedList(validate(arg, configuration)); } + @Override + public FilesBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class FileSchemaTestClassMap extends FrozenMap<@Nullable Object> { @@ -286,11 +293,11 @@ public FileSchemaTestClassMap getNewInstance(Map arg, List pathToI List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -327,6 +334,13 @@ public FileSchemaTestClassMap validate(Map arg, SchemaConfiguration config public FileSchemaTestClass1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new FileSchemaTestClass1BoxedMap(validate(arg, configuration)); } + @Override + public FileSchemaTestClass1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Foo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Foo.java index 532ba8be8fc..a14f1cb5451 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Foo.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Foo.java @@ -142,11 +142,11 @@ public FooMap getNewInstance(Map arg, List pathToItem, PathToSchem List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -183,6 +183,13 @@ public FooMap validate(Map arg, SchemaConfiguration configuration) throws public Foo1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Foo1BoxedMap(validate(arg, configuration)); } + @Override + public Foo1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FormatTest.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FormatTest.java index 2e3be44e7d2..ed61c57c7c5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FormatTest.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FormatTest.java @@ -127,6 +127,13 @@ public double validate(double arg, SchemaConfiguration configuration) throws Val public IntegerSchemaBoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new IntegerSchemaBoxedNumber(validate(arg, configuration)); } + @Override + public IntegerSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class Int32 extends Int32JsonSchema.Int32JsonSchema1 { @@ -214,6 +221,13 @@ public float validate(float arg, SchemaConfiguration configuration) throws Valid public Int32withValidationsBoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Int32withValidationsBoxedNumber(validate(arg, configuration)); } + @Override + public Int32withValidationsBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class Int64 extends Int64JsonSchema.Int64JsonSchema1 { @@ -309,6 +323,13 @@ public double validate(double arg, SchemaConfiguration configuration) throws Val public NumberSchemaBoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NumberSchemaBoxedNumber(validate(arg, configuration)); } + @Override + public NumberSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface FloatSchemaBoxed permits FloatSchemaBoxedNumber { @@ -380,6 +401,13 @@ public float validate(float arg, SchemaConfiguration configuration) throws Valid public FloatSchemaBoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new FloatSchemaBoxedNumber(validate(arg, configuration)); } + @Override + public FloatSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class Float32 extends FloatJsonSchema.FloatJsonSchema1 { @@ -462,6 +490,13 @@ public double validate(double arg, SchemaConfiguration configuration) throws Val public DoubleSchemaBoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DoubleSchemaBoxedNumber(validate(arg, configuration)); } + @Override + public DoubleSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class Float64 extends DoubleJsonSchema.DoubleJsonSchema1 { @@ -571,11 +606,11 @@ public ArrayWithUniqueItemsList getNewInstance(List arg, List pathToI for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof Number)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -615,6 +650,13 @@ public ArrayWithUniqueItemsList validate(List arg, SchemaConfiguration config public ArrayWithUniqueItemsBoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ArrayWithUniqueItemsBoxedList(validate(arg, configuration)); } + @Override + public ArrayWithUniqueItemsBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface StringSchemaBoxed permits StringSchemaBoxedString { @@ -681,6 +723,13 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val public StringSchemaBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new StringSchemaBoxedString(validate(arg, configuration)); } + @Override + public StringSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class ByteSchema extends StringJsonSchema.StringJsonSchema1 { @@ -813,6 +862,13 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val public PasswordBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PasswordBoxedString(validate(arg, configuration)); } + @Override + public PasswordBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface PatternWithDigitsBoxed permits PatternWithDigitsBoxedString { @@ -878,6 +934,13 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val public PatternWithDigitsBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PatternWithDigitsBoxedString(validate(arg, configuration)); } + @Override + public PatternWithDigitsBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface PatternWithDigitsAndDelimiterBoxed permits PatternWithDigitsAndDelimiterBoxedString { @@ -944,6 +1007,13 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val public PatternWithDigitsAndDelimiterBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PatternWithDigitsAndDelimiterBoxedString(validate(arg, configuration)); } + @Override + public PatternWithDigitsAndDelimiterBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class NoneProp extends NullJsonSchema.NullJsonSchema1 { @@ -1916,11 +1986,11 @@ public FormatTestMap getNewInstance(Map arg, List pathToItem, Path List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1957,6 +2027,13 @@ public FormatTestMap validate(Map arg, SchemaConfiguration configuration) public FormatTest1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new FormatTest1BoxedMap(validate(arg, configuration)); } + @Override + public FormatTest1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FromSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FromSchema.java index 9dd7e0e46a3..5692157bda6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FromSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FromSchema.java @@ -211,11 +211,11 @@ public FromSchemaMap getNewInstance(Map arg, List pathToItem, Path List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -252,6 +252,13 @@ public FromSchemaMap validate(Map arg, SchemaConfiguration configuration) public FromSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new FromSchema1BoxedMap(validate(arg, configuration)); } + @Override + public FromSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Fruit.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Fruit.java index 1bdcf88ff5c..275d87f5474 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Fruit.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Fruit.java @@ -273,11 +273,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -308,11 +308,11 @@ public FruitMap getNewInstance(Map arg, List pathToItem, PathToSch List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FruitReq.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FruitReq.java index 4e17b6d312f..e5d97263a06 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FruitReq.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FruitReq.java @@ -203,11 +203,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -238,11 +238,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GmFruit.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GmFruit.java index 14b914f74c3..cb3f4599c5b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GmFruit.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GmFruit.java @@ -273,11 +273,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -308,11 +308,11 @@ public GmFruitMap getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GrandparentAnimal.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GrandparentAnimal.java index 668d0aa0ee4..4734ddc65a3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GrandparentAnimal.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GrandparentAnimal.java @@ -165,11 +165,11 @@ public GrandparentAnimalMap getNewInstance(Map arg, List pathToIte List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -206,6 +206,13 @@ public GrandparentAnimalMap validate(Map arg, SchemaConfiguration configur public GrandparentAnimal1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new GrandparentAnimal1BoxedMap(validate(arg, configuration)); } + @Override + public GrandparentAnimal1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HasOnlyReadOnly.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HasOnlyReadOnly.java index 922ad832e80..4687de450d9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HasOnlyReadOnly.java @@ -192,11 +192,11 @@ public HasOnlyReadOnlyMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -233,6 +233,13 @@ public HasOnlyReadOnlyMap validate(Map arg, SchemaConfiguration configurat public HasOnlyReadOnly1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new HasOnlyReadOnly1BoxedMap(validate(arg, configuration)); } + @Override + public HasOnlyReadOnly1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HealthCheckResult.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HealthCheckResult.java index 71ee9e5afe7..a499676d162 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HealthCheckResult.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HealthCheckResult.java @@ -251,11 +251,11 @@ public HealthCheckResultMap getNewInstance(Map arg, List pathToIte List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -292,6 +292,13 @@ public HealthCheckResultMap validate(Map arg, SchemaConfiguration configur public HealthCheckResult1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new HealthCheckResult1BoxedMap(validate(arg, configuration)); } + @Override + public HealthCheckResult1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnum.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnum.java index c7511ff378d..b20ad0b018a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnum.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnum.java @@ -196,5 +196,12 @@ public double validate(DoubleIntegerEnumEnums arg,SchemaConfiguration configurat public IntegerEnum1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new IntegerEnum1BoxedNumber(validate(arg, configuration)); } + @Override + public IntegerEnum1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumBig.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumBig.java index cbfb98f8b25..74085a9268a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumBig.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumBig.java @@ -196,5 +196,12 @@ public double validate(DoubleIntegerEnumBigEnums arg,SchemaConfiguration configu public IntegerEnumBig1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new IntegerEnumBig1BoxedNumber(validate(arg, configuration)); } + @Override + public IntegerEnumBig1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumOneValue.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumOneValue.java index 40c3c688741..3157279dfbf 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumOneValue.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumOneValue.java @@ -186,5 +186,12 @@ public double validate(DoubleIntegerEnumOneValueEnums arg,SchemaConfiguration co public IntegerEnumOneValue1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new IntegerEnumOneValue1BoxedNumber(validate(arg, configuration)); } + @Override + public IntegerEnumOneValue1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumWithDefaultValue.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumWithDefaultValue.java index d27652915b7..a4afc589221 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumWithDefaultValue.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumWithDefaultValue.java @@ -198,5 +198,12 @@ public double validate(DoubleIntegerEnumWithDefaultValueEnums arg,SchemaConfigur public IntegerEnumWithDefaultValue1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new IntegerEnumWithDefaultValue1BoxedNumber(validate(arg, configuration)); } + @Override + public IntegerEnumWithDefaultValue1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerMax10.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerMax10.java index 8939d1038b9..aca58126d3d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerMax10.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerMax10.java @@ -106,5 +106,12 @@ public double validate(double arg, SchemaConfiguration configuration) throws Val public IntegerMax101BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new IntegerMax101BoxedNumber(validate(arg, configuration)); } + @Override + public IntegerMax101Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerMin15.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerMin15.java index d3996ca18c3..40f8b80b761 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerMin15.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerMin15.java @@ -106,5 +106,12 @@ public double validate(double arg, SchemaConfiguration configuration) throws Val public IntegerMin151BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new IntegerMin151BoxedNumber(validate(arg, configuration)); } + @Override + public IntegerMin151Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IsoscelesTriangle.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IsoscelesTriangle.java index d40278b9ccc..57a6f72619c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IsoscelesTriangle.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IsoscelesTriangle.java @@ -120,6 +120,13 @@ public String validate(StringTriangleTypeEnums arg,SchemaConfiguration configura public TriangleTypeBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new TriangleTypeBoxedString(validate(arg, configuration)); } + @Override + public TriangleTypeBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class Schema1Map extends FrozenMap<@Nullable Object> { @@ -236,11 +243,11 @@ public Schema1Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -277,6 +284,13 @@ public Schema1Map validate(Map arg, SchemaConfiguration configuration) thr public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema1BoxedMap(validate(arg, configuration)); } + @Override + public Schema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } @@ -435,11 +449,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -470,11 +484,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Items.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Items.java index cd1fc379619..594b1fe65bc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Items.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Items.java @@ -113,11 +113,11 @@ public ItemsList getNewInstance(List arg, List pathToItem, PathToSche for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof FrozenMap)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -157,5 +157,12 @@ public ItemsList validate(List arg, SchemaConfiguration configuration) throws public Items1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Items1BoxedList(validate(arg, configuration)); } + @Override + public Items1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequest.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequest.java index 96fa1b69a43..6d33dabcc9a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequest.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequest.java @@ -185,11 +185,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -220,11 +220,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -439,11 +439,11 @@ public JSONPatchRequestList getNewInstance(List arg, List pathToItem, for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -480,5 +480,12 @@ public JSONPatchRequestList validate(List arg, SchemaConfiguration configurat public JSONPatchRequest1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new JSONPatchRequest1BoxedList(validate(arg, configuration)); } + @Override + public JSONPatchRequest1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestAddReplaceTest.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestAddReplaceTest.java index f35347d2c72..208f6dbb772 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestAddReplaceTest.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestAddReplaceTest.java @@ -152,6 +152,13 @@ public String validate(StringOpEnums arg,SchemaConfiguration configuration) thro public OpBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new OpBoxedString(validate(arg, configuration)); } + @Override + public OpBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class JSONPatchRequestAddReplaceTestMap extends FrozenMap<@Nullable Object> { @@ -457,11 +464,11 @@ public JSONPatchRequestAddReplaceTestMap getNewInstance(Map arg, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -498,6 +505,13 @@ public JSONPatchRequestAddReplaceTestMap validate(Map arg, SchemaConfigura public JSONPatchRequestAddReplaceTest1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new JSONPatchRequestAddReplaceTest1BoxedMap(validate(arg, configuration)); } + @Override + public JSONPatchRequestAddReplaceTest1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestMoveCopy.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestMoveCopy.java index fc8cb358b22..756770311c5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestMoveCopy.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestMoveCopy.java @@ -150,6 +150,13 @@ public String validate(StringOpEnums arg,SchemaConfiguration configuration) thro public OpBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new OpBoxedString(validate(arg, configuration)); } + @Override + public OpBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class JSONPatchRequestMoveCopyMap extends FrozenMap { @@ -403,11 +410,11 @@ public JSONPatchRequestMoveCopyMap getNewInstance(Map arg, List pa List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -447,6 +454,13 @@ public JSONPatchRequestMoveCopyMap validate(Map arg, SchemaConfiguration c public JSONPatchRequestMoveCopy1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new JSONPatchRequestMoveCopy1BoxedMap(validate(arg, configuration)); } + @Override + public JSONPatchRequestMoveCopy1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestRemove.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestRemove.java index 13248ed3a80..e358e5e96d5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestRemove.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestRemove.java @@ -137,6 +137,13 @@ public String validate(StringOpEnums arg,SchemaConfiguration configuration) thro public OpBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new OpBoxedString(validate(arg, configuration)); } + @Override + public OpBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class JSONPatchRequestRemoveMap extends FrozenMap { @@ -307,11 +314,11 @@ public JSONPatchRequestRemoveMap getNewInstance(Map arg, List path List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -351,6 +358,13 @@ public JSONPatchRequestRemoveMap validate(Map arg, SchemaConfiguration con public JSONPatchRequestRemove1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new JSONPatchRequestRemove1BoxedMap(validate(arg, configuration)); } + @Override + public JSONPatchRequestRemove1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Mammal.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Mammal.java index 1bae55f9faa..4cd47033fbd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Mammal.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Mammal.java @@ -191,11 +191,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -226,11 +226,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MapTest.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MapTest.java index 26764454780..b0e6e922553 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MapTest.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MapTest.java @@ -135,11 +135,11 @@ public AdditionalPropertiesMap getNewInstance(Map arg, List pathTo List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -179,6 +179,13 @@ public AdditionalPropertiesMap validate(Map arg, SchemaConfiguration confi public AdditionalPropertiesBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AdditionalPropertiesBoxedMap(validate(arg, configuration)); } + @Override + public AdditionalPropertiesBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } @@ -271,11 +278,11 @@ public MapMapOfStringMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof AdditionalPropertiesMap)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -315,6 +322,13 @@ public MapMapOfStringMap validate(Map arg, SchemaConfiguration configurati public MapMapOfStringBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MapMapOfStringBoxedMap(validate(arg, configuration)); } + @Override + public MapMapOfStringBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public enum StringAdditionalPropertiesEnums implements StringValueMethod { @@ -400,6 +414,13 @@ public String validate(StringAdditionalPropertiesEnums arg,SchemaConfiguration c public AdditionalProperties2BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AdditionalProperties2BoxedString(validate(arg, configuration)); } + @Override + public AdditionalProperties2Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class MapOfEnumStringMap extends FrozenMap { @@ -498,11 +519,11 @@ public MapOfEnumStringMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -542,6 +563,13 @@ public MapOfEnumStringMap validate(Map arg, SchemaConfiguration configurat public MapOfEnumStringBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MapOfEnumStringBoxedMap(validate(arg, configuration)); } + @Override + public MapOfEnumStringBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } @@ -650,11 +678,11 @@ public DirectMapMap getNewInstance(Map arg, List pathToItem, PathT List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof Boolean)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -694,6 +722,13 @@ public DirectMapMap validate(Map arg, SchemaConfiguration configuration) t public DirectMapBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DirectMapBoxedMap(validate(arg, configuration)); } + @Override + public DirectMapBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } @@ -892,11 +927,11 @@ public MapTestMap getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -933,6 +968,13 @@ public MapTestMap validate(Map arg, SchemaConfiguration configuration) thr public MapTest1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MapTest1BoxedMap(validate(arg, configuration)); } + @Override + public MapTest1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.java index fb59caeb809..60737d39485 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.java @@ -142,11 +142,11 @@ public MapMap getNewInstance(Map arg, List pathToItem, PathToSchem List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof Animal.AnimalMap)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -186,6 +186,13 @@ public MapMap validate(Map arg, SchemaConfiguration configuration) throws public MapSchemaBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MapSchemaBoxedMap(validate(arg, configuration)); } + @Override + public MapSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } @@ -337,11 +344,11 @@ public MixedPropertiesAndAdditionalPropertiesClassMap getNewInstance(Map a List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -378,6 +385,13 @@ public MixedPropertiesAndAdditionalPropertiesClassMap validate(Map arg, Sc public MixedPropertiesAndAdditionalPropertiesClass1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MixedPropertiesAndAdditionalPropertiesClass1BoxedMap(validate(arg, configuration)); } + @Override + public MixedPropertiesAndAdditionalPropertiesClass1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Money.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Money.java index fe66af637af..646f92ae740 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Money.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Money.java @@ -225,11 +225,11 @@ public MoneyMap getNewInstance(Map arg, List pathToItem, PathToSch List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -266,6 +266,13 @@ public MoneyMap validate(Map arg, SchemaConfiguration configuration) throw public Money1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Money1BoxedMap(validate(arg, configuration)); } + @Override + public Money1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MyObjectDto.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MyObjectDto.java index c613d5fb8f8..b985e9350ac 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MyObjectDto.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MyObjectDto.java @@ -153,11 +153,11 @@ public MyObjectDtoMap getNewInstance(Map arg, List pathToItem, Pat List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -197,6 +197,13 @@ public MyObjectDtoMap validate(Map arg, SchemaConfiguration configuration) public MyObjectDto1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MyObjectDto1BoxedMap(validate(arg, configuration)); } + @Override + public MyObjectDto1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Name.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Name.java index 21f701f01eb..081f87d53d9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Name.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Name.java @@ -372,11 +372,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -407,11 +407,11 @@ public NameMap getNewInstance(Map arg, List pathToItem, PathToSche List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NoAdditionalProperties.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NoAdditionalProperties.java index 4990251ea04..dec315f92ed 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NoAdditionalProperties.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NoAdditionalProperties.java @@ -235,11 +235,11 @@ public NoAdditionalPropertiesMap getNewInstance(Map arg, List path List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof Number)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -279,6 +279,13 @@ public NoAdditionalPropertiesMap validate(Map arg, SchemaConfiguration con public NoAdditionalProperties1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NoAdditionalProperties1BoxedMap(validate(arg, configuration)); } + @Override + public NoAdditionalProperties1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableClass.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableClass.java index 137b783560e..d412dae60ee 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableClass.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableClass.java @@ -98,11 +98,11 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -898,11 +898,11 @@ public ArrayNullablePropList getNewInstance(List arg, List pathToItem for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof FrozenMap)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -1022,11 +1022,11 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1178,11 +1178,11 @@ public ArrayAndItemsNullablePropList getNewInstance(List arg, List pa for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance == null || itemInstance instanceof FrozenMap)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -1302,11 +1302,11 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1437,11 +1437,11 @@ public ArrayItemsNullableList getNewInstance(List arg, List pathToIte for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance == null || itemInstance instanceof FrozenMap)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -1481,6 +1481,13 @@ public ArrayItemsNullableList validate(List arg, SchemaConfiguration configur public ArrayItemsNullableBoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ArrayItemsNullableBoxedList(validate(arg, configuration)); } + @Override + public ArrayItemsNullableBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class AdditionalProperties extends MapJsonSchema.MapJsonSchema1 { @@ -1604,11 +1611,11 @@ public ObjectNullablePropMap getNewInstance(Map arg, List pathToIt List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof FrozenMap)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -1728,11 +1735,11 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1906,11 +1913,11 @@ public ObjectAndItemsNullablePropMap getNewInstance(Map arg, List List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance == null || propertyInstance instanceof FrozenMap)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -2030,11 +2037,11 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -2187,11 +2194,11 @@ public ObjectItemsNullableMap getNewInstance(Map arg, List pathToI List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance == null || propertyInstance instanceof FrozenMap)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -2231,6 +2238,13 @@ public ObjectItemsNullableMap validate(Map arg, SchemaConfiguration config public ObjectItemsNullableBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ObjectItemsNullableBoxedMap(validate(arg, configuration)); } + @Override + public ObjectItemsNullableBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } @@ -2765,11 +2779,11 @@ public NullableClassMap getNewInstance(Map arg, List pathToItem, P List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance == null || propertyInstance instanceof Object)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -2809,6 +2823,13 @@ public NullableClassMap validate(Map arg, SchemaConfiguration configuratio public NullableClass1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NullableClass1BoxedMap(validate(arg, configuration)); } + @Override + public NullableClass1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableShape.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableShape.java index 7a1eda1e21b..4a127d0c38e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableShape.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableShape.java @@ -205,11 +205,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -240,11 +240,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberOnly.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberOnly.java index 1ecaf3e6563..2aec9f86eb4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberOnly.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberOnly.java @@ -172,11 +172,11 @@ public NumberOnlyMap getNewInstance(Map arg, List pathToItem, Path List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -213,6 +213,13 @@ public NumberOnlyMap validate(Map arg, SchemaConfiguration configuration) public NumberOnly1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NumberOnly1BoxedMap(validate(arg, configuration)); } + @Override + public NumberOnly1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberWithExclusiveMinMax.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberWithExclusiveMinMax.java index 4b8d73325b3..d839b2752c8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberWithExclusiveMinMax.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberWithExclusiveMinMax.java @@ -106,5 +106,12 @@ public double validate(double arg, SchemaConfiguration configuration) throws Val public NumberWithExclusiveMinMax1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NumberWithExclusiveMinMax1BoxedNumber(validate(arg, configuration)); } + @Override + public NumberWithExclusiveMinMax1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberWithValidations.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberWithValidations.java index a3290034da7..b859f61f42c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberWithValidations.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberWithValidations.java @@ -106,5 +106,12 @@ public double validate(double arg, SchemaConfiguration configuration) throws Val public NumberWithValidations1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NumberWithValidations1BoxedNumber(validate(arg, configuration)); } + @Override + public NumberWithValidations1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredProps.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredProps.java index a7fdceaef88..7440322d228 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredProps.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredProps.java @@ -168,11 +168,11 @@ public ObjWithRequiredPropsMap getNewInstance(Map arg, List pathTo List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -209,6 +209,13 @@ public ObjWithRequiredPropsMap validate(Map arg, SchemaConfiguration confi public ObjWithRequiredProps1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ObjWithRequiredProps1BoxedMap(validate(arg, configuration)); } + @Override + public ObjWithRequiredProps1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredPropsBase.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredPropsBase.java index 34ab740d896..8d1712ddba9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredPropsBase.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredPropsBase.java @@ -165,11 +165,11 @@ public ObjWithRequiredPropsBaseMap getNewInstance(Map arg, List pa List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -206,6 +206,13 @@ public ObjWithRequiredPropsBaseMap validate(Map arg, SchemaConfiguration c public ObjWithRequiredPropsBase1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ObjWithRequiredPropsBase1BoxedMap(validate(arg, configuration)); } + @Override + public ObjWithRequiredPropsBase1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithArgAndArgsProperties.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithArgAndArgsProperties.java index ac0a50d13ac..2b92bc15f29 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithArgAndArgsProperties.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithArgAndArgsProperties.java @@ -228,11 +228,11 @@ public ObjectModelWithArgAndArgsPropertiesMap getNewInstance(Map arg, List List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -269,6 +269,13 @@ public ObjectModelWithArgAndArgsPropertiesMap validate(Map arg, SchemaConf public ObjectModelWithArgAndArgsProperties1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ObjectModelWithArgAndArgsProperties1BoxedMap(validate(arg, configuration)); } + @Override + public ObjectModelWithArgAndArgsProperties1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithRefProps.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithRefProps.java index 72a124f4cf8..46d4dd148c3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithRefProps.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithRefProps.java @@ -216,11 +216,11 @@ public ObjectModelWithRefPropsMap getNewInstance(Map arg, List pat List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -257,6 +257,13 @@ public ObjectModelWithRefPropsMap validate(Map arg, SchemaConfiguration co public ObjectModelWithRefProps1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ObjectModelWithRefProps1BoxedMap(validate(arg, configuration)); } + @Override + public ObjectModelWithRefProps1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.java index 3c31db8c2b2..83ae5af726f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.java @@ -239,11 +239,11 @@ public Schema1Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -280,6 +280,13 @@ public Schema1Map validate(Map arg, SchemaConfiguration configuration) thr public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema1BoxedMap(validate(arg, configuration)); } + @Override + public Schema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } @@ -438,11 +445,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -473,11 +480,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithCollidingProperties.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithCollidingProperties.java index 9e1dfee66b9..0b16a14b9db 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithCollidingProperties.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithCollidingProperties.java @@ -194,11 +194,11 @@ public ObjectWithCollidingPropertiesMap getNewInstance(Map arg, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -235,6 +235,13 @@ public ObjectWithCollidingPropertiesMap validate(Map arg, SchemaConfigurat public ObjectWithCollidingProperties1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ObjectWithCollidingProperties1BoxedMap(validate(arg, configuration)); } + @Override + public ObjectWithCollidingProperties1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDecimalProperties.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDecimalProperties.java index be4e76abbd3..fe684c55bfe 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDecimalProperties.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDecimalProperties.java @@ -208,11 +208,11 @@ public ObjectWithDecimalPropertiesMap getNewInstance(Map arg, List List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -249,6 +249,13 @@ public ObjectWithDecimalPropertiesMap validate(Map arg, SchemaConfiguratio public ObjectWithDecimalProperties1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ObjectWithDecimalProperties1BoxedMap(validate(arg, configuration)); } + @Override + public ObjectWithDecimalProperties1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDifficultlyNamedProps.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDifficultlyNamedProps.java index ff934f2df7e..2d7d1e7104f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDifficultlyNamedProps.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDifficultlyNamedProps.java @@ -254,11 +254,11 @@ public ObjectWithDifficultlyNamedPropsMap getNewInstance(Map arg, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -295,6 +295,13 @@ public ObjectWithDifficultlyNamedPropsMap validate(Map arg, SchemaConfigur public ObjectWithDifficultlyNamedProps1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ObjectWithDifficultlyNamedProps1BoxedMap(validate(arg, configuration)); } + @Override + public ObjectWithDifficultlyNamedProps1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionProperty.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionProperty.java index d17d17e791c..e5dd13be7c0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionProperty.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionProperty.java @@ -98,6 +98,13 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val public Schema0BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema0BoxedString(validate(arg, configuration)); } + @Override + public Schema0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface SomePropBoxed permits SomePropBoxedVoid, SomePropBoxedBoolean, SomePropBoxedNumber, SomePropBoxedString, SomePropBoxedList, SomePropBoxedMap { @@ -248,11 +255,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -283,11 +290,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -543,11 +550,11 @@ public ObjectWithInlineCompositionPropertyMap getNewInstance(Map arg, List List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -584,6 +591,13 @@ public ObjectWithInlineCompositionPropertyMap validate(Map arg, SchemaConf public ObjectWithInlineCompositionProperty1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ObjectWithInlineCompositionProperty1BoxedMap(validate(arg, configuration)); } + @Override + public ObjectWithInlineCompositionProperty1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInvalidNamedRefedProperties.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInvalidNamedRefedProperties.java index d01389c8786..52c1ba51fbe 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInvalidNamedRefedProperties.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInvalidNamedRefedProperties.java @@ -197,11 +197,11 @@ public ObjectWithInvalidNamedRefedPropertiesMap getNewInstance(Map arg, Li List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -238,6 +238,13 @@ public ObjectWithInvalidNamedRefedPropertiesMap validate(Map arg, SchemaCo public ObjectWithInvalidNamedRefedProperties1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ObjectWithInvalidNamedRefedProperties1BoxedMap(validate(arg, configuration)); } + @Override + public ObjectWithInvalidNamedRefedProperties1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithNonIntersectingValues.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithNonIntersectingValues.java index a7e971e4b97..c27d1e36619 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithNonIntersectingValues.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithNonIntersectingValues.java @@ -201,11 +201,11 @@ public ObjectWithNonIntersectingValuesMap getNewInstance(Map arg, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof Object)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -245,6 +245,13 @@ public ObjectWithNonIntersectingValuesMap validate(Map arg, SchemaConfigur public ObjectWithNonIntersectingValues1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ObjectWithNonIntersectingValues1BoxedMap(validate(arg, configuration)); } + @Override + public ObjectWithNonIntersectingValues1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithOnlyOptionalProps.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithOnlyOptionalProps.java index 09eb8c0d06c..5f76e1a3b33 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithOnlyOptionalProps.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithOnlyOptionalProps.java @@ -216,11 +216,11 @@ public ObjectWithOnlyOptionalPropsMap getNewInstance(Map arg, List List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof Object)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -260,6 +260,13 @@ public ObjectWithOnlyOptionalPropsMap validate(Map arg, SchemaConfiguratio public ObjectWithOnlyOptionalProps1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ObjectWithOnlyOptionalProps1BoxedMap(validate(arg, configuration)); } + @Override + public ObjectWithOnlyOptionalProps1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithOptionalTestProp.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithOptionalTestProp.java index a360d06fe01..224aad5414a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithOptionalTestProp.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithOptionalTestProp.java @@ -154,11 +154,11 @@ public ObjectWithOptionalTestPropMap getNewInstance(Map arg, List List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -195,6 +195,13 @@ public ObjectWithOptionalTestPropMap validate(Map arg, SchemaConfiguration public ObjectWithOptionalTestProp1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ObjectWithOptionalTestProp1BoxedMap(validate(arg, configuration)); } + @Override + public ObjectWithOptionalTestProp1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithValidations.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithValidations.java index 12a0cb837ea..55808b655b4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithValidations.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithValidations.java @@ -72,11 +72,11 @@ public static ObjectWithValidations1 getInstance() { List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -113,6 +113,13 @@ public static ObjectWithValidations1 getInstance() { public ObjectWithValidations1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ObjectWithValidations1BoxedMap(validate(arg, configuration)); } + @Override + public ObjectWithValidations1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Order.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Order.java index f3a55eeb46a..de3df444595 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Order.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Order.java @@ -164,6 +164,13 @@ public String validate(StringStatusEnums arg,SchemaConfiguration configuration) public StatusBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new StatusBoxedString(validate(arg, configuration)); } + @Override + public StatusBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class Complete extends BooleanJsonSchema.BooleanJsonSchema1 { @@ -474,11 +481,11 @@ public OrderMap getNewInstance(Map arg, List pathToItem, PathToSch List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -515,6 +522,13 @@ public OrderMap validate(Map arg, SchemaConfiguration configuration) throw public Order1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Order1BoxedMap(validate(arg, configuration)); } + @Override + public Order1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/PaginatedResultMyObjectDto.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/PaginatedResultMyObjectDto.java index 1b76d56bae7..7341ce01c3f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/PaginatedResultMyObjectDto.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/PaginatedResultMyObjectDto.java @@ -124,11 +124,11 @@ public ResultsList getNewInstance(List arg, List pathToItem, PathToSc for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof MyObjectDto.MyObjectDtoMap)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -168,6 +168,13 @@ public ResultsList validate(List arg, SchemaConfiguration configuration) thro public ResultsBoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ResultsBoxedList(validate(arg, configuration)); } + @Override + public ResultsBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class PaginatedResultMyObjectDtoMap extends FrozenMap { @@ -354,11 +361,11 @@ public PaginatedResultMyObjectDtoMap getNewInstance(Map arg, List List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof Object)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -398,6 +405,13 @@ public PaginatedResultMyObjectDtoMap validate(Map arg, SchemaConfiguration public PaginatedResultMyObjectDto1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PaginatedResultMyObjectDto1BoxedMap(validate(arg, configuration)); } + @Override + public PaginatedResultMyObjectDto1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ParentPet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ParentPet.java index e9cf6bd481a..d9acac7bd8a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ParentPet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ParentPet.java @@ -74,11 +74,11 @@ public static ParentPet1 getInstance() { List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -115,6 +115,13 @@ public static ParentPet1 getInstance() { public ParentPet1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ParentPet1BoxedMap(validate(arg, configuration)); } + @Override + public ParentPet1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pet.java index a7e4c75a87a..22e72fa1bb5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pet.java @@ -138,11 +138,11 @@ public PhotoUrlsList getNewInstance(List arg, List pathToItem, PathTo for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -182,6 +182,13 @@ public PhotoUrlsList validate(List arg, SchemaConfiguration configuration) th public PhotoUrlsBoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PhotoUrlsBoxedList(validate(arg, configuration)); } + @Override + public PhotoUrlsBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public enum StringStatusEnums implements StringValueMethod { AVAILABLE("available"), @@ -268,6 +275,13 @@ public String validate(StringStatusEnums arg,SchemaConfiguration configuration) public StatusBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new StatusBoxedString(validate(arg, configuration)); } + @Override + public StatusBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class TagsList extends FrozenList { @@ -339,11 +353,11 @@ public TagsList getNewInstance(List arg, List pathToItem, PathToSchem for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof Tag.TagMap)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -383,6 +397,13 @@ public TagsList validate(List arg, SchemaConfiguration configuration) throws public TagsBoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new TagsBoxedList(validate(arg, configuration)); } + @Override + public TagsBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class PetMap extends FrozenMap<@Nullable Object> { @@ -697,11 +718,11 @@ public PetMap getNewInstance(Map arg, List pathToItem, PathToSchem List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -738,6 +759,13 @@ public PetMap validate(Map arg, SchemaConfiguration configuration) throws public Pet1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Pet1BoxedMap(validate(arg, configuration)); } + @Override + public Pet1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pig.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pig.java index b6960ea8971..9a385a57d58 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pig.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pig.java @@ -190,11 +190,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -225,11 +225,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Player.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Player.java index 820a6465e07..e0555909702 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Player.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Player.java @@ -183,11 +183,11 @@ public PlayerMap getNewInstance(Map arg, List pathToItem, PathToSc List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -224,6 +224,13 @@ public PlayerMap validate(Map arg, SchemaConfiguration configuration) thro public Player1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Player1BoxedMap(validate(arg, configuration)); } + @Override + public Player1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/PublicKey.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/PublicKey.java index 9464b7074e6..6e03a2081a6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/PublicKey.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/PublicKey.java @@ -156,11 +156,11 @@ public PublicKeyMap getNewInstance(Map arg, List pathToItem, PathT List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -197,6 +197,13 @@ public PublicKeyMap validate(Map arg, SchemaConfiguration configuration) t public PublicKey1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PublicKey1BoxedMap(validate(arg, configuration)); } + @Override + public PublicKey1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Quadrilateral.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Quadrilateral.java index c23f3cfa049..eb0913bb7b3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Quadrilateral.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Quadrilateral.java @@ -190,11 +190,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -225,11 +225,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterface.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterface.java index 9f5713fd16b..a78c73750d0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterface.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterface.java @@ -121,6 +121,13 @@ public String validate(StringShapeTypeEnums arg,SchemaConfiguration configuratio public ShapeTypeBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ShapeTypeBoxedString(validate(arg, configuration)); } + @Override + public ShapeTypeBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class QuadrilateralType extends StringJsonSchema.StringJsonSchema1 { @@ -423,11 +430,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -458,11 +465,11 @@ public QuadrilateralInterfaceMap getNewInstance(Map arg, List path List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReadOnlyFirst.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReadOnlyFirst.java index 6ca5599a7ef..68e6ae7401f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReadOnlyFirst.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReadOnlyFirst.java @@ -192,11 +192,11 @@ public ReadOnlyFirstMap getNewInstance(Map arg, List pathToItem, P List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -233,6 +233,13 @@ public ReadOnlyFirstMap validate(Map arg, SchemaConfiguration configuratio public ReadOnlyFirst1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ReadOnlyFirst1BoxedMap(validate(arg, configuration)); } + @Override + public ReadOnlyFirst1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromExplicitAddProps.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromExplicitAddProps.java index bfcb0c28bb5..6daa60214b9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromExplicitAddProps.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromExplicitAddProps.java @@ -213,11 +213,11 @@ public ReqPropsFromExplicitAddPropsMap getNewInstance(Map arg, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -257,6 +257,13 @@ public ReqPropsFromExplicitAddPropsMap validate(Map arg, SchemaConfigurati public ReqPropsFromExplicitAddProps1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ReqPropsFromExplicitAddProps1BoxedMap(validate(arg, configuration)); } + @Override + public ReqPropsFromExplicitAddProps1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromTrueAddProps.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromTrueAddProps.java index baa255bfd36..4c881bceaf6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromTrueAddProps.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromTrueAddProps.java @@ -365,11 +365,11 @@ public ReqPropsFromTrueAddPropsMap getNewInstance(Map arg, List pa List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -406,6 +406,13 @@ public ReqPropsFromTrueAddPropsMap validate(Map arg, SchemaConfiguration c public ReqPropsFromTrueAddProps1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ReqPropsFromTrueAddProps1BoxedMap(validate(arg, configuration)); } + @Override + public ReqPropsFromTrueAddProps1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromUnsetAddProps.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromUnsetAddProps.java index 6191b97cc32..4d680f215bc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromUnsetAddProps.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromUnsetAddProps.java @@ -284,11 +284,11 @@ public ReqPropsFromUnsetAddPropsMap getNewInstance(Map arg, List p List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -325,6 +325,13 @@ public ReqPropsFromUnsetAddPropsMap validate(Map arg, SchemaConfiguration public ReqPropsFromUnsetAddProps1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ReqPropsFromUnsetAddProps1BoxedMap(validate(arg, configuration)); } + @Override + public ReqPropsFromUnsetAddProps1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReturnSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReturnSchema.java index c9f4c7eb82f..cde9348b342 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReturnSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReturnSchema.java @@ -267,11 +267,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -302,11 +302,11 @@ public ReturnMap getNewInstance(Map arg, List pathToItem, PathToSc List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangle.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangle.java index 18fcede7625..a3a51048188 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangle.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangle.java @@ -120,6 +120,13 @@ public String validate(StringTriangleTypeEnums arg,SchemaConfiguration configura public TriangleTypeBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new TriangleTypeBoxedString(validate(arg, configuration)); } + @Override + public TriangleTypeBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class Schema1Map extends FrozenMap<@Nullable Object> { @@ -236,11 +243,11 @@ public Schema1Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -277,6 +284,13 @@ public Schema1Map validate(Map arg, SchemaConfiguration configuration) thr public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema1BoxedMap(validate(arg, configuration)); } + @Override + public Schema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } @@ -435,11 +449,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -470,11 +484,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Schema200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Schema200Response.java index 26eea412af7..4ef90595cef 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Schema200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Schema200Response.java @@ -306,11 +306,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -341,11 +341,11 @@ public Schema200ResponseMap getNewInstance(Map arg, List pathToIte List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingArrayModel.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingArrayModel.java index 6980cea60eb..391c432945d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingArrayModel.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingArrayModel.java @@ -98,11 +98,11 @@ public SelfReferencingArrayModelList getNewInstance(List arg, List pa for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof SelfReferencingArrayModelList)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -142,5 +142,12 @@ public SelfReferencingArrayModelList validate(List arg, SchemaConfiguration c public SelfReferencingArrayModel1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new SelfReferencingArrayModel1BoxedList(validate(arg, configuration)); } + @Override + public SelfReferencingArrayModel1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingObjectModel.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingObjectModel.java index 5547957a0d1..06512cff6c2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingObjectModel.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingObjectModel.java @@ -159,11 +159,11 @@ public SelfReferencingObjectModelMap getNewInstance(Map arg, List List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -200,6 +200,13 @@ public SelfReferencingObjectModelMap validate(Map arg, SchemaConfiguration public SelfReferencingObjectModel1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new SelfReferencingObjectModel1BoxedMap(validate(arg, configuration)); } + @Override + public SelfReferencingObjectModel1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Shape.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Shape.java index 2f667feb8e6..42a01a295f5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Shape.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Shape.java @@ -190,11 +190,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -225,11 +225,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ShapeOrNull.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ShapeOrNull.java index 19fda5fde0f..f2ee34e6eee 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ShapeOrNull.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ShapeOrNull.java @@ -205,11 +205,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -240,11 +240,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateral.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateral.java index f50b64e3687..e003d011a1f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateral.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateral.java @@ -120,6 +120,13 @@ public String validate(StringQuadrilateralTypeEnums arg,SchemaConfiguration conf public QuadrilateralTypeBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new QuadrilateralTypeBoxedString(validate(arg, configuration)); } + @Override + public QuadrilateralTypeBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class Schema1Map extends FrozenMap<@Nullable Object> { @@ -236,11 +243,11 @@ public Schema1Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -277,6 +284,13 @@ public Schema1Map validate(Map arg, SchemaConfiguration configuration) thr public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema1BoxedMap(validate(arg, configuration)); } + @Override + public Schema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } @@ -435,11 +449,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -470,11 +484,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SomeObject.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SomeObject.java index 4e0a9043d28..f2be945112a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SomeObject.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SomeObject.java @@ -189,11 +189,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -224,11 +224,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SpecialModelname.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SpecialModelname.java index 4034a0b97e1..ded331f552f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SpecialModelname.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SpecialModelname.java @@ -156,11 +156,11 @@ public SpecialModelnameMap getNewInstance(Map arg, List pathToItem List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -197,6 +197,13 @@ public SpecialModelnameMap validate(Map arg, SchemaConfiguration configura public SpecialModelname1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new SpecialModelname1BoxedMap(validate(arg, configuration)); } + @Override + public SpecialModelname1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringBooleanMap.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringBooleanMap.java index f8fc1ea7641..a68c7c2ef85 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringBooleanMap.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringBooleanMap.java @@ -139,11 +139,11 @@ public StringBooleanMapMap getNewInstance(Map arg, List pathToItem List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof Boolean)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -183,6 +183,13 @@ public StringBooleanMapMap validate(Map arg, SchemaConfiguration configura public StringBooleanMap1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new StringBooleanMap1BoxedMap(validate(arg, configuration)); } + @Override + public StringBooleanMap1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringEnumWithDefaultValue.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringEnumWithDefaultValue.java index c0db69e11cd..ea6617a8b7a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringEnumWithDefaultValue.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringEnumWithDefaultValue.java @@ -120,5 +120,12 @@ public String defaultValue() { public StringEnumWithDefaultValue1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new StringEnumWithDefaultValue1BoxedString(validate(arg, configuration)); } + @Override + public StringEnumWithDefaultValue1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringWithValidation.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringWithValidation.java index d2d50e28628..c618fe0a225 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringWithValidation.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringWithValidation.java @@ -86,5 +86,12 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val public StringWithValidation1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new StringWithValidation1BoxedString(validate(arg, configuration)); } + @Override + public StringWithValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Tag.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Tag.java index 66dfdc271ab..bb7cc4c9bf1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Tag.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Tag.java @@ -211,11 +211,11 @@ public TagMap getNewInstance(Map arg, List pathToItem, PathToSchem List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -252,6 +252,13 @@ public TagMap validate(Map arg, SchemaConfiguration configuration) throws public Tag1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Tag1BoxedMap(validate(arg, configuration)); } + @Override + public Tag1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Triangle.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Triangle.java index 33d35b49bb5..9a6a0546bd6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Triangle.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Triangle.java @@ -191,11 +191,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -226,11 +226,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/TriangleInterface.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/TriangleInterface.java index 7ac12b0a168..8e0505b9eb8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/TriangleInterface.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/TriangleInterface.java @@ -121,6 +121,13 @@ public String validate(StringShapeTypeEnums arg,SchemaConfiguration configuratio public ShapeTypeBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ShapeTypeBoxedString(validate(arg, configuration)); } + @Override + public ShapeTypeBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class TriangleType extends StringJsonSchema.StringJsonSchema1 { @@ -423,11 +430,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -458,11 +465,11 @@ public TriangleInterfaceMap getNewInstance(Map arg, List pathToIte List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/UUIDString.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/UUIDString.java index 1b7585a4d25..3f8a3975eb4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/UUIDString.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/UUIDString.java @@ -88,5 +88,12 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val public UUIDString1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UUIDString1BoxedString(validate(arg, configuration)); } + @Override + public UUIDString1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/User.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/User.java index e557bebb9e2..feca1011e62 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/User.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/User.java @@ -202,11 +202,11 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -431,11 +431,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -466,11 +466,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1175,11 +1175,11 @@ public UserMap getNewInstance(Map arg, List pathToItem, PathToSche List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1216,6 +1216,13 @@ public UserMap validate(Map arg, SchemaConfiguration configuration) throws public User1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new User1BoxedMap(validate(arg, configuration)); } + @Override + public User1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Whale.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Whale.java index f39b89908e4..ae2e8a60d52 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Whale.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Whale.java @@ -135,6 +135,13 @@ public String validate(StringClassNameEnums arg,SchemaConfiguration configuratio public ClassNameBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ClassNameBoxedString(validate(arg, configuration)); } + @Override + public ClassNameBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class WhaleMap extends FrozenMap<@Nullable Object> { @@ -323,11 +330,11 @@ public WhaleMap getNewInstance(Map arg, List pathToItem, PathToSch List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -364,6 +371,13 @@ public WhaleMap validate(Map arg, SchemaConfiguration configuration) throw public Whale1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Whale1BoxedMap(validate(arg, configuration)); } + @Override + public Whale1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Zebra.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Zebra.java index 1dc0d43a493..168d9e099dd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Zebra.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Zebra.java @@ -128,6 +128,13 @@ public String validate(StringTypeEnums arg,SchemaConfiguration configuration) th public TypeBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new TypeBoxedString(validate(arg, configuration)); } + @Override + public TypeBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public enum StringClassNameEnums implements StringValueMethod { ZEBRA("zebra"); @@ -210,6 +217,13 @@ public String validate(StringClassNameEnums arg,SchemaConfiguration configuratio public ClassNameBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ClassNameBoxedString(validate(arg, configuration)); } + @Override + public ClassNameBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class ZebraMap extends FrozenMap<@Nullable Object> { @@ -446,11 +460,11 @@ public ZebraMap getNewInstance(Map arg, List pathToItem, PathToSch List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -487,6 +501,13 @@ public ZebraMap validate(Map arg, SchemaConfiguration configuration) throw public Zebra1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Zebra1BoxedMap(validate(arg, configuration)); } + @Override + public Zebra1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/HeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/HeaderParameters.java index f7550c05b31..e8300624dfc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/HeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/HeaderParameters.java @@ -136,11 +136,11 @@ public HeaderParametersMap getNewInstance(Map arg, List pathToItem List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -180,6 +180,13 @@ public HeaderParametersMap validate(Map arg, SchemaConfiguration configura public HeaderParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new HeaderParameters1BoxedMap(validate(arg, configuration)); } + @Override + public HeaderParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/PathParameters.java index 9f09ff30d0c..f7821fd56ce 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/PathParameters.java @@ -152,11 +152,11 @@ public PathParametersMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -196,6 +196,13 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati public PathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PathParameters1BoxedMap(validate(arg, configuration)); } + @Override + public PathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.java index cd82681419e..4f908c5276b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.java @@ -104,5 +104,12 @@ public String validate(StringSchemaEnums1 arg,SchemaConfiguration configuration) public Schema11BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema11BoxedString(validate(arg, configuration)); } + @Override + public Schema11Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/PathParameters.java index f5a13e1dc6f..255e522a255 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/PathParameters.java @@ -152,11 +152,11 @@ public PathParametersMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -196,6 +196,13 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati public PathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PathParameters1BoxedMap(validate(arg, configuration)); } + @Override + public PathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/QueryParameters.java index faa969b33ae..dac75cd1483 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/QueryParameters.java @@ -136,11 +136,11 @@ public QueryParametersMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -180,6 +180,13 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat public QueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new QueryParameters1BoxedMap(validate(arg, configuration)); } + @Override + public QueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.java index 811ae6fb709..ab34e28c0a1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.java @@ -104,5 +104,12 @@ public String validate(StringPathParamSchemaEnums0 arg,SchemaConfiguration confi public PathParamSchema01BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PathParamSchema01BoxedString(validate(arg, configuration)); } + @Override + public PathParamSchema01Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/HeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/HeaderParameters.java index 30d3a935480..ceba836e2ef 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/HeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/HeaderParameters.java @@ -136,11 +136,11 @@ public HeaderParametersMap getNewInstance(Map arg, List pathToItem List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -180,6 +180,13 @@ public HeaderParametersMap validate(Map arg, SchemaConfiguration configura public HeaderParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new HeaderParameters1BoxedMap(validate(arg, configuration)); } + @Override + public HeaderParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/PathParameters.java index 91ffc1a894d..951db208ba2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/PathParameters.java @@ -152,11 +152,11 @@ public PathParametersMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -196,6 +196,13 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati public PathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PathParameters1BoxedMap(validate(arg, configuration)); } + @Override + public PathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/HeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/HeaderParameters.java index 271be7caa4a..1cd54a34b9b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/HeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/HeaderParameters.java @@ -194,11 +194,11 @@ public HeaderParametersMap getNewInstance(Map arg, List pathToItem List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -235,6 +235,13 @@ public HeaderParametersMap validate(Map arg, SchemaConfiguration configura public HeaderParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new HeaderParameters1BoxedMap(validate(arg, configuration)); } + @Override + public HeaderParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/QueryParameters.java index 94757a95468..338a0580300 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/QueryParameters.java @@ -299,11 +299,11 @@ public QueryParametersMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -340,6 +340,13 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat public QueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new QueryParameters1BoxedMap(validate(arg, configuration)); } + @Override + public QueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter1/Schema1.java index 98fb519d5df..0fc48284aa6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter1/Schema1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter1/Schema1.java @@ -104,5 +104,12 @@ public String validate(StringSchemaEnums1 arg,SchemaConfiguration configuration) public Schema11BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema11BoxedString(validate(arg, configuration)); } + @Override + public Schema11Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter4/Schema4.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter4/Schema4.java index 73619d7e805..1bb4d6193c5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter4/Schema4.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter4/Schema4.java @@ -104,5 +104,12 @@ public String validate(StringSchemaEnums4 arg,SchemaConfiguration configuration) public Schema41BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema41BoxedString(validate(arg, configuration)); } + @Override + public Schema41Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/HeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/HeaderParameters.java index c5b02cd231a..f58e04d481f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/HeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/HeaderParameters.java @@ -176,11 +176,11 @@ public HeaderParametersMap getNewInstance(Map arg, List pathToItem List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -217,6 +217,13 @@ public HeaderParametersMap validate(Map arg, SchemaConfiguration configura public HeaderParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new HeaderParameters1BoxedMap(validate(arg, configuration)); } + @Override + public HeaderParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/QueryParameters.java index fbfdabb609a..9e6ff8205ec 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/QueryParameters.java @@ -292,11 +292,11 @@ public QueryParametersMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -333,6 +333,13 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat public QueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new QueryParameters1BoxedMap(validate(arg, configuration)); } + @Override + public QueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter0/Schema0.java index a391636ce60..8d4b0be69ff 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter0/Schema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter0/Schema0.java @@ -116,6 +116,13 @@ public String defaultValue() { public Items0BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Items0BoxedString(validate(arg, configuration)); } + @Override + public Items0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class SchemaList0 extends FrozenList { @@ -192,11 +199,11 @@ public SchemaList0 getNewInstance(List arg, List pathToItem, PathToSc for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -236,5 +243,12 @@ public SchemaList0 validate(List arg, SchemaConfiguration configuration) thro public Schema01BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema01BoxedList(validate(arg, configuration)); } + @Override + public Schema01Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter1/Schema1.java index e7ace986adc..c81dd30723a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter1/Schema1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter1/Schema1.java @@ -114,5 +114,12 @@ public String defaultValue() { public Schema11BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema11BoxedString(validate(arg, configuration)); } + @Override + public Schema11Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter2/Schema2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter2/Schema2.java index 73048bf3a86..df2e535ac26 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter2/Schema2.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter2/Schema2.java @@ -116,6 +116,13 @@ public String defaultValue() { public Items2BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Items2BoxedString(validate(arg, configuration)); } + @Override + public Items2Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class SchemaList2 extends FrozenList { @@ -192,11 +199,11 @@ public SchemaList2 getNewInstance(List arg, List pathToItem, PathToSc for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -236,5 +243,12 @@ public SchemaList2 validate(List arg, SchemaConfiguration configuration) thro public Schema21BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema21BoxedList(validate(arg, configuration)); } + @Override + public Schema21Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter3/Schema3.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter3/Schema3.java index 2e4e5c53fc2..200f9aea989 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter3/Schema3.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter3/Schema3.java @@ -114,5 +114,12 @@ public String defaultValue() { public Schema31BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema31BoxedString(validate(arg, configuration)); } + @Override + public Schema31Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter4/Schema4.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter4/Schema4.java index b9ffefc15db..1e2d7c15b13 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter4/Schema4.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter4/Schema4.java @@ -177,5 +177,12 @@ public double validate(DoubleSchemaEnums4 arg,SchemaConfiguration configuration) public Schema41BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema41BoxedNumber(validate(arg, configuration)); } + @Override + public Schema41Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter5/Schema5.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter5/Schema5.java index 30ca7130b1a..d726146199c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter5/Schema5.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter5/Schema5.java @@ -132,5 +132,12 @@ public double validate(DoubleSchemaEnums5 arg,SchemaConfiguration configuration) public Schema51BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema51BoxedNumber(validate(arg, configuration)); } + @Override + public Schema51Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java index 859281d7f7e..373f41b31b0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java @@ -124,6 +124,13 @@ public String defaultValue() { public ApplicationxwwwformurlencodedItemsBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ApplicationxwwwformurlencodedItemsBoxedString(validate(arg, configuration)); } + @Override + public ApplicationxwwwformurlencodedItemsBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class ApplicationxwwwformurlencodedEnumFormStringArrayList extends FrozenList { @@ -200,11 +207,11 @@ public ApplicationxwwwformurlencodedEnumFormStringArrayList getNewInstance(List< for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -244,6 +251,13 @@ public ApplicationxwwwformurlencodedEnumFormStringArrayList validate(List arg public ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList(validate(arg, configuration)); } + @Override + public ApplicationxwwwformurlencodedEnumFormStringArrayBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public enum StringApplicationxwwwformurlencodedEnumFormStringEnums implements StringValueMethod { _ABC("_abc"), @@ -337,6 +351,13 @@ public String defaultValue() { public ApplicationxwwwformurlencodedEnumFormStringBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ApplicationxwwwformurlencodedEnumFormStringBoxedString(validate(arg, configuration)); } + @Override + public ApplicationxwwwformurlencodedEnumFormStringBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class ApplicationxwwwformurlencodedSchemaMap extends FrozenMap<@Nullable Object> { @@ -480,11 +501,11 @@ public ApplicationxwwwformurlencodedSchemaMap getNewInstance(Map arg, List List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -521,6 +542,13 @@ public ApplicationxwwwformurlencodedSchemaMap validate(Map arg, SchemaConf public ApplicationxwwwformurlencodedSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ApplicationxwwwformurlencodedSchema1BoxedMap(validate(arg, configuration)); } + @Override + public ApplicationxwwwformurlencodedSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java index 9d5a9ca8517..20f4442dd32 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java @@ -118,6 +118,13 @@ public double validate(double arg, SchemaConfiguration configuration) throws Val public ApplicationxwwwformurlencodedIntegerBoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ApplicationxwwwformurlencodedIntegerBoxedNumber(validate(arg, configuration)); } + @Override + public ApplicationxwwwformurlencodedIntegerBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface ApplicationxwwwformurlencodedInt32Boxed permits ApplicationxwwwformurlencodedInt32BoxedNumber { @@ -194,6 +201,13 @@ public float validate(float arg, SchemaConfiguration configuration) throws Valid public ApplicationxwwwformurlencodedInt32BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ApplicationxwwwformurlencodedInt32BoxedNumber(validate(arg, configuration)); } + @Override + public ApplicationxwwwformurlencodedInt32Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class ApplicationxwwwformurlencodedInt64 extends Int64JsonSchema.Int64JsonSchema1 { @@ -288,6 +302,13 @@ public double validate(double arg, SchemaConfiguration configuration) throws Val public ApplicationxwwwformurlencodedNumberBoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ApplicationxwwwformurlencodedNumberBoxedNumber(validate(arg, configuration)); } + @Override + public ApplicationxwwwformurlencodedNumberBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface ApplicationxwwwformurlencodedFloatBoxed permits ApplicationxwwwformurlencodedFloatBoxedNumber { @@ -358,6 +379,13 @@ public float validate(float arg, SchemaConfiguration configuration) throws Valid public ApplicationxwwwformurlencodedFloatBoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ApplicationxwwwformurlencodedFloatBoxedNumber(validate(arg, configuration)); } + @Override + public ApplicationxwwwformurlencodedFloatBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface ApplicationxwwwformurlencodedDoubleBoxed permits ApplicationxwwwformurlencodedDoubleBoxedNumber { @@ -429,6 +457,13 @@ public double validate(double arg, SchemaConfiguration configuration) throws Val public ApplicationxwwwformurlencodedDoubleBoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ApplicationxwwwformurlencodedDoubleBoxedNumber(validate(arg, configuration)); } + @Override + public ApplicationxwwwformurlencodedDoubleBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface ApplicationxwwwformurlencodedStringBoxed permits ApplicationxwwwformurlencodedStringBoxedString { @@ -495,6 +530,13 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val public ApplicationxwwwformurlencodedStringBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ApplicationxwwwformurlencodedStringBoxedString(validate(arg, configuration)); } + @Override + public ApplicationxwwwformurlencodedStringBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed permits ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString { @@ -560,6 +602,13 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val public ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString(validate(arg, configuration)); } + @Override + public ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class ApplicationxwwwformurlencodedByte extends StringJsonSchema.StringJsonSchema1 { @@ -664,6 +713,13 @@ public String defaultValue() { public ApplicationxwwwformurlencodedDateTimeBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ApplicationxwwwformurlencodedDateTimeBoxedString(validate(arg, configuration)); } + @Override + public ApplicationxwwwformurlencodedDateTimeBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface ApplicationxwwwformurlencodedPasswordBoxed permits ApplicationxwwwformurlencodedPasswordBoxedString { @@ -729,6 +785,13 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val public ApplicationxwwwformurlencodedPasswordBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ApplicationxwwwformurlencodedPasswordBoxedString(validate(arg, configuration)); } + @Override + public ApplicationxwwwformurlencodedPasswordBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class ApplicationxwwwformurlencodedCallback extends StringJsonSchema.StringJsonSchema1 { @@ -1476,11 +1539,11 @@ public ApplicationxwwwformurlencodedSchemaMap getNewInstance(Map arg, List List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1517,6 +1580,13 @@ public ApplicationxwwwformurlencodedSchemaMap validate(Map arg, SchemaConf public ApplicationxwwwformurlencodedSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ApplicationxwwwformurlencodedSchema1BoxedMap(validate(arg, configuration)); } + @Override + public ApplicationxwwwformurlencodedSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/QueryParameters.java index 1cbe6427469..24e01b5b448 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/QueryParameters.java @@ -146,11 +146,11 @@ public QueryParametersMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -190,6 +190,13 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat public QueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new QueryParameters1BoxedMap(validate(arg, configuration)); } + @Override + public QueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/QueryParameters.java index fccf968d375..4b7ad8f27be 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/QueryParameters.java @@ -291,11 +291,11 @@ public QueryParametersMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -332,6 +332,13 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat public QueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new QueryParameters1BoxedMap(validate(arg, configuration)); } + @Override + public QueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/PathParameters.java index b9f02433644..086a2e9a146 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/PathParameters.java @@ -146,11 +146,11 @@ public PathParametersMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -190,6 +190,13 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati public PathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PathParameters1BoxedMap(validate(arg, configuration)); } + @Override + public PathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java index a3cad293856..76ae9ff97d4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java @@ -128,11 +128,11 @@ public ApplicationjsonSchemaMap getNewInstance(Map arg, List pathT List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -172,6 +172,13 @@ public ApplicationjsonSchemaMap validate(Map arg, SchemaConfiguration conf public ApplicationjsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ApplicationjsonSchema1BoxedMap(validate(arg, configuration)); } + @Override + public ApplicationjsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/QueryParameters.java index 86fb2036f31..e562508fcb9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/QueryParameters.java @@ -218,11 +218,11 @@ public QueryParametersMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -259,6 +259,13 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat public QueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new QueryParameters1BoxedMap(validate(arg, configuration)); } + @Override + public QueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.java index fd6188828da..ccc4f70f4e3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.java @@ -96,6 +96,13 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val public Schema00BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema00BoxedString(validate(arg, configuration)); } + @Override + public Schema00Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface Schema01Boxed permits Schema01BoxedVoid, Schema01BoxedBoolean, Schema01BoxedNumber, Schema01BoxedString, Schema01BoxedList, Schema01BoxedMap { @@ -246,11 +253,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -281,11 +288,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java index f3246b5724a..53b54f01e86 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java @@ -98,6 +98,13 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val public Schema01BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema01BoxedString(validate(arg, configuration)); } + @Override + public Schema01Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface SomeProp1Boxed permits SomeProp1BoxedVoid, SomeProp1BoxedBoolean, SomeProp1BoxedNumber, SomeProp1BoxedString, SomeProp1BoxedList, SomeProp1BoxedMap { @@ -248,11 +255,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -283,11 +290,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -537,11 +544,11 @@ public SchemaMap1 getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -578,6 +585,13 @@ public SchemaMap1 validate(Map arg, SchemaConfiguration configuration) thr public Schema11BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema11BoxedMap(validate(arg, configuration)); } + @Override + public Schema11Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.java index 8e212b7f0c1..2c96cc9523d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.java @@ -96,6 +96,13 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val public Applicationjson0BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Applicationjson0BoxedString(validate(arg, configuration)); } + @Override + public Applicationjson0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface ApplicationjsonSchema1Boxed permits ApplicationjsonSchema1BoxedVoid, ApplicationjsonSchema1BoxedBoolean, ApplicationjsonSchema1BoxedNumber, ApplicationjsonSchema1BoxedString, ApplicationjsonSchema1BoxedList, ApplicationjsonSchema1BoxedMap { @@ -246,11 +253,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -281,11 +288,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java index 7f83c94f025..21b63d62157 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -98,6 +98,13 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val public Multipartformdata0BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Multipartformdata0BoxedString(validate(arg, configuration)); } + @Override + public Multipartformdata0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface MultipartformdataSomePropBoxed permits MultipartformdataSomePropBoxedVoid, MultipartformdataSomePropBoxedBoolean, MultipartformdataSomePropBoxedNumber, MultipartformdataSomePropBoxedString, MultipartformdataSomePropBoxedList, MultipartformdataSomePropBoxedMap { @@ -248,11 +255,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -283,11 +290,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -537,11 +544,11 @@ public MultipartformdataSchemaMap getNewInstance(Map arg, List pat List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -578,6 +585,13 @@ public MultipartformdataSchemaMap validate(Map arg, SchemaConfiguration co public MultipartformdataSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MultipartformdataSchema1BoxedMap(validate(arg, configuration)); } + @Override + public MultipartformdataSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java index 220ba3893a3..695b0da9c5b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -96,6 +96,13 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val public Applicationjson0BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Applicationjson0BoxedString(validate(arg, configuration)); } + @Override + public Applicationjson0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface ApplicationjsonSchema1Boxed permits ApplicationjsonSchema1BoxedVoid, ApplicationjsonSchema1BoxedBoolean, ApplicationjsonSchema1BoxedNumber, ApplicationjsonSchema1BoxedString, ApplicationjsonSchema1BoxedList, ApplicationjsonSchema1BoxedMap { @@ -246,11 +253,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -281,11 +288,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.java index aba4ece9243..2a1e790f1a2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.java @@ -98,6 +98,13 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val public Multipartformdata0BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Multipartformdata0BoxedString(validate(arg, configuration)); } + @Override + public Multipartformdata0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface MultipartformdataSomePropBoxed permits MultipartformdataSomePropBoxedVoid, MultipartformdataSomePropBoxedBoolean, MultipartformdataSomePropBoxedNumber, MultipartformdataSomePropBoxedString, MultipartformdataSomePropBoxedList, MultipartformdataSomePropBoxedMap { @@ -248,11 +255,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -283,11 +290,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -537,11 +544,11 @@ public MultipartformdataSchemaMap getNewInstance(Map arg, List pat List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -578,6 +585,13 @@ public MultipartformdataSchemaMap validate(Map arg, SchemaConfiguration co public MultipartformdataSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MultipartformdataSchema1BoxedMap(validate(arg, configuration)); } + @Override + public MultipartformdataSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java index b7c55e7c11f..6ecf0882708 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java @@ -222,11 +222,11 @@ public ApplicationxwwwformurlencodedSchemaMap getNewInstance(Map arg, List List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -263,6 +263,13 @@ public ApplicationxwwwformurlencodedSchemaMap validate(Map arg, SchemaConf public ApplicationxwwwformurlencodedSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ApplicationxwwwformurlencodedSchema1BoxedMap(validate(arg, configuration)); } + @Override + public ApplicationxwwwformurlencodedSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.java index 0ec60b5540b..7abe38bfe8a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.java @@ -148,11 +148,11 @@ public ApplicationjsonSchemaMap getNewInstance(Map arg, List pathT List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -189,6 +189,13 @@ public ApplicationjsonSchemaMap validate(Map arg, SchemaConfiguration conf public ApplicationjsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ApplicationjsonSchema1BoxedMap(validate(arg, configuration)); } + @Override + public ApplicationjsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.java index 4072be30824..79627668a08 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -148,11 +148,11 @@ public MultipartformdataSchemaMap getNewInstance(Map arg, List pat List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -189,6 +189,13 @@ public MultipartformdataSchemaMap validate(Map arg, SchemaConfiguration co public MultipartformdataSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MultipartformdataSchema1BoxedMap(validate(arg, configuration)); } + @Override + public MultipartformdataSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/QueryParameters.java index d27a5760d0a..b5adb891967 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/QueryParameters.java @@ -136,11 +136,11 @@ public QueryParametersMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof Schema0.SchemaMap0)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -180,6 +180,13 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat public QueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new QueryParameters1BoxedMap(validate(arg, configuration)); } + @Override + public QueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/parameter0/Schema0.java index 9924d9435e5..de7150e15d9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/parameter0/Schema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/parameter0/Schema0.java @@ -148,11 +148,11 @@ public SchemaMap0 getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -189,6 +189,13 @@ public SchemaMap0 validate(Map arg, SchemaConfiguration configuration) thr public Schema01BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema01BoxedMap(validate(arg, configuration)); } + @Override + public Schema01Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/CookieParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/CookieParameters.java index d3ac7bbb603..74ba316da21 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/CookieParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/CookieParameters.java @@ -234,11 +234,11 @@ public CookieParametersMap getNewInstance(Map arg, List pathToItem List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -275,6 +275,13 @@ public CookieParametersMap validate(Map arg, SchemaConfiguration configura public CookieParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new CookieParameters1BoxedMap(validate(arg, configuration)); } + @Override + public CookieParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/HeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/HeaderParameters.java index 9c0bf861e55..2c7135c6a8c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/HeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/HeaderParameters.java @@ -206,11 +206,11 @@ public HeaderParametersMap getNewInstance(Map arg, List pathToItem List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -247,6 +247,13 @@ public HeaderParametersMap validate(Map arg, SchemaConfiguration configura public HeaderParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new HeaderParameters1BoxedMap(validate(arg, configuration)); } + @Override + public HeaderParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/PathParameters.java index bb4fe0ab198..026de5c455b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/PathParameters.java @@ -767,11 +767,11 @@ public PathParametersMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -808,6 +808,13 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati public PathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PathParameters1BoxedMap(validate(arg, configuration)); } + @Override + public PathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/QueryParameters.java index 2aedf118e66..7464d4071f8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/QueryParameters.java @@ -234,11 +234,11 @@ public QueryParametersMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -275,6 +275,13 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat public QueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new QueryParameters1BoxedMap(validate(arg, configuration)); } + @Override + public QueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.java index 70e9a94e065..136cee7d885 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.java @@ -164,11 +164,11 @@ public PathParametersMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof Number)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -208,6 +208,13 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati public PathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PathParameters1BoxedMap(validate(arg, configuration)); } + @Override + public PathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java index 5e1e51c2941..ff272e85252 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -199,11 +199,11 @@ public MultipartformdataSchemaMap getNewInstance(Map arg, List pat List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -240,6 +240,13 @@ public MultipartformdataSchemaMap validate(Map arg, SchemaConfiguration co public MultipartformdataSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MultipartformdataSchema1BoxedMap(validate(arg, configuration)); } + @Override + public MultipartformdataSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.java index ce6e0c060b5..8cd9c1628ed 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.java @@ -194,11 +194,11 @@ public QueryParametersMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof Object)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -238,6 +238,13 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat public QueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new QueryParameters1BoxedMap(validate(arg, configuration)); } + @Override + public QueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/QueryParameters.java index ad5b56e6ca9..b8e5f47e5e7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/QueryParameters.java @@ -136,11 +136,11 @@ public QueryParametersMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof Foo.FooMap)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -180,6 +180,13 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat public QueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new QueryParameters1BoxedMap(validate(arg, configuration)); } + @Override + public QueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/QueryParameters.java index 07ccfdd4448..8c8a5f005bf 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/QueryParameters.java @@ -1463,11 +1463,11 @@ public QueryParametersMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1504,6 +1504,13 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat public QueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new QueryParameters1BoxedMap(validate(arg, configuration)); } + @Override + public QueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.java index de352321486..0c364247e83 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.java @@ -103,11 +103,11 @@ public SchemaList0 getNewInstance(List arg, List pathToItem, PathToSc for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -147,5 +147,12 @@ public SchemaList0 validate(List arg, SchemaConfiguration configuration) thro public Schema01BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema01BoxedList(validate(arg, configuration)); } + @Override + public Schema01Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.java index 286caa25cbd..53e9e106e7b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.java @@ -103,11 +103,11 @@ public SchemaList1 getNewInstance(List arg, List pathToItem, PathToSc for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -147,5 +147,12 @@ public SchemaList1 validate(List arg, SchemaConfiguration configuration) thro public Schema11BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema11BoxedList(validate(arg, configuration)); } + @Override + public Schema11Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.java index feec8b007b7..8b001cea7dc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.java @@ -103,11 +103,11 @@ public SchemaList2 getNewInstance(List arg, List pathToItem, PathToSc for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -147,5 +147,12 @@ public SchemaList2 validate(List arg, SchemaConfiguration configuration) thro public Schema21BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema21BoxedList(validate(arg, configuration)); } + @Override + public Schema21Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.java index 3f62a62556e..6f94b32c521 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.java @@ -103,11 +103,11 @@ public SchemaList3 getNewInstance(List arg, List pathToItem, PathToSc for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -147,5 +147,12 @@ public SchemaList3 validate(List arg, SchemaConfiguration configuration) thro public Schema31BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema31BoxedList(validate(arg, configuration)); } + @Override + public Schema31Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.java index 3903bdaafc0..92352108c2d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.java @@ -103,11 +103,11 @@ public SchemaList4 getNewInstance(List arg, List pathToItem, PathToSc for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -147,5 +147,12 @@ public SchemaList4 validate(List arg, SchemaConfiguration configuration) thro public Schema41BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema41BoxedList(validate(arg, configuration)); } + @Override + public Schema41Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java index ed0d6b2d8b2..36009ea124b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -199,11 +199,11 @@ public MultipartformdataSchemaMap getNewInstance(Map arg, List pat List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -240,6 +240,13 @@ public MultipartformdataSchemaMap validate(Map arg, SchemaConfiguration co public MultipartformdataSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MultipartformdataSchema1BoxedMap(validate(arg, configuration)); } + @Override + public MultipartformdataSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java index a28954a3a9d..08b9aaee4b3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -112,11 +112,11 @@ public MultipartformdataFilesList getNewInstance(List arg, List pathT for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -156,6 +156,13 @@ public MultipartformdataFilesList validate(List arg, SchemaConfiguration conf public MultipartformdataFilesBoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MultipartformdataFilesBoxedList(validate(arg, configuration)); } + @Override + public MultipartformdataFilesBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class MultipartformdataSchemaMap extends FrozenMap<@Nullable Object> { @@ -266,11 +273,11 @@ public MultipartformdataSchemaMap getNewInstance(Map arg, List pat List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -307,6 +314,13 @@ public MultipartformdataSchemaMap validate(Map arg, SchemaConfiguration co public MultipartformdataSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MultipartformdataSchema1BoxedMap(validate(arg, configuration)); } + @Override + public MultipartformdataSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.java index c4c69019b13..8e89dece1b4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.java @@ -127,11 +127,11 @@ public ApplicationjsonSchemaMap getNewInstance(Map arg, List pathT List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -168,6 +168,13 @@ public ApplicationjsonSchemaMap validate(Map arg, SchemaConfiguration conf public ApplicationjsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ApplicationjsonSchema1BoxedMap(validate(arg, configuration)); } + @Override + public ApplicationjsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/Variables.java index 314bd147ba7..58d5f36188c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/Variables.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/Variables.java @@ -135,6 +135,13 @@ public String defaultValue() { public VersionBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new VersionBoxedString(validate(arg, configuration)); } + @Override + public VersionBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class VariablesMap extends FrozenMap { @@ -247,11 +254,11 @@ public VariablesMap getNewInstance(Map arg, List pathToItem, PathT List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -291,6 +298,13 @@ public VariablesMap validate(Map arg, SchemaConfiguration configuration) t public Variables1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Variables1BoxedMap(validate(arg, configuration)); } + @Override + public Variables1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/QueryParameters.java index a8ce53e2377..7ce798858e4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/QueryParameters.java @@ -147,11 +147,11 @@ public QueryParametersMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof Schema0.SchemaList0)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -191,6 +191,13 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat public QueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new QueryParameters1BoxedMap(validate(arg, configuration)); } + @Override + public QueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/parameter0/Schema0.java index bf15bf166a0..5594071aee6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/parameter0/Schema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/parameter0/Schema0.java @@ -118,6 +118,13 @@ public String defaultValue() { public Items0BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Items0BoxedString(validate(arg, configuration)); } + @Override + public Items0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class SchemaList0 extends FrozenList { @@ -194,11 +201,11 @@ public SchemaList0 getNewInstance(List arg, List pathToItem, PathToSc for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -238,5 +245,12 @@ public SchemaList0 validate(List arg, SchemaConfiguration configuration) thro public Schema01BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema01BoxedList(validate(arg, configuration)); } + @Override + public Schema01Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.java index 440803fd5f7..e622b7ac02a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.java @@ -135,6 +135,13 @@ public String defaultValue() { public VersionBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new VersionBoxedString(validate(arg, configuration)); } + @Override + public VersionBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class VariablesMap extends FrozenMap { @@ -247,11 +254,11 @@ public VariablesMap getNewInstance(Map arg, List pathToItem, PathT List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -291,6 +298,13 @@ public VariablesMap validate(Map arg, SchemaConfiguration configuration) t public Variables1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Variables1BoxedMap(validate(arg, configuration)); } + @Override + public Variables1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/QueryParameters.java index 273206e53d4..c4ef93d3f01 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/QueryParameters.java @@ -147,11 +147,11 @@ public QueryParametersMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof Schema0.SchemaList0)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -191,6 +191,13 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat public QueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new QueryParameters1BoxedMap(validate(arg, configuration)); } + @Override + public QueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/parameter0/Schema0.java index 4c82a96d893..1660a363a63 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/parameter0/Schema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/parameter0/Schema0.java @@ -103,11 +103,11 @@ public SchemaList0 getNewInstance(List arg, List pathToItem, PathToSc for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -147,5 +147,12 @@ public SchemaList0 validate(List arg, SchemaConfiguration configuration) thro public Schema01BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema01BoxedList(validate(arg, configuration)); } + @Override + public Schema01Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/HeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/HeaderParameters.java index e84dd6d4206..e35183de207 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/HeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/HeaderParameters.java @@ -136,11 +136,11 @@ public HeaderParametersMap getNewInstance(Map arg, List pathToItem List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -180,6 +180,13 @@ public HeaderParametersMap validate(Map arg, SchemaConfiguration configura public HeaderParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new HeaderParameters1BoxedMap(validate(arg, configuration)); } + @Override + public HeaderParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PathParameters.java index 344a22e14be..59fe1814cc8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PathParameters.java @@ -164,11 +164,11 @@ public PathParametersMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof Number)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -208,6 +208,13 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati public PathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PathParameters1BoxedMap(validate(arg, configuration)); } + @Override + public PathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PathParameters.java index 6269eb01406..d6dc72541d6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PathParameters.java @@ -164,11 +164,11 @@ public PathParametersMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof Number)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -208,6 +208,13 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati public PathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PathParameters1BoxedMap(validate(arg, configuration)); } + @Override + public PathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PathParameters.java index 4436c4c04da..8b31aa07e75 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PathParameters.java @@ -164,11 +164,11 @@ public PathParametersMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof Number)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -208,6 +208,13 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati public PathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PathParameters1BoxedMap(validate(arg, configuration)); } + @Override + public PathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java index 86470641b89..0d9bbc0816a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java @@ -186,11 +186,11 @@ public ApplicationxwwwformurlencodedSchemaMap getNewInstance(Map arg, List List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -227,6 +227,13 @@ public ApplicationxwwwformurlencodedSchemaMap validate(Map arg, SchemaConf public ApplicationxwwwformurlencodedSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ApplicationxwwwformurlencodedSchema1BoxedMap(validate(arg, configuration)); } + @Override + public ApplicationxwwwformurlencodedSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PathParameters.java index eb3f7ff3d08..8621fb63da8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PathParameters.java @@ -164,11 +164,11 @@ public PathParametersMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof Number)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -208,6 +208,13 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati public PathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PathParameters1BoxedMap(validate(arg, configuration)); } + @Override + public PathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java index ccc53cca486..f809a516e10 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -187,11 +187,11 @@ public MultipartformdataSchemaMap getNewInstance(Map arg, List pat List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -228,6 +228,13 @@ public MultipartformdataSchemaMap validate(Map arg, SchemaConfiguration co public MultipartformdataSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MultipartformdataSchema1BoxedMap(validate(arg, configuration)); } + @Override + public MultipartformdataSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/PathParameters.java index 12c7ae0a9eb..52aaca5fe26 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/PathParameters.java @@ -146,11 +146,11 @@ public PathParametersMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -190,6 +190,13 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati public PathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PathParameters1BoxedMap(validate(arg, configuration)); } + @Override + public PathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/PathParameters.java index 37a9ad46872..d52c74e5c24 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/PathParameters.java @@ -164,11 +164,11 @@ public PathParametersMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof Number)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -208,6 +208,13 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati public PathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PathParameters1BoxedMap(validate(arg, configuration)); } + @Override + public PathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/parameter0/Schema0.java index 43d1f4f3dc7..44fca5e5ac4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/parameter0/Schema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/parameter0/Schema0.java @@ -101,5 +101,12 @@ public double validate(double arg, SchemaConfiguration configuration) throws Val public Schema01BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema01BoxedNumber(validate(arg, configuration)); } + @Override + public Schema01Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/QueryParameters.java index 8389997d8b5..8c5b619443c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/QueryParameters.java @@ -203,11 +203,11 @@ public QueryParametersMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -244,6 +244,13 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat public QueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new QueryParameters1BoxedMap(validate(arg, configuration)); } + @Override + public QueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/Headers.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/Headers.java index 7a4d3ee1522..00292572e1a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/Headers.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/Headers.java @@ -337,11 +337,11 @@ public HeadersMap getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -378,6 +378,13 @@ public HeadersMap validate(Map arg, SchemaConfiguration configuration) thr public Headers1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Headers1BoxedMap(validate(arg, configuration)); } + @Override + public Headers1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/PathParameters.java index ec5ca55048d..a8d9f3c2972 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/PathParameters.java @@ -146,11 +146,11 @@ public PathParametersMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -190,6 +190,13 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati public PathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PathParameters1BoxedMap(validate(arg, configuration)); } + @Override + public PathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/PathParameters.java index db175d1a1f4..084596e13a7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/PathParameters.java @@ -146,11 +146,11 @@ public PathParametersMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -190,6 +190,13 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati public PathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PathParameters1BoxedMap(validate(arg, configuration)); } + @Override + public PathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/PathParameters.java index 055729fb639..96b11df0969 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/PathParameters.java @@ -146,11 +146,11 @@ public PathParametersMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -190,6 +190,13 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati public PathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PathParameters1BoxedMap(validate(arg, configuration)); } + @Override + public PathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java index 9fa18d1ff76..0ffcae114bd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java @@ -168,11 +168,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castItem = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(castItem); i += 1; @@ -203,11 +203,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castValue = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, castValue); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java index 1099759e5bb..7ebb3106467 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java @@ -54,11 +54,11 @@ public static ListJsonSchema1 getInstance() { for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castItem = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(castItem); i += 1; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java index d6f3b1dd918..47e141dac53 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java @@ -60,11 +60,11 @@ public static MapJsonSchema1 getInstance() { List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castValue = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, castValue); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java index 52447e425ae..de1ed91b0cd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java @@ -170,11 +170,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castItem = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(castItem); i += 1; @@ -205,11 +205,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castValue = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, castValue); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchema.java index 89528e1e69a..beb7460b86c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchema.java @@ -20,8 +20,8 @@ public abstract class JsonSchema { public final @Nullable Set> type; public final @Nullable String format; - public final @Nullable Class items; - public final @Nullable Map> properties; + public final @Nullable Class> items; + public final @Nullable Map>> properties; public final @Nullable Set required; public final @Nullable Number exclusiveMaximum; public final @Nullable Number exclusiveMinimum; @@ -34,11 +34,11 @@ public abstract class JsonSchema { public final @Nullable Number maximum; public final @Nullable Number minimum; public final @Nullable BigDecimal multipleOf; - public final @Nullable Class additionalProperties; - public final @Nullable List> allOf; - public final @Nullable List> anyOf; - public final @Nullable List> oneOf; - public final @Nullable Class not; + public final @Nullable Class> additionalProperties; + public final @Nullable List>> allOf; + public final @Nullable List>> anyOf; + public final @Nullable List>> oneOf; + public final @Nullable Class> not; public final @Nullable Boolean uniqueItems; public final @Nullable Set<@Nullable Object> enumValues; public final @Nullable Pattern pattern; @@ -46,19 +46,19 @@ public abstract class JsonSchema { public final boolean defaultValueSet; public final @Nullable Object constValue; public final boolean constValueSet; - public final @Nullable Class contains; + public final @Nullable Class> contains; public final @Nullable Integer maxContains; public final @Nullable Integer minContains; - public final @Nullable Class propertyNames; + public final @Nullable Class> propertyNames; public final @Nullable Map> dependentRequired; - public final @Nullable Map> dependentSchemas; - public final @Nullable Map> patternProperties; - public final @Nullable List> prefixItems; - public final @Nullable Class ifSchema; - public final @Nullable Class then; - public final @Nullable Class elseSchema; - public final @Nullable Class unevaluatedItems; - public final @Nullable Class unevaluatedProperties; + public final @Nullable Map>> dependentSchemas; + public final @Nullable Map>> patternProperties; + public final @Nullable List>> prefixItems; + public final @Nullable Class> ifSchema; + public final @Nullable Class> then; + public final @Nullable Class> elseSchema; + public final @Nullable Class> unevaluatedItems; + public final @Nullable Class> unevaluatedProperties; private final LinkedHashMap keywordToValidator; protected JsonSchema(JsonSchemaInfo jsonSchemaInfo) { @@ -232,7 +232,7 @@ private List getContainsPathToSchemas( if (!(arg instanceof List listArg) || contains == null) { return new ArrayList<>(); } - JsonSchema containsSchema = JsonSchemaFactory.getInstance(contains); + JsonSchema containsSchema = JsonSchemaFactory.getInstance(contains); @Nullable List containsPathToSchemas = new ArrayList<>(); for(int i = 0; i < listArg.size(); i++) { PathToSchemasMap thesePathToSchemas = new PathToSchemasMap(); @@ -280,13 +280,13 @@ private PathToSchemasMap getPatternPropertiesPathToSchemas( validationMetadata.validatedPathToSchemas(), validationMetadata.seenClasses() ); - for (Map.Entry> patternPropEntry: patternProperties.entrySet()) { + for (Map.Entry>> patternPropEntry: patternProperties.entrySet()) { if (!patternPropEntry.getKey().matcher(key).find()) { continue; } - Class patternPropClass = patternPropEntry.getValue(); - JsonSchema patternPropSchema = JsonSchemaFactory.getInstance(patternPropClass); + Class> patternPropClass = patternPropEntry.getValue(); + JsonSchema patternPropSchema = JsonSchemaFactory.getInstance(patternPropClass); PathToSchemasMap otherPathToSchemas = JsonSchema.validate(patternPropSchema, entry.getValue(), propValidationMetadata); pathToSchemas.update(otherPathToSchemas); } @@ -301,7 +301,7 @@ private PathToSchemasMap getIfPathToSchemas( if (ifSchema == null) { return new PathToSchemasMap(); } - JsonSchema ifSchemaInstance = JsonSchemaFactory.getInstance(ifSchema); + JsonSchema ifSchemaInstance = JsonSchemaFactory.getInstance(ifSchema); PathToSchemasMap pathToSchemas = new PathToSchemasMap(); try { var otherPathToSchemas = JsonSchema.validate(ifSchemaInstance, arg, validationMetadata); @@ -311,7 +311,7 @@ private PathToSchemasMap getIfPathToSchemas( } public static PathToSchemasMap validate( - JsonSchema jsonSchema, + JsonSchema jsonSchema, @Nullable Object arg, ValidationMetadata validationMetadata ) throws ValidationException { @@ -362,7 +362,7 @@ public static PathToSchemasMap validate( if (!pathToSchemas.containsKey(pathToItem)) { pathToSchemas.put(validationMetadata.pathToItem(), new LinkedHashMap<>()); } - @Nullable LinkedHashMap schemas = pathToSchemas.get(pathToItem); + @Nullable LinkedHashMap, Void> schemas = pathToSchemas.get(pathToItem); if (schemas != null) { schemas.put(jsonSchema, null); } @@ -468,19 +468,19 @@ public String getNewInstance(String arg, List pathToItem, PathToSchemasM return arg; } - protected static PathToSchemasMap getPathToSchemas(JsonSchema jsonSchema, @Nullable Object arg, ValidationMetadata validationMetadata, Set> pathSet) { + protected static PathToSchemasMap getPathToSchemas(JsonSchema jsonSchema, @Nullable Object arg, ValidationMetadata validationMetadata, Set> pathSet) { PathToSchemasMap pathToSchemasMap = new PathToSchemasMap(); // todo add check of validationMetadata.validationRanEarlier(this) PathToSchemasMap otherPathToSchemas = validate(jsonSchema, arg, validationMetadata); pathToSchemasMap.update(otherPathToSchemas); for (var schemas: pathToSchemasMap.values()) { - JsonSchema firstSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema firstSchema = schemas.entrySet().iterator().next().getKey(); schemas.clear(); schemas.put(firstSchema, null); } pathSet.removeAll(pathToSchemasMap.keySet()); if (!pathSet.isEmpty()) { - LinkedHashMap unsetAnyTypeSchema = new LinkedHashMap<>(); + LinkedHashMap, Void> unsetAnyTypeSchema = new LinkedHashMap<>(); unsetAnyTypeSchema.put(UnsetAnyTypeJsonSchema.UnsetAnyTypeJsonSchema1.getInstance(), null); for (List pathToItem: pathSet) { pathToSchemasMap.put(pathToItem, unsetAnyTypeSchema); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaInfo.java index 8791c1c29ea..0a95fbbae6a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaInfo.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaInfo.java @@ -18,13 +18,13 @@ public JsonSchemaInfo format(String format) { this.format = format; return this; } - public @Nullable Class items = null; - public JsonSchemaInfo items(Class items) { + public @Nullable Class> items = null; + public JsonSchemaInfo items(Class> items) { this.items = items; return this; } - public @Nullable Map> properties = null; - public JsonSchemaInfo properties(Map> properties) { + public @Nullable Map>> properties = null; + public JsonSchemaInfo properties(Map>> properties) { this.properties = properties; return this; } @@ -88,28 +88,28 @@ public JsonSchemaInfo multipleOf(BigDecimal multipleOf) { this.multipleOf = multipleOf; return this; } - public @Nullable Class additionalProperties; - public JsonSchemaInfo additionalProperties(Class additionalProperties) { + public @Nullable Class> additionalProperties; + public JsonSchemaInfo additionalProperties(Class> additionalProperties) { this.additionalProperties = additionalProperties; return this; } - public @Nullable List> allOf = null; - public JsonSchemaInfo allOf(List> allOf) { + public @Nullable List>> allOf = null; + public JsonSchemaInfo allOf(List>> allOf) { this.allOf = allOf; return this; } - public @Nullable List> anyOf = null; - public JsonSchemaInfo anyOf(List> anyOf) { + public @Nullable List>> anyOf = null; + public JsonSchemaInfo anyOf(List>> anyOf) { this.anyOf = anyOf; return this; } - public @Nullable List> oneOf = null; - public JsonSchemaInfo oneOf(List> oneOf) { + public @Nullable List>> oneOf = null; + public JsonSchemaInfo oneOf(List>> oneOf) { this.oneOf = oneOf; return this; } - public @Nullable Class not = null; - public JsonSchemaInfo not(Class not) { + public @Nullable Class> not = null; + public JsonSchemaInfo not(Class> not) { this.not = not; return this; } @@ -142,8 +142,8 @@ public JsonSchemaInfo constValue(@Nullable Object constValue) { this.constValueSet = true; return this; } - public @Nullable Class contains = null; - public JsonSchemaInfo contains(Class contains) { + public @Nullable Class> contains = null; + public JsonSchemaInfo contains(Class> contains) { this.contains = contains; return this; } @@ -157,8 +157,8 @@ public JsonSchemaInfo minContains(Integer minContains) { this.minContains = minContains; return this; } - public @Nullable Class propertyNames = null; - public JsonSchemaInfo propertyNames(Class propertyNames) { + public @Nullable Class> propertyNames = null; + public JsonSchemaInfo propertyNames(Class> propertyNames) { this.propertyNames = propertyNames; return this; } @@ -167,43 +167,43 @@ public JsonSchemaInfo dependentRequired(Map> dependentRequir this.dependentRequired = dependentRequired; return this; } - public @Nullable Map> dependentSchemas = null; - public JsonSchemaInfo dependentSchemas(Map> dependentSchemas) { + public @Nullable Map>> dependentSchemas = null; + public JsonSchemaInfo dependentSchemas(Map>> dependentSchemas) { this.dependentSchemas = dependentSchemas; return this; } - public @Nullable Map> patternProperties = null; - public JsonSchemaInfo patternProperties(Map> patternProperties) { + public @Nullable Map>> patternProperties = null; + public JsonSchemaInfo patternProperties(Map>> patternProperties) { this.patternProperties = patternProperties; return this; } - public @Nullable List> prefixItems = null; - public JsonSchemaInfo prefixItems(List> prefixItems) { + public @Nullable List>> prefixItems = null; + public JsonSchemaInfo prefixItems(List>> prefixItems) { this.prefixItems = prefixItems; return this; } - public @Nullable Class ifSchema = null; - public JsonSchemaInfo ifSchema(Class ifSchema) { + public @Nullable Class> ifSchema = null; + public JsonSchemaInfo ifSchema(Class> ifSchema) { this.ifSchema = ifSchema; return this; } - public @Nullable Class then = null; - public JsonSchemaInfo then(Class then) { + public @Nullable Class> then = null; + public JsonSchemaInfo then(Class> then) { this.then = then; return this; } - public @Nullable Class elseSchema = null; - public JsonSchemaInfo elseSchema(Class elseSchema) { + public @Nullable Class> elseSchema = null; + public JsonSchemaInfo elseSchema(Class> elseSchema) { this.elseSchema = elseSchema; return this; } - public @Nullable Class unevaluatedItems = null; - public JsonSchemaInfo unevaluatedItems(Class unevaluatedItems) { + public @Nullable Class> unevaluatedItems = null; + public JsonSchemaInfo unevaluatedItems(Class> unevaluatedItems) { this.unevaluatedItems = unevaluatedItems; return this; } - public @Nullable Class unevaluatedProperties = null; - public JsonSchemaInfo unevaluatedProperties(Class unevaluatedProperties) { + public @Nullable Class> unevaluatedProperties = null; + public JsonSchemaInfo unevaluatedProperties(Class> unevaluatedProperties) { this.unevaluatedProperties = unevaluatedProperties; return this; } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PathToSchemasMap.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PathToSchemasMap.java index 6e199334d4c..a3ce89066a2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PathToSchemasMap.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PathToSchemasMap.java @@ -5,12 +5,12 @@ import java.util.Map; @SuppressWarnings("serial") -public class PathToSchemasMap extends LinkedHashMap, LinkedHashMap> { +public class PathToSchemasMap extends LinkedHashMap, LinkedHashMap, Void>> { public void update(PathToSchemasMap other) { - for (Map.Entry, LinkedHashMap> entry: other.entrySet()) { + for (Map.Entry, LinkedHashMap, Void>> entry: other.entrySet()) { List pathToItem = entry.getKey(); - LinkedHashMap otherSchemas = entry.getValue(); + LinkedHashMap, Void> otherSchemas = entry.getValue(); if (containsKey(pathToItem)) { get(pathToItem).putAll(otherSchemas); } else { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertyEntry.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertyEntry.java index aaaede643a0..8261eda6d49 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertyEntry.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertyEntry.java @@ -3,8 +3,8 @@ import java.util.AbstractMap; @SuppressWarnings("serial") -public class PropertyEntry extends AbstractMap.SimpleEntry> { - public PropertyEntry(String key, Class value) { +public class PropertyEntry extends AbstractMap.SimpleEntry>> { + public PropertyEntry(String key, Class> value) { super(key, value); } -} +} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java index 3f105b40929..1c23a427dd0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java @@ -155,11 +155,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castItem = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(castItem); i += 1; @@ -190,11 +190,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castValue = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, castValue); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ValidationData.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ValidationData.java index d5c4f5de75a..1563757d83a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ValidationData.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ValidationData.java @@ -5,7 +5,7 @@ import java.util.List; public record ValidationData( - JsonSchema schema, + JsonSchema schema, @Nullable Object arg, ValidationMetadata validationMetadata, @Nullable List containsPathToSchemas, @@ -14,7 +14,7 @@ public record ValidationData( @Nullable PathToSchemasMap knownPathToSchemas ) { public ValidationData( - JsonSchema schema, + JsonSchema schema, @Nullable Object arg, ValidationMetadata validationMetadata ) { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ValidationMetadata.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ValidationMetadata.java index 8d83f3b6207..9756257f507 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ValidationMetadata.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ValidationMetadata.java @@ -13,8 +13,8 @@ public record ValidationMetadata( Set> seenClasses ) { - public boolean validationRanEarlier(JsonSchema schema) { - @Nullable Map validatedSchemas = validatedPathToSchemas.get(pathToItem); + public boolean validationRanEarlier(JsonSchema schema) { + @Nullable Map, Void> validatedSchemas = validatedPathToSchemas.get(pathToItem); if (validatedSchemas != null && validatedSchemas.containsKey(schema)) { return true; } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Variables.java index 6901f9c3ba9..12c3a68ffb0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Variables.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Variables.java @@ -137,6 +137,13 @@ public String defaultValue() { public ServerBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ServerBoxedString(validate(arg, configuration)); } + @Override + public ServerBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public enum StringPortEnums implements StringValueMethod { POSITIVE_80("80"), @@ -228,6 +235,13 @@ public String defaultValue() { public PortBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PortBoxedString(validate(arg, configuration)); } + @Override + public PortBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class VariablesMap extends FrozenMap { @@ -402,11 +416,11 @@ public VariablesMap getNewInstance(Map arg, List pathToItem, PathT List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -446,6 +460,13 @@ public VariablesMap validate(Map arg, SchemaConfiguration configuration) t public Variables1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Variables1BoxedMap(validate(arg, configuration)); } + @Override + public Variables1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Variables.java index 61a3919ea25..1ecc7a5cb8e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Variables.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Variables.java @@ -135,6 +135,13 @@ public String defaultValue() { public VersionBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new VersionBoxedString(validate(arg, configuration)); } + @Override + public VersionBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class VariablesMap extends FrozenMap { @@ -247,11 +254,11 @@ public VariablesMap getNewInstance(Map arg, List pathToItem, PathT List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof String)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -291,6 +298,13 @@ public VariablesMap validate(Map arg, SchemaConfiguration configuration) t public Variables1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Variables1BoxedMap(validate(arg, configuration)); } + @Override + public Variables1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java index d03a7f68fdb..f9c104649b3 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java @@ -51,11 +51,11 @@ public FrozenList getNewInstance(List arg, List pathToItem, P for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castItem = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(castItem instanceof String)) { throw new InvalidTypeException("Instantiated type of item is invalid"); @@ -128,11 +128,11 @@ public ArrayWithOutputClsSchemaList getNewInstance(List arg, List pat for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castItem = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(castItem instanceof String)) { throw new InvalidTypeException("Instantiated type of item is invalid"); diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ObjectTypeSchemaTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ObjectTypeSchemaTest.java index a1d21cbf429..798f737aded 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ObjectTypeSchemaTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ObjectTypeSchemaTest.java @@ -68,11 +68,11 @@ public static ObjectWithPropsSchema getInstance() { List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castValue = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, castValue); } @@ -144,11 +144,11 @@ public FrozenMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castValue = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(castValue instanceof String)) { throw new InvalidTypeException("Invalid type for property value"); @@ -225,11 +225,11 @@ public static ObjectWithPropsAndAddpropsSchema getInstance() { List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castValue = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, castValue); } @@ -312,11 +312,11 @@ public ObjectWithOutputTypeSchemaMap getNewInstance(Map arg, List List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castValue = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, castValue); } diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_boolean.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_boolean.hbs index 414c387de44..a4c74773f2f 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_boolean.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_boolean.hbs @@ -64,5 +64,5 @@ public static class {{jsonPathPiece.pascalCase}} extends JsonSchema<{{jsonPathPi } {{> src/main/java/packagename/components/schemas/SchemaClass/_validate_implementor }} {{> src/main/java/packagename/components/schemas/SchemaClass/_getNewInstanceObject_implementor }} - {{> src/main/java/packagename/components/schemas/SchemaClass/_validateAndBoxBoolean }} + {{> src/main/java/packagename/components/schemas/SchemaClass/_validateAndBox }} } \ No newline at end of file diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_list.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_list.hbs index 94c53979eab..2004c3c7869 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_list.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_list.hbs @@ -82,5 +82,5 @@ public static class {{jsonPathPiece.pascalCase}} extends JsonSchema<{{jsonPathPi } {{> src/main/java/packagename/components/schemas/SchemaClass/_validate_implementor }} {{> src/main/java/packagename/components/schemas/SchemaClass/_getNewInstanceObject_implementor }} - {{> src/main/java/packagename/components/schemas/SchemaClass/_validateAndBoxList }} + {{> src/main/java/packagename/components/schemas/SchemaClass/_validateAndBox }} } \ No newline at end of file diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_map.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_map.hbs index 181f2c8c3a6..7f664491e82 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_map.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_map.hbs @@ -88,5 +88,5 @@ public static class {{jsonPathPiece.pascalCase}} extends JsonSchema<{{jsonPathPi {{/if}} {{> src/main/java/packagename/components/schemas/SchemaClass/_validate_implementor }} {{> src/main/java/packagename/components/schemas/SchemaClass/_getNewInstanceObject_implementor }} - {{> src/main/java/packagename/components/schemas/SchemaClass/_validateAndBoxMap }} + {{> src/main/java/packagename/components/schemas/SchemaClass/_validateAndBox }} } diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_null.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_null.hbs index 1c3beefa602..e1c117ade41 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_null.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_null.hbs @@ -64,5 +64,5 @@ public static class {{jsonPathPiece.pascalCase}} extends JsonSchema<{{jsonPathPi } {{> src/main/java/packagename/components/schemas/SchemaClass/_validate_implementor }} {{> src/main/java/packagename/components/schemas/SchemaClass/_getNewInstanceObject_implementor }} - {{> src/main/java/packagename/components/schemas/SchemaClass/_validateAndBoxVoid }} + {{> src/main/java/packagename/components/schemas/SchemaClass/_validateAndBox }} } \ No newline at end of file diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_number.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_number.hbs index 899ccd9441f..7a295b1e94a 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_number.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_number.hbs @@ -82,5 +82,5 @@ public static class {{jsonPathPiece.pascalCase}} extends JsonSchema<{{jsonPathPi } {{> src/main/java/packagename/components/schemas/SchemaClass/_validate_implementor }} {{> src/main/java/packagename/components/schemas/SchemaClass/_getNewInstanceObject_implementor }} - {{> src/main/java/packagename/components/schemas/SchemaClass/_validateAndBoxNumber }} + {{> src/main/java/packagename/components/schemas/SchemaClass/_validateAndBox }} } \ No newline at end of file diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_string.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_string.hbs index 3a3d80a6409..39836793fcf 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_string.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_Schema_string.hbs @@ -84,5 +84,5 @@ public static class {{jsonPathPiece.pascalCase}} extends JsonSchema<{{jsonPathPi throw new InvalidTypeException("Invalid type stored in defaultValue"); } {{/if}} - {{> src/main/java/packagename/components/schemas/SchemaClass/_validateAndBoxString }} + {{> src/main/java/packagename/components/schemas/SchemaClass/_validateAndBox }} } \ No newline at end of file diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_validate_implementor.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_validate_implementor.hbs index c4366dc64e7..834626dbd42 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_validate_implementor.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_validate_implementor.hbs @@ -26,11 +26,11 @@ public {{#if ../mapOutputJsonPathPiece}}{{../mapOutputJsonPathPiece.pascalCase}} List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); {{#if ../mapValueSchema}} {{#if ../mapValueSchema.isNullableObject }} @@ -73,11 +73,11 @@ public {{#if ../arrayOutputJsonPathPiece}}{{../arrayOutputJsonPathPiece.pascalCa for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); {{#if ../listItemSchema}} {{#if ../listItemSchema.isNullableObject }} @@ -330,11 +330,11 @@ public {{#if arrayOutputJsonPathPiece}}{{arrayOutputJsonPathPiece.pascalCase}}{{ for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); {{#if listItemSchema}} {{#if listItemSchema.isNullableObject }} @@ -380,11 +380,11 @@ public {{#if mapOutputJsonPathPiece}}{{mapOutputJsonPathPiece.pascalCase}}{{else List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); {{#if mapValueSchema}} {{#if mapValueSchema.isNullableObject }} diff --git a/src/main/resources/java/src/main/java/packagename/schemas/AnyTypeJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/AnyTypeJsonSchema.hbs index 6b2a24672c6..6b28b58204b 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/AnyTypeJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/AnyTypeJsonSchema.hbs @@ -168,11 +168,11 @@ public class AnyTypeJsonSchema { for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castItem = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(castItem); i += 1; @@ -203,11 +203,11 @@ public class AnyTypeJsonSchema { List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castValue = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, castValue); } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/ListJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/ListJsonSchema.hbs index 61edf2bf8bf..c50c191ac97 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/ListJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/ListJsonSchema.hbs @@ -54,11 +54,11 @@ public class ListJsonSchema { for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castItem = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(castItem); i += 1; diff --git a/src/main/resources/java/src/main/java/packagename/schemas/MapJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/MapJsonSchema.hbs index bed98bf9713..b1035439e4c 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/MapJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/MapJsonSchema.hbs @@ -60,11 +60,11 @@ public class MapJsonSchema { List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castValue = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, castValue); } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/NotAnyTypeJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/NotAnyTypeJsonSchema.hbs index ee016083af1..d29ccc17ff9 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/NotAnyTypeJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/NotAnyTypeJsonSchema.hbs @@ -170,11 +170,11 @@ public class NotAnyTypeJsonSchema { for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castItem = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(castItem); i += 1; @@ -205,11 +205,11 @@ public class NotAnyTypeJsonSchema { List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castValue = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, castValue); } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/validation/JsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/validation/JsonSchema.hbs index ef9c80b9968..ce97034c425 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/validation/JsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/validation/JsonSchema.hbs @@ -20,8 +20,8 @@ import java.util.regex.Pattern; public abstract class JsonSchema { public final @Nullable Set> type; public final @Nullable String format; - public final @Nullable Class items; - public final @Nullable Map> properties; + public final @Nullable Class> items; + public final @Nullable Map>> properties; public final @Nullable Set required; public final @Nullable Number exclusiveMaximum; public final @Nullable Number exclusiveMinimum; @@ -34,11 +34,11 @@ public abstract class JsonSchema { public final @Nullable Number maximum; public final @Nullable Number minimum; public final @Nullable BigDecimal multipleOf; - public final @Nullable Class additionalProperties; - public final @Nullable List> allOf; - public final @Nullable List> anyOf; - public final @Nullable List> oneOf; - public final @Nullable Class not; + public final @Nullable Class> additionalProperties; + public final @Nullable List>> allOf; + public final @Nullable List>> anyOf; + public final @Nullable List>> oneOf; + public final @Nullable Class> not; public final @Nullable Boolean uniqueItems; public final @Nullable Set<@Nullable Object> enumValues; public final @Nullable Pattern pattern; @@ -46,19 +46,19 @@ public abstract class JsonSchema { public final boolean defaultValueSet; public final @Nullable Object constValue; public final boolean constValueSet; - public final @Nullable Class contains; + public final @Nullable Class> contains; public final @Nullable Integer maxContains; public final @Nullable Integer minContains; - public final @Nullable Class propertyNames; + public final @Nullable Class> propertyNames; public final @Nullable Map> dependentRequired; - public final @Nullable Map> dependentSchemas; - public final @Nullable Map> patternProperties; - public final @Nullable List> prefixItems; - public final @Nullable Class ifSchema; - public final @Nullable Class then; - public final @Nullable Class elseSchema; - public final @Nullable Class unevaluatedItems; - public final @Nullable Class unevaluatedProperties; + public final @Nullable Map>> dependentSchemas; + public final @Nullable Map>> patternProperties; + public final @Nullable List>> prefixItems; + public final @Nullable Class> ifSchema; + public final @Nullable Class> then; + public final @Nullable Class> elseSchema; + public final @Nullable Class> unevaluatedItems; + public final @Nullable Class> unevaluatedProperties; private final LinkedHashMap keywordToValidator; protected JsonSchema(JsonSchemaInfo jsonSchemaInfo) { @@ -232,7 +232,7 @@ public abstract class JsonSchema { if (!(arg instanceof List listArg) || contains == null) { return new ArrayList<>(); } - JsonSchema containsSchema = JsonSchemaFactory.getInstance(contains); + JsonSchema containsSchema = JsonSchemaFactory.getInstance(contains); @Nullable List containsPathToSchemas = new ArrayList<>(); for(int i = 0; i < listArg.size(); i++) { PathToSchemasMap thesePathToSchemas = new PathToSchemasMap(); @@ -280,13 +280,13 @@ public abstract class JsonSchema { validationMetadata.validatedPathToSchemas(), validationMetadata.seenClasses() ); - for (Map.Entry> patternPropEntry: patternProperties.entrySet()) { + for (Map.Entry>> patternPropEntry: patternProperties.entrySet()) { if (!patternPropEntry.getKey().matcher(key).find()) { continue; } - Class patternPropClass = patternPropEntry.getValue(); - JsonSchema patternPropSchema = JsonSchemaFactory.getInstance(patternPropClass); + Class> patternPropClass = patternPropEntry.getValue(); + JsonSchema patternPropSchema = JsonSchemaFactory.getInstance(patternPropClass); PathToSchemasMap otherPathToSchemas = JsonSchema.validate(patternPropSchema, entry.getValue(), propValidationMetadata); pathToSchemas.update(otherPathToSchemas); } @@ -301,7 +301,7 @@ public abstract class JsonSchema { if (ifSchema == null) { return new PathToSchemasMap(); } - JsonSchema ifSchemaInstance = JsonSchemaFactory.getInstance(ifSchema); + JsonSchema ifSchemaInstance = JsonSchemaFactory.getInstance(ifSchema); PathToSchemasMap pathToSchemas = new PathToSchemasMap(); try { var otherPathToSchemas = JsonSchema.validate(ifSchemaInstance, arg, validationMetadata); @@ -311,7 +311,7 @@ public abstract class JsonSchema { } public static PathToSchemasMap validate( - JsonSchema jsonSchema, + JsonSchema jsonSchema, @Nullable Object arg, ValidationMetadata validationMetadata ) throws ValidationException { @@ -362,7 +362,7 @@ public abstract class JsonSchema { if (!pathToSchemas.containsKey(pathToItem)) { pathToSchemas.put(validationMetadata.pathToItem(), new LinkedHashMap<>()); } - @Nullable LinkedHashMap schemas = pathToSchemas.get(pathToItem); + @Nullable LinkedHashMap, Void> schemas = pathToSchemas.get(pathToItem); if (schemas != null) { schemas.put(jsonSchema, null); } @@ -468,19 +468,19 @@ public abstract class JsonSchema { return arg; } - protected static PathToSchemasMap getPathToSchemas(JsonSchema jsonSchema, @Nullable Object arg, ValidationMetadata validationMetadata, Set> pathSet) { + protected static PathToSchemasMap getPathToSchemas(JsonSchema jsonSchema, @Nullable Object arg, ValidationMetadata validationMetadata, Set> pathSet) { PathToSchemasMap pathToSchemasMap = new PathToSchemasMap(); // todo add check of validationMetadata.validationRanEarlier(this) PathToSchemasMap otherPathToSchemas = validate(jsonSchema, arg, validationMetadata); pathToSchemasMap.update(otherPathToSchemas); for (var schemas: pathToSchemasMap.values()) { - JsonSchema firstSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema firstSchema = schemas.entrySet().iterator().next().getKey(); schemas.clear(); schemas.put(firstSchema, null); } pathSet.removeAll(pathToSchemasMap.keySet()); if (!pathSet.isEmpty()) { - LinkedHashMap unsetAnyTypeSchema = new LinkedHashMap<>(); + LinkedHashMap, Void> unsetAnyTypeSchema = new LinkedHashMap<>(); unsetAnyTypeSchema.put(UnsetAnyTypeJsonSchema.UnsetAnyTypeJsonSchema1.getInstance(), null); for (List pathToItem: pathSet) { pathToSchemasMap.put(pathToItem, unsetAnyTypeSchema); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/validation/JsonSchemaInfo.hbs b/src/main/resources/java/src/main/java/packagename/schemas/validation/JsonSchemaInfo.hbs index f5167e1ec58..0d7527947c8 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/validation/JsonSchemaInfo.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/validation/JsonSchemaInfo.hbs @@ -18,13 +18,13 @@ public class JsonSchemaInfo { this.format = format; return this; } - public @Nullable Class items = null; - public JsonSchemaInfo items(Class items) { + public @Nullable Class> items = null; + public JsonSchemaInfo items(Class> items) { this.items = items; return this; } - public @Nullable Map> properties = null; - public JsonSchemaInfo properties(Map> properties) { + public @Nullable Map>> properties = null; + public JsonSchemaInfo properties(Map>> properties) { this.properties = properties; return this; } @@ -88,28 +88,28 @@ public class JsonSchemaInfo { this.multipleOf = multipleOf; return this; } - public @Nullable Class additionalProperties; - public JsonSchemaInfo additionalProperties(Class additionalProperties) { + public @Nullable Class> additionalProperties; + public JsonSchemaInfo additionalProperties(Class> additionalProperties) { this.additionalProperties = additionalProperties; return this; } - public @Nullable List> allOf = null; - public JsonSchemaInfo allOf(List> allOf) { + public @Nullable List>> allOf = null; + public JsonSchemaInfo allOf(List>> allOf) { this.allOf = allOf; return this; } - public @Nullable List> anyOf = null; - public JsonSchemaInfo anyOf(List> anyOf) { + public @Nullable List>> anyOf = null; + public JsonSchemaInfo anyOf(List>> anyOf) { this.anyOf = anyOf; return this; } - public @Nullable List> oneOf = null; - public JsonSchemaInfo oneOf(List> oneOf) { + public @Nullable List>> oneOf = null; + public JsonSchemaInfo oneOf(List>> oneOf) { this.oneOf = oneOf; return this; } - public @Nullable Class not = null; - public JsonSchemaInfo not(Class not) { + public @Nullable Class> not = null; + public JsonSchemaInfo not(Class> not) { this.not = not; return this; } @@ -142,8 +142,8 @@ public class JsonSchemaInfo { this.constValueSet = true; return this; } - public @Nullable Class contains = null; - public JsonSchemaInfo contains(Class contains) { + public @Nullable Class> contains = null; + public JsonSchemaInfo contains(Class> contains) { this.contains = contains; return this; } @@ -157,8 +157,8 @@ public class JsonSchemaInfo { this.minContains = minContains; return this; } - public @Nullable Class propertyNames = null; - public JsonSchemaInfo propertyNames(Class propertyNames) { + public @Nullable Class> propertyNames = null; + public JsonSchemaInfo propertyNames(Class> propertyNames) { this.propertyNames = propertyNames; return this; } @@ -167,43 +167,43 @@ public class JsonSchemaInfo { this.dependentRequired = dependentRequired; return this; } - public @Nullable Map> dependentSchemas = null; - public JsonSchemaInfo dependentSchemas(Map> dependentSchemas) { + public @Nullable Map>> dependentSchemas = null; + public JsonSchemaInfo dependentSchemas(Map>> dependentSchemas) { this.dependentSchemas = dependentSchemas; return this; } - public @Nullable Map> patternProperties = null; - public JsonSchemaInfo patternProperties(Map> patternProperties) { + public @Nullable Map>> patternProperties = null; + public JsonSchemaInfo patternProperties(Map>> patternProperties) { this.patternProperties = patternProperties; return this; } - public @Nullable List> prefixItems = null; - public JsonSchemaInfo prefixItems(List> prefixItems) { + public @Nullable List>> prefixItems = null; + public JsonSchemaInfo prefixItems(List>> prefixItems) { this.prefixItems = prefixItems; return this; } - public @Nullable Class ifSchema = null; - public JsonSchemaInfo ifSchema(Class ifSchema) { + public @Nullable Class> ifSchema = null; + public JsonSchemaInfo ifSchema(Class> ifSchema) { this.ifSchema = ifSchema; return this; } - public @Nullable Class then = null; - public JsonSchemaInfo then(Class then) { + public @Nullable Class> then = null; + public JsonSchemaInfo then(Class> then) { this.then = then; return this; } - public @Nullable Class elseSchema = null; - public JsonSchemaInfo elseSchema(Class elseSchema) { + public @Nullable Class> elseSchema = null; + public JsonSchemaInfo elseSchema(Class> elseSchema) { this.elseSchema = elseSchema; return this; } - public @Nullable Class unevaluatedItems = null; - public JsonSchemaInfo unevaluatedItems(Class unevaluatedItems) { + public @Nullable Class> unevaluatedItems = null; + public JsonSchemaInfo unevaluatedItems(Class> unevaluatedItems) { this.unevaluatedItems = unevaluatedItems; return this; } - public @Nullable Class unevaluatedProperties = null; - public JsonSchemaInfo unevaluatedProperties(Class unevaluatedProperties) { + public @Nullable Class> unevaluatedProperties = null; + public JsonSchemaInfo unevaluatedProperties(Class> unevaluatedProperties) { this.unevaluatedProperties = unevaluatedProperties; return this; } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/validation/PathToSchemasMap.hbs b/src/main/resources/java/src/main/java/packagename/schemas/validation/PathToSchemasMap.hbs index 83ddc2233e4..732e60e4878 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/validation/PathToSchemasMap.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/validation/PathToSchemasMap.hbs @@ -5,12 +5,12 @@ import java.util.List; import java.util.Map; @SuppressWarnings("serial") -public class PathToSchemasMap extends LinkedHashMap, LinkedHashMap> { +public class PathToSchemasMap extends LinkedHashMap, LinkedHashMap, Void>> { public void update(PathToSchemasMap other) { - for (Map.Entry, LinkedHashMap> entry: other.entrySet()) { + for (Map.Entry, LinkedHashMap, Void>> entry: other.entrySet()) { List pathToItem = entry.getKey(); - LinkedHashMap otherSchemas = entry.getValue(); + LinkedHashMap, Void> otherSchemas = entry.getValue(); if (containsKey(pathToItem)) { get(pathToItem).putAll(otherSchemas); } else { diff --git a/src/main/resources/java/src/main/java/packagename/schemas/validation/PropertyEntry.hbs b/src/main/resources/java/src/main/java/packagename/schemas/validation/PropertyEntry.hbs index 8d3d3840474..e931cdbb0a4 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/validation/PropertyEntry.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/validation/PropertyEntry.hbs @@ -3,8 +3,8 @@ package {{{packageName}}}.schemas.validation; import java.util.AbstractMap; @SuppressWarnings("serial") -public class PropertyEntry extends AbstractMap.SimpleEntry> { - public PropertyEntry(String key, Class value) { +public class PropertyEntry extends AbstractMap.SimpleEntry>> { + public PropertyEntry(String key, Class> value) { super(key, value); } -} +} \ No newline at end of file diff --git a/src/main/resources/java/src/main/java/packagename/schemas/validation/UnsetAnyTypeJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/validation/UnsetAnyTypeJsonSchema.hbs index 06a1b0ffead..54dfe11b32b 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/validation/UnsetAnyTypeJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/validation/UnsetAnyTypeJsonSchema.hbs @@ -155,11 +155,11 @@ public class UnsetAnyTypeJsonSchema { for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castItem = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(castItem); i += 1; @@ -190,11 +190,11 @@ public class UnsetAnyTypeJsonSchema { List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castValue = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, castValue); } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/validation/ValidationData.hbs b/src/main/resources/java/src/main/java/packagename/schemas/validation/ValidationData.hbs index d5c4f5de75a..1563757d83a 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/validation/ValidationData.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/validation/ValidationData.hbs @@ -5,7 +5,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import java.util.List; public record ValidationData( - JsonSchema schema, + JsonSchema schema, @Nullable Object arg, ValidationMetadata validationMetadata, @Nullable List containsPathToSchemas, @@ -14,7 +14,7 @@ public record ValidationData( @Nullable PathToSchemasMap knownPathToSchemas ) { public ValidationData( - JsonSchema schema, + JsonSchema schema, @Nullable Object arg, ValidationMetadata validationMetadata ) { diff --git a/src/main/resources/java/src/main/java/packagename/schemas/validation/ValidationMetadata.hbs b/src/main/resources/java/src/main/java/packagename/schemas/validation/ValidationMetadata.hbs index a868e40d0b2..e7658c4da96 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/validation/ValidationMetadata.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/validation/ValidationMetadata.hbs @@ -13,8 +13,8 @@ public record ValidationMetadata( Set> seenClasses ) { - public boolean validationRanEarlier(JsonSchema schema) { - @Nullable Map validatedSchemas = validatedPathToSchemas.get(pathToItem); + public boolean validationRanEarlier(JsonSchema schema) { + @Nullable Map, Void> validatedSchemas = validatedPathToSchemas.get(pathToItem); if (validatedSchemas != null && validatedSchemas.containsKey(schema)) { return true; } diff --git a/src/main/resources/java/src/test/java/packagename/schemas/ArrayTypeSchemaTest.hbs b/src/main/resources/java/src/test/java/packagename/schemas/ArrayTypeSchemaTest.hbs index 250cef3fe1e..c475dfdafab 100644 --- a/src/main/resources/java/src/test/java/packagename/schemas/ArrayTypeSchemaTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/schemas/ArrayTypeSchemaTest.hbs @@ -51,11 +51,11 @@ public class ArrayTypeSchemaTest { for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castItem = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(castItem instanceof String)) { throw new InvalidTypeException("Instantiated type of item is invalid"); @@ -128,11 +128,11 @@ public class ArrayTypeSchemaTest { for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castItem = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(castItem instanceof String)) { throw new InvalidTypeException("Instantiated type of item is invalid"); diff --git a/src/main/resources/java/src/test/java/packagename/schemas/ObjectTypeSchemaTest.hbs b/src/main/resources/java/src/test/java/packagename/schemas/ObjectTypeSchemaTest.hbs index 286c4fb0058..0cca5aecc69 100644 --- a/src/main/resources/java/src/test/java/packagename/schemas/ObjectTypeSchemaTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/schemas/ObjectTypeSchemaTest.hbs @@ -68,11 +68,11 @@ public class ObjectTypeSchemaTest { List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castValue = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, castValue); } @@ -144,11 +144,11 @@ public class ObjectTypeSchemaTest { List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castValue = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(castValue instanceof String)) { throw new InvalidTypeException("Invalid type for property value"); @@ -225,11 +225,11 @@ public class ObjectTypeSchemaTest { List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castValue = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, castValue); } @@ -312,11 +312,11 @@ public class ObjectTypeSchemaTest { List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castValue = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, castValue); } From 8eef9b88a939ac1653d00d26de7908f6f8e77448 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Wed, 21 Feb 2024 14:41:19 -0800 Subject: [PATCH 28/50] Adds and uses deserializeBody method --- .../client/mediatype/MediaType.java | 2 +- .../client/response/ResponseDeserializer.java | 14 +++++++++++++- .../client/schemas/validation/OneOfValidator.java | 6 +++--- .../client/response/ResponseDeserializerTest.java | 12 ++---------- .../main/java/packagename/mediatype/MediaType.hbs | 2 +- .../packagename/response/ResponseDeserializer.hbs | 14 +++++++++++++- .../schemas/validation/OneOfValidator.hbs | 6 +++--- .../response/ResponseDeserializerTest.hbs | 12 ++---------- 8 files changed, 38 insertions(+), 30 deletions(-) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/mediatype/MediaType.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/mediatype/MediaType.java index 926e72020db..e8392d15eda 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/mediatype/MediaType.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/mediatype/MediaType.java @@ -2,7 +2,7 @@ import org.openapijsonschematools.client.schemas.validation.JsonSchema; -public interface MediaType { +public interface MediaType, U> { /* * Used to store request and response body schema information * encoding: diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java index 40052c5a6e4..3784d02e112 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java @@ -13,6 +13,7 @@ import com.google.gson.ToNumberPolicy; import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; public abstract class ResponseDeserializer { public final Map content; @@ -26,7 +27,7 @@ public abstract class ResponseDeserializer content) { + public ResponseDeserializer(Map content) { this.content = content; this.headers = null; } @@ -51,6 +52,17 @@ protected static boolean contentTypeIsTextPlain(String contentType) { return textPlainContentType.equals(contentType); } + protected T deserializeBody(String contentType, byte[] body, JsonSchema schema, SchemaConfiguration configuration) { + if (contentTypeIsJson(contentType)) { + @Nullable Object bodyData = deserializeJson(body); + return schema.validateAndBox(bodyData, configuration); + } else if (contentTypeIsTextPlain(contentType)) { + String bodyData = deserializeTextPlain(body); + return schema.validateAndBox(bodyData, configuration); + } + throw new RuntimeException("Deserialization for contentType="+contentType+" has not yet been implemented."); + } + public ApiResponse deserialize(HttpResponse response, SchemaConfiguration configuration) { Optional contentTypeInfo = response.headers().firstValue("Content-Type"); if (contentTypeInfo.isEmpty()) { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/OneOfValidator.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/OneOfValidator.java index f84f7796a8c..3c4f4b5a085 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/OneOfValidator.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/OneOfValidator.java @@ -16,8 +16,8 @@ public class OneOfValidator implements KeywordValidator { return null; } PathToSchemasMap pathToSchemas = new PathToSchemasMap(); - List> validatedOneOfClasses = new ArrayList<>(); - for(Class oneOfClass: oneOf) { + List>> validatedOneOfClasses = new ArrayList<>(); + for(Class> oneOfClass: oneOf) { if (oneOfClass == data.schema().getClass()) { /* optimistically assume that schema will pass validation @@ -27,7 +27,7 @@ public class OneOfValidator implements KeywordValidator { continue; } try { - JsonSchema oneOfSchema = JsonSchemaFactory.getInstance(oneOfClass); + JsonSchema oneOfSchema = JsonSchemaFactory.getInstance(oneOfClass); PathToSchemasMap otherPathToSchemas = JsonSchema.validate(oneOfSchema, data.arg(), data.validationMetadata()); validatedOneOfClasses.add(oneOfClass); pathToSchemas.update(otherPathToSchemas); diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java index e859608c9e2..1ae537268f2 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java @@ -70,19 +70,11 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); } if (mediaType instanceof ApplicationjsonMediatype thisMediaType) { - /* - var deserializedBody = deserializeBody(String contentType, JsonSchema schema); - if contentType is json - @Nullable Object bodyData = deserializeJson(body); - return schema.validateAndBox(bodyData, configuration) - */ - @Nullable Object bodyData = deserializeJson(body); - var deserializedBody = thisMediaType.schema.validateAndBox(bodyData, configuration); + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); return new ApplicationjsonBody(deserializedBody); } else { TextplainMediatype thisMediaType = (TextplainMediatype) mediaType; - String bodyData = deserializeTextPlain(body); - var deserializedBody = thisMediaType.schema.validateAndBox(bodyData, configuration); + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); return new TextplainBody(deserializedBody); } } diff --git a/src/main/resources/java/src/main/java/packagename/mediatype/MediaType.hbs b/src/main/resources/java/src/main/java/packagename/mediatype/MediaType.hbs index a23ca4249bf..d4afc4449dd 100644 --- a/src/main/resources/java/src/main/java/packagename/mediatype/MediaType.hbs +++ b/src/main/resources/java/src/main/java/packagename/mediatype/MediaType.hbs @@ -2,7 +2,7 @@ package {{{packageName}}}.mediatype; import {{{packageName}}}.schemas.validation.JsonSchema; -public interface MediaType { +public interface MediaType, U> { /* * Used to store request and response body schema information * encoding: diff --git a/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs b/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs index 7cb4d42ce46..3ef05124ac1 100644 --- a/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs +++ b/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs @@ -13,6 +13,7 @@ import com.google.gson.GsonBuilder; import com.google.gson.ToNumberPolicy; import {{{packageName}}}.configurations.SchemaConfiguration; +import {{{packageName}}}.schemas.validation.JsonSchema; public abstract class ResponseDeserializer { public final Map content; @@ -26,7 +27,7 @@ public abstract class ResponseDeserializer content) { + public ResponseDeserializer(Map content) { this.content = content; this.headers = null; } @@ -51,6 +52,17 @@ public abstract class ResponseDeserializer T deserializeBody(String contentType, byte[] body, JsonSchema schema, SchemaConfiguration configuration) { + if (contentTypeIsJson(contentType)) { + @Nullable Object bodyData = deserializeJson(body); + return schema.validateAndBox(bodyData, configuration); + } else if (contentTypeIsTextPlain(contentType)) { + String bodyData = deserializeTextPlain(body); + return schema.validateAndBox(bodyData, configuration); + } + throw new RuntimeException("Deserialization for contentType="+contentType+" has not yet been implemented."); + } + public ApiResponse deserialize(HttpResponse response, SchemaConfiguration configuration) { Optional contentTypeInfo = response.headers().firstValue("Content-Type"); if (contentTypeInfo.isEmpty()) { diff --git a/src/main/resources/java/src/main/java/packagename/schemas/validation/OneOfValidator.hbs b/src/main/resources/java/src/main/java/packagename/schemas/validation/OneOfValidator.hbs index 2ce2f630251..a3c40833442 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/validation/OneOfValidator.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/validation/OneOfValidator.hbs @@ -16,8 +16,8 @@ public class OneOfValidator implements KeywordValidator { return null; } PathToSchemasMap pathToSchemas = new PathToSchemasMap(); - List> validatedOneOfClasses = new ArrayList<>(); - for(Class oneOfClass: oneOf) { + List>> validatedOneOfClasses = new ArrayList<>(); + for(Class> oneOfClass: oneOf) { if (oneOfClass == data.schema().getClass()) { /* optimistically assume that schema will pass validation @@ -27,7 +27,7 @@ public class OneOfValidator implements KeywordValidator { continue; } try { - JsonSchema oneOfSchema = JsonSchemaFactory.getInstance(oneOfClass); + JsonSchema oneOfSchema = JsonSchemaFactory.getInstance(oneOfClass); PathToSchemasMap otherPathToSchemas = JsonSchema.validate(oneOfSchema, data.arg(), data.validationMetadata()); validatedOneOfClasses.add(oneOfClass); pathToSchemas.update(otherPathToSchemas); diff --git a/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs b/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs index 0269697ff0b..4e7b6fba936 100644 --- a/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs @@ -70,19 +70,11 @@ public class ResponseDeserializerTest { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); } if (mediaType instanceof ApplicationjsonMediatype thisMediaType) { - /* - var deserializedBody = deserializeBody(String contentType, JsonSchema schema); - if contentType is json - @Nullable Object bodyData = deserializeJson(body); - return schema.validateAndBox(bodyData, configuration) - */ - @Nullable Object bodyData = deserializeJson(body); - var deserializedBody = thisMediaType.schema.validateAndBox(bodyData, configuration); + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); return new ApplicationjsonBody(deserializedBody); } else { TextplainMediatype thisMediaType = (TextplainMediatype) mediaType; - String bodyData = deserializeTextPlain(body); - var deserializedBody = thisMediaType.schema.validateAndBox(bodyData, configuration); + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); return new TextplainBody(deserializedBody); } } From 35b07e4b3e491e4665edafdd03d81d3f5be78db0 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Wed, 21 Feb 2024 15:05:34 -0800 Subject: [PATCH 29/50] Adds more needed ? generecs for JsonSchemas --- .../schemas/validation/AdditionalPropertiesValidator.java | 2 +- .../client/schemas/validation/AllOfValidator.java | 4 ++-- .../client/schemas/validation/AnyOfValidator.java | 6 +++--- .../schemas/validation/DependentSchemasValidator.java | 6 +++--- .../client/schemas/validation/ElseValidator.java | 2 +- .../client/schemas/validation/ItemsValidator.java | 2 +- .../client/schemas/validation/JsonSchemaFactory.java | 6 +++--- .../client/schemas/validation/NotValidator.java | 2 +- .../client/schemas/validation/PrefixItemsValidator.java | 2 +- .../client/schemas/validation/PropertiesValidator.java | 6 +++--- .../client/schemas/validation/PropertyNamesValidator.java | 2 +- .../client/schemas/validation/ThenValidator.java | 2 +- .../schemas/validation/UnevaluatedItemsValidator.java | 2 +- .../schemas/validation/UnevaluatedPropertiesValidator.java | 2 +- .../client/response/ResponseDeserializerTest.java | 1 - .../schemas/validation/AdditionalPropertiesValidator.hbs | 2 +- .../java/packagename/schemas/validation/AllOfValidator.hbs | 4 ++-- .../java/packagename/schemas/validation/AnyOfValidator.hbs | 6 +++--- .../schemas/validation/DependentSchemasValidator.hbs | 6 +++--- .../java/packagename/schemas/validation/ElseValidator.hbs | 2 +- .../java/packagename/schemas/validation/ItemsValidator.hbs | 2 +- .../packagename/schemas/validation/JsonSchemaFactory.hbs | 6 +++--- .../java/packagename/schemas/validation/NotValidator.hbs | 2 +- .../packagename/schemas/validation/PrefixItemsValidator.hbs | 2 +- .../packagename/schemas/validation/PropertiesValidator.hbs | 6 +++--- .../schemas/validation/PropertyNamesValidator.hbs | 2 +- .../java/packagename/schemas/validation/ThenValidator.hbs | 2 +- .../schemas/validation/UnevaluatedItemsValidator.hbs | 2 +- .../schemas/validation/UnevaluatedPropertiesValidator.hbs | 2 +- .../java/packagename/response/ResponseDeserializerTest.hbs | 1 - 30 files changed, 46 insertions(+), 48 deletions(-) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidator.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidator.java index 2548452a115..64d9f476798 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidator.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidator.java @@ -43,7 +43,7 @@ public class AdditionalPropertiesValidator implements KeywordValidator { data.validationMetadata().validatedPathToSchemas(), data.validationMetadata().seenClasses() ); - JsonSchema addPropsSchema = JsonSchemaFactory.getInstance(additionalProperties); + JsonSchema addPropsSchema = JsonSchemaFactory.getInstance(additionalProperties); if (propValidationMetadata.validationRanEarlier(addPropsSchema)) { // todo add_deeper_validated_schemas continue; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AllOfValidator.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AllOfValidator.java index 583017ea6b5..eb6bcf21d4a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AllOfValidator.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AllOfValidator.java @@ -11,8 +11,8 @@ public class AllOfValidator implements KeywordValidator { return null; } PathToSchemasMap pathToSchemas = new PathToSchemasMap(); - for(Class allOfClass: allOf) { - JsonSchema allOfSchema = JsonSchemaFactory.getInstance(allOfClass); + for(Class> allOfClass: allOf) { + JsonSchema allOfSchema = JsonSchemaFactory.getInstance(allOfClass); PathToSchemasMap otherPathToSchemas = JsonSchema.validate(allOfSchema, data.arg(), data.validationMetadata()); pathToSchemas.update(otherPathToSchemas); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AnyOfValidator.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AnyOfValidator.java index 062fa2eecdc..d466518d3fe 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AnyOfValidator.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AnyOfValidator.java @@ -16,8 +16,8 @@ public class AnyOfValidator implements KeywordValidator { return null; } PathToSchemasMap pathToSchemas = new PathToSchemasMap(); - List> validatedAnyOfClasses = new ArrayList<>(); - for(Class anyOfClass: anyOf) { + List>> validatedAnyOfClasses = new ArrayList<>(); + for(Class> anyOfClass: anyOf) { if (anyOfClass == data.schema().getClass()) { /* optimistically assume that schema will pass validation @@ -27,7 +27,7 @@ public class AnyOfValidator implements KeywordValidator { continue; } try { - JsonSchema anyOfSchema = JsonSchemaFactory.getInstance(anyOfClass); + JsonSchema anyOfSchema = JsonSchemaFactory.getInstance(anyOfClass); PathToSchemasMap otherPathToSchemas = JsonSchema.validate(anyOfSchema, data.arg(), data.validationMetadata()); validatedAnyOfClasses.add(anyOfClass); pathToSchemas.update(otherPathToSchemas); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/DependentSchemasValidator.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/DependentSchemasValidator.java index 940157d3b48..e329529fe8a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/DependentSchemasValidator.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/DependentSchemasValidator.java @@ -25,13 +25,13 @@ public class DependentSchemasValidator implements KeywordValidator { presentProperties.add((String) key); } } - for(Map.Entry> entry: dependentSchemas.entrySet()) { + for(Map.Entry>> entry: dependentSchemas.entrySet()) { String propName = entry.getKey(); if (!presentProperties.contains(propName)) { continue; } - Class dependentSchemaClass = entry.getValue(); - JsonSchema dependentSchema = JsonSchemaFactory.getInstance(dependentSchemaClass); + Class> dependentSchemaClass = entry.getValue(); + JsonSchema dependentSchema = JsonSchemaFactory.getInstance(dependentSchemaClass); PathToSchemasMap otherPathToSchemas = JsonSchema.validate(dependentSchema, mapArg, data.validationMetadata()); pathToSchemas.update(otherPathToSchemas); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ElseValidator.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ElseValidator.java index b0ba9ecbc0a..3f50d9326c4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ElseValidator.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ElseValidator.java @@ -22,7 +22,7 @@ public class ElseValidator implements KeywordValidator { // if validation is true return null; } - JsonSchema elseSchemaInstance = JsonSchemaFactory.getInstance(elseSchema); + JsonSchema elseSchemaInstance = JsonSchemaFactory.getInstance(elseSchema); PathToSchemasMap pathToSchemas = new PathToSchemasMap(); var elsePathToSchemas = JsonSchema.validate(elseSchemaInstance, data.arg(), data.validationMetadata()); // todo capture validation error and describe it as an else error? diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ItemsValidator.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ItemsValidator.java index 5bd194d47a9..1b03c0b3094 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ItemsValidator.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ItemsValidator.java @@ -22,7 +22,7 @@ public class ItemsValidator implements KeywordValidator { } PathToSchemasMap pathToSchemas = new PathToSchemasMap(); int minIndex = data.schema().prefixItems != null ? data.schema().prefixItems.size() : 0; - JsonSchema itemsSchema = JsonSchemaFactory.getInstance(items); + JsonSchema itemsSchema = JsonSchemaFactory.getInstance(items); for(int i = minIndex; i < listArg.size(); i++) { List itemPathToItem = new ArrayList<>(data.validationMetadata().pathToItem()); itemPathToItem.add(i); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaFactory.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaFactory.java index 7c9b6402f2b..24729ac172d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaFactory.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaFactory.java @@ -10,10 +10,10 @@ public class JsonSchemaFactory { - static Map, JsonSchema> classToInstance = new HashMap<>(); + static Map>, JsonSchema> classToInstance = new HashMap<>(); - public static V getInstance(Class schemaCls) { - @Nullable JsonSchema cacheInst = classToInstance.get(schemaCls); + public static > V getInstance(Class schemaCls) { + @Nullable JsonSchema cacheInst = classToInstance.get(schemaCls); if (cacheInst != null) { assert schemaCls.isInstance(cacheInst); return schemaCls.cast(cacheInst); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/NotValidator.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/NotValidator.java index aa61be1b624..b077e2056a1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/NotValidator.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/NotValidator.java @@ -14,7 +14,7 @@ public class NotValidator implements KeywordValidator { } PathToSchemasMap pathToSchemas; try { - JsonSchema notSchema = JsonSchemaFactory.getInstance(not); + JsonSchema notSchema = JsonSchemaFactory.getInstance(not); pathToSchemas = JsonSchema.validate(notSchema, data.arg(), data.validationMetadata()); } catch (ValidationException e) { return null; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PrefixItemsValidator.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PrefixItemsValidator.java index 00e5b17607b..237bc250190 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PrefixItemsValidator.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PrefixItemsValidator.java @@ -31,7 +31,7 @@ public class PrefixItemsValidator implements KeywordValidator { data.validationMetadata().validatedPathToSchemas(), data.validationMetadata().seenClasses() ); - JsonSchema itemsSchema = JsonSchemaFactory.getInstance(prefixItems.get(i)); + JsonSchema itemsSchema = JsonSchemaFactory.getInstance(prefixItems.get(i)); PathToSchemasMap otherPathToSchemas = JsonSchema.validate(itemsSchema, listArg.get(i), itemValidationMetadata); pathToSchemas.update(otherPathToSchemas); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidator.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidator.java index 17bccdd666a..b8ddd6fcb46 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidator.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidator.java @@ -27,7 +27,7 @@ public class PropertiesValidator implements KeywordValidator { presentProperties.add((String) key); } } - for(Map.Entry> entry: properties.entrySet()) { + for(Map.Entry>> entry: properties.entrySet()) { String propName = entry.getKey(); if (!presentProperties.contains(propName)) { continue; @@ -41,8 +41,8 @@ public class PropertiesValidator implements KeywordValidator { data.validationMetadata().validatedPathToSchemas(), data.validationMetadata().seenClasses() ); - Class propClass = entry.getValue(); - JsonSchema propSchema = JsonSchemaFactory.getInstance(propClass); + Class> propClass = entry.getValue(); + JsonSchema propSchema = JsonSchemaFactory.getInstance(propClass); if (propValidationMetadata.validationRanEarlier(propSchema)) { // todo add_deeper_validated_schemas continue; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertyNamesValidator.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertyNamesValidator.java index 55ea80b0382..087cd308b11 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertyNamesValidator.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertyNamesValidator.java @@ -18,7 +18,7 @@ public class PropertyNamesValidator implements KeywordValidator { if (!(data.arg() instanceof Map mapArg)) { return null; } - JsonSchema propertyNamesSchema = JsonSchemaFactory.getInstance(propertyNames); + JsonSchema propertyNamesSchema = JsonSchemaFactory.getInstance(propertyNames); for (Object objKey: mapArg.keySet()) { if (objKey instanceof String key) { List propPathToItem = new ArrayList<>(data.validationMetadata().pathToItem()); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ThenValidator.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ThenValidator.java index ad97e0e554e..bf599bc812f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ThenValidator.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ThenValidator.java @@ -22,7 +22,7 @@ public class ThenValidator implements KeywordValidator { // if validation is false return null; } - JsonSchema thenSchema = JsonSchemaFactory.getInstance(then); + JsonSchema thenSchema = JsonSchemaFactory.getInstance(then); PathToSchemasMap pathToSchemas = new PathToSchemasMap(); var thenPathToSchemas = JsonSchema.validate(thenSchema, data.arg(), data.validationMetadata()); // todo capture validation error and describe it as an then error? diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnevaluatedItemsValidator.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnevaluatedItemsValidator.java index cfb88550525..8903d0b19a7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnevaluatedItemsValidator.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnevaluatedItemsValidator.java @@ -26,7 +26,7 @@ public class UnevaluatedItemsValidator implements KeywordValidator { } PathToSchemasMap pathToSchemas = new PathToSchemasMap(); int minIndex = data.schema().prefixItems != null ? data.schema().prefixItems.size() : 0; - JsonSchema unevaluatedItemsSchema = JsonSchemaFactory.getInstance(unevaluatedItems); + JsonSchema unevaluatedItemsSchema = JsonSchemaFactory.getInstance(unevaluatedItems); for(int i = minIndex; i < listArg.size(); i++) { List itemPathToItem = new ArrayList<>(data.validationMetadata().pathToItem()); itemPathToItem.add(i); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnevaluatedPropertiesValidator.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnevaluatedPropertiesValidator.java index abc7f7e86f9..344c0cfab1b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnevaluatedPropertiesValidator.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnevaluatedPropertiesValidator.java @@ -24,7 +24,7 @@ public class UnevaluatedPropertiesValidator implements KeywordValidator { return null; } PathToSchemasMap pathToSchemas = new PathToSchemasMap(); - JsonSchema unevaluatedPropertiesSchema = JsonSchemaFactory.getInstance(unevaluatedProperties); + JsonSchema unevaluatedPropertiesSchema = JsonSchemaFactory.getInstance(unevaluatedProperties); for(Map.Entry entry: mapArg.entrySet()) { if (!(entry.getKey() instanceof String propName)) { throw new InvalidTypeException("Map keys must be strings"); diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java index 1ae537268f2..a49bce9dff8 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java @@ -3,7 +3,6 @@ import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.ToNumberPolicy; -import org.checkerframework.checker.nullness.qual.Nullable; import org.junit.Assert; import org.junit.Test; import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; diff --git a/src/main/resources/java/src/main/java/packagename/schemas/validation/AdditionalPropertiesValidator.hbs b/src/main/resources/java/src/main/java/packagename/schemas/validation/AdditionalPropertiesValidator.hbs index 4afe7f25942..8bbf3e86757 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/validation/AdditionalPropertiesValidator.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/validation/AdditionalPropertiesValidator.hbs @@ -43,7 +43,7 @@ public class AdditionalPropertiesValidator implements KeywordValidator { data.validationMetadata().validatedPathToSchemas(), data.validationMetadata().seenClasses() ); - JsonSchema addPropsSchema = JsonSchemaFactory.getInstance(additionalProperties); + JsonSchema addPropsSchema = JsonSchemaFactory.getInstance(additionalProperties); if (propValidationMetadata.validationRanEarlier(addPropsSchema)) { // todo add_deeper_validated_schemas continue; diff --git a/src/main/resources/java/src/main/java/packagename/schemas/validation/AllOfValidator.hbs b/src/main/resources/java/src/main/java/packagename/schemas/validation/AllOfValidator.hbs index 6ae68f5c87c..f771b150337 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/validation/AllOfValidator.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/validation/AllOfValidator.hbs @@ -11,8 +11,8 @@ public class AllOfValidator implements KeywordValidator { return null; } PathToSchemasMap pathToSchemas = new PathToSchemasMap(); - for(Class allOfClass: allOf) { - JsonSchema allOfSchema = JsonSchemaFactory.getInstance(allOfClass); + for(Class> allOfClass: allOf) { + JsonSchema allOfSchema = JsonSchemaFactory.getInstance(allOfClass); PathToSchemasMap otherPathToSchemas = JsonSchema.validate(allOfSchema, data.arg(), data.validationMetadata()); pathToSchemas.update(otherPathToSchemas); } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/validation/AnyOfValidator.hbs b/src/main/resources/java/src/main/java/packagename/schemas/validation/AnyOfValidator.hbs index bfd75e7433b..201e4aa0eb0 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/validation/AnyOfValidator.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/validation/AnyOfValidator.hbs @@ -16,8 +16,8 @@ public class AnyOfValidator implements KeywordValidator { return null; } PathToSchemasMap pathToSchemas = new PathToSchemasMap(); - List> validatedAnyOfClasses = new ArrayList<>(); - for(Class anyOfClass: anyOf) { + List>> validatedAnyOfClasses = new ArrayList<>(); + for(Class> anyOfClass: anyOf) { if (anyOfClass == data.schema().getClass()) { /* optimistically assume that schema will pass validation @@ -27,7 +27,7 @@ public class AnyOfValidator implements KeywordValidator { continue; } try { - JsonSchema anyOfSchema = JsonSchemaFactory.getInstance(anyOfClass); + JsonSchema anyOfSchema = JsonSchemaFactory.getInstance(anyOfClass); PathToSchemasMap otherPathToSchemas = JsonSchema.validate(anyOfSchema, data.arg(), data.validationMetadata()); validatedAnyOfClasses.add(anyOfClass); pathToSchemas.update(otherPathToSchemas); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/validation/DependentSchemasValidator.hbs b/src/main/resources/java/src/main/java/packagename/schemas/validation/DependentSchemasValidator.hbs index 79715b86929..075b96c4b38 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/validation/DependentSchemasValidator.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/validation/DependentSchemasValidator.hbs @@ -25,13 +25,13 @@ public class DependentSchemasValidator implements KeywordValidator { presentProperties.add((String) key); } } - for(Map.Entry> entry: dependentSchemas.entrySet()) { + for(Map.Entry>> entry: dependentSchemas.entrySet()) { String propName = entry.getKey(); if (!presentProperties.contains(propName)) { continue; } - Class dependentSchemaClass = entry.getValue(); - JsonSchema dependentSchema = JsonSchemaFactory.getInstance(dependentSchemaClass); + Class> dependentSchemaClass = entry.getValue(); + JsonSchema dependentSchema = JsonSchemaFactory.getInstance(dependentSchemaClass); PathToSchemasMap otherPathToSchemas = JsonSchema.validate(dependentSchema, mapArg, data.validationMetadata()); pathToSchemas.update(otherPathToSchemas); } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/validation/ElseValidator.hbs b/src/main/resources/java/src/main/java/packagename/schemas/validation/ElseValidator.hbs index 9c5d8651e14..f5dc7ee36f4 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/validation/ElseValidator.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/validation/ElseValidator.hbs @@ -22,7 +22,7 @@ public class ElseValidator implements KeywordValidator { // if validation is true return null; } - JsonSchema elseSchemaInstance = JsonSchemaFactory.getInstance(elseSchema); + JsonSchema elseSchemaInstance = JsonSchemaFactory.getInstance(elseSchema); PathToSchemasMap pathToSchemas = new PathToSchemasMap(); var elsePathToSchemas = JsonSchema.validate(elseSchemaInstance, data.arg(), data.validationMetadata()); // todo capture validation error and describe it as an else error? diff --git a/src/main/resources/java/src/main/java/packagename/schemas/validation/ItemsValidator.hbs b/src/main/resources/java/src/main/java/packagename/schemas/validation/ItemsValidator.hbs index fe4ca51f048..102f58e9ed8 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/validation/ItemsValidator.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/validation/ItemsValidator.hbs @@ -22,7 +22,7 @@ public class ItemsValidator implements KeywordValidator { } PathToSchemasMap pathToSchemas = new PathToSchemasMap(); int minIndex = data.schema().prefixItems != null ? data.schema().prefixItems.size() : 0; - JsonSchema itemsSchema = JsonSchemaFactory.getInstance(items); + JsonSchema itemsSchema = JsonSchemaFactory.getInstance(items); for(int i = minIndex; i < listArg.size(); i++) { List itemPathToItem = new ArrayList<>(data.validationMetadata().pathToItem()); itemPathToItem.add(i); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/validation/JsonSchemaFactory.hbs b/src/main/resources/java/src/main/java/packagename/schemas/validation/JsonSchemaFactory.hbs index 2ea8c56b4fe..ee529fb4fa1 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/validation/JsonSchemaFactory.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/validation/JsonSchemaFactory.hbs @@ -10,10 +10,10 @@ import java.util.Map; public class JsonSchemaFactory { - static Map, JsonSchema> classToInstance = new HashMap<>(); + static Map>, JsonSchema> classToInstance = new HashMap<>(); - public static V getInstance(Class schemaCls) { - @Nullable JsonSchema cacheInst = classToInstance.get(schemaCls); + public static > V getInstance(Class schemaCls) { + @Nullable JsonSchema cacheInst = classToInstance.get(schemaCls); if (cacheInst != null) { assert schemaCls.isInstance(cacheInst); return schemaCls.cast(cacheInst); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/validation/NotValidator.hbs b/src/main/resources/java/src/main/java/packagename/schemas/validation/NotValidator.hbs index 665d13f253f..3d29af2e934 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/validation/NotValidator.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/validation/NotValidator.hbs @@ -14,7 +14,7 @@ public class NotValidator implements KeywordValidator { } PathToSchemasMap pathToSchemas; try { - JsonSchema notSchema = JsonSchemaFactory.getInstance(not); + JsonSchema notSchema = JsonSchemaFactory.getInstance(not); pathToSchemas = JsonSchema.validate(notSchema, data.arg(), data.validationMetadata()); } catch (ValidationException e) { return null; diff --git a/src/main/resources/java/src/main/java/packagename/schemas/validation/PrefixItemsValidator.hbs b/src/main/resources/java/src/main/java/packagename/schemas/validation/PrefixItemsValidator.hbs index a13b4211a6e..ab1c1402059 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/validation/PrefixItemsValidator.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/validation/PrefixItemsValidator.hbs @@ -31,7 +31,7 @@ public class PrefixItemsValidator implements KeywordValidator { data.validationMetadata().validatedPathToSchemas(), data.validationMetadata().seenClasses() ); - JsonSchema itemsSchema = JsonSchemaFactory.getInstance(prefixItems.get(i)); + JsonSchema itemsSchema = JsonSchemaFactory.getInstance(prefixItems.get(i)); PathToSchemasMap otherPathToSchemas = JsonSchema.validate(itemsSchema, listArg.get(i), itemValidationMetadata); pathToSchemas.update(otherPathToSchemas); } diff --git a/src/main/resources/java/src/main/java/packagename/schemas/validation/PropertiesValidator.hbs b/src/main/resources/java/src/main/java/packagename/schemas/validation/PropertiesValidator.hbs index d2dc11f8ec1..914170287d2 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/validation/PropertiesValidator.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/validation/PropertiesValidator.hbs @@ -27,7 +27,7 @@ public class PropertiesValidator implements KeywordValidator { presentProperties.add((String) key); } } - for(Map.Entry> entry: properties.entrySet()) { + for(Map.Entry>> entry: properties.entrySet()) { String propName = entry.getKey(); if (!presentProperties.contains(propName)) { continue; @@ -41,8 +41,8 @@ public class PropertiesValidator implements KeywordValidator { data.validationMetadata().validatedPathToSchemas(), data.validationMetadata().seenClasses() ); - Class propClass = entry.getValue(); - JsonSchema propSchema = JsonSchemaFactory.getInstance(propClass); + Class> propClass = entry.getValue(); + JsonSchema propSchema = JsonSchemaFactory.getInstance(propClass); if (propValidationMetadata.validationRanEarlier(propSchema)) { // todo add_deeper_validated_schemas continue; diff --git a/src/main/resources/java/src/main/java/packagename/schemas/validation/PropertyNamesValidator.hbs b/src/main/resources/java/src/main/java/packagename/schemas/validation/PropertyNamesValidator.hbs index 4777695d0f6..49315059c97 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/validation/PropertyNamesValidator.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/validation/PropertyNamesValidator.hbs @@ -18,7 +18,7 @@ public class PropertyNamesValidator implements KeywordValidator { if (!(data.arg() instanceof Map mapArg)) { return null; } - JsonSchema propertyNamesSchema = JsonSchemaFactory.getInstance(propertyNames); + JsonSchema propertyNamesSchema = JsonSchemaFactory.getInstance(propertyNames); for (Object objKey: mapArg.keySet()) { if (objKey instanceof String key) { List propPathToItem = new ArrayList<>(data.validationMetadata().pathToItem()); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/validation/ThenValidator.hbs b/src/main/resources/java/src/main/java/packagename/schemas/validation/ThenValidator.hbs index e273bd5fed3..c84fec4b79d 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/validation/ThenValidator.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/validation/ThenValidator.hbs @@ -22,7 +22,7 @@ public class ThenValidator implements KeywordValidator { // if validation is false return null; } - JsonSchema thenSchema = JsonSchemaFactory.getInstance(then); + JsonSchema thenSchema = JsonSchemaFactory.getInstance(then); PathToSchemasMap pathToSchemas = new PathToSchemasMap(); var thenPathToSchemas = JsonSchema.validate(thenSchema, data.arg(), data.validationMetadata()); // todo capture validation error and describe it as an then error? diff --git a/src/main/resources/java/src/main/java/packagename/schemas/validation/UnevaluatedItemsValidator.hbs b/src/main/resources/java/src/main/java/packagename/schemas/validation/UnevaluatedItemsValidator.hbs index b6743e8f3f9..08491693ad1 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/validation/UnevaluatedItemsValidator.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/validation/UnevaluatedItemsValidator.hbs @@ -26,7 +26,7 @@ public class UnevaluatedItemsValidator implements KeywordValidator { } PathToSchemasMap pathToSchemas = new PathToSchemasMap(); int minIndex = data.schema().prefixItems != null ? data.schema().prefixItems.size() : 0; - JsonSchema unevaluatedItemsSchema = JsonSchemaFactory.getInstance(unevaluatedItems); + JsonSchema unevaluatedItemsSchema = JsonSchemaFactory.getInstance(unevaluatedItems); for(int i = minIndex; i < listArg.size(); i++) { List itemPathToItem = new ArrayList<>(data.validationMetadata().pathToItem()); itemPathToItem.add(i); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/validation/UnevaluatedPropertiesValidator.hbs b/src/main/resources/java/src/main/java/packagename/schemas/validation/UnevaluatedPropertiesValidator.hbs index eb247129553..f8db065d12a 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/validation/UnevaluatedPropertiesValidator.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/validation/UnevaluatedPropertiesValidator.hbs @@ -24,7 +24,7 @@ public class UnevaluatedPropertiesValidator implements KeywordValidator { return null; } PathToSchemasMap pathToSchemas = new PathToSchemasMap(); - JsonSchema unevaluatedPropertiesSchema = JsonSchemaFactory.getInstance(unevaluatedProperties); + JsonSchema unevaluatedPropertiesSchema = JsonSchemaFactory.getInstance(unevaluatedProperties); for(Map.Entry entry: mapArg.entrySet()) { if (!(entry.getKey() instanceof String propName)) { throw new InvalidTypeException("Map keys must be strings"); diff --git a/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs b/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs index 4e7b6fba936..d1780c2296d 100644 --- a/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs @@ -3,7 +3,6 @@ package {{{packageName}}}.response; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.ToNumberPolicy; -import org.checkerframework.checker.nullness.qual.Nullable; import org.junit.Assert; import org.junit.Test; import {{{packageName}}}.configurations.JsonSchemaKeywordFlags; From 179185003294cdec2823e4d3c372ac6b3fd1d86f Mon Sep 17 00:00:00 2001 From: Justin Black Date: Wed, 21 Feb 2024 15:37:40 -0800 Subject: [PATCH 30/50] Improves RequestBodySerializerTest --- .../RequestBodySerializerTest.java | 124 ++++++++++-------- .../requestbody/RequestBodySerializerTest.hbs | 124 ++++++++++-------- 2 files changed, 144 insertions(+), 104 deletions(-) diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java index e3457246622..04e5440b5db 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java @@ -2,82 +2,69 @@ import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.schemas.MapJsonSchema; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; import org.checkerframework.checker.nullness.qual.Nullable; import org.junit.Assert; import org.junit.Test; +import org.openapijsonschematools.client.schemas.StringJsonSchema; import java.net.http.HttpResponse; import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; +import java.util.AbstractMap; import java.util.List; import java.util.Map; import java.util.concurrent.Flow; public final class RequestBodySerializerTest { + public sealed interface SealedMediaType permits ApplicationjsonMediaType, TextplainMediaType {} + public record ApplicationjsonMediaType(AnyTypeJsonSchema.AnyTypeJsonSchema1 schema) implements SealedMediaType {} + public record TextplainMediaType(StringJsonSchema.StringJsonSchema1 schema) implements SealedMediaType {} public sealed interface SealedRequestBody permits ApplicationjsonRequestBody, TextplainRequestBody {} - public static final class ApplicationjsonRequestBody implements SealedRequestBody, GenericRequestBody<@Nullable Object> { - private final String contentType; - private final @Nullable Object body; - public ApplicationjsonRequestBody(@Nullable Object body) { - contentType = "application/json"; - this.body = body; - } + public record ApplicationjsonRequestBody(AnyTypeJsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody<@Nullable Object> { @Override public String contentType() { - return contentType; - } - - @Override - public @Nullable Object body() { - return body; + return "application/json"; } } - public static final class TextplainRequestBody implements SealedRequestBody, GenericRequestBody<@Nullable Object> { - private final String contentType; - private final @Nullable Object body; - public TextplainRequestBody(@Nullable Object body) { - contentType = "text/plain"; - this.body = body; - } + public record TextplainRequestBody(StringJsonSchema.StringJsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody<@Nullable Object> { @Override public String contentType() { - return contentType; - } - - @Override - public @Nullable Object body() { - return body; + return "text/plain"; } } - public static class MyRequestBodySerializer extends RequestBodySerializer { + public static class MyRequestBodySerializer extends RequestBodySerializer { public MyRequestBodySerializer() { - super(Map.of(), true); + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType(AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance())), + new AbstractMap.SimpleEntry<>("application/json", new TextplainMediaType(StringJsonSchema.StringJsonSchema1.getInstance())) + ), + true); } public SerializedRequestBody serialize(SealedRequestBody requestBody) { if (requestBody instanceof ApplicationjsonRequestBody requestBody0) { - return serialize(requestBody0.contentType(), requestBody0.body()); + return serialize(requestBody0.contentType(), requestBody0.body().getData()); } else { TextplainRequestBody requestBody1 = (TextplainRequestBody) requestBody; - return serialize(requestBody1.contentType(), requestBody1.body()); + return serialize(requestBody1.contentType(), requestBody1.body().getData()); } } } @Test public void testContentTypeIsJson() { - var serializer = new MyRequestBodySerializer(); - Assert.assertTrue(serializer.contentTypeIsJson("application/json")); - Assert.assertTrue(serializer.contentTypeIsJson("application/json; charset=UTF-8")); - Assert.assertTrue(serializer.contentTypeIsJson("application/json-patch+json")); - Assert.assertTrue(serializer.contentTypeIsJson("application/geo+json")); + Assert.assertTrue(RequestBodySerializer.contentTypeIsJson("application/json")); + Assert.assertTrue(RequestBodySerializer.contentTypeIsJson("application/json; charset=UTF-8")); + Assert.assertTrue(RequestBodySerializer.contentTypeIsJson("application/json-patch+json")); + Assert.assertTrue(RequestBodySerializer.contentTypeIsJson("application/geo+json")); - Assert.assertFalse(serializer.contentTypeIsJson("application/octet-stream")); - Assert.assertFalse(serializer.contentTypeIsJson("text/plain")); + Assert.assertFalse(RequestBodySerializer.contentTypeIsJson("application/octet-stream")); + Assert.assertFalse(RequestBodySerializer.contentTypeIsJson("text/plain")); } static final class StringSubscriber implements Flow.Subscriber { @@ -101,56 +88,89 @@ private String getJsonBody(SerializedRequestBody requestBody) { var bodySubscriber = HttpResponse.BodySubscribers.ofString(StandardCharsets.UTF_8); var flowSubscriber = new StringSubscriber(bodySubscriber); requestBody.bodyPublisher.subscribe(flowSubscriber); - return bodySubscriber.getBody().toCompletableFuture().join(); } @Test public void testSerializeApplicationJson() { + SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); var serializer = new MyRequestBodySerializer(); String jsonBody; - SerializedRequestBody requestBody = serializer.serialize(new ApplicationjsonRequestBody(1)); + SerializedRequestBody requestBody = serializer.serialize( + new ApplicationjsonRequestBody( + AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(1, configuration) + ) + ); Assert.assertEquals("application/json", requestBody.contentType); jsonBody = getJsonBody(requestBody); Assert.assertEquals(jsonBody, "1"); - requestBody = serializer.serialize(new ApplicationjsonRequestBody(3.14)); + requestBody = serializer.serialize( + new ApplicationjsonRequestBody( + AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(3.14, configuration) + ) + ); jsonBody = getJsonBody(requestBody); Assert.assertEquals(jsonBody, "3.14"); - requestBody = serializer.serialize(new ApplicationjsonRequestBody(null)); + requestBody = serializer.serialize( + new ApplicationjsonRequestBody( + AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox((Void) null, configuration) + ) + ); jsonBody = getJsonBody(requestBody); Assert.assertEquals(jsonBody, "null"); - requestBody = serializer.serialize(new ApplicationjsonRequestBody(true)); + requestBody = serializer.serialize( + new ApplicationjsonRequestBody( + AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(true, configuration) + ) + ); jsonBody = getJsonBody(requestBody); Assert.assertEquals(jsonBody, "true"); - requestBody = serializer.serialize(new ApplicationjsonRequestBody(false)); + requestBody = serializer.serialize( + new ApplicationjsonRequestBody( + AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(false, configuration) + ) + ); jsonBody = getJsonBody(requestBody); Assert.assertEquals(jsonBody, "false"); - - requestBody = serializer.serialize(new ApplicationjsonRequestBody(List.of())); + requestBody = serializer.serialize( + new ApplicationjsonRequestBody( + AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(List.of(), configuration) + ) + ); jsonBody = getJsonBody(requestBody); Assert.assertEquals(jsonBody, "[]"); - requestBody = serializer.serialize(new ApplicationjsonRequestBody(Map.of())); + requestBody = serializer.serialize( + new ApplicationjsonRequestBody( + AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(Map.of(), configuration) + ) + ); jsonBody = getJsonBody(requestBody); Assert.assertEquals(jsonBody, "{}"); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); - MapJsonSchema.MapJsonSchema1 mapJsonSchema = MapJsonSchema.MapJsonSchema1.getInstance(); - var frozenMap = mapJsonSchema.validate(Map.of("k1", "v1", "k2", "v2"), configuration); - requestBody = serializer.serialize(new ApplicationjsonRequestBody(frozenMap)); + requestBody = serializer.serialize( + new ApplicationjsonRequestBody( + AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(Map.of("k1", "v1", "k2", "v2"), configuration) + ) + ); jsonBody = getJsonBody(requestBody); Assert.assertEquals(jsonBody, "{\"k2\":\"v2\",\"k1\":\"v1\"}"); } @Test public void testSerializeTextPlain() { + SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); var serializer = new MyRequestBodySerializer(); - SerializedRequestBody requestBody = serializer.serialize(new TextplainRequestBody("a")); + SerializedRequestBody requestBody = serializer.serialize( + new TextplainRequestBody( + StringJsonSchema.StringJsonSchema1.getInstance().validateAndBox("a", configuration) + ) + ); Assert.assertEquals("text/plain", requestBody.contentType); String textBody = getJsonBody(requestBody); Assert.assertEquals(textBody, "a"); diff --git a/src/main/resources/java/src/test/java/packagename/requestbody/RequestBodySerializerTest.hbs b/src/main/resources/java/src/test/java/packagename/requestbody/RequestBodySerializerTest.hbs index 17a6a467dde..c4ae939457d 100644 --- a/src/main/resources/java/src/test/java/packagename/requestbody/RequestBodySerializerTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/requestbody/RequestBodySerializerTest.hbs @@ -2,7 +2,8 @@ package {{{packageName}}}.requestbody; import {{{packageName}}}.configurations.JsonSchemaKeywordFlags; import {{{packageName}}}.configurations.SchemaConfiguration; -import {{{packageName}}}.schemas.MapJsonSchema; +import {{{packageName}}}.schemas.AnyTypeJsonSchema; +import {{{packageName}}}.schemas.StringJsonSchema; import org.checkerframework.checker.nullness.qual.Nullable; import org.junit.Assert; @@ -11,73 +12,59 @@ import org.junit.Test; import java.net.http.HttpResponse; import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; +import java.util.AbstractMap; import java.util.List; import java.util.Map; import java.util.concurrent.Flow; public final class RequestBodySerializerTest { + public sealed interface SealedMediaType permits ApplicationjsonMediaType, TextplainMediaType {} + public record ApplicationjsonMediaType(AnyTypeJsonSchema.AnyTypeJsonSchema1 schema) implements SealedMediaType {} + public record TextplainMediaType(StringJsonSchema.StringJsonSchema1 schema) implements SealedMediaType {} public sealed interface SealedRequestBody permits ApplicationjsonRequestBody, TextplainRequestBody {} - public static final class ApplicationjsonRequestBody implements SealedRequestBody, GenericRequestBody<@Nullable Object> { - private final String contentType; - private final @Nullable Object body; - public ApplicationjsonRequestBody(@Nullable Object body) { - contentType = "application/json"; - this.body = body; - } + public record ApplicationjsonRequestBody(AnyTypeJsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody<@Nullable Object> { @Override public String contentType() { - return contentType; - } - - @Override - public @Nullable Object body() { - return body; + return "application/json"; } } - public static final class TextplainRequestBody implements SealedRequestBody, GenericRequestBody<@Nullable Object> { - private final String contentType; - private final @Nullable Object body; - public TextplainRequestBody(@Nullable Object body) { - contentType = "text/plain"; - this.body = body; - } + public record TextplainRequestBody(StringJsonSchema.StringJsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody<@Nullable Object> { @Override public String contentType() { - return contentType; - } - - @Override - public @Nullable Object body() { - return body; + return "text/plain"; } } - public static class MyRequestBodySerializer extends RequestBodySerializer { + public static class MyRequestBodySerializer extends RequestBodySerializer { public MyRequestBodySerializer() { - super(Map.of(), true); + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType(AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance())), + new AbstractMap.SimpleEntry<>("application/json", new TextplainMediaType(StringJsonSchema.StringJsonSchema1.getInstance())) + ), + true); } public SerializedRequestBody serialize(SealedRequestBody requestBody) { if (requestBody instanceof ApplicationjsonRequestBody requestBody0) { - return serialize(requestBody0.contentType(), requestBody0.body()); + return serialize(requestBody0.contentType(), requestBody0.body().getData()); } else { TextplainRequestBody requestBody1 = (TextplainRequestBody) requestBody; - return serialize(requestBody1.contentType(), requestBody1.body()); + return serialize(requestBody1.contentType(), requestBody1.body().getData()); } } } @Test public void testContentTypeIsJson() { - var serializer = new MyRequestBodySerializer(); - Assert.assertTrue(serializer.contentTypeIsJson("application/json")); - Assert.assertTrue(serializer.contentTypeIsJson("application/json; charset=UTF-8")); - Assert.assertTrue(serializer.contentTypeIsJson("application/json-patch+json")); - Assert.assertTrue(serializer.contentTypeIsJson("application/geo+json")); + Assert.assertTrue(RequestBodySerializer.contentTypeIsJson("application/json")); + Assert.assertTrue(RequestBodySerializer.contentTypeIsJson("application/json; charset=UTF-8")); + Assert.assertTrue(RequestBodySerializer.contentTypeIsJson("application/json-patch+json")); + Assert.assertTrue(RequestBodySerializer.contentTypeIsJson("application/geo+json")); - Assert.assertFalse(serializer.contentTypeIsJson("application/octet-stream")); - Assert.assertFalse(serializer.contentTypeIsJson("text/plain")); + Assert.assertFalse(RequestBodySerializer.contentTypeIsJson("application/octet-stream")); + Assert.assertFalse(RequestBodySerializer.contentTypeIsJson("text/plain")); } static final class StringSubscriber implements Flow.Subscriber { @@ -101,56 +88,89 @@ public final class RequestBodySerializerTest { var bodySubscriber = HttpResponse.BodySubscribers.ofString(StandardCharsets.UTF_8); var flowSubscriber = new StringSubscriber(bodySubscriber); requestBody.bodyPublisher.subscribe(flowSubscriber); - return bodySubscriber.getBody().toCompletableFuture().join(); } @Test public void testSerializeApplicationJson() { + SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); var serializer = new MyRequestBodySerializer(); String jsonBody; - SerializedRequestBody requestBody = serializer.serialize(new ApplicationjsonRequestBody(1)); + SerializedRequestBody requestBody = serializer.serialize( + new ApplicationjsonRequestBody( + AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(1, configuration) + ) + ); Assert.assertEquals("application/json", requestBody.contentType); jsonBody = getJsonBody(requestBody); Assert.assertEquals(jsonBody, "1"); - requestBody = serializer.serialize(new ApplicationjsonRequestBody(3.14)); + requestBody = serializer.serialize( + new ApplicationjsonRequestBody( + AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(3.14, configuration) + ) + ); jsonBody = getJsonBody(requestBody); Assert.assertEquals(jsonBody, "3.14"); - requestBody = serializer.serialize(new ApplicationjsonRequestBody(null)); + requestBody = serializer.serialize( + new ApplicationjsonRequestBody( + AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox((Void) null, configuration) + ) + ); jsonBody = getJsonBody(requestBody); Assert.assertEquals(jsonBody, "null"); - requestBody = serializer.serialize(new ApplicationjsonRequestBody(true)); + requestBody = serializer.serialize( + new ApplicationjsonRequestBody( + AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(true, configuration) + ) + ); jsonBody = getJsonBody(requestBody); Assert.assertEquals(jsonBody, "true"); - requestBody = serializer.serialize(new ApplicationjsonRequestBody(false)); + requestBody = serializer.serialize( + new ApplicationjsonRequestBody( + AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(false, configuration) + ) + ); jsonBody = getJsonBody(requestBody); Assert.assertEquals(jsonBody, "false"); - - requestBody = serializer.serialize(new ApplicationjsonRequestBody(List.of())); + requestBody = serializer.serialize( + new ApplicationjsonRequestBody( + AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(List.of(), configuration) + ) + ); jsonBody = getJsonBody(requestBody); Assert.assertEquals(jsonBody, "[]"); - requestBody = serializer.serialize(new ApplicationjsonRequestBody(Map.of())); + requestBody = serializer.serialize( + new ApplicationjsonRequestBody( + AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(Map.of(), configuration) + ) + ); jsonBody = getJsonBody(requestBody); Assert.assertEquals(jsonBody, "{}"); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); - MapJsonSchema.MapJsonSchema1 mapJsonSchema = MapJsonSchema.MapJsonSchema1.getInstance(); - var frozenMap = mapJsonSchema.validate(Map.of("k1", "v1", "k2", "v2"), configuration); - requestBody = serializer.serialize(new ApplicationjsonRequestBody(frozenMap)); + requestBody = serializer.serialize( + new ApplicationjsonRequestBody( + AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(Map.of("k1", "v1", "k2", "v2"), configuration) + ) + ); jsonBody = getJsonBody(requestBody); Assert.assertEquals(jsonBody, "{\"k2\":\"v2\",\"k1\":\"v1\"}"); } @Test public void testSerializeTextPlain() { + SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); var serializer = new MyRequestBodySerializer(); - SerializedRequestBody requestBody = serializer.serialize(new TextplainRequestBody("a")); + SerializedRequestBody requestBody = serializer.serialize( + new TextplainRequestBody( + StringJsonSchema.StringJsonSchema1.getInstance().validateAndBox("a", configuration) + ) + ); Assert.assertEquals("text/plain", requestBody.contentType); String textBody = getJsonBody(requestBody); Assert.assertEquals(textBody, "a"); From 85ff1213d124a6719e1509b55960e13ddc2d0cf1 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Wed, 21 Feb 2024 16:02:37 -0800 Subject: [PATCH 31/50] Fixes validator tests --- .../AdditionalPropertiesValidatorTest.java | 12 +++- .../validation/ItemsValidatorTest.java | 12 +++- .../schemas/validation/JsonSchemaTest.java | 61 ++++++++++-------- .../validation/PropertiesValidatorTest.java | 12 +++- .../validation/RequiredValidatorTest.java | 10 ++- .../AdditionalPropertiesValidatorTest.hbs | 12 +++- .../schemas/validation/ItemsValidatorTest.hbs | 12 +++- .../schemas/validation/JsonSchemaTest.hbs | 64 +++++++++++-------- .../validation/PropertiesValidatorTest.hbs | 12 +++- .../validation/RequiredValidatorTest.hbs | 10 ++- 10 files changed, 149 insertions(+), 68 deletions(-) diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidatorTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidatorTest.java index 5bf7ee3b6b5..40a01c9983d 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidatorTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidatorTest.java @@ -18,7 +18,10 @@ import java.util.Set; public class AdditionalPropertiesValidatorTest { - public static class ObjectWithPropsSchema extends JsonSchema { + public sealed interface ObjectWithPropsSchemaBoxed permits ObjectWithPropsSchemaBoxedMap {} + public record ObjectWithPropsSchemaBoxedMap() implements ObjectWithPropsSchemaBoxed {} + + public static class ObjectWithPropsSchema extends JsonSchema { private static @Nullable ObjectWithPropsSchema instance = null; private ObjectWithPropsSchema() { super(new JsonSchemaInfo() @@ -53,6 +56,11 @@ public Object getNewInstance(@Nullable Object arg, List pathToItem, Path } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + + @Override + public ObjectWithPropsSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + return new ObjectWithPropsSchemaBoxedMap(); + } } @SuppressWarnings("nullness") @@ -88,7 +96,7 @@ public void testCorrectPropertySucceeds() { List expectedPathToItem = new ArrayList<>(); expectedPathToItem.add("args[0]"); expectedPathToItem.add("someAddProp"); - LinkedHashMap expectedClasses = new LinkedHashMap<>(); + LinkedHashMap, Void> expectedClasses = new LinkedHashMap<>(); StringJsonSchema.StringJsonSchema1 schema = JsonSchemaFactory.getInstance(StringJsonSchema.StringJsonSchema1.class); expectedClasses.put(schema, null); PathToSchemasMap expectedPathToSchemas = new PathToSchemasMap(); diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/ItemsValidatorTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/ItemsValidatorTest.java index f9f01dcb28a..e0e4a0c859e 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/ItemsValidatorTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/ItemsValidatorTest.java @@ -21,7 +21,10 @@ private void assertNull(@Nullable Object object) { Assert.assertNull(object); } - public static class ArrayWithItemsSchema extends JsonSchema { + public sealed interface ArrayWithItemsSchemaBoxed permits ArrayWithItemsSchemaBoxedList {} + public record ArrayWithItemsSchemaBoxedList() implements ArrayWithItemsSchemaBoxed {} + + public static class ArrayWithItemsSchema extends JsonSchema { public ArrayWithItemsSchema() { super(new JsonSchemaInfo() .type(Set.of(List.class)) @@ -44,6 +47,11 @@ public Object getNewInstance(@Nullable Object arg, List pathToItem, Path } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + + @Override + public ArrayWithItemsSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + return new ArrayWithItemsSchemaBoxedList(); + } } @Test @@ -72,7 +80,7 @@ public void testCorrectItemsSucceeds() { List expectedPathToItem = new ArrayList<>(); expectedPathToItem.add("args[0]"); expectedPathToItem.add(0); - LinkedHashMap expectedClasses = new LinkedHashMap<>(); + LinkedHashMap, Void> expectedClasses = new LinkedHashMap<>(); StringJsonSchema.StringJsonSchema1 schema = JsonSchemaFactory.getInstance(StringJsonSchema.StringJsonSchema1.class); expectedClasses.put(schema, null); PathToSchemasMap expectedPathToSchemas = new PathToSchemasMap(); diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaTest.java index 525222b9ad7..e6834ca0219 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaTest.java @@ -13,39 +13,46 @@ import java.util.List; import java.util.Set; -class SomeSchema extends JsonSchema { - private static @Nullable SomeSchema instance = null; - protected SomeSchema() { - super(new JsonSchemaInfo() - .type(Set.of(String.class)) - ); - } +public class JsonSchemaTest { + sealed interface SomeSchemaBoxed permits SomeSchemaBoxedString {} + record SomeSchemaBoxedString() implements SomeSchemaBoxed {} - public static SomeSchema getInstance() { - if (instance == null) { - instance = new SomeSchema(); + static class SomeSchema extends JsonSchema { + private static @Nullable SomeSchema instance = null; + protected SomeSchema() { + super(new JsonSchemaInfo() + .type(Set.of(String.class)) + ); } - return instance; - } - @Override - public Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof String) { - return arg; + public static SomeSchema getInstance() { + if (instance == null) { + instance = new SomeSchema(); + } + return instance; } - throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { - if (arg instanceof String) { - return arg; + @Override + public Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof String) { + return arg; + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } - throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } -} -public class JsonSchemaTest { + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + if (arg instanceof String) { + return arg; + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + + @Override + public SomeSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + return new SomeSchemaBoxedString(); + } + } @Test public void testValidateSucceeds() { @@ -63,7 +70,7 @@ public void testValidateSucceeds() { validationMetadata ); PathToSchemasMap expectedPathToSchemas = new PathToSchemasMap(); - LinkedHashMap validatedClasses = new LinkedHashMap<>(); + LinkedHashMap, Void> validatedClasses = new LinkedHashMap<>(); validatedClasses.put(schema, null); expectedPathToSchemas.put(pathToItem, validatedClasses); Assert.assertEquals(pathToSchemas, expectedPathToSchemas); diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidatorTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidatorTest.java index 5a6edbe7299..492f45af0c7 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidatorTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidatorTest.java @@ -17,7 +17,10 @@ import java.util.Set; public class PropertiesValidatorTest { - public static class ObjectWithPropsSchema extends JsonSchema { + public sealed interface ObjectWithPropsSchemaBoxed permits ObjectWithPropsSchemaBoxedMap {} + public record ObjectWithPropsSchemaBoxedMap() implements ObjectWithPropsSchemaBoxed {} + + public static class ObjectWithPropsSchema extends JsonSchema { private ObjectWithPropsSchema() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) @@ -43,6 +46,11 @@ public Object getNewInstance(@Nullable Object arg, List pathToItem, Path } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + + @Override + public ObjectWithPropsSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + return new ObjectWithPropsSchemaBoxedMap(); + } } @SuppressWarnings("nullness") @@ -76,7 +84,7 @@ public void testCorrectPropertySucceeds() { List expectedPathToItem = new ArrayList<>(); expectedPathToItem.add("args[0]"); expectedPathToItem.add("someString"); - LinkedHashMap expectedClasses = new LinkedHashMap<>(); + LinkedHashMap, Void> expectedClasses = new LinkedHashMap<>(); expectedClasses.put(JsonSchemaFactory.getInstance(StringJsonSchema.StringJsonSchema1.class), null); PathToSchemasMap expectedPathToSchemas = new PathToSchemasMap(); expectedPathToSchemas.put(expectedPathToItem, expectedClasses); diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/RequiredValidatorTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/RequiredValidatorTest.java index d2264b9a967..65ff030d74b 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/RequiredValidatorTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/RequiredValidatorTest.java @@ -15,7 +15,10 @@ import java.util.Set; public class RequiredValidatorTest { - public static class ObjectWithRequiredSchema extends JsonSchema { + public sealed interface ObjectWithRequiredSchemaBoxed permits ObjectWithRequiredSchemaBoxedMap {} + public record ObjectWithRequiredSchemaBoxedMap() implements ObjectWithRequiredSchemaBoxed {} + + public static class ObjectWithRequiredSchema extends JsonSchema { private ObjectWithRequiredSchema() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) @@ -39,6 +42,11 @@ public Object getNewInstance(@Nullable Object arg, List pathToItem, Path } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + + @Override + public ObjectWithRequiredSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + return new ObjectWithRequiredSchemaBoxedMap(); + } } @SuppressWarnings("nullness") diff --git a/src/main/resources/java/src/test/java/packagename/schemas/validation/AdditionalPropertiesValidatorTest.hbs b/src/main/resources/java/src/test/java/packagename/schemas/validation/AdditionalPropertiesValidatorTest.hbs index dc3ed93d361..88cbb7d6150 100644 --- a/src/main/resources/java/src/test/java/packagename/schemas/validation/AdditionalPropertiesValidatorTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/schemas/validation/AdditionalPropertiesValidatorTest.hbs @@ -18,7 +18,10 @@ import java.util.Map; import java.util.Set; public class AdditionalPropertiesValidatorTest { - public static class ObjectWithPropsSchema extends JsonSchema { + public sealed interface ObjectWithPropsSchemaBoxed permits ObjectWithPropsSchemaBoxedMap {} + public record ObjectWithPropsSchemaBoxedMap() implements ObjectWithPropsSchemaBoxed {} + + public static class ObjectWithPropsSchema extends JsonSchema { private static @Nullable ObjectWithPropsSchema instance = null; private ObjectWithPropsSchema() { super(new JsonSchemaInfo() @@ -53,6 +56,11 @@ public class AdditionalPropertiesValidatorTest { } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + + @Override + public ObjectWithPropsSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + return new ObjectWithPropsSchemaBoxedMap(); + } } @SuppressWarnings("nullness") @@ -88,7 +96,7 @@ public class AdditionalPropertiesValidatorTest { List expectedPathToItem = new ArrayList<>(); expectedPathToItem.add("args[0]"); expectedPathToItem.add("someAddProp"); - LinkedHashMap expectedClasses = new LinkedHashMap<>(); + LinkedHashMap, Void> expectedClasses = new LinkedHashMap<>(); StringJsonSchema.StringJsonSchema1 schema = JsonSchemaFactory.getInstance(StringJsonSchema.StringJsonSchema1.class); expectedClasses.put(schema, null); PathToSchemasMap expectedPathToSchemas = new PathToSchemasMap(); diff --git a/src/main/resources/java/src/test/java/packagename/schemas/validation/ItemsValidatorTest.hbs b/src/main/resources/java/src/test/java/packagename/schemas/validation/ItemsValidatorTest.hbs index 9a9e095cd08..af2b41c10ac 100644 --- a/src/main/resources/java/src/test/java/packagename/schemas/validation/ItemsValidatorTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/schemas/validation/ItemsValidatorTest.hbs @@ -21,7 +21,10 @@ public class ItemsValidatorTest { Assert.assertNull(object); } - public static class ArrayWithItemsSchema extends JsonSchema { + public sealed interface ArrayWithItemsSchemaBoxed permits ArrayWithItemsSchemaBoxedList {} + public record ArrayWithItemsSchemaBoxedList() implements ArrayWithItemsSchemaBoxed {} + + public static class ArrayWithItemsSchema extends JsonSchema { public ArrayWithItemsSchema() { super(new JsonSchemaInfo() .type(Set.of(List.class)) @@ -44,6 +47,11 @@ public class ItemsValidatorTest { } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + + @Override + public ArrayWithItemsSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + return new ArrayWithItemsSchemaBoxedList(); + } } @Test @@ -72,7 +80,7 @@ public class ItemsValidatorTest { List expectedPathToItem = new ArrayList<>(); expectedPathToItem.add("args[0]"); expectedPathToItem.add(0); - LinkedHashMap expectedClasses = new LinkedHashMap<>(); + LinkedHashMap, Void> expectedClasses = new LinkedHashMap<>(); StringJsonSchema.StringJsonSchema1 schema = JsonSchemaFactory.getInstance(StringJsonSchema.StringJsonSchema1.class); expectedClasses.put(schema, null); PathToSchemasMap expectedPathToSchemas = new PathToSchemasMap(); diff --git a/src/main/resources/java/src/test/java/packagename/schemas/validation/JsonSchemaTest.hbs b/src/main/resources/java/src/test/java/packagename/schemas/validation/JsonSchemaTest.hbs index 0f61a6f2ce9..be5faa5e9c8 100644 --- a/src/main/resources/java/src/test/java/packagename/schemas/validation/JsonSchemaTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/schemas/validation/JsonSchemaTest.hbs @@ -13,39 +13,49 @@ import java.util.LinkedHashSet; import java.util.List; import java.util.Set; -class SomeSchema extends JsonSchema { - private static @Nullable SomeSchema instance = null; - protected SomeSchema() { - super(new JsonSchemaInfo() - .type(Set.of(String.class)) - ); - } +sealed interface SomeSchemaBoxed permits SomeSchemaBoxedString {} +record SomeSchemaBoxedString() implements SomeSchemaBoxed {} + +public class JsonSchemaTest { + sealed interface SomeSchemaBoxed permits SomeSchemaBoxedString {} + record SomeSchemaBoxedString() implements SomeSchemaBoxed {} - public static SomeSchema getInstance() { - if (instance == null) { - instance = new SomeSchema(); + static class SomeSchema extends JsonSchema { + private static @Nullable SomeSchema instance = null; + protected SomeSchema() { + super(new JsonSchemaInfo() + .type(Set.of(String.class)) + ); } - return instance; - } - @Override - public Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof String) { - return arg; + public static SomeSchema getInstance() { + if (instance == null) { + instance = new SomeSchema(); + } + return instance; } - throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { - if (arg instanceof String) { - return arg; + @Override + public Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof String) { + return arg; + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } - throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } -} -public class JsonSchemaTest { + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + if (arg instanceof String) { + return arg; + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + + @Override + public SomeSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + return new SomeSchemaBoxedString(); + } + } @Test public void testValidateSucceeds() { @@ -63,7 +73,7 @@ public class JsonSchemaTest { validationMetadata ); PathToSchemasMap expectedPathToSchemas = new PathToSchemasMap(); - LinkedHashMap validatedClasses = new LinkedHashMap<>(); + LinkedHashMap, Void> validatedClasses = new LinkedHashMap<>(); validatedClasses.put(schema, null); expectedPathToSchemas.put(pathToItem, validatedClasses); Assert.assertEquals(pathToSchemas, expectedPathToSchemas); diff --git a/src/main/resources/java/src/test/java/packagename/schemas/validation/PropertiesValidatorTest.hbs b/src/main/resources/java/src/test/java/packagename/schemas/validation/PropertiesValidatorTest.hbs index e8bd82e371c..de7a97379fc 100644 --- a/src/main/resources/java/src/test/java/packagename/schemas/validation/PropertiesValidatorTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/schemas/validation/PropertiesValidatorTest.hbs @@ -17,7 +17,10 @@ import java.util.Map; import java.util.Set; public class PropertiesValidatorTest { - public static class ObjectWithPropsSchema extends JsonSchema { + public sealed interface ObjectWithPropsSchemaBoxed permits ObjectWithPropsSchemaBoxedMap {} + public record ObjectWithPropsSchemaBoxedMap() implements ObjectWithPropsSchemaBoxed {} + + public static class ObjectWithPropsSchema extends JsonSchema { private ObjectWithPropsSchema() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) @@ -43,6 +46,11 @@ public class PropertiesValidatorTest { } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + + @Override + public ObjectWithPropsSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + return new ObjectWithPropsSchemaBoxedMap(); + } } @SuppressWarnings("nullness") @@ -76,7 +84,7 @@ public class PropertiesValidatorTest { List expectedPathToItem = new ArrayList<>(); expectedPathToItem.add("args[0]"); expectedPathToItem.add("someString"); - LinkedHashMap expectedClasses = new LinkedHashMap<>(); + LinkedHashMap, Void> expectedClasses = new LinkedHashMap<>(); expectedClasses.put(JsonSchemaFactory.getInstance(StringJsonSchema.StringJsonSchema1.class), null); PathToSchemasMap expectedPathToSchemas = new PathToSchemasMap(); expectedPathToSchemas.put(expectedPathToItem, expectedClasses); diff --git a/src/main/resources/java/src/test/java/packagename/schemas/validation/RequiredValidatorTest.hbs b/src/main/resources/java/src/test/java/packagename/schemas/validation/RequiredValidatorTest.hbs index d18574778b4..491a7affc7f 100644 --- a/src/main/resources/java/src/test/java/packagename/schemas/validation/RequiredValidatorTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/schemas/validation/RequiredValidatorTest.hbs @@ -15,7 +15,10 @@ import java.util.Map; import java.util.Set; public class RequiredValidatorTest { - public static class ObjectWithRequiredSchema extends JsonSchema { + public sealed interface ObjectWithRequiredSchemaBoxed permits ObjectWithRequiredSchemaBoxedMap {} + public record ObjectWithRequiredSchemaBoxedMap() implements ObjectWithRequiredSchemaBoxed {} + + public static class ObjectWithRequiredSchema extends JsonSchema { private ObjectWithRequiredSchema() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) @@ -39,6 +42,11 @@ public class RequiredValidatorTest { } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + + @Override + public ObjectWithRequiredSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + return new ObjectWithRequiredSchemaBoxedMap(); + } } @SuppressWarnings("nullness") From 2315ac97f35ca84807081da9480da99422074b7b Mon Sep 17 00:00:00 2001 From: Justin Black Date: Wed, 21 Feb 2024 16:18:34 -0800 Subject: [PATCH 32/50] Fixes build warnings --- .../RequestBodySerializerTest.java | 5 --- .../response/ResponseDeserializerTest.java | 14 +++++-- .../client/schemas/ArrayTypeSchemaTest.java | 20 +++++++++- .../client/schemas/ObjectTypeSchemaTest.java | 40 +++++++++++++++++-- .../requestbody/RequestBodySerializerTest.hbs | 5 --- .../response/ResponseDeserializerTest.hbs | 14 +++++-- .../schemas/ArrayTypeSchemaTest.hbs | 20 +++++++++- .../schemas/ObjectTypeSchemaTest.hbs | 40 +++++++++++++++++-- 8 files changed, 128 insertions(+), 30 deletions(-) diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java index 04e5440b5db..f7cc7908fec 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java @@ -174,10 +174,5 @@ public void testSerializeTextPlain() { Assert.assertEquals("text/plain", requestBody.contentType); String textBody = getJsonBody(requestBody); Assert.assertEquals(textBody, "a"); - - Assert.assertThrows( - RuntimeException.class, - () -> serializer.serialize(new TextplainRequestBody(null)) - ); } } \ No newline at end of file diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java index a49bce9dff8..0c07e3fa676 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java @@ -87,10 +87,16 @@ public Void getHeaders(HttpHeaders headers) { public static class BytesHttpResponse implements HttpResponse { private final byte[] body; private final HttpHeaders headers; + private final HttpRequest request; + private final URI uri; + private final HttpClient.Version version; public BytesHttpResponse(byte[] body, String contentType) { this.body = body; BiPredicate headerFilter = (key, val) -> true; - this.headers = HttpHeaders.of(Map.of("Content-Type", List.of(contentType)), headerFilter); + headers = HttpHeaders.of(Map.of("Content-Type", List.of(contentType)), headerFilter); + request = HttpRequest.newBuilder().build(); + uri = URI.create(""); + version = HttpClient.Version.HTTP_2; } @Override @@ -100,7 +106,7 @@ public int statusCode() { @Override public HttpRequest request() { - return null; + return request; } @Override @@ -125,12 +131,12 @@ public Optional sslSession() { @Override public URI uri() { - return null; + return uri; } @Override public HttpClient.Version version() { - return null; + return version; } } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java index f9c104649b3..42dfcabf0d0 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java @@ -36,7 +36,7 @@ public sealed interface ArrayWithItemsSchemaBoxed permits ArrayWithItemsSchemaBo public record ArrayWithItemsSchemaBoxedList(FrozenList data) implements ArrayWithItemsSchemaBoxed { } - public static class ArrayWithItemsSchema extends JsonSchema implements ListSchemaValidator, ArrayWithItemsSchemaBoxedList> { + public static class ArrayWithItemsSchema extends JsonSchema implements ListSchemaValidator, ArrayWithItemsSchemaBoxedList> { public ArrayWithItemsSchema() { super(new JsonSchemaInfo() .type(Set.of(List.class)) @@ -96,6 +96,14 @@ public Object getNewInstance(@Nullable Object arg, List pathToItem, Path } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + + @Override + public ArrayWithItemsSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + if (arg instanceof List listArg) { + return new ArrayWithItemsSchemaBoxedList(validate(listArg, configuration)); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class ArrayWithOutputClsSchemaList extends FrozenList { @@ -112,7 +120,7 @@ public sealed interface ArrayWithOutputClsSchemaBoxed permits ArrayWithOutputCls } public record ArrayWithOutputClsSchemaBoxedList(ArrayWithOutputClsSchemaList data) implements ArrayWithOutputClsSchemaBoxed { } - public static class ArrayWithOutputClsSchema extends JsonSchema implements ListSchemaValidator { + public static class ArrayWithOutputClsSchema extends JsonSchema implements ListSchemaValidator { public ArrayWithOutputClsSchema() { super(new JsonSchemaInfo() .type(Set.of(List.class)) @@ -174,6 +182,14 @@ public Object getNewInstance(@Nullable Object arg, List pathToItem, Path } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + + @Override + public ArrayWithOutputClsSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + if (arg instanceof List listArg) { + return new ArrayWithOutputClsSchemaBoxedList(validate(listArg, configuration)); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } @Test diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ObjectTypeSchemaTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ObjectTypeSchemaTest.java index 798f737aded..02729b0f046 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ObjectTypeSchemaTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ObjectTypeSchemaTest.java @@ -37,7 +37,7 @@ public sealed interface ObjectWithPropsSchemaBoxed permits ObjectWithPropsSchema } public record ObjectWithPropsSchemaBoxedMap(FrozenMap<@Nullable Object> data) implements ObjectWithPropsSchemaBoxed { } - public static class ObjectWithPropsSchema extends JsonSchema implements MapSchemaValidator, ObjectWithPropsSchemaBoxedMap> { + public static class ObjectWithPropsSchema extends JsonSchema implements MapSchemaValidator, ObjectWithPropsSchemaBoxedMap> { private static @Nullable ObjectWithPropsSchema instance = null; private ObjectWithPropsSchema() { super(new JsonSchemaInfo() @@ -109,6 +109,14 @@ public Object getNewInstance(@Nullable Object arg, List pathToItem, Path } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + + @Override + public ObjectWithPropsSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + if (arg instanceof Map mapArg) { + return new ObjectWithPropsSchemaBoxedMap(validate(mapArg, configuration)); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface ObjectWithAddpropsSchemaBoxed permits ObjectWithAddpropsSchemaBoxedMap { @@ -116,7 +124,7 @@ public sealed interface ObjectWithAddpropsSchemaBoxed permits ObjectWithAddprops public record ObjectWithAddpropsSchemaBoxedMap(FrozenMap data) implements ObjectWithAddpropsSchemaBoxed { } - public static class ObjectWithAddpropsSchema extends JsonSchema implements MapSchemaValidator, ObjectWithAddpropsSchemaBoxedMap> { + public static class ObjectWithAddpropsSchema extends JsonSchema implements MapSchemaValidator, ObjectWithAddpropsSchemaBoxedMap> { private static @Nullable ObjectWithAddpropsSchema instance = null; private ObjectWithAddpropsSchema() { super(new JsonSchemaInfo() @@ -181,6 +189,14 @@ public ObjectWithAddpropsSchemaBoxedMap validateAndBox(Map arg, SchemaConf throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + @Override + public ObjectWithAddpropsSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + if (arg instanceof Map mapArg) { + return new ObjectWithAddpropsSchemaBoxedMap(validate(mapArg, configuration)); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override public Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { if (arg instanceof Map) { @@ -194,7 +210,7 @@ public sealed interface ObjectWithPropsAndAddpropsSchemaBoxed permits ObjectWith } public record ObjectWithPropsAndAddpropsSchemaBoxedMap(FrozenMap<@Nullable Object> data) implements ObjectWithPropsAndAddpropsSchemaBoxed { } - public static class ObjectWithPropsAndAddpropsSchema extends JsonSchema implements MapSchemaValidator, ObjectWithPropsAndAddpropsSchemaBoxedMap> { + public static class ObjectWithPropsAndAddpropsSchema extends JsonSchema implements MapSchemaValidator, ObjectWithPropsAndAddpropsSchemaBoxedMap> { private static @Nullable ObjectWithPropsAndAddpropsSchema instance = null; private ObjectWithPropsAndAddpropsSchema() { super(new JsonSchemaInfo() @@ -259,6 +275,14 @@ public ObjectWithPropsAndAddpropsSchemaBoxedMap validateAndBox(Map arg, Sc throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + @Override + public ObjectWithPropsAndAddpropsSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + if (arg instanceof Map mapArg) { + return new ObjectWithPropsAndAddpropsSchemaBoxedMap(validate(mapArg, configuration)); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override public Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { if (arg instanceof Map) { @@ -282,7 +306,7 @@ public sealed interface ObjectWithOutputTypeSchemaBoxed permits ObjectWithOutput } public record ObjectWithOutputTypeSchemaBoxedMap(ObjectWithOutputTypeSchemaMap data) implements ObjectWithOutputTypeSchemaBoxed { } - public static class ObjectWithOutputTypeSchema extends JsonSchema implements MapSchemaValidator { + public static class ObjectWithOutputTypeSchema extends JsonSchema implements MapSchemaValidator { private static @Nullable ObjectWithOutputTypeSchema instance = null; public ObjectWithOutputTypeSchema() { super(new JsonSchemaInfo() @@ -346,6 +370,14 @@ public ObjectWithOutputTypeSchemaBoxedMap validateAndBox(Map arg, SchemaCo throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + @Override + public ObjectWithOutputTypeSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + if (arg instanceof Map mapArg) { + return new ObjectWithOutputTypeSchemaBoxedMap(validate(mapArg, configuration)); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override public Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { if (arg instanceof FrozenMap) { diff --git a/src/main/resources/java/src/test/java/packagename/requestbody/RequestBodySerializerTest.hbs b/src/main/resources/java/src/test/java/packagename/requestbody/RequestBodySerializerTest.hbs index c4ae939457d..0cdc3c98938 100644 --- a/src/main/resources/java/src/test/java/packagename/requestbody/RequestBodySerializerTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/requestbody/RequestBodySerializerTest.hbs @@ -174,10 +174,5 @@ public final class RequestBodySerializerTest { Assert.assertEquals("text/plain", requestBody.contentType); String textBody = getJsonBody(requestBody); Assert.assertEquals(textBody, "a"); - - Assert.assertThrows( - RuntimeException.class, - () -> serializer.serialize(new TextplainRequestBody(null)) - ); } } \ No newline at end of file diff --git a/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs b/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs index d1780c2296d..8f3ebadf847 100644 --- a/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs @@ -87,10 +87,16 @@ public class ResponseDeserializerTest { public static class BytesHttpResponse implements HttpResponse { private final byte[] body; private final HttpHeaders headers; + private final HttpRequest request; + private final URI uri; + private final HttpClient.Version version; public BytesHttpResponse(byte[] body, String contentType) { this.body = body; BiPredicate headerFilter = (key, val) -> true; - this.headers = HttpHeaders.of(Map.of("Content-Type", List.of(contentType)), headerFilter); + headers = HttpHeaders.of(Map.of("Content-Type", List.of(contentType)), headerFilter); + request = HttpRequest.newBuilder().build(); + uri = URI.create(""); + version = HttpClient.Version.HTTP_2; } @Override @@ -100,7 +106,7 @@ public class ResponseDeserializerTest { @Override public HttpRequest request() { - return null; + return request; } @Override @@ -125,12 +131,12 @@ public class ResponseDeserializerTest { @Override public URI uri() { - return null; + return uri; } @Override public HttpClient.Version version() { - return null; + return version; } } diff --git a/src/main/resources/java/src/test/java/packagename/schemas/ArrayTypeSchemaTest.hbs b/src/main/resources/java/src/test/java/packagename/schemas/ArrayTypeSchemaTest.hbs index c475dfdafab..3256926f42d 100644 --- a/src/main/resources/java/src/test/java/packagename/schemas/ArrayTypeSchemaTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/schemas/ArrayTypeSchemaTest.hbs @@ -36,7 +36,7 @@ public class ArrayTypeSchemaTest { public record ArrayWithItemsSchemaBoxedList(FrozenList data) implements ArrayWithItemsSchemaBoxed { } - public static class ArrayWithItemsSchema extends JsonSchema implements ListSchemaValidator, ArrayWithItemsSchemaBoxedList> { + public static class ArrayWithItemsSchema extends JsonSchema implements ListSchemaValidator, ArrayWithItemsSchemaBoxedList> { public ArrayWithItemsSchema() { super(new JsonSchemaInfo() .type(Set.of(List.class)) @@ -96,6 +96,14 @@ public class ArrayTypeSchemaTest { } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + + @Override + public ArrayWithItemsSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + if (arg instanceof List listArg) { + return new ArrayWithItemsSchemaBoxedList(validate(listArg, configuration)); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class ArrayWithOutputClsSchemaList extends FrozenList { @@ -112,7 +120,7 @@ public class ArrayTypeSchemaTest { } public record ArrayWithOutputClsSchemaBoxedList(ArrayWithOutputClsSchemaList data) implements ArrayWithOutputClsSchemaBoxed { } - public static class ArrayWithOutputClsSchema extends JsonSchema implements ListSchemaValidator { + public static class ArrayWithOutputClsSchema extends JsonSchema implements ListSchemaValidator { public ArrayWithOutputClsSchema() { super(new JsonSchemaInfo() .type(Set.of(List.class)) @@ -174,6 +182,14 @@ public class ArrayTypeSchemaTest { } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + + @Override + public ArrayWithOutputClsSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + if (arg instanceof List listArg) { + return new ArrayWithOutputClsSchemaBoxedList(validate(listArg, configuration)); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } @Test diff --git a/src/main/resources/java/src/test/java/packagename/schemas/ObjectTypeSchemaTest.hbs b/src/main/resources/java/src/test/java/packagename/schemas/ObjectTypeSchemaTest.hbs index 0cca5aecc69..ffc84f68f75 100644 --- a/src/main/resources/java/src/test/java/packagename/schemas/ObjectTypeSchemaTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/schemas/ObjectTypeSchemaTest.hbs @@ -37,7 +37,7 @@ public class ObjectTypeSchemaTest { } public record ObjectWithPropsSchemaBoxedMap(FrozenMap<@Nullable Object> data) implements ObjectWithPropsSchemaBoxed { } - public static class ObjectWithPropsSchema extends JsonSchema implements MapSchemaValidator, ObjectWithPropsSchemaBoxedMap> { + public static class ObjectWithPropsSchema extends JsonSchema implements MapSchemaValidator, ObjectWithPropsSchemaBoxedMap> { private static @Nullable ObjectWithPropsSchema instance = null; private ObjectWithPropsSchema() { super(new JsonSchemaInfo() @@ -109,6 +109,14 @@ public class ObjectTypeSchemaTest { } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + + @Override + public ObjectWithPropsSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + if (arg instanceof Map mapArg) { + return new ObjectWithPropsSchemaBoxedMap(validate(mapArg, configuration)); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public sealed interface ObjectWithAddpropsSchemaBoxed permits ObjectWithAddpropsSchemaBoxedMap { @@ -116,7 +124,7 @@ public class ObjectTypeSchemaTest { public record ObjectWithAddpropsSchemaBoxedMap(FrozenMap data) implements ObjectWithAddpropsSchemaBoxed { } - public static class ObjectWithAddpropsSchema extends JsonSchema implements MapSchemaValidator, ObjectWithAddpropsSchemaBoxedMap> { + public static class ObjectWithAddpropsSchema extends JsonSchema implements MapSchemaValidator, ObjectWithAddpropsSchemaBoxedMap> { private static @Nullable ObjectWithAddpropsSchema instance = null; private ObjectWithAddpropsSchema() { super(new JsonSchemaInfo() @@ -181,6 +189,14 @@ public class ObjectTypeSchemaTest { throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + @Override + public ObjectWithAddpropsSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + if (arg instanceof Map mapArg) { + return new ObjectWithAddpropsSchemaBoxedMap(validate(mapArg, configuration)); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override public Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { if (arg instanceof Map) { @@ -194,7 +210,7 @@ public class ObjectTypeSchemaTest { } public record ObjectWithPropsAndAddpropsSchemaBoxedMap(FrozenMap<@Nullable Object> data) implements ObjectWithPropsAndAddpropsSchemaBoxed { } - public static class ObjectWithPropsAndAddpropsSchema extends JsonSchema implements MapSchemaValidator, ObjectWithPropsAndAddpropsSchemaBoxedMap> { + public static class ObjectWithPropsAndAddpropsSchema extends JsonSchema implements MapSchemaValidator, ObjectWithPropsAndAddpropsSchemaBoxedMap> { private static @Nullable ObjectWithPropsAndAddpropsSchema instance = null; private ObjectWithPropsAndAddpropsSchema() { super(new JsonSchemaInfo() @@ -259,6 +275,14 @@ public class ObjectTypeSchemaTest { throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + @Override + public ObjectWithPropsAndAddpropsSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + if (arg instanceof Map mapArg) { + return new ObjectWithPropsAndAddpropsSchemaBoxedMap(validate(mapArg, configuration)); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override public Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { if (arg instanceof Map) { @@ -282,7 +306,7 @@ public class ObjectTypeSchemaTest { } public record ObjectWithOutputTypeSchemaBoxedMap(ObjectWithOutputTypeSchemaMap data) implements ObjectWithOutputTypeSchemaBoxed { } - public static class ObjectWithOutputTypeSchema extends JsonSchema implements MapSchemaValidator { + public static class ObjectWithOutputTypeSchema extends JsonSchema implements MapSchemaValidator { private static @Nullable ObjectWithOutputTypeSchema instance = null; public ObjectWithOutputTypeSchema() { super(new JsonSchemaInfo() @@ -346,6 +370,14 @@ public class ObjectTypeSchemaTest { throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + @Override + public ObjectWithOutputTypeSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + if (arg instanceof Map mapArg) { + return new ObjectWithOutputTypeSchemaBoxedMap(validate(mapArg, configuration)); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override public Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { if (arg instanceof FrozenMap) { From da1a18162a7232a6687c86aec36584ac983f7d26 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Wed, 21 Feb 2024 16:27:50 -0800 Subject: [PATCH 33/50] Fixes java tests --- .../client/requestbody/RequestBodySerializerTest.java | 2 +- .../client/response/ResponseDeserializerTest.java | 4 ++-- .../packagename/requestbody/RequestBodySerializerTest.hbs | 2 +- .../java/packagename/response/ResponseDeserializerTest.hbs | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java index f7cc7908fec..9d8fa828bfb 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java @@ -41,7 +41,7 @@ public MyRequestBodySerializer() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType(AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance())), - new AbstractMap.SimpleEntry<>("application/json", new TextplainMediaType(StringJsonSchema.StringJsonSchema1.getInstance())) + new AbstractMap.SimpleEntry<>("text/plain", new TextplainMediaType(StringJsonSchema.StringJsonSchema1.getInstance())) ), true); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java index 0c07e3fa676..336d01cc3dd 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java @@ -94,8 +94,8 @@ public BytesHttpResponse(byte[] body, String contentType) { this.body = body; BiPredicate headerFilter = (key, val) -> true; headers = HttpHeaders.of(Map.of("Content-Type", List.of(contentType)), headerFilter); - request = HttpRequest.newBuilder().build(); - uri = URI.create(""); + uri = URI.create("https://abc.com/"); + request = HttpRequest.newBuilder().uri(uri).build(); version = HttpClient.Version.HTTP_2; } diff --git a/src/main/resources/java/src/test/java/packagename/requestbody/RequestBodySerializerTest.hbs b/src/main/resources/java/src/test/java/packagename/requestbody/RequestBodySerializerTest.hbs index 0cdc3c98938..0355eaf142e 100644 --- a/src/main/resources/java/src/test/java/packagename/requestbody/RequestBodySerializerTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/requestbody/RequestBodySerializerTest.hbs @@ -41,7 +41,7 @@ public final class RequestBodySerializerTest { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType(AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance())), - new AbstractMap.SimpleEntry<>("application/json", new TextplainMediaType(StringJsonSchema.StringJsonSchema1.getInstance())) + new AbstractMap.SimpleEntry<>("text/plain", new TextplainMediaType(StringJsonSchema.StringJsonSchema1.getInstance())) ), true); } diff --git a/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs b/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs index 8f3ebadf847..6a7618b45a4 100644 --- a/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs @@ -94,8 +94,8 @@ public class ResponseDeserializerTest { this.body = body; BiPredicate headerFilter = (key, val) -> true; headers = HttpHeaders.of(Map.of("Content-Type", List.of(contentType)), headerFilter); - request = HttpRequest.newBuilder().build(); - uri = URI.create(""); + uri = URI.create("https://abc.com/"); + request = HttpRequest.newBuilder().uri(uri).build(); version = HttpClient.Version.HTTP_2; } From 925be6bf2703e21c580c7b394dc012e97f6a69fc Mon Sep 17 00:00:00 2001 From: Justin Black Date: Wed, 21 Feb 2024 16:52:55 -0800 Subject: [PATCH 34/50] Response getBody methods generated --- .../responses/SuccessInlineContentAndHeader.java | 9 +++++++-- .../responses/SuccessWithJsonApiResponse.java | 9 +++++++-- .../responses/SuccessfulXmlAndJsonArrayOfPet.java | 14 ++++++++++---- .../patch/responses/Code200Response.java | 9 +++++++-- .../paths/fake/get/responses/Code404Response.java | 9 +++++++-- .../fake/patch/responses/Code200Response.java | 9 +++++++-- .../get/responses/Code200Response.java | 9 +++++++-- .../patch/responses/Code200Response.java | 9 +++++++-- .../fakehealth/get/responses/Code200Response.java | 9 +++++++-- .../post/responses/Code200Response.java | 14 ++++++++++---- .../post/responses/Code200Response.java | 9 +++++++-- .../post/responses/Code200Response.java | 9 +++++++-- .../get/responses/Code200Response.java | 9 +++++++-- .../get/responses/Code202Response.java | 9 +++++++-- .../get/responses/Code200Response.java | 9 +++++++-- .../post/responses/Code200Response.java | 9 +++++++-- .../get/responses/Code200Response.java | 9 +++++++-- .../post/responses/Code200Response.java | 9 +++++++-- .../get/responses/Code200Response.java | 9 +++++++-- .../post/responses/Code200Response.java | 9 +++++++-- .../post/responses/Code200Response.java | 9 +++++++-- .../post/responses/Code200Response.java | 9 +++++++-- .../post/responses/Code200Response.java | 9 +++++++-- .../post/responses/Code200Response.java | 9 +++++++-- .../post/responses/Code200Response.java | 9 +++++++-- .../post/responses/Code200Response.java | 9 +++++++-- .../post/responses/Code200Response.java | 9 +++++++-- .../post/responses/Code200Response.java | 9 +++++++-- .../post/responses/Code200Response.java | 9 +++++++-- .../post/responses/Code200Response.java | 9 +++++++-- .../post/responses/Code200Response.java | 9 +++++++-- .../get/responses/Code1XXResponse.java | 9 +++++++-- .../get/responses/Code200Response.java | 9 +++++++-- .../get/responses/Code2XXResponse.java | 9 +++++++-- .../get/responses/Code3XXResponse.java | 9 +++++++-- .../get/responses/Code4XXResponse.java | 9 +++++++-- .../get/responses/Code5XXResponse.java | 9 +++++++-- .../foo/get/responses/CodedefaultResponse.java | 9 +++++++-- .../petpetid/get/responses/Code200Response.java | 14 ++++++++++---- .../storeorder/post/responses/Code200Response.java | 14 ++++++++++---- .../get/responses/Code200Response.java | 14 ++++++++++---- .../userlogin/get/responses/Code200Response.java | 14 ++++++++++---- .../get/responses/Code200Response.java | 14 ++++++++++---- .../requestbody/RequestBodySerializerTest.java | 2 +- .../client/schemas/validation/JsonSchemaTest.java | 3 +++ .../packagename/components/responses/Response.hbs | 11 ++++++++--- 46 files changed, 334 insertions(+), 104 deletions(-) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessInlineContentAndHeader.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessInlineContentAndHeader.java index 973b6de1c07..f8a3c60b914 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessInlineContentAndHeader.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessInlineContentAndHeader.java @@ -35,8 +35,13 @@ public SuccessInlineContentAndHeader1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessWithJsonApiResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessWithJsonApiResponse.java index fc192a1a643..9c565b329b8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessWithJsonApiResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessWithJsonApiResponse.java @@ -35,8 +35,13 @@ public SuccessWithJsonApiResponse1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessfulXmlAndJsonArrayOfPet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessfulXmlAndJsonArrayOfPet.java index 7e5c08c97e3..95c54c70bfc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessfulXmlAndJsonArrayOfPet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessfulXmlAndJsonArrayOfPet.java @@ -48,10 +48,16 @@ public SuccessfulXmlAndJsonArrayOfPet1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/xml".equals(contentType)) { - // todo implement deserialization - } else if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationxmlMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationxmlResponseBody(deserializedBody); + } else if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java index 145f432e5e2..4ad4cc3924c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java @@ -35,8 +35,13 @@ public Code200Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code404Response.java index d52f545e0c3..3887f04cd3d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code404Response.java @@ -35,8 +35,13 @@ public Code404Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/Code200Response.java index 0c164701965..df9fa44ed0a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/Code200Response.java @@ -35,8 +35,13 @@ public Code200Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java index 3df975eadbf..ca7e0d328a7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java @@ -35,8 +35,13 @@ public Code200Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java index f2419f132c3..968a990bcb1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java @@ -35,8 +35,13 @@ public Code200Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java index 167464bf591..443e9683cc7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java @@ -35,8 +35,13 @@ public Code200Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/Code200Response.java index 132ee73b736..2545a1fe91c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/Code200Response.java @@ -48,10 +48,16 @@ public Code200Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization - } else if ("multipart/form-data".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } else if (mediaType instanceof MultipartformdataMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new MultipartformdataResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java index 732c25fc1ea..d583508908f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java @@ -35,8 +35,13 @@ public Code200Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json; charset=utf-8".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof Applicationjsoncharsetutf8MediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new Applicationjsoncharsetutf8ResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java index 66d7242e07d..ba65c808ee2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java @@ -35,8 +35,13 @@ public Code200Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code200Response.java index 6b2f3464a27..3be23b495a5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code200Response.java @@ -35,8 +35,13 @@ public Code200Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java index 93972b95758..f73a8251e56 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java @@ -35,8 +35,13 @@ public Code202Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java index 867793ac08f..d7570c23e86 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java @@ -35,8 +35,13 @@ public Code200Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java index 25128344c6c..b5b22cfa8c6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java @@ -35,8 +35,13 @@ public Code200Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java index 7d81397a8da..e0a1be14601 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java @@ -35,8 +35,13 @@ public Code200Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/x-pem-file".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationxpemfileMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationxpemfileResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.java index f77b9b94012..4d41ab388e4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.java @@ -35,8 +35,13 @@ public Code200Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java index 88b35e6b9e9..0362800f8fd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java @@ -35,8 +35,13 @@ public Code200Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java index f368e5fb019..aabd68f4c3e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java @@ -35,8 +35,13 @@ public Code200Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java index 7339a48e3a3..1e9fad45b3b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java @@ -35,8 +35,13 @@ public Code200Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java index e6214b3cbe2..36f31907510 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java @@ -35,8 +35,13 @@ public Code200Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java index df70a77aaaa..f3cfbc67296 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java @@ -35,8 +35,13 @@ public Code200Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java index 94639a3a19c..05d68d81dae 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java @@ -35,8 +35,13 @@ public Code200Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java index 685201356c8..6675bbb40dc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java @@ -35,8 +35,13 @@ public Code200Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java index df2d4074332..c045a95cd37 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java @@ -35,8 +35,13 @@ public Code200Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java index 23d036382f3..9f8bff6c7d0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java @@ -35,8 +35,13 @@ public Code200Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java index 44523d6ff28..49974a11926 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java @@ -35,8 +35,13 @@ public Code200Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java index 5c14279a490..772eba7d1c1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java @@ -35,8 +35,13 @@ public Code200Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/octet-stream".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationoctetstreamMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationoctetstreamResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java index f0f6c2e4dd0..e5ee9b97404 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java @@ -35,8 +35,13 @@ public Code200Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java index 140e69d3cb7..5f57242006f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java @@ -35,8 +35,13 @@ public Code200Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code1XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code1XXResponse.java index 9a34863f380..b201e568bff 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code1XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code1XXResponse.java @@ -35,8 +35,13 @@ public Code1XXResponse1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java index cb216f4b9a5..7c7bb136ac6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java @@ -35,8 +35,13 @@ public Code200Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code2XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code2XXResponse.java index 991da4f0534..29bb65c0e46 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code2XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code2XXResponse.java @@ -35,8 +35,13 @@ public Code2XXResponse1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code3XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code3XXResponse.java index 4dc6f5ec010..59d3cff9d9c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code3XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code3XXResponse.java @@ -35,8 +35,13 @@ public Code3XXResponse1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code4XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code4XXResponse.java index 8eeb544f38d..8db739bd3bd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code4XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code4XXResponse.java @@ -35,8 +35,13 @@ public Code4XXResponse1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code5XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code5XXResponse.java index cf94a3d4ed2..bd228b50950 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code5XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code5XXResponse.java @@ -35,8 +35,13 @@ public Code5XXResponse1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java index d80173c7446..ecac635520d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java @@ -35,8 +35,13 @@ public CodedefaultResponse1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code200Response.java index 360687bb859..79d6af6d40d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code200Response.java @@ -48,10 +48,16 @@ public Code200Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/xml".equals(contentType)) { - // todo implement deserialization - } else if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationxmlMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationxmlResponseBody(deserializedBody); + } else if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code200Response.java index b9d13e5a0b0..383d1a9d2d1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code200Response.java @@ -48,10 +48,16 @@ public Code200Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/xml".equals(contentType)) { - // todo implement deserialization - } else if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationxmlMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationxmlResponseBody(deserializedBody); + } else if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code200Response.java index eceaf58e4dc..5fd94d1bf2c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code200Response.java @@ -48,10 +48,16 @@ public Code200Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/xml".equals(contentType)) { - // todo implement deserialization - } else if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationxmlMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationxmlResponseBody(deserializedBody); + } else if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code200Response.java index c66c1a2c7cb..466b9677587 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code200Response.java @@ -48,10 +48,16 @@ public Code200Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/xml".equals(contentType)) { - // todo implement deserialization - } else if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationxmlMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationxmlResponseBody(deserializedBody); + } else if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code200Response.java index 53a4753a3f4..03384998269 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code200Response.java @@ -48,10 +48,16 @@ public Code200Response1() { @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { - if ("application/xml".equals(contentType)) { - // todo implement deserialization - } else if ("application/json".equals(contentType)) { - // todo implement deserialization + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationxmlMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationxmlResponseBody(deserializedBody); + } else if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java index 9d8fa828bfb..250d1e0f530 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java @@ -3,11 +3,11 @@ import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.StringJsonSchema; import org.checkerframework.checker.nullness.qual.Nullable; import org.junit.Assert; import org.junit.Test; -import org.openapijsonschematools.client.schemas.StringJsonSchema; import java.net.http.HttpResponse; import java.nio.ByteBuffer; diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaTest.java index e6834ca0219..8a14df7edd6 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaTest.java @@ -13,6 +13,9 @@ import java.util.List; import java.util.Set; +sealed interface SomeSchemaBoxed permits SomeSchemaBoxedString {} +record SomeSchemaBoxedString() implements SomeSchemaBoxed {} + public class JsonSchemaTest { sealed interface SomeSchemaBoxed permits SomeSchemaBoxedString {} record SomeSchemaBoxedString() implements SomeSchemaBoxed {} diff --git a/src/main/resources/java/src/main/java/packagename/components/responses/Response.hbs b/src/main/resources/java/src/main/java/packagename/components/responses/Response.hbs index 4d306695f8a..c5c6c66c9a8 100644 --- a/src/main/resources/java/src/main/java/packagename/components/responses/Response.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/responses/Response.hbs @@ -62,13 +62,18 @@ public class {{jsonPathPiece.pascalCase}} { {{#if hasContentSchema}} @Override public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } {{#each content}} {{#if @first}} - if ("{{{@key.original}}}".equals(contentType)) { + if (mediaType instanceof {{@key.pascalCase}}MediaType thisMediaType) { {{else}} - } else if ("{{{@key.original}}}".equals(contentType)) { + } else if (mediaType instanceof {{@key.pascalCase}}MediaType thisMediaType) { {{/if}} - // todo implement deserialization + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new {{@key.pascalCase}}ResponseBody(deserializedBody); {{/each}} } throw new RuntimeException("contentType="+contentType+" returned by the server is unknown and does not exist in the openapi document"); From 63ca8a1e526a86b7bd964e8076f6d5c3466d78dd Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 22 Feb 2024 14:00:18 -0800 Subject: [PATCH 35/50] Uses MapUtils.makeMap when there are no response schemas --- .../components/responses/HeadersWithNoBody.java | 3 ++- .../responses/SuccessDescriptionOnly.java | 3 ++- .../fake/post/responses/Code404Response.java | 3 ++- .../delete/responses/CodedefaultResponse.java | 3 ++- .../get/responses/Code303Response.java | 3 ++- .../get/responses/Code3XXResponse.java | 3 ++- .../get/responses/Code200Response.java | 7 ++++--- .../pet/post/responses/Code405Response.java | 3 ++- .../paths/pet/put/responses/Code400Response.java | 3 ++- .../paths/pet/put/responses/Code404Response.java | 3 ++- .../paths/pet/put/responses/Code405Response.java | 3 ++- .../get/responses/Code400Response.java | 3 ++- .../get/responses/Code400Response.java | 3 ++- .../delete/responses/Code400Response.java | 3 ++- .../petpetid/get/responses/Code400Response.java | 3 ++- .../petpetid/get/responses/Code404Response.java | 3 ++- .../petpetid/post/responses/Code405Response.java | 3 ++- .../post/responses/Code400Response.java | 3 ++- .../delete/responses/Code400Response.java | 3 ++- .../delete/responses/Code404Response.java | 3 ++- .../get/responses/Code400Response.java | 3 ++- .../get/responses/Code404Response.java | 3 ++- .../user/post/responses/CodedefaultResponse.java | 3 ++- .../post/responses/CodedefaultResponse.java | 3 ++- .../post/responses/CodedefaultResponse.java | 3 ++- .../userlogin/get/responses/Code400Response.java | 3 ++- .../delete/responses/Code404Response.java | 3 ++- .../get/responses/Code400Response.java | 3 ++- .../get/responses/Code404Response.java | 3 ++- .../put/responses/Code400Response.java | 3 ++- .../put/responses/Code404Response.java | 3 ++- .../components/responses/Response.hbs | 16 +++++++++++++--- 32 files changed, 77 insertions(+), 36 deletions(-) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/HeadersWithNoBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/HeadersWithNoBody.java index fb8dab19b52..10d11db425d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/HeadersWithNoBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/HeadersWithNoBody.java @@ -2,6 +2,7 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.schemas.validation.MapUtils; import java.util.Map; import java.net.http.HttpHeaders; @@ -11,7 +12,7 @@ public class HeadersWithNoBody { public static class HeadersWithNoBody1 extends ResponseDeserializer { public HeadersWithNoBody1() { super( - Map.ofEntries( + MapUtils.makeMap( ) ); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessDescriptionOnly.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessDescriptionOnly.java index 337022abf6a..3e99ac54296 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessDescriptionOnly.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessDescriptionOnly.java @@ -2,6 +2,7 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.schemas.validation.MapUtils; import java.util.Map; import java.net.http.HttpHeaders; @@ -11,7 +12,7 @@ public class SuccessDescriptionOnly { public static class SuccessDescriptionOnly1 extends ResponseDeserializer { public SuccessDescriptionOnly1() { super( - Map.ofEntries( + MapUtils.makeMap( ) ); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code404Response.java index 0555aa6f4ae..7989c6dc18e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code404Response.java @@ -2,6 +2,7 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.schemas.validation.MapUtils; import java.util.Map; import java.net.http.HttpHeaders; @@ -11,7 +12,7 @@ public class Code404Response { public static class Code404Response1 extends ResponseDeserializer { public Code404Response1() { super( - Map.ofEntries( + MapUtils.makeMap( ) ); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.java index b9396a45010..e288c54a1f4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.java @@ -2,6 +2,7 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.schemas.validation.MapUtils; import java.util.Map; import java.net.http.HttpHeaders; @@ -11,7 +12,7 @@ public class CodedefaultResponse { public static class CodedefaultResponse1 extends ResponseDeserializer { public CodedefaultResponse1() { super( - Map.ofEntries( + MapUtils.makeMap( ) ); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code303Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code303Response.java index bf17d9aeffc..2d27d3c3042 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code303Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code303Response.java @@ -2,6 +2,7 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.schemas.validation.MapUtils; import java.util.Map; import java.net.http.HttpHeaders; @@ -11,7 +12,7 @@ public class Code303Response { public static class Code303Response1 extends ResponseDeserializer { public Code303Response1() { super( - Map.ofEntries( + MapUtils.makeMap( ) ); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code3XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code3XXResponse.java index fe4f9728064..b4acc5dbc81 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code3XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code3XXResponse.java @@ -2,6 +2,7 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.schemas.validation.MapUtils; import java.util.Map; import java.net.http.HttpHeaders; @@ -11,7 +12,7 @@ public class Code3XXResponse { public static class Code3XXResponse1 extends ResponseDeserializer { public Code3XXResponse1() { super( - Map.ofEntries( + MapUtils.makeMap( ) ); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java index 249ed793974..c6951feb51b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java @@ -2,6 +2,7 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.schemas.validation.MapUtils; import java.util.AbstractMap; import java.util.Map; @@ -12,9 +13,9 @@ public class Code200Response { public static class Code200Response1 extends ResponseDeserializer { public Code200Response1() { super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", null), - new AbstractMap.SimpleEntry<>("application/xml", null) + MapUtils.makeMap( + new AbstractMap.SimpleEntry("application/json", null), + new AbstractMap.SimpleEntry("application/xml", null) ) ); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code405Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code405Response.java index 19f2bc6fafe..a6d41fad9fa 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code405Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code405Response.java @@ -2,6 +2,7 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.schemas.validation.MapUtils; import java.util.Map; import java.net.http.HttpHeaders; @@ -11,7 +12,7 @@ public class Code405Response { public static class Code405Response1 extends ResponseDeserializer { public Code405Response1() { super( - Map.ofEntries( + MapUtils.makeMap( ) ); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code400Response.java index 84a0f0086d2..bb6b67f6c60 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code400Response.java @@ -2,6 +2,7 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.schemas.validation.MapUtils; import java.util.Map; import java.net.http.HttpHeaders; @@ -11,7 +12,7 @@ public class Code400Response { public static class Code400Response1 extends ResponseDeserializer { public Code400Response1() { super( - Map.ofEntries( + MapUtils.makeMap( ) ); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code404Response.java index 0b28c367e6c..7ba2c313ee5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code404Response.java @@ -2,6 +2,7 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.schemas.validation.MapUtils; import java.util.Map; import java.net.http.HttpHeaders; @@ -11,7 +12,7 @@ public class Code404Response { public static class Code404Response1 extends ResponseDeserializer { public Code404Response1() { super( - Map.ofEntries( + MapUtils.makeMap( ) ); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code405Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code405Response.java index 37c341a13df..446172b00a9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code405Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code405Response.java @@ -2,6 +2,7 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.schemas.validation.MapUtils; import java.util.Map; import java.net.http.HttpHeaders; @@ -11,7 +12,7 @@ public class Code405Response { public static class Code405Response1 extends ResponseDeserializer { public Code405Response1() { super( - Map.ofEntries( + MapUtils.makeMap( ) ); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code400Response.java index d21b969a3a2..ff6b6507229 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code400Response.java @@ -2,6 +2,7 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.schemas.validation.MapUtils; import java.util.Map; import java.net.http.HttpHeaders; @@ -11,7 +12,7 @@ public class Code400Response { public static class Code400Response1 extends ResponseDeserializer { public Code400Response1() { super( - Map.ofEntries( + MapUtils.makeMap( ) ); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code400Response.java index 273d21472f9..d13f7bbb8ad 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code400Response.java @@ -2,6 +2,7 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.schemas.validation.MapUtils; import java.util.Map; import java.net.http.HttpHeaders; @@ -11,7 +12,7 @@ public class Code400Response { public static class Code400Response1 extends ResponseDeserializer { public Code400Response1() { super( - Map.ofEntries( + MapUtils.makeMap( ) ); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/Code400Response.java index c8b6e5c1a26..ccd0738e939 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/Code400Response.java @@ -2,6 +2,7 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.schemas.validation.MapUtils; import java.util.Map; import java.net.http.HttpHeaders; @@ -11,7 +12,7 @@ public class Code400Response { public static class Code400Response1 extends ResponseDeserializer { public Code400Response1() { super( - Map.ofEntries( + MapUtils.makeMap( ) ); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code400Response.java index 03928567792..ac598607396 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code400Response.java @@ -2,6 +2,7 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.schemas.validation.MapUtils; import java.util.Map; import java.net.http.HttpHeaders; @@ -11,7 +12,7 @@ public class Code400Response { public static class Code400Response1 extends ResponseDeserializer { public Code400Response1() { super( - Map.ofEntries( + MapUtils.makeMap( ) ); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code404Response.java index 357185273c9..7f3c03cf7d2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code404Response.java @@ -2,6 +2,7 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.schemas.validation.MapUtils; import java.util.Map; import java.net.http.HttpHeaders; @@ -11,7 +12,7 @@ public class Code404Response { public static class Code404Response1 extends ResponseDeserializer { public Code404Response1() { super( - Map.ofEntries( + MapUtils.makeMap( ) ); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/Code405Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/Code405Response.java index 4f7e717fa04..64f2545e66b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/Code405Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/Code405Response.java @@ -2,6 +2,7 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.schemas.validation.MapUtils; import java.util.Map; import java.net.http.HttpHeaders; @@ -11,7 +12,7 @@ public class Code405Response { public static class Code405Response1 extends ResponseDeserializer { public Code405Response1() { super( - Map.ofEntries( + MapUtils.makeMap( ) ); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code400Response.java index 98732174bf0..0d1ee3dc6ab 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code400Response.java @@ -2,6 +2,7 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.schemas.validation.MapUtils; import java.util.Map; import java.net.http.HttpHeaders; @@ -11,7 +12,7 @@ public class Code400Response { public static class Code400Response1 extends ResponseDeserializer { public Code400Response1() { super( - Map.ofEntries( + MapUtils.makeMap( ) ); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code400Response.java index 6e37c49783a..6aa80c74c8b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code400Response.java @@ -2,6 +2,7 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.schemas.validation.MapUtils; import java.util.Map; import java.net.http.HttpHeaders; @@ -11,7 +12,7 @@ public class Code400Response { public static class Code400Response1 extends ResponseDeserializer { public Code400Response1() { super( - Map.ofEntries( + MapUtils.makeMap( ) ); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code404Response.java index 74c20b5c8f9..4bf4dcfa0f6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code404Response.java @@ -2,6 +2,7 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.schemas.validation.MapUtils; import java.util.Map; import java.net.http.HttpHeaders; @@ -11,7 +12,7 @@ public class Code404Response { public static class Code404Response1 extends ResponseDeserializer { public Code404Response1() { super( - Map.ofEntries( + MapUtils.makeMap( ) ); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code400Response.java index 64b412bd723..c92b8c47da7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code400Response.java @@ -2,6 +2,7 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.schemas.validation.MapUtils; import java.util.Map; import java.net.http.HttpHeaders; @@ -11,7 +12,7 @@ public class Code400Response { public static class Code400Response1 extends ResponseDeserializer { public Code400Response1() { super( - Map.ofEntries( + MapUtils.makeMap( ) ); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code404Response.java index 22bf02e359f..46eedfc873d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code404Response.java @@ -2,6 +2,7 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.schemas.validation.MapUtils; import java.util.Map; import java.net.http.HttpHeaders; @@ -11,7 +12,7 @@ public class Code404Response { public static class Code404Response1 extends ResponseDeserializer { public Code404Response1() { super( - Map.ofEntries( + MapUtils.makeMap( ) ); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/CodedefaultResponse.java index 2239df50dee..2776cacf32d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/CodedefaultResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/CodedefaultResponse.java @@ -2,6 +2,7 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.schemas.validation.MapUtils; import java.util.Map; import java.net.http.HttpHeaders; @@ -11,7 +12,7 @@ public class CodedefaultResponse { public static class CodedefaultResponse1 extends ResponseDeserializer { public CodedefaultResponse1() { super( - Map.ofEntries( + MapUtils.makeMap( ) ); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/CodedefaultResponse.java index dd16ae9bc23..e5b3459ce72 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/CodedefaultResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/CodedefaultResponse.java @@ -2,6 +2,7 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.schemas.validation.MapUtils; import java.util.Map; import java.net.http.HttpHeaders; @@ -11,7 +12,7 @@ public class CodedefaultResponse { public static class CodedefaultResponse1 extends ResponseDeserializer { public CodedefaultResponse1() { super( - Map.ofEntries( + MapUtils.makeMap( ) ); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/CodedefaultResponse.java index 1c9c682143a..e15f4649c3c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/CodedefaultResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/CodedefaultResponse.java @@ -2,6 +2,7 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.schemas.validation.MapUtils; import java.util.Map; import java.net.http.HttpHeaders; @@ -11,7 +12,7 @@ public class CodedefaultResponse { public static class CodedefaultResponse1 extends ResponseDeserializer { public CodedefaultResponse1() { super( - Map.ofEntries( + MapUtils.makeMap( ) ); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code400Response.java index f9d6bfd42bd..c5e20ab240e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code400Response.java @@ -2,6 +2,7 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.schemas.validation.MapUtils; import java.util.Map; import java.net.http.HttpHeaders; @@ -11,7 +12,7 @@ public class Code400Response { public static class Code400Response1 extends ResponseDeserializer { public Code400Response1() { super( - Map.ofEntries( + MapUtils.makeMap( ) ); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code404Response.java index 79d5bef5bf9..73a174cb637 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code404Response.java @@ -2,6 +2,7 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.schemas.validation.MapUtils; import java.util.Map; import java.net.http.HttpHeaders; @@ -11,7 +12,7 @@ public class Code404Response { public static class Code404Response1 extends ResponseDeserializer { public Code404Response1() { super( - Map.ofEntries( + MapUtils.makeMap( ) ); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code400Response.java index 47f3a2a8321..0268394c31b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code400Response.java @@ -2,6 +2,7 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.schemas.validation.MapUtils; import java.util.Map; import java.net.http.HttpHeaders; @@ -11,7 +12,7 @@ public class Code400Response { public static class Code400Response1 extends ResponseDeserializer { public Code400Response1() { super( - Map.ofEntries( + MapUtils.makeMap( ) ); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code404Response.java index defa8e82eab..104d657e30b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code404Response.java @@ -2,6 +2,7 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.schemas.validation.MapUtils; import java.util.Map; import java.net.http.HttpHeaders; @@ -11,7 +12,7 @@ public class Code404Response { public static class Code404Response1 extends ResponseDeserializer { public Code404Response1() { super( - Map.ofEntries( + MapUtils.makeMap( ) ); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code400Response.java index d0ff8d60fbb..3867328f582 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code400Response.java @@ -2,6 +2,7 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.schemas.validation.MapUtils; import java.util.Map; import java.net.http.HttpHeaders; @@ -11,7 +12,7 @@ public class Code400Response { public static class Code400Response1 extends ResponseDeserializer { public Code400Response1() { super( - Map.ofEntries( + MapUtils.makeMap( ) ); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code404Response.java index 63174a4a58f..a12c1263cfc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code404Response.java @@ -2,6 +2,7 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.schemas.validation.MapUtils; import java.util.Map; import java.net.http.HttpHeaders; @@ -11,7 +12,7 @@ public class Code404Response { public static class Code404Response1 extends ResponseDeserializer { public Code404Response1() { super( - Map.ofEntries( + MapUtils.makeMap( ) ); } diff --git a/src/main/resources/java/src/main/java/packagename/components/responses/Response.hbs b/src/main/resources/java/src/main/java/packagename/components/responses/Response.hbs index c5c6c66c9a8..f24e3082d7c 100644 --- a/src/main/resources/java/src/main/java/packagename/components/responses/Response.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/responses/Response.hbs @@ -14,6 +14,8 @@ import {{packageName}}.configurations.SchemaConfiguration; import {{packageName}}.response.ResponseDeserializer; {{#if hasContentSchema}} import {{packageName}}.mediatype.MediaType; + {{else}} +import {{packageName}}.schemas.validation.MapUtils; {{/if}} {{#each content}} {{#with schema}} @@ -51,11 +53,19 @@ public class {{jsonPathPiece.pascalCase}} { public static class {{jsonPathPiece.pascalCase}}1 extends ResponseDeserializer<{{#if hasContentSchema}}SealedResponseBody{{else}}Void{{/if}}, Void, {{#if hasContentSchema}}SealedMediaType{{else}}Void{{/if}}> { public {{jsonPathPiece.pascalCase}}1() { super( + {{#if hasContentSchema}} Map.ofEntries( - {{#each content}} - new AbstractMap.SimpleEntry<>("{{{@key.original}}}", {{#if schema}}new {{@key.pascalCase}}MediaType(){{else}}null{{/if}}){{#unless @last}},{{/unless}} - {{/each}} + {{#each content}} + new AbstractMap.SimpleEntry<>("{{{@key.original}}}", new {{@key.pascalCase}}MediaType()){{#unless @last}},{{/unless}} + {{/each}} ) + {{else}} + MapUtils.makeMap( + {{#each content}} + new AbstractMap.SimpleEntry("{{{@key.original}}}", null){{#unless @last}},{{/unless}} + {{/each}} + ) + {{/if}} ); } From b77a4b6e07e02346a9fba282343589c7c4f45673 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 22 Feb 2024 14:59:05 -0800 Subject: [PATCH 36/50] Petstore updated with response docs --- .../petstore/java/.openapi-generator/FILES | 7 + samples/client/petstore/java/README.md | 12 ++ .../components/responses/HeadersWithNoBody.md | 35 +++++ .../responses/RefSuccessDescriptionOnly.md | 20 +++ .../RefSuccessfulXmlAndJsonArrayOfPet.md | 20 +++ .../responses/SuccessDescriptionOnly.md | 35 +++++ .../SuccessInlineContentAndHeader.md | 90 +++++++++++ .../responses/SuccessWithJsonApiResponse.md | 90 +++++++++++ .../SuccessfulXmlAndJsonArrayOfPet.md | 126 ++++++++++++++++ .../generators/JavaClientGenerator.java | 13 +- src/main/resources/java/README.hbs | 12 ++ .../components/responses/ResponseDoc.hbs | 140 ++++++++++++++++++ 12 files changed, 598 insertions(+), 2 deletions(-) create mode 100644 samples/client/petstore/java/docs/components/responses/HeadersWithNoBody.md create mode 100644 samples/client/petstore/java/docs/components/responses/RefSuccessDescriptionOnly.md create mode 100644 samples/client/petstore/java/docs/components/responses/RefSuccessfulXmlAndJsonArrayOfPet.md create mode 100644 samples/client/petstore/java/docs/components/responses/SuccessDescriptionOnly.md create mode 100644 samples/client/petstore/java/docs/components/responses/SuccessInlineContentAndHeader.md create mode 100644 samples/client/petstore/java/docs/components/responses/SuccessWithJsonApiResponse.md create mode 100644 samples/client/petstore/java/docs/components/responses/SuccessfulXmlAndJsonArrayOfPet.md create mode 100644 src/main/resources/java/src/main/java/packagename/components/responses/ResponseDoc.hbs diff --git a/samples/client/petstore/java/.openapi-generator/FILES b/samples/client/petstore/java/.openapi-generator/FILES index 1696f53f60e..32b402a43f8 100644 --- a/samples/client/petstore/java/.openapi-generator/FILES +++ b/samples/client/petstore/java/.openapi-generator/FILES @@ -15,6 +15,13 @@ docs/components/requestbodies/client/content/applicationjson/ApplicationjsonSche docs/components/requestbodies/pet/content/applicationjson/ApplicationjsonSchema.md docs/components/requestbodies/pet/content/applicationxml/ApplicationxmlSchema.md docs/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.md +docs/components/responses/HeadersWithNoBody.md +docs/components/responses/RefSuccessDescriptionOnly.md +docs/components/responses/RefSuccessfulXmlAndJsonArrayOfPet.md +docs/components/responses/SuccessDescriptionOnly.md +docs/components/responses/SuccessInlineContentAndHeader.md +docs/components/responses/SuccessWithJsonApiResponse.md +docs/components/responses/SuccessfulXmlAndJsonArrayOfPet.md docs/components/responses/headerswithnobody/headers/location/LocationSchema.md docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.md docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.md diff --git a/samples/client/petstore/java/README.md b/samples/client/petstore/java/README.md index 64c0fe18b67..72667a4c61d 100644 --- a/samples/client/petstore/java/README.md +++ b/samples/client/petstore/java/README.md @@ -308,6 +308,18 @@ Class | Description [RefUserArray.RefUserArray1](docs/components/requestbodies/RefUserArray.md#refuserarray1) | [UserArray.UserArray1](docs/components/requestbodies/UserArray.md#userarray1) | List of user object +## Component Responses + +Class | Description +----- | ------------ +[HeadersWithNoBody.HeadersWithNoBody1](docs/components/responses/HeadersWithNoBody.md#headerswithnobody1) | A response that contains headers but no body
+[RefSuccessDescriptionOnly.RefSuccessDescriptionOnly1](docs/components/responses/RefSuccessDescriptionOnly.md#refsuccessdescriptiononly1) | +[RefSuccessfulXmlAndJsonArrayOfPet.RefSuccessfulXmlAndJsonArrayOfPet1](docs/components/responses/RefSuccessfulXmlAndJsonArrayOfPet.md#refsuccessfulxmlandjsonarrayofpet1) | +[SuccessDescriptionOnly.SuccessDescriptionOnly1](docs/components/responses/SuccessDescriptionOnly.md#successdescriptiononly1) | Success +[SuccessInlineContentAndHeader.SuccessInlineContentAndHeader1](docs/components/responses/SuccessInlineContentAndHeader.md#successinlinecontentandheader1) | successful operation +[SuccessWithJsonApiResponse.SuccessWithJsonApiResponse1](docs/components/responses/SuccessWithJsonApiResponse.md#successwithjsonapiresponse1) | successful operation +[SuccessfulXmlAndJsonArrayOfPet.SuccessfulXmlAndJsonArrayOfPet1](docs/components/responses/SuccessfulXmlAndJsonArrayOfPet.md#successfulxmlandjsonarrayofpet1) | successful operation, multiple content types + ## Component SecuritySchemes | Class | Description | diff --git a/samples/client/petstore/java/docs/components/responses/HeadersWithNoBody.md b/samples/client/petstore/java/docs/components/responses/HeadersWithNoBody.md new file mode 100644 index 00000000000..7039572f287 --- /dev/null +++ b/samples/client/petstore/java/docs/components/responses/HeadersWithNoBody.md @@ -0,0 +1,35 @@ +# HeadersWithNoBody +HeadersWithNoBody.java + +public class HeadersWithNoBody + +A class that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [HeadersWithNoBody.HeadersWithNoBody1](#headerswithnobody1)
class that deserializes responses | + +## HeadersWithNoBody1 +public static class HeadersWithNoBody1
+extends ResponseDeserializer + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| HeadersWithNoBody1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = MapUtils.makeMap(
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | + +[[Back to top]](#top) [[Back to Component Responses]](../../../README.md#Component-Responses) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/components/responses/RefSuccessDescriptionOnly.md b/samples/client/petstore/java/docs/components/responses/RefSuccessDescriptionOnly.md new file mode 100644 index 00000000000..f3e5b549571 --- /dev/null +++ b/samples/client/petstore/java/docs/components/responses/RefSuccessDescriptionOnly.md @@ -0,0 +1,20 @@ +# RefSuccessDescriptionOnly +RefSuccessDescriptionOnly.java + +public class RefSuccessDescriptionOnly extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) + +A class (extended from the $ref class) that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [RefSuccessDescriptionOnly.RefSuccessDescriptionOnly1](#refsuccessdescriptiononly1)
class that deserializes responses | + +## RefSuccessDescriptionOnly1 +public static class RefSuccessDescriptionOnly1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
+ +a class that deserializes responses, extended from the $ref class + + +[[Back to top]](#top) [[Back to Component Responses]](../../../README.md#Component-Responses) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/components/responses/RefSuccessfulXmlAndJsonArrayOfPet.md b/samples/client/petstore/java/docs/components/responses/RefSuccessfulXmlAndJsonArrayOfPet.md new file mode 100644 index 00000000000..eea32f8e387 --- /dev/null +++ b/samples/client/petstore/java/docs/components/responses/RefSuccessfulXmlAndJsonArrayOfPet.md @@ -0,0 +1,20 @@ +# RefSuccessfulXmlAndJsonArrayOfPet +RefSuccessfulXmlAndJsonArrayOfPet.java + +public class RefSuccessfulXmlAndJsonArrayOfPet extends [SuccessfulXmlAndJsonArrayOfPet](../../components/responses/SuccessfulXmlAndJsonArrayOfPet.md) + +A class (extended from the $ref class) that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [RefSuccessfulXmlAndJsonArrayOfPet.RefSuccessfulXmlAndJsonArrayOfPet1](#refsuccessfulxmlandjsonarrayofpet1)
class that deserializes responses | + +## RefSuccessfulXmlAndJsonArrayOfPet1 +public static class RefSuccessfulXmlAndJsonArrayOfPet1 extends [SuccessfulXmlAndJsonArrayOfPet1](../../components/responses/SuccessfulXmlAndJsonArrayOfPet.md#successfulxmlandjsonarrayofpet1)
+ +a class that deserializes responses, extended from the $ref class + + +[[Back to top]](#top) [[Back to Component Responses]](../../../README.md#Component-Responses) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/components/responses/SuccessDescriptionOnly.md b/samples/client/petstore/java/docs/components/responses/SuccessDescriptionOnly.md new file mode 100644 index 00000000000..1d7b3de9bb3 --- /dev/null +++ b/samples/client/petstore/java/docs/components/responses/SuccessDescriptionOnly.md @@ -0,0 +1,35 @@ +# SuccessDescriptionOnly +SuccessDescriptionOnly.java + +public class SuccessDescriptionOnly + +A class that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [SuccessDescriptionOnly.SuccessDescriptionOnly1](#successdescriptiononly1)
class that deserializes responses | + +## SuccessDescriptionOnly1 +public static class SuccessDescriptionOnly1
+extends ResponseDeserializer + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| SuccessDescriptionOnly1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = MapUtils.makeMap(
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | + +[[Back to top]](#top) [[Back to Component Responses]](../../../README.md#Component-Responses) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/components/responses/SuccessInlineContentAndHeader.md b/samples/client/petstore/java/docs/components/responses/SuccessInlineContentAndHeader.md new file mode 100644 index 00000000000..2aa8884741d --- /dev/null +++ b/samples/client/petstore/java/docs/components/responses/SuccessInlineContentAndHeader.md @@ -0,0 +1,90 @@ +# SuccessInlineContentAndHeader +SuccessInlineContentAndHeader.java + +public class SuccessInlineContentAndHeader + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [SuccessInlineContentAndHeader.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [SuccessInlineContentAndHeader.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [SuccessInlineContentAndHeader.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [SuccessInlineContentAndHeader.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [SuccessInlineContentAndHeader.SuccessInlineContentAndHeader1](#successinlinecontentandheader1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[ApplicationjsonSchema1Boxed](../../components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.[ApplicationjsonSchema1Boxed](../../components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1boxed) | body()
returns the body passed in in the constructor | + +## SuccessInlineContentAndHeader1 +public static class SuccessInlineContentAndHeader1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| SuccessInlineContentAndHeader1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | + +[[Back to top]](#top) [[Back to Component Responses]](../../../README.md#Component-Responses) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/components/responses/SuccessWithJsonApiResponse.md b/samples/client/petstore/java/docs/components/responses/SuccessWithJsonApiResponse.md new file mode 100644 index 00000000000..65c594106d9 --- /dev/null +++ b/samples/client/petstore/java/docs/components/responses/SuccessWithJsonApiResponse.md @@ -0,0 +1,90 @@ +# SuccessWithJsonApiResponse +SuccessWithJsonApiResponse.java + +public class SuccessWithJsonApiResponse + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [SuccessWithJsonApiResponse.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [SuccessWithJsonApiResponse.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [SuccessWithJsonApiResponse.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [SuccessWithJsonApiResponse.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [SuccessWithJsonApiResponse.SuccessWithJsonApiResponse1](#successwithjsonapiresponse1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../components/responses/successwithjsonapiresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../components/responses/successwithjsonapiresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[ApiResponseSchema1Boxed](../../components/schemas/ApiResponseSchema.md#apiresponseschema1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.[ApiResponseSchema1Boxed](../../components/schemas/ApiResponseSchema.md#apiresponseschema1boxed) | body()
returns the body passed in in the constructor | + +## SuccessWithJsonApiResponse1 +public static class SuccessWithJsonApiResponse1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| SuccessWithJsonApiResponse1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | + +[[Back to top]](#top) [[Back to Component Responses]](../../../README.md#Component-Responses) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/components/responses/SuccessfulXmlAndJsonArrayOfPet.md b/samples/client/petstore/java/docs/components/responses/SuccessfulXmlAndJsonArrayOfPet.md new file mode 100644 index 00000000000..81290f28220 --- /dev/null +++ b/samples/client/petstore/java/docs/components/responses/SuccessfulXmlAndJsonArrayOfPet.md @@ -0,0 +1,126 @@ +# SuccessfulXmlAndJsonArrayOfPet +SuccessfulXmlAndJsonArrayOfPet.java + +public class SuccessfulXmlAndJsonArrayOfPet + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [SuccessfulXmlAndJsonArrayOfPet.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [SuccessfulXmlAndJsonArrayOfPet.ApplicationxmlMediaType](#applicationxmlmediatype)
record storing schema + encoding for a specific contentType | +| record | [SuccessfulXmlAndJsonArrayOfPet.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [SuccessfulXmlAndJsonArrayOfPet.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [SuccessfulXmlAndJsonArrayOfPet.ApplicationxmlResponseBody](#applicationxmlresponsebody)
implements sealed interface to store response body | +| record | [SuccessfulXmlAndJsonArrayOfPet.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [SuccessfulXmlAndJsonArrayOfPet.SuccessfulXmlAndJsonArrayOfPet1](#successfulxmlandjsonarrayofpet1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationxmlMediaType](#applicationxmlmediatype), +[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationxmlMediaType +public record ApplicationxmlMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxmlSchema.ApplicationxmlSchema1](../../components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxmlMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxmlSchema.ApplicationxmlSchema1](../../components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationxmlResponseBody](#applicationxmlresponsebody), +[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationxmlResponseBody +public record ApplicationxmlResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/xml" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxmlResponseBody(ApplicationxmlSchema.[ApplicationxmlSchema1Boxed](../../components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationxmlSchema.[ApplicationxmlSchema1Boxed](../../components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1boxed) | body()
returns the body passed in in the constructor | +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[ApplicationjsonSchema1Boxed](../../components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.[ApplicationjsonSchema1Boxed](../../components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1boxed) | body()
returns the body passed in in the constructor | + +## SuccessfulXmlAndJsonArrayOfPet1 +public static class SuccessfulXmlAndJsonArrayOfPet1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| SuccessfulXmlAndJsonArrayOfPet1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/xml", new [ApplicationxmlMediaType](#applicationxmlmediatype)()),
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | + +[[Back to top]](#top) [[Back to Component Responses]](../../../README.md#Component-Responses) [[Back to README]](../../../README.md) diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java index 52873e8c837..1902ca74326 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java @@ -283,7 +283,8 @@ public JavaClientGenerator() { DocumentationFeature.Servers, DocumentationFeature.ComponentSchemas, DocumentationFeature.ComponentSecuritySchemes, - DocumentationFeature.ComponentRequestBodies + DocumentationFeature.ComponentRequestBodies, + DocumentationFeature.ComponentResponses ) .includeGlobalFeatures( GlobalFeature.Components, @@ -293,7 +294,8 @@ public JavaClientGenerator() { .includeComponentsFeatures( ComponentsFeature.schemas, ComponentsFeature.securitySchemes, - ComponentsFeature.requestBodies + ComponentsFeature.requestBodies, + ComponentsFeature.responses ) .includeSecurityFeatures( SecurityFeature.ApiKey, @@ -805,6 +807,13 @@ public void processOpts() { put("src/main/java/packagename/components/responses/Response.hbs", ".java"); }} ); + jsonPathDocTemplateFiles.put( + CodegenConstants.JSON_PATH_LOCATION_TYPE.RESPONSE, + new HashMap<>() {{ + put("src/main/java/packagename/components/responses/ResponseDoc.hbs", ".md"); + }} + ); + // schema HashMap schemaTemplates = new HashMap<>(); schemaTemplates.put("src/main/java/packagename/components/schemas/Schema.hbs", ".java"); diff --git a/src/main/resources/java/README.hbs b/src/main/resources/java/README.hbs index dc2ee6b3ff5..2477d62306e 100644 --- a/src/main/resources/java/README.hbs +++ b/src/main/resources/java/README.hbs @@ -185,6 +185,18 @@ Class | Description {{/with}} {{/each}} {{/if}} +{{#if responses}} + +## Component Responses + +Class | Description +----- | ------------ +{{#each responses}} + {{#with this}} +[{{jsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}1](docs/components/responses/{{jsonPathPiece.pascalCase}}.md#{{jsonPathPiece.kebabCase}}1) |{{#if description}} {{description.originalWithBr}}{{/if}} + {{/with}} +{{/each}} +{{/if}} {{#if securitySchemes}} ## Component SecuritySchemes diff --git a/src/main/resources/java/src/main/java/packagename/components/responses/ResponseDoc.hbs b/src/main/resources/java/src/main/java/packagename/components/responses/ResponseDoc.hbs new file mode 100644 index 00000000000..225e01d0f1c --- /dev/null +++ b/src/main/resources/java/src/main/java/packagename/components/responses/ResponseDoc.hbs @@ -0,0 +1,140 @@ +{{#with response}} +{{#eq identifierPieces.size 0}} +{{> src/main/java/packagename/components/_helper_header_from_identifier_pieces identifierPieces=(append identifierPieces jsonPathPiece) }} +{{else}} +{{> src/main/java/packagename/components/_helper_header_from_identifier_pieces }} +{{/eq}} +{{#if componentModule}} +{{jsonPathPiece.pascalCase}}.java +{{/if}} + +{{#if refInfo}} +public class {{jsonPathPiece.pascalCase}} extends [{{refInfo.refClass}}](../../components/responses/{{refInfo.refClass}}.md) + +A class (extended from the $ref class) that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +{{headerSize}}# Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [{{jsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}1](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "1" "")) }})
class that deserializes responses | + +{{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces (join jsonPathPiece.pascalCase "1" "")) }} +public static class {{jsonPathPiece.pascalCase}}1 extends [{{refInfo.refClass}}1](../../components/responses/{{refInfo.refClass}}.md#{{refInfo.ref.jsonPathPiece.kebabCase}}1)
+ +a class that deserializes responses, extended from the $ref class + +{{else}} +public class {{jsonPathPiece.pascalCase}} + +A class that contains necessary nested response classes +{{#if hasContentSchema}} +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +{{/if}} +- a class that extends ResponseDeserializer and is used to deserialize responses + +{{headerSize}}# Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +{{#if hasContentSchema}} +| sealed interface | [{{jsonPathPiece.pascalCase}}.SealedMediaType](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces "sealedmediatype") }})
media type sealed interface | + {{#each content}} +| record | [{{jsonPathPiece.pascalCase}}.{{@key.pascalCase}}MediaType](#{{@key.kebabCase}}mediatype)
record storing schema + encoding for a specific contentType | + {{/each}} +| sealed interface | [{{jsonPathPiece.pascalCase}}.SealedResponseBody](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces "sealedresponsebody") }})
response body sealed interface | + {{#each content}} +| record | [{{jsonPathPiece.pascalCase}}.{{@key.pascalCase}}ResponseBody](#{{@key.kebabCase}}responsebody)
implements sealed interface to store response body | + {{/each}} +{{/if}} +| static class | [{{jsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}1](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "1" "")) }})
class that deserializes responses | +{{#if hasContentSchema}} + +{{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces "SealedMediaType") }} +public sealed interface SealedMediaType
+permits
+ {{#each content}} +[{{@key.pascalCase}}MediaType](#{{@key.kebabCase}}mediatype){{#unless @last}},{{/unless}} + {{/each}} + +sealed interface that stores schema and encoding info + {{#each content}} + +{{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces (join @key.pascalCase "MediaType" "")) }} +public record {{@key.pascalCase}}MediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<{{#with this}}{{#with schema}}[{{containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}]({{docRoot}}{{pathFromDocRoot}}.md#{{jsonPathPiece.kebabCase}}){{/with}}{{/with}}, Void> + +class storing schema info for a specific contentType + +{{headerSize}}## Constructor Summary +| Constructor and Description | +| --------------------------- | +| {{@key.pascalCase}}MediaType()
Creates an instance | + +{{headerSize}}## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| {{#with this}}{{#with schema}}[{{containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}]({{docRoot}}{{pathFromDocRoot}}.md#{{jsonPathPiece.kebabCase}}){{/with}}{{/with}} | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + {{/each}} + +{{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces "SealedResponseBody") }} +public sealed interface SealedResponseBody
+permits
+ {{#each content}} +[{{@key.pascalCase}}ResponseBody](#{{@key.kebabCase}}responsebody){{#unless @last}},{{/unless}} + {{/each}} + +sealed interface that stores response body + + {{#each content}} +{{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces (join @key.pascalCase "ResponseBody" "")) }} +public record {{@key.pascalCase}}ResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="{{{@key.original}}}" + +{{headerSize}}## Constructor Summary +| Constructor and Description | +| --------------------------- | +| {{@key.pascalCase}}ResponseBody({{#with this}}{{#with schema}}{{containerJsonPathPiece.pascalCase}}.{{#with getSelfOrDeepestRef}}{{> src/main/java/packagename/components/schemas/_sealedClassName forDocs=true }}{{/with}}{{/with}}{{/with}} body)
Creates an instance | + +{{headerSize}}## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| {{#with this}}{{#with schema}}{{containerJsonPathPiece.pascalCase}}.{{#with getSelfOrDeepestRef}}{{> src/main/java/packagename/components/schemas/_sealedClassName forDocs=true }}{{/with}}{{/with}}{{/with}} | body()
returns the body passed in in the constructor | + {{/each}} +{{/if}} + +{{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces (join jsonPathPiece.pascalCase "1" "")) }} +public static class {{jsonPathPiece.pascalCase}}1
+extends ResponseDeserializer<{{#if hasContentSchema}}[SealedResponseBody](#sealedresponsebody){{else}}Void{{/if}}, Void, {{#if hasContentSchema}}[SealedMediaType](#sealedmediatype){{else}}Void{{/if}}> + +a class that deserializes responses + +{{headerSize}}## Constructor Summary +| Constructor and Description | +| --------------------------- | +| {{jsonPathPiece.pascalCase}}1()
Creates an instance | + +{{headerSize}}## Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | + {{#if hasContentSchema}} +| Map | content = Map.ofEntries(
{{#each content}}    new AbstractMap.SimpleEntry<>("{{{@key.original}}}", new [{{@key.pascalCase}}MediaType](#{{@key.kebabCase}}mediatype)()){{#unless @last}},{{/unless}}
{{/each}})
the contentType to schema info | + {{else}} +| Map | content = MapUtils.makeMap(
{{#each content}}    new AbstractMap.SimpleEntry<>("{{{@key.original}}}", null){{#unless @last}},{{/unless}}
{{/each}})
the contentType to schema info | + {{/if}} + +{{headerSize}}## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<{{#if hasContentSchema}}[SealedResponseBody](#sealedresponsebody){{else}}Void{{/if}}, Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | +{{/if}} +{{#if componentModule}} + +[[Back to top]](#top) {{> _helper_footer_links readmePath="../../../" responsesLink=true}} +{{/if}} +{{/with}} \ No newline at end of file From b6af9a8521373b443e3be1ab8a0d856933e05aa6 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 22 Feb 2024 15:57:14 -0800 Subject: [PATCH 37/50] Samples and docs updated --- docs/generators/java.md | 4 +- .../java/.openapi-generator/FILES | 3 + ...pertiesAllowsASchemaWhichShouldValidate.md | 238 +++--- ...AdditionalpropertiesAreAllowedByDefault.md | 292 ++++---- .../AdditionalpropertiesCanExistByItself.md | 46 +- ...nalpropertiesShouldNotLookInApplicators.md | 315 ++++---- .../java/docs/components/schemas/Allof.md | 338 +++++---- .../schemas/AllofCombinedWithAnyofOneof.md | 394 +++++----- .../components/schemas/AllofSimpleTypes.md | 296 ++++---- .../components/schemas/AllofWithBaseSchema.md | 359 ++++----- .../schemas/AllofWithOneEmptySchema.md | 196 ++--- .../schemas/AllofWithTheFirstEmptySchema.md | 217 +++--- .../schemas/AllofWithTheLastEmptySchema.md | 217 +++--- .../schemas/AllofWithTwoEmptySchemas.md | 292 ++++---- .../java/docs/components/schemas/Anyof.md | 219 +++--- .../components/schemas/AnyofComplexTypes.md | 338 +++++---- .../components/schemas/AnyofWithBaseSchema.md | 221 +++--- .../schemas/AnyofWithOneEmptySchema.md | 217 +++--- .../schemas/ArrayTypeMatchesArrays.md | 121 +-- .../schemas/BooleanTypeMatchesBooleans.md | 23 +- .../java/docs/components/schemas/ByInt.md | 100 +-- .../java/docs/components/schemas/ByNumber.md | 100 +-- .../docs/components/schemas/BySmallNumber.md | 100 +-- .../docs/components/schemas/DateTimeFormat.md | 100 +-- .../docs/components/schemas/EmailFormat.md | 100 +-- .../schemas/EnumWith0DoesNotMatchFalse.md | 25 +- .../schemas/EnumWith1DoesNotMatchTrue.md | 25 +- .../schemas/EnumWithEscapedCharacters.md | 25 +- .../schemas/EnumWithFalseDoesNotMatch0.md | 25 +- .../schemas/EnumWithTrueDoesNotMatch1.md | 25 +- .../components/schemas/EnumsInProperties.md | 71 +- .../components/schemas/ForbiddenProperty.md | 196 ++--- .../docs/components/schemas/HostnameFormat.md | 100 +-- .../schemas/IntegerTypeMatchesIntegers.md | 23 +- ...ShouldNotRaiseErrorWhenFloatDivisionInf.md | 25 +- .../schemas/InvalidStringValueForDefault.md | 123 ++-- .../docs/components/schemas/Ipv4Format.md | 100 +-- .../docs/components/schemas/Ipv6Format.md | 100 +-- .../components/schemas/JsonPointerFormat.md | 100 +-- .../components/schemas/MaximumValidation.md | 100 +-- .../MaximumValidationWithUnsignedInteger.md | 100 +-- .../components/schemas/MaxitemsValidation.md | 100 +-- .../components/schemas/MaxlengthValidation.md | 100 +-- .../Maxproperties0MeansTheObjectIsEmpty.md | 100 +-- .../schemas/MaxpropertiesValidation.md | 100 +-- .../components/schemas/MinimumValidation.md | 100 +-- .../MinimumValidationWithSignedInteger.md | 100 +-- .../components/schemas/MinitemsValidation.md | 100 +-- .../components/schemas/MinlengthValidation.md | 100 +-- .../schemas/MinpropertiesValidation.md | 100 +-- .../NestedAllofToCheckValidationSemantics.md | 219 +++--- .../NestedAnyofToCheckValidationSemantics.md | 219 +++--- .../docs/components/schemas/NestedItems.md | 115 +-- .../NestedOneofToCheckValidationSemantics.md | 219 +++--- .../java/docs/components/schemas/Not.md | 121 +-- .../schemas/NotMoreComplexSchema.md | 144 ++-- .../schemas/NulCharactersInStrings.md | 25 +- .../NullTypeMatchesOnlyTheNullObject.md | 23 +- .../schemas/NumberTypeMatchesNumbers.md | 23 +- .../schemas/ObjectPropertiesValidation.md | 142 ++-- .../schemas/ObjectTypeMatchesObjects.md | 23 +- .../java/docs/components/schemas/Oneof.md | 219 +++--- .../components/schemas/OneofComplexTypes.md | 338 +++++---- .../components/schemas/OneofWithBaseSchema.md | 221 +++--- .../schemas/OneofWithEmptySchema.md | 217 +++--- .../components/schemas/OneofWithRequired.md | 221 +++--- .../schemas/PatternIsNotAnchored.md | 100 +-- .../components/schemas/PatternValidation.md | 100 +-- .../PropertiesWithEscapedCharacters.md | 226 +++--- .../PropertyNamedRefThatIsNotAReference.md | 121 +-- .../schemas/RefInAdditionalproperties.md | 25 +- .../docs/components/schemas/RefInAllof.md | 100 +-- .../docs/components/schemas/RefInAnyof.md | 100 +-- .../docs/components/schemas/RefInItems.md | 25 +- .../java/docs/components/schemas/RefInNot.md | 100 +-- .../docs/components/schemas/RefInOneof.md | 100 +-- .../docs/components/schemas/RefInProperty.md | 100 +-- .../schemas/RequiredDefaultValidation.md | 196 ++--- .../components/schemas/RequiredValidation.md | 292 ++++---- .../schemas/RequiredWithEmptyArray.md | 196 ++--- .../schemas/RequiredWithEscapedCharacters.md | 100 +-- .../schemas/SimpleEnumValidation.md | 25 +- .../schemas/StringTypeMatchesStrings.md | 23 +- ...DoesNotDoAnythingIfThePropertyIsMissing.md | 48 +- .../schemas/UniqueitemsFalseValidation.md | 100 +-- .../schemas/UniqueitemsValidation.md | 100 +-- .../java/docs/components/schemas/UriFormat.md | 100 +-- .../components/schemas/UriReferenceFormat.md | 100 +-- .../components/schemas/UriTemplateFormat.md | 100 +-- ...rtiesAllowsASchemaWhichShouldValidate.java | 25 +- ...ditionalpropertiesAreAllowedByDefault.java | 81 +-- .../AdditionalpropertiesCanExistByItself.java | 25 +- ...lpropertiesShouldNotLookInApplicators.java | 162 ++--- .../client/components/schemas/Allof.java | 243 +++---- .../schemas/AllofCombinedWithAnyofOneof.java | 324 ++++----- .../components/schemas/AllofSimpleTypes.java | 243 +++---- .../schemas/AllofWithBaseSchema.java | 243 +++---- .../schemas/AllofWithOneEmptySchema.java | 81 +-- .../schemas/AllofWithTheFirstEmptySchema.java | 81 +-- .../schemas/AllofWithTheLastEmptySchema.java | 81 +-- .../schemas/AllofWithTwoEmptySchemas.java | 81 +-- .../client/components/schemas/Anyof.java | 162 ++--- .../components/schemas/AnyofComplexTypes.java | 243 +++---- .../schemas/AnyofWithBaseSchema.java | 183 +++-- .../schemas/AnyofWithOneEmptySchema.java | 81 +-- .../schemas/ArrayTypeMatchesArrays.java | 25 +- .../client/components/schemas/ByInt.java | 81 +-- .../client/components/schemas/ByNumber.java | 81 +-- .../components/schemas/BySmallNumber.java | 81 +-- .../components/schemas/DateTimeFormat.java | 81 +-- .../components/schemas/EmailFormat.java | 81 +-- .../schemas/EnumWith0DoesNotMatchFalse.java | 21 +- .../schemas/EnumWith1DoesNotMatchTrue.java | 21 +- .../schemas/EnumWithEscapedCharacters.java | 21 +- .../schemas/EnumWithFalseDoesNotMatch0.java | 22 +- .../schemas/EnumWithTrueDoesNotMatch1.java | 22 +- .../components/schemas/EnumsInProperties.java | 67 +- .../components/schemas/ForbiddenProperty.java | 81 +-- .../components/schemas/HostnameFormat.java | 81 +-- ...ouldNotRaiseErrorWhenFloatDivisionInf.java | 21 +- .../schemas/InvalidStringValueForDefault.java | 102 ++- .../client/components/schemas/Ipv4Format.java | 81 +-- .../client/components/schemas/Ipv6Format.java | 81 +-- .../components/schemas/JsonPointerFormat.java | 81 +-- .../components/schemas/MaximumValidation.java | 81 +-- .../MaximumValidationWithUnsignedInteger.java | 81 +-- .../schemas/MaxitemsValidation.java | 81 +-- .../schemas/MaxlengthValidation.java | 81 +-- .../Maxproperties0MeansTheObjectIsEmpty.java | 81 +-- .../schemas/MaxpropertiesValidation.java | 81 +-- .../components/schemas/MinimumValidation.java | 81 +-- .../MinimumValidationWithSignedInteger.java | 81 +-- .../schemas/MinitemsValidation.java | 81 +-- .../schemas/MinlengthValidation.java | 81 +-- .../schemas/MinpropertiesValidation.java | 81 +-- ...NestedAllofToCheckValidationSemantics.java | 162 ++--- ...NestedAnyofToCheckValidationSemantics.java | 162 ++--- .../components/schemas/NestedItems.java | 100 +-- ...NestedOneofToCheckValidationSemantics.java | 162 ++--- .../client/components/schemas/Not.java | 81 +-- .../schemas/NotMoreComplexSchema.java | 106 ++- .../schemas/NulCharactersInStrings.java | 21 +- .../schemas/ObjectPropertiesValidation.java | 81 +-- .../client/components/schemas/Oneof.java | 162 ++--- .../components/schemas/OneofComplexTypes.java | 243 +++---- .../schemas/OneofWithBaseSchema.java | 183 +++-- .../schemas/OneofWithEmptySchema.java | 81 +-- .../components/schemas/OneofWithRequired.java | 187 +++-- .../schemas/PatternIsNotAnchored.java | 81 +-- .../components/schemas/PatternValidation.java | 81 +-- .../PropertiesWithEscapedCharacters.java | 81 +-- .../PropertyNamedRefThatIsNotAReference.java | 81 +-- .../schemas/RefInAdditionalproperties.java | 25 +- .../client/components/schemas/RefInAllof.java | 81 +-- .../client/components/schemas/RefInAnyof.java | 81 +-- .../client/components/schemas/RefInItems.java | 25 +- .../client/components/schemas/RefInNot.java | 81 +-- .../client/components/schemas/RefInOneof.java | 81 +-- .../components/schemas/RefInProperty.java | 81 +-- .../schemas/RequiredDefaultValidation.java | 81 +-- .../schemas/RequiredValidation.java | 81 +-- .../schemas/RequiredWithEmptyArray.java | 81 +-- .../RequiredWithEscapedCharacters.java | 81 +-- .../schemas/SimpleEnumValidation.java | 21 +- ...esNotDoAnythingIfThePropertyIsMissing.java | 46 +- .../schemas/UniqueitemsFalseValidation.java | 81 +-- .../schemas/UniqueitemsValidation.java | 81 +-- .../client/components/schemas/UriFormat.java | 81 +-- .../schemas/UriReferenceFormat.java | 81 +-- .../components/schemas/UriTemplateFormat.java | 81 +-- .../client/mediatype/MediaType.java | 19 +- .../requestbody/RequestBodySerializer.java | 18 +- .../client/response/ApiResponse.java | 9 + .../client/response/ResponseDeserializer.java | 83 +++ .../client/schemas/AnyTypeJsonSchema.java | 87 +-- .../client/schemas/BooleanJsonSchema.java | 23 +- .../client/schemas/DateJsonSchema.java | 22 +- .../client/schemas/DateTimeJsonSchema.java | 22 +- .../client/schemas/DecimalJsonSchema.java | 22 +- .../client/schemas/DoubleJsonSchema.java | 22 +- .../client/schemas/FloatJsonSchema.java | 22 +- .../client/schemas/Int32JsonSchema.java | 22 +- .../client/schemas/Int64JsonSchema.java | 22 +- .../client/schemas/IntJsonSchema.java | 22 +- .../client/schemas/ListJsonSchema.java | 26 +- .../client/schemas/MapJsonSchema.java | 26 +- .../client/schemas/NotAnyTypeJsonSchema.java | 87 +-- .../client/schemas/NullJsonSchema.java | 23 +- .../client/schemas/NumberJsonSchema.java | 22 +- .../client/schemas/StringJsonSchema.java | 22 +- .../client/schemas/UuidJsonSchema.java | 22 +- .../AdditionalPropertiesValidator.java | 2 +- .../schemas/validation/AllOfValidator.java | 4 +- .../schemas/validation/AnyOfValidator.java | 6 +- .../validation/DependentSchemasValidator.java | 6 +- .../schemas/validation/ElseValidator.java | 2 +- .../schemas/validation/ItemsValidator.java | 2 +- .../client/schemas/validation/JsonSchema.java | 57 +- .../schemas/validation/JsonSchemaFactory.java | 6 +- .../schemas/validation/JsonSchemaInfo.java | 68 +- .../schemas/validation/NotValidator.java | 2 +- .../schemas/validation/OneOfValidator.java | 6 +- .../schemas/validation/PathToSchemasMap.java | 6 +- .../validation/PrefixItemsValidator.java | 2 +- .../validation/PropertiesValidator.java | 6 +- .../schemas/validation/PropertyEntry.java | 6 +- .../validation/PropertyNamesValidator.java | 2 +- .../schemas/validation/ThenValidator.java | 2 +- .../validation/UnevaluatedItemsValidator.java | 2 +- .../UnevaluatedPropertiesValidator.java | 2 +- .../validation/UnsetAnyTypeJsonSchema.java | 87 +-- .../schemas/validation/ValidationData.java | 4 +- .../validation/ValidationMetadata.java | 4 +- .../RequestBodySerializerTest.java | 131 ++-- .../response/ResponseDeserializerTest.java | 244 +++++++ .../client/schemas/ArrayTypeSchemaTest.java | 44 +- .../client/schemas/ObjectTypeSchemaTest.java | 88 ++- .../AdditionalPropertiesValidatorTest.java | 12 +- .../validation/ItemsValidatorTest.java | 12 +- .../schemas/validation/JsonSchemaTest.java | 64 +- .../validation/PropertiesValidatorTest.java | 12 +- .../validation/RequiredValidatorTest.java | 10 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../java/.openapi-generator/FILES | 3 + .../schemas/ASchemaGivenForPrefixitems.md | 142 ++-- .../AdditionalItemsAreAllowedByDefault.md | 121 +-- ...AdditionalpropertiesAreAllowedByDefault.md | 292 ++++---- .../AdditionalpropertiesCanExistByItself.md | 46 +- ...ionalpropertiesDoesNotLookInApplicators.md | 315 ++++---- ...pertiesWithNullValuedInstanceProperties.md | 46 +- .../schemas/AdditionalpropertiesWithSchema.md | 238 +++--- .../java/docs/components/schemas/Allof.md | 338 +++++---- .../schemas/AllofCombinedWithAnyofOneof.md | 394 +++++----- .../components/schemas/AllofSimpleTypes.md | 296 ++++---- .../components/schemas/AllofWithBaseSchema.md | 359 ++++----- .../schemas/AllofWithOneEmptySchema.md | 196 ++--- .../schemas/AllofWithTheFirstEmptySchema.md | 217 +++--- .../schemas/AllofWithTheLastEmptySchema.md | 217 +++--- .../schemas/AllofWithTwoEmptySchemas.md | 292 ++++---- .../java/docs/components/schemas/Anyof.md | 219 +++--- .../components/schemas/AnyofComplexTypes.md | 338 +++++---- .../components/schemas/AnyofWithBaseSchema.md | 221 +++--- .../schemas/AnyofWithOneEmptySchema.md | 217 +++--- .../schemas/ArrayTypeMatchesArrays.md | 23 +- .../schemas/BooleanTypeMatchesBooleans.md | 23 +- .../java/docs/components/schemas/ByInt.md | 100 +-- .../java/docs/components/schemas/ByNumber.md | 100 +-- .../docs/components/schemas/BySmallNumber.md | 100 +-- .../schemas/ConstNulCharactersInStrings.md | 100 +-- .../schemas/ContainsKeywordValidation.md | 198 ++--- .../ContainsWithNullInstanceElements.md | 121 +-- .../docs/components/schemas/DateFormat.md | 100 +-- .../docs/components/schemas/DateTimeFormat.md | 100 +-- ...chemasDependenciesWithEscapedCharacters.md | 296 ++++---- ...sDependentSubschemaIncompatibleWithRoot.md | 411 ++++++----- .../DependentSchemasSingleDependency.md | 240 +++--- .../docs/components/schemas/DurationFormat.md | 100 +-- .../docs/components/schemas/EmailFormat.md | 100 +-- .../components/schemas/EmptyDependents.md | 100 +-- .../schemas/EnumWith0DoesNotMatchFalse.md | 25 +- .../schemas/EnumWith1DoesNotMatchTrue.md | 25 +- .../schemas/EnumWithEscapedCharacters.md | 25 +- .../schemas/EnumWithFalseDoesNotMatch0.md | 25 +- .../schemas/EnumWithTrueDoesNotMatch1.md | 25 +- .../components/schemas/EnumsInProperties.md | 71 +- .../schemas/ExclusivemaximumValidation.md | 100 +-- .../schemas/ExclusiveminimumValidation.md | 100 +-- .../components/schemas/FloatDivisionInf.md | 25 +- .../components/schemas/ForbiddenProperty.md | 294 ++++---- .../docs/components/schemas/HostnameFormat.md | 100 +-- .../docs/components/schemas/IdnEmailFormat.md | 100 +-- .../components/schemas/IdnHostnameFormat.md | 100 +-- .../schemas/IfAndElseWithoutThen.md | 296 ++++---- .../schemas/IfAndThenWithoutElse.md | 296 ++++---- ...WhenSerializedKeywordProcessingSequence.md | 394 +++++----- .../components/schemas/IgnoreElseWithoutIf.md | 198 ++--- .../schemas/IgnoreIfWithoutThenOrElse.md | 198 ++--- .../components/schemas/IgnoreThenWithoutIf.md | 198 ++--- .../schemas/IntegerTypeMatchesIntegers.md | 23 +- .../docs/components/schemas/Ipv4Format.md | 100 +-- .../docs/components/schemas/Ipv6Format.md | 100 +-- .../java/docs/components/schemas/IriFormat.md | 100 +-- .../components/schemas/IriReferenceFormat.md | 100 +-- .../docs/components/schemas/ItemsContains.md | 221 +++--- .../ItemsDoesNotLookInApplicatorsValidCase.md | 123 ++-- .../schemas/ItemsWithNullInstanceElements.md | 46 +- .../components/schemas/JsonPointerFormat.md | 100 +-- .../MaxcontainsWithoutContainsIsIgnored.md | 100 +-- .../components/schemas/MaximumValidation.md | 100 +-- .../MaximumValidationWithUnsignedInteger.md | 100 +-- .../components/schemas/MaxitemsValidation.md | 100 +-- .../components/schemas/MaxlengthValidation.md | 100 +-- .../Maxproperties0MeansTheObjectIsEmpty.md | 100 +-- .../schemas/MaxpropertiesValidation.md | 100 +-- .../MincontainsWithoutContainsIsIgnored.md | 100 +-- .../components/schemas/MinimumValidation.md | 100 +-- .../MinimumValidationWithSignedInteger.md | 100 +-- .../components/schemas/MinitemsValidation.md | 100 +-- .../components/schemas/MinlengthValidation.md | 100 +-- .../schemas/MinpropertiesValidation.md | 100 +-- .../schemas/MultipleDependentsRequired.md | 100 +-- ...multaneousPatternpropertiesAreValidated.md | 219 +++--- .../MultipleTypesCanBeSpecifiedInAnArray.md | 40 +- .../NestedAllofToCheckValidationSemantics.md | 219 +++--- .../NestedAnyofToCheckValidationSemantics.md | 219 +++--- .../docs/components/schemas/NestedItems.md | 115 +-- .../NestedOneofToCheckValidationSemantics.md | 219 +++--- ...NonAsciiPatternWithAdditionalproperties.md | 217 +++--- .../NonInterferenceAcrossCombinedSchemas.md | 688 ++++++++++-------- .../java/docs/components/schemas/Not.md | 121 +-- .../schemas/NotMoreComplexSchema.md | 144 ++-- .../components/schemas/NotMultipleTypes.md | 138 ++-- .../schemas/NulCharactersInStrings.md | 25 +- .../NullTypeMatchesOnlyTheNullObject.md | 23 +- .../schemas/NumberTypeMatchesNumbers.md | 23 +- .../schemas/ObjectPropertiesValidation.md | 142 ++-- .../schemas/ObjectTypeMatchesObjects.md | 23 +- .../java/docs/components/schemas/Oneof.md | 219 +++--- .../components/schemas/OneofComplexTypes.md | 338 +++++---- .../components/schemas/OneofWithBaseSchema.md | 221 +++--- .../schemas/OneofWithEmptySchema.md | 217 +++--- .../components/schemas/OneofWithRequired.md | 221 +++--- .../schemas/PatternIsNotAnchored.md | 100 +-- .../components/schemas/PatternValidation.md | 100 +-- ...ertiesValidatesPropertiesMatchingARegex.md | 121 +-- ...pertiesWithNullValuedInstanceProperties.md | 121 +-- ...lidationAdjustsTheStartingIndexForItems.md | 67 +- .../PrefixitemsWithNullInstanceElements.md | 121 +-- ...opertiesAdditionalpropertiesInteraction.md | 188 ++--- ...seNamesAreJavascriptObjectPropertyNames.md | 261 ++++--- .../PropertiesWithEscapedCharacters.md | 226 +++--- ...pertiesWithNullValuedInstanceProperties.md | 121 +-- .../PropertyNamedRefThatIsNotAReference.md | 121 +-- .../schemas/PropertynamesValidation.md | 123 ++-- .../docs/components/schemas/RegexFormat.md | 100 +-- ...NotAnchoredByDefaultAndAreCaseSensitive.md | 142 ++-- .../schemas/RelativeJsonPointerFormat.md | 100 +-- .../schemas/RequiredDefaultValidation.md | 196 ++--- ...seNamesAreJavascriptObjectPropertyNames.md | 100 +-- .../components/schemas/RequiredValidation.md | 292 ++++---- .../schemas/RequiredWithEmptyArray.md | 196 ++--- .../schemas/RequiredWithEscapedCharacters.md | 100 +-- .../schemas/SimpleEnumValidation.md | 25 +- .../components/schemas/SingleDependency.md | 100 +-- .../schemas/SmallMultipleOfLargeInteger.md | 25 +- .../schemas/StringTypeMatchesStrings.md | 23 +- .../docs/components/schemas/TimeFormat.md | 100 +-- .../schemas/TypeArrayObjectOrNull.md | 55 +- .../components/schemas/TypeArrayOrObject.md | 40 +- .../schemas/TypeAsArrayWithOneItem.md | 23 +- .../schemas/UnevaluateditemsAsSchema.md | 121 +-- ...teditemsDependsOnMultipleNestedContains.md | 590 ++++++++------- .../schemas/UnevaluateditemsWithItems.md | 67 +- ...nevaluateditemsWithNullInstanceElements.md | 121 +-- ...tedpropertiesNotAffectedByPropertynames.md | 144 ++-- .../schemas/UnevaluatedpropertiesSchema.md | 48 +- ...pertiesWithAdjacentAdditionalproperties.md | 238 +++--- ...pertiesWithNullValuedInstanceProperties.md | 121 +-- .../schemas/UniqueitemsFalseValidation.md | 100 +-- .../UniqueitemsFalseWithAnArrayOfItems.md | 142 ++-- .../schemas/UniqueitemsValidation.md | 100 +-- .../schemas/UniqueitemsWithAnArrayOfItems.md | 142 ++-- .../java/docs/components/schemas/UriFormat.md | 100 +-- .../components/schemas/UriReferenceFormat.md | 100 +-- .../components/schemas/UriTemplateFormat.md | 100 +-- .../docs/components/schemas/UuidFormat.md | 100 +-- .../ValidateAgainstCorrectBranchThenVsElse.md | 394 +++++----- .../schemas/ASchemaGivenForPrefixitems.java | 81 +-- .../AdditionalItemsAreAllowedByDefault.java | 81 +-- ...ditionalpropertiesAreAllowedByDefault.java | 81 +-- .../AdditionalpropertiesCanExistByItself.java | 25 +- ...nalpropertiesDoesNotLookInApplicators.java | 162 ++--- ...rtiesWithNullValuedInstanceProperties.java | 25 +- .../AdditionalpropertiesWithSchema.java | 25 +- .../client/components/schemas/Allof.java | 243 +++---- .../schemas/AllofCombinedWithAnyofOneof.java | 324 ++++----- .../components/schemas/AllofSimpleTypes.java | 243 +++---- .../schemas/AllofWithBaseSchema.java | 243 +++---- .../schemas/AllofWithOneEmptySchema.java | 81 +-- .../schemas/AllofWithTheFirstEmptySchema.java | 81 +-- .../schemas/AllofWithTheLastEmptySchema.java | 81 +-- .../schemas/AllofWithTwoEmptySchemas.java | 81 +-- .../client/components/schemas/Anyof.java | 162 ++--- .../components/schemas/AnyofComplexTypes.java | 243 +++---- .../schemas/AnyofWithBaseSchema.java | 183 +++-- .../schemas/AnyofWithOneEmptySchema.java | 81 +-- .../client/components/schemas/ByInt.java | 81 +-- .../client/components/schemas/ByNumber.java | 81 +-- .../components/schemas/BySmallNumber.java | 81 +-- .../schemas/ConstNulCharactersInStrings.java | 81 +-- .../schemas/ContainsKeywordValidation.java | 162 ++--- .../ContainsWithNullInstanceElements.java | 81 +-- .../client/components/schemas/DateFormat.java | 81 +-- .../components/schemas/DateTimeFormat.java | 81 +-- ...emasDependenciesWithEscapedCharacters.java | 243 +++---- ...ependentSubschemaIncompatibleWithRoot.java | 106 ++- .../DependentSchemasSingleDependency.java | 162 ++--- .../components/schemas/DurationFormat.java | 81 +-- .../components/schemas/EmailFormat.java | 81 +-- .../components/schemas/EmptyDependents.java | 81 +-- .../schemas/EnumWith0DoesNotMatchFalse.java | 21 +- .../schemas/EnumWith1DoesNotMatchTrue.java | 21 +- .../schemas/EnumWithEscapedCharacters.java | 21 +- .../schemas/EnumWithFalseDoesNotMatch0.java | 22 +- .../schemas/EnumWithTrueDoesNotMatch1.java | 22 +- .../components/schemas/EnumsInProperties.java | 67 +- .../schemas/ExclusivemaximumValidation.java | 81 +-- .../schemas/ExclusiveminimumValidation.java | 81 +-- .../components/schemas/FloatDivisionInf.java | 21 +- .../components/schemas/ForbiddenProperty.java | 162 ++--- .../components/schemas/HostnameFormat.java | 81 +-- .../components/schemas/IdnEmailFormat.java | 81 +-- .../components/schemas/IdnHostnameFormat.java | 81 +-- .../schemas/IfAndElseWithoutThen.java | 243 +++---- .../schemas/IfAndThenWithoutElse.java | 243 +++---- ...enSerializedKeywordProcessingSequence.java | 324 ++++----- .../schemas/IgnoreElseWithoutIf.java | 162 ++--- .../schemas/IgnoreIfWithoutThenOrElse.java | 162 ++--- .../schemas/IgnoreThenWithoutIf.java | 162 ++--- .../client/components/schemas/Ipv4Format.java | 81 +-- .../client/components/schemas/Ipv6Format.java | 81 +-- .../client/components/schemas/IriFormat.java | 81 +-- .../schemas/IriReferenceFormat.java | 81 +-- .../components/schemas/ItemsContains.java | 187 +++-- ...temsDoesNotLookInApplicatorsValidCase.java | 106 ++- .../ItemsWithNullInstanceElements.java | 25 +- .../components/schemas/JsonPointerFormat.java | 81 +-- .../MaxcontainsWithoutContainsIsIgnored.java | 81 +-- .../components/schemas/MaximumValidation.java | 81 +-- .../MaximumValidationWithUnsignedInteger.java | 81 +-- .../schemas/MaxitemsValidation.java | 81 +-- .../schemas/MaxlengthValidation.java | 81 +-- .../Maxproperties0MeansTheObjectIsEmpty.java | 81 +-- .../schemas/MaxpropertiesValidation.java | 81 +-- .../MincontainsWithoutContainsIsIgnored.java | 81 +-- .../components/schemas/MinimumValidation.java | 81 +-- .../MinimumValidationWithSignedInteger.java | 81 +-- .../schemas/MinitemsValidation.java | 81 +-- .../schemas/MinlengthValidation.java | 81 +-- .../schemas/MinpropertiesValidation.java | 81 +-- .../schemas/MultipleDependentsRequired.java | 81 +-- ...ltaneousPatternpropertiesAreValidated.java | 162 ++--- .../MultipleTypesCanBeSpecifiedInAnArray.java | 31 +- ...NestedAllofToCheckValidationSemantics.java | 162 ++--- ...NestedAnyofToCheckValidationSemantics.java | 162 ++--- .../components/schemas/NestedItems.java | 100 +-- ...NestedOneofToCheckValidationSemantics.java | 162 ++--- ...nAsciiPatternWithAdditionalproperties.java | 25 +- .../NonInterferenceAcrossCombinedSchemas.java | 567 +++++++-------- .../client/components/schemas/Not.java | 81 +-- .../schemas/NotMoreComplexSchema.java | 106 ++- .../components/schemas/NotMultipleTypes.java | 113 ++- .../schemas/NulCharactersInStrings.java | 21 +- .../schemas/ObjectPropertiesValidation.java | 81 +-- .../client/components/schemas/Oneof.java | 162 ++--- .../components/schemas/OneofComplexTypes.java | 243 +++---- .../schemas/OneofWithBaseSchema.java | 183 +++-- .../schemas/OneofWithEmptySchema.java | 81 +-- .../components/schemas/OneofWithRequired.java | 187 +++-- .../schemas/PatternIsNotAnchored.java | 81 +-- .../components/schemas/PatternValidation.java | 81 +-- ...tiesValidatesPropertiesMatchingARegex.java | 81 +-- ...rtiesWithNullValuedInstanceProperties.java | 81 +-- ...dationAdjustsTheStartingIndexForItems.java | 25 +- .../PrefixitemsWithNullInstanceElements.java | 81 +-- ...ertiesAdditionalpropertiesInteraction.java | 131 ++-- ...NamesAreJavascriptObjectPropertyNames.java | 162 ++--- .../PropertiesWithEscapedCharacters.java | 81 +-- ...rtiesWithNullValuedInstanceProperties.java | 81 +-- .../PropertyNamedRefThatIsNotAReference.java | 81 +-- .../schemas/PropertynamesValidation.java | 102 ++- .../components/schemas/RegexFormat.java | 81 +-- ...tAnchoredByDefaultAndAreCaseSensitive.java | 81 +-- .../schemas/RelativeJsonPointerFormat.java | 81 +-- .../schemas/RequiredDefaultValidation.java | 81 +-- ...NamesAreJavascriptObjectPropertyNames.java | 81 +-- .../schemas/RequiredValidation.java | 81 +-- .../schemas/RequiredWithEmptyArray.java | 81 +-- .../RequiredWithEscapedCharacters.java | 81 +-- .../schemas/SimpleEnumValidation.java | 21 +- .../components/schemas/SingleDependency.java | 81 +-- .../schemas/SmallMultipleOfLargeInteger.java | 21 +- .../client/components/schemas/TimeFormat.java | 81 +-- .../schemas/TypeArrayObjectOrNull.java | 50 +- .../components/schemas/TypeArrayOrObject.java | 39 +- .../schemas/UnevaluateditemsAsSchema.java | 81 +-- ...ditemsDependsOnMultipleNestedContains.java | 486 ++++++------- .../schemas/UnevaluateditemsWithItems.java | 25 +- ...valuateditemsWithNullInstanceElements.java | 81 +-- ...dpropertiesNotAffectedByPropertynames.java | 102 ++- .../schemas/UnevaluatedpropertiesSchema.java | 46 +- ...rtiesWithAdjacentAdditionalproperties.java | 25 +- ...rtiesWithNullValuedInstanceProperties.java | 81 +-- .../schemas/UniqueitemsFalseValidation.java | 81 +-- .../UniqueitemsFalseWithAnArrayOfItems.java | 81 +-- .../schemas/UniqueitemsValidation.java | 81 +-- .../UniqueitemsWithAnArrayOfItems.java | 81 +-- .../client/components/schemas/UriFormat.java | 81 +-- .../schemas/UriReferenceFormat.java | 81 +-- .../components/schemas/UriTemplateFormat.java | 81 +-- .../client/components/schemas/UuidFormat.java | 81 +-- ...alidateAgainstCorrectBranchThenVsElse.java | 324 ++++----- .../client/mediatype/MediaType.java | 19 +- .../requestbody/RequestBodySerializer.java | 18 +- .../client/response/ApiResponse.java | 9 + .../client/response/ResponseDeserializer.java | 83 +++ .../client/schemas/AnyTypeJsonSchema.java | 87 +-- .../client/schemas/BooleanJsonSchema.java | 23 +- .../client/schemas/DateJsonSchema.java | 22 +- .../client/schemas/DateTimeJsonSchema.java | 22 +- .../client/schemas/DecimalJsonSchema.java | 22 +- .../client/schemas/DoubleJsonSchema.java | 22 +- .../client/schemas/FloatJsonSchema.java | 22 +- .../client/schemas/Int32JsonSchema.java | 22 +- .../client/schemas/Int64JsonSchema.java | 22 +- .../client/schemas/IntJsonSchema.java | 22 +- .../client/schemas/ListJsonSchema.java | 26 +- .../client/schemas/MapJsonSchema.java | 26 +- .../client/schemas/NotAnyTypeJsonSchema.java | 87 +-- .../client/schemas/NullJsonSchema.java | 23 +- .../client/schemas/NumberJsonSchema.java | 22 +- .../client/schemas/StringJsonSchema.java | 22 +- .../client/schemas/UuidJsonSchema.java | 22 +- .../AdditionalPropertiesValidator.java | 2 +- .../schemas/validation/AllOfValidator.java | 4 +- .../schemas/validation/AnyOfValidator.java | 6 +- .../validation/DependentSchemasValidator.java | 6 +- .../schemas/validation/ElseValidator.java | 2 +- .../schemas/validation/ItemsValidator.java | 2 +- .../client/schemas/validation/JsonSchema.java | 57 +- .../schemas/validation/JsonSchemaFactory.java | 6 +- .../schemas/validation/JsonSchemaInfo.java | 68 +- .../schemas/validation/NotValidator.java | 2 +- .../schemas/validation/OneOfValidator.java | 6 +- .../schemas/validation/PathToSchemasMap.java | 6 +- .../validation/PrefixItemsValidator.java | 2 +- .../validation/PropertiesValidator.java | 6 +- .../schemas/validation/PropertyEntry.java | 6 +- .../validation/PropertyNamesValidator.java | 2 +- .../schemas/validation/ThenValidator.java | 2 +- .../validation/UnevaluatedItemsValidator.java | 2 +- .../UnevaluatedPropertiesValidator.java | 2 +- .../validation/UnsetAnyTypeJsonSchema.java | 87 +-- .../schemas/validation/ValidationData.java | 4 +- .../validation/ValidationMetadata.java | 4 +- .../RequestBodySerializerTest.java | 131 ++-- .../response/ResponseDeserializerTest.java | 244 +++++++ .../client/schemas/ArrayTypeSchemaTest.java | 44 +- .../client/schemas/ObjectTypeSchemaTest.java | 88 ++- .../AdditionalPropertiesValidatorTest.java | 12 +- .../validation/ItemsValidatorTest.java | 12 +- .../schemas/validation/JsonSchemaTest.java | 64 +- .../validation/PropertiesValidatorTest.java | 12 +- .../validation/RequiredValidatorTest.java | 10 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post.md | 14 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../python/docs/paths/operators/post.md | 6 +- .../paths/operators/post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../path_with_no_explicit_security/get.md | 6 +- .../path_with_one_explicit_security/get.md | 6 +- .../paths/path_with_security_from_root/get.md | 6 +- .../path_with_two_explicit_security/get.md | 6 +- .../get/operation.py | 4 +- .../get/responses/response_200/__init__.py | 2 +- .../get/operation.py | 4 +- .../get/responses/response_200/__init__.py | 2 +- .../get/operation.py | 4 +- .../get/responses/response_200/__init__.py | 2 +- .../get/operation.py | 4 +- .../get/responses/response_200/__init__.py | 2 +- .../Int32JsonContentTypeHeaderSchema.md | 4 +- .../numberheader/NumberHeaderSchema.md | 4 +- .../RefContentSchemaHeaderSchema.md | 2 +- .../refschemaheader/RefSchemaHeaderSchema.md | 2 +- .../stringheader/StringHeaderSchema.md | 4 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../parameters/pathusername/Schema.md | 4 +- .../refschemastringwithvalidation/Schema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationxml/ApplicationxmlSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 4 +- .../headers/location/LocationSchema.md | 4 +- .../applicationjson/ApplicationjsonSchema.md | 4 +- .../applicationxml/ApplicationxmlSchema.md | 4 +- .../applicationjson/ApplicationjsonSchema.md | 6 +- .../headers/someheader/SomeHeaderSchema.md | 4 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../components/schemas/AbstractStepMessage.md | 6 +- .../schemas/AdditionalPropertiesClass.md | 32 +- .../schemas/AdditionalPropertiesSchema.md | 16 +- .../AdditionalPropertiesWithArrayOfEnums.md | 6 +- .../java/docs/components/schemas/Address.md | 6 +- .../java/docs/components/schemas/Animal.md | 8 +- .../docs/components/schemas/AnimalFarm.md | 4 +- .../components/schemas/AnyTypeAndFormat.md | 22 +- .../components/schemas/AnyTypeNotString.md | 6 +- .../components/schemas/ApiResponseSchema.md | 10 +- .../java/docs/components/schemas/Apple.md | 8 +- .../java/docs/components/schemas/AppleReq.md | 10 +- .../components/schemas/ArrayHoldingAnyType.md | 6 +- .../schemas/ArrayOfArrayOfNumberOnly.md | 10 +- .../docs/components/schemas/ArrayOfEnums.md | 4 +- .../components/schemas/ArrayOfNumberOnly.md | 8 +- .../java/docs/components/schemas/ArrayTest.md | 18 +- .../schemas/ArrayWithValidationsInItems.md | 6 +- .../java/docs/components/schemas/Banana.md | 6 +- .../java/docs/components/schemas/BananaReq.md | 10 +- .../java/docs/components/schemas/Bar.md | 4 +- .../java/docs/components/schemas/BasquePig.md | 6 +- .../docs/components/schemas/BooleanEnum.md | 4 +- .../docs/components/schemas/BooleanSchema.md | 4 +- .../docs/components/schemas/Capitalization.md | 16 +- .../java/docs/components/schemas/Cat.md | 8 +- .../java/docs/components/schemas/Category.md | 8 +- .../java/docs/components/schemas/ChildCat.md | 8 +- .../docs/components/schemas/ClassModel.md | 6 +- .../java/docs/components/schemas/Client.md | 6 +- .../schemas/ComplexQuadrilateral.md | 8 +- ...omposedAnyOfDifferentTypesNoValidations.md | 38 +- .../docs/components/schemas/ComposedArray.md | 6 +- .../docs/components/schemas/ComposedBool.md | 6 +- .../docs/components/schemas/ComposedNone.md | 6 +- .../docs/components/schemas/ComposedNumber.md | 6 +- .../docs/components/schemas/ComposedObject.md | 6 +- .../schemas/ComposedOneOfDifferentTypes.md | 16 +- .../docs/components/schemas/ComposedString.md | 6 +- .../java/docs/components/schemas/Currency.md | 4 +- .../java/docs/components/schemas/DanishPig.md | 6 +- .../docs/components/schemas/DateTimeTest.md | 4 +- .../schemas/DateTimeWithValidations.md | 4 +- .../components/schemas/DateWithValidations.md | 4 +- .../docs/components/schemas/DecimalPayload.md | 4 +- .../java/docs/components/schemas/Dog.md | 8 +- .../java/docs/components/schemas/Drawing.md | 6 +- .../docs/components/schemas/EnumArrays.md | 10 +- .../java/docs/components/schemas/EnumClass.md | 4 +- .../java/docs/components/schemas/EnumTest.md | 12 +- .../components/schemas/EquilateralTriangle.md | 8 +- .../java/docs/components/schemas/File.md | 6 +- .../components/schemas/FileSchemaTestClass.md | 6 +- .../java/docs/components/schemas/Foo.md | 4 +- .../docs/components/schemas/FormatTest.md | 48 +- .../docs/components/schemas/FromSchema.md | 8 +- .../java/docs/components/schemas/Fruit.md | 6 +- .../java/docs/components/schemas/FruitReq.md | 6 +- .../java/docs/components/schemas/GmFruit.md | 6 +- .../components/schemas/GrandparentAnimal.md | 6 +- .../components/schemas/HasOnlyReadOnly.md | 8 +- .../components/schemas/HealthCheckResult.md | 6 +- .../docs/components/schemas/IntegerEnum.md | 4 +- .../docs/components/schemas/IntegerEnumBig.md | 4 +- .../components/schemas/IntegerEnumOneValue.md | 4 +- .../schemas/IntegerEnumWithDefaultValue.md | 4 +- .../docs/components/schemas/IntegerMax10.md | 4 +- .../docs/components/schemas/IntegerMin15.md | 4 +- .../components/schemas/IsoscelesTriangle.md | 8 +- .../java/docs/components/schemas/Items.md | 6 +- .../components/schemas/JSONPatchRequest.md | 6 +- .../schemas/JSONPatchRequestAddReplaceTest.md | 12 +- .../schemas/JSONPatchRequestMoveCopy.md | 12 +- .../schemas/JSONPatchRequestRemove.md | 10 +- .../java/docs/components/schemas/Mammal.md | 4 +- .../java/docs/components/schemas/MapTest.md | 18 +- ...dPropertiesAndAdditionalPropertiesClass.md | 10 +- .../java/docs/components/schemas/Money.md | 8 +- .../docs/components/schemas/MyObjectDto.md | 8 +- .../java/docs/components/schemas/Name.md | 10 +- .../schemas/NoAdditionalProperties.md | 10 +- .../docs/components/schemas/NullableClass.md | 42 +- .../docs/components/schemas/NullableShape.md | 6 +- .../docs/components/schemas/NullableString.md | 4 +- .../docs/components/schemas/NumberOnly.md | 6 +- .../docs/components/schemas/NumberSchema.md | 4 +- .../schemas/NumberWithExclusiveMinMax.md | 4 +- .../schemas/NumberWithValidations.md | 4 +- .../schemas/ObjWithRequiredProps.md | 6 +- .../schemas/ObjWithRequiredPropsBase.md | 6 +- .../components/schemas/ObjectInterface.md | 4 +- .../ObjectModelWithArgAndArgsProperties.md | 8 +- .../schemas/ObjectModelWithRefProps.md | 4 +- ...ithAllOfWithReqTestPropFromUnsetAddProp.md | 8 +- .../schemas/ObjectWithCollidingProperties.md | 8 +- .../schemas/ObjectWithDecimalProperties.md | 6 +- .../ObjectWithDifficultlyNamedProps.md | 10 +- .../ObjectWithInlineCompositionProperty.md | 8 +- .../ObjectWithInvalidNamedRefedProperties.md | 4 +- .../ObjectWithNonIntersectingValues.md | 8 +- .../schemas/ObjectWithOnlyOptionalProps.md | 10 +- .../schemas/ObjectWithOptionalTestProp.md | 6 +- .../schemas/ObjectWithValidations.md | 4 +- .../java/docs/components/schemas/Order.md | 16 +- .../schemas/PaginatedResultMyObjectDto.md | 10 +- .../java/docs/components/schemas/ParentPet.md | 4 +- .../java/docs/components/schemas/Pet.md | 16 +- .../java/docs/components/schemas/Pig.md | 4 +- .../java/docs/components/schemas/Player.md | 6 +- .../java/docs/components/schemas/PublicKey.md | 6 +- .../docs/components/schemas/Quadrilateral.md | 4 +- .../schemas/QuadrilateralInterface.md | 8 +- .../docs/components/schemas/ReadOnlyFirst.md | 8 +- .../java/docs/components/schemas/RefPet.md | 2 +- .../schemas/ReqPropsFromExplicitAddProps.md | 6 +- .../schemas/ReqPropsFromTrueAddProps.md | 6 +- .../schemas/ReqPropsFromUnsetAddProps.md | 4 +- .../docs/components/schemas/ReturnSchema.md | 6 +- .../components/schemas/ScaleneTriangle.md | 8 +- .../components/schemas/Schema200Response.md | 8 +- .../schemas/SelfReferencingArrayModel.md | 4 +- .../schemas/SelfReferencingObjectModel.md | 4 +- .../java/docs/components/schemas/Shape.md | 4 +- .../docs/components/schemas/ShapeOrNull.md | 6 +- .../components/schemas/SimpleQuadrilateral.md | 8 +- .../docs/components/schemas/SomeObject.md | 4 +- .../components/schemas/SpecialModelname.md | 6 +- .../components/schemas/StringBooleanMap.md | 6 +- .../docs/components/schemas/StringEnum.md | 4 +- .../schemas/StringEnumWithDefaultValue.md | 4 +- .../docs/components/schemas/StringSchema.md | 4 +- .../schemas/StringWithValidation.md | 4 +- .../java/docs/components/schemas/Tag.md | 8 +- .../java/docs/components/schemas/Triangle.md | 4 +- .../components/schemas/TriangleInterface.md | 8 +- .../docs/components/schemas/UUIDString.md | 4 +- .../java/docs/components/schemas/User.md | 32 +- .../java/docs/components/schemas/Whale.md | 10 +- .../java/docs/components/schemas/Zebra.md | 10 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../delete/parameters/parameter0/Schema0.md | 4 +- .../delete/parameters/parameter1/Schema1.md | 4 +- .../get/parameters/parameter0/Schema0.md | 4 +- .../parameters/parameter0/PathParamSchema0.md | 4 +- .../post/parameters/parameter0/Schema0.md | 4 +- .../delete/parameters/parameter0/Schema0.md | 4 +- .../delete/parameters/parameter1/Schema1.md | 4 +- .../delete/parameters/parameter2/Schema2.md | 4 +- .../delete/parameters/parameter3/Schema3.md | 4 +- .../delete/parameters/parameter4/Schema4.md | 4 +- .../delete/parameters/parameter5/Schema5.md | 4 +- .../fake/get/parameters/parameter0/Schema0.md | 6 +- .../fake/get/parameters/parameter1/Schema1.md | 4 +- .../fake/get/parameters/parameter2/Schema2.md | 6 +- .../fake/get/parameters/parameter3/Schema3.md | 4 +- .../fake/get/parameters/parameter4/Schema4.md | 4 +- .../fake/get/parameters/parameter5/Schema5.md | 4 +- .../ApplicationxwwwformurlencodedSchema.md | 10 +- .../applicationjson/ApplicationjsonSchema.md | 4 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../ApplicationxwwwformurlencodedSchema.md | 32 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../put/parameters/parameter0/Schema0.md | 4 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../put/parameters/parameter0/Schema0.md | 4 +- .../put/parameters/parameter1/Schema1.md | 4 +- .../put/parameters/parameter2/Schema2.md | 4 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../delete/parameters/parameter0/Schema0.md | 4 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 6 +- .../post/parameters/parameter0/Schema0.md | 6 +- .../post/parameters/parameter1/Schema1.md | 8 +- .../applicationjson/ApplicationjsonSchema.md | 6 +- .../MultipartformdataSchema.md | 8 +- .../applicationjson/ApplicationjsonSchema.md | 6 +- .../MultipartformdataSchema.md | 8 +- .../ApplicationxwwwformurlencodedSchema.md | 8 +- .../ApplicationjsonpatchjsonSchema.md | 2 +- .../Applicationjsoncharsetutf8Schema.md | 4 +- .../Applicationjsoncharsetutf8Schema.md | 4 +- .../applicationjson/ApplicationjsonSchema.md | 6 +- .../MultipartformdataSchema.md | 6 +- .../applicationjson/ApplicationjsonSchema.md | 4 +- .../applicationjson/ApplicationjsonSchema.md | 4 +- .../applicationjson/ApplicationjsonSchema.md | 4 +- .../applicationjson/ApplicationjsonSchema.md | 4 +- .../get/parameters/parameter0/Schema0.md | 6 +- .../post/parameters/parameter0/Schema0.md | 4 +- .../post/parameters/parameter1/Schema1.md | 4 +- .../post/parameters/parameter10/Schema10.md | 4 +- .../post/parameters/parameter11/Schema11.md | 4 +- .../post/parameters/parameter12/Schema12.md | 4 +- .../post/parameters/parameter13/Schema13.md | 4 +- .../post/parameters/parameter14/Schema14.md | 4 +- .../post/parameters/parameter15/Schema15.md | 4 +- .../post/parameters/parameter16/Schema16.md | 4 +- .../post/parameters/parameter17/Schema17.md | 4 +- .../post/parameters/parameter18/Schema18.md | 4 +- .../post/parameters/parameter2/Schema2.md | 4 +- .../post/parameters/parameter3/Schema3.md | 4 +- .../post/parameters/parameter4/Schema4.md | 4 +- .../post/parameters/parameter5/Schema5.md | 4 +- .../post/parameters/parameter6/Schema6.md | 4 +- .../post/parameters/parameter7/Schema7.md | 4 +- .../post/parameters/parameter8/Schema8.md | 4 +- .../post/parameters/parameter9/Schema9.md | 4 +- .../applicationjson/ApplicationjsonSchema.md | 4 +- .../applicationjson/ApplicationjsonSchema.md | 4 +- .../ApplicationxpemfileSchema.md | 4 +- .../ApplicationxpemfileSchema.md | 4 +- .../post/parameters/parameter0/Schema0.md | 4 +- .../MultipartformdataSchema.md | 8 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../content/applicationjson/Schema0.md | 4 +- .../applicationjson/ApplicationjsonSchema.md | 4 +- .../get/parameters/parameter0/Schema0.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../put/parameters/parameter0/Schema0.md | 6 +- .../put/parameters/parameter1/Schema1.md | 6 +- .../put/parameters/parameter2/Schema2.md | 6 +- .../put/parameters/parameter3/Schema3.md | 6 +- .../put/parameters/parameter4/Schema4.md | 6 +- .../put/parameters/parameter5/Schema5.md | 2 +- .../ApplicationoctetstreamSchema.md | 4 +- .../ApplicationoctetstreamSchema.md | 4 +- .../MultipartformdataSchema.md | 8 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../MultipartformdataSchema.md | 8 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 4 +- .../applicationjson/ApplicationjsonSchema.md | 4 +- .../applicationjson/ApplicationjsonSchema.md | 4 +- .../applicationjson/ApplicationjsonSchema.md | 4 +- .../applicationjson/ApplicationjsonSchema.md | 4 +- .../applicationjson/ApplicationjsonSchema.md | 4 +- .../applicationjson/ApplicationjsonSchema.md | 4 +- .../get/parameters/parameter0/Schema0.md | 6 +- .../get/parameters/parameter0/Schema0.md | 6 +- .../delete/parameters/parameter0/Schema0.md | 4 +- .../delete/parameters/parameter1/Schema1.md | 4 +- .../get/parameters/parameter0/Schema0.md | 4 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationxml/ApplicationxmlSchema.md | 2 +- .../post/parameters/parameter0/Schema0.md | 4 +- .../ApplicationxwwwformurlencodedSchema.md | 8 +- .../post/parameters/parameter0/Schema0.md | 4 +- .../MultipartformdataSchema.md | 8 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationxml/ApplicationxmlSchema.md | 2 +- .../delete/parameters/parameter0/Schema0.md | 4 +- .../get/parameters/parameter0/Schema0.md | 4 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationxml/ApplicationxmlSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../get/parameters/parameter0/Schema0.md | 4 +- .../get/parameters/parameter1/Schema1.md | 4 +- .../applicationjson/ApplicationjsonSchema.md | 4 +- .../applicationxml/ApplicationxmlSchema.md | 4 +- .../xexpiresafter/XExpiresAfterSchema.md | 4 +- .../applicationjson/XRateLimitSchema.md | 4 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../applicationxml/ApplicationxmlSchema.md | 2 +- .../applicationjson/ApplicationjsonSchema.md | 2 +- .../petstore/java/docs/servers/Server0.md | 10 +- .../petstore/java/docs/servers/Server1.md | 8 +- .../responses/HeadersWithNoBody.java | 4 +- .../responses/SuccessDescriptionOnly.java | 4 +- .../SuccessInlineContentAndHeader.java | 4 +- .../responses/SuccessWithJsonApiResponse.java | 4 +- .../SuccessfulXmlAndJsonArrayOfPet.java | 4 +- .../patch/responses/Code200Response.java | 4 +- .../fake/get/responses/Code404Response.java | 4 +- .../fake/patch/responses/Code200Response.java | 4 +- .../fake/post/responses/Code404Response.java | 4 +- .../get/responses/Code200Response.java | 4 +- .../patch/responses/Code200Response.java | 4 +- .../delete/responses/CodedefaultResponse.java | 4 +- .../get/responses/Code200Response.java | 4 +- .../post/responses/Code200Response.java | 4 +- .../post/responses/Code200Response.java | 4 +- .../post/responses/Code200Response.java | 4 +- .../get/responses/Code200Response.java | 4 +- .../get/responses/Code202Response.java | 4 +- .../get/responses/Code200Response.java | 4 +- .../post/responses/Code200Response.java | 4 +- .../get/responses/Code200Response.java | 4 +- .../post/responses/Code200Response.java | 4 +- .../get/responses/Code200Response.java | 4 +- .../get/responses/Code303Response.java | 4 +- .../get/responses/Code3XXResponse.java | 4 +- .../post/responses/Code200Response.java | 4 +- .../post/responses/Code200Response.java | 4 +- .../post/responses/Code200Response.java | 4 +- .../post/responses/Code200Response.java | 4 +- .../post/responses/Code200Response.java | 4 +- .../post/responses/Code200Response.java | 4 +- .../post/responses/Code200Response.java | 4 +- .../post/responses/Code200Response.java | 4 +- .../post/responses/Code200Response.java | 4 +- .../get/responses/Code200Response.java | 4 +- .../post/responses/Code200Response.java | 4 +- .../post/responses/Code200Response.java | 4 +- .../post/responses/Code200Response.java | 4 +- .../get/responses/Code1XXResponse.java | 4 +- .../get/responses/Code200Response.java | 4 +- .../get/responses/Code2XXResponse.java | 4 +- .../get/responses/Code3XXResponse.java | 4 +- .../get/responses/Code4XXResponse.java | 4 +- .../get/responses/Code5XXResponse.java | 4 +- .../get/responses/CodedefaultResponse.java | 4 +- .../pet/post/responses/Code405Response.java | 4 +- .../pet/put/responses/Code400Response.java | 4 +- .../pet/put/responses/Code404Response.java | 4 +- .../pet/put/responses/Code405Response.java | 4 +- .../get/responses/Code400Response.java | 4 +- .../get/responses/Code400Response.java | 4 +- .../delete/responses/Code400Response.java | 4 +- .../get/responses/Code200Response.java | 4 +- .../get/responses/Code400Response.java | 4 +- .../get/responses/Code404Response.java | 4 +- .../post/responses/Code405Response.java | 4 +- .../post/responses/Code200Response.java | 4 +- .../post/responses/Code400Response.java | 4 +- .../delete/responses/Code400Response.java | 4 +- .../delete/responses/Code404Response.java | 4 +- .../get/responses/Code200Response.java | 4 +- .../get/responses/Code400Response.java | 4 +- .../get/responses/Code404Response.java | 4 +- .../post/responses/CodedefaultResponse.java | 4 +- .../post/responses/CodedefaultResponse.java | 4 +- .../post/responses/CodedefaultResponse.java | 4 +- .../get/responses/Code200Response.java | 4 +- .../get/responses/Code400Response.java | 4 +- .../delete/responses/Code404Response.java | 4 +- .../get/responses/Code200Response.java | 4 +- .../get/responses/Code400Response.java | 4 +- .../get/responses/Code404Response.java | 4 +- .../put/responses/Code400Response.java | 4 +- .../put/responses/Code404Response.java | 4 +- .../client/response/ResponseDeserializer.java | 4 +- .../response/ResponseDeserializerTest.java | 4 +- .../docs/paths/another_fake_dummy/patch.md | 14 +- .../petstore/python/docs/paths/fake/get.md | 14 +- .../petstore/python/docs/paths/fake/patch.md | 14 +- .../petstore/python/docs/paths/fake/post.md | 6 +- .../get.md | 14 +- .../docs/paths/fake_classname_test/patch.md | 14 +- .../python/docs/paths/fake_health/get.md | 14 +- .../paths/fake_inline_composition/post.md | 36 +- .../docs/paths/fake_json_with_charset/post.md | 14 +- .../post.md | 14 +- .../fake_multiple_response_bodies/get.md | 28 +- .../paths/fake_multiple_securities/get.md | 14 +- .../post.md | 14 +- .../docs/paths/fake_pem_content_type/get.md | 14 +- .../post.md | 14 +- .../get.md | 14 +- .../python/docs/paths/fake_redirection/get.md | 12 +- .../paths/fake_refs_array_of_enums/post.md | 14 +- .../docs/paths/fake_refs_arraymodel/post.md | 14 +- .../docs/paths/fake_refs_boolean/post.md | 14 +- .../post.md | 14 +- .../python/docs/paths/fake_refs_enum/post.md | 14 +- .../docs/paths/fake_refs_mammal/post.md | 14 +- .../docs/paths/fake_refs_number/post.md | 14 +- .../post.md | 14 +- .../docs/paths/fake_refs_string/post.md | 14 +- .../paths/fake_response_without_schema/get.md | 10 +- .../paths/fake_upload_download_file/post.md | 14 +- .../docs/paths/fake_upload_file/post.md | 14 +- .../docs/paths/fake_upload_files/post.md | 14 +- .../paths/fake_wild_card_responses/get.md | 84 +-- .../petstore/python/docs/paths/pet/post.md | 6 +- .../petstore/python/docs/paths/pet/put.md | 18 +- .../docs/paths/pet_find_by_status/get.md | 6 +- .../python/docs/paths/pet_find_by_tags/get.md | 6 +- .../python/docs/paths/pet_pet_id/delete.md | 6 +- .../python/docs/paths/pet_pet_id/get.md | 30 +- .../python/docs/paths/pet_pet_id/post.md | 6 +- .../python/docs/paths/store_order/post.md | 24 +- .../docs/paths/store_order_order_id/delete.md | 12 +- .../docs/paths/store_order_order_id/get.md | 30 +- .../python/docs/paths/user_login/get.md | 44 +- .../python/docs/paths/user_username/delete.md | 6 +- .../python/docs/paths/user_username/get.md | 30 +- .../python/docs/paths/user_username/put.md | 12 +- .../another_fake_dummy/patch/operation.py | 4 +- .../patch/responses/response_200/__init__.py | 2 +- .../common_param_sub_dir/delete/operation.py | 4 +- .../delete/responses/response_200/__init__.py | 2 +- .../common_param_sub_dir/get/operation.py | 4 +- .../get/responses/response_200/__init__.py | 2 +- .../common_param_sub_dir/post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../paths/fake/delete/operation.py | 4 +- .../delete/responses/response_200/__init__.py | 2 +- .../petstore_api/paths/fake/get/operation.py | 8 +- .../get/responses/response_200/__init__.py | 2 +- .../get/responses/response_404/__init__.py | 2 +- .../paths/fake/patch/operation.py | 4 +- .../patch/responses/response_200/__init__.py | 2 +- .../petstore_api/paths/fake/post/operation.py | 8 +- .../post/responses/response_200/__init__.py | 2 +- .../post/responses/response_404/__init__.py | 2 +- .../get/operation.py | 4 +- .../get/responses/response_200/__init__.py | 2 +- .../put/operation.py | 4 +- .../put/responses/response_200/__init__.py | 2 +- .../put/operation.py | 4 +- .../put/responses/response_200/__init__.py | 2 +- .../put/operation.py | 4 +- .../put/responses/response_200/__init__.py | 2 +- .../fake_classname_test/patch/operation.py | 4 +- .../patch/responses/response_200/__init__.py | 2 +- .../fake_delete_coffee_id/delete/operation.py | 4 +- .../delete/responses/response_200/__init__.py | 2 +- .../paths/fake_health/get/operation.py | 4 +- .../get/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../fake_inline_composition/post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../fake_json_form_data/get/operation.py | 4 +- .../get/responses/response_200/__init__.py | 2 +- .../paths/fake_json_patch/patch/operation.py | 4 +- .../patch/responses/response_200/__init__.py | 2 +- .../fake_json_with_charset/post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../get/operation.py | 8 +- .../get/responses/response_200/__init__.py | 2 +- .../get/responses/response_202/__init__.py | 2 +- .../fake_multiple_securities/get/operation.py | 4 +- .../get/responses/response_200/__init__.py | 2 +- .../paths/fake_obj_in_query/get/operation.py | 4 +- .../get/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../fake_pem_content_type/get/operation.py | 4 +- .../get/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../get/operation.py | 4 +- .../get/responses/response_200/__init__.py | 2 +- .../paths/fake_redirection/get/operation.py | 8 +- .../get/responses/response_303/__init__.py | 2 +- .../get/responses/response_3xx/__init__.py | 2 +- .../fake_ref_obj_in_query/get/operation.py | 4 +- .../get/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../fake_refs_arraymodel/post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../paths/fake_refs_boolean/post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../paths/fake_refs_enum/post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../paths/fake_refs_mammal/post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../paths/fake_refs_number/post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../paths/fake_refs_string/post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../get/operation.py | 4 +- .../get/responses/response_200/__init__.py | 2 +- .../put/operation.py | 4 +- .../put/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../paths/fake_upload_file/post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../paths/fake_upload_files/post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../fake_wild_card_responses/get/operation.py | 24 +- .../get/responses/response_1xx/__init__.py | 2 +- .../get/responses/response_200/__init__.py | 2 +- .../get/responses/response_2xx/__init__.py | 2 +- .../get/responses/response_3xx/__init__.py | 2 +- .../get/responses/response_4xx/__init__.py | 2 +- .../get/responses/response_5xx/__init__.py | 2 +- .../petstore_api/paths/pet/post/operation.py | 8 +- .../post/responses/response_200/__init__.py | 2 +- .../post/responses/response_405/__init__.py | 2 +- .../petstore_api/paths/pet/put/operation.py | 12 +- .../put/responses/response_400/__init__.py | 2 +- .../put/responses/response_404/__init__.py | 2 +- .../put/responses/response_405/__init__.py | 2 +- .../paths/pet_find_by_status/get/operation.py | 8 +- .../get/responses/response_200/__init__.py | 2 +- .../get/responses/response_400/__init__.py | 2 +- .../paths/pet_find_by_tags/get/operation.py | 8 +- .../get/responses/response_200/__init__.py | 2 +- .../get/responses/response_400/__init__.py | 2 +- .../paths/pet_pet_id/delete/operation.py | 4 +- .../delete/responses/response_400/__init__.py | 2 +- .../paths/pet_pet_id/get/operation.py | 12 +- .../get/responses/response_200/__init__.py | 2 +- .../get/responses/response_400/__init__.py | 2 +- .../get/responses/response_404/__init__.py | 2 +- .../paths/pet_pet_id/post/operation.py | 4 +- .../post/responses/response_405/__init__.py | 2 +- .../pet_pet_id_upload_image/post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../paths/solidus/get/operation.py | 4 +- .../get/responses/response_200/__init__.py | 2 +- .../paths/store_inventory/get/operation.py | 4 +- .../get/responses/response_200/__init__.py | 2 +- .../paths/store_order/post/operation.py | 8 +- .../post/responses/response_200/__init__.py | 2 +- .../post/responses/response_400/__init__.py | 2 +- .../store_order_order_id/delete/operation.py | 8 +- .../delete/responses/response_400/__init__.py | 2 +- .../delete/responses/response_404/__init__.py | 2 +- .../store_order_order_id/get/operation.py | 12 +- .../get/responses/response_200/__init__.py | 2 +- .../get/responses/response_400/__init__.py | 2 +- .../get/responses/response_404/__init__.py | 2 +- .../paths/user_login/get/operation.py | 8 +- .../get/responses/response_200/__init__.py | 2 +- .../get/responses/response_400/__init__.py | 2 +- .../paths/user_username/delete/operation.py | 8 +- .../delete/responses/response_200/__init__.py | 2 +- .../delete/responses/response_404/__init__.py | 2 +- .../paths/user_username/get/operation.py | 12 +- .../get/responses/response_200/__init__.py | 2 +- .../get/responses/response_400/__init__.py | 2 +- .../get/responses/response_404/__init__.py | 2 +- .../paths/user_username/put/operation.py | 8 +- .../put/responses/response_400/__init__.py | 2 +- .../put/responses/response_404/__init__.py | 2 +- .../components/responses/Response.hbs | 6 +- .../components/schemas/Schema_doc.hbs | 4 +- .../response/ResponseDeserializer.hbs | 4 +- .../response/ResponseDeserializerTest.hbs | 4 +- 2526 files changed, 35918 insertions(+), 33431 deletions(-) create mode 100644 samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/response/ApiResponse.java create mode 100644 samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java create mode 100644 samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java create mode 100644 samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/response/ApiResponse.java create mode 100644 samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java create mode 100644 samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java 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..5766909bb0d 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,8 @@ 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/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 +294,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](#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/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 propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -350,6 +346,13 @@ public AdditionalpropertiesAllowsASchemaWhichShouldValidateMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AdditionalpropertiesAllowsASchemaWhichShouldValidate1BoxedMap(validate(arg, configuration)); } + @Override + public AdditionalpropertiesAllowsASchemaWhichShouldValidate1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAreAllowedByDefault.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAreAllowedByDefault.java index f572d0ef637..e6517f75b10 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAreAllowedByDefault.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAreAllowedByDefault.java @@ -236,78 +236,54 @@ public AdditionalpropertiesAreAllowedByDefaultMapBuilder getBuilderAfterAddition } - public static abstract sealed class AdditionalpropertiesAreAllowedByDefault1Boxed permits AdditionalpropertiesAreAllowedByDefault1BoxedVoid, AdditionalpropertiesAreAllowedByDefault1BoxedBoolean, AdditionalpropertiesAreAllowedByDefault1BoxedNumber, AdditionalpropertiesAreAllowedByDefault1BoxedString, AdditionalpropertiesAreAllowedByDefault1BoxedList, AdditionalpropertiesAreAllowedByDefault1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AdditionalpropertiesAreAllowedByDefault1Boxed permits AdditionalpropertiesAreAllowedByDefault1BoxedVoid, AdditionalpropertiesAreAllowedByDefault1BoxedBoolean, AdditionalpropertiesAreAllowedByDefault1BoxedNumber, AdditionalpropertiesAreAllowedByDefault1BoxedString, AdditionalpropertiesAreAllowedByDefault1BoxedList, AdditionalpropertiesAreAllowedByDefault1BoxedMap { + @Nullable Object getData(); } - public static final class AdditionalpropertiesAreAllowedByDefault1BoxedVoid extends AdditionalpropertiesAreAllowedByDefault1Boxed { - public final Void data; - private AdditionalpropertiesAreAllowedByDefault1BoxedVoid(Void data) { - this.data = data; - } + public record AdditionalpropertiesAreAllowedByDefault1BoxedVoid(Void data) implements AdditionalpropertiesAreAllowedByDefault1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalpropertiesAreAllowedByDefault1BoxedBoolean extends AdditionalpropertiesAreAllowedByDefault1Boxed { - public final boolean data; - private AdditionalpropertiesAreAllowedByDefault1BoxedBoolean(boolean data) { - this.data = data; - } + public record AdditionalpropertiesAreAllowedByDefault1BoxedBoolean(boolean data) implements AdditionalpropertiesAreAllowedByDefault1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalpropertiesAreAllowedByDefault1BoxedNumber extends AdditionalpropertiesAreAllowedByDefault1Boxed { - public final Number data; - private AdditionalpropertiesAreAllowedByDefault1BoxedNumber(Number data) { - this.data = data; - } + public record AdditionalpropertiesAreAllowedByDefault1BoxedNumber(Number data) implements AdditionalpropertiesAreAllowedByDefault1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalpropertiesAreAllowedByDefault1BoxedString extends AdditionalpropertiesAreAllowedByDefault1Boxed { - public final String data; - private AdditionalpropertiesAreAllowedByDefault1BoxedString(String data) { - this.data = data; - } + public record AdditionalpropertiesAreAllowedByDefault1BoxedString(String data) implements AdditionalpropertiesAreAllowedByDefault1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalpropertiesAreAllowedByDefault1BoxedList extends AdditionalpropertiesAreAllowedByDefault1Boxed { - public final FrozenList<@Nullable Object> data; - private AdditionalpropertiesAreAllowedByDefault1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record AdditionalpropertiesAreAllowedByDefault1BoxedList(FrozenList<@Nullable Object> data) implements AdditionalpropertiesAreAllowedByDefault1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalpropertiesAreAllowedByDefault1BoxedMap extends AdditionalpropertiesAreAllowedByDefault1Boxed { - public final AdditionalpropertiesAreAllowedByDefaultMap data; - private AdditionalpropertiesAreAllowedByDefault1BoxedMap(AdditionalpropertiesAreAllowedByDefaultMap data) { - this.data = data; - } + public record AdditionalpropertiesAreAllowedByDefault1BoxedMap(AdditionalpropertiesAreAllowedByDefaultMap data) implements AdditionalpropertiesAreAllowedByDefault1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class AdditionalpropertiesAreAllowedByDefault1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AdditionalpropertiesAreAllowedByDefault1BoxedList>, MapSchemaValidator { + public static class AdditionalpropertiesAreAllowedByDefault1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AdditionalpropertiesAreAllowedByDefault1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -415,11 +391,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -450,11 +426,11 @@ public AdditionalpropertiesAreAllowedByDefaultMap getNewInstance(Map arg, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -533,5 +509,24 @@ public AdditionalpropertiesAreAllowedByDefault1BoxedList validateAndBox(List public AdditionalpropertiesAreAllowedByDefault1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AdditionalpropertiesAreAllowedByDefault1BoxedMap(validate(arg, configuration)); } + @Override + public AdditionalpropertiesAreAllowedByDefault1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesCanExistByItself.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesCanExistByItself.java index 3b243ef9a6c..649e69307db 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesCanExistByItself.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesCanExistByItself.java @@ -93,23 +93,19 @@ public AdditionalpropertiesCanExistByItselfMapBuilder getBuilderAfterAdditionalP } - public static abstract sealed class AdditionalpropertiesCanExistByItself1Boxed permits AdditionalpropertiesCanExistByItself1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AdditionalpropertiesCanExistByItself1Boxed permits AdditionalpropertiesCanExistByItself1BoxedMap { + @Nullable Object getData(); } - public static final class AdditionalpropertiesCanExistByItself1BoxedMap extends AdditionalpropertiesCanExistByItself1Boxed { - public final AdditionalpropertiesCanExistByItselfMap data; - private AdditionalpropertiesCanExistByItself1BoxedMap(AdditionalpropertiesCanExistByItselfMap data) { - this.data = data; - } + public record AdditionalpropertiesCanExistByItself1BoxedMap(AdditionalpropertiesCanExistByItselfMap data) implements AdditionalpropertiesCanExistByItself1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class AdditionalpropertiesCanExistByItself1 extends JsonSchema implements MapSchemaValidator { + public static class AdditionalpropertiesCanExistByItself1 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 @@ -143,11 +139,11 @@ public AdditionalpropertiesCanExistByItselfMap getNewInstance(Map arg, Lis List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof Boolean)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -187,6 +183,13 @@ public AdditionalpropertiesCanExistByItselfMap validate(Map arg, SchemaCon public AdditionalpropertiesCanExistByItself1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AdditionalpropertiesCanExistByItself1BoxedMap(validate(arg, configuration)); } + @Override + public AdditionalpropertiesCanExistByItself1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesShouldNotLookInApplicators.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesShouldNotLookInApplicators.java index a349cc8a73e..46155636adf 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesShouldNotLookInApplicators.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesShouldNotLookInApplicators.java @@ -170,78 +170,54 @@ public Schema0MapBuilder getBuilderAfterAdditionalProperty(Map data; - private Schema0BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedList(FrozenList<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedMap extends Schema0Boxed { - public final Schema0Map data; - private Schema0BoxedMap(Schema0Map data) { - this.data = data; - } + public record Schema0BoxedMap(Schema0Map data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator { + public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator { private static @Nullable Schema0 instance = null; protected Schema0() { @@ -342,11 +318,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -377,11 +353,11 @@ public Schema0Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -460,6 +436,25 @@ public Schema0BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema0BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema0BoxedMap(validate(arg, configuration)); } + @Override + public Schema0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class AdditionalpropertiesShouldNotLookInApplicatorsMap extends FrozenMap { @@ -516,78 +511,54 @@ public AdditionalpropertiesShouldNotLookInApplicatorsMapBuilder getBuilderAfterA } - public static abstract sealed class AdditionalpropertiesShouldNotLookInApplicators1Boxed permits AdditionalpropertiesShouldNotLookInApplicators1BoxedVoid, AdditionalpropertiesShouldNotLookInApplicators1BoxedBoolean, AdditionalpropertiesShouldNotLookInApplicators1BoxedNumber, AdditionalpropertiesShouldNotLookInApplicators1BoxedString, AdditionalpropertiesShouldNotLookInApplicators1BoxedList, AdditionalpropertiesShouldNotLookInApplicators1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AdditionalpropertiesShouldNotLookInApplicators1Boxed permits AdditionalpropertiesShouldNotLookInApplicators1BoxedVoid, AdditionalpropertiesShouldNotLookInApplicators1BoxedBoolean, AdditionalpropertiesShouldNotLookInApplicators1BoxedNumber, AdditionalpropertiesShouldNotLookInApplicators1BoxedString, AdditionalpropertiesShouldNotLookInApplicators1BoxedList, AdditionalpropertiesShouldNotLookInApplicators1BoxedMap { + @Nullable Object getData(); } - public static final class AdditionalpropertiesShouldNotLookInApplicators1BoxedVoid extends AdditionalpropertiesShouldNotLookInApplicators1Boxed { - public final Void data; - private AdditionalpropertiesShouldNotLookInApplicators1BoxedVoid(Void data) { - this.data = data; - } + public record AdditionalpropertiesShouldNotLookInApplicators1BoxedVoid(Void data) implements AdditionalpropertiesShouldNotLookInApplicators1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalpropertiesShouldNotLookInApplicators1BoxedBoolean extends AdditionalpropertiesShouldNotLookInApplicators1Boxed { - public final boolean data; - private AdditionalpropertiesShouldNotLookInApplicators1BoxedBoolean(boolean data) { - this.data = data; - } + public record AdditionalpropertiesShouldNotLookInApplicators1BoxedBoolean(boolean data) implements AdditionalpropertiesShouldNotLookInApplicators1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalpropertiesShouldNotLookInApplicators1BoxedNumber extends AdditionalpropertiesShouldNotLookInApplicators1Boxed { - public final Number data; - private AdditionalpropertiesShouldNotLookInApplicators1BoxedNumber(Number data) { - this.data = data; - } + public record AdditionalpropertiesShouldNotLookInApplicators1BoxedNumber(Number data) implements AdditionalpropertiesShouldNotLookInApplicators1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalpropertiesShouldNotLookInApplicators1BoxedString extends AdditionalpropertiesShouldNotLookInApplicators1Boxed { - public final String data; - private AdditionalpropertiesShouldNotLookInApplicators1BoxedString(String data) { - this.data = data; - } + public record AdditionalpropertiesShouldNotLookInApplicators1BoxedString(String data) implements AdditionalpropertiesShouldNotLookInApplicators1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalpropertiesShouldNotLookInApplicators1BoxedList extends AdditionalpropertiesShouldNotLookInApplicators1Boxed { - public final FrozenList<@Nullable Object> data; - private AdditionalpropertiesShouldNotLookInApplicators1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record AdditionalpropertiesShouldNotLookInApplicators1BoxedList(FrozenList<@Nullable Object> data) implements AdditionalpropertiesShouldNotLookInApplicators1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalpropertiesShouldNotLookInApplicators1BoxedMap extends AdditionalpropertiesShouldNotLookInApplicators1Boxed { - public final AdditionalpropertiesShouldNotLookInApplicatorsMap data; - private AdditionalpropertiesShouldNotLookInApplicators1BoxedMap(AdditionalpropertiesShouldNotLookInApplicatorsMap data) { - this.data = data; - } + public record AdditionalpropertiesShouldNotLookInApplicators1BoxedMap(AdditionalpropertiesShouldNotLookInApplicatorsMap data) implements AdditionalpropertiesShouldNotLookInApplicators1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class AdditionalpropertiesShouldNotLookInApplicators1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AdditionalpropertiesShouldNotLookInApplicators1BoxedList>, MapSchemaValidator { + public static class AdditionalpropertiesShouldNotLookInApplicators1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AdditionalpropertiesShouldNotLookInApplicators1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -695,11 +666,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -730,11 +701,11 @@ public AdditionalpropertiesShouldNotLookInApplicatorsMap getNewInstance(Map propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof Boolean)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -816,5 +787,24 @@ public AdditionalpropertiesShouldNotLookInApplicators1BoxedList validateAndBox(L public AdditionalpropertiesShouldNotLookInApplicators1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AdditionalpropertiesShouldNotLookInApplicators1BoxedMap(validate(arg, configuration)); } + @Override + public AdditionalpropertiesShouldNotLookInApplicators1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Allof.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Allof.java index a21785e89d4..f2c3bac9dfb 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Allof.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Allof.java @@ -142,78 +142,54 @@ public Schema0Map0Builder getBuilderAfterBar(Map insta } - public static abstract sealed class Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { + @Nullable Object getData(); } - public static final class Schema0BoxedVoid extends Schema0Boxed { - public final Void data; - private Schema0BoxedVoid(Void data) { - this.data = data; - } + public record Schema0BoxedVoid(Void data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedBoolean extends Schema0Boxed { - public final boolean data; - private Schema0BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema0BoxedBoolean(boolean data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedNumber extends Schema0Boxed { - public final Number data; - private Schema0BoxedNumber(Number data) { - this.data = data; - } + public record Schema0BoxedNumber(Number data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedString extends Schema0Boxed { - public final String data; - private Schema0BoxedString(String data) { - this.data = data; - } + public record Schema0BoxedString(String data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedList extends Schema0Boxed { - public final FrozenList<@Nullable Object> data; - private Schema0BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedList(FrozenList<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedMap extends Schema0Boxed { - public final Schema0Map data; - private Schema0BoxedMap(Schema0Map data) { - this.data = data; - } + public record Schema0BoxedMap(Schema0Map data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator { + public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator { private static @Nullable Schema0 instance = null; protected Schema0() { @@ -317,11 +293,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -352,11 +328,11 @@ public Schema0Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -435,6 +411,25 @@ public Schema0BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema0BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema0BoxedMap(validate(arg, configuration)); } + @Override + public Schema0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class Foo extends StringJsonSchema.StringJsonSchema1 { @@ -522,78 +517,54 @@ public Schema1Map0Builder getBuilderAfterFoo(Map insta } - public static abstract sealed class Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { + @Nullable Object getData(); } - public static final class Schema1BoxedVoid extends Schema1Boxed { - public final Void data; - private Schema1BoxedVoid(Void data) { - this.data = data; - } + public record Schema1BoxedVoid(Void data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedBoolean extends Schema1Boxed { - public final boolean data; - private Schema1BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema1BoxedBoolean(boolean data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedNumber extends Schema1Boxed { - public final Number data; - private Schema1BoxedNumber(Number data) { - this.data = data; - } + public record Schema1BoxedNumber(Number data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedString extends Schema1Boxed { - public final String data; - private Schema1BoxedString(String data) { - this.data = data; - } + public record Schema1BoxedString(String data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedList extends Schema1Boxed { - public final FrozenList<@Nullable Object> data; - private Schema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedList(FrozenList<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedMap extends Schema1Boxed { - public final Schema1Map data; - private Schema1BoxedMap(Schema1Map data) { - this.data = data; - } + public record Schema1BoxedMap(Schema1Map data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator { + public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator { private static @Nullable Schema1 instance = null; protected Schema1() { @@ -697,11 +668,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -732,11 +703,11 @@ public Schema1Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -815,80 +786,75 @@ public Schema1BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema1BoxedMap(validate(arg, configuration)); } + @Override + public Schema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class Allof1Boxed permits Allof1BoxedVoid, Allof1BoxedBoolean, Allof1BoxedNumber, Allof1BoxedString, Allof1BoxedList, Allof1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Allof1Boxed permits Allof1BoxedVoid, Allof1BoxedBoolean, Allof1BoxedNumber, Allof1BoxedString, Allof1BoxedList, Allof1BoxedMap { + @Nullable Object getData(); } - public static final class Allof1BoxedVoid extends Allof1Boxed { - public final Void data; - private Allof1BoxedVoid(Void data) { - this.data = data; - } + public record Allof1BoxedVoid(Void data) implements Allof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Allof1BoxedBoolean extends Allof1Boxed { - public final boolean data; - private Allof1BoxedBoolean(boolean data) { - this.data = data; - } + public record Allof1BoxedBoolean(boolean data) implements Allof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Allof1BoxedNumber extends Allof1Boxed { - public final Number data; - private Allof1BoxedNumber(Number data) { - this.data = data; - } + public record Allof1BoxedNumber(Number data) implements Allof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Allof1BoxedString extends Allof1Boxed { - public final String data; - private Allof1BoxedString(String data) { - this.data = data; - } + public record Allof1BoxedString(String data) implements Allof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Allof1BoxedList extends Allof1Boxed { - public final FrozenList<@Nullable Object> data; - private Allof1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Allof1BoxedList(FrozenList<@Nullable Object> data) implements Allof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Allof1BoxedMap extends Allof1Boxed { - public final FrozenMap<@Nullable Object> data; - private Allof1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Allof1BoxedMap(FrozenMap<@Nullable Object> data) implements Allof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Allof1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Allof1BoxedList>, MapSchemaValidator, Allof1BoxedMap> { + public static class Allof1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Allof1BoxedList>, MapSchemaValidator, Allof1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -996,11 +962,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -1031,11 +997,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1114,5 +1080,24 @@ public Allof1BoxedList validateAndBox(List arg, SchemaConfiguration configura public Allof1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Allof1BoxedMap(validate(arg, configuration)); } + @Override + public Allof1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofCombinedWithAnyofOneof.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofCombinedWithAnyofOneof.java index eb146be7828..e17daac12ce 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofCombinedWithAnyofOneof.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofCombinedWithAnyofOneof.java @@ -36,78 +36,54 @@ public class AllofCombinedWithAnyofOneof { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class Schema02Boxed permits Schema02BoxedVoid, Schema02BoxedBoolean, Schema02BoxedNumber, Schema02BoxedString, Schema02BoxedList, Schema02BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema02Boxed permits Schema02BoxedVoid, Schema02BoxedBoolean, Schema02BoxedNumber, Schema02BoxedString, Schema02BoxedList, Schema02BoxedMap { + @Nullable Object getData(); } - public static final class Schema02BoxedVoid extends Schema02Boxed { - public final Void data; - private Schema02BoxedVoid(Void data) { - this.data = data; - } + public record Schema02BoxedVoid(Void data) implements Schema02Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema02BoxedBoolean extends Schema02Boxed { - public final boolean data; - private Schema02BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema02BoxedBoolean(boolean data) implements Schema02Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema02BoxedNumber extends Schema02Boxed { - public final Number data; - private Schema02BoxedNumber(Number data) { - this.data = data; - } + public record Schema02BoxedNumber(Number data) implements Schema02Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema02BoxedString extends Schema02Boxed { - public final String data; - private Schema02BoxedString(String data) { - this.data = data; - } + public record Schema02BoxedString(String data) implements Schema02Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema02BoxedList extends Schema02Boxed { - public final FrozenList<@Nullable Object> data; - private Schema02BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema02BoxedList(FrozenList<@Nullable Object> data) implements Schema02Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema02BoxedMap extends Schema02Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema02BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema02BoxedMap(FrozenMap<@Nullable Object> data) implements Schema02Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema02 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema02BoxedList>, MapSchemaValidator, Schema02BoxedMap> { + public static class Schema02 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema02BoxedList>, MapSchemaValidator, Schema02BoxedMap> { private static @Nullable Schema02 instance = null; protected Schema02() { @@ -206,11 +182,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -241,11 +217,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -324,80 +300,75 @@ public Schema02BoxedList validateAndBox(List arg, SchemaConfiguration configu public Schema02BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema02BoxedMap(validate(arg, configuration)); } + @Override + public Schema02Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class Schema01Boxed permits Schema01BoxedVoid, Schema01BoxedBoolean, Schema01BoxedNumber, Schema01BoxedString, Schema01BoxedList, Schema01BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema01Boxed permits Schema01BoxedVoid, Schema01BoxedBoolean, Schema01BoxedNumber, Schema01BoxedString, Schema01BoxedList, Schema01BoxedMap { + @Nullable Object getData(); } - public static final class Schema01BoxedVoid extends Schema01Boxed { - public final Void data; - private Schema01BoxedVoid(Void data) { - this.data = data; - } + public record Schema01BoxedVoid(Void data) implements Schema01Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema01BoxedBoolean extends Schema01Boxed { - public final boolean data; - private Schema01BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema01BoxedBoolean(boolean data) implements Schema01Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema01BoxedNumber extends Schema01Boxed { - public final Number data; - private Schema01BoxedNumber(Number data) { - this.data = data; - } + public record Schema01BoxedNumber(Number data) implements Schema01Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema01BoxedString extends Schema01Boxed { - public final String data; - private Schema01BoxedString(String data) { - this.data = data; - } + public record Schema01BoxedString(String data) implements Schema01Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema01BoxedList extends Schema01Boxed { - public final FrozenList<@Nullable Object> data; - private Schema01BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema01BoxedList(FrozenList<@Nullable Object> data) implements Schema01Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema01BoxedMap extends Schema01Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema01BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema01BoxedMap(FrozenMap<@Nullable Object> data) implements Schema01Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema01 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema01BoxedList>, MapSchemaValidator, Schema01BoxedMap> { + public static class Schema01 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema01BoxedList>, MapSchemaValidator, Schema01BoxedMap> { private static @Nullable Schema01 instance = null; protected Schema01() { @@ -496,11 +467,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -531,11 +502,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -614,80 +585,75 @@ public Schema01BoxedList validateAndBox(List arg, SchemaConfiguration configu public Schema01BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema01BoxedMap(validate(arg, configuration)); } + @Override + public Schema01Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { + @Nullable Object getData(); } - public static final class Schema0BoxedVoid extends Schema0Boxed { - public final Void data; - private Schema0BoxedVoid(Void data) { - this.data = data; - } + public record Schema0BoxedVoid(Void data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedBoolean extends Schema0Boxed { - public final boolean data; - private Schema0BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema0BoxedBoolean(boolean data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedNumber extends Schema0Boxed { - public final Number data; - private Schema0BoxedNumber(Number data) { - this.data = data; - } + public record Schema0BoxedNumber(Number data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedString extends Schema0Boxed { - public final String data; - private Schema0BoxedString(String data) { - this.data = data; - } + public record Schema0BoxedString(String data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedList extends Schema0Boxed { - public final FrozenList<@Nullable Object> data; - private Schema0BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedList(FrozenList<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedMap extends Schema0Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema0BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedMap(FrozenMap<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator, Schema0BoxedMap> { + public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator, Schema0BoxedMap> { private static @Nullable Schema0 instance = null; protected Schema0() { @@ -786,11 +752,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -821,11 +787,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -904,80 +870,75 @@ public Schema0BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema0BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema0BoxedMap(validate(arg, configuration)); } + @Override + public Schema0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class AllofCombinedWithAnyofOneof1Boxed permits AllofCombinedWithAnyofOneof1BoxedVoid, AllofCombinedWithAnyofOneof1BoxedBoolean, AllofCombinedWithAnyofOneof1BoxedNumber, AllofCombinedWithAnyofOneof1BoxedString, AllofCombinedWithAnyofOneof1BoxedList, AllofCombinedWithAnyofOneof1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AllofCombinedWithAnyofOneof1Boxed permits AllofCombinedWithAnyofOneof1BoxedVoid, AllofCombinedWithAnyofOneof1BoxedBoolean, AllofCombinedWithAnyofOneof1BoxedNumber, AllofCombinedWithAnyofOneof1BoxedString, AllofCombinedWithAnyofOneof1BoxedList, AllofCombinedWithAnyofOneof1BoxedMap { + @Nullable Object getData(); } - public static final class AllofCombinedWithAnyofOneof1BoxedVoid extends AllofCombinedWithAnyofOneof1Boxed { - public final Void data; - private AllofCombinedWithAnyofOneof1BoxedVoid(Void data) { - this.data = data; - } + public record AllofCombinedWithAnyofOneof1BoxedVoid(Void data) implements AllofCombinedWithAnyofOneof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofCombinedWithAnyofOneof1BoxedBoolean extends AllofCombinedWithAnyofOneof1Boxed { - public final boolean data; - private AllofCombinedWithAnyofOneof1BoxedBoolean(boolean data) { - this.data = data; - } + public record AllofCombinedWithAnyofOneof1BoxedBoolean(boolean data) implements AllofCombinedWithAnyofOneof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofCombinedWithAnyofOneof1BoxedNumber extends AllofCombinedWithAnyofOneof1Boxed { - public final Number data; - private AllofCombinedWithAnyofOneof1BoxedNumber(Number data) { - this.data = data; - } + public record AllofCombinedWithAnyofOneof1BoxedNumber(Number data) implements AllofCombinedWithAnyofOneof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofCombinedWithAnyofOneof1BoxedString extends AllofCombinedWithAnyofOneof1Boxed { - public final String data; - private AllofCombinedWithAnyofOneof1BoxedString(String data) { - this.data = data; - } + public record AllofCombinedWithAnyofOneof1BoxedString(String data) implements AllofCombinedWithAnyofOneof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofCombinedWithAnyofOneof1BoxedList extends AllofCombinedWithAnyofOneof1Boxed { - public final FrozenList<@Nullable Object> data; - private AllofCombinedWithAnyofOneof1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record AllofCombinedWithAnyofOneof1BoxedList(FrozenList<@Nullable Object> data) implements AllofCombinedWithAnyofOneof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofCombinedWithAnyofOneof1BoxedMap extends AllofCombinedWithAnyofOneof1Boxed { - public final FrozenMap<@Nullable Object> data; - private AllofCombinedWithAnyofOneof1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record AllofCombinedWithAnyofOneof1BoxedMap(FrozenMap<@Nullable Object> data) implements AllofCombinedWithAnyofOneof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class AllofCombinedWithAnyofOneof1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AllofCombinedWithAnyofOneof1BoxedList>, MapSchemaValidator, AllofCombinedWithAnyofOneof1BoxedMap> { + public static class AllofCombinedWithAnyofOneof1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AllofCombinedWithAnyofOneof1BoxedList>, MapSchemaValidator, AllofCombinedWithAnyofOneof1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -1090,11 +1051,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -1125,11 +1086,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1208,5 +1169,24 @@ public AllofCombinedWithAnyofOneof1BoxedList validateAndBox(List arg, SchemaC public AllofCombinedWithAnyofOneof1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AllofCombinedWithAnyofOneof1BoxedMap(validate(arg, configuration)); } + @Override + public AllofCombinedWithAnyofOneof1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofSimpleTypes.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofSimpleTypes.java index 781a8fc1595..4c9d473a2f9 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofSimpleTypes.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofSimpleTypes.java @@ -35,78 +35,54 @@ public class AllofSimpleTypes { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { + @Nullable Object getData(); } - public static final class Schema0BoxedVoid extends Schema0Boxed { - public final Void data; - private Schema0BoxedVoid(Void data) { - this.data = data; - } + public record Schema0BoxedVoid(Void data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedBoolean extends Schema0Boxed { - public final boolean data; - private Schema0BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema0BoxedBoolean(boolean data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedNumber extends Schema0Boxed { - public final Number data; - private Schema0BoxedNumber(Number data) { - this.data = data; - } + public record Schema0BoxedNumber(Number data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedString extends Schema0Boxed { - public final String data; - private Schema0BoxedString(String data) { - this.data = data; - } + public record Schema0BoxedString(String data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedList extends Schema0Boxed { - public final FrozenList<@Nullable Object> data; - private Schema0BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedList(FrozenList<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedMap extends Schema0Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema0BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedMap(FrozenMap<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator, Schema0BoxedMap> { + public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator, Schema0BoxedMap> { private static @Nullable Schema0 instance = null; protected Schema0() { @@ -205,11 +181,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -240,11 +216,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -323,80 +299,75 @@ public Schema0BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema0BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema0BoxedMap(validate(arg, configuration)); } + @Override + public Schema0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { + @Nullable Object getData(); } - public static final class Schema1BoxedVoid extends Schema1Boxed { - public final Void data; - private Schema1BoxedVoid(Void data) { - this.data = data; - } + public record Schema1BoxedVoid(Void data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedBoolean extends Schema1Boxed { - public final boolean data; - private Schema1BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema1BoxedBoolean(boolean data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedNumber extends Schema1Boxed { - public final Number data; - private Schema1BoxedNumber(Number data) { - this.data = data; - } + public record Schema1BoxedNumber(Number data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedString extends Schema1Boxed { - public final String data; - private Schema1BoxedString(String data) { - this.data = data; - } + public record Schema1BoxedString(String data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedList extends Schema1Boxed { - public final FrozenList<@Nullable Object> data; - private Schema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedList(FrozenList<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedMap extends Schema1Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedMap(FrozenMap<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator, Schema1BoxedMap> { + public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator, Schema1BoxedMap> { private static @Nullable Schema1 instance = null; protected Schema1() { @@ -495,11 +466,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -530,11 +501,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -613,80 +584,75 @@ public Schema1BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema1BoxedMap(validate(arg, configuration)); } + @Override + public Schema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class AllofSimpleTypes1Boxed permits AllofSimpleTypes1BoxedVoid, AllofSimpleTypes1BoxedBoolean, AllofSimpleTypes1BoxedNumber, AllofSimpleTypes1BoxedString, AllofSimpleTypes1BoxedList, AllofSimpleTypes1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AllofSimpleTypes1Boxed permits AllofSimpleTypes1BoxedVoid, AllofSimpleTypes1BoxedBoolean, AllofSimpleTypes1BoxedNumber, AllofSimpleTypes1BoxedString, AllofSimpleTypes1BoxedList, AllofSimpleTypes1BoxedMap { + @Nullable Object getData(); } - public static final class AllofSimpleTypes1BoxedVoid extends AllofSimpleTypes1Boxed { - public final Void data; - private AllofSimpleTypes1BoxedVoid(Void data) { - this.data = data; - } + public record AllofSimpleTypes1BoxedVoid(Void data) implements AllofSimpleTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofSimpleTypes1BoxedBoolean extends AllofSimpleTypes1Boxed { - public final boolean data; - private AllofSimpleTypes1BoxedBoolean(boolean data) { - this.data = data; - } + public record AllofSimpleTypes1BoxedBoolean(boolean data) implements AllofSimpleTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofSimpleTypes1BoxedNumber extends AllofSimpleTypes1Boxed { - public final Number data; - private AllofSimpleTypes1BoxedNumber(Number data) { - this.data = data; - } + public record AllofSimpleTypes1BoxedNumber(Number data) implements AllofSimpleTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofSimpleTypes1BoxedString extends AllofSimpleTypes1Boxed { - public final String data; - private AllofSimpleTypes1BoxedString(String data) { - this.data = data; - } + public record AllofSimpleTypes1BoxedString(String data) implements AllofSimpleTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofSimpleTypes1BoxedList extends AllofSimpleTypes1Boxed { - public final FrozenList<@Nullable Object> data; - private AllofSimpleTypes1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record AllofSimpleTypes1BoxedList(FrozenList<@Nullable Object> data) implements AllofSimpleTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofSimpleTypes1BoxedMap extends AllofSimpleTypes1Boxed { - public final FrozenMap<@Nullable Object> data; - private AllofSimpleTypes1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record AllofSimpleTypes1BoxedMap(FrozenMap<@Nullable Object> data) implements AllofSimpleTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class AllofSimpleTypes1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AllofSimpleTypes1BoxedList>, MapSchemaValidator, AllofSimpleTypes1BoxedMap> { + public static class AllofSimpleTypes1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AllofSimpleTypes1BoxedList>, MapSchemaValidator, AllofSimpleTypes1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -794,11 +760,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -829,11 +795,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -912,5 +878,24 @@ public AllofSimpleTypes1BoxedList validateAndBox(List arg, SchemaConfiguratio public AllofSimpleTypes1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AllofSimpleTypes1BoxedMap(validate(arg, configuration)); } + @Override + public AllofSimpleTypes1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithBaseSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithBaseSchema.java index f640bab85f2..a67e189c9e4 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithBaseSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithBaseSchema.java @@ -125,78 +125,54 @@ public Schema0Map0Builder getBuilderAfterFoo(Map insta } - public static abstract sealed class Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { + @Nullable Object getData(); } - public static final class Schema0BoxedVoid extends Schema0Boxed { - public final Void data; - private Schema0BoxedVoid(Void data) { - this.data = data; - } + public record Schema0BoxedVoid(Void data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedBoolean extends Schema0Boxed { - public final boolean data; - private Schema0BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema0BoxedBoolean(boolean data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedNumber extends Schema0Boxed { - public final Number data; - private Schema0BoxedNumber(Number data) { - this.data = data; - } + public record Schema0BoxedNumber(Number data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedString extends Schema0Boxed { - public final String data; - private Schema0BoxedString(String data) { - this.data = data; - } + public record Schema0BoxedString(String data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedList extends Schema0Boxed { - public final FrozenList<@Nullable Object> data; - private Schema0BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedList(FrozenList<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedMap extends Schema0Boxed { - public final Schema0Map data; - private Schema0BoxedMap(Schema0Map data) { - this.data = data; - } + public record Schema0BoxedMap(Schema0Map data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator { + public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator { private static @Nullable Schema0 instance = null; protected Schema0() { @@ -300,11 +276,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -335,11 +311,11 @@ public Schema0Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -418,6 +394,25 @@ public Schema0BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema0BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema0BoxedMap(validate(arg, configuration)); } + @Override + public Schema0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class Baz extends NullJsonSchema.NullJsonSchema1 { @@ -505,78 +500,54 @@ public Schema1Map0Builder getBuilderAfterBaz(Map insta } - public static abstract sealed class Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { + @Nullable Object getData(); } - public static final class Schema1BoxedVoid extends Schema1Boxed { - public final Void data; - private Schema1BoxedVoid(Void data) { - this.data = data; - } + public record Schema1BoxedVoid(Void data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedBoolean extends Schema1Boxed { - public final boolean data; - private Schema1BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema1BoxedBoolean(boolean data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedNumber extends Schema1Boxed { - public final Number data; - private Schema1BoxedNumber(Number data) { - this.data = data; - } + public record Schema1BoxedNumber(Number data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedString extends Schema1Boxed { - public final String data; - private Schema1BoxedString(String data) { - this.data = data; - } + public record Schema1BoxedString(String data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedList extends Schema1Boxed { - public final FrozenList<@Nullable Object> data; - private Schema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedList(FrozenList<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedMap extends Schema1Boxed { - public final Schema1Map data; - private Schema1BoxedMap(Schema1Map data) { - this.data = data; - } + public record Schema1BoxedMap(Schema1Map data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator { + public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator { private static @Nullable Schema1 instance = null; protected Schema1() { @@ -680,11 +651,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -715,11 +686,11 @@ public Schema1Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -798,6 +769,25 @@ public Schema1BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema1BoxedMap(validate(arg, configuration)); } + @Override + public Schema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class Bar extends IntJsonSchema.IntJsonSchema1 { @@ -903,78 +893,54 @@ public AllofWithBaseSchemaMap0Builder getBuilderAfterBar(Map data; - private AllofWithBaseSchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record AllofWithBaseSchema1BoxedList(FrozenList<@Nullable Object> data) implements AllofWithBaseSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithBaseSchema1BoxedMap extends AllofWithBaseSchema1Boxed { - public final AllofWithBaseSchemaMap data; - private AllofWithBaseSchema1BoxedMap(AllofWithBaseSchemaMap data) { - this.data = data; - } + public record AllofWithBaseSchema1BoxedMap(AllofWithBaseSchemaMap data) implements AllofWithBaseSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class AllofWithBaseSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AllofWithBaseSchema1BoxedList>, MapSchemaValidator { + public static class AllofWithBaseSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AllofWithBaseSchema1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -1088,11 +1054,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -1123,11 +1089,11 @@ public AllofWithBaseSchemaMap getNewInstance(Map arg, List pathToI List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1206,5 +1172,24 @@ public AllofWithBaseSchema1BoxedList validateAndBox(List arg, SchemaConfigura public AllofWithBaseSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AllofWithBaseSchema1BoxedMap(validate(arg, configuration)); } + @Override + public AllofWithBaseSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithOneEmptySchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithOneEmptySchema.java index ba7f3cd1473..6ad17067551 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithOneEmptySchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithOneEmptySchema.java @@ -47,78 +47,54 @@ public static Schema0 getInstance() { } - public static abstract sealed class AllofWithOneEmptySchema1Boxed permits AllofWithOneEmptySchema1BoxedVoid, AllofWithOneEmptySchema1BoxedBoolean, AllofWithOneEmptySchema1BoxedNumber, AllofWithOneEmptySchema1BoxedString, AllofWithOneEmptySchema1BoxedList, AllofWithOneEmptySchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AllofWithOneEmptySchema1Boxed permits AllofWithOneEmptySchema1BoxedVoid, AllofWithOneEmptySchema1BoxedBoolean, AllofWithOneEmptySchema1BoxedNumber, AllofWithOneEmptySchema1BoxedString, AllofWithOneEmptySchema1BoxedList, AllofWithOneEmptySchema1BoxedMap { + @Nullable Object getData(); } - public static final class AllofWithOneEmptySchema1BoxedVoid extends AllofWithOneEmptySchema1Boxed { - public final Void data; - private AllofWithOneEmptySchema1BoxedVoid(Void data) { - this.data = data; - } + public record AllofWithOneEmptySchema1BoxedVoid(Void data) implements AllofWithOneEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithOneEmptySchema1BoxedBoolean extends AllofWithOneEmptySchema1Boxed { - public final boolean data; - private AllofWithOneEmptySchema1BoxedBoolean(boolean data) { - this.data = data; - } + public record AllofWithOneEmptySchema1BoxedBoolean(boolean data) implements AllofWithOneEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithOneEmptySchema1BoxedNumber extends AllofWithOneEmptySchema1Boxed { - public final Number data; - private AllofWithOneEmptySchema1BoxedNumber(Number data) { - this.data = data; - } + public record AllofWithOneEmptySchema1BoxedNumber(Number data) implements AllofWithOneEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithOneEmptySchema1BoxedString extends AllofWithOneEmptySchema1Boxed { - public final String data; - private AllofWithOneEmptySchema1BoxedString(String data) { - this.data = data; - } + public record AllofWithOneEmptySchema1BoxedString(String data) implements AllofWithOneEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithOneEmptySchema1BoxedList extends AllofWithOneEmptySchema1Boxed { - public final FrozenList<@Nullable Object> data; - private AllofWithOneEmptySchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record AllofWithOneEmptySchema1BoxedList(FrozenList<@Nullable Object> data) implements AllofWithOneEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithOneEmptySchema1BoxedMap extends AllofWithOneEmptySchema1Boxed { - public final FrozenMap<@Nullable Object> data; - private AllofWithOneEmptySchema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record AllofWithOneEmptySchema1BoxedMap(FrozenMap<@Nullable Object> data) implements AllofWithOneEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class AllofWithOneEmptySchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AllofWithOneEmptySchema1BoxedList>, MapSchemaValidator, AllofWithOneEmptySchema1BoxedMap> { + public static class AllofWithOneEmptySchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AllofWithOneEmptySchema1BoxedList>, MapSchemaValidator, AllofWithOneEmptySchema1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -225,11 +201,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -260,11 +236,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -343,5 +319,24 @@ public AllofWithOneEmptySchema1BoxedList validateAndBox(List arg, SchemaConfi public AllofWithOneEmptySchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AllofWithOneEmptySchema1BoxedMap(validate(arg, configuration)); } + @Override + public AllofWithOneEmptySchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTheFirstEmptySchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTheFirstEmptySchema.java index 0a0ea1cf8f4..77063ed5e5c 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTheFirstEmptySchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTheFirstEmptySchema.java @@ -59,78 +59,54 @@ public static Schema1 getInstance() { } - public static abstract sealed class AllofWithTheFirstEmptySchema1Boxed permits AllofWithTheFirstEmptySchema1BoxedVoid, AllofWithTheFirstEmptySchema1BoxedBoolean, AllofWithTheFirstEmptySchema1BoxedNumber, AllofWithTheFirstEmptySchema1BoxedString, AllofWithTheFirstEmptySchema1BoxedList, AllofWithTheFirstEmptySchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AllofWithTheFirstEmptySchema1Boxed permits AllofWithTheFirstEmptySchema1BoxedVoid, AllofWithTheFirstEmptySchema1BoxedBoolean, AllofWithTheFirstEmptySchema1BoxedNumber, AllofWithTheFirstEmptySchema1BoxedString, AllofWithTheFirstEmptySchema1BoxedList, AllofWithTheFirstEmptySchema1BoxedMap { + @Nullable Object getData(); } - public static final class AllofWithTheFirstEmptySchema1BoxedVoid extends AllofWithTheFirstEmptySchema1Boxed { - public final Void data; - private AllofWithTheFirstEmptySchema1BoxedVoid(Void data) { - this.data = data; - } + public record AllofWithTheFirstEmptySchema1BoxedVoid(Void data) implements AllofWithTheFirstEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithTheFirstEmptySchema1BoxedBoolean extends AllofWithTheFirstEmptySchema1Boxed { - public final boolean data; - private AllofWithTheFirstEmptySchema1BoxedBoolean(boolean data) { - this.data = data; - } + public record AllofWithTheFirstEmptySchema1BoxedBoolean(boolean data) implements AllofWithTheFirstEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithTheFirstEmptySchema1BoxedNumber extends AllofWithTheFirstEmptySchema1Boxed { - public final Number data; - private AllofWithTheFirstEmptySchema1BoxedNumber(Number data) { - this.data = data; - } + public record AllofWithTheFirstEmptySchema1BoxedNumber(Number data) implements AllofWithTheFirstEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithTheFirstEmptySchema1BoxedString extends AllofWithTheFirstEmptySchema1Boxed { - public final String data; - private AllofWithTheFirstEmptySchema1BoxedString(String data) { - this.data = data; - } + public record AllofWithTheFirstEmptySchema1BoxedString(String data) implements AllofWithTheFirstEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithTheFirstEmptySchema1BoxedList extends AllofWithTheFirstEmptySchema1Boxed { - public final FrozenList<@Nullable Object> data; - private AllofWithTheFirstEmptySchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record AllofWithTheFirstEmptySchema1BoxedList(FrozenList<@Nullable Object> data) implements AllofWithTheFirstEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithTheFirstEmptySchema1BoxedMap extends AllofWithTheFirstEmptySchema1Boxed { - public final FrozenMap<@Nullable Object> data; - private AllofWithTheFirstEmptySchema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record AllofWithTheFirstEmptySchema1BoxedMap(FrozenMap<@Nullable Object> data) implements AllofWithTheFirstEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class AllofWithTheFirstEmptySchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AllofWithTheFirstEmptySchema1BoxedList>, MapSchemaValidator, AllofWithTheFirstEmptySchema1BoxedMap> { + public static class AllofWithTheFirstEmptySchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AllofWithTheFirstEmptySchema1BoxedList>, MapSchemaValidator, AllofWithTheFirstEmptySchema1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -238,11 +214,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -273,11 +249,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -356,5 +332,24 @@ public AllofWithTheFirstEmptySchema1BoxedList validateAndBox(List arg, Schema public AllofWithTheFirstEmptySchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AllofWithTheFirstEmptySchema1BoxedMap(validate(arg, configuration)); } + @Override + public AllofWithTheFirstEmptySchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTheLastEmptySchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTheLastEmptySchema.java index 9f4988b7e52..0ea5f48a712 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTheLastEmptySchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTheLastEmptySchema.java @@ -59,78 +59,54 @@ public static Schema1 getInstance() { } - public static abstract sealed class AllofWithTheLastEmptySchema1Boxed permits AllofWithTheLastEmptySchema1BoxedVoid, AllofWithTheLastEmptySchema1BoxedBoolean, AllofWithTheLastEmptySchema1BoxedNumber, AllofWithTheLastEmptySchema1BoxedString, AllofWithTheLastEmptySchema1BoxedList, AllofWithTheLastEmptySchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AllofWithTheLastEmptySchema1Boxed permits AllofWithTheLastEmptySchema1BoxedVoid, AllofWithTheLastEmptySchema1BoxedBoolean, AllofWithTheLastEmptySchema1BoxedNumber, AllofWithTheLastEmptySchema1BoxedString, AllofWithTheLastEmptySchema1BoxedList, AllofWithTheLastEmptySchema1BoxedMap { + @Nullable Object getData(); } - public static final class AllofWithTheLastEmptySchema1BoxedVoid extends AllofWithTheLastEmptySchema1Boxed { - public final Void data; - private AllofWithTheLastEmptySchema1BoxedVoid(Void data) { - this.data = data; - } + public record AllofWithTheLastEmptySchema1BoxedVoid(Void data) implements AllofWithTheLastEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithTheLastEmptySchema1BoxedBoolean extends AllofWithTheLastEmptySchema1Boxed { - public final boolean data; - private AllofWithTheLastEmptySchema1BoxedBoolean(boolean data) { - this.data = data; - } + public record AllofWithTheLastEmptySchema1BoxedBoolean(boolean data) implements AllofWithTheLastEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithTheLastEmptySchema1BoxedNumber extends AllofWithTheLastEmptySchema1Boxed { - public final Number data; - private AllofWithTheLastEmptySchema1BoxedNumber(Number data) { - this.data = data; - } + public record AllofWithTheLastEmptySchema1BoxedNumber(Number data) implements AllofWithTheLastEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithTheLastEmptySchema1BoxedString extends AllofWithTheLastEmptySchema1Boxed { - public final String data; - private AllofWithTheLastEmptySchema1BoxedString(String data) { - this.data = data; - } + public record AllofWithTheLastEmptySchema1BoxedString(String data) implements AllofWithTheLastEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithTheLastEmptySchema1BoxedList extends AllofWithTheLastEmptySchema1Boxed { - public final FrozenList<@Nullable Object> data; - private AllofWithTheLastEmptySchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record AllofWithTheLastEmptySchema1BoxedList(FrozenList<@Nullable Object> data) implements AllofWithTheLastEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithTheLastEmptySchema1BoxedMap extends AllofWithTheLastEmptySchema1Boxed { - public final FrozenMap<@Nullable Object> data; - private AllofWithTheLastEmptySchema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record AllofWithTheLastEmptySchema1BoxedMap(FrozenMap<@Nullable Object> data) implements AllofWithTheLastEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class AllofWithTheLastEmptySchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AllofWithTheLastEmptySchema1BoxedList>, MapSchemaValidator, AllofWithTheLastEmptySchema1BoxedMap> { + public static class AllofWithTheLastEmptySchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AllofWithTheLastEmptySchema1BoxedList>, MapSchemaValidator, AllofWithTheLastEmptySchema1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -238,11 +214,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -273,11 +249,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -356,5 +332,24 @@ public AllofWithTheLastEmptySchema1BoxedList validateAndBox(List arg, SchemaC public AllofWithTheLastEmptySchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AllofWithTheLastEmptySchema1BoxedMap(validate(arg, configuration)); } + @Override + public AllofWithTheLastEmptySchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTwoEmptySchemas.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTwoEmptySchemas.java index 5ba07d47c64..6430ce42fd0 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTwoEmptySchemas.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTwoEmptySchemas.java @@ -58,78 +58,54 @@ public static Schema1 getInstance() { } - public static abstract sealed class AllofWithTwoEmptySchemas1Boxed permits AllofWithTwoEmptySchemas1BoxedVoid, AllofWithTwoEmptySchemas1BoxedBoolean, AllofWithTwoEmptySchemas1BoxedNumber, AllofWithTwoEmptySchemas1BoxedString, AllofWithTwoEmptySchemas1BoxedList, AllofWithTwoEmptySchemas1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AllofWithTwoEmptySchemas1Boxed permits AllofWithTwoEmptySchemas1BoxedVoid, AllofWithTwoEmptySchemas1BoxedBoolean, AllofWithTwoEmptySchemas1BoxedNumber, AllofWithTwoEmptySchemas1BoxedString, AllofWithTwoEmptySchemas1BoxedList, AllofWithTwoEmptySchemas1BoxedMap { + @Nullable Object getData(); } - public static final class AllofWithTwoEmptySchemas1BoxedVoid extends AllofWithTwoEmptySchemas1Boxed { - public final Void data; - private AllofWithTwoEmptySchemas1BoxedVoid(Void data) { - this.data = data; - } + public record AllofWithTwoEmptySchemas1BoxedVoid(Void data) implements AllofWithTwoEmptySchemas1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithTwoEmptySchemas1BoxedBoolean extends AllofWithTwoEmptySchemas1Boxed { - public final boolean data; - private AllofWithTwoEmptySchemas1BoxedBoolean(boolean data) { - this.data = data; - } + public record AllofWithTwoEmptySchemas1BoxedBoolean(boolean data) implements AllofWithTwoEmptySchemas1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithTwoEmptySchemas1BoxedNumber extends AllofWithTwoEmptySchemas1Boxed { - public final Number data; - private AllofWithTwoEmptySchemas1BoxedNumber(Number data) { - this.data = data; - } + public record AllofWithTwoEmptySchemas1BoxedNumber(Number data) implements AllofWithTwoEmptySchemas1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithTwoEmptySchemas1BoxedString extends AllofWithTwoEmptySchemas1Boxed { - public final String data; - private AllofWithTwoEmptySchemas1BoxedString(String data) { - this.data = data; - } + public record AllofWithTwoEmptySchemas1BoxedString(String data) implements AllofWithTwoEmptySchemas1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithTwoEmptySchemas1BoxedList extends AllofWithTwoEmptySchemas1Boxed { - public final FrozenList<@Nullable Object> data; - private AllofWithTwoEmptySchemas1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record AllofWithTwoEmptySchemas1BoxedList(FrozenList<@Nullable Object> data) implements AllofWithTwoEmptySchemas1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithTwoEmptySchemas1BoxedMap extends AllofWithTwoEmptySchemas1Boxed { - public final FrozenMap<@Nullable Object> data; - private AllofWithTwoEmptySchemas1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record AllofWithTwoEmptySchemas1BoxedMap(FrozenMap<@Nullable Object> data) implements AllofWithTwoEmptySchemas1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class AllofWithTwoEmptySchemas1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AllofWithTwoEmptySchemas1BoxedList>, MapSchemaValidator, AllofWithTwoEmptySchemas1BoxedMap> { + public static class AllofWithTwoEmptySchemas1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AllofWithTwoEmptySchemas1BoxedList>, MapSchemaValidator, AllofWithTwoEmptySchemas1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -237,11 +213,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -272,11 +248,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -355,5 +331,24 @@ public AllofWithTwoEmptySchemas1BoxedList validateAndBox(List arg, SchemaConf public AllofWithTwoEmptySchemas1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AllofWithTwoEmptySchemas1BoxedMap(validate(arg, configuration)); } + @Override + public AllofWithTwoEmptySchemas1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Anyof.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Anyof.java index 12c165c5bf4..901e8939216 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Anyof.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Anyof.java @@ -47,78 +47,54 @@ public static Schema0 getInstance() { } - public static abstract sealed class Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { + @Nullable Object getData(); } - public static final class Schema1BoxedVoid extends Schema1Boxed { - public final Void data; - private Schema1BoxedVoid(Void data) { - this.data = data; - } + public record Schema1BoxedVoid(Void data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedBoolean extends Schema1Boxed { - public final boolean data; - private Schema1BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema1BoxedBoolean(boolean data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedNumber extends Schema1Boxed { - public final Number data; - private Schema1BoxedNumber(Number data) { - this.data = data; - } + public record Schema1BoxedNumber(Number data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedString extends Schema1Boxed { - public final String data; - private Schema1BoxedString(String data) { - this.data = data; - } + public record Schema1BoxedString(String data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedList extends Schema1Boxed { - public final FrozenList<@Nullable Object> data; - private Schema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedList(FrozenList<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedMap extends Schema1Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedMap(FrozenMap<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator, Schema1BoxedMap> { + public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator, Schema1BoxedMap> { private static @Nullable Schema1 instance = null; protected Schema1() { @@ -217,11 +193,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -252,11 +228,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -335,80 +311,75 @@ public Schema1BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema1BoxedMap(validate(arg, configuration)); } + @Override + public Schema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class Anyof1Boxed permits Anyof1BoxedVoid, Anyof1BoxedBoolean, Anyof1BoxedNumber, Anyof1BoxedString, Anyof1BoxedList, Anyof1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Anyof1Boxed permits Anyof1BoxedVoid, Anyof1BoxedBoolean, Anyof1BoxedNumber, Anyof1BoxedString, Anyof1BoxedList, Anyof1BoxedMap { + @Nullable Object getData(); } - public static final class Anyof1BoxedVoid extends Anyof1Boxed { - public final Void data; - private Anyof1BoxedVoid(Void data) { - this.data = data; - } + public record Anyof1BoxedVoid(Void data) implements Anyof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Anyof1BoxedBoolean extends Anyof1Boxed { - public final boolean data; - private Anyof1BoxedBoolean(boolean data) { - this.data = data; - } + public record Anyof1BoxedBoolean(boolean data) implements Anyof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Anyof1BoxedNumber extends Anyof1Boxed { - public final Number data; - private Anyof1BoxedNumber(Number data) { - this.data = data; - } + public record Anyof1BoxedNumber(Number data) implements Anyof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Anyof1BoxedString extends Anyof1Boxed { - public final String data; - private Anyof1BoxedString(String data) { - this.data = data; - } + public record Anyof1BoxedString(String data) implements Anyof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Anyof1BoxedList extends Anyof1Boxed { - public final FrozenList<@Nullable Object> data; - private Anyof1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Anyof1BoxedList(FrozenList<@Nullable Object> data) implements Anyof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Anyof1BoxedMap extends Anyof1Boxed { - public final FrozenMap<@Nullable Object> data; - private Anyof1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Anyof1BoxedMap(FrozenMap<@Nullable Object> data) implements Anyof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Anyof1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Anyof1BoxedList>, MapSchemaValidator, Anyof1BoxedMap> { + public static class Anyof1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Anyof1BoxedList>, MapSchemaValidator, Anyof1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -516,11 +487,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -551,11 +522,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -634,5 +605,24 @@ public Anyof1BoxedList validateAndBox(List arg, SchemaConfiguration configura public Anyof1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Anyof1BoxedMap(validate(arg, configuration)); } + @Override + public Anyof1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofComplexTypes.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofComplexTypes.java index 652c79e8ee9..1057b9bce71 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofComplexTypes.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofComplexTypes.java @@ -142,78 +142,54 @@ public Schema0Map0Builder getBuilderAfterBar(Map insta } - public static abstract sealed class Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { + @Nullable Object getData(); } - public static final class Schema0BoxedVoid extends Schema0Boxed { - public final Void data; - private Schema0BoxedVoid(Void data) { - this.data = data; - } + public record Schema0BoxedVoid(Void data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedBoolean extends Schema0Boxed { - public final boolean data; - private Schema0BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema0BoxedBoolean(boolean data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedNumber extends Schema0Boxed { - public final Number data; - private Schema0BoxedNumber(Number data) { - this.data = data; - } + public record Schema0BoxedNumber(Number data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedString extends Schema0Boxed { - public final String data; - private Schema0BoxedString(String data) { - this.data = data; - } + public record Schema0BoxedString(String data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedList extends Schema0Boxed { - public final FrozenList<@Nullable Object> data; - private Schema0BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedList(FrozenList<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedMap extends Schema0Boxed { - public final Schema0Map data; - private Schema0BoxedMap(Schema0Map data) { - this.data = data; - } + public record Schema0BoxedMap(Schema0Map data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator { + public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator { private static @Nullable Schema0 instance = null; protected Schema0() { @@ -317,11 +293,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -352,11 +328,11 @@ public Schema0Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -435,6 +411,25 @@ public Schema0BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema0BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema0BoxedMap(validate(arg, configuration)); } + @Override + public Schema0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class Foo extends StringJsonSchema.StringJsonSchema1 { @@ -522,78 +517,54 @@ public Schema1Map0Builder getBuilderAfterFoo(Map insta } - public static abstract sealed class Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { + @Nullable Object getData(); } - public static final class Schema1BoxedVoid extends Schema1Boxed { - public final Void data; - private Schema1BoxedVoid(Void data) { - this.data = data; - } + public record Schema1BoxedVoid(Void data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedBoolean extends Schema1Boxed { - public final boolean data; - private Schema1BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema1BoxedBoolean(boolean data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedNumber extends Schema1Boxed { - public final Number data; - private Schema1BoxedNumber(Number data) { - this.data = data; - } + public record Schema1BoxedNumber(Number data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedString extends Schema1Boxed { - public final String data; - private Schema1BoxedString(String data) { - this.data = data; - } + public record Schema1BoxedString(String data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedList extends Schema1Boxed { - public final FrozenList<@Nullable Object> data; - private Schema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedList(FrozenList<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedMap extends Schema1Boxed { - public final Schema1Map data; - private Schema1BoxedMap(Schema1Map data) { - this.data = data; - } + public record Schema1BoxedMap(Schema1Map data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator { + public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator { private static @Nullable Schema1 instance = null; protected Schema1() { @@ -697,11 +668,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -732,11 +703,11 @@ public Schema1Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -815,80 +786,75 @@ public Schema1BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema1BoxedMap(validate(arg, configuration)); } + @Override + public Schema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class AnyofComplexTypes1Boxed permits AnyofComplexTypes1BoxedVoid, AnyofComplexTypes1BoxedBoolean, AnyofComplexTypes1BoxedNumber, AnyofComplexTypes1BoxedString, AnyofComplexTypes1BoxedList, AnyofComplexTypes1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AnyofComplexTypes1Boxed permits AnyofComplexTypes1BoxedVoid, AnyofComplexTypes1BoxedBoolean, AnyofComplexTypes1BoxedNumber, AnyofComplexTypes1BoxedString, AnyofComplexTypes1BoxedList, AnyofComplexTypes1BoxedMap { + @Nullable Object getData(); } - public static final class AnyofComplexTypes1BoxedVoid extends AnyofComplexTypes1Boxed { - public final Void data; - private AnyofComplexTypes1BoxedVoid(Void data) { - this.data = data; - } + public record AnyofComplexTypes1BoxedVoid(Void data) implements AnyofComplexTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyofComplexTypes1BoxedBoolean extends AnyofComplexTypes1Boxed { - public final boolean data; - private AnyofComplexTypes1BoxedBoolean(boolean data) { - this.data = data; - } + public record AnyofComplexTypes1BoxedBoolean(boolean data) implements AnyofComplexTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyofComplexTypes1BoxedNumber extends AnyofComplexTypes1Boxed { - public final Number data; - private AnyofComplexTypes1BoxedNumber(Number data) { - this.data = data; - } + public record AnyofComplexTypes1BoxedNumber(Number data) implements AnyofComplexTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyofComplexTypes1BoxedString extends AnyofComplexTypes1Boxed { - public final String data; - private AnyofComplexTypes1BoxedString(String data) { - this.data = data; - } + public record AnyofComplexTypes1BoxedString(String data) implements AnyofComplexTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyofComplexTypes1BoxedList extends AnyofComplexTypes1Boxed { - public final FrozenList<@Nullable Object> data; - private AnyofComplexTypes1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record AnyofComplexTypes1BoxedList(FrozenList<@Nullable Object> data) implements AnyofComplexTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyofComplexTypes1BoxedMap extends AnyofComplexTypes1Boxed { - public final FrozenMap<@Nullable Object> data; - private AnyofComplexTypes1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record AnyofComplexTypes1BoxedMap(FrozenMap<@Nullable Object> data) implements AnyofComplexTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class AnyofComplexTypes1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AnyofComplexTypes1BoxedList>, MapSchemaValidator, AnyofComplexTypes1BoxedMap> { + public static class AnyofComplexTypes1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AnyofComplexTypes1BoxedList>, MapSchemaValidator, AnyofComplexTypes1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -996,11 +962,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -1031,11 +997,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1114,5 +1080,24 @@ public AnyofComplexTypes1BoxedList validateAndBox(List arg, SchemaConfigurati public AnyofComplexTypes1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyofComplexTypes1BoxedMap(validate(arg, configuration)); } + @Override + public AnyofComplexTypes1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofWithBaseSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofWithBaseSchema.java index 485bb707f91..c3885e3556d 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofWithBaseSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofWithBaseSchema.java @@ -35,78 +35,54 @@ public class AnyofWithBaseSchema { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { + @Nullable Object getData(); } - public static final class Schema0BoxedVoid extends Schema0Boxed { - public final Void data; - private Schema0BoxedVoid(Void data) { - this.data = data; - } + public record Schema0BoxedVoid(Void data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedBoolean extends Schema0Boxed { - public final boolean data; - private Schema0BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema0BoxedBoolean(boolean data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedNumber extends Schema0Boxed { - public final Number data; - private Schema0BoxedNumber(Number data) { - this.data = data; - } + public record Schema0BoxedNumber(Number data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedString extends Schema0Boxed { - public final String data; - private Schema0BoxedString(String data) { - this.data = data; - } + public record Schema0BoxedString(String data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedList extends Schema0Boxed { - public final FrozenList<@Nullable Object> data; - private Schema0BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedList(FrozenList<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedMap extends Schema0Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema0BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedMap(FrozenMap<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator, Schema0BoxedMap> { + public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator, Schema0BoxedMap> { private static @Nullable Schema0 instance = null; protected Schema0() { @@ -205,11 +181,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -240,11 +216,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -323,80 +299,75 @@ public Schema0BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema0BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema0BoxedMap(validate(arg, configuration)); } + @Override + public Schema0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { + @Nullable Object getData(); } - public static final class Schema1BoxedVoid extends Schema1Boxed { - public final Void data; - private Schema1BoxedVoid(Void data) { - this.data = data; - } + public record Schema1BoxedVoid(Void data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedBoolean extends Schema1Boxed { - public final boolean data; - private Schema1BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema1BoxedBoolean(boolean data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedNumber extends Schema1Boxed { - public final Number data; - private Schema1BoxedNumber(Number data) { - this.data = data; - } + public record Schema1BoxedNumber(Number data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedString extends Schema1Boxed { - public final String data; - private Schema1BoxedString(String data) { - this.data = data; - } + public record Schema1BoxedString(String data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedList extends Schema1Boxed { - public final FrozenList<@Nullable Object> data; - private Schema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedList(FrozenList<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedMap extends Schema1Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedMap(FrozenMap<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator, Schema1BoxedMap> { + public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator, Schema1BoxedMap> { private static @Nullable Schema1 instance = null; protected Schema1() { @@ -495,11 +466,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -530,11 +501,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -613,26 +584,41 @@ public Schema1BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema1BoxedMap(validate(arg, configuration)); } + @Override + public Schema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class AnyofWithBaseSchema1Boxed permits AnyofWithBaseSchema1BoxedString { - public abstract @Nullable Object data(); + public sealed interface AnyofWithBaseSchema1Boxed permits AnyofWithBaseSchema1BoxedString { + @Nullable Object getData(); } - public static final class AnyofWithBaseSchema1BoxedString extends AnyofWithBaseSchema1Boxed { - public final String data; - private AnyofWithBaseSchema1BoxedString(String data) { - this.data = data; - } + public record AnyofWithBaseSchema1BoxedString(String data) implements AnyofWithBaseSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class AnyofWithBaseSchema1 extends JsonSchema implements StringSchemaValidator { + public static class AnyofWithBaseSchema1 extends JsonSchema implements StringSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -689,5 +675,12 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val public AnyofWithBaseSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyofWithBaseSchema1BoxedString(validate(arg, configuration)); } + @Override + public AnyofWithBaseSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofWithOneEmptySchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofWithOneEmptySchema.java index fff47f1c4a3..8566d7392b2 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofWithOneEmptySchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofWithOneEmptySchema.java @@ -59,78 +59,54 @@ public static Schema1 getInstance() { } - public static abstract sealed class AnyofWithOneEmptySchema1Boxed permits AnyofWithOneEmptySchema1BoxedVoid, AnyofWithOneEmptySchema1BoxedBoolean, AnyofWithOneEmptySchema1BoxedNumber, AnyofWithOneEmptySchema1BoxedString, AnyofWithOneEmptySchema1BoxedList, AnyofWithOneEmptySchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AnyofWithOneEmptySchema1Boxed permits AnyofWithOneEmptySchema1BoxedVoid, AnyofWithOneEmptySchema1BoxedBoolean, AnyofWithOneEmptySchema1BoxedNumber, AnyofWithOneEmptySchema1BoxedString, AnyofWithOneEmptySchema1BoxedList, AnyofWithOneEmptySchema1BoxedMap { + @Nullable Object getData(); } - public static final class AnyofWithOneEmptySchema1BoxedVoid extends AnyofWithOneEmptySchema1Boxed { - public final Void data; - private AnyofWithOneEmptySchema1BoxedVoid(Void data) { - this.data = data; - } + public record AnyofWithOneEmptySchema1BoxedVoid(Void data) implements AnyofWithOneEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyofWithOneEmptySchema1BoxedBoolean extends AnyofWithOneEmptySchema1Boxed { - public final boolean data; - private AnyofWithOneEmptySchema1BoxedBoolean(boolean data) { - this.data = data; - } + public record AnyofWithOneEmptySchema1BoxedBoolean(boolean data) implements AnyofWithOneEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyofWithOneEmptySchema1BoxedNumber extends AnyofWithOneEmptySchema1Boxed { - public final Number data; - private AnyofWithOneEmptySchema1BoxedNumber(Number data) { - this.data = data; - } + public record AnyofWithOneEmptySchema1BoxedNumber(Number data) implements AnyofWithOneEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyofWithOneEmptySchema1BoxedString extends AnyofWithOneEmptySchema1Boxed { - public final String data; - private AnyofWithOneEmptySchema1BoxedString(String data) { - this.data = data; - } + public record AnyofWithOneEmptySchema1BoxedString(String data) implements AnyofWithOneEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyofWithOneEmptySchema1BoxedList extends AnyofWithOneEmptySchema1Boxed { - public final FrozenList<@Nullable Object> data; - private AnyofWithOneEmptySchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record AnyofWithOneEmptySchema1BoxedList(FrozenList<@Nullable Object> data) implements AnyofWithOneEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyofWithOneEmptySchema1BoxedMap extends AnyofWithOneEmptySchema1Boxed { - public final FrozenMap<@Nullable Object> data; - private AnyofWithOneEmptySchema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record AnyofWithOneEmptySchema1BoxedMap(FrozenMap<@Nullable Object> data) implements AnyofWithOneEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class AnyofWithOneEmptySchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AnyofWithOneEmptySchema1BoxedList>, MapSchemaValidator, AnyofWithOneEmptySchema1BoxedMap> { + public static class AnyofWithOneEmptySchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AnyofWithOneEmptySchema1BoxedList>, MapSchemaValidator, AnyofWithOneEmptySchema1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -238,11 +214,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -273,11 +249,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -356,5 +332,24 @@ public AnyofWithOneEmptySchema1BoxedList validateAndBox(List arg, SchemaConfi public AnyofWithOneEmptySchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyofWithOneEmptySchema1BoxedMap(validate(arg, configuration)); } + @Override + public AnyofWithOneEmptySchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayTypeMatchesArrays.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayTypeMatchesArrays.java index a77c6b97c7f..4a31884a01b 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayTypeMatchesArrays.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayTypeMatchesArrays.java @@ -107,24 +107,20 @@ public ArrayTypeMatchesArraysListBuilder add(Map item) { } - public static abstract sealed class ArrayTypeMatchesArrays1Boxed permits ArrayTypeMatchesArrays1BoxedList { - public abstract @Nullable Object data(); + public sealed interface ArrayTypeMatchesArrays1Boxed permits ArrayTypeMatchesArrays1BoxedList { + @Nullable Object getData(); } - public static final class ArrayTypeMatchesArrays1BoxedList extends ArrayTypeMatchesArrays1Boxed { - public final ArrayTypeMatchesArraysList data; - private ArrayTypeMatchesArrays1BoxedList(ArrayTypeMatchesArraysList data) { - this.data = data; - } + public record ArrayTypeMatchesArrays1BoxedList(ArrayTypeMatchesArraysList data) implements ArrayTypeMatchesArrays1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class ArrayTypeMatchesArrays1 extends JsonSchema implements ListSchemaValidator { + public static class ArrayTypeMatchesArrays1 extends JsonSchema implements ListSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -154,11 +150,11 @@ public ArrayTypeMatchesArraysList getNewInstance(List arg, List pathT for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -195,5 +191,12 @@ public ArrayTypeMatchesArraysList validate(List arg, SchemaConfiguration conf public ArrayTypeMatchesArrays1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ArrayTypeMatchesArrays1BoxedList(validate(arg, configuration)); } + @Override + public ArrayTypeMatchesArrays1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ByInt.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ByInt.java index 7c73de0f7d5..ebcbb032fc3 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ByInt.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ByInt.java @@ -36,78 +36,54 @@ public class ByInt { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class ByInt1Boxed permits ByInt1BoxedVoid, ByInt1BoxedBoolean, ByInt1BoxedNumber, ByInt1BoxedString, ByInt1BoxedList, ByInt1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface ByInt1Boxed permits ByInt1BoxedVoid, ByInt1BoxedBoolean, ByInt1BoxedNumber, ByInt1BoxedString, ByInt1BoxedList, ByInt1BoxedMap { + @Nullable Object getData(); } - public static final class ByInt1BoxedVoid extends ByInt1Boxed { - public final Void data; - private ByInt1BoxedVoid(Void data) { - this.data = data; - } + public record ByInt1BoxedVoid(Void data) implements ByInt1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ByInt1BoxedBoolean extends ByInt1Boxed { - public final boolean data; - private ByInt1BoxedBoolean(boolean data) { - this.data = data; - } + public record ByInt1BoxedBoolean(boolean data) implements ByInt1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ByInt1BoxedNumber extends ByInt1Boxed { - public final Number data; - private ByInt1BoxedNumber(Number data) { - this.data = data; - } + public record ByInt1BoxedNumber(Number data) implements ByInt1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ByInt1BoxedString extends ByInt1Boxed { - public final String data; - private ByInt1BoxedString(String data) { - this.data = data; - } + public record ByInt1BoxedString(String data) implements ByInt1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ByInt1BoxedList extends ByInt1Boxed { - public final FrozenList<@Nullable Object> data; - private ByInt1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ByInt1BoxedList(FrozenList<@Nullable Object> data) implements ByInt1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ByInt1BoxedMap extends ByInt1Boxed { - public final FrozenMap<@Nullable Object> data; - private ByInt1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ByInt1BoxedMap(FrozenMap<@Nullable Object> data) implements ByInt1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class ByInt1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ByInt1BoxedList>, MapSchemaValidator, ByInt1BoxedMap> { + public static class ByInt1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ByInt1BoxedList>, MapSchemaValidator, ByInt1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -212,11 +188,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -247,11 +223,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -330,5 +306,24 @@ public ByInt1BoxedList validateAndBox(List arg, SchemaConfiguration configura public ByInt1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ByInt1BoxedMap(validate(arg, configuration)); } + @Override + public ByInt1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ByNumber.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ByNumber.java index 2827c47bd81..828c756720c 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ByNumber.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ByNumber.java @@ -36,78 +36,54 @@ public class ByNumber { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class ByNumber1Boxed permits ByNumber1BoxedVoid, ByNumber1BoxedBoolean, ByNumber1BoxedNumber, ByNumber1BoxedString, ByNumber1BoxedList, ByNumber1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface ByNumber1Boxed permits ByNumber1BoxedVoid, ByNumber1BoxedBoolean, ByNumber1BoxedNumber, ByNumber1BoxedString, ByNumber1BoxedList, ByNumber1BoxedMap { + @Nullable Object getData(); } - public static final class ByNumber1BoxedVoid extends ByNumber1Boxed { - public final Void data; - private ByNumber1BoxedVoid(Void data) { - this.data = data; - } + public record ByNumber1BoxedVoid(Void data) implements ByNumber1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ByNumber1BoxedBoolean extends ByNumber1Boxed { - public final boolean data; - private ByNumber1BoxedBoolean(boolean data) { - this.data = data; - } + public record ByNumber1BoxedBoolean(boolean data) implements ByNumber1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ByNumber1BoxedNumber extends ByNumber1Boxed { - public final Number data; - private ByNumber1BoxedNumber(Number data) { - this.data = data; - } + public record ByNumber1BoxedNumber(Number data) implements ByNumber1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ByNumber1BoxedString extends ByNumber1Boxed { - public final String data; - private ByNumber1BoxedString(String data) { - this.data = data; - } + public record ByNumber1BoxedString(String data) implements ByNumber1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ByNumber1BoxedList extends ByNumber1Boxed { - public final FrozenList<@Nullable Object> data; - private ByNumber1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ByNumber1BoxedList(FrozenList<@Nullable Object> data) implements ByNumber1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ByNumber1BoxedMap extends ByNumber1Boxed { - public final FrozenMap<@Nullable Object> data; - private ByNumber1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ByNumber1BoxedMap(FrozenMap<@Nullable Object> data) implements ByNumber1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class ByNumber1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ByNumber1BoxedList>, MapSchemaValidator, ByNumber1BoxedMap> { + public static class ByNumber1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ByNumber1BoxedList>, MapSchemaValidator, ByNumber1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -212,11 +188,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -247,11 +223,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -330,5 +306,24 @@ public ByNumber1BoxedList validateAndBox(List arg, SchemaConfiguration config public ByNumber1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ByNumber1BoxedMap(validate(arg, configuration)); } + @Override + public ByNumber1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/BySmallNumber.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/BySmallNumber.java index 2a0c8430099..c91371daa4a 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/BySmallNumber.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/BySmallNumber.java @@ -36,78 +36,54 @@ public class BySmallNumber { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class BySmallNumber1Boxed permits BySmallNumber1BoxedVoid, BySmallNumber1BoxedBoolean, BySmallNumber1BoxedNumber, BySmallNumber1BoxedString, BySmallNumber1BoxedList, BySmallNumber1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface BySmallNumber1Boxed permits BySmallNumber1BoxedVoid, BySmallNumber1BoxedBoolean, BySmallNumber1BoxedNumber, BySmallNumber1BoxedString, BySmallNumber1BoxedList, BySmallNumber1BoxedMap { + @Nullable Object getData(); } - public static final class BySmallNumber1BoxedVoid extends BySmallNumber1Boxed { - public final Void data; - private BySmallNumber1BoxedVoid(Void data) { - this.data = data; - } + public record BySmallNumber1BoxedVoid(Void data) implements BySmallNumber1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class BySmallNumber1BoxedBoolean extends BySmallNumber1Boxed { - public final boolean data; - private BySmallNumber1BoxedBoolean(boolean data) { - this.data = data; - } + public record BySmallNumber1BoxedBoolean(boolean data) implements BySmallNumber1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class BySmallNumber1BoxedNumber extends BySmallNumber1Boxed { - public final Number data; - private BySmallNumber1BoxedNumber(Number data) { - this.data = data; - } + public record BySmallNumber1BoxedNumber(Number data) implements BySmallNumber1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class BySmallNumber1BoxedString extends BySmallNumber1Boxed { - public final String data; - private BySmallNumber1BoxedString(String data) { - this.data = data; - } + public record BySmallNumber1BoxedString(String data) implements BySmallNumber1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class BySmallNumber1BoxedList extends BySmallNumber1Boxed { - public final FrozenList<@Nullable Object> data; - private BySmallNumber1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record BySmallNumber1BoxedList(FrozenList<@Nullable Object> data) implements BySmallNumber1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class BySmallNumber1BoxedMap extends BySmallNumber1Boxed { - public final FrozenMap<@Nullable Object> data; - private BySmallNumber1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record BySmallNumber1BoxedMap(FrozenMap<@Nullable Object> data) implements BySmallNumber1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class BySmallNumber1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, BySmallNumber1BoxedList>, MapSchemaValidator, BySmallNumber1BoxedMap> { + public static class BySmallNumber1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, BySmallNumber1BoxedList>, MapSchemaValidator, BySmallNumber1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -212,11 +188,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -247,11 +223,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -330,5 +306,24 @@ public BySmallNumber1BoxedList validateAndBox(List arg, SchemaConfiguration c public BySmallNumber1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new BySmallNumber1BoxedMap(validate(arg, configuration)); } + @Override + public BySmallNumber1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeFormat.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeFormat.java index 5eeb37ac76c..fd3953683af 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeFormat.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeFormat.java @@ -35,78 +35,54 @@ public class DateTimeFormat { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class DateTimeFormat1Boxed permits DateTimeFormat1BoxedVoid, DateTimeFormat1BoxedBoolean, DateTimeFormat1BoxedNumber, DateTimeFormat1BoxedString, DateTimeFormat1BoxedList, DateTimeFormat1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface DateTimeFormat1Boxed permits DateTimeFormat1BoxedVoid, DateTimeFormat1BoxedBoolean, DateTimeFormat1BoxedNumber, DateTimeFormat1BoxedString, DateTimeFormat1BoxedList, DateTimeFormat1BoxedMap { + @Nullable Object getData(); } - public static final class DateTimeFormat1BoxedVoid extends DateTimeFormat1Boxed { - public final Void data; - private DateTimeFormat1BoxedVoid(Void data) { - this.data = data; - } + public record DateTimeFormat1BoxedVoid(Void data) implements DateTimeFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DateTimeFormat1BoxedBoolean extends DateTimeFormat1Boxed { - public final boolean data; - private DateTimeFormat1BoxedBoolean(boolean data) { - this.data = data; - } + public record DateTimeFormat1BoxedBoolean(boolean data) implements DateTimeFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DateTimeFormat1BoxedNumber extends DateTimeFormat1Boxed { - public final Number data; - private DateTimeFormat1BoxedNumber(Number data) { - this.data = data; - } + public record DateTimeFormat1BoxedNumber(Number data) implements DateTimeFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DateTimeFormat1BoxedString extends DateTimeFormat1Boxed { - public final String data; - private DateTimeFormat1BoxedString(String data) { - this.data = data; - } + public record DateTimeFormat1BoxedString(String data) implements DateTimeFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DateTimeFormat1BoxedList extends DateTimeFormat1Boxed { - public final FrozenList<@Nullable Object> data; - private DateTimeFormat1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record DateTimeFormat1BoxedList(FrozenList<@Nullable Object> data) implements DateTimeFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DateTimeFormat1BoxedMap extends DateTimeFormat1Boxed { - public final FrozenMap<@Nullable Object> data; - private DateTimeFormat1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record DateTimeFormat1BoxedMap(FrozenMap<@Nullable Object> data) implements DateTimeFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class DateTimeFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, DateTimeFormat1BoxedList>, MapSchemaValidator, DateTimeFormat1BoxedMap> { + public static class DateTimeFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, DateTimeFormat1BoxedList>, MapSchemaValidator, DateTimeFormat1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public DateTimeFormat1BoxedList validateAndBox(List arg, SchemaConfiguration public DateTimeFormat1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DateTimeFormat1BoxedMap(validate(arg, configuration)); } + @Override + public DateTimeFormat1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EmailFormat.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EmailFormat.java index c2b5bddb5d4..97090800803 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EmailFormat.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EmailFormat.java @@ -35,78 +35,54 @@ public class EmailFormat { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class EmailFormat1Boxed permits EmailFormat1BoxedVoid, EmailFormat1BoxedBoolean, EmailFormat1BoxedNumber, EmailFormat1BoxedString, EmailFormat1BoxedList, EmailFormat1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface EmailFormat1Boxed permits EmailFormat1BoxedVoid, EmailFormat1BoxedBoolean, EmailFormat1BoxedNumber, EmailFormat1BoxedString, EmailFormat1BoxedList, EmailFormat1BoxedMap { + @Nullable Object getData(); } - public static final class EmailFormat1BoxedVoid extends EmailFormat1Boxed { - public final Void data; - private EmailFormat1BoxedVoid(Void data) { - this.data = data; - } + public record EmailFormat1BoxedVoid(Void data) implements EmailFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class EmailFormat1BoxedBoolean extends EmailFormat1Boxed { - public final boolean data; - private EmailFormat1BoxedBoolean(boolean data) { - this.data = data; - } + public record EmailFormat1BoxedBoolean(boolean data) implements EmailFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class EmailFormat1BoxedNumber extends EmailFormat1Boxed { - public final Number data; - private EmailFormat1BoxedNumber(Number data) { - this.data = data; - } + public record EmailFormat1BoxedNumber(Number data) implements EmailFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class EmailFormat1BoxedString extends EmailFormat1Boxed { - public final String data; - private EmailFormat1BoxedString(String data) { - this.data = data; - } + public record EmailFormat1BoxedString(String data) implements EmailFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class EmailFormat1BoxedList extends EmailFormat1Boxed { - public final FrozenList<@Nullable Object> data; - private EmailFormat1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record EmailFormat1BoxedList(FrozenList<@Nullable Object> data) implements EmailFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class EmailFormat1BoxedMap extends EmailFormat1Boxed { - public final FrozenMap<@Nullable Object> data; - private EmailFormat1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record EmailFormat1BoxedMap(FrozenMap<@Nullable Object> data) implements EmailFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class EmailFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, EmailFormat1BoxedList>, MapSchemaValidator, EmailFormat1BoxedMap> { + public static class EmailFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, EmailFormat1BoxedList>, MapSchemaValidator, EmailFormat1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public EmailFormat1BoxedList validateAndBox(List arg, SchemaConfiguration con public EmailFormat1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new EmailFormat1BoxedMap(validate(arg, configuration)); } + @Override + public EmailFormat1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWith0DoesNotMatchFalse.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWith0DoesNotMatchFalse.java index 4038bd2e7ed..925c8e678d9 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWith0DoesNotMatchFalse.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWith0DoesNotMatchFalse.java @@ -77,24 +77,20 @@ public double value() { } - public static abstract sealed class EnumWith0DoesNotMatchFalse1Boxed permits EnumWith0DoesNotMatchFalse1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface EnumWith0DoesNotMatchFalse1Boxed permits EnumWith0DoesNotMatchFalse1BoxedNumber { + @Nullable Object getData(); } - public static final class EnumWith0DoesNotMatchFalse1BoxedNumber extends EnumWith0DoesNotMatchFalse1Boxed { - public final Number data; - private EnumWith0DoesNotMatchFalse1BoxedNumber(Number data) { - this.data = data; - } + public record EnumWith0DoesNotMatchFalse1BoxedNumber(Number data) implements EnumWith0DoesNotMatchFalse1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class EnumWith0DoesNotMatchFalse1 extends JsonSchema implements IntegerEnumValidator, LongEnumValidator, FloatEnumValidator, DoubleEnumValidator, NumberSchemaValidator { + public static class EnumWith0DoesNotMatchFalse1 extends JsonSchema implements IntegerEnumValidator, LongEnumValidator, FloatEnumValidator, DoubleEnumValidator, NumberSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -189,5 +185,12 @@ public double validate(DoubleEnumWith0DoesNotMatchFalseEnums arg,SchemaConfigura public EnumWith0DoesNotMatchFalse1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new EnumWith0DoesNotMatchFalse1BoxedNumber(validate(arg, configuration)); } + @Override + public EnumWith0DoesNotMatchFalse1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWith1DoesNotMatchTrue.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWith1DoesNotMatchTrue.java index caa23849d46..3fc1f77d7d0 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWith1DoesNotMatchTrue.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWith1DoesNotMatchTrue.java @@ -77,24 +77,20 @@ public double value() { } - public static abstract sealed class EnumWith1DoesNotMatchTrue1Boxed permits EnumWith1DoesNotMatchTrue1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface EnumWith1DoesNotMatchTrue1Boxed permits EnumWith1DoesNotMatchTrue1BoxedNumber { + @Nullable Object getData(); } - public static final class EnumWith1DoesNotMatchTrue1BoxedNumber extends EnumWith1DoesNotMatchTrue1Boxed { - public final Number data; - private EnumWith1DoesNotMatchTrue1BoxedNumber(Number data) { - this.data = data; - } + public record EnumWith1DoesNotMatchTrue1BoxedNumber(Number data) implements EnumWith1DoesNotMatchTrue1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class EnumWith1DoesNotMatchTrue1 extends JsonSchema implements IntegerEnumValidator, LongEnumValidator, FloatEnumValidator, DoubleEnumValidator, NumberSchemaValidator { + public static class EnumWith1DoesNotMatchTrue1 extends JsonSchema implements IntegerEnumValidator, LongEnumValidator, FloatEnumValidator, DoubleEnumValidator, NumberSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -189,5 +185,12 @@ public double validate(DoubleEnumWith1DoesNotMatchTrueEnums arg,SchemaConfigurat public EnumWith1DoesNotMatchTrue1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new EnumWith1DoesNotMatchTrue1BoxedNumber(validate(arg, configuration)); } + @Override + public EnumWith1DoesNotMatchTrue1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithEscapedCharacters.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithEscapedCharacters.java index f10f7b3118b..d5dab170d98 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithEscapedCharacters.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithEscapedCharacters.java @@ -35,24 +35,20 @@ public String value() { } - public static abstract sealed class EnumWithEscapedCharacters1Boxed permits EnumWithEscapedCharacters1BoxedString { - public abstract @Nullable Object data(); + public sealed interface EnumWithEscapedCharacters1Boxed permits EnumWithEscapedCharacters1BoxedString { + @Nullable Object getData(); } - public static final class EnumWithEscapedCharacters1BoxedString extends EnumWithEscapedCharacters1Boxed { - public final String data; - private EnumWithEscapedCharacters1BoxedString(String data) { - this.data = data; - } + public record EnumWithEscapedCharacters1BoxedString(String data) implements EnumWithEscapedCharacters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class EnumWithEscapedCharacters1 extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class EnumWithEscapedCharacters1 extends JsonSchema implements StringSchemaValidator, StringEnumValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -114,5 +110,12 @@ public String validate(StringEnumWithEscapedCharactersEnums arg,SchemaConfigurat public EnumWithEscapedCharacters1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new EnumWithEscapedCharacters1BoxedString(validate(arg, configuration)); } + @Override + public EnumWithEscapedCharacters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithFalseDoesNotMatch0.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithFalseDoesNotMatch0.java index 2562191b685..bfc0223b2f7 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithFalseDoesNotMatch0.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithFalseDoesNotMatch0.java @@ -34,24 +34,20 @@ public boolean value() { } - public static abstract sealed class EnumWithFalseDoesNotMatch01Boxed permits EnumWithFalseDoesNotMatch01BoxedBoolean { - public abstract @Nullable Object data(); + public sealed interface EnumWithFalseDoesNotMatch01Boxed permits EnumWithFalseDoesNotMatch01BoxedBoolean { + @Nullable Object getData(); } - public static final class EnumWithFalseDoesNotMatch01BoxedBoolean extends EnumWithFalseDoesNotMatch01Boxed { - public final boolean data; - private EnumWithFalseDoesNotMatch01BoxedBoolean(boolean data) { - this.data = data; - } + public record EnumWithFalseDoesNotMatch01BoxedBoolean(boolean data) implements EnumWithFalseDoesNotMatch01Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class EnumWithFalseDoesNotMatch01 extends JsonSchema implements BooleanSchemaValidator, BooleanEnumValidator { + public static class EnumWithFalseDoesNotMatch01 extends JsonSchema implements BooleanSchemaValidator, BooleanEnumValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -112,5 +108,13 @@ public boolean validate(BooleanEnumWithFalseDoesNotMatch0Enums arg,SchemaConfigu public EnumWithFalseDoesNotMatch01BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new EnumWithFalseDoesNotMatch01BoxedBoolean(validate(arg, configuration)); } + @Override + public EnumWithFalseDoesNotMatch01Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithTrueDoesNotMatch1.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithTrueDoesNotMatch1.java index 1f5b945b758..4581de4b395 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithTrueDoesNotMatch1.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithTrueDoesNotMatch1.java @@ -34,24 +34,20 @@ public boolean value() { } - public static abstract sealed class EnumWithTrueDoesNotMatch11Boxed permits EnumWithTrueDoesNotMatch11BoxedBoolean { - public abstract @Nullable Object data(); + public sealed interface EnumWithTrueDoesNotMatch11Boxed permits EnumWithTrueDoesNotMatch11BoxedBoolean { + @Nullable Object getData(); } - public static final class EnumWithTrueDoesNotMatch11BoxedBoolean extends EnumWithTrueDoesNotMatch11Boxed { - public final boolean data; - private EnumWithTrueDoesNotMatch11BoxedBoolean(boolean data) { - this.data = data; - } + public record EnumWithTrueDoesNotMatch11BoxedBoolean(boolean data) implements EnumWithTrueDoesNotMatch11Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class EnumWithTrueDoesNotMatch11 extends JsonSchema implements BooleanSchemaValidator, BooleanEnumValidator { + public static class EnumWithTrueDoesNotMatch11 extends JsonSchema implements BooleanSchemaValidator, BooleanEnumValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -112,5 +108,13 @@ public boolean validate(BooleanEnumWithTrueDoesNotMatch1Enums arg,SchemaConfigur public EnumWithTrueDoesNotMatch11BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new EnumWithTrueDoesNotMatch11BoxedBoolean(validate(arg, configuration)); } + @Override + public EnumWithTrueDoesNotMatch11Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumsInProperties.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumsInProperties.java index a34b3eb5bd4..3822c82493e 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumsInProperties.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumsInProperties.java @@ -44,24 +44,20 @@ public String value() { } - public static abstract sealed class FooBoxed permits FooBoxedString { - public abstract @Nullable Object data(); + public sealed interface FooBoxed permits FooBoxedString { + @Nullable Object getData(); } - public static final class FooBoxedString extends FooBoxed { - public final String data; - private FooBoxedString(String data) { - this.data = data; - } + public record FooBoxedString(String data) implements FooBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Foo extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class Foo extends JsonSchema implements StringSchemaValidator, StringEnumValidator { private static @Nullable Foo instance = null; protected Foo() { @@ -116,6 +112,13 @@ public String validate(StringFooEnums arg,SchemaConfiguration configuration) thr public FooBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new FooBoxedString(validate(arg, configuration)); } + @Override + public FooBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public enum StringBarEnums implements StringValueMethod { BAR("bar"); @@ -130,24 +133,20 @@ public String value() { } - public static abstract sealed class BarBoxed permits BarBoxedString { - public abstract @Nullable Object data(); + public sealed interface BarBoxed permits BarBoxedString { + @Nullable Object getData(); } - public static final class BarBoxedString extends BarBoxed { - public final String data; - private BarBoxedString(String data) { - this.data = data; - } + public record BarBoxedString(String data) implements BarBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Bar extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class Bar extends JsonSchema implements StringSchemaValidator, StringEnumValidator { private static @Nullable Bar instance = null; protected Bar() { @@ -202,6 +201,13 @@ public String validate(StringBarEnums arg,SchemaConfiguration configuration) thr public BarBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new BarBoxedString(validate(arg, configuration)); } + @Override + public BarBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class EnumsInPropertiesMap extends FrozenMap<@Nullable Object> { @@ -317,23 +323,19 @@ public EnumsInPropertiesMap0Builder getBuilderAfterBar(Map { + public static class EnumsInProperties1 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 @@ -373,11 +375,11 @@ public EnumsInPropertiesMap getNewInstance(Map arg, List pathToIte List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -414,6 +416,13 @@ public EnumsInPropertiesMap validate(Map arg, SchemaConfiguration configur public EnumsInProperties1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new EnumsInProperties1BoxedMap(validate(arg, configuration)); } + @Override + public EnumsInProperties1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ForbiddenProperty.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ForbiddenProperty.java index 5193de6d6da..75ee6ca186a 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ForbiddenProperty.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ForbiddenProperty.java @@ -159,78 +159,54 @@ public ForbiddenPropertyMapBuilder getBuilderAfterAdditionalProperty(Map data; - private ForbiddenProperty1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ForbiddenProperty1BoxedList(FrozenList<@Nullable Object> data) implements ForbiddenProperty1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ForbiddenProperty1BoxedMap extends ForbiddenProperty1Boxed { - public final ForbiddenPropertyMap data; - private ForbiddenProperty1BoxedMap(ForbiddenPropertyMap data) { - this.data = data; - } + public record ForbiddenProperty1BoxedMap(ForbiddenPropertyMap data) implements ForbiddenProperty1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class ForbiddenProperty1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ForbiddenProperty1BoxedList>, MapSchemaValidator { + public static class ForbiddenProperty1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ForbiddenProperty1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -337,11 +313,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -372,11 +348,11 @@ public ForbiddenPropertyMap getNewInstance(Map arg, List pathToIte List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -455,5 +431,24 @@ public ForbiddenProperty1BoxedList validateAndBox(List arg, SchemaConfigurati public ForbiddenProperty1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ForbiddenProperty1BoxedMap(validate(arg, configuration)); } + @Override + public ForbiddenProperty1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/HostnameFormat.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/HostnameFormat.java index 6ec1cc93896..da84ef4c6ed 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/HostnameFormat.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/HostnameFormat.java @@ -35,78 +35,54 @@ public class HostnameFormat { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class HostnameFormat1Boxed permits HostnameFormat1BoxedVoid, HostnameFormat1BoxedBoolean, HostnameFormat1BoxedNumber, HostnameFormat1BoxedString, HostnameFormat1BoxedList, HostnameFormat1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface HostnameFormat1Boxed permits HostnameFormat1BoxedVoid, HostnameFormat1BoxedBoolean, HostnameFormat1BoxedNumber, HostnameFormat1BoxedString, HostnameFormat1BoxedList, HostnameFormat1BoxedMap { + @Nullable Object getData(); } - public static final class HostnameFormat1BoxedVoid extends HostnameFormat1Boxed { - public final Void data; - private HostnameFormat1BoxedVoid(Void data) { - this.data = data; - } + public record HostnameFormat1BoxedVoid(Void data) implements HostnameFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class HostnameFormat1BoxedBoolean extends HostnameFormat1Boxed { - public final boolean data; - private HostnameFormat1BoxedBoolean(boolean data) { - this.data = data; - } + public record HostnameFormat1BoxedBoolean(boolean data) implements HostnameFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class HostnameFormat1BoxedNumber extends HostnameFormat1Boxed { - public final Number data; - private HostnameFormat1BoxedNumber(Number data) { - this.data = data; - } + public record HostnameFormat1BoxedNumber(Number data) implements HostnameFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class HostnameFormat1BoxedString extends HostnameFormat1Boxed { - public final String data; - private HostnameFormat1BoxedString(String data) { - this.data = data; - } + public record HostnameFormat1BoxedString(String data) implements HostnameFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class HostnameFormat1BoxedList extends HostnameFormat1Boxed { - public final FrozenList<@Nullable Object> data; - private HostnameFormat1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record HostnameFormat1BoxedList(FrozenList<@Nullable Object> data) implements HostnameFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class HostnameFormat1BoxedMap extends HostnameFormat1Boxed { - public final FrozenMap<@Nullable Object> data; - private HostnameFormat1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record HostnameFormat1BoxedMap(FrozenMap<@Nullable Object> data) implements HostnameFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class HostnameFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, HostnameFormat1BoxedList>, MapSchemaValidator, HostnameFormat1BoxedMap> { + public static class HostnameFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, HostnameFormat1BoxedList>, MapSchemaValidator, HostnameFormat1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public HostnameFormat1BoxedList validateAndBox(List arg, SchemaConfiguration public HostnameFormat1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new HostnameFormat1BoxedMap(validate(arg, configuration)); } + @Override + public HostnameFormat1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.java index c8072c827a2..e473cb0c78d 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.java @@ -20,24 +20,20 @@ public class InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1Boxed permits InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1Boxed permits InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1BoxedNumber { + @Nullable Object getData(); } - public static final class InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1BoxedNumber extends InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1Boxed { - public final Number data; - private InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1BoxedNumber(Number data) { - this.data = data; - } + public record InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1BoxedNumber(Number data) implements InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1 extends JsonSchema implements NumberSchemaValidator { + public static class InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1 extends JsonSchema implements NumberSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -111,5 +107,12 @@ public double validate(double arg, SchemaConfiguration configuration) throws Val public InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1BoxedNumber(validate(arg, configuration)); } + @Override + public InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/InvalidStringValueForDefault.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/InvalidStringValueForDefault.java index 64f3c72e996..bcb1f0ca8e1 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/InvalidStringValueForDefault.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/InvalidStringValueForDefault.java @@ -38,24 +38,20 @@ public class InvalidStringValueForDefault { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class BarBoxed permits BarBoxedString { - public abstract @Nullable Object data(); + public sealed interface BarBoxed permits BarBoxedString { + @Nullable Object getData(); } - public static final class BarBoxedString extends BarBoxed { - public final String data; - private BarBoxedString(String data) { - this.data = data; - } + public record BarBoxedString(String data) implements BarBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Bar extends JsonSchema implements StringSchemaValidator, DefaultValueMethod { + public static class Bar extends JsonSchema implements StringSchemaValidator, DefaultValueMethod { private static @Nullable Bar instance = null; protected Bar() { @@ -110,6 +106,13 @@ public String defaultValue() { public BarBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new BarBoxedString(validate(arg, configuration)); } + @Override + public BarBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class InvalidStringValueForDefaultMap extends FrozenMap<@Nullable Object> { @@ -178,78 +181,54 @@ public InvalidStringValueForDefaultMapBuilder getBuilderAfterAdditionalProperty( } - public static abstract sealed class InvalidStringValueForDefault1Boxed permits InvalidStringValueForDefault1BoxedVoid, InvalidStringValueForDefault1BoxedBoolean, InvalidStringValueForDefault1BoxedNumber, InvalidStringValueForDefault1BoxedString, InvalidStringValueForDefault1BoxedList, InvalidStringValueForDefault1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface InvalidStringValueForDefault1Boxed permits InvalidStringValueForDefault1BoxedVoid, InvalidStringValueForDefault1BoxedBoolean, InvalidStringValueForDefault1BoxedNumber, InvalidStringValueForDefault1BoxedString, InvalidStringValueForDefault1BoxedList, InvalidStringValueForDefault1BoxedMap { + @Nullable Object getData(); } - public static final class InvalidStringValueForDefault1BoxedVoid extends InvalidStringValueForDefault1Boxed { - public final Void data; - private InvalidStringValueForDefault1BoxedVoid(Void data) { - this.data = data; - } + public record InvalidStringValueForDefault1BoxedVoid(Void data) implements InvalidStringValueForDefault1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class InvalidStringValueForDefault1BoxedBoolean extends InvalidStringValueForDefault1Boxed { - public final boolean data; - private InvalidStringValueForDefault1BoxedBoolean(boolean data) { - this.data = data; - } + public record InvalidStringValueForDefault1BoxedBoolean(boolean data) implements InvalidStringValueForDefault1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class InvalidStringValueForDefault1BoxedNumber extends InvalidStringValueForDefault1Boxed { - public final Number data; - private InvalidStringValueForDefault1BoxedNumber(Number data) { - this.data = data; - } + public record InvalidStringValueForDefault1BoxedNumber(Number data) implements InvalidStringValueForDefault1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class InvalidStringValueForDefault1BoxedString extends InvalidStringValueForDefault1Boxed { - public final String data; - private InvalidStringValueForDefault1BoxedString(String data) { - this.data = data; - } + public record InvalidStringValueForDefault1BoxedString(String data) implements InvalidStringValueForDefault1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class InvalidStringValueForDefault1BoxedList extends InvalidStringValueForDefault1Boxed { - public final FrozenList<@Nullable Object> data; - private InvalidStringValueForDefault1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record InvalidStringValueForDefault1BoxedList(FrozenList<@Nullable Object> data) implements InvalidStringValueForDefault1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class InvalidStringValueForDefault1BoxedMap extends InvalidStringValueForDefault1Boxed { - public final InvalidStringValueForDefaultMap data; - private InvalidStringValueForDefault1BoxedMap(InvalidStringValueForDefaultMap data) { - this.data = data; - } + public record InvalidStringValueForDefault1BoxedMap(InvalidStringValueForDefaultMap data) implements InvalidStringValueForDefault1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class InvalidStringValueForDefault1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, InvalidStringValueForDefault1BoxedList>, MapSchemaValidator { + public static class InvalidStringValueForDefault1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, InvalidStringValueForDefault1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -356,11 +335,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -391,11 +370,11 @@ public InvalidStringValueForDefaultMap getNewInstance(Map arg, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -474,5 +453,24 @@ public InvalidStringValueForDefault1BoxedList validateAndBox(List arg, Schema public InvalidStringValueForDefault1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new InvalidStringValueForDefault1BoxedMap(validate(arg, configuration)); } + @Override + public InvalidStringValueForDefault1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Ipv4Format.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Ipv4Format.java index d891e096c49..9db27444b5d 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Ipv4Format.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Ipv4Format.java @@ -35,78 +35,54 @@ public class Ipv4Format { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class Ipv4Format1Boxed permits Ipv4Format1BoxedVoid, Ipv4Format1BoxedBoolean, Ipv4Format1BoxedNumber, Ipv4Format1BoxedString, Ipv4Format1BoxedList, Ipv4Format1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Ipv4Format1Boxed permits Ipv4Format1BoxedVoid, Ipv4Format1BoxedBoolean, Ipv4Format1BoxedNumber, Ipv4Format1BoxedString, Ipv4Format1BoxedList, Ipv4Format1BoxedMap { + @Nullable Object getData(); } - public static final class Ipv4Format1BoxedVoid extends Ipv4Format1Boxed { - public final Void data; - private Ipv4Format1BoxedVoid(Void data) { - this.data = data; - } + public record Ipv4Format1BoxedVoid(Void data) implements Ipv4Format1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Ipv4Format1BoxedBoolean extends Ipv4Format1Boxed { - public final boolean data; - private Ipv4Format1BoxedBoolean(boolean data) { - this.data = data; - } + public record Ipv4Format1BoxedBoolean(boolean data) implements Ipv4Format1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Ipv4Format1BoxedNumber extends Ipv4Format1Boxed { - public final Number data; - private Ipv4Format1BoxedNumber(Number data) { - this.data = data; - } + public record Ipv4Format1BoxedNumber(Number data) implements Ipv4Format1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Ipv4Format1BoxedString extends Ipv4Format1Boxed { - public final String data; - private Ipv4Format1BoxedString(String data) { - this.data = data; - } + public record Ipv4Format1BoxedString(String data) implements Ipv4Format1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Ipv4Format1BoxedList extends Ipv4Format1Boxed { - public final FrozenList<@Nullable Object> data; - private Ipv4Format1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Ipv4Format1BoxedList(FrozenList<@Nullable Object> data) implements Ipv4Format1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Ipv4Format1BoxedMap extends Ipv4Format1Boxed { - public final FrozenMap<@Nullable Object> data; - private Ipv4Format1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Ipv4Format1BoxedMap(FrozenMap<@Nullable Object> data) implements Ipv4Format1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Ipv4Format1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Ipv4Format1BoxedList>, MapSchemaValidator, Ipv4Format1BoxedMap> { + public static class Ipv4Format1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Ipv4Format1BoxedList>, MapSchemaValidator, Ipv4Format1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public Ipv4Format1BoxedList validateAndBox(List arg, SchemaConfiguration conf public Ipv4Format1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Ipv4Format1BoxedMap(validate(arg, configuration)); } + @Override + public Ipv4Format1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Ipv6Format.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Ipv6Format.java index a951cba8480..f52011acf83 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Ipv6Format.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Ipv6Format.java @@ -35,78 +35,54 @@ public class Ipv6Format { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class Ipv6Format1Boxed permits Ipv6Format1BoxedVoid, Ipv6Format1BoxedBoolean, Ipv6Format1BoxedNumber, Ipv6Format1BoxedString, Ipv6Format1BoxedList, Ipv6Format1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Ipv6Format1Boxed permits Ipv6Format1BoxedVoid, Ipv6Format1BoxedBoolean, Ipv6Format1BoxedNumber, Ipv6Format1BoxedString, Ipv6Format1BoxedList, Ipv6Format1BoxedMap { + @Nullable Object getData(); } - public static final class Ipv6Format1BoxedVoid extends Ipv6Format1Boxed { - public final Void data; - private Ipv6Format1BoxedVoid(Void data) { - this.data = data; - } + public record Ipv6Format1BoxedVoid(Void data) implements Ipv6Format1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Ipv6Format1BoxedBoolean extends Ipv6Format1Boxed { - public final boolean data; - private Ipv6Format1BoxedBoolean(boolean data) { - this.data = data; - } + public record Ipv6Format1BoxedBoolean(boolean data) implements Ipv6Format1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Ipv6Format1BoxedNumber extends Ipv6Format1Boxed { - public final Number data; - private Ipv6Format1BoxedNumber(Number data) { - this.data = data; - } + public record Ipv6Format1BoxedNumber(Number data) implements Ipv6Format1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Ipv6Format1BoxedString extends Ipv6Format1Boxed { - public final String data; - private Ipv6Format1BoxedString(String data) { - this.data = data; - } + public record Ipv6Format1BoxedString(String data) implements Ipv6Format1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Ipv6Format1BoxedList extends Ipv6Format1Boxed { - public final FrozenList<@Nullable Object> data; - private Ipv6Format1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Ipv6Format1BoxedList(FrozenList<@Nullable Object> data) implements Ipv6Format1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Ipv6Format1BoxedMap extends Ipv6Format1Boxed { - public final FrozenMap<@Nullable Object> data; - private Ipv6Format1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Ipv6Format1BoxedMap(FrozenMap<@Nullable Object> data) implements Ipv6Format1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Ipv6Format1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Ipv6Format1BoxedList>, MapSchemaValidator, Ipv6Format1BoxedMap> { + public static class Ipv6Format1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Ipv6Format1BoxedList>, MapSchemaValidator, Ipv6Format1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public Ipv6Format1BoxedList validateAndBox(List arg, SchemaConfiguration conf public Ipv6Format1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Ipv6Format1BoxedMap(validate(arg, configuration)); } + @Override + public Ipv6Format1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/JsonPointerFormat.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/JsonPointerFormat.java index 2699ff60012..fce4b261f1d 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/JsonPointerFormat.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/JsonPointerFormat.java @@ -35,78 +35,54 @@ public class JsonPointerFormat { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class JsonPointerFormat1Boxed permits JsonPointerFormat1BoxedVoid, JsonPointerFormat1BoxedBoolean, JsonPointerFormat1BoxedNumber, JsonPointerFormat1BoxedString, JsonPointerFormat1BoxedList, JsonPointerFormat1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface JsonPointerFormat1Boxed permits JsonPointerFormat1BoxedVoid, JsonPointerFormat1BoxedBoolean, JsonPointerFormat1BoxedNumber, JsonPointerFormat1BoxedString, JsonPointerFormat1BoxedList, JsonPointerFormat1BoxedMap { + @Nullable Object getData(); } - public static final class JsonPointerFormat1BoxedVoid extends JsonPointerFormat1Boxed { - public final Void data; - private JsonPointerFormat1BoxedVoid(Void data) { - this.data = data; - } + public record JsonPointerFormat1BoxedVoid(Void data) implements JsonPointerFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class JsonPointerFormat1BoxedBoolean extends JsonPointerFormat1Boxed { - public final boolean data; - private JsonPointerFormat1BoxedBoolean(boolean data) { - this.data = data; - } + public record JsonPointerFormat1BoxedBoolean(boolean data) implements JsonPointerFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class JsonPointerFormat1BoxedNumber extends JsonPointerFormat1Boxed { - public final Number data; - private JsonPointerFormat1BoxedNumber(Number data) { - this.data = data; - } + public record JsonPointerFormat1BoxedNumber(Number data) implements JsonPointerFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class JsonPointerFormat1BoxedString extends JsonPointerFormat1Boxed { - public final String data; - private JsonPointerFormat1BoxedString(String data) { - this.data = data; - } + public record JsonPointerFormat1BoxedString(String data) implements JsonPointerFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class JsonPointerFormat1BoxedList extends JsonPointerFormat1Boxed { - public final FrozenList<@Nullable Object> data; - private JsonPointerFormat1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record JsonPointerFormat1BoxedList(FrozenList<@Nullable Object> data) implements JsonPointerFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class JsonPointerFormat1BoxedMap extends JsonPointerFormat1Boxed { - public final FrozenMap<@Nullable Object> data; - private JsonPointerFormat1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record JsonPointerFormat1BoxedMap(FrozenMap<@Nullable Object> data) implements JsonPointerFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class JsonPointerFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, JsonPointerFormat1BoxedList>, MapSchemaValidator, JsonPointerFormat1BoxedMap> { + public static class JsonPointerFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, JsonPointerFormat1BoxedList>, MapSchemaValidator, JsonPointerFormat1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public JsonPointerFormat1BoxedList validateAndBox(List arg, SchemaConfigurati public JsonPointerFormat1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new JsonPointerFormat1BoxedMap(validate(arg, configuration)); } + @Override + public JsonPointerFormat1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaximumValidation.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaximumValidation.java index 7c10873848d..ff2f9aec232 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaximumValidation.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaximumValidation.java @@ -35,78 +35,54 @@ public class MaximumValidation { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class MaximumValidation1Boxed permits MaximumValidation1BoxedVoid, MaximumValidation1BoxedBoolean, MaximumValidation1BoxedNumber, MaximumValidation1BoxedString, MaximumValidation1BoxedList, MaximumValidation1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface MaximumValidation1Boxed permits MaximumValidation1BoxedVoid, MaximumValidation1BoxedBoolean, MaximumValidation1BoxedNumber, MaximumValidation1BoxedString, MaximumValidation1BoxedList, MaximumValidation1BoxedMap { + @Nullable Object getData(); } - public static final class MaximumValidation1BoxedVoid extends MaximumValidation1Boxed { - public final Void data; - private MaximumValidation1BoxedVoid(Void data) { - this.data = data; - } + public record MaximumValidation1BoxedVoid(Void data) implements MaximumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaximumValidation1BoxedBoolean extends MaximumValidation1Boxed { - public final boolean data; - private MaximumValidation1BoxedBoolean(boolean data) { - this.data = data; - } + public record MaximumValidation1BoxedBoolean(boolean data) implements MaximumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaximumValidation1BoxedNumber extends MaximumValidation1Boxed { - public final Number data; - private MaximumValidation1BoxedNumber(Number data) { - this.data = data; - } + public record MaximumValidation1BoxedNumber(Number data) implements MaximumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaximumValidation1BoxedString extends MaximumValidation1Boxed { - public final String data; - private MaximumValidation1BoxedString(String data) { - this.data = data; - } + public record MaximumValidation1BoxedString(String data) implements MaximumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaximumValidation1BoxedList extends MaximumValidation1Boxed { - public final FrozenList<@Nullable Object> data; - private MaximumValidation1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record MaximumValidation1BoxedList(FrozenList<@Nullable Object> data) implements MaximumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaximumValidation1BoxedMap extends MaximumValidation1Boxed { - public final FrozenMap<@Nullable Object> data; - private MaximumValidation1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record MaximumValidation1BoxedMap(FrozenMap<@Nullable Object> data) implements MaximumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class MaximumValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MaximumValidation1BoxedList>, MapSchemaValidator, MaximumValidation1BoxedMap> { + public static class MaximumValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MaximumValidation1BoxedList>, MapSchemaValidator, MaximumValidation1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public MaximumValidation1BoxedList validateAndBox(List arg, SchemaConfigurati public MaximumValidation1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MaximumValidation1BoxedMap(validate(arg, configuration)); } + @Override + public MaximumValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaximumValidationWithUnsignedInteger.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaximumValidationWithUnsignedInteger.java index 0eebe36727c..9f2eefdd7cd 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaximumValidationWithUnsignedInteger.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaximumValidationWithUnsignedInteger.java @@ -35,78 +35,54 @@ public class MaximumValidationWithUnsignedInteger { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class MaximumValidationWithUnsignedInteger1Boxed permits MaximumValidationWithUnsignedInteger1BoxedVoid, MaximumValidationWithUnsignedInteger1BoxedBoolean, MaximumValidationWithUnsignedInteger1BoxedNumber, MaximumValidationWithUnsignedInteger1BoxedString, MaximumValidationWithUnsignedInteger1BoxedList, MaximumValidationWithUnsignedInteger1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface MaximumValidationWithUnsignedInteger1Boxed permits MaximumValidationWithUnsignedInteger1BoxedVoid, MaximumValidationWithUnsignedInteger1BoxedBoolean, MaximumValidationWithUnsignedInteger1BoxedNumber, MaximumValidationWithUnsignedInteger1BoxedString, MaximumValidationWithUnsignedInteger1BoxedList, MaximumValidationWithUnsignedInteger1BoxedMap { + @Nullable Object getData(); } - public static final class MaximumValidationWithUnsignedInteger1BoxedVoid extends MaximumValidationWithUnsignedInteger1Boxed { - public final Void data; - private MaximumValidationWithUnsignedInteger1BoxedVoid(Void data) { - this.data = data; - } + public record MaximumValidationWithUnsignedInteger1BoxedVoid(Void data) implements MaximumValidationWithUnsignedInteger1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaximumValidationWithUnsignedInteger1BoxedBoolean extends MaximumValidationWithUnsignedInteger1Boxed { - public final boolean data; - private MaximumValidationWithUnsignedInteger1BoxedBoolean(boolean data) { - this.data = data; - } + public record MaximumValidationWithUnsignedInteger1BoxedBoolean(boolean data) implements MaximumValidationWithUnsignedInteger1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaximumValidationWithUnsignedInteger1BoxedNumber extends MaximumValidationWithUnsignedInteger1Boxed { - public final Number data; - private MaximumValidationWithUnsignedInteger1BoxedNumber(Number data) { - this.data = data; - } + public record MaximumValidationWithUnsignedInteger1BoxedNumber(Number data) implements MaximumValidationWithUnsignedInteger1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaximumValidationWithUnsignedInteger1BoxedString extends MaximumValidationWithUnsignedInteger1Boxed { - public final String data; - private MaximumValidationWithUnsignedInteger1BoxedString(String data) { - this.data = data; - } + public record MaximumValidationWithUnsignedInteger1BoxedString(String data) implements MaximumValidationWithUnsignedInteger1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaximumValidationWithUnsignedInteger1BoxedList extends MaximumValidationWithUnsignedInteger1Boxed { - public final FrozenList<@Nullable Object> data; - private MaximumValidationWithUnsignedInteger1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record MaximumValidationWithUnsignedInteger1BoxedList(FrozenList<@Nullable Object> data) implements MaximumValidationWithUnsignedInteger1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaximumValidationWithUnsignedInteger1BoxedMap extends MaximumValidationWithUnsignedInteger1Boxed { - public final FrozenMap<@Nullable Object> data; - private MaximumValidationWithUnsignedInteger1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record MaximumValidationWithUnsignedInteger1BoxedMap(FrozenMap<@Nullable Object> data) implements MaximumValidationWithUnsignedInteger1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class MaximumValidationWithUnsignedInteger1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MaximumValidationWithUnsignedInteger1BoxedList>, MapSchemaValidator, MaximumValidationWithUnsignedInteger1BoxedMap> { + public static class MaximumValidationWithUnsignedInteger1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MaximumValidationWithUnsignedInteger1BoxedList>, MapSchemaValidator, MaximumValidationWithUnsignedInteger1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public MaximumValidationWithUnsignedInteger1BoxedList validateAndBox(List arg public MaximumValidationWithUnsignedInteger1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MaximumValidationWithUnsignedInteger1BoxedMap(validate(arg, configuration)); } + @Override + public MaximumValidationWithUnsignedInteger1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxitemsValidation.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxitemsValidation.java index 3cfd11b3d5e..dfbadbb5e68 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxitemsValidation.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxitemsValidation.java @@ -35,78 +35,54 @@ public class MaxitemsValidation { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class MaxitemsValidation1Boxed permits MaxitemsValidation1BoxedVoid, MaxitemsValidation1BoxedBoolean, MaxitemsValidation1BoxedNumber, MaxitemsValidation1BoxedString, MaxitemsValidation1BoxedList, MaxitemsValidation1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface MaxitemsValidation1Boxed permits MaxitemsValidation1BoxedVoid, MaxitemsValidation1BoxedBoolean, MaxitemsValidation1BoxedNumber, MaxitemsValidation1BoxedString, MaxitemsValidation1BoxedList, MaxitemsValidation1BoxedMap { + @Nullable Object getData(); } - public static final class MaxitemsValidation1BoxedVoid extends MaxitemsValidation1Boxed { - public final Void data; - private MaxitemsValidation1BoxedVoid(Void data) { - this.data = data; - } + public record MaxitemsValidation1BoxedVoid(Void data) implements MaxitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxitemsValidation1BoxedBoolean extends MaxitemsValidation1Boxed { - public final boolean data; - private MaxitemsValidation1BoxedBoolean(boolean data) { - this.data = data; - } + public record MaxitemsValidation1BoxedBoolean(boolean data) implements MaxitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxitemsValidation1BoxedNumber extends MaxitemsValidation1Boxed { - public final Number data; - private MaxitemsValidation1BoxedNumber(Number data) { - this.data = data; - } + public record MaxitemsValidation1BoxedNumber(Number data) implements MaxitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxitemsValidation1BoxedString extends MaxitemsValidation1Boxed { - public final String data; - private MaxitemsValidation1BoxedString(String data) { - this.data = data; - } + public record MaxitemsValidation1BoxedString(String data) implements MaxitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxitemsValidation1BoxedList extends MaxitemsValidation1Boxed { - public final FrozenList<@Nullable Object> data; - private MaxitemsValidation1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record MaxitemsValidation1BoxedList(FrozenList<@Nullable Object> data) implements MaxitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxitemsValidation1BoxedMap extends MaxitemsValidation1Boxed { - public final FrozenMap<@Nullable Object> data; - private MaxitemsValidation1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record MaxitemsValidation1BoxedMap(FrozenMap<@Nullable Object> data) implements MaxitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class MaxitemsValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MaxitemsValidation1BoxedList>, MapSchemaValidator, MaxitemsValidation1BoxedMap> { + public static class MaxitemsValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MaxitemsValidation1BoxedList>, MapSchemaValidator, MaxitemsValidation1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public MaxitemsValidation1BoxedList validateAndBox(List arg, SchemaConfigurat public MaxitemsValidation1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MaxitemsValidation1BoxedMap(validate(arg, configuration)); } + @Override + public MaxitemsValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxlengthValidation.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxlengthValidation.java index 31119d1840d..02d41b936b7 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxlengthValidation.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxlengthValidation.java @@ -35,78 +35,54 @@ public class MaxlengthValidation { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class MaxlengthValidation1Boxed permits MaxlengthValidation1BoxedVoid, MaxlengthValidation1BoxedBoolean, MaxlengthValidation1BoxedNumber, MaxlengthValidation1BoxedString, MaxlengthValidation1BoxedList, MaxlengthValidation1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface MaxlengthValidation1Boxed permits MaxlengthValidation1BoxedVoid, MaxlengthValidation1BoxedBoolean, MaxlengthValidation1BoxedNumber, MaxlengthValidation1BoxedString, MaxlengthValidation1BoxedList, MaxlengthValidation1BoxedMap { + @Nullable Object getData(); } - public static final class MaxlengthValidation1BoxedVoid extends MaxlengthValidation1Boxed { - public final Void data; - private MaxlengthValidation1BoxedVoid(Void data) { - this.data = data; - } + public record MaxlengthValidation1BoxedVoid(Void data) implements MaxlengthValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxlengthValidation1BoxedBoolean extends MaxlengthValidation1Boxed { - public final boolean data; - private MaxlengthValidation1BoxedBoolean(boolean data) { - this.data = data; - } + public record MaxlengthValidation1BoxedBoolean(boolean data) implements MaxlengthValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxlengthValidation1BoxedNumber extends MaxlengthValidation1Boxed { - public final Number data; - private MaxlengthValidation1BoxedNumber(Number data) { - this.data = data; - } + public record MaxlengthValidation1BoxedNumber(Number data) implements MaxlengthValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxlengthValidation1BoxedString extends MaxlengthValidation1Boxed { - public final String data; - private MaxlengthValidation1BoxedString(String data) { - this.data = data; - } + public record MaxlengthValidation1BoxedString(String data) implements MaxlengthValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxlengthValidation1BoxedList extends MaxlengthValidation1Boxed { - public final FrozenList<@Nullable Object> data; - private MaxlengthValidation1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record MaxlengthValidation1BoxedList(FrozenList<@Nullable Object> data) implements MaxlengthValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxlengthValidation1BoxedMap extends MaxlengthValidation1Boxed { - public final FrozenMap<@Nullable Object> data; - private MaxlengthValidation1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record MaxlengthValidation1BoxedMap(FrozenMap<@Nullable Object> data) implements MaxlengthValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class MaxlengthValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MaxlengthValidation1BoxedList>, MapSchemaValidator, MaxlengthValidation1BoxedMap> { + public static class MaxlengthValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MaxlengthValidation1BoxedList>, MapSchemaValidator, MaxlengthValidation1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public MaxlengthValidation1BoxedList validateAndBox(List arg, SchemaConfigura public MaxlengthValidation1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MaxlengthValidation1BoxedMap(validate(arg, configuration)); } + @Override + public MaxlengthValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Maxproperties0MeansTheObjectIsEmpty.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Maxproperties0MeansTheObjectIsEmpty.java index 7f83ee503d6..c71474bd82f 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Maxproperties0MeansTheObjectIsEmpty.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Maxproperties0MeansTheObjectIsEmpty.java @@ -35,78 +35,54 @@ public class Maxproperties0MeansTheObjectIsEmpty { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class Maxproperties0MeansTheObjectIsEmpty1Boxed permits Maxproperties0MeansTheObjectIsEmpty1BoxedVoid, Maxproperties0MeansTheObjectIsEmpty1BoxedBoolean, Maxproperties0MeansTheObjectIsEmpty1BoxedNumber, Maxproperties0MeansTheObjectIsEmpty1BoxedString, Maxproperties0MeansTheObjectIsEmpty1BoxedList, Maxproperties0MeansTheObjectIsEmpty1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Maxproperties0MeansTheObjectIsEmpty1Boxed permits Maxproperties0MeansTheObjectIsEmpty1BoxedVoid, Maxproperties0MeansTheObjectIsEmpty1BoxedBoolean, Maxproperties0MeansTheObjectIsEmpty1BoxedNumber, Maxproperties0MeansTheObjectIsEmpty1BoxedString, Maxproperties0MeansTheObjectIsEmpty1BoxedList, Maxproperties0MeansTheObjectIsEmpty1BoxedMap { + @Nullable Object getData(); } - public static final class Maxproperties0MeansTheObjectIsEmpty1BoxedVoid extends Maxproperties0MeansTheObjectIsEmpty1Boxed { - public final Void data; - private Maxproperties0MeansTheObjectIsEmpty1BoxedVoid(Void data) { - this.data = data; - } + public record Maxproperties0MeansTheObjectIsEmpty1BoxedVoid(Void data) implements Maxproperties0MeansTheObjectIsEmpty1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Maxproperties0MeansTheObjectIsEmpty1BoxedBoolean extends Maxproperties0MeansTheObjectIsEmpty1Boxed { - public final boolean data; - private Maxproperties0MeansTheObjectIsEmpty1BoxedBoolean(boolean data) { - this.data = data; - } + public record Maxproperties0MeansTheObjectIsEmpty1BoxedBoolean(boolean data) implements Maxproperties0MeansTheObjectIsEmpty1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Maxproperties0MeansTheObjectIsEmpty1BoxedNumber extends Maxproperties0MeansTheObjectIsEmpty1Boxed { - public final Number data; - private Maxproperties0MeansTheObjectIsEmpty1BoxedNumber(Number data) { - this.data = data; - } + public record Maxproperties0MeansTheObjectIsEmpty1BoxedNumber(Number data) implements Maxproperties0MeansTheObjectIsEmpty1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Maxproperties0MeansTheObjectIsEmpty1BoxedString extends Maxproperties0MeansTheObjectIsEmpty1Boxed { - public final String data; - private Maxproperties0MeansTheObjectIsEmpty1BoxedString(String data) { - this.data = data; - } + public record Maxproperties0MeansTheObjectIsEmpty1BoxedString(String data) implements Maxproperties0MeansTheObjectIsEmpty1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Maxproperties0MeansTheObjectIsEmpty1BoxedList extends Maxproperties0MeansTheObjectIsEmpty1Boxed { - public final FrozenList<@Nullable Object> data; - private Maxproperties0MeansTheObjectIsEmpty1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Maxproperties0MeansTheObjectIsEmpty1BoxedList(FrozenList<@Nullable Object> data) implements Maxproperties0MeansTheObjectIsEmpty1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Maxproperties0MeansTheObjectIsEmpty1BoxedMap extends Maxproperties0MeansTheObjectIsEmpty1Boxed { - public final FrozenMap<@Nullable Object> data; - private Maxproperties0MeansTheObjectIsEmpty1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Maxproperties0MeansTheObjectIsEmpty1BoxedMap(FrozenMap<@Nullable Object> data) implements Maxproperties0MeansTheObjectIsEmpty1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Maxproperties0MeansTheObjectIsEmpty1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Maxproperties0MeansTheObjectIsEmpty1BoxedList>, MapSchemaValidator, Maxproperties0MeansTheObjectIsEmpty1BoxedMap> { + public static class Maxproperties0MeansTheObjectIsEmpty1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Maxproperties0MeansTheObjectIsEmpty1BoxedList>, MapSchemaValidator, Maxproperties0MeansTheObjectIsEmpty1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public Maxproperties0MeansTheObjectIsEmpty1BoxedList validateAndBox(List arg, public Maxproperties0MeansTheObjectIsEmpty1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Maxproperties0MeansTheObjectIsEmpty1BoxedMap(validate(arg, configuration)); } + @Override + public Maxproperties0MeansTheObjectIsEmpty1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxpropertiesValidation.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxpropertiesValidation.java index c70a020af26..5386164471a 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxpropertiesValidation.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxpropertiesValidation.java @@ -35,78 +35,54 @@ public class MaxpropertiesValidation { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class MaxpropertiesValidation1Boxed permits MaxpropertiesValidation1BoxedVoid, MaxpropertiesValidation1BoxedBoolean, MaxpropertiesValidation1BoxedNumber, MaxpropertiesValidation1BoxedString, MaxpropertiesValidation1BoxedList, MaxpropertiesValidation1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface MaxpropertiesValidation1Boxed permits MaxpropertiesValidation1BoxedVoid, MaxpropertiesValidation1BoxedBoolean, MaxpropertiesValidation1BoxedNumber, MaxpropertiesValidation1BoxedString, MaxpropertiesValidation1BoxedList, MaxpropertiesValidation1BoxedMap { + @Nullable Object getData(); } - public static final class MaxpropertiesValidation1BoxedVoid extends MaxpropertiesValidation1Boxed { - public final Void data; - private MaxpropertiesValidation1BoxedVoid(Void data) { - this.data = data; - } + public record MaxpropertiesValidation1BoxedVoid(Void data) implements MaxpropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxpropertiesValidation1BoxedBoolean extends MaxpropertiesValidation1Boxed { - public final boolean data; - private MaxpropertiesValidation1BoxedBoolean(boolean data) { - this.data = data; - } + public record MaxpropertiesValidation1BoxedBoolean(boolean data) implements MaxpropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxpropertiesValidation1BoxedNumber extends MaxpropertiesValidation1Boxed { - public final Number data; - private MaxpropertiesValidation1BoxedNumber(Number data) { - this.data = data; - } + public record MaxpropertiesValidation1BoxedNumber(Number data) implements MaxpropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxpropertiesValidation1BoxedString extends MaxpropertiesValidation1Boxed { - public final String data; - private MaxpropertiesValidation1BoxedString(String data) { - this.data = data; - } + public record MaxpropertiesValidation1BoxedString(String data) implements MaxpropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxpropertiesValidation1BoxedList extends MaxpropertiesValidation1Boxed { - public final FrozenList<@Nullable Object> data; - private MaxpropertiesValidation1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record MaxpropertiesValidation1BoxedList(FrozenList<@Nullable Object> data) implements MaxpropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxpropertiesValidation1BoxedMap extends MaxpropertiesValidation1Boxed { - public final FrozenMap<@Nullable Object> data; - private MaxpropertiesValidation1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record MaxpropertiesValidation1BoxedMap(FrozenMap<@Nullable Object> data) implements MaxpropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class MaxpropertiesValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MaxpropertiesValidation1BoxedList>, MapSchemaValidator, MaxpropertiesValidation1BoxedMap> { + public static class MaxpropertiesValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MaxpropertiesValidation1BoxedList>, MapSchemaValidator, MaxpropertiesValidation1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public MaxpropertiesValidation1BoxedList validateAndBox(List arg, SchemaConfi public MaxpropertiesValidation1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MaxpropertiesValidation1BoxedMap(validate(arg, configuration)); } + @Override + public MaxpropertiesValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinimumValidation.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinimumValidation.java index b27eb1b8c5c..29325be0f63 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinimumValidation.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinimumValidation.java @@ -35,78 +35,54 @@ public class MinimumValidation { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class MinimumValidation1Boxed permits MinimumValidation1BoxedVoid, MinimumValidation1BoxedBoolean, MinimumValidation1BoxedNumber, MinimumValidation1BoxedString, MinimumValidation1BoxedList, MinimumValidation1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface MinimumValidation1Boxed permits MinimumValidation1BoxedVoid, MinimumValidation1BoxedBoolean, MinimumValidation1BoxedNumber, MinimumValidation1BoxedString, MinimumValidation1BoxedList, MinimumValidation1BoxedMap { + @Nullable Object getData(); } - public static final class MinimumValidation1BoxedVoid extends MinimumValidation1Boxed { - public final Void data; - private MinimumValidation1BoxedVoid(Void data) { - this.data = data; - } + public record MinimumValidation1BoxedVoid(Void data) implements MinimumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinimumValidation1BoxedBoolean extends MinimumValidation1Boxed { - public final boolean data; - private MinimumValidation1BoxedBoolean(boolean data) { - this.data = data; - } + public record MinimumValidation1BoxedBoolean(boolean data) implements MinimumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinimumValidation1BoxedNumber extends MinimumValidation1Boxed { - public final Number data; - private MinimumValidation1BoxedNumber(Number data) { - this.data = data; - } + public record MinimumValidation1BoxedNumber(Number data) implements MinimumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinimumValidation1BoxedString extends MinimumValidation1Boxed { - public final String data; - private MinimumValidation1BoxedString(String data) { - this.data = data; - } + public record MinimumValidation1BoxedString(String data) implements MinimumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinimumValidation1BoxedList extends MinimumValidation1Boxed { - public final FrozenList<@Nullable Object> data; - private MinimumValidation1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record MinimumValidation1BoxedList(FrozenList<@Nullable Object> data) implements MinimumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinimumValidation1BoxedMap extends MinimumValidation1Boxed { - public final FrozenMap<@Nullable Object> data; - private MinimumValidation1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record MinimumValidation1BoxedMap(FrozenMap<@Nullable Object> data) implements MinimumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class MinimumValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MinimumValidation1BoxedList>, MapSchemaValidator, MinimumValidation1BoxedMap> { + public static class MinimumValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MinimumValidation1BoxedList>, MapSchemaValidator, MinimumValidation1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public MinimumValidation1BoxedList validateAndBox(List arg, SchemaConfigurati public MinimumValidation1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MinimumValidation1BoxedMap(validate(arg, configuration)); } + @Override + public MinimumValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinimumValidationWithSignedInteger.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinimumValidationWithSignedInteger.java index e22e2b223a8..531298768ff 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinimumValidationWithSignedInteger.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinimumValidationWithSignedInteger.java @@ -35,78 +35,54 @@ public class MinimumValidationWithSignedInteger { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class MinimumValidationWithSignedInteger1Boxed permits MinimumValidationWithSignedInteger1BoxedVoid, MinimumValidationWithSignedInteger1BoxedBoolean, MinimumValidationWithSignedInteger1BoxedNumber, MinimumValidationWithSignedInteger1BoxedString, MinimumValidationWithSignedInteger1BoxedList, MinimumValidationWithSignedInteger1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface MinimumValidationWithSignedInteger1Boxed permits MinimumValidationWithSignedInteger1BoxedVoid, MinimumValidationWithSignedInteger1BoxedBoolean, MinimumValidationWithSignedInteger1BoxedNumber, MinimumValidationWithSignedInteger1BoxedString, MinimumValidationWithSignedInteger1BoxedList, MinimumValidationWithSignedInteger1BoxedMap { + @Nullable Object getData(); } - public static final class MinimumValidationWithSignedInteger1BoxedVoid extends MinimumValidationWithSignedInteger1Boxed { - public final Void data; - private MinimumValidationWithSignedInteger1BoxedVoid(Void data) { - this.data = data; - } + public record MinimumValidationWithSignedInteger1BoxedVoid(Void data) implements MinimumValidationWithSignedInteger1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinimumValidationWithSignedInteger1BoxedBoolean extends MinimumValidationWithSignedInteger1Boxed { - public final boolean data; - private MinimumValidationWithSignedInteger1BoxedBoolean(boolean data) { - this.data = data; - } + public record MinimumValidationWithSignedInteger1BoxedBoolean(boolean data) implements MinimumValidationWithSignedInteger1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinimumValidationWithSignedInteger1BoxedNumber extends MinimumValidationWithSignedInteger1Boxed { - public final Number data; - private MinimumValidationWithSignedInteger1BoxedNumber(Number data) { - this.data = data; - } + public record MinimumValidationWithSignedInteger1BoxedNumber(Number data) implements MinimumValidationWithSignedInteger1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinimumValidationWithSignedInteger1BoxedString extends MinimumValidationWithSignedInteger1Boxed { - public final String data; - private MinimumValidationWithSignedInteger1BoxedString(String data) { - this.data = data; - } + public record MinimumValidationWithSignedInteger1BoxedString(String data) implements MinimumValidationWithSignedInteger1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinimumValidationWithSignedInteger1BoxedList extends MinimumValidationWithSignedInteger1Boxed { - public final FrozenList<@Nullable Object> data; - private MinimumValidationWithSignedInteger1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record MinimumValidationWithSignedInteger1BoxedList(FrozenList<@Nullable Object> data) implements MinimumValidationWithSignedInteger1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinimumValidationWithSignedInteger1BoxedMap extends MinimumValidationWithSignedInteger1Boxed { - public final FrozenMap<@Nullable Object> data; - private MinimumValidationWithSignedInteger1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record MinimumValidationWithSignedInteger1BoxedMap(FrozenMap<@Nullable Object> data) implements MinimumValidationWithSignedInteger1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class MinimumValidationWithSignedInteger1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MinimumValidationWithSignedInteger1BoxedList>, MapSchemaValidator, MinimumValidationWithSignedInteger1BoxedMap> { + public static class MinimumValidationWithSignedInteger1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MinimumValidationWithSignedInteger1BoxedList>, MapSchemaValidator, MinimumValidationWithSignedInteger1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public MinimumValidationWithSignedInteger1BoxedList validateAndBox(List arg, public MinimumValidationWithSignedInteger1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MinimumValidationWithSignedInteger1BoxedMap(validate(arg, configuration)); } + @Override + public MinimumValidationWithSignedInteger1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinitemsValidation.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinitemsValidation.java index c936275b7b5..13a669101d6 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinitemsValidation.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinitemsValidation.java @@ -35,78 +35,54 @@ public class MinitemsValidation { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class MinitemsValidation1Boxed permits MinitemsValidation1BoxedVoid, MinitemsValidation1BoxedBoolean, MinitemsValidation1BoxedNumber, MinitemsValidation1BoxedString, MinitemsValidation1BoxedList, MinitemsValidation1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface MinitemsValidation1Boxed permits MinitemsValidation1BoxedVoid, MinitemsValidation1BoxedBoolean, MinitemsValidation1BoxedNumber, MinitemsValidation1BoxedString, MinitemsValidation1BoxedList, MinitemsValidation1BoxedMap { + @Nullable Object getData(); } - public static final class MinitemsValidation1BoxedVoid extends MinitemsValidation1Boxed { - public final Void data; - private MinitemsValidation1BoxedVoid(Void data) { - this.data = data; - } + public record MinitemsValidation1BoxedVoid(Void data) implements MinitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinitemsValidation1BoxedBoolean extends MinitemsValidation1Boxed { - public final boolean data; - private MinitemsValidation1BoxedBoolean(boolean data) { - this.data = data; - } + public record MinitemsValidation1BoxedBoolean(boolean data) implements MinitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinitemsValidation1BoxedNumber extends MinitemsValidation1Boxed { - public final Number data; - private MinitemsValidation1BoxedNumber(Number data) { - this.data = data; - } + public record MinitemsValidation1BoxedNumber(Number data) implements MinitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinitemsValidation1BoxedString extends MinitemsValidation1Boxed { - public final String data; - private MinitemsValidation1BoxedString(String data) { - this.data = data; - } + public record MinitemsValidation1BoxedString(String data) implements MinitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinitemsValidation1BoxedList extends MinitemsValidation1Boxed { - public final FrozenList<@Nullable Object> data; - private MinitemsValidation1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record MinitemsValidation1BoxedList(FrozenList<@Nullable Object> data) implements MinitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinitemsValidation1BoxedMap extends MinitemsValidation1Boxed { - public final FrozenMap<@Nullable Object> data; - private MinitemsValidation1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record MinitemsValidation1BoxedMap(FrozenMap<@Nullable Object> data) implements MinitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class MinitemsValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MinitemsValidation1BoxedList>, MapSchemaValidator, MinitemsValidation1BoxedMap> { + public static class MinitemsValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MinitemsValidation1BoxedList>, MapSchemaValidator, MinitemsValidation1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public MinitemsValidation1BoxedList validateAndBox(List arg, SchemaConfigurat public MinitemsValidation1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MinitemsValidation1BoxedMap(validate(arg, configuration)); } + @Override + public MinitemsValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinlengthValidation.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinlengthValidation.java index 2ab8aacdd70..835bdc24f37 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinlengthValidation.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinlengthValidation.java @@ -35,78 +35,54 @@ public class MinlengthValidation { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class MinlengthValidation1Boxed permits MinlengthValidation1BoxedVoid, MinlengthValidation1BoxedBoolean, MinlengthValidation1BoxedNumber, MinlengthValidation1BoxedString, MinlengthValidation1BoxedList, MinlengthValidation1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface MinlengthValidation1Boxed permits MinlengthValidation1BoxedVoid, MinlengthValidation1BoxedBoolean, MinlengthValidation1BoxedNumber, MinlengthValidation1BoxedString, MinlengthValidation1BoxedList, MinlengthValidation1BoxedMap { + @Nullable Object getData(); } - public static final class MinlengthValidation1BoxedVoid extends MinlengthValidation1Boxed { - public final Void data; - private MinlengthValidation1BoxedVoid(Void data) { - this.data = data; - } + public record MinlengthValidation1BoxedVoid(Void data) implements MinlengthValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinlengthValidation1BoxedBoolean extends MinlengthValidation1Boxed { - public final boolean data; - private MinlengthValidation1BoxedBoolean(boolean data) { - this.data = data; - } + public record MinlengthValidation1BoxedBoolean(boolean data) implements MinlengthValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinlengthValidation1BoxedNumber extends MinlengthValidation1Boxed { - public final Number data; - private MinlengthValidation1BoxedNumber(Number data) { - this.data = data; - } + public record MinlengthValidation1BoxedNumber(Number data) implements MinlengthValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinlengthValidation1BoxedString extends MinlengthValidation1Boxed { - public final String data; - private MinlengthValidation1BoxedString(String data) { - this.data = data; - } + public record MinlengthValidation1BoxedString(String data) implements MinlengthValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinlengthValidation1BoxedList extends MinlengthValidation1Boxed { - public final FrozenList<@Nullable Object> data; - private MinlengthValidation1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record MinlengthValidation1BoxedList(FrozenList<@Nullable Object> data) implements MinlengthValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinlengthValidation1BoxedMap extends MinlengthValidation1Boxed { - public final FrozenMap<@Nullable Object> data; - private MinlengthValidation1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record MinlengthValidation1BoxedMap(FrozenMap<@Nullable Object> data) implements MinlengthValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class MinlengthValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MinlengthValidation1BoxedList>, MapSchemaValidator, MinlengthValidation1BoxedMap> { + public static class MinlengthValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MinlengthValidation1BoxedList>, MapSchemaValidator, MinlengthValidation1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public MinlengthValidation1BoxedList validateAndBox(List arg, SchemaConfigura public MinlengthValidation1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MinlengthValidation1BoxedMap(validate(arg, configuration)); } + @Override + public MinlengthValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinpropertiesValidation.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinpropertiesValidation.java index 23d772b6a6a..1802917d267 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinpropertiesValidation.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinpropertiesValidation.java @@ -35,78 +35,54 @@ public class MinpropertiesValidation { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class MinpropertiesValidation1Boxed permits MinpropertiesValidation1BoxedVoid, MinpropertiesValidation1BoxedBoolean, MinpropertiesValidation1BoxedNumber, MinpropertiesValidation1BoxedString, MinpropertiesValidation1BoxedList, MinpropertiesValidation1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface MinpropertiesValidation1Boxed permits MinpropertiesValidation1BoxedVoid, MinpropertiesValidation1BoxedBoolean, MinpropertiesValidation1BoxedNumber, MinpropertiesValidation1BoxedString, MinpropertiesValidation1BoxedList, MinpropertiesValidation1BoxedMap { + @Nullable Object getData(); } - public static final class MinpropertiesValidation1BoxedVoid extends MinpropertiesValidation1Boxed { - public final Void data; - private MinpropertiesValidation1BoxedVoid(Void data) { - this.data = data; - } + public record MinpropertiesValidation1BoxedVoid(Void data) implements MinpropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinpropertiesValidation1BoxedBoolean extends MinpropertiesValidation1Boxed { - public final boolean data; - private MinpropertiesValidation1BoxedBoolean(boolean data) { - this.data = data; - } + public record MinpropertiesValidation1BoxedBoolean(boolean data) implements MinpropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinpropertiesValidation1BoxedNumber extends MinpropertiesValidation1Boxed { - public final Number data; - private MinpropertiesValidation1BoxedNumber(Number data) { - this.data = data; - } + public record MinpropertiesValidation1BoxedNumber(Number data) implements MinpropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinpropertiesValidation1BoxedString extends MinpropertiesValidation1Boxed { - public final String data; - private MinpropertiesValidation1BoxedString(String data) { - this.data = data; - } + public record MinpropertiesValidation1BoxedString(String data) implements MinpropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinpropertiesValidation1BoxedList extends MinpropertiesValidation1Boxed { - public final FrozenList<@Nullable Object> data; - private MinpropertiesValidation1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record MinpropertiesValidation1BoxedList(FrozenList<@Nullable Object> data) implements MinpropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinpropertiesValidation1BoxedMap extends MinpropertiesValidation1Boxed { - public final FrozenMap<@Nullable Object> data; - private MinpropertiesValidation1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record MinpropertiesValidation1BoxedMap(FrozenMap<@Nullable Object> data) implements MinpropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class MinpropertiesValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MinpropertiesValidation1BoxedList>, MapSchemaValidator, MinpropertiesValidation1BoxedMap> { + public static class MinpropertiesValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MinpropertiesValidation1BoxedList>, MapSchemaValidator, MinpropertiesValidation1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public MinpropertiesValidation1BoxedList validateAndBox(List arg, SchemaConfi public MinpropertiesValidation1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MinpropertiesValidation1BoxedMap(validate(arg, configuration)); } + @Override + public MinpropertiesValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedAllofToCheckValidationSemantics.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedAllofToCheckValidationSemantics.java index 87939b8db33..b7648383ba2 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedAllofToCheckValidationSemantics.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedAllofToCheckValidationSemantics.java @@ -47,78 +47,54 @@ public static Schema01 getInstance() { } - public static abstract sealed class Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { + @Nullable Object getData(); } - public static final class Schema0BoxedVoid extends Schema0Boxed { - public final Void data; - private Schema0BoxedVoid(Void data) { - this.data = data; - } + public record Schema0BoxedVoid(Void data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedBoolean extends Schema0Boxed { - public final boolean data; - private Schema0BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema0BoxedBoolean(boolean data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedNumber extends Schema0Boxed { - public final Number data; - private Schema0BoxedNumber(Number data) { - this.data = data; - } + public record Schema0BoxedNumber(Number data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedString extends Schema0Boxed { - public final String data; - private Schema0BoxedString(String data) { - this.data = data; - } + public record Schema0BoxedString(String data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedList extends Schema0Boxed { - public final FrozenList<@Nullable Object> data; - private Schema0BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedList(FrozenList<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedMap extends Schema0Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema0BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedMap(FrozenMap<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator, Schema0BoxedMap> { + public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator, Schema0BoxedMap> { private static @Nullable Schema0 instance = null; protected Schema0() { @@ -219,11 +195,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -254,11 +230,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -337,80 +313,75 @@ public Schema0BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema0BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema0BoxedMap(validate(arg, configuration)); } + @Override + public Schema0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class NestedAllofToCheckValidationSemantics1Boxed permits NestedAllofToCheckValidationSemantics1BoxedVoid, NestedAllofToCheckValidationSemantics1BoxedBoolean, NestedAllofToCheckValidationSemantics1BoxedNumber, NestedAllofToCheckValidationSemantics1BoxedString, NestedAllofToCheckValidationSemantics1BoxedList, NestedAllofToCheckValidationSemantics1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface NestedAllofToCheckValidationSemantics1Boxed permits NestedAllofToCheckValidationSemantics1BoxedVoid, NestedAllofToCheckValidationSemantics1BoxedBoolean, NestedAllofToCheckValidationSemantics1BoxedNumber, NestedAllofToCheckValidationSemantics1BoxedString, NestedAllofToCheckValidationSemantics1BoxedList, NestedAllofToCheckValidationSemantics1BoxedMap { + @Nullable Object getData(); } - public static final class NestedAllofToCheckValidationSemantics1BoxedVoid extends NestedAllofToCheckValidationSemantics1Boxed { - public final Void data; - private NestedAllofToCheckValidationSemantics1BoxedVoid(Void data) { - this.data = data; - } + public record NestedAllofToCheckValidationSemantics1BoxedVoid(Void data) implements NestedAllofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NestedAllofToCheckValidationSemantics1BoxedBoolean extends NestedAllofToCheckValidationSemantics1Boxed { - public final boolean data; - private NestedAllofToCheckValidationSemantics1BoxedBoolean(boolean data) { - this.data = data; - } + public record NestedAllofToCheckValidationSemantics1BoxedBoolean(boolean data) implements NestedAllofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NestedAllofToCheckValidationSemantics1BoxedNumber extends NestedAllofToCheckValidationSemantics1Boxed { - public final Number data; - private NestedAllofToCheckValidationSemantics1BoxedNumber(Number data) { - this.data = data; - } + public record NestedAllofToCheckValidationSemantics1BoxedNumber(Number data) implements NestedAllofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NestedAllofToCheckValidationSemantics1BoxedString extends NestedAllofToCheckValidationSemantics1Boxed { - public final String data; - private NestedAllofToCheckValidationSemantics1BoxedString(String data) { - this.data = data; - } + public record NestedAllofToCheckValidationSemantics1BoxedString(String data) implements NestedAllofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NestedAllofToCheckValidationSemantics1BoxedList extends NestedAllofToCheckValidationSemantics1Boxed { - public final FrozenList<@Nullable Object> data; - private NestedAllofToCheckValidationSemantics1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record NestedAllofToCheckValidationSemantics1BoxedList(FrozenList<@Nullable Object> data) implements NestedAllofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NestedAllofToCheckValidationSemantics1BoxedMap extends NestedAllofToCheckValidationSemantics1Boxed { - public final FrozenMap<@Nullable Object> data; - private NestedAllofToCheckValidationSemantics1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record NestedAllofToCheckValidationSemantics1BoxedMap(FrozenMap<@Nullable Object> data) implements NestedAllofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class NestedAllofToCheckValidationSemantics1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, NestedAllofToCheckValidationSemantics1BoxedList>, MapSchemaValidator, NestedAllofToCheckValidationSemantics1BoxedMap> { + public static class NestedAllofToCheckValidationSemantics1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, NestedAllofToCheckValidationSemantics1BoxedList>, MapSchemaValidator, NestedAllofToCheckValidationSemantics1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -517,11 +488,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -552,11 +523,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -635,5 +606,24 @@ public NestedAllofToCheckValidationSemantics1BoxedList validateAndBox(List ar public NestedAllofToCheckValidationSemantics1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NestedAllofToCheckValidationSemantics1BoxedMap(validate(arg, configuration)); } + @Override + public NestedAllofToCheckValidationSemantics1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedAnyofToCheckValidationSemantics.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedAnyofToCheckValidationSemantics.java index aae4e9d3cf6..7709bbbf75c 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedAnyofToCheckValidationSemantics.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedAnyofToCheckValidationSemantics.java @@ -47,78 +47,54 @@ public static Schema01 getInstance() { } - public static abstract sealed class Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { + @Nullable Object getData(); } - public static final class Schema0BoxedVoid extends Schema0Boxed { - public final Void data; - private Schema0BoxedVoid(Void data) { - this.data = data; - } + public record Schema0BoxedVoid(Void data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedBoolean extends Schema0Boxed { - public final boolean data; - private Schema0BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema0BoxedBoolean(boolean data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedNumber extends Schema0Boxed { - public final Number data; - private Schema0BoxedNumber(Number data) { - this.data = data; - } + public record Schema0BoxedNumber(Number data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedString extends Schema0Boxed { - public final String data; - private Schema0BoxedString(String data) { - this.data = data; - } + public record Schema0BoxedString(String data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedList extends Schema0Boxed { - public final FrozenList<@Nullable Object> data; - private Schema0BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedList(FrozenList<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedMap extends Schema0Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema0BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedMap(FrozenMap<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator, Schema0BoxedMap> { + public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator, Schema0BoxedMap> { private static @Nullable Schema0 instance = null; protected Schema0() { @@ -219,11 +195,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -254,11 +230,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -337,80 +313,75 @@ public Schema0BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema0BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema0BoxedMap(validate(arg, configuration)); } + @Override + public Schema0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class NestedAnyofToCheckValidationSemantics1Boxed permits NestedAnyofToCheckValidationSemantics1BoxedVoid, NestedAnyofToCheckValidationSemantics1BoxedBoolean, NestedAnyofToCheckValidationSemantics1BoxedNumber, NestedAnyofToCheckValidationSemantics1BoxedString, NestedAnyofToCheckValidationSemantics1BoxedList, NestedAnyofToCheckValidationSemantics1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface NestedAnyofToCheckValidationSemantics1Boxed permits NestedAnyofToCheckValidationSemantics1BoxedVoid, NestedAnyofToCheckValidationSemantics1BoxedBoolean, NestedAnyofToCheckValidationSemantics1BoxedNumber, NestedAnyofToCheckValidationSemantics1BoxedString, NestedAnyofToCheckValidationSemantics1BoxedList, NestedAnyofToCheckValidationSemantics1BoxedMap { + @Nullable Object getData(); } - public static final class NestedAnyofToCheckValidationSemantics1BoxedVoid extends NestedAnyofToCheckValidationSemantics1Boxed { - public final Void data; - private NestedAnyofToCheckValidationSemantics1BoxedVoid(Void data) { - this.data = data; - } + public record NestedAnyofToCheckValidationSemantics1BoxedVoid(Void data) implements NestedAnyofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NestedAnyofToCheckValidationSemantics1BoxedBoolean extends NestedAnyofToCheckValidationSemantics1Boxed { - public final boolean data; - private NestedAnyofToCheckValidationSemantics1BoxedBoolean(boolean data) { - this.data = data; - } + public record NestedAnyofToCheckValidationSemantics1BoxedBoolean(boolean data) implements NestedAnyofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NestedAnyofToCheckValidationSemantics1BoxedNumber extends NestedAnyofToCheckValidationSemantics1Boxed { - public final Number data; - private NestedAnyofToCheckValidationSemantics1BoxedNumber(Number data) { - this.data = data; - } + public record NestedAnyofToCheckValidationSemantics1BoxedNumber(Number data) implements NestedAnyofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NestedAnyofToCheckValidationSemantics1BoxedString extends NestedAnyofToCheckValidationSemantics1Boxed { - public final String data; - private NestedAnyofToCheckValidationSemantics1BoxedString(String data) { - this.data = data; - } + public record NestedAnyofToCheckValidationSemantics1BoxedString(String data) implements NestedAnyofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NestedAnyofToCheckValidationSemantics1BoxedList extends NestedAnyofToCheckValidationSemantics1Boxed { - public final FrozenList<@Nullable Object> data; - private NestedAnyofToCheckValidationSemantics1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record NestedAnyofToCheckValidationSemantics1BoxedList(FrozenList<@Nullable Object> data) implements NestedAnyofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NestedAnyofToCheckValidationSemantics1BoxedMap extends NestedAnyofToCheckValidationSemantics1Boxed { - public final FrozenMap<@Nullable Object> data; - private NestedAnyofToCheckValidationSemantics1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record NestedAnyofToCheckValidationSemantics1BoxedMap(FrozenMap<@Nullable Object> data) implements NestedAnyofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class NestedAnyofToCheckValidationSemantics1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, NestedAnyofToCheckValidationSemantics1BoxedList>, MapSchemaValidator, NestedAnyofToCheckValidationSemantics1BoxedMap> { + public static class NestedAnyofToCheckValidationSemantics1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, NestedAnyofToCheckValidationSemantics1BoxedList>, MapSchemaValidator, NestedAnyofToCheckValidationSemantics1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -517,11 +488,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -552,11 +523,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -635,5 +606,24 @@ public NestedAnyofToCheckValidationSemantics1BoxedList validateAndBox(List ar public NestedAnyofToCheckValidationSemantics1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NestedAnyofToCheckValidationSemantics1BoxedMap(validate(arg, configuration)); } + @Override + public NestedAnyofToCheckValidationSemantics1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedItems.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedItems.java index 0219796a2e7..9e6928c1b4c 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedItems.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedItems.java @@ -81,24 +81,20 @@ public List build() { } - public static abstract sealed class Items2Boxed permits Items2BoxedList { - public abstract @Nullable Object data(); + public sealed interface Items2Boxed permits Items2BoxedList { + @Nullable Object getData(); } - public static final class Items2BoxedList extends Items2Boxed { - public final ItemsList data; - private Items2BoxedList(ItemsList data) { - this.data = data; - } + public record Items2BoxedList(ItemsList data) implements Items2Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Items2 extends JsonSchema implements ListSchemaValidator { + public static class Items2 extends JsonSchema implements ListSchemaValidator { private static @Nullable Items2 instance = null; protected Items2() { @@ -122,11 +118,11 @@ public ItemsList getNewInstance(List arg, List pathToItem, PathToSche for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof Number)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -166,6 +162,13 @@ public ItemsList validate(List arg, SchemaConfiguration configuration) throws public Items2BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Items2BoxedList(validate(arg, configuration)); } + @Override + public Items2Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class ItemsList1 extends FrozenList { @@ -200,24 +203,20 @@ public List> build() { } - public static abstract sealed class Items1Boxed permits Items1BoxedList { - public abstract @Nullable Object data(); + public sealed interface Items1Boxed permits Items1BoxedList { + @Nullable Object getData(); } - public static final class Items1BoxedList extends Items1Boxed { - public final ItemsList1 data; - private Items1BoxedList(ItemsList1 data) { - this.data = data; - } + public record Items1BoxedList(ItemsList1 data) implements Items1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Items1 extends JsonSchema implements ListSchemaValidator { + public static class Items1 extends JsonSchema implements ListSchemaValidator { private static @Nullable Items1 instance = null; protected Items1() { @@ -241,11 +240,11 @@ public ItemsList1 getNewInstance(List arg, List pathToItem, PathToSch for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof ItemsList)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -285,6 +284,13 @@ public ItemsList1 validate(List arg, SchemaConfiguration configuration) throw public Items1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Items1BoxedList(validate(arg, configuration)); } + @Override + public Items1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class ItemsList2 extends FrozenList { @@ -319,24 +325,20 @@ public List>> build() { } - public static abstract sealed class ItemsBoxed permits ItemsBoxedList { - public abstract @Nullable Object data(); + public sealed interface ItemsBoxed permits ItemsBoxedList { + @Nullable Object getData(); } - public static final class ItemsBoxedList extends ItemsBoxed { - public final ItemsList2 data; - private ItemsBoxedList(ItemsList2 data) { - this.data = data; - } + public record ItemsBoxedList(ItemsList2 data) implements ItemsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Items extends JsonSchema implements ListSchemaValidator { + public static class Items extends JsonSchema implements ListSchemaValidator { private static @Nullable Items instance = null; protected Items() { @@ -360,11 +362,11 @@ public ItemsList2 getNewInstance(List arg, List pathToItem, PathToSch for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof ItemsList1)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -404,6 +406,13 @@ public ItemsList2 validate(List arg, SchemaConfiguration configuration) throw public ItemsBoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ItemsBoxedList(validate(arg, configuration)); } + @Override + public ItemsBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class NestedItemsList extends FrozenList { @@ -438,24 +447,20 @@ public List>>> build() { } - public static abstract sealed class NestedItems1Boxed permits NestedItems1BoxedList { - public abstract @Nullable Object data(); + public sealed interface NestedItems1Boxed permits NestedItems1BoxedList { + @Nullable Object getData(); } - public static final class NestedItems1BoxedList extends NestedItems1Boxed { - public final NestedItemsList data; - private NestedItems1BoxedList(NestedItemsList data) { - this.data = data; - } + public record NestedItems1BoxedList(NestedItemsList data) implements NestedItems1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class NestedItems1 extends JsonSchema implements ListSchemaValidator { + public static class NestedItems1 extends JsonSchema implements ListSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -485,11 +490,11 @@ public NestedItemsList getNewInstance(List arg, List pathToItem, Path for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof ItemsList2)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -529,5 +534,12 @@ public NestedItemsList validate(List arg, SchemaConfiguration configuration) public NestedItems1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NestedItems1BoxedList(validate(arg, configuration)); } + @Override + public NestedItems1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedOneofToCheckValidationSemantics.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedOneofToCheckValidationSemantics.java index b4e576c997f..e75084fe04d 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedOneofToCheckValidationSemantics.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedOneofToCheckValidationSemantics.java @@ -47,78 +47,54 @@ public static Schema01 getInstance() { } - public static abstract sealed class Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { + @Nullable Object getData(); } - public static final class Schema0BoxedVoid extends Schema0Boxed { - public final Void data; - private Schema0BoxedVoid(Void data) { - this.data = data; - } + public record Schema0BoxedVoid(Void data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedBoolean extends Schema0Boxed { - public final boolean data; - private Schema0BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema0BoxedBoolean(boolean data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedNumber extends Schema0Boxed { - public final Number data; - private Schema0BoxedNumber(Number data) { - this.data = data; - } + public record Schema0BoxedNumber(Number data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedString extends Schema0Boxed { - public final String data; - private Schema0BoxedString(String data) { - this.data = data; - } + public record Schema0BoxedString(String data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedList extends Schema0Boxed { - public final FrozenList<@Nullable Object> data; - private Schema0BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedList(FrozenList<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedMap extends Schema0Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema0BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedMap(FrozenMap<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator, Schema0BoxedMap> { + public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator, Schema0BoxedMap> { private static @Nullable Schema0 instance = null; protected Schema0() { @@ -219,11 +195,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -254,11 +230,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -337,80 +313,75 @@ public Schema0BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema0BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema0BoxedMap(validate(arg, configuration)); } + @Override + public Schema0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class NestedOneofToCheckValidationSemantics1Boxed permits NestedOneofToCheckValidationSemantics1BoxedVoid, NestedOneofToCheckValidationSemantics1BoxedBoolean, NestedOneofToCheckValidationSemantics1BoxedNumber, NestedOneofToCheckValidationSemantics1BoxedString, NestedOneofToCheckValidationSemantics1BoxedList, NestedOneofToCheckValidationSemantics1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface NestedOneofToCheckValidationSemantics1Boxed permits NestedOneofToCheckValidationSemantics1BoxedVoid, NestedOneofToCheckValidationSemantics1BoxedBoolean, NestedOneofToCheckValidationSemantics1BoxedNumber, NestedOneofToCheckValidationSemantics1BoxedString, NestedOneofToCheckValidationSemantics1BoxedList, NestedOneofToCheckValidationSemantics1BoxedMap { + @Nullable Object getData(); } - public static final class NestedOneofToCheckValidationSemantics1BoxedVoid extends NestedOneofToCheckValidationSemantics1Boxed { - public final Void data; - private NestedOneofToCheckValidationSemantics1BoxedVoid(Void data) { - this.data = data; - } + public record NestedOneofToCheckValidationSemantics1BoxedVoid(Void data) implements NestedOneofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NestedOneofToCheckValidationSemantics1BoxedBoolean extends NestedOneofToCheckValidationSemantics1Boxed { - public final boolean data; - private NestedOneofToCheckValidationSemantics1BoxedBoolean(boolean data) { - this.data = data; - } + public record NestedOneofToCheckValidationSemantics1BoxedBoolean(boolean data) implements NestedOneofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NestedOneofToCheckValidationSemantics1BoxedNumber extends NestedOneofToCheckValidationSemantics1Boxed { - public final Number data; - private NestedOneofToCheckValidationSemantics1BoxedNumber(Number data) { - this.data = data; - } + public record NestedOneofToCheckValidationSemantics1BoxedNumber(Number data) implements NestedOneofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NestedOneofToCheckValidationSemantics1BoxedString extends NestedOneofToCheckValidationSemantics1Boxed { - public final String data; - private NestedOneofToCheckValidationSemantics1BoxedString(String data) { - this.data = data; - } + public record NestedOneofToCheckValidationSemantics1BoxedString(String data) implements NestedOneofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NestedOneofToCheckValidationSemantics1BoxedList extends NestedOneofToCheckValidationSemantics1Boxed { - public final FrozenList<@Nullable Object> data; - private NestedOneofToCheckValidationSemantics1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record NestedOneofToCheckValidationSemantics1BoxedList(FrozenList<@Nullable Object> data) implements NestedOneofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NestedOneofToCheckValidationSemantics1BoxedMap extends NestedOneofToCheckValidationSemantics1Boxed { - public final FrozenMap<@Nullable Object> data; - private NestedOneofToCheckValidationSemantics1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record NestedOneofToCheckValidationSemantics1BoxedMap(FrozenMap<@Nullable Object> data) implements NestedOneofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class NestedOneofToCheckValidationSemantics1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, NestedOneofToCheckValidationSemantics1BoxedList>, MapSchemaValidator, NestedOneofToCheckValidationSemantics1BoxedMap> { + public static class NestedOneofToCheckValidationSemantics1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, NestedOneofToCheckValidationSemantics1BoxedList>, MapSchemaValidator, NestedOneofToCheckValidationSemantics1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -517,11 +488,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -552,11 +523,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -635,5 +606,24 @@ public NestedOneofToCheckValidationSemantics1BoxedList validateAndBox(List ar public NestedOneofToCheckValidationSemantics1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NestedOneofToCheckValidationSemantics1BoxedMap(validate(arg, configuration)); } + @Override + public NestedOneofToCheckValidationSemantics1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Not.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Not.java index ea255f3c1e1..98514e1cbff 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Not.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Not.java @@ -47,78 +47,54 @@ public static Not2 getInstance() { } - public static abstract sealed class Not1Boxed permits Not1BoxedVoid, Not1BoxedBoolean, Not1BoxedNumber, Not1BoxedString, Not1BoxedList, Not1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Not1Boxed permits Not1BoxedVoid, Not1BoxedBoolean, Not1BoxedNumber, Not1BoxedString, Not1BoxedList, Not1BoxedMap { + @Nullable Object getData(); } - public static final class Not1BoxedVoid extends Not1Boxed { - public final Void data; - private Not1BoxedVoid(Void data) { - this.data = data; - } + public record Not1BoxedVoid(Void data) implements Not1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Not1BoxedBoolean extends Not1Boxed { - public final boolean data; - private Not1BoxedBoolean(boolean data) { - this.data = data; - } + public record Not1BoxedBoolean(boolean data) implements Not1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Not1BoxedNumber extends Not1Boxed { - public final Number data; - private Not1BoxedNumber(Number data) { - this.data = data; - } + public record Not1BoxedNumber(Number data) implements Not1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Not1BoxedString extends Not1Boxed { - public final String data; - private Not1BoxedString(String data) { - this.data = data; - } + public record Not1BoxedString(String data) implements Not1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Not1BoxedList extends Not1Boxed { - public final FrozenList<@Nullable Object> data; - private Not1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Not1BoxedList(FrozenList<@Nullable Object> data) implements Not1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Not1BoxedMap extends Not1Boxed { - public final FrozenMap<@Nullable Object> data; - private Not1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Not1BoxedMap(FrozenMap<@Nullable Object> data) implements Not1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Not1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Not1BoxedList>, MapSchemaValidator, Not1BoxedMap> { + public static class Not1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Not1BoxedList>, MapSchemaValidator, Not1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -223,11 +199,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -258,11 +234,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -341,5 +317,24 @@ public Not1BoxedList validateAndBox(List arg, SchemaConfiguration configurati public Not1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Not1BoxedMap(validate(arg, configuration)); } + @Override + public Not1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NotMoreComplexSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NotMoreComplexSchema.java index 245812f4415..0e92dc9eac8 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NotMoreComplexSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NotMoreComplexSchema.java @@ -115,23 +115,19 @@ public NotMapBuilder getBuilderAfterAdditionalProperty(Map { + public static class Not extends JsonSchema implements MapSchemaValidator { private static @Nullable Not instance = null; protected Not() { @@ -161,11 +157,11 @@ public NotMap getNewInstance(Map arg, List pathToItem, PathToSchem List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -202,81 +198,64 @@ public NotMap validate(Map arg, SchemaConfiguration configuration) throws public NotBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NotBoxedMap(validate(arg, configuration)); } + @Override + public NotBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class NotMoreComplexSchema1Boxed permits NotMoreComplexSchema1BoxedVoid, NotMoreComplexSchema1BoxedBoolean, NotMoreComplexSchema1BoxedNumber, NotMoreComplexSchema1BoxedString, NotMoreComplexSchema1BoxedList, NotMoreComplexSchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface NotMoreComplexSchema1Boxed permits NotMoreComplexSchema1BoxedVoid, NotMoreComplexSchema1BoxedBoolean, NotMoreComplexSchema1BoxedNumber, NotMoreComplexSchema1BoxedString, NotMoreComplexSchema1BoxedList, NotMoreComplexSchema1BoxedMap { + @Nullable Object getData(); } - public static final class NotMoreComplexSchema1BoxedVoid extends NotMoreComplexSchema1Boxed { - public final Void data; - private NotMoreComplexSchema1BoxedVoid(Void data) { - this.data = data; - } + public record NotMoreComplexSchema1BoxedVoid(Void data) implements NotMoreComplexSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotMoreComplexSchema1BoxedBoolean extends NotMoreComplexSchema1Boxed { - public final boolean data; - private NotMoreComplexSchema1BoxedBoolean(boolean data) { - this.data = data; - } + public record NotMoreComplexSchema1BoxedBoolean(boolean data) implements NotMoreComplexSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotMoreComplexSchema1BoxedNumber extends NotMoreComplexSchema1Boxed { - public final Number data; - private NotMoreComplexSchema1BoxedNumber(Number data) { - this.data = data; - } + public record NotMoreComplexSchema1BoxedNumber(Number data) implements NotMoreComplexSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotMoreComplexSchema1BoxedString extends NotMoreComplexSchema1Boxed { - public final String data; - private NotMoreComplexSchema1BoxedString(String data) { - this.data = data; - } + public record NotMoreComplexSchema1BoxedString(String data) implements NotMoreComplexSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotMoreComplexSchema1BoxedList extends NotMoreComplexSchema1Boxed { - public final FrozenList<@Nullable Object> data; - private NotMoreComplexSchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record NotMoreComplexSchema1BoxedList(FrozenList<@Nullable Object> data) implements NotMoreComplexSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotMoreComplexSchema1BoxedMap extends NotMoreComplexSchema1Boxed { - public final FrozenMap<@Nullable Object> data; - private NotMoreComplexSchema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record NotMoreComplexSchema1BoxedMap(FrozenMap<@Nullable Object> data) implements NotMoreComplexSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class NotMoreComplexSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, NotMoreComplexSchema1BoxedList>, MapSchemaValidator, NotMoreComplexSchema1BoxedMap> { + public static class NotMoreComplexSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, NotMoreComplexSchema1BoxedList>, MapSchemaValidator, NotMoreComplexSchema1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -381,11 +360,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -416,11 +395,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -499,5 +478,24 @@ public NotMoreComplexSchema1BoxedList validateAndBox(List arg, SchemaConfigur public NotMoreComplexSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NotMoreComplexSchema1BoxedMap(validate(arg, configuration)); } + @Override + public NotMoreComplexSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NulCharactersInStrings.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NulCharactersInStrings.java index 488e5aa4a93..cccbac4a8ff 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NulCharactersInStrings.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NulCharactersInStrings.java @@ -34,24 +34,20 @@ public String value() { } - public static abstract sealed class NulCharactersInStrings1Boxed permits NulCharactersInStrings1BoxedString { - public abstract @Nullable Object data(); + public sealed interface NulCharactersInStrings1Boxed permits NulCharactersInStrings1BoxedString { + @Nullable Object getData(); } - public static final class NulCharactersInStrings1BoxedString extends NulCharactersInStrings1Boxed { - public final String data; - private NulCharactersInStrings1BoxedString(String data) { - this.data = data; - } + public record NulCharactersInStrings1BoxedString(String data) implements NulCharactersInStrings1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class NulCharactersInStrings1 extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class NulCharactersInStrings1 extends JsonSchema implements StringSchemaValidator, StringEnumValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -112,5 +108,12 @@ public String validate(StringNulCharactersInStringsEnums arg,SchemaConfiguration public NulCharactersInStrings1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NulCharactersInStrings1BoxedString(validate(arg, configuration)); } + @Override + public NulCharactersInStrings1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectPropertiesValidation.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectPropertiesValidation.java index 9637bde1419..01f7f868c52 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectPropertiesValidation.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectPropertiesValidation.java @@ -171,78 +171,54 @@ public ObjectPropertiesValidationMapBuilder getBuilderAfterAdditionalProperty(Ma } - public static abstract sealed class ObjectPropertiesValidation1Boxed permits ObjectPropertiesValidation1BoxedVoid, ObjectPropertiesValidation1BoxedBoolean, ObjectPropertiesValidation1BoxedNumber, ObjectPropertiesValidation1BoxedString, ObjectPropertiesValidation1BoxedList, ObjectPropertiesValidation1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface ObjectPropertiesValidation1Boxed permits ObjectPropertiesValidation1BoxedVoid, ObjectPropertiesValidation1BoxedBoolean, ObjectPropertiesValidation1BoxedNumber, ObjectPropertiesValidation1BoxedString, ObjectPropertiesValidation1BoxedList, ObjectPropertiesValidation1BoxedMap { + @Nullable Object getData(); } - public static final class ObjectPropertiesValidation1BoxedVoid extends ObjectPropertiesValidation1Boxed { - public final Void data; - private ObjectPropertiesValidation1BoxedVoid(Void data) { - this.data = data; - } + public record ObjectPropertiesValidation1BoxedVoid(Void data) implements ObjectPropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ObjectPropertiesValidation1BoxedBoolean extends ObjectPropertiesValidation1Boxed { - public final boolean data; - private ObjectPropertiesValidation1BoxedBoolean(boolean data) { - this.data = data; - } + public record ObjectPropertiesValidation1BoxedBoolean(boolean data) implements ObjectPropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ObjectPropertiesValidation1BoxedNumber extends ObjectPropertiesValidation1Boxed { - public final Number data; - private ObjectPropertiesValidation1BoxedNumber(Number data) { - this.data = data; - } + public record ObjectPropertiesValidation1BoxedNumber(Number data) implements ObjectPropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ObjectPropertiesValidation1BoxedString extends ObjectPropertiesValidation1Boxed { - public final String data; - private ObjectPropertiesValidation1BoxedString(String data) { - this.data = data; - } + public record ObjectPropertiesValidation1BoxedString(String data) implements ObjectPropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ObjectPropertiesValidation1BoxedList extends ObjectPropertiesValidation1Boxed { - public final FrozenList<@Nullable Object> data; - private ObjectPropertiesValidation1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ObjectPropertiesValidation1BoxedList(FrozenList<@Nullable Object> data) implements ObjectPropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ObjectPropertiesValidation1BoxedMap extends ObjectPropertiesValidation1Boxed { - public final ObjectPropertiesValidationMap data; - private ObjectPropertiesValidation1BoxedMap(ObjectPropertiesValidationMap data) { - this.data = data; - } + public record ObjectPropertiesValidation1BoxedMap(ObjectPropertiesValidationMap data) implements ObjectPropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class ObjectPropertiesValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ObjectPropertiesValidation1BoxedList>, MapSchemaValidator { + public static class ObjectPropertiesValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ObjectPropertiesValidation1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -350,11 +326,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -385,11 +361,11 @@ public ObjectPropertiesValidationMap getNewInstance(Map arg, List List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -468,5 +444,24 @@ public ObjectPropertiesValidation1BoxedList validateAndBox(List arg, SchemaCo public ObjectPropertiesValidation1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ObjectPropertiesValidation1BoxedMap(validate(arg, configuration)); } + @Override + public ObjectPropertiesValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Oneof.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Oneof.java index 3fb43ed1107..86951cf5e63 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Oneof.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Oneof.java @@ -47,78 +47,54 @@ public static Schema0 getInstance() { } - public static abstract sealed class Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { + @Nullable Object getData(); } - public static final class Schema1BoxedVoid extends Schema1Boxed { - public final Void data; - private Schema1BoxedVoid(Void data) { - this.data = data; - } + public record Schema1BoxedVoid(Void data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedBoolean extends Schema1Boxed { - public final boolean data; - private Schema1BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema1BoxedBoolean(boolean data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedNumber extends Schema1Boxed { - public final Number data; - private Schema1BoxedNumber(Number data) { - this.data = data; - } + public record Schema1BoxedNumber(Number data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedString extends Schema1Boxed { - public final String data; - private Schema1BoxedString(String data) { - this.data = data; - } + public record Schema1BoxedString(String data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedList extends Schema1Boxed { - public final FrozenList<@Nullable Object> data; - private Schema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedList(FrozenList<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedMap extends Schema1Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedMap(FrozenMap<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator, Schema1BoxedMap> { + public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator, Schema1BoxedMap> { private static @Nullable Schema1 instance = null; protected Schema1() { @@ -217,11 +193,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -252,11 +228,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -335,80 +311,75 @@ public Schema1BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema1BoxedMap(validate(arg, configuration)); } + @Override + public Schema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class Oneof1Boxed permits Oneof1BoxedVoid, Oneof1BoxedBoolean, Oneof1BoxedNumber, Oneof1BoxedString, Oneof1BoxedList, Oneof1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Oneof1Boxed permits Oneof1BoxedVoid, Oneof1BoxedBoolean, Oneof1BoxedNumber, Oneof1BoxedString, Oneof1BoxedList, Oneof1BoxedMap { + @Nullable Object getData(); } - public static final class Oneof1BoxedVoid extends Oneof1Boxed { - public final Void data; - private Oneof1BoxedVoid(Void data) { - this.data = data; - } + public record Oneof1BoxedVoid(Void data) implements Oneof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Oneof1BoxedBoolean extends Oneof1Boxed { - public final boolean data; - private Oneof1BoxedBoolean(boolean data) { - this.data = data; - } + public record Oneof1BoxedBoolean(boolean data) implements Oneof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Oneof1BoxedNumber extends Oneof1Boxed { - public final Number data; - private Oneof1BoxedNumber(Number data) { - this.data = data; - } + public record Oneof1BoxedNumber(Number data) implements Oneof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Oneof1BoxedString extends Oneof1Boxed { - public final String data; - private Oneof1BoxedString(String data) { - this.data = data; - } + public record Oneof1BoxedString(String data) implements Oneof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Oneof1BoxedList extends Oneof1Boxed { - public final FrozenList<@Nullable Object> data; - private Oneof1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Oneof1BoxedList(FrozenList<@Nullable Object> data) implements Oneof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Oneof1BoxedMap extends Oneof1Boxed { - public final FrozenMap<@Nullable Object> data; - private Oneof1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Oneof1BoxedMap(FrozenMap<@Nullable Object> data) implements Oneof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Oneof1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Oneof1BoxedList>, MapSchemaValidator, Oneof1BoxedMap> { + public static class Oneof1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Oneof1BoxedList>, MapSchemaValidator, Oneof1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -516,11 +487,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -551,11 +522,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -634,5 +605,24 @@ public Oneof1BoxedList validateAndBox(List arg, SchemaConfiguration configura public Oneof1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Oneof1BoxedMap(validate(arg, configuration)); } + @Override + public Oneof1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofComplexTypes.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofComplexTypes.java index 84d62dcd36a..ee1966faee0 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofComplexTypes.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofComplexTypes.java @@ -142,78 +142,54 @@ public Schema0Map0Builder getBuilderAfterBar(Map insta } - public static abstract sealed class Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { + @Nullable Object getData(); } - public static final class Schema0BoxedVoid extends Schema0Boxed { - public final Void data; - private Schema0BoxedVoid(Void data) { - this.data = data; - } + public record Schema0BoxedVoid(Void data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedBoolean extends Schema0Boxed { - public final boolean data; - private Schema0BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema0BoxedBoolean(boolean data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedNumber extends Schema0Boxed { - public final Number data; - private Schema0BoxedNumber(Number data) { - this.data = data; - } + public record Schema0BoxedNumber(Number data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedString extends Schema0Boxed { - public final String data; - private Schema0BoxedString(String data) { - this.data = data; - } + public record Schema0BoxedString(String data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedList extends Schema0Boxed { - public final FrozenList<@Nullable Object> data; - private Schema0BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedList(FrozenList<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedMap extends Schema0Boxed { - public final Schema0Map data; - private Schema0BoxedMap(Schema0Map data) { - this.data = data; - } + public record Schema0BoxedMap(Schema0Map data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator { + public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator { private static @Nullable Schema0 instance = null; protected Schema0() { @@ -317,11 +293,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -352,11 +328,11 @@ public Schema0Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -435,6 +411,25 @@ public Schema0BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema0BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema0BoxedMap(validate(arg, configuration)); } + @Override + public Schema0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class Foo extends StringJsonSchema.StringJsonSchema1 { @@ -522,78 +517,54 @@ public Schema1Map0Builder getBuilderAfterFoo(Map insta } - public static abstract sealed class Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { + @Nullable Object getData(); } - public static final class Schema1BoxedVoid extends Schema1Boxed { - public final Void data; - private Schema1BoxedVoid(Void data) { - this.data = data; - } + public record Schema1BoxedVoid(Void data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedBoolean extends Schema1Boxed { - public final boolean data; - private Schema1BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema1BoxedBoolean(boolean data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedNumber extends Schema1Boxed { - public final Number data; - private Schema1BoxedNumber(Number data) { - this.data = data; - } + public record Schema1BoxedNumber(Number data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedString extends Schema1Boxed { - public final String data; - private Schema1BoxedString(String data) { - this.data = data; - } + public record Schema1BoxedString(String data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedList extends Schema1Boxed { - public final FrozenList<@Nullable Object> data; - private Schema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedList(FrozenList<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedMap extends Schema1Boxed { - public final Schema1Map data; - private Schema1BoxedMap(Schema1Map data) { - this.data = data; - } + public record Schema1BoxedMap(Schema1Map data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator { + public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator { private static @Nullable Schema1 instance = null; protected Schema1() { @@ -697,11 +668,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -732,11 +703,11 @@ public Schema1Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -815,80 +786,75 @@ public Schema1BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema1BoxedMap(validate(arg, configuration)); } + @Override + public Schema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class OneofComplexTypes1Boxed permits OneofComplexTypes1BoxedVoid, OneofComplexTypes1BoxedBoolean, OneofComplexTypes1BoxedNumber, OneofComplexTypes1BoxedString, OneofComplexTypes1BoxedList, OneofComplexTypes1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface OneofComplexTypes1Boxed permits OneofComplexTypes1BoxedVoid, OneofComplexTypes1BoxedBoolean, OneofComplexTypes1BoxedNumber, OneofComplexTypes1BoxedString, OneofComplexTypes1BoxedList, OneofComplexTypes1BoxedMap { + @Nullable Object getData(); } - public static final class OneofComplexTypes1BoxedVoid extends OneofComplexTypes1Boxed { - public final Void data; - private OneofComplexTypes1BoxedVoid(Void data) { - this.data = data; - } + public record OneofComplexTypes1BoxedVoid(Void data) implements OneofComplexTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class OneofComplexTypes1BoxedBoolean extends OneofComplexTypes1Boxed { - public final boolean data; - private OneofComplexTypes1BoxedBoolean(boolean data) { - this.data = data; - } + public record OneofComplexTypes1BoxedBoolean(boolean data) implements OneofComplexTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class OneofComplexTypes1BoxedNumber extends OneofComplexTypes1Boxed { - public final Number data; - private OneofComplexTypes1BoxedNumber(Number data) { - this.data = data; - } + public record OneofComplexTypes1BoxedNumber(Number data) implements OneofComplexTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class OneofComplexTypes1BoxedString extends OneofComplexTypes1Boxed { - public final String data; - private OneofComplexTypes1BoxedString(String data) { - this.data = data; - } + public record OneofComplexTypes1BoxedString(String data) implements OneofComplexTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class OneofComplexTypes1BoxedList extends OneofComplexTypes1Boxed { - public final FrozenList<@Nullable Object> data; - private OneofComplexTypes1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record OneofComplexTypes1BoxedList(FrozenList<@Nullable Object> data) implements OneofComplexTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class OneofComplexTypes1BoxedMap extends OneofComplexTypes1Boxed { - public final FrozenMap<@Nullable Object> data; - private OneofComplexTypes1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record OneofComplexTypes1BoxedMap(FrozenMap<@Nullable Object> data) implements OneofComplexTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class OneofComplexTypes1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, OneofComplexTypes1BoxedList>, MapSchemaValidator, OneofComplexTypes1BoxedMap> { + public static class OneofComplexTypes1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, OneofComplexTypes1BoxedList>, MapSchemaValidator, OneofComplexTypes1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -996,11 +962,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -1031,11 +997,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1114,5 +1080,24 @@ public OneofComplexTypes1BoxedList validateAndBox(List arg, SchemaConfigurati public OneofComplexTypes1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new OneofComplexTypes1BoxedMap(validate(arg, configuration)); } + @Override + public OneofComplexTypes1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithBaseSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithBaseSchema.java index 6fdab1d7d35..e9d3f27028e 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithBaseSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithBaseSchema.java @@ -35,78 +35,54 @@ public class OneofWithBaseSchema { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { + @Nullable Object getData(); } - public static final class Schema0BoxedVoid extends Schema0Boxed { - public final Void data; - private Schema0BoxedVoid(Void data) { - this.data = data; - } + public record Schema0BoxedVoid(Void data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedBoolean extends Schema0Boxed { - public final boolean data; - private Schema0BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema0BoxedBoolean(boolean data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedNumber extends Schema0Boxed { - public final Number data; - private Schema0BoxedNumber(Number data) { - this.data = data; - } + public record Schema0BoxedNumber(Number data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedString extends Schema0Boxed { - public final String data; - private Schema0BoxedString(String data) { - this.data = data; - } + public record Schema0BoxedString(String data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedList extends Schema0Boxed { - public final FrozenList<@Nullable Object> data; - private Schema0BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedList(FrozenList<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedMap extends Schema0Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema0BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedMap(FrozenMap<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator, Schema0BoxedMap> { + public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator, Schema0BoxedMap> { private static @Nullable Schema0 instance = null; protected Schema0() { @@ -205,11 +181,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -240,11 +216,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -323,80 +299,75 @@ public Schema0BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema0BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema0BoxedMap(validate(arg, configuration)); } + @Override + public Schema0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { + @Nullable Object getData(); } - public static final class Schema1BoxedVoid extends Schema1Boxed { - public final Void data; - private Schema1BoxedVoid(Void data) { - this.data = data; - } + public record Schema1BoxedVoid(Void data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedBoolean extends Schema1Boxed { - public final boolean data; - private Schema1BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema1BoxedBoolean(boolean data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedNumber extends Schema1Boxed { - public final Number data; - private Schema1BoxedNumber(Number data) { - this.data = data; - } + public record Schema1BoxedNumber(Number data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedString extends Schema1Boxed { - public final String data; - private Schema1BoxedString(String data) { - this.data = data; - } + public record Schema1BoxedString(String data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedList extends Schema1Boxed { - public final FrozenList<@Nullable Object> data; - private Schema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedList(FrozenList<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedMap extends Schema1Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedMap(FrozenMap<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator, Schema1BoxedMap> { + public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator, Schema1BoxedMap> { private static @Nullable Schema1 instance = null; protected Schema1() { @@ -495,11 +466,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -530,11 +501,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -613,26 +584,41 @@ public Schema1BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema1BoxedMap(validate(arg, configuration)); } + @Override + public Schema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class OneofWithBaseSchema1Boxed permits OneofWithBaseSchema1BoxedString { - public abstract @Nullable Object data(); + public sealed interface OneofWithBaseSchema1Boxed permits OneofWithBaseSchema1BoxedString { + @Nullable Object getData(); } - public static final class OneofWithBaseSchema1BoxedString extends OneofWithBaseSchema1Boxed { - public final String data; - private OneofWithBaseSchema1BoxedString(String data) { - this.data = data; - } + public record OneofWithBaseSchema1BoxedString(String data) implements OneofWithBaseSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class OneofWithBaseSchema1 extends JsonSchema implements StringSchemaValidator { + public static class OneofWithBaseSchema1 extends JsonSchema implements StringSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -689,5 +675,12 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val public OneofWithBaseSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new OneofWithBaseSchema1BoxedString(validate(arg, configuration)); } + @Override + public OneofWithBaseSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithEmptySchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithEmptySchema.java index 14094b8e686..96c4c68034b 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithEmptySchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithEmptySchema.java @@ -59,78 +59,54 @@ public static Schema1 getInstance() { } - public static abstract sealed class OneofWithEmptySchema1Boxed permits OneofWithEmptySchema1BoxedVoid, OneofWithEmptySchema1BoxedBoolean, OneofWithEmptySchema1BoxedNumber, OneofWithEmptySchema1BoxedString, OneofWithEmptySchema1BoxedList, OneofWithEmptySchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface OneofWithEmptySchema1Boxed permits OneofWithEmptySchema1BoxedVoid, OneofWithEmptySchema1BoxedBoolean, OneofWithEmptySchema1BoxedNumber, OneofWithEmptySchema1BoxedString, OneofWithEmptySchema1BoxedList, OneofWithEmptySchema1BoxedMap { + @Nullable Object getData(); } - public static final class OneofWithEmptySchema1BoxedVoid extends OneofWithEmptySchema1Boxed { - public final Void data; - private OneofWithEmptySchema1BoxedVoid(Void data) { - this.data = data; - } + public record OneofWithEmptySchema1BoxedVoid(Void data) implements OneofWithEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class OneofWithEmptySchema1BoxedBoolean extends OneofWithEmptySchema1Boxed { - public final boolean data; - private OneofWithEmptySchema1BoxedBoolean(boolean data) { - this.data = data; - } + public record OneofWithEmptySchema1BoxedBoolean(boolean data) implements OneofWithEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class OneofWithEmptySchema1BoxedNumber extends OneofWithEmptySchema1Boxed { - public final Number data; - private OneofWithEmptySchema1BoxedNumber(Number data) { - this.data = data; - } + public record OneofWithEmptySchema1BoxedNumber(Number data) implements OneofWithEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class OneofWithEmptySchema1BoxedString extends OneofWithEmptySchema1Boxed { - public final String data; - private OneofWithEmptySchema1BoxedString(String data) { - this.data = data; - } + public record OneofWithEmptySchema1BoxedString(String data) implements OneofWithEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class OneofWithEmptySchema1BoxedList extends OneofWithEmptySchema1Boxed { - public final FrozenList<@Nullable Object> data; - private OneofWithEmptySchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record OneofWithEmptySchema1BoxedList(FrozenList<@Nullable Object> data) implements OneofWithEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class OneofWithEmptySchema1BoxedMap extends OneofWithEmptySchema1Boxed { - public final FrozenMap<@Nullable Object> data; - private OneofWithEmptySchema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record OneofWithEmptySchema1BoxedMap(FrozenMap<@Nullable Object> data) implements OneofWithEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class OneofWithEmptySchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, OneofWithEmptySchema1BoxedList>, MapSchemaValidator, OneofWithEmptySchema1BoxedMap> { + public static class OneofWithEmptySchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, OneofWithEmptySchema1BoxedList>, MapSchemaValidator, OneofWithEmptySchema1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -238,11 +214,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -273,11 +249,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -356,5 +332,24 @@ public OneofWithEmptySchema1BoxedList validateAndBox(List arg, SchemaConfigur public OneofWithEmptySchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new OneofWithEmptySchema1BoxedMap(validate(arg, configuration)); } + @Override + public OneofWithEmptySchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithRequired.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithRequired.java index 98c0decd936..b62dc7bf97e 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithRequired.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithRequired.java @@ -248,78 +248,54 @@ public Schema0Map10Builder getBuilderAfterFoo(Map inst } - public static abstract sealed class Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { + @Nullable Object getData(); } - public static final class Schema0BoxedVoid extends Schema0Boxed { - public final Void data; - private Schema0BoxedVoid(Void data) { - this.data = data; - } + public record Schema0BoxedVoid(Void data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedBoolean extends Schema0Boxed { - public final boolean data; - private Schema0BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema0BoxedBoolean(boolean data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedNumber extends Schema0Boxed { - public final Number data; - private Schema0BoxedNumber(Number data) { - this.data = data; - } + public record Schema0BoxedNumber(Number data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedString extends Schema0Boxed { - public final String data; - private Schema0BoxedString(String data) { - this.data = data; - } + public record Schema0BoxedString(String data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedList extends Schema0Boxed { - public final FrozenList<@Nullable Object> data; - private Schema0BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedList(FrozenList<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedMap extends Schema0Boxed { - public final Schema0Map data; - private Schema0BoxedMap(Schema0Map data) { - this.data = data; - } + public record Schema0BoxedMap(Schema0Map data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator { + public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator { private static @Nullable Schema0 instance = null; protected Schema0() { @@ -421,11 +397,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -456,11 +432,11 @@ public Schema0Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -539,6 +515,25 @@ public Schema0BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema0BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema0BoxedMap(validate(arg, configuration)); } + @Override + public Schema0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class Schema1Map extends FrozenMap<@Nullable Object> { @@ -753,78 +748,54 @@ public Schema1Map10Builder getBuilderAfterFoo1(Map ins } - public static abstract sealed class Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { + @Nullable Object getData(); } - public static final class Schema1BoxedVoid extends Schema1Boxed { - public final Void data; - private Schema1BoxedVoid(Void data) { - this.data = data; - } + public record Schema1BoxedVoid(Void data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedBoolean extends Schema1Boxed { - public final boolean data; - private Schema1BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema1BoxedBoolean(boolean data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedNumber extends Schema1Boxed { - public final Number data; - private Schema1BoxedNumber(Number data) { - this.data = data; - } + public record Schema1BoxedNumber(Number data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedString extends Schema1Boxed { - public final String data; - private Schema1BoxedString(String data) { - this.data = data; - } + public record Schema1BoxedString(String data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedList extends Schema1Boxed { - public final FrozenList<@Nullable Object> data; - private Schema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedList(FrozenList<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedMap extends Schema1Boxed { - public final Schema1Map data; - private Schema1BoxedMap(Schema1Map data) { - this.data = data; - } + public record Schema1BoxedMap(Schema1Map data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator { + public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator { private static @Nullable Schema1 instance = null; protected Schema1() { @@ -926,11 +897,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -961,11 +932,11 @@ public Schema1Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1044,25 +1015,40 @@ public Schema1BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema1BoxedMap(validate(arg, configuration)); } + @Override + public Schema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class OneofWithRequired1Boxed permits OneofWithRequired1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface OneofWithRequired1Boxed permits OneofWithRequired1BoxedMap { + @Nullable Object getData(); } - public static final class OneofWithRequired1BoxedMap extends OneofWithRequired1Boxed { - public final FrozenMap<@Nullable Object> data; - private OneofWithRequired1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record OneofWithRequired1BoxedMap(FrozenMap<@Nullable Object> data) implements OneofWithRequired1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class OneofWithRequired1 extends JsonSchema implements MapSchemaValidator, OneofWithRequired1BoxedMap> { + public static class OneofWithRequired1 extends JsonSchema implements MapSchemaValidator, OneofWithRequired1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -1099,11 +1085,11 @@ public static OneofWithRequired1 getInstance() { List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1140,6 +1126,13 @@ public static OneofWithRequired1 getInstance() { public OneofWithRequired1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new OneofWithRequired1BoxedMap(validate(arg, configuration)); } + @Override + public OneofWithRequired1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternIsNotAnchored.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternIsNotAnchored.java index 01e0392657e..49d4017ae06 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternIsNotAnchored.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternIsNotAnchored.java @@ -36,78 +36,54 @@ public class PatternIsNotAnchored { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class PatternIsNotAnchored1Boxed permits PatternIsNotAnchored1BoxedVoid, PatternIsNotAnchored1BoxedBoolean, PatternIsNotAnchored1BoxedNumber, PatternIsNotAnchored1BoxedString, PatternIsNotAnchored1BoxedList, PatternIsNotAnchored1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface PatternIsNotAnchored1Boxed permits PatternIsNotAnchored1BoxedVoid, PatternIsNotAnchored1BoxedBoolean, PatternIsNotAnchored1BoxedNumber, PatternIsNotAnchored1BoxedString, PatternIsNotAnchored1BoxedList, PatternIsNotAnchored1BoxedMap { + @Nullable Object getData(); } - public static final class PatternIsNotAnchored1BoxedVoid extends PatternIsNotAnchored1Boxed { - public final Void data; - private PatternIsNotAnchored1BoxedVoid(Void data) { - this.data = data; - } + public record PatternIsNotAnchored1BoxedVoid(Void data) implements PatternIsNotAnchored1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PatternIsNotAnchored1BoxedBoolean extends PatternIsNotAnchored1Boxed { - public final boolean data; - private PatternIsNotAnchored1BoxedBoolean(boolean data) { - this.data = data; - } + public record PatternIsNotAnchored1BoxedBoolean(boolean data) implements PatternIsNotAnchored1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PatternIsNotAnchored1BoxedNumber extends PatternIsNotAnchored1Boxed { - public final Number data; - private PatternIsNotAnchored1BoxedNumber(Number data) { - this.data = data; - } + public record PatternIsNotAnchored1BoxedNumber(Number data) implements PatternIsNotAnchored1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PatternIsNotAnchored1BoxedString extends PatternIsNotAnchored1Boxed { - public final String data; - private PatternIsNotAnchored1BoxedString(String data) { - this.data = data; - } + public record PatternIsNotAnchored1BoxedString(String data) implements PatternIsNotAnchored1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PatternIsNotAnchored1BoxedList extends PatternIsNotAnchored1Boxed { - public final FrozenList<@Nullable Object> data; - private PatternIsNotAnchored1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record PatternIsNotAnchored1BoxedList(FrozenList<@Nullable Object> data) implements PatternIsNotAnchored1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PatternIsNotAnchored1BoxedMap extends PatternIsNotAnchored1Boxed { - public final FrozenMap<@Nullable Object> data; - private PatternIsNotAnchored1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record PatternIsNotAnchored1BoxedMap(FrozenMap<@Nullable Object> data) implements PatternIsNotAnchored1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class PatternIsNotAnchored1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, PatternIsNotAnchored1BoxedList>, MapSchemaValidator, PatternIsNotAnchored1BoxedMap> { + public static class PatternIsNotAnchored1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, PatternIsNotAnchored1BoxedList>, MapSchemaValidator, PatternIsNotAnchored1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -214,11 +190,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -249,11 +225,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -332,5 +308,24 @@ public PatternIsNotAnchored1BoxedList validateAndBox(List arg, SchemaConfigur public PatternIsNotAnchored1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PatternIsNotAnchored1BoxedMap(validate(arg, configuration)); } + @Override + public PatternIsNotAnchored1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternValidation.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternValidation.java index 1493b20852c..7e0ffabd596 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternValidation.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternValidation.java @@ -36,78 +36,54 @@ public class PatternValidation { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class PatternValidation1Boxed permits PatternValidation1BoxedVoid, PatternValidation1BoxedBoolean, PatternValidation1BoxedNumber, PatternValidation1BoxedString, PatternValidation1BoxedList, PatternValidation1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface PatternValidation1Boxed permits PatternValidation1BoxedVoid, PatternValidation1BoxedBoolean, PatternValidation1BoxedNumber, PatternValidation1BoxedString, PatternValidation1BoxedList, PatternValidation1BoxedMap { + @Nullable Object getData(); } - public static final class PatternValidation1BoxedVoid extends PatternValidation1Boxed { - public final Void data; - private PatternValidation1BoxedVoid(Void data) { - this.data = data; - } + public record PatternValidation1BoxedVoid(Void data) implements PatternValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PatternValidation1BoxedBoolean extends PatternValidation1Boxed { - public final boolean data; - private PatternValidation1BoxedBoolean(boolean data) { - this.data = data; - } + public record PatternValidation1BoxedBoolean(boolean data) implements PatternValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PatternValidation1BoxedNumber extends PatternValidation1Boxed { - public final Number data; - private PatternValidation1BoxedNumber(Number data) { - this.data = data; - } + public record PatternValidation1BoxedNumber(Number data) implements PatternValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PatternValidation1BoxedString extends PatternValidation1Boxed { - public final String data; - private PatternValidation1BoxedString(String data) { - this.data = data; - } + public record PatternValidation1BoxedString(String data) implements PatternValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PatternValidation1BoxedList extends PatternValidation1Boxed { - public final FrozenList<@Nullable Object> data; - private PatternValidation1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record PatternValidation1BoxedList(FrozenList<@Nullable Object> data) implements PatternValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PatternValidation1BoxedMap extends PatternValidation1Boxed { - public final FrozenMap<@Nullable Object> data; - private PatternValidation1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record PatternValidation1BoxedMap(FrozenMap<@Nullable Object> data) implements PatternValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class PatternValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, PatternValidation1BoxedList>, MapSchemaValidator, PatternValidation1BoxedMap> { + public static class PatternValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, PatternValidation1BoxedList>, MapSchemaValidator, PatternValidation1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -214,11 +190,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -249,11 +225,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -332,5 +308,24 @@ public PatternValidation1BoxedList validateAndBox(List arg, SchemaConfigurati public PatternValidation1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PatternValidation1BoxedMap(validate(arg, configuration)); } + @Override + public PatternValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesWithEscapedCharacters.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesWithEscapedCharacters.java index 5c68c3db422..9fec0c66360 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesWithEscapedCharacters.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesWithEscapedCharacters.java @@ -348,78 +348,54 @@ public PropertiesWithEscapedCharactersMapBuilder getBuilderAfterAdditionalProper } - public static abstract sealed class PropertiesWithEscapedCharacters1Boxed permits PropertiesWithEscapedCharacters1BoxedVoid, PropertiesWithEscapedCharacters1BoxedBoolean, PropertiesWithEscapedCharacters1BoxedNumber, PropertiesWithEscapedCharacters1BoxedString, PropertiesWithEscapedCharacters1BoxedList, PropertiesWithEscapedCharacters1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface PropertiesWithEscapedCharacters1Boxed permits PropertiesWithEscapedCharacters1BoxedVoid, PropertiesWithEscapedCharacters1BoxedBoolean, PropertiesWithEscapedCharacters1BoxedNumber, PropertiesWithEscapedCharacters1BoxedString, PropertiesWithEscapedCharacters1BoxedList, PropertiesWithEscapedCharacters1BoxedMap { + @Nullable Object getData(); } - public static final class PropertiesWithEscapedCharacters1BoxedVoid extends PropertiesWithEscapedCharacters1Boxed { - public final Void data; - private PropertiesWithEscapedCharacters1BoxedVoid(Void data) { - this.data = data; - } + public record PropertiesWithEscapedCharacters1BoxedVoid(Void data) implements PropertiesWithEscapedCharacters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertiesWithEscapedCharacters1BoxedBoolean extends PropertiesWithEscapedCharacters1Boxed { - public final boolean data; - private PropertiesWithEscapedCharacters1BoxedBoolean(boolean data) { - this.data = data; - } + public record PropertiesWithEscapedCharacters1BoxedBoolean(boolean data) implements PropertiesWithEscapedCharacters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertiesWithEscapedCharacters1BoxedNumber extends PropertiesWithEscapedCharacters1Boxed { - public final Number data; - private PropertiesWithEscapedCharacters1BoxedNumber(Number data) { - this.data = data; - } + public record PropertiesWithEscapedCharacters1BoxedNumber(Number data) implements PropertiesWithEscapedCharacters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertiesWithEscapedCharacters1BoxedString extends PropertiesWithEscapedCharacters1Boxed { - public final String data; - private PropertiesWithEscapedCharacters1BoxedString(String data) { - this.data = data; - } + public record PropertiesWithEscapedCharacters1BoxedString(String data) implements PropertiesWithEscapedCharacters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertiesWithEscapedCharacters1BoxedList extends PropertiesWithEscapedCharacters1Boxed { - public final FrozenList<@Nullable Object> data; - private PropertiesWithEscapedCharacters1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record PropertiesWithEscapedCharacters1BoxedList(FrozenList<@Nullable Object> data) implements PropertiesWithEscapedCharacters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertiesWithEscapedCharacters1BoxedMap extends PropertiesWithEscapedCharacters1Boxed { - public final PropertiesWithEscapedCharactersMap data; - private PropertiesWithEscapedCharacters1BoxedMap(PropertiesWithEscapedCharactersMap data) { - this.data = data; - } + public record PropertiesWithEscapedCharacters1BoxedMap(PropertiesWithEscapedCharactersMap data) implements PropertiesWithEscapedCharacters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class PropertiesWithEscapedCharacters1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, PropertiesWithEscapedCharacters1BoxedList>, MapSchemaValidator { + public static class PropertiesWithEscapedCharacters1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, PropertiesWithEscapedCharacters1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -531,11 +507,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -566,11 +542,11 @@ public PropertiesWithEscapedCharactersMap getNewInstance(Map arg, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -649,5 +625,24 @@ public PropertiesWithEscapedCharacters1BoxedList validateAndBox(List arg, Sch public PropertiesWithEscapedCharacters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PropertiesWithEscapedCharacters1BoxedMap(validate(arg, configuration)); } + @Override + public PropertiesWithEscapedCharacters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertyNamedRefThatIsNotAReference.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertyNamedRefThatIsNotAReference.java index 4f5b39e6deb..559e0f4fe6f 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertyNamedRefThatIsNotAReference.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertyNamedRefThatIsNotAReference.java @@ -105,78 +105,54 @@ public PropertyNamedRefThatIsNotAReferenceMapBuilder getBuilderAfterAdditionalPr } - public static abstract sealed class PropertyNamedRefThatIsNotAReference1Boxed permits PropertyNamedRefThatIsNotAReference1BoxedVoid, PropertyNamedRefThatIsNotAReference1BoxedBoolean, PropertyNamedRefThatIsNotAReference1BoxedNumber, PropertyNamedRefThatIsNotAReference1BoxedString, PropertyNamedRefThatIsNotAReference1BoxedList, PropertyNamedRefThatIsNotAReference1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface PropertyNamedRefThatIsNotAReference1Boxed permits PropertyNamedRefThatIsNotAReference1BoxedVoid, PropertyNamedRefThatIsNotAReference1BoxedBoolean, PropertyNamedRefThatIsNotAReference1BoxedNumber, PropertyNamedRefThatIsNotAReference1BoxedString, PropertyNamedRefThatIsNotAReference1BoxedList, PropertyNamedRefThatIsNotAReference1BoxedMap { + @Nullable Object getData(); } - public static final class PropertyNamedRefThatIsNotAReference1BoxedVoid extends PropertyNamedRefThatIsNotAReference1Boxed { - public final Void data; - private PropertyNamedRefThatIsNotAReference1BoxedVoid(Void data) { - this.data = data; - } + public record PropertyNamedRefThatIsNotAReference1BoxedVoid(Void data) implements PropertyNamedRefThatIsNotAReference1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertyNamedRefThatIsNotAReference1BoxedBoolean extends PropertyNamedRefThatIsNotAReference1Boxed { - public final boolean data; - private PropertyNamedRefThatIsNotAReference1BoxedBoolean(boolean data) { - this.data = data; - } + public record PropertyNamedRefThatIsNotAReference1BoxedBoolean(boolean data) implements PropertyNamedRefThatIsNotAReference1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertyNamedRefThatIsNotAReference1BoxedNumber extends PropertyNamedRefThatIsNotAReference1Boxed { - public final Number data; - private PropertyNamedRefThatIsNotAReference1BoxedNumber(Number data) { - this.data = data; - } + public record PropertyNamedRefThatIsNotAReference1BoxedNumber(Number data) implements PropertyNamedRefThatIsNotAReference1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertyNamedRefThatIsNotAReference1BoxedString extends PropertyNamedRefThatIsNotAReference1Boxed { - public final String data; - private PropertyNamedRefThatIsNotAReference1BoxedString(String data) { - this.data = data; - } + public record PropertyNamedRefThatIsNotAReference1BoxedString(String data) implements PropertyNamedRefThatIsNotAReference1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertyNamedRefThatIsNotAReference1BoxedList extends PropertyNamedRefThatIsNotAReference1Boxed { - public final FrozenList<@Nullable Object> data; - private PropertyNamedRefThatIsNotAReference1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record PropertyNamedRefThatIsNotAReference1BoxedList(FrozenList<@Nullable Object> data) implements PropertyNamedRefThatIsNotAReference1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertyNamedRefThatIsNotAReference1BoxedMap extends PropertyNamedRefThatIsNotAReference1Boxed { - public final PropertyNamedRefThatIsNotAReferenceMap data; - private PropertyNamedRefThatIsNotAReference1BoxedMap(PropertyNamedRefThatIsNotAReferenceMap data) { - this.data = data; - } + public record PropertyNamedRefThatIsNotAReference1BoxedMap(PropertyNamedRefThatIsNotAReferenceMap data) implements PropertyNamedRefThatIsNotAReference1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class PropertyNamedRefThatIsNotAReference1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, PropertyNamedRefThatIsNotAReference1BoxedList>, MapSchemaValidator { + public static class PropertyNamedRefThatIsNotAReference1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, PropertyNamedRefThatIsNotAReference1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -283,11 +259,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -318,11 +294,11 @@ public PropertyNamedRefThatIsNotAReferenceMap getNewInstance(Map arg, List List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -401,5 +377,24 @@ public PropertyNamedRefThatIsNotAReference1BoxedList validateAndBox(List arg, public PropertyNamedRefThatIsNotAReference1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PropertyNamedRefThatIsNotAReference1BoxedMap(validate(arg, configuration)); } + @Override + public PropertyNamedRefThatIsNotAReference1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInAdditionalproperties.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInAdditionalproperties.java index 595f2e74aaf..efa1e208ac7 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInAdditionalproperties.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInAdditionalproperties.java @@ -132,23 +132,19 @@ public RefInAdditionalpropertiesMapBuilder getBuilderAfterAdditionalProperty(Map } - public static abstract sealed class RefInAdditionalproperties1Boxed permits RefInAdditionalproperties1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface RefInAdditionalproperties1Boxed permits RefInAdditionalproperties1BoxedMap { + @Nullable Object getData(); } - public static final class RefInAdditionalproperties1BoxedMap extends RefInAdditionalproperties1Boxed { - public final RefInAdditionalpropertiesMap data; - private RefInAdditionalproperties1BoxedMap(RefInAdditionalpropertiesMap data) { - this.data = data; - } + public record RefInAdditionalproperties1BoxedMap(RefInAdditionalpropertiesMap data) implements RefInAdditionalproperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class RefInAdditionalproperties1 extends JsonSchema implements MapSchemaValidator { + public static class RefInAdditionalproperties1 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 @@ -182,11 +178,11 @@ public RefInAdditionalpropertiesMap getNewInstance(Map arg, List p List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof Object)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -226,6 +222,13 @@ public RefInAdditionalpropertiesMap validate(Map arg, SchemaConfiguration public RefInAdditionalproperties1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new RefInAdditionalproperties1BoxedMap(validate(arg, configuration)); } + @Override + public RefInAdditionalproperties1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInAllof.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInAllof.java index 817333e4575..a826571f87c 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInAllof.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInAllof.java @@ -35,78 +35,54 @@ public class RefInAllof { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class RefInAllof1Boxed permits RefInAllof1BoxedVoid, RefInAllof1BoxedBoolean, RefInAllof1BoxedNumber, RefInAllof1BoxedString, RefInAllof1BoxedList, RefInAllof1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface RefInAllof1Boxed permits RefInAllof1BoxedVoid, RefInAllof1BoxedBoolean, RefInAllof1BoxedNumber, RefInAllof1BoxedString, RefInAllof1BoxedList, RefInAllof1BoxedMap { + @Nullable Object getData(); } - public static final class RefInAllof1BoxedVoid extends RefInAllof1Boxed { - public final Void data; - private RefInAllof1BoxedVoid(Void data) { - this.data = data; - } + public record RefInAllof1BoxedVoid(Void data) implements RefInAllof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RefInAllof1BoxedBoolean extends RefInAllof1Boxed { - public final boolean data; - private RefInAllof1BoxedBoolean(boolean data) { - this.data = data; - } + public record RefInAllof1BoxedBoolean(boolean data) implements RefInAllof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RefInAllof1BoxedNumber extends RefInAllof1Boxed { - public final Number data; - private RefInAllof1BoxedNumber(Number data) { - this.data = data; - } + public record RefInAllof1BoxedNumber(Number data) implements RefInAllof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RefInAllof1BoxedString extends RefInAllof1Boxed { - public final String data; - private RefInAllof1BoxedString(String data) { - this.data = data; - } + public record RefInAllof1BoxedString(String data) implements RefInAllof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RefInAllof1BoxedList extends RefInAllof1Boxed { - public final FrozenList<@Nullable Object> data; - private RefInAllof1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record RefInAllof1BoxedList(FrozenList<@Nullable Object> data) implements RefInAllof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RefInAllof1BoxedMap extends RefInAllof1Boxed { - public final FrozenMap<@Nullable Object> data; - private RefInAllof1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record RefInAllof1BoxedMap(FrozenMap<@Nullable Object> data) implements RefInAllof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class RefInAllof1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RefInAllof1BoxedList>, MapSchemaValidator, RefInAllof1BoxedMap> { + public static class RefInAllof1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RefInAllof1BoxedList>, MapSchemaValidator, RefInAllof1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -213,11 +189,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -248,11 +224,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -331,5 +307,24 @@ public RefInAllof1BoxedList validateAndBox(List arg, SchemaConfiguration conf public RefInAllof1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new RefInAllof1BoxedMap(validate(arg, configuration)); } + @Override + public RefInAllof1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInAnyof.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInAnyof.java index 7c3d31d35cb..c77c290df32 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInAnyof.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInAnyof.java @@ -35,78 +35,54 @@ public class RefInAnyof { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class RefInAnyof1Boxed permits RefInAnyof1BoxedVoid, RefInAnyof1BoxedBoolean, RefInAnyof1BoxedNumber, RefInAnyof1BoxedString, RefInAnyof1BoxedList, RefInAnyof1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface RefInAnyof1Boxed permits RefInAnyof1BoxedVoid, RefInAnyof1BoxedBoolean, RefInAnyof1BoxedNumber, RefInAnyof1BoxedString, RefInAnyof1BoxedList, RefInAnyof1BoxedMap { + @Nullable Object getData(); } - public static final class RefInAnyof1BoxedVoid extends RefInAnyof1Boxed { - public final Void data; - private RefInAnyof1BoxedVoid(Void data) { - this.data = data; - } + public record RefInAnyof1BoxedVoid(Void data) implements RefInAnyof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RefInAnyof1BoxedBoolean extends RefInAnyof1Boxed { - public final boolean data; - private RefInAnyof1BoxedBoolean(boolean data) { - this.data = data; - } + public record RefInAnyof1BoxedBoolean(boolean data) implements RefInAnyof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RefInAnyof1BoxedNumber extends RefInAnyof1Boxed { - public final Number data; - private RefInAnyof1BoxedNumber(Number data) { - this.data = data; - } + public record RefInAnyof1BoxedNumber(Number data) implements RefInAnyof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RefInAnyof1BoxedString extends RefInAnyof1Boxed { - public final String data; - private RefInAnyof1BoxedString(String data) { - this.data = data; - } + public record RefInAnyof1BoxedString(String data) implements RefInAnyof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RefInAnyof1BoxedList extends RefInAnyof1Boxed { - public final FrozenList<@Nullable Object> data; - private RefInAnyof1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record RefInAnyof1BoxedList(FrozenList<@Nullable Object> data) implements RefInAnyof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RefInAnyof1BoxedMap extends RefInAnyof1Boxed { - public final FrozenMap<@Nullable Object> data; - private RefInAnyof1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record RefInAnyof1BoxedMap(FrozenMap<@Nullable Object> data) implements RefInAnyof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class RefInAnyof1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RefInAnyof1BoxedList>, MapSchemaValidator, RefInAnyof1BoxedMap> { + public static class RefInAnyof1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RefInAnyof1BoxedList>, MapSchemaValidator, RefInAnyof1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -213,11 +189,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -248,11 +224,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -331,5 +307,24 @@ public RefInAnyof1BoxedList validateAndBox(List arg, SchemaConfiguration conf public RefInAnyof1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new RefInAnyof1BoxedMap(validate(arg, configuration)); } + @Override + public RefInAnyof1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInItems.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInItems.java index 6217563be32..ca25ea6cd5d 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInItems.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInItems.java @@ -95,24 +95,20 @@ public RefInItemsListBuilder add(Map item) { } - public static abstract sealed class RefInItems1Boxed permits RefInItems1BoxedList { - public abstract @Nullable Object data(); + public sealed interface RefInItems1Boxed permits RefInItems1BoxedList { + @Nullable Object getData(); } - public static final class RefInItems1BoxedList extends RefInItems1Boxed { - public final RefInItemsList data; - private RefInItems1BoxedList(RefInItemsList data) { - this.data = data; - } + public record RefInItems1BoxedList(RefInItemsList data) implements RefInItems1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class RefInItems1 extends JsonSchema implements ListSchemaValidator { + public static class RefInItems1 extends JsonSchema implements ListSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -142,11 +138,11 @@ public RefInItemsList getNewInstance(List arg, List pathToItem, PathT for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof Object)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -186,5 +182,12 @@ public RefInItemsList validate(List arg, SchemaConfiguration configuration) t public RefInItems1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new RefInItems1BoxedList(validate(arg, configuration)); } + @Override + public RefInItems1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInNot.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInNot.java index 4a902917275..069ea431cda 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInNot.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInNot.java @@ -35,78 +35,54 @@ public class RefInNot { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class RefInNot1Boxed permits RefInNot1BoxedVoid, RefInNot1BoxedBoolean, RefInNot1BoxedNumber, RefInNot1BoxedString, RefInNot1BoxedList, RefInNot1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface RefInNot1Boxed permits RefInNot1BoxedVoid, RefInNot1BoxedBoolean, RefInNot1BoxedNumber, RefInNot1BoxedString, RefInNot1BoxedList, RefInNot1BoxedMap { + @Nullable Object getData(); } - public static final class RefInNot1BoxedVoid extends RefInNot1Boxed { - public final Void data; - private RefInNot1BoxedVoid(Void data) { - this.data = data; - } + public record RefInNot1BoxedVoid(Void data) implements RefInNot1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RefInNot1BoxedBoolean extends RefInNot1Boxed { - public final boolean data; - private RefInNot1BoxedBoolean(boolean data) { - this.data = data; - } + public record RefInNot1BoxedBoolean(boolean data) implements RefInNot1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RefInNot1BoxedNumber extends RefInNot1Boxed { - public final Number data; - private RefInNot1BoxedNumber(Number data) { - this.data = data; - } + public record RefInNot1BoxedNumber(Number data) implements RefInNot1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RefInNot1BoxedString extends RefInNot1Boxed { - public final String data; - private RefInNot1BoxedString(String data) { - this.data = data; - } + public record RefInNot1BoxedString(String data) implements RefInNot1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RefInNot1BoxedList extends RefInNot1Boxed { - public final FrozenList<@Nullable Object> data; - private RefInNot1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record RefInNot1BoxedList(FrozenList<@Nullable Object> data) implements RefInNot1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RefInNot1BoxedMap extends RefInNot1Boxed { - public final FrozenMap<@Nullable Object> data; - private RefInNot1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record RefInNot1BoxedMap(FrozenMap<@Nullable Object> data) implements RefInNot1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class RefInNot1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RefInNot1BoxedList>, MapSchemaValidator, RefInNot1BoxedMap> { + public static class RefInNot1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RefInNot1BoxedList>, MapSchemaValidator, RefInNot1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public RefInNot1BoxedList validateAndBox(List arg, SchemaConfiguration config public RefInNot1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new RefInNot1BoxedMap(validate(arg, configuration)); } + @Override + public RefInNot1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInOneof.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInOneof.java index 53fbd1405bc..16dfea00c74 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInOneof.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInOneof.java @@ -35,78 +35,54 @@ public class RefInOneof { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class RefInOneof1Boxed permits RefInOneof1BoxedVoid, RefInOneof1BoxedBoolean, RefInOneof1BoxedNumber, RefInOneof1BoxedString, RefInOneof1BoxedList, RefInOneof1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface RefInOneof1Boxed permits RefInOneof1BoxedVoid, RefInOneof1BoxedBoolean, RefInOneof1BoxedNumber, RefInOneof1BoxedString, RefInOneof1BoxedList, RefInOneof1BoxedMap { + @Nullable Object getData(); } - public static final class RefInOneof1BoxedVoid extends RefInOneof1Boxed { - public final Void data; - private RefInOneof1BoxedVoid(Void data) { - this.data = data; - } + public record RefInOneof1BoxedVoid(Void data) implements RefInOneof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RefInOneof1BoxedBoolean extends RefInOneof1Boxed { - public final boolean data; - private RefInOneof1BoxedBoolean(boolean data) { - this.data = data; - } + public record RefInOneof1BoxedBoolean(boolean data) implements RefInOneof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RefInOneof1BoxedNumber extends RefInOneof1Boxed { - public final Number data; - private RefInOneof1BoxedNumber(Number data) { - this.data = data; - } + public record RefInOneof1BoxedNumber(Number data) implements RefInOneof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RefInOneof1BoxedString extends RefInOneof1Boxed { - public final String data; - private RefInOneof1BoxedString(String data) { - this.data = data; - } + public record RefInOneof1BoxedString(String data) implements RefInOneof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RefInOneof1BoxedList extends RefInOneof1Boxed { - public final FrozenList<@Nullable Object> data; - private RefInOneof1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record RefInOneof1BoxedList(FrozenList<@Nullable Object> data) implements RefInOneof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RefInOneof1BoxedMap extends RefInOneof1Boxed { - public final FrozenMap<@Nullable Object> data; - private RefInOneof1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record RefInOneof1BoxedMap(FrozenMap<@Nullable Object> data) implements RefInOneof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class RefInOneof1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RefInOneof1BoxedList>, MapSchemaValidator, RefInOneof1BoxedMap> { + public static class RefInOneof1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RefInOneof1BoxedList>, MapSchemaValidator, RefInOneof1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -213,11 +189,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -248,11 +224,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -331,5 +307,24 @@ public RefInOneof1BoxedList validateAndBox(List arg, SchemaConfiguration conf public RefInOneof1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new RefInOneof1BoxedMap(validate(arg, configuration)); } + @Override + public RefInOneof1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInProperty.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInProperty.java index 0cab7d30dfb..d6ed9d63722 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInProperty.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInProperty.java @@ -151,78 +151,54 @@ public RefInPropertyMapBuilder getBuilderAfterAdditionalProperty(Map data; - private RefInProperty1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record RefInProperty1BoxedList(FrozenList<@Nullable Object> data) implements RefInProperty1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RefInProperty1BoxedMap extends RefInProperty1Boxed { - public final RefInPropertyMap data; - private RefInProperty1BoxedMap(RefInPropertyMap data) { - this.data = data; - } + public record RefInProperty1BoxedMap(RefInPropertyMap data) implements RefInProperty1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class RefInProperty1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RefInProperty1BoxedList>, MapSchemaValidator { + public static class RefInProperty1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RefInProperty1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -329,11 +305,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -364,11 +340,11 @@ public RefInPropertyMap getNewInstance(Map arg, List pathToItem, P List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -447,5 +423,24 @@ public RefInProperty1BoxedList validateAndBox(List arg, SchemaConfiguration c public RefInProperty1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new RefInProperty1BoxedMap(validate(arg, configuration)); } + @Override + public RefInProperty1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredDefaultValidation.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredDefaultValidation.java index 3ec1cb0e025..8be0cb10a2a 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredDefaultValidation.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredDefaultValidation.java @@ -157,78 +157,54 @@ public RequiredDefaultValidationMapBuilder getBuilderAfterAdditionalProperty(Map } - public static abstract sealed class RequiredDefaultValidation1Boxed permits RequiredDefaultValidation1BoxedVoid, RequiredDefaultValidation1BoxedBoolean, RequiredDefaultValidation1BoxedNumber, RequiredDefaultValidation1BoxedString, RequiredDefaultValidation1BoxedList, RequiredDefaultValidation1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface RequiredDefaultValidation1Boxed permits RequiredDefaultValidation1BoxedVoid, RequiredDefaultValidation1BoxedBoolean, RequiredDefaultValidation1BoxedNumber, RequiredDefaultValidation1BoxedString, RequiredDefaultValidation1BoxedList, RequiredDefaultValidation1BoxedMap { + @Nullable Object getData(); } - public static final class RequiredDefaultValidation1BoxedVoid extends RequiredDefaultValidation1Boxed { - public final Void data; - private RequiredDefaultValidation1BoxedVoid(Void data) { - this.data = data; - } + public record RequiredDefaultValidation1BoxedVoid(Void data) implements RequiredDefaultValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RequiredDefaultValidation1BoxedBoolean extends RequiredDefaultValidation1Boxed { - public final boolean data; - private RequiredDefaultValidation1BoxedBoolean(boolean data) { - this.data = data; - } + public record RequiredDefaultValidation1BoxedBoolean(boolean data) implements RequiredDefaultValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RequiredDefaultValidation1BoxedNumber extends RequiredDefaultValidation1Boxed { - public final Number data; - private RequiredDefaultValidation1BoxedNumber(Number data) { - this.data = data; - } + public record RequiredDefaultValidation1BoxedNumber(Number data) implements RequiredDefaultValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RequiredDefaultValidation1BoxedString extends RequiredDefaultValidation1Boxed { - public final String data; - private RequiredDefaultValidation1BoxedString(String data) { - this.data = data; - } + public record RequiredDefaultValidation1BoxedString(String data) implements RequiredDefaultValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RequiredDefaultValidation1BoxedList extends RequiredDefaultValidation1Boxed { - public final FrozenList<@Nullable Object> data; - private RequiredDefaultValidation1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record RequiredDefaultValidation1BoxedList(FrozenList<@Nullable Object> data) implements RequiredDefaultValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RequiredDefaultValidation1BoxedMap extends RequiredDefaultValidation1Boxed { - public final RequiredDefaultValidationMap data; - private RequiredDefaultValidation1BoxedMap(RequiredDefaultValidationMap data) { - this.data = data; - } + public record RequiredDefaultValidation1BoxedMap(RequiredDefaultValidationMap data) implements RequiredDefaultValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class RequiredDefaultValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RequiredDefaultValidation1BoxedList>, MapSchemaValidator { + public static class RequiredDefaultValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RequiredDefaultValidation1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -335,11 +311,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -370,11 +346,11 @@ public RequiredDefaultValidationMap getNewInstance(Map arg, List p List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -453,5 +429,24 @@ public RequiredDefaultValidation1BoxedList validateAndBox(List arg, SchemaCon public RequiredDefaultValidation1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new RequiredDefaultValidation1BoxedMap(validate(arg, configuration)); } + @Override + public RequiredDefaultValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredValidation.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredValidation.java index f2fcafbdf13..aeaff53e4dd 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredValidation.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredValidation.java @@ -247,78 +247,54 @@ public RequiredValidationMap0Builder getBuilderAfterFoo(Map data; - private RequiredValidation1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record RequiredValidation1BoxedList(FrozenList<@Nullable Object> data) implements RequiredValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RequiredValidation1BoxedMap extends RequiredValidation1Boxed { - public final RequiredValidationMap data; - private RequiredValidation1BoxedMap(RequiredValidationMap data) { - this.data = data; - } + public record RequiredValidation1BoxedMap(RequiredValidationMap data) implements RequiredValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class RequiredValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RequiredValidation1BoxedList>, MapSchemaValidator { + public static class RequiredValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RequiredValidation1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -429,11 +405,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -464,11 +440,11 @@ public RequiredValidationMap getNewInstance(Map arg, List pathToIt List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -547,5 +523,24 @@ public RequiredValidation1BoxedList validateAndBox(List arg, SchemaConfigurat public RequiredValidation1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new RequiredValidation1BoxedMap(validate(arg, configuration)); } + @Override + public RequiredValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredWithEmptyArray.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredWithEmptyArray.java index 65683b78a83..8f3fb5dbb03 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredWithEmptyArray.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredWithEmptyArray.java @@ -157,78 +157,54 @@ public RequiredWithEmptyArrayMapBuilder getBuilderAfterAdditionalProperty(Map data; - private RequiredWithEmptyArray1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record RequiredWithEmptyArray1BoxedList(FrozenList<@Nullable Object> data) implements RequiredWithEmptyArray1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RequiredWithEmptyArray1BoxedMap extends RequiredWithEmptyArray1Boxed { - public final RequiredWithEmptyArrayMap data; - private RequiredWithEmptyArray1BoxedMap(RequiredWithEmptyArrayMap data) { - this.data = data; - } + public record RequiredWithEmptyArray1BoxedMap(RequiredWithEmptyArrayMap data) implements RequiredWithEmptyArray1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class RequiredWithEmptyArray1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RequiredWithEmptyArray1BoxedList>, MapSchemaValidator { + public static class RequiredWithEmptyArray1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RequiredWithEmptyArray1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -335,11 +311,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -370,11 +346,11 @@ public RequiredWithEmptyArrayMap getNewInstance(Map arg, List path List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -453,5 +429,24 @@ public RequiredWithEmptyArray1BoxedList validateAndBox(List arg, SchemaConfig public RequiredWithEmptyArray1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new RequiredWithEmptyArray1BoxedMap(validate(arg, configuration)); } + @Override + public RequiredWithEmptyArray1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredWithEscapedCharacters.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredWithEscapedCharacters.java index aa00cfb41ab..d6afadd7b34 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredWithEscapedCharacters.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredWithEscapedCharacters.java @@ -1648,78 +1648,54 @@ public RequiredWithEscapedCharactersMap111110Builder getBuilderAfterFoobar1(Map< } - public static abstract sealed class RequiredWithEscapedCharacters1Boxed permits RequiredWithEscapedCharacters1BoxedVoid, RequiredWithEscapedCharacters1BoxedBoolean, RequiredWithEscapedCharacters1BoxedNumber, RequiredWithEscapedCharacters1BoxedString, RequiredWithEscapedCharacters1BoxedList, RequiredWithEscapedCharacters1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface RequiredWithEscapedCharacters1Boxed permits RequiredWithEscapedCharacters1BoxedVoid, RequiredWithEscapedCharacters1BoxedBoolean, RequiredWithEscapedCharacters1BoxedNumber, RequiredWithEscapedCharacters1BoxedString, RequiredWithEscapedCharacters1BoxedList, RequiredWithEscapedCharacters1BoxedMap { + @Nullable Object getData(); } - public static final class RequiredWithEscapedCharacters1BoxedVoid extends RequiredWithEscapedCharacters1Boxed { - public final Void data; - private RequiredWithEscapedCharacters1BoxedVoid(Void data) { - this.data = data; - } + public record RequiredWithEscapedCharacters1BoxedVoid(Void data) implements RequiredWithEscapedCharacters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RequiredWithEscapedCharacters1BoxedBoolean extends RequiredWithEscapedCharacters1Boxed { - public final boolean data; - private RequiredWithEscapedCharacters1BoxedBoolean(boolean data) { - this.data = data; - } + public record RequiredWithEscapedCharacters1BoxedBoolean(boolean data) implements RequiredWithEscapedCharacters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RequiredWithEscapedCharacters1BoxedNumber extends RequiredWithEscapedCharacters1Boxed { - public final Number data; - private RequiredWithEscapedCharacters1BoxedNumber(Number data) { - this.data = data; - } + public record RequiredWithEscapedCharacters1BoxedNumber(Number data) implements RequiredWithEscapedCharacters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RequiredWithEscapedCharacters1BoxedString extends RequiredWithEscapedCharacters1Boxed { - public final String data; - private RequiredWithEscapedCharacters1BoxedString(String data) { - this.data = data; - } + public record RequiredWithEscapedCharacters1BoxedString(String data) implements RequiredWithEscapedCharacters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RequiredWithEscapedCharacters1BoxedList extends RequiredWithEscapedCharacters1Boxed { - public final FrozenList<@Nullable Object> data; - private RequiredWithEscapedCharacters1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record RequiredWithEscapedCharacters1BoxedList(FrozenList<@Nullable Object> data) implements RequiredWithEscapedCharacters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RequiredWithEscapedCharacters1BoxedMap extends RequiredWithEscapedCharacters1Boxed { - public final RequiredWithEscapedCharactersMap data; - private RequiredWithEscapedCharacters1BoxedMap(RequiredWithEscapedCharactersMap data) { - this.data = data; - } + public record RequiredWithEscapedCharacters1BoxedMap(RequiredWithEscapedCharactersMap data) implements RequiredWithEscapedCharacters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class RequiredWithEscapedCharacters1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RequiredWithEscapedCharacters1BoxedList>, MapSchemaValidator { + public static class RequiredWithEscapedCharacters1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RequiredWithEscapedCharacters1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -1831,11 +1807,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -1866,11 +1842,11 @@ public RequiredWithEscapedCharactersMap getNewInstance(Map arg, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1949,5 +1925,24 @@ public RequiredWithEscapedCharacters1BoxedList validateAndBox(List arg, Schem public RequiredWithEscapedCharacters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new RequiredWithEscapedCharacters1BoxedMap(validate(arg, configuration)); } + @Override + public RequiredWithEscapedCharacters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleEnumValidation.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleEnumValidation.java index 1007dda3a7c..9234455603c 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleEnumValidation.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleEnumValidation.java @@ -85,24 +85,20 @@ public double value() { } - public static abstract sealed class SimpleEnumValidation1Boxed permits SimpleEnumValidation1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface SimpleEnumValidation1Boxed permits SimpleEnumValidation1BoxedNumber { + @Nullable Object getData(); } - public static final class SimpleEnumValidation1BoxedNumber extends SimpleEnumValidation1Boxed { - public final Number data; - private SimpleEnumValidation1BoxedNumber(Number data) { - this.data = data; - } + public record SimpleEnumValidation1BoxedNumber(Number data) implements SimpleEnumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class SimpleEnumValidation1 extends JsonSchema implements IntegerEnumValidator, LongEnumValidator, FloatEnumValidator, DoubleEnumValidator, NumberSchemaValidator { + public static class SimpleEnumValidation1 extends JsonSchema implements IntegerEnumValidator, LongEnumValidator, FloatEnumValidator, DoubleEnumValidator, NumberSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -199,5 +195,12 @@ public double validate(DoubleSimpleEnumValidationEnums arg,SchemaConfiguration c public SimpleEnumValidation1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new SimpleEnumValidation1BoxedNumber(validate(arg, configuration)); } + @Override + public SimpleEnumValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.java index 033f8986e48..e730c2690f0 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.java @@ -30,24 +30,20 @@ public class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class AlphaBoxed permits AlphaBoxedNumber { - public abstract @Nullable Object data(); + public sealed interface AlphaBoxed permits AlphaBoxedNumber { + @Nullable Object getData(); } - public static final class AlphaBoxedNumber extends AlphaBoxed { - public final Number data; - private AlphaBoxedNumber(Number data) { - this.data = data; - } + public record AlphaBoxedNumber(Number data) implements AlphaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Alpha extends JsonSchema implements NumberSchemaValidator { + public static class Alpha extends JsonSchema implements NumberSchemaValidator { private static @Nullable Alpha instance = null; protected Alpha() { @@ -115,6 +111,13 @@ public double validate(double arg, SchemaConfiguration configuration) throws Val public AlphaBoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AlphaBoxedNumber(validate(arg, configuration)); } + @Override + public AlphaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingMap extends FrozenMap<@Nullable Object> { @@ -201,23 +204,19 @@ public TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingMapBuilder getBui } - public static abstract sealed class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1Boxed permits TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1Boxed permits TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1BoxedMap { + @Nullable Object getData(); } - public static final class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1BoxedMap extends TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1Boxed { - public final TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingMap data; - private TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1BoxedMap(TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingMap data) { - this.data = data; - } + public record TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1BoxedMap(TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingMap data) implements TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1 extends JsonSchema implements MapSchemaValidator { + public static class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1 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 @@ -253,11 +252,11 @@ public TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingMap getNewInstanc List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -294,6 +293,13 @@ public TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingMap validate(Map< public TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1BoxedMap(validate(arg, configuration)); } + @Override + public TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseValidation.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseValidation.java index bfb7f909fc0..4399cec94a9 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseValidation.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseValidation.java @@ -35,78 +35,54 @@ public class UniqueitemsFalseValidation { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class UniqueitemsFalseValidation1Boxed permits UniqueitemsFalseValidation1BoxedVoid, UniqueitemsFalseValidation1BoxedBoolean, UniqueitemsFalseValidation1BoxedNumber, UniqueitemsFalseValidation1BoxedString, UniqueitemsFalseValidation1BoxedList, UniqueitemsFalseValidation1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface UniqueitemsFalseValidation1Boxed permits UniqueitemsFalseValidation1BoxedVoid, UniqueitemsFalseValidation1BoxedBoolean, UniqueitemsFalseValidation1BoxedNumber, UniqueitemsFalseValidation1BoxedString, UniqueitemsFalseValidation1BoxedList, UniqueitemsFalseValidation1BoxedMap { + @Nullable Object getData(); } - public static final class UniqueitemsFalseValidation1BoxedVoid extends UniqueitemsFalseValidation1Boxed { - public final Void data; - private UniqueitemsFalseValidation1BoxedVoid(Void data) { - this.data = data; - } + public record UniqueitemsFalseValidation1BoxedVoid(Void data) implements UniqueitemsFalseValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UniqueitemsFalseValidation1BoxedBoolean extends UniqueitemsFalseValidation1Boxed { - public final boolean data; - private UniqueitemsFalseValidation1BoxedBoolean(boolean data) { - this.data = data; - } + public record UniqueitemsFalseValidation1BoxedBoolean(boolean data) implements UniqueitemsFalseValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UniqueitemsFalseValidation1BoxedNumber extends UniqueitemsFalseValidation1Boxed { - public final Number data; - private UniqueitemsFalseValidation1BoxedNumber(Number data) { - this.data = data; - } + public record UniqueitemsFalseValidation1BoxedNumber(Number data) implements UniqueitemsFalseValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UniqueitemsFalseValidation1BoxedString extends UniqueitemsFalseValidation1Boxed { - public final String data; - private UniqueitemsFalseValidation1BoxedString(String data) { - this.data = data; - } + public record UniqueitemsFalseValidation1BoxedString(String data) implements UniqueitemsFalseValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UniqueitemsFalseValidation1BoxedList extends UniqueitemsFalseValidation1Boxed { - public final FrozenList<@Nullable Object> data; - private UniqueitemsFalseValidation1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record UniqueitemsFalseValidation1BoxedList(FrozenList<@Nullable Object> data) implements UniqueitemsFalseValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UniqueitemsFalseValidation1BoxedMap extends UniqueitemsFalseValidation1Boxed { - public final FrozenMap<@Nullable Object> data; - private UniqueitemsFalseValidation1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record UniqueitemsFalseValidation1BoxedMap(FrozenMap<@Nullable Object> data) implements UniqueitemsFalseValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class UniqueitemsFalseValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UniqueitemsFalseValidation1BoxedList>, MapSchemaValidator, UniqueitemsFalseValidation1BoxedMap> { + public static class UniqueitemsFalseValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UniqueitemsFalseValidation1BoxedList>, MapSchemaValidator, UniqueitemsFalseValidation1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public UniqueitemsFalseValidation1BoxedList validateAndBox(List arg, SchemaCo public UniqueitemsFalseValidation1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UniqueitemsFalseValidation1BoxedMap(validate(arg, configuration)); } + @Override + public UniqueitemsFalseValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsValidation.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsValidation.java index 02694a8bd17..2433913da51 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsValidation.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsValidation.java @@ -35,78 +35,54 @@ public class UniqueitemsValidation { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class UniqueitemsValidation1Boxed permits UniqueitemsValidation1BoxedVoid, UniqueitemsValidation1BoxedBoolean, UniqueitemsValidation1BoxedNumber, UniqueitemsValidation1BoxedString, UniqueitemsValidation1BoxedList, UniqueitemsValidation1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface UniqueitemsValidation1Boxed permits UniqueitemsValidation1BoxedVoid, UniqueitemsValidation1BoxedBoolean, UniqueitemsValidation1BoxedNumber, UniqueitemsValidation1BoxedString, UniqueitemsValidation1BoxedList, UniqueitemsValidation1BoxedMap { + @Nullable Object getData(); } - public static final class UniqueitemsValidation1BoxedVoid extends UniqueitemsValidation1Boxed { - public final Void data; - private UniqueitemsValidation1BoxedVoid(Void data) { - this.data = data; - } + public record UniqueitemsValidation1BoxedVoid(Void data) implements UniqueitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UniqueitemsValidation1BoxedBoolean extends UniqueitemsValidation1Boxed { - public final boolean data; - private UniqueitemsValidation1BoxedBoolean(boolean data) { - this.data = data; - } + public record UniqueitemsValidation1BoxedBoolean(boolean data) implements UniqueitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UniqueitemsValidation1BoxedNumber extends UniqueitemsValidation1Boxed { - public final Number data; - private UniqueitemsValidation1BoxedNumber(Number data) { - this.data = data; - } + public record UniqueitemsValidation1BoxedNumber(Number data) implements UniqueitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UniqueitemsValidation1BoxedString extends UniqueitemsValidation1Boxed { - public final String data; - private UniqueitemsValidation1BoxedString(String data) { - this.data = data; - } + public record UniqueitemsValidation1BoxedString(String data) implements UniqueitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UniqueitemsValidation1BoxedList extends UniqueitemsValidation1Boxed { - public final FrozenList<@Nullable Object> data; - private UniqueitemsValidation1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record UniqueitemsValidation1BoxedList(FrozenList<@Nullable Object> data) implements UniqueitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UniqueitemsValidation1BoxedMap extends UniqueitemsValidation1Boxed { - public final FrozenMap<@Nullable Object> data; - private UniqueitemsValidation1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record UniqueitemsValidation1BoxedMap(FrozenMap<@Nullable Object> data) implements UniqueitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class UniqueitemsValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UniqueitemsValidation1BoxedList>, MapSchemaValidator, UniqueitemsValidation1BoxedMap> { + public static class UniqueitemsValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UniqueitemsValidation1BoxedList>, MapSchemaValidator, UniqueitemsValidation1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public UniqueitemsValidation1BoxedList validateAndBox(List arg, SchemaConfigu public UniqueitemsValidation1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UniqueitemsValidation1BoxedMap(validate(arg, configuration)); } + @Override + public UniqueitemsValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriFormat.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriFormat.java index c7c3721ac5f..bc2d00b8518 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriFormat.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriFormat.java @@ -35,78 +35,54 @@ public class UriFormat { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class UriFormat1Boxed permits UriFormat1BoxedVoid, UriFormat1BoxedBoolean, UriFormat1BoxedNumber, UriFormat1BoxedString, UriFormat1BoxedList, UriFormat1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface UriFormat1Boxed permits UriFormat1BoxedVoid, UriFormat1BoxedBoolean, UriFormat1BoxedNumber, UriFormat1BoxedString, UriFormat1BoxedList, UriFormat1BoxedMap { + @Nullable Object getData(); } - public static final class UriFormat1BoxedVoid extends UriFormat1Boxed { - public final Void data; - private UriFormat1BoxedVoid(Void data) { - this.data = data; - } + public record UriFormat1BoxedVoid(Void data) implements UriFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UriFormat1BoxedBoolean extends UriFormat1Boxed { - public final boolean data; - private UriFormat1BoxedBoolean(boolean data) { - this.data = data; - } + public record UriFormat1BoxedBoolean(boolean data) implements UriFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UriFormat1BoxedNumber extends UriFormat1Boxed { - public final Number data; - private UriFormat1BoxedNumber(Number data) { - this.data = data; - } + public record UriFormat1BoxedNumber(Number data) implements UriFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UriFormat1BoxedString extends UriFormat1Boxed { - public final String data; - private UriFormat1BoxedString(String data) { - this.data = data; - } + public record UriFormat1BoxedString(String data) implements UriFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UriFormat1BoxedList extends UriFormat1Boxed { - public final FrozenList<@Nullable Object> data; - private UriFormat1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record UriFormat1BoxedList(FrozenList<@Nullable Object> data) implements UriFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UriFormat1BoxedMap extends UriFormat1Boxed { - public final FrozenMap<@Nullable Object> data; - private UriFormat1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record UriFormat1BoxedMap(FrozenMap<@Nullable Object> data) implements UriFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class UriFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UriFormat1BoxedList>, MapSchemaValidator, UriFormat1BoxedMap> { + public static class UriFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UriFormat1BoxedList>, MapSchemaValidator, UriFormat1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public UriFormat1BoxedList validateAndBox(List arg, SchemaConfiguration confi public UriFormat1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UriFormat1BoxedMap(validate(arg, configuration)); } + @Override + public UriFormat1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriReferenceFormat.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriReferenceFormat.java index a6f0712c973..bee6021f6cf 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriReferenceFormat.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriReferenceFormat.java @@ -35,78 +35,54 @@ public class UriReferenceFormat { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class UriReferenceFormat1Boxed permits UriReferenceFormat1BoxedVoid, UriReferenceFormat1BoxedBoolean, UriReferenceFormat1BoxedNumber, UriReferenceFormat1BoxedString, UriReferenceFormat1BoxedList, UriReferenceFormat1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface UriReferenceFormat1Boxed permits UriReferenceFormat1BoxedVoid, UriReferenceFormat1BoxedBoolean, UriReferenceFormat1BoxedNumber, UriReferenceFormat1BoxedString, UriReferenceFormat1BoxedList, UriReferenceFormat1BoxedMap { + @Nullable Object getData(); } - public static final class UriReferenceFormat1BoxedVoid extends UriReferenceFormat1Boxed { - public final Void data; - private UriReferenceFormat1BoxedVoid(Void data) { - this.data = data; - } + public record UriReferenceFormat1BoxedVoid(Void data) implements UriReferenceFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UriReferenceFormat1BoxedBoolean extends UriReferenceFormat1Boxed { - public final boolean data; - private UriReferenceFormat1BoxedBoolean(boolean data) { - this.data = data; - } + public record UriReferenceFormat1BoxedBoolean(boolean data) implements UriReferenceFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UriReferenceFormat1BoxedNumber extends UriReferenceFormat1Boxed { - public final Number data; - private UriReferenceFormat1BoxedNumber(Number data) { - this.data = data; - } + public record UriReferenceFormat1BoxedNumber(Number data) implements UriReferenceFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UriReferenceFormat1BoxedString extends UriReferenceFormat1Boxed { - public final String data; - private UriReferenceFormat1BoxedString(String data) { - this.data = data; - } + public record UriReferenceFormat1BoxedString(String data) implements UriReferenceFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UriReferenceFormat1BoxedList extends UriReferenceFormat1Boxed { - public final FrozenList<@Nullable Object> data; - private UriReferenceFormat1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record UriReferenceFormat1BoxedList(FrozenList<@Nullable Object> data) implements UriReferenceFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UriReferenceFormat1BoxedMap extends UriReferenceFormat1Boxed { - public final FrozenMap<@Nullable Object> data; - private UriReferenceFormat1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record UriReferenceFormat1BoxedMap(FrozenMap<@Nullable Object> data) implements UriReferenceFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class UriReferenceFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UriReferenceFormat1BoxedList>, MapSchemaValidator, UriReferenceFormat1BoxedMap> { + public static class UriReferenceFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UriReferenceFormat1BoxedList>, MapSchemaValidator, UriReferenceFormat1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public UriReferenceFormat1BoxedList validateAndBox(List arg, SchemaConfigurat public UriReferenceFormat1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UriReferenceFormat1BoxedMap(validate(arg, configuration)); } + @Override + public UriReferenceFormat1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriTemplateFormat.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriTemplateFormat.java index 2724eebd809..16dead22e86 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriTemplateFormat.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriTemplateFormat.java @@ -35,78 +35,54 @@ public class UriTemplateFormat { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class UriTemplateFormat1Boxed permits UriTemplateFormat1BoxedVoid, UriTemplateFormat1BoxedBoolean, UriTemplateFormat1BoxedNumber, UriTemplateFormat1BoxedString, UriTemplateFormat1BoxedList, UriTemplateFormat1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface UriTemplateFormat1Boxed permits UriTemplateFormat1BoxedVoid, UriTemplateFormat1BoxedBoolean, UriTemplateFormat1BoxedNumber, UriTemplateFormat1BoxedString, UriTemplateFormat1BoxedList, UriTemplateFormat1BoxedMap { + @Nullable Object getData(); } - public static final class UriTemplateFormat1BoxedVoid extends UriTemplateFormat1Boxed { - public final Void data; - private UriTemplateFormat1BoxedVoid(Void data) { - this.data = data; - } + public record UriTemplateFormat1BoxedVoid(Void data) implements UriTemplateFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UriTemplateFormat1BoxedBoolean extends UriTemplateFormat1Boxed { - public final boolean data; - private UriTemplateFormat1BoxedBoolean(boolean data) { - this.data = data; - } + public record UriTemplateFormat1BoxedBoolean(boolean data) implements UriTemplateFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UriTemplateFormat1BoxedNumber extends UriTemplateFormat1Boxed { - public final Number data; - private UriTemplateFormat1BoxedNumber(Number data) { - this.data = data; - } + public record UriTemplateFormat1BoxedNumber(Number data) implements UriTemplateFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UriTemplateFormat1BoxedString extends UriTemplateFormat1Boxed { - public final String data; - private UriTemplateFormat1BoxedString(String data) { - this.data = data; - } + public record UriTemplateFormat1BoxedString(String data) implements UriTemplateFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UriTemplateFormat1BoxedList extends UriTemplateFormat1Boxed { - public final FrozenList<@Nullable Object> data; - private UriTemplateFormat1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record UriTemplateFormat1BoxedList(FrozenList<@Nullable Object> data) implements UriTemplateFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UriTemplateFormat1BoxedMap extends UriTemplateFormat1Boxed { - public final FrozenMap<@Nullable Object> data; - private UriTemplateFormat1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record UriTemplateFormat1BoxedMap(FrozenMap<@Nullable Object> data) implements UriTemplateFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class UriTemplateFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UriTemplateFormat1BoxedList>, MapSchemaValidator, UriTemplateFormat1BoxedMap> { + public static class UriTemplateFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UriTemplateFormat1BoxedList>, MapSchemaValidator, UriTemplateFormat1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public UriTemplateFormat1BoxedList validateAndBox(List arg, SchemaConfigurati public UriTemplateFormat1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UriTemplateFormat1BoxedMap(validate(arg, configuration)); } + @Override + public UriTemplateFormat1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/mediatype/MediaType.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/mediatype/MediaType.java index 7e55f79c911..e8392d15eda 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/mediatype/MediaType.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/mediatype/MediaType.java @@ -1,11 +1,8 @@ package org.openapijsonschematools.client.mediatype; import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.checkerframework.checker.nullness.qual.Nullable; -import java.util.Map; - -public class MediaType { +public interface MediaType, U> { /* * Used to store request and response body schema information * encoding: @@ -14,16 +11,6 @@ public class MediaType { * The encoding object SHALL only apply to requestBody objects when the media type is * multipart or application/x-www-form-urlencoded. */ - public final T schema; - public final @Nullable Map encoding; - - public MediaType(T schema, @Nullable Map encoding) { - this.schema = schema; - this.encoding = encoding; - } - - public MediaType(T schema) { - this.schema = schema; - this.encoding = null; - } + T schema(); + U encoding(); } \ No newline at end of file diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java index 3fdbcdbfde4..490c0e3e8a2 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java @@ -1,28 +1,32 @@ package org.openapijsonschematools.client.requestbody; -import org.openapijsonschematools.client.mediatype.MediaType; - import java.net.http.HttpRequest; import org.checkerframework.checker.nullness.qual.Nullable; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.ToNumberPolicy; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; import java.util.Map; import java.util.regex.Pattern; -public abstract class RequestBodySerializer { +public abstract class RequestBodySerializer { /* * Describes a single request body * content: contentType to MediaType schema info */ - public final Map> content; + public final Map content; public final boolean required; private static final Pattern jsonContentTypePattern = Pattern.compile( "application/[^+]*[+]?(json);?.*" ); - private static final Gson gson = new Gson(); + private static final Gson gson = new GsonBuilder() + .setObjectToNumberStrategy(ToNumberPolicy.LONG_OR_DOUBLE) + .setNumberToNumberStrategy(ToNumberPolicy.LONG_OR_DOUBLE) + .create(); private static final String textPlainContentType = "text/plain"; - public RequestBodySerializer(Map> content, boolean required) { + public RequestBodySerializer(Map content, boolean required) { this.content = content; this.required = required; } @@ -40,7 +44,7 @@ private SerializedRequestBody serializeTextPlain(String contentType, @Nullable O if (body instanceof String stringBody) { return new SerializedRequestBody(contentType, HttpRequest.BodyPublishers.ofString(stringBody)); } - throw new RuntimeException("Invalid non-string data type of "+body.getClass().getName()+" for text/plain body serialization"); + throw new RuntimeException("Invalid non-string data type of "+JsonSchema.getClass(body)+" for text/plain body serialization"); } protected SerializedRequestBody serialize(String contentType, @Nullable Object body) { diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/response/ApiResponse.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/response/ApiResponse.java new file mode 100644 index 00000000000..dab55e0f2da --- /dev/null +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/response/ApiResponse.java @@ -0,0 +1,9 @@ +package org.openapijsonschematools.client.response; + +import java.net.http.HttpResponse; + +public interface ApiResponse { + HttpResponse response(); + SealedBodyOutputClass body(); + HeaderOutputClass headers(); +} \ No newline at end of file diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java new file mode 100644 index 00000000000..766af80f088 --- /dev/null +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java @@ -0,0 +1,83 @@ +package org.openapijsonschematools.client.response; + +import java.net.http.HttpHeaders; +import java.net.http.HttpResponse; +import java.nio.charset.StandardCharsets; +import java.util.Map; +import java.util.Optional; +import java.util.regex.Pattern; + +import org.checkerframework.checker.nullness.qual.Nullable; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.ToNumberPolicy; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; + +public abstract class ResponseDeserializer { + public final Map content; + public final @Nullable Map headers; // todo change the value to header + private static final Pattern jsonContentTypePattern = Pattern.compile( + "application/[^+]*[+]?(json);?.*" + ); + private static final Gson gson = new GsonBuilder() + .setObjectToNumberStrategy(ToNumberPolicy.LONG_OR_DOUBLE) + .setNumberToNumberStrategy(ToNumberPolicy.LONG_OR_DOUBLE) + .create(); + protected static final String textPlainContentType = "text/plain"; + + public ResponseDeserializer(Map content) { + this.content = content; + this.headers = null; + } + + protected abstract SealedBodyClass getBody(String contentType, byte[] body, SchemaConfiguration configuration); + protected abstract HeaderClass getHeaders(HttpHeaders headers); + + protected @Nullable Object deserializeJson(byte[] body) { + String bodyStr = new String(body, StandardCharsets.UTF_8); + return gson.fromJson(bodyStr, Object.class); + } + + protected String deserializeTextPlain(byte[] body) { + return new String(body, StandardCharsets.UTF_8); + } + + protected static boolean contentTypeIsJson(String contentType) { + return jsonContentTypePattern.matcher(contentType).find(); + } + + protected static boolean contentTypeIsTextPlain(String contentType) { + return textPlainContentType.equals(contentType); + } + + protected T deserializeBody(String contentType, byte[] body, JsonSchema schema, SchemaConfiguration configuration) { + if (contentTypeIsJson(contentType)) { + @Nullable Object bodyData = deserializeJson(body); + return schema.validateAndBox(bodyData, configuration); + } else if (contentTypeIsTextPlain(contentType)) { + String bodyData = deserializeTextPlain(body); + return schema.validateAndBox(bodyData, configuration); + } + throw new RuntimeException("Deserialization for contentType="+contentType+" has not yet been implemented."); + } + + public ApiResponse deserialize(HttpResponse response, SchemaConfiguration configuration) { + Optional contentTypeInfo = response.headers().firstValue("Content-Type"); + if (contentTypeInfo.isEmpty()) { + throw new RuntimeException("Invalid response returned, Content-Type header is missing and it must be included"); + } + String contentType = contentTypeInfo.get(); + if (content != null && !content.containsKey(contentType)) { + throw new RuntimeException( + "Invalid contentType returned. contentType="+contentType+" was returned "+ + "when only "+content.keySet()+" are defined for statusCode="+response.statusCode() + ); + } + byte[] bodyBytes = response.body(); + SealedBodyClass body = getBody(contentType, bodyBytes, configuration); + HeaderClass headers = getHeaders(response.headers()); + return new DeserializedApiResponse<>(response, body, headers); + } +} \ No newline at end of file diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java index ee6800e54ad..0ffcae114bd 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java @@ -31,71 +31,47 @@ import java.util.UUID; public class AnyTypeJsonSchema { - public static abstract sealed class AnyTypeJsonSchema1Boxed permits AnyTypeJsonSchema1BoxedVoid, AnyTypeJsonSchema1BoxedBoolean, AnyTypeJsonSchema1BoxedNumber, AnyTypeJsonSchema1BoxedString, AnyTypeJsonSchema1BoxedList, AnyTypeJsonSchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AnyTypeJsonSchema1Boxed permits AnyTypeJsonSchema1BoxedVoid, AnyTypeJsonSchema1BoxedBoolean, AnyTypeJsonSchema1BoxedNumber, AnyTypeJsonSchema1BoxedString, AnyTypeJsonSchema1BoxedList, AnyTypeJsonSchema1BoxedMap { + @Nullable Object getData(); } - public static final class AnyTypeJsonSchema1BoxedVoid extends AnyTypeJsonSchema1Boxed { - public final Void data; - private AnyTypeJsonSchema1BoxedVoid(Void data) { - this.data = data; - } + public record AnyTypeJsonSchema1BoxedVoid(Void data) implements AnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyTypeJsonSchema1BoxedBoolean extends AnyTypeJsonSchema1Boxed { - public final boolean data; - private AnyTypeJsonSchema1BoxedBoolean(boolean data) { - this.data = data; - } + public record AnyTypeJsonSchema1BoxedBoolean(boolean data) implements AnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyTypeJsonSchema1BoxedNumber extends AnyTypeJsonSchema1Boxed { - public final Number data; - private AnyTypeJsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record AnyTypeJsonSchema1BoxedNumber(Number data) implements AnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyTypeJsonSchema1BoxedString extends AnyTypeJsonSchema1Boxed { - public final String data; - private AnyTypeJsonSchema1BoxedString(String data) { - this.data = data; - } + public record AnyTypeJsonSchema1BoxedString(String data) implements AnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyTypeJsonSchema1BoxedList extends AnyTypeJsonSchema1Boxed { - public final FrozenList<@Nullable Object> data; - private AnyTypeJsonSchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record AnyTypeJsonSchema1BoxedList(FrozenList<@Nullable Object> data) implements AnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyTypeJsonSchema1BoxedMap extends AnyTypeJsonSchema1Boxed { - public final FrozenMap<@Nullable Object> data; - private AnyTypeJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record AnyTypeJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) implements AnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class AnyTypeJsonSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AnyTypeJsonSchema1BoxedList>, MapSchemaValidator, AnyTypeJsonSchema1BoxedMap> { + public static class AnyTypeJsonSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AnyTypeJsonSchema1BoxedList>, MapSchemaValidator, AnyTypeJsonSchema1BoxedMap> { private static @Nullable AnyTypeJsonSchema1 instance = null; protected AnyTypeJsonSchema1() { @@ -192,11 +168,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castItem = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(castItem); i += 1; @@ -227,11 +203,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castValue = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, castValue); } @@ -291,25 +267,50 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid public AnyTypeJsonSchema1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyTypeJsonSchema1BoxedVoid(validate(arg, configuration)); } + @Override public AnyTypeJsonSchema1BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyTypeJsonSchema1BoxedBoolean(validate(arg, configuration)); } + @Override public AnyTypeJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyTypeJsonSchema1BoxedNumber(validate(arg, configuration)); } + @Override public AnyTypeJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyTypeJsonSchema1BoxedString(validate(arg, configuration)); } + @Override public AnyTypeJsonSchema1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyTypeJsonSchema1BoxedList(validate(arg, configuration)); } + @Override public AnyTypeJsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyTypeJsonSchema1BoxedMap(validate(arg, configuration)); } + + @Override + public AnyTypeJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java index 9cb93203682..2cceae9d49f 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java @@ -18,20 +18,16 @@ import java.util.Set; public class BooleanJsonSchema { - public static abstract sealed class BooleanJsonSchema1Boxed permits BooleanJsonSchema1BoxedBoolean { - public abstract @Nullable Object data(); + public sealed interface BooleanJsonSchema1Boxed permits BooleanJsonSchema1BoxedBoolean { + @Nullable Object getData(); } - public static final class BooleanJsonSchema1BoxedBoolean extends BooleanJsonSchema1Boxed { - public final boolean data; - private BooleanJsonSchema1BoxedBoolean(boolean data) { - this.data = data; - } + public record BooleanJsonSchema1BoxedBoolean(boolean data) implements BooleanJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class BooleanJsonSchema1 extends JsonSchema implements BooleanSchemaValidator { + public static class BooleanJsonSchema1 extends JsonSchema implements BooleanSchemaValidator { private static @Nullable BooleanJsonSchema1 instance = null; protected BooleanJsonSchema1() { @@ -80,5 +76,14 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V public BooleanJsonSchema1BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new BooleanJsonSchema1BoxedBoolean(validate(arg, configuration)); } + + @Override + public BooleanJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java index 48da817d9b1..15b5ca67f26 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java @@ -19,21 +19,17 @@ import java.util.Set; public class DateJsonSchema { - public static abstract sealed class DateJsonSchema1Boxed permits DateJsonSchema1BoxedString { - public abstract @Nullable Object data(); + public sealed interface DateJsonSchema1Boxed permits DateJsonSchema1BoxedString { + @Nullable Object getData(); } - public static final class DateJsonSchema1BoxedString extends DateJsonSchema1Boxed { - public final String data; - private DateJsonSchema1BoxedString(String data) { - this.data = data; - } + public record DateJsonSchema1BoxedString(String data) implements DateJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class DateJsonSchema1 extends JsonSchema implements StringSchemaValidator { + public static class DateJsonSchema1 extends JsonSchema implements StringSchemaValidator { private static @Nullable DateJsonSchema1 instance = null; protected DateJsonSchema1() { @@ -87,5 +83,13 @@ public String validate(LocalDate arg, SchemaConfiguration configuration) throws public DateJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DateJsonSchema1BoxedString(validate(arg, configuration)); } + + @Override + public DateJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java index 9e048ab2c07..e695f3c2ac9 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java @@ -19,21 +19,17 @@ import java.util.Set; public class DateTimeJsonSchema { - public static abstract sealed class DateTimeJsonSchema1Boxed permits DateTimeJsonSchema1BoxedString { - public abstract @Nullable Object data(); + public sealed interface DateTimeJsonSchema1Boxed permits DateTimeJsonSchema1BoxedString { + @Nullable Object getData(); } - public static final class DateTimeJsonSchema1BoxedString extends DateTimeJsonSchema1Boxed { - public final String data; - private DateTimeJsonSchema1BoxedString(String data) { - this.data = data; - } + public record DateTimeJsonSchema1BoxedString(String data) implements DateTimeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class DateTimeJsonSchema1 extends JsonSchema implements StringSchemaValidator { + public static class DateTimeJsonSchema1 extends JsonSchema implements StringSchemaValidator { private static @Nullable DateTimeJsonSchema1 instance = null; protected DateTimeJsonSchema1() { @@ -87,5 +83,13 @@ public String validate(ZonedDateTime arg, SchemaConfiguration configuration) thr public DateTimeJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DateTimeJsonSchema1BoxedString(validate(arg, configuration)); } + + @Override + public DateTimeJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java index af820a6b251..f961e94f802 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java @@ -18,21 +18,17 @@ import java.util.Set; public class DecimalJsonSchema { - public static abstract sealed class DecimalJsonSchema1Boxed permits DecimalJsonSchema1BoxedString { - public abstract @Nullable Object data(); + public sealed interface DecimalJsonSchema1Boxed permits DecimalJsonSchema1BoxedString { + @Nullable Object getData(); } - public static final class DecimalJsonSchema1BoxedString extends DecimalJsonSchema1Boxed { - public final String data; - private DecimalJsonSchema1BoxedString(String data) { - this.data = data; - } + public record DecimalJsonSchema1BoxedString(String data) implements DecimalJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class DecimalJsonSchema1 extends JsonSchema implements StringSchemaValidator { + public static class DecimalJsonSchema1 extends JsonSchema implements StringSchemaValidator { private static @Nullable DecimalJsonSchema1 instance = null; protected DecimalJsonSchema1() { @@ -80,5 +76,13 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val public DecimalJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DecimalJsonSchema1BoxedString(validate(arg, configuration)); } + + @Override + public DecimalJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java index 8219f3ca213..56f7894f670 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java @@ -18,21 +18,17 @@ import java.util.Set; public class DoubleJsonSchema { - public static abstract sealed class DoubleJsonSchema1Boxed permits DoubleJsonSchema1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface DoubleJsonSchema1Boxed permits DoubleJsonSchema1BoxedNumber { + @Nullable Object getData(); } - public static final class DoubleJsonSchema1BoxedNumber extends DoubleJsonSchema1Boxed { - public final Number data; - private DoubleJsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record DoubleJsonSchema1BoxedNumber(Number data) implements DoubleJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class DoubleJsonSchema1 extends JsonSchema implements NumberSchemaValidator { + public static class DoubleJsonSchema1 extends JsonSchema implements NumberSchemaValidator { private static @Nullable DoubleJsonSchema1 instance = null; protected DoubleJsonSchema1() { @@ -84,5 +80,13 @@ public double validate(double arg, SchemaConfiguration configuration) { public DoubleJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DoubleJsonSchema1BoxedNumber(validate(arg, configuration)); } + + @Override + public DoubleJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java index 42e3806e845..65221627b46 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java @@ -18,21 +18,17 @@ import java.util.Set; public class FloatJsonSchema { - public static abstract sealed class FloatJsonSchema1Boxed permits FloatJsonSchema1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface FloatJsonSchema1Boxed permits FloatJsonSchema1BoxedNumber { + @Nullable Object getData(); } - public static final class FloatJsonSchema1BoxedNumber extends FloatJsonSchema1Boxed { - public final Number data; - private FloatJsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record FloatJsonSchema1BoxedNumber(Number data) implements FloatJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class FloatJsonSchema1 extends JsonSchema implements NumberSchemaValidator { + public static class FloatJsonSchema1 extends JsonSchema implements NumberSchemaValidator { private static @Nullable FloatJsonSchema1 instance = null; protected FloatJsonSchema1() { @@ -84,5 +80,13 @@ public float validate(float arg, SchemaConfiguration configuration) { public FloatJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new FloatJsonSchema1BoxedNumber(validate(arg, configuration)); } + + @Override + public FloatJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java index c9ae84e53f4..836fa1db724 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java @@ -18,21 +18,17 @@ import java.util.Set; public class Int32JsonSchema { - public static abstract sealed class Int32JsonSchema1Boxed permits Int32JsonSchema1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface Int32JsonSchema1Boxed permits Int32JsonSchema1BoxedNumber { + @Nullable Object getData(); } - public static final class Int32JsonSchema1BoxedNumber extends Int32JsonSchema1Boxed { - public final Number data; - private Int32JsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record Int32JsonSchema1BoxedNumber(Number data) implements Int32JsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Int32JsonSchema1 extends JsonSchema implements NumberSchemaValidator { + public static class Int32JsonSchema1 extends JsonSchema implements NumberSchemaValidator { private static @Nullable Int32JsonSchema1 instance = null; protected Int32JsonSchema1() { @@ -91,5 +87,13 @@ public float validate(float arg, SchemaConfiguration configuration) throws Valid public Int32JsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Int32JsonSchema1BoxedNumber(validate(arg, configuration)); } + + @Override + public Int32JsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java index e74999992ef..da3f9d8d5f7 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java @@ -18,21 +18,17 @@ import java.util.Set; public class Int64JsonSchema { - public static abstract sealed class Int64JsonSchema1Boxed permits Int64JsonSchema1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface Int64JsonSchema1Boxed permits Int64JsonSchema1BoxedNumber { + @Nullable Object getData(); } - public static final class Int64JsonSchema1BoxedNumber extends Int64JsonSchema1Boxed { - public final Number data; - private Int64JsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record Int64JsonSchema1BoxedNumber(Number data) implements Int64JsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Int64JsonSchema1 extends JsonSchema implements NumberSchemaValidator { + public static class Int64JsonSchema1 extends JsonSchema implements NumberSchemaValidator { private static @Nullable Int64JsonSchema1 instance = null; protected Int64JsonSchema1() { @@ -101,5 +97,13 @@ public double validate(double arg, SchemaConfiguration configuration) throws Val public Int64JsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Int64JsonSchema1BoxedNumber(validate(arg, configuration)); } + + @Override + public Int64JsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java index 42568a55f34..6205c5b4380 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java @@ -18,21 +18,17 @@ import java.util.Set; public class IntJsonSchema { - public static abstract sealed class IntJsonSchema1Boxed permits IntJsonSchema1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface IntJsonSchema1Boxed permits IntJsonSchema1BoxedNumber { + @Nullable Object getData(); } - public static final class IntJsonSchema1BoxedNumber extends IntJsonSchema1Boxed { - public final Number data; - private IntJsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record IntJsonSchema1BoxedNumber(Number data) implements IntJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class IntJsonSchema1 extends JsonSchema implements NumberSchemaValidator { + public static class IntJsonSchema1 extends JsonSchema implements NumberSchemaValidator { private static @Nullable IntJsonSchema1 instance = null; protected IntJsonSchema1() { @@ -101,5 +97,13 @@ public double validate(double arg, SchemaConfiguration configuration) throws Val public IntJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new IntJsonSchema1BoxedNumber(validate(arg, configuration)); } + + @Override + public IntJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java index 855e63d6573..7ebb3106467 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java @@ -21,21 +21,17 @@ import java.util.Set; public class ListJsonSchema { - public static abstract sealed class ListJsonSchema1Boxed permits ListJsonSchema1BoxedList { - public abstract @Nullable Object data(); + public sealed interface ListJsonSchema1Boxed permits ListJsonSchema1BoxedList { + @Nullable Object getData(); } - public static final class ListJsonSchema1BoxedList extends ListJsonSchema1Boxed { - public final FrozenList<@Nullable Object> data; - private ListJsonSchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ListJsonSchema1BoxedList(FrozenList<@Nullable Object> data) implements ListJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class ListJsonSchema1 extends JsonSchema implements ListSchemaValidator, ListJsonSchema1BoxedList> { + public static class ListJsonSchema1 extends JsonSchema implements ListSchemaValidator, ListJsonSchema1BoxedList> { private static @Nullable ListJsonSchema1 instance = null; protected ListJsonSchema1() { @@ -58,11 +54,11 @@ public static ListJsonSchema1 getInstance() { for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castItem = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(castItem); i += 1; @@ -101,5 +97,13 @@ public static ListJsonSchema1 getInstance() { public ListJsonSchema1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ListJsonSchema1BoxedList(validate(arg, configuration)); } + + @Override + public ListJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java index 568471e3c8d..47e141dac53 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java @@ -22,21 +22,17 @@ import java.util.Set; public class MapJsonSchema { - public static abstract sealed class MapJsonSchema1Boxed permits MapJsonSchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface MapJsonSchema1Boxed permits MapJsonSchema1BoxedMap { + @Nullable Object getData(); } - public static final class MapJsonSchema1BoxedMap extends MapJsonSchema1Boxed { - public final FrozenMap<@Nullable Object> data; - private MapJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record MapJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) implements MapJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class MapJsonSchema1 extends JsonSchema implements MapSchemaValidator, MapJsonSchema1BoxedMap> { + public static class MapJsonSchema1 extends JsonSchema implements MapSchemaValidator, MapJsonSchema1BoxedMap> { private static @Nullable MapJsonSchema1 instance = null; protected MapJsonSchema1() { @@ -64,11 +60,11 @@ public static MapJsonSchema1 getInstance() { List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castValue = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, castValue); } @@ -105,5 +101,13 @@ public static MapJsonSchema1 getInstance() { public MapJsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MapJsonSchema1BoxedMap(validate(arg, configuration)); } + + @Override + public MapJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java index 705bb7aa6b9..de1ed91b0cd 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java @@ -31,71 +31,47 @@ import java.util.UUID; public class NotAnyTypeJsonSchema { - public static abstract sealed class NotAnyTypeJsonSchema1Boxed permits NotAnyTypeJsonSchema1BoxedVoid, NotAnyTypeJsonSchema1BoxedBoolean, NotAnyTypeJsonSchema1BoxedNumber, NotAnyTypeJsonSchema1BoxedString, NotAnyTypeJsonSchema1BoxedList, NotAnyTypeJsonSchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface NotAnyTypeJsonSchema1Boxed permits NotAnyTypeJsonSchema1BoxedVoid, NotAnyTypeJsonSchema1BoxedBoolean, NotAnyTypeJsonSchema1BoxedNumber, NotAnyTypeJsonSchema1BoxedString, NotAnyTypeJsonSchema1BoxedList, NotAnyTypeJsonSchema1BoxedMap { + @Nullable Object getData(); } - public static final class NotAnyTypeJsonSchema1BoxedVoid extends NotAnyTypeJsonSchema1Boxed { - public final Void data; - private NotAnyTypeJsonSchema1BoxedVoid(Void data) { - this.data = data; - } + public record NotAnyTypeJsonSchema1BoxedVoid(Void data) implements NotAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotAnyTypeJsonSchema1BoxedBoolean extends NotAnyTypeJsonSchema1Boxed { - public final boolean data; - private NotAnyTypeJsonSchema1BoxedBoolean(boolean data) { - this.data = data; - } + public record NotAnyTypeJsonSchema1BoxedBoolean(boolean data) implements NotAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotAnyTypeJsonSchema1BoxedNumber extends NotAnyTypeJsonSchema1Boxed { - public final Number data; - private NotAnyTypeJsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record NotAnyTypeJsonSchema1BoxedNumber(Number data) implements NotAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotAnyTypeJsonSchema1BoxedString extends NotAnyTypeJsonSchema1Boxed { - public final String data; - private NotAnyTypeJsonSchema1BoxedString(String data) { - this.data = data; - } + public record NotAnyTypeJsonSchema1BoxedString(String data) implements NotAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotAnyTypeJsonSchema1BoxedList extends NotAnyTypeJsonSchema1Boxed { - public final FrozenList<@Nullable Object> data; - private NotAnyTypeJsonSchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record NotAnyTypeJsonSchema1BoxedList(FrozenList<@Nullable Object> data) implements NotAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotAnyTypeJsonSchema1BoxedMap extends NotAnyTypeJsonSchema1Boxed { - public final FrozenMap<@Nullable Object> data; - private NotAnyTypeJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record NotAnyTypeJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) implements NotAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class NotAnyTypeJsonSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, NotAnyTypeJsonSchema1BoxedList>, MapSchemaValidator, NotAnyTypeJsonSchema1BoxedMap> { + public static class NotAnyTypeJsonSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, NotAnyTypeJsonSchema1BoxedList>, MapSchemaValidator, NotAnyTypeJsonSchema1BoxedMap> { private static @Nullable NotAnyTypeJsonSchema1 instance = null; protected NotAnyTypeJsonSchema1() { @@ -194,11 +170,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castItem = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(castItem); i += 1; @@ -229,11 +205,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castValue = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, castValue); } @@ -293,25 +269,50 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid public NotAnyTypeJsonSchema1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NotAnyTypeJsonSchema1BoxedVoid(validate(arg, configuration)); } + @Override public NotAnyTypeJsonSchema1BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NotAnyTypeJsonSchema1BoxedBoolean(validate(arg, configuration)); } + @Override public NotAnyTypeJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NotAnyTypeJsonSchema1BoxedNumber(validate(arg, configuration)); } + @Override public NotAnyTypeJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NotAnyTypeJsonSchema1BoxedString(validate(arg, configuration)); } + @Override public NotAnyTypeJsonSchema1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NotAnyTypeJsonSchema1BoxedList(validate(arg, configuration)); } + @Override public NotAnyTypeJsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NotAnyTypeJsonSchema1BoxedMap(validate(arg, configuration)); } + + @Override + public NotAnyTypeJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java index 5882a7f23e5..d028dbf295e 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java @@ -18,21 +18,17 @@ import java.util.Set; public class NullJsonSchema { - public static abstract sealed class NullJsonSchema1Boxed permits NullJsonSchema1BoxedVoid { - public abstract @Nullable Object data(); + public sealed interface NullJsonSchema1Boxed permits NullJsonSchema1BoxedVoid { + @Nullable Object getData(); } - public static final class NullJsonSchema1BoxedVoid extends NullJsonSchema1Boxed { - public final Void data; - private NullJsonSchema1BoxedVoid(Void data) { - this.data = data; - } + public record NullJsonSchema1BoxedVoid(Void data) implements NullJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class NullJsonSchema1 extends JsonSchema implements NullSchemaValidator { + public static class NullJsonSchema1 extends JsonSchema implements NullSchemaValidator { private static @Nullable NullJsonSchema1 instance = null; protected NullJsonSchema1() { @@ -79,5 +75,14 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat public NullJsonSchema1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NullJsonSchema1BoxedVoid(validate(arg, configuration)); } + + @Override + public NullJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java index 1340dcc4420..5c33b047d95 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java @@ -18,21 +18,17 @@ import java.util.Set; public class NumberJsonSchema { - public static abstract sealed class NumberJsonSchema1Boxed permits NumberJsonSchema1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface NumberJsonSchema1Boxed permits NumberJsonSchema1BoxedNumber { + @Nullable Object getData(); } - public static final class NumberJsonSchema1BoxedNumber extends NumberJsonSchema1Boxed { - public final Number data; - private NumberJsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record NumberJsonSchema1BoxedNumber(Number data) implements NumberJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class NumberJsonSchema1 extends JsonSchema implements NumberSchemaValidator { + public static class NumberJsonSchema1 extends JsonSchema implements NumberSchemaValidator { private static @Nullable NumberJsonSchema1 instance = null; protected NumberJsonSchema1() { @@ -100,5 +96,13 @@ public double validate(double arg, SchemaConfiguration configuration) { public NumberJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NumberJsonSchema1BoxedNumber(validate(arg, configuration)); } + + @Override + public NumberJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java index 2cd0e21f94d..749f5faba63 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java @@ -21,20 +21,16 @@ import java.util.UUID; public class StringJsonSchema { - public static abstract sealed class StringJsonSchema1Boxed permits StringJsonSchema1BoxedString { - public abstract @Nullable Object data(); + public sealed interface StringJsonSchema1Boxed permits StringJsonSchema1BoxedString { + @Nullable Object getData(); } - public static final class StringJsonSchema1BoxedString extends StringJsonSchema1Boxed { - public final String data; - private StringJsonSchema1BoxedString(String data) { - this.data = data; - } + public record StringJsonSchema1BoxedString(String data) implements StringJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class StringJsonSchema1 extends JsonSchema implements StringSchemaValidator { + public static class StringJsonSchema1 extends JsonSchema implements StringSchemaValidator { private static @Nullable StringJsonSchema1 instance = null; protected StringJsonSchema1() { @@ -99,5 +95,13 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid public StringJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new StringJsonSchema1BoxedString(validate(arg, configuration)); } + + @Override + public StringJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java index 2506b53a958..c2087929db7 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java @@ -19,21 +19,17 @@ import java.util.UUID; public class UuidJsonSchema { - public static abstract sealed class UuidJsonSchema1Boxed permits UuidJsonSchema1BoxedString { - public abstract @Nullable Object data(); + public sealed interface UuidJsonSchema1Boxed permits UuidJsonSchema1BoxedString { + @Nullable Object getData(); } - public static final class UuidJsonSchema1BoxedString extends UuidJsonSchema1Boxed { - public final String data; - private UuidJsonSchema1BoxedString(String data) { - this.data = data; - } + public record UuidJsonSchema1BoxedString(String data) implements UuidJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class UuidJsonSchema1 extends JsonSchema implements StringSchemaValidator { + public static class UuidJsonSchema1 extends JsonSchema implements StringSchemaValidator { private static @Nullable UuidJsonSchema1 instance = null; protected UuidJsonSchema1() { @@ -87,5 +83,13 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid public UuidJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UuidJsonSchema1BoxedString(validate(arg, configuration)); } + + @Override + public UuidJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidator.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidator.java index 2548452a115..64d9f476798 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidator.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidator.java @@ -43,7 +43,7 @@ public class AdditionalPropertiesValidator implements KeywordValidator { data.validationMetadata().validatedPathToSchemas(), data.validationMetadata().seenClasses() ); - JsonSchema addPropsSchema = JsonSchemaFactory.getInstance(additionalProperties); + JsonSchema addPropsSchema = JsonSchemaFactory.getInstance(additionalProperties); if (propValidationMetadata.validationRanEarlier(addPropsSchema)) { // todo add_deeper_validated_schemas continue; diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AllOfValidator.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AllOfValidator.java index 583017ea6b5..eb6bcf21d4a 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AllOfValidator.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AllOfValidator.java @@ -11,8 +11,8 @@ public class AllOfValidator implements KeywordValidator { return null; } PathToSchemasMap pathToSchemas = new PathToSchemasMap(); - for(Class allOfClass: allOf) { - JsonSchema allOfSchema = JsonSchemaFactory.getInstance(allOfClass); + for(Class> allOfClass: allOf) { + JsonSchema allOfSchema = JsonSchemaFactory.getInstance(allOfClass); PathToSchemasMap otherPathToSchemas = JsonSchema.validate(allOfSchema, data.arg(), data.validationMetadata()); pathToSchemas.update(otherPathToSchemas); } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AnyOfValidator.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AnyOfValidator.java index 062fa2eecdc..d466518d3fe 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AnyOfValidator.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AnyOfValidator.java @@ -16,8 +16,8 @@ public class AnyOfValidator implements KeywordValidator { return null; } PathToSchemasMap pathToSchemas = new PathToSchemasMap(); - List> validatedAnyOfClasses = new ArrayList<>(); - for(Class anyOfClass: anyOf) { + List>> validatedAnyOfClasses = new ArrayList<>(); + for(Class> anyOfClass: anyOf) { if (anyOfClass == data.schema().getClass()) { /* optimistically assume that schema will pass validation @@ -27,7 +27,7 @@ public class AnyOfValidator implements KeywordValidator { continue; } try { - JsonSchema anyOfSchema = JsonSchemaFactory.getInstance(anyOfClass); + JsonSchema anyOfSchema = JsonSchemaFactory.getInstance(anyOfClass); PathToSchemasMap otherPathToSchemas = JsonSchema.validate(anyOfSchema, data.arg(), data.validationMetadata()); validatedAnyOfClasses.add(anyOfClass); pathToSchemas.update(otherPathToSchemas); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/DependentSchemasValidator.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/DependentSchemasValidator.java index 940157d3b48..e329529fe8a 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/DependentSchemasValidator.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/DependentSchemasValidator.java @@ -25,13 +25,13 @@ public class DependentSchemasValidator implements KeywordValidator { presentProperties.add((String) key); } } - for(Map.Entry> entry: dependentSchemas.entrySet()) { + for(Map.Entry>> entry: dependentSchemas.entrySet()) { String propName = entry.getKey(); if (!presentProperties.contains(propName)) { continue; } - Class dependentSchemaClass = entry.getValue(); - JsonSchema dependentSchema = JsonSchemaFactory.getInstance(dependentSchemaClass); + Class> dependentSchemaClass = entry.getValue(); + JsonSchema dependentSchema = JsonSchemaFactory.getInstance(dependentSchemaClass); PathToSchemasMap otherPathToSchemas = JsonSchema.validate(dependentSchema, mapArg, data.validationMetadata()); pathToSchemas.update(otherPathToSchemas); } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ElseValidator.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ElseValidator.java index b0ba9ecbc0a..3f50d9326c4 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ElseValidator.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ElseValidator.java @@ -22,7 +22,7 @@ public class ElseValidator implements KeywordValidator { // if validation is true return null; } - JsonSchema elseSchemaInstance = JsonSchemaFactory.getInstance(elseSchema); + JsonSchema elseSchemaInstance = JsonSchemaFactory.getInstance(elseSchema); PathToSchemasMap pathToSchemas = new PathToSchemasMap(); var elsePathToSchemas = JsonSchema.validate(elseSchemaInstance, data.arg(), data.validationMetadata()); // todo capture validation error and describe it as an else error? diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ItemsValidator.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ItemsValidator.java index 5bd194d47a9..1b03c0b3094 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ItemsValidator.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ItemsValidator.java @@ -22,7 +22,7 @@ public class ItemsValidator implements KeywordValidator { } PathToSchemasMap pathToSchemas = new PathToSchemasMap(); int minIndex = data.schema().prefixItems != null ? data.schema().prefixItems.size() : 0; - JsonSchema itemsSchema = JsonSchemaFactory.getInstance(items); + JsonSchema itemsSchema = JsonSchemaFactory.getInstance(items); for(int i = minIndex; i < listArg.size(); i++) { List itemPathToItem = new ArrayList<>(data.validationMetadata().pathToItem()); itemPathToItem.add(i); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchema.java index 10d636e6b9d..beb7460b86c 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchema.java @@ -17,11 +17,11 @@ import java.util.UUID; import java.util.regex.Pattern; -public abstract class JsonSchema { +public abstract class JsonSchema { public final @Nullable Set> type; public final @Nullable String format; - public final @Nullable Class items; - public final @Nullable Map> properties; + public final @Nullable Class> items; + public final @Nullable Map>> properties; public final @Nullable Set required; public final @Nullable Number exclusiveMaximum; public final @Nullable Number exclusiveMinimum; @@ -34,11 +34,11 @@ public abstract class JsonSchema { public final @Nullable Number maximum; public final @Nullable Number minimum; public final @Nullable BigDecimal multipleOf; - public final @Nullable Class additionalProperties; - public final @Nullable List> allOf; - public final @Nullable List> anyOf; - public final @Nullable List> oneOf; - public final @Nullable Class not; + public final @Nullable Class> additionalProperties; + public final @Nullable List>> allOf; + public final @Nullable List>> anyOf; + public final @Nullable List>> oneOf; + public final @Nullable Class> not; public final @Nullable Boolean uniqueItems; public final @Nullable Set<@Nullable Object> enumValues; public final @Nullable Pattern pattern; @@ -46,19 +46,19 @@ public abstract class JsonSchema { public final boolean defaultValueSet; public final @Nullable Object constValue; public final boolean constValueSet; - public final @Nullable Class contains; + public final @Nullable Class> contains; public final @Nullable Integer maxContains; public final @Nullable Integer minContains; - public final @Nullable Class propertyNames; + public final @Nullable Class> propertyNames; public final @Nullable Map> dependentRequired; - public final @Nullable Map> dependentSchemas; - public final @Nullable Map> patternProperties; - public final @Nullable List> prefixItems; - public final @Nullable Class ifSchema; - public final @Nullable Class then; - public final @Nullable Class elseSchema; - public final @Nullable Class unevaluatedItems; - public final @Nullable Class unevaluatedProperties; + public final @Nullable Map>> dependentSchemas; + public final @Nullable Map>> patternProperties; + public final @Nullable List>> prefixItems; + public final @Nullable Class> ifSchema; + public final @Nullable Class> then; + public final @Nullable Class> elseSchema; + public final @Nullable Class> unevaluatedItems; + public final @Nullable Class> unevaluatedProperties; private final LinkedHashMap keywordToValidator; protected JsonSchema(JsonSchemaInfo jsonSchemaInfo) { @@ -223,6 +223,7 @@ protected JsonSchema(JsonSchemaInfo jsonSchemaInfo) { public abstract @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) throws InvalidTypeException; public abstract @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException; + public abstract T validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException; private List getContainsPathToSchemas( @Nullable Object arg, @@ -231,7 +232,7 @@ private List getContainsPathToSchemas( if (!(arg instanceof List listArg) || contains == null) { return new ArrayList<>(); } - JsonSchema containsSchema = JsonSchemaFactory.getInstance(contains); + JsonSchema containsSchema = JsonSchemaFactory.getInstance(contains); @Nullable List containsPathToSchemas = new ArrayList<>(); for(int i = 0; i < listArg.size(); i++) { PathToSchemasMap thesePathToSchemas = new PathToSchemasMap(); @@ -279,13 +280,13 @@ private PathToSchemasMap getPatternPropertiesPathToSchemas( validationMetadata.validatedPathToSchemas(), validationMetadata.seenClasses() ); - for (Map.Entry> patternPropEntry: patternProperties.entrySet()) { + for (Map.Entry>> patternPropEntry: patternProperties.entrySet()) { if (!patternPropEntry.getKey().matcher(key).find()) { continue; } - Class patternPropClass = patternPropEntry.getValue(); - JsonSchema patternPropSchema = JsonSchemaFactory.getInstance(patternPropClass); + Class> patternPropClass = patternPropEntry.getValue(); + JsonSchema patternPropSchema = JsonSchemaFactory.getInstance(patternPropClass); PathToSchemasMap otherPathToSchemas = JsonSchema.validate(patternPropSchema, entry.getValue(), propValidationMetadata); pathToSchemas.update(otherPathToSchemas); } @@ -300,7 +301,7 @@ private PathToSchemasMap getIfPathToSchemas( if (ifSchema == null) { return new PathToSchemasMap(); } - JsonSchema ifSchemaInstance = JsonSchemaFactory.getInstance(ifSchema); + JsonSchema ifSchemaInstance = JsonSchemaFactory.getInstance(ifSchema); PathToSchemasMap pathToSchemas = new PathToSchemasMap(); try { var otherPathToSchemas = JsonSchema.validate(ifSchemaInstance, arg, validationMetadata); @@ -310,7 +311,7 @@ private PathToSchemasMap getIfPathToSchemas( } public static PathToSchemasMap validate( - JsonSchema jsonSchema, + JsonSchema jsonSchema, @Nullable Object arg, ValidationMetadata validationMetadata ) throws ValidationException { @@ -361,7 +362,7 @@ public static PathToSchemasMap validate( if (!pathToSchemas.containsKey(pathToItem)) { pathToSchemas.put(validationMetadata.pathToItem(), new LinkedHashMap<>()); } - @Nullable LinkedHashMap schemas = pathToSchemas.get(pathToItem); + @Nullable LinkedHashMap, Void> schemas = pathToSchemas.get(pathToItem); if (schemas != null) { schemas.put(jsonSchema, null); } @@ -467,19 +468,19 @@ public String getNewInstance(String arg, List pathToItem, PathToSchemasM return arg; } - protected static PathToSchemasMap getPathToSchemas(JsonSchema jsonSchema, @Nullable Object arg, ValidationMetadata validationMetadata, Set> pathSet) { + protected static PathToSchemasMap getPathToSchemas(JsonSchema jsonSchema, @Nullable Object arg, ValidationMetadata validationMetadata, Set> pathSet) { PathToSchemasMap pathToSchemasMap = new PathToSchemasMap(); // todo add check of validationMetadata.validationRanEarlier(this) PathToSchemasMap otherPathToSchemas = validate(jsonSchema, arg, validationMetadata); pathToSchemasMap.update(otherPathToSchemas); for (var schemas: pathToSchemasMap.values()) { - JsonSchema firstSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema firstSchema = schemas.entrySet().iterator().next().getKey(); schemas.clear(); schemas.put(firstSchema, null); } pathSet.removeAll(pathToSchemasMap.keySet()); if (!pathSet.isEmpty()) { - LinkedHashMap unsetAnyTypeSchema = new LinkedHashMap<>(); + LinkedHashMap, Void> unsetAnyTypeSchema = new LinkedHashMap<>(); unsetAnyTypeSchema.put(UnsetAnyTypeJsonSchema.UnsetAnyTypeJsonSchema1.getInstance(), null); for (List pathToItem: pathSet) { pathToSchemasMap.put(pathToItem, unsetAnyTypeSchema); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaFactory.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaFactory.java index 7c9b6402f2b..24729ac172d 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaFactory.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaFactory.java @@ -10,10 +10,10 @@ public class JsonSchemaFactory { - static Map, JsonSchema> classToInstance = new HashMap<>(); + static Map>, JsonSchema> classToInstance = new HashMap<>(); - public static V getInstance(Class schemaCls) { - @Nullable JsonSchema cacheInst = classToInstance.get(schemaCls); + public static > V getInstance(Class schemaCls) { + @Nullable JsonSchema cacheInst = classToInstance.get(schemaCls); if (cacheInst != null) { assert schemaCls.isInstance(cacheInst); return schemaCls.cast(cacheInst); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaInfo.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaInfo.java index 8791c1c29ea..0a95fbbae6a 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaInfo.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaInfo.java @@ -18,13 +18,13 @@ public JsonSchemaInfo format(String format) { this.format = format; return this; } - public @Nullable Class items = null; - public JsonSchemaInfo items(Class items) { + public @Nullable Class> items = null; + public JsonSchemaInfo items(Class> items) { this.items = items; return this; } - public @Nullable Map> properties = null; - public JsonSchemaInfo properties(Map> properties) { + public @Nullable Map>> properties = null; + public JsonSchemaInfo properties(Map>> properties) { this.properties = properties; return this; } @@ -88,28 +88,28 @@ public JsonSchemaInfo multipleOf(BigDecimal multipleOf) { this.multipleOf = multipleOf; return this; } - public @Nullable Class additionalProperties; - public JsonSchemaInfo additionalProperties(Class additionalProperties) { + public @Nullable Class> additionalProperties; + public JsonSchemaInfo additionalProperties(Class> additionalProperties) { this.additionalProperties = additionalProperties; return this; } - public @Nullable List> allOf = null; - public JsonSchemaInfo allOf(List> allOf) { + public @Nullable List>> allOf = null; + public JsonSchemaInfo allOf(List>> allOf) { this.allOf = allOf; return this; } - public @Nullable List> anyOf = null; - public JsonSchemaInfo anyOf(List> anyOf) { + public @Nullable List>> anyOf = null; + public JsonSchemaInfo anyOf(List>> anyOf) { this.anyOf = anyOf; return this; } - public @Nullable List> oneOf = null; - public JsonSchemaInfo oneOf(List> oneOf) { + public @Nullable List>> oneOf = null; + public JsonSchemaInfo oneOf(List>> oneOf) { this.oneOf = oneOf; return this; } - public @Nullable Class not = null; - public JsonSchemaInfo not(Class not) { + public @Nullable Class> not = null; + public JsonSchemaInfo not(Class> not) { this.not = not; return this; } @@ -142,8 +142,8 @@ public JsonSchemaInfo constValue(@Nullable Object constValue) { this.constValueSet = true; return this; } - public @Nullable Class contains = null; - public JsonSchemaInfo contains(Class contains) { + public @Nullable Class> contains = null; + public JsonSchemaInfo contains(Class> contains) { this.contains = contains; return this; } @@ -157,8 +157,8 @@ public JsonSchemaInfo minContains(Integer minContains) { this.minContains = minContains; return this; } - public @Nullable Class propertyNames = null; - public JsonSchemaInfo propertyNames(Class propertyNames) { + public @Nullable Class> propertyNames = null; + public JsonSchemaInfo propertyNames(Class> propertyNames) { this.propertyNames = propertyNames; return this; } @@ -167,43 +167,43 @@ public JsonSchemaInfo dependentRequired(Map> dependentRequir this.dependentRequired = dependentRequired; return this; } - public @Nullable Map> dependentSchemas = null; - public JsonSchemaInfo dependentSchemas(Map> dependentSchemas) { + public @Nullable Map>> dependentSchemas = null; + public JsonSchemaInfo dependentSchemas(Map>> dependentSchemas) { this.dependentSchemas = dependentSchemas; return this; } - public @Nullable Map> patternProperties = null; - public JsonSchemaInfo patternProperties(Map> patternProperties) { + public @Nullable Map>> patternProperties = null; + public JsonSchemaInfo patternProperties(Map>> patternProperties) { this.patternProperties = patternProperties; return this; } - public @Nullable List> prefixItems = null; - public JsonSchemaInfo prefixItems(List> prefixItems) { + public @Nullable List>> prefixItems = null; + public JsonSchemaInfo prefixItems(List>> prefixItems) { this.prefixItems = prefixItems; return this; } - public @Nullable Class ifSchema = null; - public JsonSchemaInfo ifSchema(Class ifSchema) { + public @Nullable Class> ifSchema = null; + public JsonSchemaInfo ifSchema(Class> ifSchema) { this.ifSchema = ifSchema; return this; } - public @Nullable Class then = null; - public JsonSchemaInfo then(Class then) { + public @Nullable Class> then = null; + public JsonSchemaInfo then(Class> then) { this.then = then; return this; } - public @Nullable Class elseSchema = null; - public JsonSchemaInfo elseSchema(Class elseSchema) { + public @Nullable Class> elseSchema = null; + public JsonSchemaInfo elseSchema(Class> elseSchema) { this.elseSchema = elseSchema; return this; } - public @Nullable Class unevaluatedItems = null; - public JsonSchemaInfo unevaluatedItems(Class unevaluatedItems) { + public @Nullable Class> unevaluatedItems = null; + public JsonSchemaInfo unevaluatedItems(Class> unevaluatedItems) { this.unevaluatedItems = unevaluatedItems; return this; } - public @Nullable Class unevaluatedProperties = null; - public JsonSchemaInfo unevaluatedProperties(Class unevaluatedProperties) { + public @Nullable Class> unevaluatedProperties = null; + public JsonSchemaInfo unevaluatedProperties(Class> unevaluatedProperties) { this.unevaluatedProperties = unevaluatedProperties; return this; } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/NotValidator.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/NotValidator.java index aa61be1b624..b077e2056a1 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/NotValidator.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/NotValidator.java @@ -14,7 +14,7 @@ public class NotValidator implements KeywordValidator { } PathToSchemasMap pathToSchemas; try { - JsonSchema notSchema = JsonSchemaFactory.getInstance(not); + JsonSchema notSchema = JsonSchemaFactory.getInstance(not); pathToSchemas = JsonSchema.validate(notSchema, data.arg(), data.validationMetadata()); } catch (ValidationException e) { return null; diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/OneOfValidator.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/OneOfValidator.java index f84f7796a8c..3c4f4b5a085 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/OneOfValidator.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/OneOfValidator.java @@ -16,8 +16,8 @@ public class OneOfValidator implements KeywordValidator { return null; } PathToSchemasMap pathToSchemas = new PathToSchemasMap(); - List> validatedOneOfClasses = new ArrayList<>(); - for(Class oneOfClass: oneOf) { + List>> validatedOneOfClasses = new ArrayList<>(); + for(Class> oneOfClass: oneOf) { if (oneOfClass == data.schema().getClass()) { /* optimistically assume that schema will pass validation @@ -27,7 +27,7 @@ public class OneOfValidator implements KeywordValidator { continue; } try { - JsonSchema oneOfSchema = JsonSchemaFactory.getInstance(oneOfClass); + JsonSchema oneOfSchema = JsonSchemaFactory.getInstance(oneOfClass); PathToSchemasMap otherPathToSchemas = JsonSchema.validate(oneOfSchema, data.arg(), data.validationMetadata()); validatedOneOfClasses.add(oneOfClass); pathToSchemas.update(otherPathToSchemas); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PathToSchemasMap.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PathToSchemasMap.java index 6e199334d4c..a3ce89066a2 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PathToSchemasMap.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PathToSchemasMap.java @@ -5,12 +5,12 @@ import java.util.Map; @SuppressWarnings("serial") -public class PathToSchemasMap extends LinkedHashMap, LinkedHashMap> { +public class PathToSchemasMap extends LinkedHashMap, LinkedHashMap, Void>> { public void update(PathToSchemasMap other) { - for (Map.Entry, LinkedHashMap> entry: other.entrySet()) { + for (Map.Entry, LinkedHashMap, Void>> entry: other.entrySet()) { List pathToItem = entry.getKey(); - LinkedHashMap otherSchemas = entry.getValue(); + LinkedHashMap, Void> otherSchemas = entry.getValue(); if (containsKey(pathToItem)) { get(pathToItem).putAll(otherSchemas); } else { diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PrefixItemsValidator.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PrefixItemsValidator.java index 00e5b17607b..237bc250190 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PrefixItemsValidator.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PrefixItemsValidator.java @@ -31,7 +31,7 @@ public class PrefixItemsValidator implements KeywordValidator { data.validationMetadata().validatedPathToSchemas(), data.validationMetadata().seenClasses() ); - JsonSchema itemsSchema = JsonSchemaFactory.getInstance(prefixItems.get(i)); + JsonSchema itemsSchema = JsonSchemaFactory.getInstance(prefixItems.get(i)); PathToSchemasMap otherPathToSchemas = JsonSchema.validate(itemsSchema, listArg.get(i), itemValidationMetadata); pathToSchemas.update(otherPathToSchemas); } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidator.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidator.java index 17bccdd666a..b8ddd6fcb46 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidator.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidator.java @@ -27,7 +27,7 @@ public class PropertiesValidator implements KeywordValidator { presentProperties.add((String) key); } } - for(Map.Entry> entry: properties.entrySet()) { + for(Map.Entry>> entry: properties.entrySet()) { String propName = entry.getKey(); if (!presentProperties.contains(propName)) { continue; @@ -41,8 +41,8 @@ public class PropertiesValidator implements KeywordValidator { data.validationMetadata().validatedPathToSchemas(), data.validationMetadata().seenClasses() ); - Class propClass = entry.getValue(); - JsonSchema propSchema = JsonSchemaFactory.getInstance(propClass); + Class> propClass = entry.getValue(); + JsonSchema propSchema = JsonSchemaFactory.getInstance(propClass); if (propValidationMetadata.validationRanEarlier(propSchema)) { // todo add_deeper_validated_schemas continue; diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertyEntry.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertyEntry.java index aaaede643a0..8261eda6d49 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertyEntry.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertyEntry.java @@ -3,8 +3,8 @@ import java.util.AbstractMap; @SuppressWarnings("serial") -public class PropertyEntry extends AbstractMap.SimpleEntry> { - public PropertyEntry(String key, Class value) { +public class PropertyEntry extends AbstractMap.SimpleEntry>> { + public PropertyEntry(String key, Class> value) { super(key, value); } -} +} \ No newline at end of file diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertyNamesValidator.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertyNamesValidator.java index 55ea80b0382..087cd308b11 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertyNamesValidator.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertyNamesValidator.java @@ -18,7 +18,7 @@ public class PropertyNamesValidator implements KeywordValidator { if (!(data.arg() instanceof Map mapArg)) { return null; } - JsonSchema propertyNamesSchema = JsonSchemaFactory.getInstance(propertyNames); + JsonSchema propertyNamesSchema = JsonSchemaFactory.getInstance(propertyNames); for (Object objKey: mapArg.keySet()) { if (objKey instanceof String key) { List propPathToItem = new ArrayList<>(data.validationMetadata().pathToItem()); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ThenValidator.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ThenValidator.java index ad97e0e554e..bf599bc812f 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ThenValidator.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ThenValidator.java @@ -22,7 +22,7 @@ public class ThenValidator implements KeywordValidator { // if validation is false return null; } - JsonSchema thenSchema = JsonSchemaFactory.getInstance(then); + JsonSchema thenSchema = JsonSchemaFactory.getInstance(then); PathToSchemasMap pathToSchemas = new PathToSchemasMap(); var thenPathToSchemas = JsonSchema.validate(thenSchema, data.arg(), data.validationMetadata()); // todo capture validation error and describe it as an then error? diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnevaluatedItemsValidator.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnevaluatedItemsValidator.java index cfb88550525..8903d0b19a7 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnevaluatedItemsValidator.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnevaluatedItemsValidator.java @@ -26,7 +26,7 @@ public class UnevaluatedItemsValidator implements KeywordValidator { } PathToSchemasMap pathToSchemas = new PathToSchemasMap(); int minIndex = data.schema().prefixItems != null ? data.schema().prefixItems.size() : 0; - JsonSchema unevaluatedItemsSchema = JsonSchemaFactory.getInstance(unevaluatedItems); + JsonSchema unevaluatedItemsSchema = JsonSchemaFactory.getInstance(unevaluatedItems); for(int i = minIndex; i < listArg.size(); i++) { List itemPathToItem = new ArrayList<>(data.validationMetadata().pathToItem()); itemPathToItem.add(i); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnevaluatedPropertiesValidator.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnevaluatedPropertiesValidator.java index abc7f7e86f9..344c0cfab1b 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnevaluatedPropertiesValidator.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnevaluatedPropertiesValidator.java @@ -24,7 +24,7 @@ public class UnevaluatedPropertiesValidator implements KeywordValidator { return null; } PathToSchemasMap pathToSchemas = new PathToSchemasMap(); - JsonSchema unevaluatedPropertiesSchema = JsonSchemaFactory.getInstance(unevaluatedProperties); + JsonSchema unevaluatedPropertiesSchema = JsonSchemaFactory.getInstance(unevaluatedProperties); for(Map.Entry entry: mapArg.entrySet()) { if (!(entry.getKey() instanceof String propName)) { throw new InvalidTypeException("Map keys must be strings"); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java index 90b9e3b1870..1c23a427dd0 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java @@ -19,70 +19,46 @@ import java.util.UUID; public class UnsetAnyTypeJsonSchema { - public static abstract sealed class UnsetAnyTypeJsonSchema1Boxed permits UnsetAnyTypeJsonSchema1BoxedVoid, UnsetAnyTypeJsonSchema1BoxedBoolean, UnsetAnyTypeJsonSchema1BoxedNumber, UnsetAnyTypeJsonSchema1BoxedString, UnsetAnyTypeJsonSchema1BoxedList, UnsetAnyTypeJsonSchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface UnsetAnyTypeJsonSchema1Boxed permits UnsetAnyTypeJsonSchema1BoxedVoid, UnsetAnyTypeJsonSchema1BoxedBoolean, UnsetAnyTypeJsonSchema1BoxedNumber, UnsetAnyTypeJsonSchema1BoxedString, UnsetAnyTypeJsonSchema1BoxedList, UnsetAnyTypeJsonSchema1BoxedMap { + @Nullable Object getData(); } - public static final class UnsetAnyTypeJsonSchema1BoxedVoid extends UnsetAnyTypeJsonSchema1Boxed { - public final Void data; - private UnsetAnyTypeJsonSchema1BoxedVoid(Void data) { - this.data = data; - } + public record UnsetAnyTypeJsonSchema1BoxedVoid(Void data) implements UnsetAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnsetAnyTypeJsonSchema1BoxedBoolean extends UnsetAnyTypeJsonSchema1Boxed { - public final boolean data; - private UnsetAnyTypeJsonSchema1BoxedBoolean(boolean data) { - this.data = data; - } + public record UnsetAnyTypeJsonSchema1BoxedBoolean(boolean data) implements UnsetAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnsetAnyTypeJsonSchema1BoxedNumber extends UnsetAnyTypeJsonSchema1Boxed { - public final Number data; - private UnsetAnyTypeJsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record UnsetAnyTypeJsonSchema1BoxedNumber(Number data) implements UnsetAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnsetAnyTypeJsonSchema1BoxedString extends UnsetAnyTypeJsonSchema1Boxed { - public final String data; - private UnsetAnyTypeJsonSchema1BoxedString(String data) { - this.data = data; - } + public record UnsetAnyTypeJsonSchema1BoxedString(String data) implements UnsetAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnsetAnyTypeJsonSchema1BoxedList extends UnsetAnyTypeJsonSchema1Boxed { - public final FrozenList<@Nullable Object> data; - private UnsetAnyTypeJsonSchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record UnsetAnyTypeJsonSchema1BoxedList(FrozenList<@Nullable Object> data) implements UnsetAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnsetAnyTypeJsonSchema1BoxedMap extends UnsetAnyTypeJsonSchema1Boxed { - public final FrozenMap<@Nullable Object> data; - private UnsetAnyTypeJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record UnsetAnyTypeJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) implements UnsetAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class UnsetAnyTypeJsonSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UnsetAnyTypeJsonSchema1BoxedList>, MapSchemaValidator, UnsetAnyTypeJsonSchema1BoxedMap> { + public static class UnsetAnyTypeJsonSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UnsetAnyTypeJsonSchema1BoxedList>, MapSchemaValidator, UnsetAnyTypeJsonSchema1BoxedMap> { private static @Nullable UnsetAnyTypeJsonSchema1 instance = null; protected UnsetAnyTypeJsonSchema1() { @@ -179,11 +155,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castItem = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(castItem); i += 1; @@ -214,11 +190,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castValue = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, castValue); } @@ -278,25 +254,50 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid public UnsetAnyTypeJsonSchema1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnsetAnyTypeJsonSchema1BoxedVoid(validate(arg, configuration)); } + @Override public UnsetAnyTypeJsonSchema1BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnsetAnyTypeJsonSchema1BoxedBoolean(validate(arg, configuration)); } + @Override public UnsetAnyTypeJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnsetAnyTypeJsonSchema1BoxedNumber(validate(arg, configuration)); } + @Override public UnsetAnyTypeJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnsetAnyTypeJsonSchema1BoxedString(validate(arg, configuration)); } + @Override public UnsetAnyTypeJsonSchema1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnsetAnyTypeJsonSchema1BoxedList(validate(arg, configuration)); } + @Override public UnsetAnyTypeJsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnsetAnyTypeJsonSchema1BoxedMap(validate(arg, configuration)); } + + @Override + public UnsetAnyTypeJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ValidationData.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ValidationData.java index d5c4f5de75a..1563757d83a 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ValidationData.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ValidationData.java @@ -5,7 +5,7 @@ import java.util.List; public record ValidationData( - JsonSchema schema, + JsonSchema schema, @Nullable Object arg, ValidationMetadata validationMetadata, @Nullable List containsPathToSchemas, @@ -14,7 +14,7 @@ public record ValidationData( @Nullable PathToSchemasMap knownPathToSchemas ) { public ValidationData( - JsonSchema schema, + JsonSchema schema, @Nullable Object arg, ValidationMetadata validationMetadata ) { diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ValidationMetadata.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ValidationMetadata.java index 8d83f3b6207..9756257f507 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ValidationMetadata.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ValidationMetadata.java @@ -13,8 +13,8 @@ public record ValidationMetadata( Set> seenClasses ) { - public boolean validationRanEarlier(JsonSchema schema) { - @Nullable Map validatedSchemas = validatedPathToSchemas.get(pathToItem); + public boolean validationRanEarlier(JsonSchema schema) { + @Nullable Map, Void> validatedSchemas = validatedPathToSchemas.get(pathToItem); if (validatedSchemas != null && validatedSchemas.containsKey(schema)) { return true; } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java index 0c618ead730..250d1e0f530 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java @@ -2,7 +2,8 @@ import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.schemas.MapJsonSchema; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.StringJsonSchema; import org.checkerframework.checker.nullness.qual.Nullable; import org.junit.Assert; @@ -11,73 +12,59 @@ import java.net.http.HttpResponse; import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; +import java.util.AbstractMap; import java.util.List; import java.util.Map; import java.util.concurrent.Flow; public final class RequestBodySerializerTest { + public sealed interface SealedMediaType permits ApplicationjsonMediaType, TextplainMediaType {} + public record ApplicationjsonMediaType(AnyTypeJsonSchema.AnyTypeJsonSchema1 schema) implements SealedMediaType {} + public record TextplainMediaType(StringJsonSchema.StringJsonSchema1 schema) implements SealedMediaType {} - public static abstract sealed class SealedRequestBody permits ApplicationjsonRequestBody, TextplainRequestBody {} - public static final class ApplicationjsonRequestBody extends SealedRequestBody implements GenericRequestBody<@Nullable Object> { - private final String contentType; - private final @Nullable Object body; - public ApplicationjsonRequestBody(@Nullable Object body) { - contentType = "application/json"; - this.body = body; - } + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody, TextplainRequestBody {} + public record ApplicationjsonRequestBody(AnyTypeJsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody<@Nullable Object> { @Override public String contentType() { - return contentType; - } - - @Override - public @Nullable Object body() { - return body; + return "application/json"; } } - public static final class TextplainRequestBody extends SealedRequestBody implements GenericRequestBody<@Nullable Object> { - private final String contentType; - private final @Nullable Object body; - public TextplainRequestBody(@Nullable Object body) { - contentType = "text/plain"; - this.body = body; - } + public record TextplainRequestBody(StringJsonSchema.StringJsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody<@Nullable Object> { @Override public String contentType() { - return contentType; - } - - @Override - public @Nullable Object body() { - return body; + return "text/plain"; } } - public static class MyRequestBodySerializer extends RequestBodySerializer { + public static class MyRequestBodySerializer extends RequestBodySerializer { public MyRequestBodySerializer() { - super(Map.of(), true); + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType(AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance())), + new AbstractMap.SimpleEntry<>("text/plain", new TextplainMediaType(StringJsonSchema.StringJsonSchema1.getInstance())) + ), + true); } public SerializedRequestBody serialize(SealedRequestBody requestBody) { if (requestBody instanceof ApplicationjsonRequestBody requestBody0) { - return serialize(requestBody0.contentType(), requestBody0.body()); + return serialize(requestBody0.contentType(), requestBody0.body().getData()); } else { TextplainRequestBody requestBody1 = (TextplainRequestBody) requestBody; - return serialize(requestBody1.contentType(), requestBody1.body()); + return serialize(requestBody1.contentType(), requestBody1.body().getData()); } } } @Test public void testContentTypeIsJson() { - var serializer = new MyRequestBodySerializer(); - Assert.assertTrue(serializer.contentTypeIsJson("application/json")); - Assert.assertTrue(serializer.contentTypeIsJson("application/json; charset=UTF-8")); - Assert.assertTrue(serializer.contentTypeIsJson("application/json-patch+json")); - Assert.assertTrue(serializer.contentTypeIsJson("application/geo+json")); + Assert.assertTrue(RequestBodySerializer.contentTypeIsJson("application/json")); + Assert.assertTrue(RequestBodySerializer.contentTypeIsJson("application/json; charset=UTF-8")); + Assert.assertTrue(RequestBodySerializer.contentTypeIsJson("application/json-patch+json")); + Assert.assertTrue(RequestBodySerializer.contentTypeIsJson("application/geo+json")); - Assert.assertFalse(serializer.contentTypeIsJson("application/octet-stream")); - Assert.assertFalse(serializer.contentTypeIsJson("text/plain")); + Assert.assertFalse(RequestBodySerializer.contentTypeIsJson("application/octet-stream")); + Assert.assertFalse(RequestBodySerializer.contentTypeIsJson("text/plain")); } static final class StringSubscriber implements Flow.Subscriber { @@ -101,63 +88,91 @@ private String getJsonBody(SerializedRequestBody requestBody) { var bodySubscriber = HttpResponse.BodySubscribers.ofString(StandardCharsets.UTF_8); var flowSubscriber = new StringSubscriber(bodySubscriber); requestBody.bodyPublisher.subscribe(flowSubscriber); - return bodySubscriber.getBody().toCompletableFuture().join(); } @Test public void testSerializeApplicationJson() { + SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); var serializer = new MyRequestBodySerializer(); String jsonBody; - SerializedRequestBody requestBody = serializer.serialize(new ApplicationjsonRequestBody(1)); + SerializedRequestBody requestBody = serializer.serialize( + new ApplicationjsonRequestBody( + AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(1, configuration) + ) + ); Assert.assertEquals("application/json", requestBody.contentType); jsonBody = getJsonBody(requestBody); Assert.assertEquals(jsonBody, "1"); - requestBody = serializer.serialize(new ApplicationjsonRequestBody(3.14)); + requestBody = serializer.serialize( + new ApplicationjsonRequestBody( + AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(3.14, configuration) + ) + ); jsonBody = getJsonBody(requestBody); Assert.assertEquals(jsonBody, "3.14"); - requestBody = serializer.serialize(new ApplicationjsonRequestBody(null)); + requestBody = serializer.serialize( + new ApplicationjsonRequestBody( + AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox((Void) null, configuration) + ) + ); jsonBody = getJsonBody(requestBody); Assert.assertEquals(jsonBody, "null"); - requestBody = serializer.serialize(new ApplicationjsonRequestBody(true)); + requestBody = serializer.serialize( + new ApplicationjsonRequestBody( + AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(true, configuration) + ) + ); jsonBody = getJsonBody(requestBody); Assert.assertEquals(jsonBody, "true"); - requestBody = serializer.serialize(new ApplicationjsonRequestBody(false)); + requestBody = serializer.serialize( + new ApplicationjsonRequestBody( + AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(false, configuration) + ) + ); jsonBody = getJsonBody(requestBody); Assert.assertEquals(jsonBody, "false"); - - requestBody = serializer.serialize(new ApplicationjsonRequestBody(List.of())); + requestBody = serializer.serialize( + new ApplicationjsonRequestBody( + AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(List.of(), configuration) + ) + ); jsonBody = getJsonBody(requestBody); Assert.assertEquals(jsonBody, "[]"); - requestBody = serializer.serialize(new ApplicationjsonRequestBody(Map.of())); + requestBody = serializer.serialize( + new ApplicationjsonRequestBody( + AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(Map.of(), configuration) + ) + ); jsonBody = getJsonBody(requestBody); Assert.assertEquals(jsonBody, "{}"); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); - MapJsonSchema.MapJsonSchema1 mapJsonSchema = MapJsonSchema.MapJsonSchema1.getInstance(); - var frozenMap = mapJsonSchema.validate(Map.of("k1", "v1", "k2", "v2"), configuration); - requestBody = serializer.serialize(new ApplicationjsonRequestBody(frozenMap)); + requestBody = serializer.serialize( + new ApplicationjsonRequestBody( + AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(Map.of("k1", "v1", "k2", "v2"), configuration) + ) + ); jsonBody = getJsonBody(requestBody); Assert.assertEquals(jsonBody, "{\"k2\":\"v2\",\"k1\":\"v1\"}"); } @Test public void testSerializeTextPlain() { + SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); var serializer = new MyRequestBodySerializer(); - SerializedRequestBody requestBody = serializer.serialize(new TextplainRequestBody("a")); + SerializedRequestBody requestBody = serializer.serialize( + new TextplainRequestBody( + StringJsonSchema.StringJsonSchema1.getInstance().validateAndBox("a", configuration) + ) + ); Assert.assertEquals("text/plain", requestBody.contentType); String textBody = getJsonBody(requestBody); Assert.assertEquals(textBody, "a"); - - Assert.assertThrows( - RuntimeException.class, - () -> serializer.serialize(new TextplainRequestBody(null)) - ); } } \ No newline at end of file diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java new file mode 100644 index 00000000000..23c6e53af60 --- /dev/null +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java @@ -0,0 +1,244 @@ +package org.openapijsonschematools.client.response; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.ToNumberPolicy; +import org.junit.Assert; +import org.junit.Test; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +import javax.net.ssl.SSLSession; +import java.net.URI; +import java.net.http.HttpClient; +import java.net.http.HttpHeaders; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.nio.charset.StandardCharsets; +import java.util.List; +import java.util.Map; +import java.util.Optional; +import java.util.function.BiPredicate; + +public class ResponseDeserializerTest { + private static final Gson gson = new GsonBuilder() + .setObjectToNumberStrategy(ToNumberPolicy.LONG_OR_DOUBLE) + .setNumberToNumberStrategy(ToNumberPolicy.LONG_OR_DOUBLE) + .create(); + public sealed interface SealedResponseBody permits ApplicationjsonBody, TextplainBody { } + + public record ApplicationjsonBody(AnyTypeJsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } + + public record TextplainBody(StringJsonSchema.StringJsonSchema1Boxed body) implements SealedResponseBody {} + + public sealed interface SealedMediaType permits ApplicationjsonMediatype, TextplainMediatype { } + + public record ApplicationjsonMediatype(AnyTypeJsonSchema.AnyTypeJsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediatype() { + this(AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public record TextplainMediatype(StringJsonSchema.StringJsonSchema1 schema) implements SealedMediaType, MediaType { + public TextplainMediatype() { + this(StringJsonSchema.StringJsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class MyResponseDeserializer extends ResponseDeserializer { + + public MyResponseDeserializer() { + super(Map.of("application/json", new ApplicationjsonMediatype(), "text/plain", new TextplainMediatype())); + } + + @Override + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediatype thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonBody(deserializedBody); + } else { + TextplainMediatype thisMediaType = (TextplainMediatype) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new TextplainBody(deserializedBody); + } + } + + @Override + protected Void getHeaders(HttpHeaders headers) { + return null; + } + } + + public static class BytesHttpResponse implements HttpResponse { + private final byte[] body; + private final HttpHeaders headers; + private final HttpRequest request; + private final URI uri; + private final HttpClient.Version version; + public BytesHttpResponse(byte[] body, String contentType) { + this.body = body; + BiPredicate headerFilter = (key, val) -> true; + headers = HttpHeaders.of(Map.of("Content-Type", List.of(contentType)), headerFilter); + uri = URI.create("https://abc.com/"); + request = HttpRequest.newBuilder().uri(uri).build(); + version = HttpClient.Version.HTTP_2; + } + + @Override + public int statusCode() { + return 202; + } + + @Override + public HttpRequest request() { + return request; + } + + @Override + public Optional> previousResponse() { + return Optional.empty(); + } + + @Override + public HttpHeaders headers() { + return headers; + } + + @Override + public byte[] body() { + return body; + } + + @Override + public Optional sslSession() { + return Optional.empty(); + } + + @Override + public URI uri() { + return uri; + } + + @Override + public HttpClient.Version version() { + return version; + } + } + + @Test + public void testDeserializeApplicationJsonNull() { + var deserializer = new MyResponseDeserializer(); + byte[] bodyBytes = gson.toJson(null).getBytes(StandardCharsets.UTF_8); + BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); + SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + ApiResponse apiResponse = deserializer.deserialize(response, configuration); + Assert.assertEquals(response, apiResponse.response()); + if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { + throw new RuntimeException("body must be type ApplicationjsonBody"); + } + if (!(jsonBody.body() instanceof AnyTypeJsonSchema.AnyTypeJsonSchema1BoxedVoid boxedVoid)) { + throw new RuntimeException("body must be type AnyTypeJsonSchema1BoxedVoid"); + } + Assert.assertNull(boxedVoid.data()); + } + + @Test + public void testDeserializeApplicationJsonTrue() { + var deserializer = new MyResponseDeserializer(); + byte[] bodyBytes = gson.toJson(true).getBytes(StandardCharsets.UTF_8); + BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); + SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + ApiResponse apiResponse = deserializer.deserialize(response, configuration); + Assert.assertEquals(response, apiResponse.response()); + if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { + throw new RuntimeException("body must be type ApplicationjsonBody"); + } + if (!(jsonBody.body() instanceof AnyTypeJsonSchema.AnyTypeJsonSchema1BoxedBoolean boxedBoolean)) { + throw new RuntimeException("body must be type AnyTypeJsonSchema1BoxedBoolean"); + } + Assert.assertTrue(boxedBoolean.data()); + } + + @Test + public void testDeserializeApplicationJsonFalse() { + var deserializer = new MyResponseDeserializer(); + byte[] bodyBytes = gson.toJson(false).getBytes(StandardCharsets.UTF_8); + BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); + SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + ApiResponse apiResponse = deserializer.deserialize(response, configuration); + Assert.assertEquals(response, apiResponse.response()); + if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { + throw new RuntimeException("body must be type ApplicationjsonBody"); + } + if (!(jsonBody.body() instanceof AnyTypeJsonSchema.AnyTypeJsonSchema1BoxedBoolean boxedBoolean)) { + throw new RuntimeException("body must be type AnyTypeJsonSchema1BoxedBoolean"); + } + Assert.assertFalse(boxedBoolean.data()); + } + + @Test + public void testDeserializeApplicationJsonInt() { + var deserializer = new MyResponseDeserializer(); + byte[] bodyBytes = gson.toJson(1).getBytes(StandardCharsets.UTF_8); + BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); + SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + ApiResponse apiResponse = deserializer.deserialize(response, configuration); + Assert.assertEquals(response, apiResponse.response()); + if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { + throw new RuntimeException("body must be type ApplicationjsonBody"); + } + if (!(jsonBody.body() instanceof AnyTypeJsonSchema.AnyTypeJsonSchema1BoxedNumber boxedNumber)) { + throw new RuntimeException("body must be type AnyTypeJsonSchema1BoxedNumber"); + } + Assert.assertEquals(boxedNumber.data(), 1L); + } + + @Test + public void testDeserializeApplicationJsonFloat() { + var deserializer = new MyResponseDeserializer(); + byte[] bodyBytes = gson.toJson(3.14).getBytes(StandardCharsets.UTF_8); + BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); + SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + ApiResponse apiResponse = deserializer.deserialize(response, configuration); + Assert.assertEquals(response, apiResponse.response()); + if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { + throw new RuntimeException("body must be type ApplicationjsonBody"); + } + if (!(jsonBody.body() instanceof AnyTypeJsonSchema.AnyTypeJsonSchema1BoxedNumber boxedNumber)) { + throw new RuntimeException("body must be type AnyTypeJsonSchema1BoxedNumber"); + } + Assert.assertEquals(boxedNumber.data(), 3.14); + } + + @Test + public void testDeserializeApplicationJsonString() { + var deserializer = new MyResponseDeserializer(); + byte[] bodyBytes = gson.toJson("a").getBytes(StandardCharsets.UTF_8); + BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); + SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + ApiResponse apiResponse = deserializer.deserialize(response, configuration); + Assert.assertEquals(response, apiResponse.response()); + if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { + throw new RuntimeException("body must be type ApplicationjsonBody"); + } + if (!(jsonBody.body() instanceof AnyTypeJsonSchema.AnyTypeJsonSchema1BoxedString boxedString)) { + throw new RuntimeException("body must be type AnyTypeJsonSchema1BoxedString"); + } + Assert.assertEquals(boxedString.data(), "a"); + } +} \ No newline at end of file diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java index a5cb7cd0519..42dfcabf0d0 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java @@ -31,16 +31,12 @@ public class ArrayTypeSchemaTest { new LinkedHashSet<>() ); - public static abstract sealed class ArrayWithItemsSchemaBoxed permits ArrayWithItemsSchemaBoxedList { + public sealed interface ArrayWithItemsSchemaBoxed permits ArrayWithItemsSchemaBoxedList { } - public static final class ArrayWithItemsSchemaBoxedList extends ArrayWithItemsSchemaBoxed { - public final FrozenList data; - private ArrayWithItemsSchemaBoxedList(FrozenList data) { - this.data = data; - } + public record ArrayWithItemsSchemaBoxedList(FrozenList data) implements ArrayWithItemsSchemaBoxed { } - public static class ArrayWithItemsSchema extends JsonSchema implements ListSchemaValidator, ArrayWithItemsSchemaBoxedList> { + public static class ArrayWithItemsSchema extends JsonSchema implements ListSchemaValidator, ArrayWithItemsSchemaBoxedList> { public ArrayWithItemsSchema() { super(new JsonSchemaInfo() .type(Set.of(List.class)) @@ -55,11 +51,11 @@ public FrozenList getNewInstance(List arg, List pathToItem, P for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castItem = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(castItem instanceof String)) { throw new InvalidTypeException("Instantiated type of item is invalid"); @@ -100,6 +96,14 @@ public Object getNewInstance(@Nullable Object arg, List pathToItem, Path } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + + @Override + public ArrayWithItemsSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + if (arg instanceof List listArg) { + return new ArrayWithItemsSchemaBoxedList(validate(listArg, configuration)); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class ArrayWithOutputClsSchemaList extends FrozenList { @@ -112,15 +116,11 @@ public static ArrayWithOutputClsSchemaList of(List arg, SchemaConfigurat } } - public static abstract sealed class ArrayWithOutputClsSchemaBoxed permits ArrayWithOutputClsSchemaBoxedList { + public sealed interface ArrayWithOutputClsSchemaBoxed permits ArrayWithOutputClsSchemaBoxedList { } - public static final class ArrayWithOutputClsSchemaBoxedList extends ArrayWithOutputClsSchemaBoxed { - public final ArrayWithOutputClsSchemaList data; - private ArrayWithOutputClsSchemaBoxedList(ArrayWithOutputClsSchemaList data) { - this.data = data; - } + public record ArrayWithOutputClsSchemaBoxedList(ArrayWithOutputClsSchemaList data) implements ArrayWithOutputClsSchemaBoxed { } - public static class ArrayWithOutputClsSchema extends JsonSchema implements ListSchemaValidator { + public static class ArrayWithOutputClsSchema extends JsonSchema implements ListSchemaValidator { public ArrayWithOutputClsSchema() { super(new JsonSchemaInfo() .type(Set.of(List.class)) @@ -136,11 +136,11 @@ public ArrayWithOutputClsSchemaList getNewInstance(List arg, List pat for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castItem = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(castItem instanceof String)) { throw new InvalidTypeException("Instantiated type of item is invalid"); @@ -182,6 +182,14 @@ public Object getNewInstance(@Nullable Object arg, List pathToItem, Path } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + + @Override + public ArrayWithOutputClsSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + if (arg instanceof List listArg) { + return new ArrayWithOutputClsSchemaBoxedList(validate(listArg, configuration)); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } @Test diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ObjectTypeSchemaTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ObjectTypeSchemaTest.java index acd412b00d1..02729b0f046 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ObjectTypeSchemaTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ObjectTypeSchemaTest.java @@ -33,15 +33,11 @@ public class ObjectTypeSchemaTest { new LinkedHashSet<>() ); - public static abstract sealed class ObjectWithPropsSchemaBoxed permits ObjectWithPropsSchemaBoxedMap { + public sealed interface ObjectWithPropsSchemaBoxed permits ObjectWithPropsSchemaBoxedMap { } - public static final class ObjectWithPropsSchemaBoxedMap extends ObjectWithPropsSchemaBoxed { - public final FrozenMap<@Nullable Object> data; - private ObjectWithPropsSchemaBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ObjectWithPropsSchemaBoxedMap(FrozenMap<@Nullable Object> data) implements ObjectWithPropsSchemaBoxed { } - public static class ObjectWithPropsSchema extends JsonSchema implements MapSchemaValidator, ObjectWithPropsSchemaBoxedMap> { + public static class ObjectWithPropsSchema extends JsonSchema implements MapSchemaValidator, ObjectWithPropsSchemaBoxedMap> { private static @Nullable ObjectWithPropsSchema instance = null; private ObjectWithPropsSchema() { super(new JsonSchemaInfo() @@ -72,11 +68,11 @@ public static ObjectWithPropsSchema getInstance() { List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castValue = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, castValue); } @@ -113,18 +109,22 @@ public Object getNewInstance(@Nullable Object arg, List pathToItem, Path } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + + @Override + public ObjectWithPropsSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + if (arg instanceof Map mapArg) { + return new ObjectWithPropsSchemaBoxedMap(validate(mapArg, configuration)); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class ObjectWithAddpropsSchemaBoxed permits ObjectWithAddpropsSchemaBoxedMap { + public sealed interface ObjectWithAddpropsSchemaBoxed permits ObjectWithAddpropsSchemaBoxedMap { } - public static final class ObjectWithAddpropsSchemaBoxedMap extends ObjectWithAddpropsSchemaBoxed { - public final FrozenMap data; - private ObjectWithAddpropsSchemaBoxedMap(FrozenMap data) { - this.data = data; - } + public record ObjectWithAddpropsSchemaBoxedMap(FrozenMap data) implements ObjectWithAddpropsSchemaBoxed { } - public static class ObjectWithAddpropsSchema extends JsonSchema implements MapSchemaValidator, ObjectWithAddpropsSchemaBoxedMap> { + public static class ObjectWithAddpropsSchema extends JsonSchema implements MapSchemaValidator, ObjectWithAddpropsSchemaBoxedMap> { private static @Nullable ObjectWithAddpropsSchema instance = null; private ObjectWithAddpropsSchema() { super(new JsonSchemaInfo() @@ -152,11 +152,11 @@ public FrozenMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castValue = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(castValue instanceof String)) { throw new InvalidTypeException("Invalid type for property value"); @@ -189,6 +189,14 @@ public ObjectWithAddpropsSchemaBoxedMap validateAndBox(Map arg, SchemaConf throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + @Override + public ObjectWithAddpropsSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + if (arg instanceof Map mapArg) { + return new ObjectWithAddpropsSchemaBoxedMap(validate(mapArg, configuration)); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override public Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { if (arg instanceof Map) { @@ -198,15 +206,11 @@ public Object getNewInstance(@Nullable Object arg, List pathToItem, Path } } - public static abstract sealed class ObjectWithPropsAndAddpropsSchemaBoxed permits ObjectWithPropsAndAddpropsSchemaBoxedMap { + public sealed interface ObjectWithPropsAndAddpropsSchemaBoxed permits ObjectWithPropsAndAddpropsSchemaBoxedMap { } - public static final class ObjectWithPropsAndAddpropsSchemaBoxedMap extends ObjectWithPropsAndAddpropsSchemaBoxed { - public final FrozenMap<@Nullable Object> data; - private ObjectWithPropsAndAddpropsSchemaBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ObjectWithPropsAndAddpropsSchemaBoxedMap(FrozenMap<@Nullable Object> data) implements ObjectWithPropsAndAddpropsSchemaBoxed { } - public static class ObjectWithPropsAndAddpropsSchema extends JsonSchema implements MapSchemaValidator, ObjectWithPropsAndAddpropsSchemaBoxedMap> { + public static class ObjectWithPropsAndAddpropsSchema extends JsonSchema implements MapSchemaValidator, ObjectWithPropsAndAddpropsSchemaBoxedMap> { private static @Nullable ObjectWithPropsAndAddpropsSchema instance = null; private ObjectWithPropsAndAddpropsSchema() { super(new JsonSchemaInfo() @@ -237,11 +241,11 @@ public static ObjectWithPropsAndAddpropsSchema getInstance() { List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castValue = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, castValue); } @@ -271,6 +275,14 @@ public ObjectWithPropsAndAddpropsSchemaBoxedMap validateAndBox(Map arg, Sc throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + @Override + public ObjectWithPropsAndAddpropsSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + if (arg instanceof Map mapArg) { + return new ObjectWithPropsAndAddpropsSchemaBoxedMap(validate(mapArg, configuration)); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override public Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { if (arg instanceof Map) { @@ -290,15 +302,11 @@ public static ObjectWithOutputTypeSchemaMap of(Map arg, SchemaCo } } - public static abstract sealed class ObjectWithOutputTypeSchemaBoxed permits ObjectWithOutputTypeSchemaBoxedMap { + public sealed interface ObjectWithOutputTypeSchemaBoxed permits ObjectWithOutputTypeSchemaBoxedMap { } - public static final class ObjectWithOutputTypeSchemaBoxedMap extends ObjectWithOutputTypeSchemaBoxed { - public final ObjectWithOutputTypeSchemaMap data; - private ObjectWithOutputTypeSchemaBoxedMap(ObjectWithOutputTypeSchemaMap data) { - this.data = data; - } + public record ObjectWithOutputTypeSchemaBoxedMap(ObjectWithOutputTypeSchemaMap data) implements ObjectWithOutputTypeSchemaBoxed { } - public static class ObjectWithOutputTypeSchema extends JsonSchema implements MapSchemaValidator { + public static class ObjectWithOutputTypeSchema extends JsonSchema implements MapSchemaValidator { private static @Nullable ObjectWithOutputTypeSchema instance = null; public ObjectWithOutputTypeSchema() { super(new JsonSchemaInfo() @@ -328,11 +336,11 @@ public ObjectWithOutputTypeSchemaMap getNewInstance(Map arg, List List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castValue = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, castValue); } @@ -362,6 +370,14 @@ public ObjectWithOutputTypeSchemaBoxedMap validateAndBox(Map arg, SchemaCo throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + @Override + public ObjectWithOutputTypeSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + if (arg instanceof Map mapArg) { + return new ObjectWithOutputTypeSchemaBoxedMap(validate(mapArg, configuration)); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override public Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { if (arg instanceof FrozenMap) { diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidatorTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidatorTest.java index 5bf7ee3b6b5..40a01c9983d 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidatorTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidatorTest.java @@ -18,7 +18,10 @@ import java.util.Set; public class AdditionalPropertiesValidatorTest { - public static class ObjectWithPropsSchema extends JsonSchema { + public sealed interface ObjectWithPropsSchemaBoxed permits ObjectWithPropsSchemaBoxedMap {} + public record ObjectWithPropsSchemaBoxedMap() implements ObjectWithPropsSchemaBoxed {} + + public static class ObjectWithPropsSchema extends JsonSchema { private static @Nullable ObjectWithPropsSchema instance = null; private ObjectWithPropsSchema() { super(new JsonSchemaInfo() @@ -53,6 +56,11 @@ public Object getNewInstance(@Nullable Object arg, List pathToItem, Path } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + + @Override + public ObjectWithPropsSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + return new ObjectWithPropsSchemaBoxedMap(); + } } @SuppressWarnings("nullness") @@ -88,7 +96,7 @@ public void testCorrectPropertySucceeds() { List expectedPathToItem = new ArrayList<>(); expectedPathToItem.add("args[0]"); expectedPathToItem.add("someAddProp"); - LinkedHashMap expectedClasses = new LinkedHashMap<>(); + LinkedHashMap, Void> expectedClasses = new LinkedHashMap<>(); StringJsonSchema.StringJsonSchema1 schema = JsonSchemaFactory.getInstance(StringJsonSchema.StringJsonSchema1.class); expectedClasses.put(schema, null); PathToSchemasMap expectedPathToSchemas = new PathToSchemasMap(); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/ItemsValidatorTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/ItemsValidatorTest.java index f9f01dcb28a..e0e4a0c859e 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/ItemsValidatorTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/ItemsValidatorTest.java @@ -21,7 +21,10 @@ private void assertNull(@Nullable Object object) { Assert.assertNull(object); } - public static class ArrayWithItemsSchema extends JsonSchema { + public sealed interface ArrayWithItemsSchemaBoxed permits ArrayWithItemsSchemaBoxedList {} + public record ArrayWithItemsSchemaBoxedList() implements ArrayWithItemsSchemaBoxed {} + + public static class ArrayWithItemsSchema extends JsonSchema { public ArrayWithItemsSchema() { super(new JsonSchemaInfo() .type(Set.of(List.class)) @@ -44,6 +47,11 @@ public Object getNewInstance(@Nullable Object arg, List pathToItem, Path } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + + @Override + public ArrayWithItemsSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + return new ArrayWithItemsSchemaBoxedList(); + } } @Test @@ -72,7 +80,7 @@ public void testCorrectItemsSucceeds() { List expectedPathToItem = new ArrayList<>(); expectedPathToItem.add("args[0]"); expectedPathToItem.add(0); - LinkedHashMap expectedClasses = new LinkedHashMap<>(); + LinkedHashMap, Void> expectedClasses = new LinkedHashMap<>(); StringJsonSchema.StringJsonSchema1 schema = JsonSchemaFactory.getInstance(StringJsonSchema.StringJsonSchema1.class); expectedClasses.put(schema, null); PathToSchemasMap expectedPathToSchemas = new PathToSchemasMap(); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaTest.java index 525222b9ad7..8a14df7edd6 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaTest.java @@ -13,39 +13,49 @@ import java.util.List; import java.util.Set; -class SomeSchema extends JsonSchema { - private static @Nullable SomeSchema instance = null; - protected SomeSchema() { - super(new JsonSchemaInfo() - .type(Set.of(String.class)) - ); - } +sealed interface SomeSchemaBoxed permits SomeSchemaBoxedString {} +record SomeSchemaBoxedString() implements SomeSchemaBoxed {} + +public class JsonSchemaTest { + sealed interface SomeSchemaBoxed permits SomeSchemaBoxedString {} + record SomeSchemaBoxedString() implements SomeSchemaBoxed {} - public static SomeSchema getInstance() { - if (instance == null) { - instance = new SomeSchema(); + static class SomeSchema extends JsonSchema { + private static @Nullable SomeSchema instance = null; + protected SomeSchema() { + super(new JsonSchemaInfo() + .type(Set.of(String.class)) + ); } - return instance; - } - @Override - public Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof String) { - return arg; + public static SomeSchema getInstance() { + if (instance == null) { + instance = new SomeSchema(); + } + return instance; } - throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { - if (arg instanceof String) { - return arg; + @Override + public Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof String) { + return arg; + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } - throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } -} -public class JsonSchemaTest { + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + if (arg instanceof String) { + return arg; + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + + @Override + public SomeSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + return new SomeSchemaBoxedString(); + } + } @Test public void testValidateSucceeds() { @@ -63,7 +73,7 @@ public void testValidateSucceeds() { validationMetadata ); PathToSchemasMap expectedPathToSchemas = new PathToSchemasMap(); - LinkedHashMap validatedClasses = new LinkedHashMap<>(); + LinkedHashMap, Void> validatedClasses = new LinkedHashMap<>(); validatedClasses.put(schema, null); expectedPathToSchemas.put(pathToItem, validatedClasses); Assert.assertEquals(pathToSchemas, expectedPathToSchemas); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidatorTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidatorTest.java index 5a6edbe7299..492f45af0c7 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidatorTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidatorTest.java @@ -17,7 +17,10 @@ import java.util.Set; public class PropertiesValidatorTest { - public static class ObjectWithPropsSchema extends JsonSchema { + public sealed interface ObjectWithPropsSchemaBoxed permits ObjectWithPropsSchemaBoxedMap {} + public record ObjectWithPropsSchemaBoxedMap() implements ObjectWithPropsSchemaBoxed {} + + public static class ObjectWithPropsSchema extends JsonSchema { private ObjectWithPropsSchema() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) @@ -43,6 +46,11 @@ public Object getNewInstance(@Nullable Object arg, List pathToItem, Path } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + + @Override + public ObjectWithPropsSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + return new ObjectWithPropsSchemaBoxedMap(); + } } @SuppressWarnings("nullness") @@ -76,7 +84,7 @@ public void testCorrectPropertySucceeds() { List expectedPathToItem = new ArrayList<>(); expectedPathToItem.add("args[0]"); expectedPathToItem.add("someString"); - LinkedHashMap expectedClasses = new LinkedHashMap<>(); + LinkedHashMap, Void> expectedClasses = new LinkedHashMap<>(); expectedClasses.put(JsonSchemaFactory.getInstance(StringJsonSchema.StringJsonSchema1.class), null); PathToSchemasMap expectedPathToSchemas = new PathToSchemasMap(); expectedPathToSchemas.put(expectedPathToItem, expectedClasses); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/RequiredValidatorTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/RequiredValidatorTest.java index d2264b9a967..65ff030d74b 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/RequiredValidatorTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/RequiredValidatorTest.java @@ -15,7 +15,10 @@ import java.util.Set; public class RequiredValidatorTest { - public static class ObjectWithRequiredSchema extends JsonSchema { + public sealed interface ObjectWithRequiredSchemaBoxed permits ObjectWithRequiredSchemaBoxedMap {} + public record ObjectWithRequiredSchemaBoxedMap() implements ObjectWithRequiredSchemaBoxed {} + + public static class ObjectWithRequiredSchema extends JsonSchema { private ObjectWithRequiredSchema() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) @@ -39,6 +42,11 @@ public Object getNewInstance(@Nullable Object arg, List pathToItem, Path } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + + @Override + public ObjectWithRequiredSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + return new ObjectWithRequiredSchemaBoxedMap(); + } } @SuppressWarnings("nullness") diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post.md index f312006f588..452947dcaee 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md index 95bb88f6efa..aad5323a5ed 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md index 29d067da7f4..715f3f94e1a 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.md index 3d963691b62..abc3c6bdd11 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.md index 02f06c8e2fd..720d7f05d5e 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_request_body/post.md index d8a24db91a3..78505556b3c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_simple_types_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_simple_types_request_body/post.md index 0a01c74cdef..8b67353876f 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_simple_types_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_simple_types_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_base_schema_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_base_schema_request_body/post.md index 874d4202513..35333e788c1 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_base_schema_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_base_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_one_empty_schema_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_one_empty_schema_request_body/post.md index 8117298865b..e6ca781c9af 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_one_empty_schema_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_one_empty_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.md index 646a46f821c..b68b83d4cbe 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.md index c365d970a7d..156d76bb4a2 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.md index b22331cb592..bafeb9fea55 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_complex_types_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_complex_types_request_body/post.md index 33f97e54a7d..41883bdf1a6 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_complex_types_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_complex_types_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_request_body/post.md index f7b5e3192df..227d5d1f856 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_with_base_schema_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_with_base_schema_request_body/post.md index 4c2144060f2..7abca91a35d 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_with_base_schema_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_with_base_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.md index 664c433e340..0a4a5add556 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_array_type_matches_arrays_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_array_type_matches_arrays_request_body/post.md index 5a8aaeaf958..8e12e3a72b4 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_array_type_matches_arrays_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_array_type_matches_arrays_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_boolean_type_matches_booleans_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_boolean_type_matches_booleans_request_body/post.md index 8ba76b13aea..82f3e66374d 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_boolean_type_matches_booleans_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_boolean_type_matches_booleans_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_int_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_int_request_body/post.md index abfc5dc782b..a40a8ce23e3 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_int_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_int_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_number_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_number_request_body/post.md index c3dfeb70aff..441c12326a5 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_number_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_number_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_small_number_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_small_number_request_body/post.md index a30753fa279..fcb768938d5 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_small_number_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_small_number_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_date_time_format_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_date_time_format_request_body/post.md index a94bc64b45b..7255cf3bfa2 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_date_time_format_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_date_time_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_email_format_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_email_format_request_body/post.md index 879b019c0e8..c726b9e6b9b 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_email_format_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_email_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.md index 3cb6bb40948..3b3f7e0a34b 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.md index 585fa7bcd29..4be7a36946a 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_escaped_characters_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_escaped_characters_request_body/post.md index 367d822ce51..0e802f71b52 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_escaped_characters_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_escaped_characters_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.md index fdebcdb5e8b..bf57e558da8 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.md index c29caa01a4f..798c68200b7 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enums_in_properties_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enums_in_properties_request_body/post.md index 3b98655662a..279a6b6c0bc 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enums_in_properties_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enums_in_properties_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_forbidden_property_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_forbidden_property_request_body/post.md index 9f6b6d47e94..27bdde07532 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_forbidden_property_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_forbidden_property_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_hostname_format_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_hostname_format_request_body/post.md index 906a0d48a8f..99c1ad882a1 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_hostname_format_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_hostname_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_integer_type_matches_integers_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_integer_type_matches_integers_request_body/post.md index 67742a752ed..c375e0f315a 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_integer_type_matches_integers_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_integer_type_matches_integers_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.md index 76a914d85cd..3f1439aeb39 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_invalid_string_value_for_default_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_invalid_string_value_for_default_request_body/post.md index 9fc35ff3ca9..b2ab42e3ae6 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_invalid_string_value_for_default_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_invalid_string_value_for_default_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ipv4_format_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ipv4_format_request_body/post.md index c3b02f62215..9ced51565ba 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ipv4_format_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ipv4_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ipv6_format_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ipv6_format_request_body/post.md index 582fccd68cb..ecbc46871a1 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ipv6_format_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ipv6_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_json_pointer_format_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_json_pointer_format_request_body/post.md index 7568f619f63..73200b26eb0 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_json_pointer_format_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_json_pointer_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maximum_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maximum_validation_request_body/post.md index fd36d29c7a3..4aebf936df4 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maximum_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maximum_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.md index 2f08e39701f..bce10ead621 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxitems_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxitems_validation_request_body/post.md index fcf803c693a..5bbb95306f1 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxitems_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxitems_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxlength_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxlength_validation_request_body/post.md index 0584da67055..d524db74521 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxlength_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxlength_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.md index 5d8aaf47802..e06dd72fac2 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxproperties_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxproperties_validation_request_body/post.md index ed12e4e58a1..9b79a527c39 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxproperties_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxproperties_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minimum_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minimum_validation_request_body/post.md index 7b4705230e8..9513b91e00c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minimum_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minimum_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.md index 9f55b8327a4..57fa863e61a 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minitems_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minitems_validation_request_body/post.md index 71b3ce83f04..735214abe0e 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minitems_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minitems_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minlength_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minlength_validation_request_body/post.md index f856f019042..5153bde2fb8 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minlength_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minlength_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minproperties_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minproperties_validation_request_body/post.md index 3d02d50edd2..08dd79c9542 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minproperties_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minproperties_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md index 9dfb6bae67f..395bf6e2206 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.md index 7e8b7a3693a..25fab29957a 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_items_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_items_request_body/post.md index 5f95380db08..95183337660 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_items_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_items_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md index 9b85d89b160..d1a60733236 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_not_more_complex_schema_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_not_more_complex_schema_request_body/post.md index 526f9766094..0780b68689b 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_not_more_complex_schema_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_not_more_complex_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_not_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_not_request_body/post.md index f84e41a222b..3ef2fd8044d 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_not_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_not_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nul_characters_in_strings_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nul_characters_in_strings_request_body/post.md index fcb18059c74..6993831882a 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nul_characters_in_strings_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nul_characters_in_strings_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.md index f0407d66210..9314ac6930d 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_number_type_matches_numbers_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_number_type_matches_numbers_request_body/post.md index d63b60c0bdb..bd7e8316d23 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_number_type_matches_numbers_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_number_type_matches_numbers_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_object_properties_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_object_properties_validation_request_body/post.md index 9feda9546c6..6be8150bab4 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_object_properties_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_object_properties_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_object_type_matches_objects_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_object_type_matches_objects_request_body/post.md index 278955397cd..8d15c8a9d92 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_object_type_matches_objects_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_object_type_matches_objects_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_complex_types_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_complex_types_request_body/post.md index dd031f2605a..57316145ee4 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_complex_types_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_complex_types_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_request_body/post.md index 63934610975..b2c2616f755 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_base_schema_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_base_schema_request_body/post.md index 14474108fbd..da91db6d79c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_base_schema_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_base_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_empty_schema_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_empty_schema_request_body/post.md index a2bdcf86c7d..52679cc7d82 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_empty_schema_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_empty_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_required_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_required_request_body/post.md index 80d854e7eff..5293702fab6 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_required_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_required_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_pattern_is_not_anchored_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_pattern_is_not_anchored_request_body/post.md index a6a269f1aa8..171ee2163c6 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_pattern_is_not_anchored_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_pattern_is_not_anchored_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_pattern_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_pattern_validation_request_body/post.md index 2b65e49f06f..25565ab2019 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_pattern_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_pattern_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md index 0109a423ba3..0851dab520c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md index ad9024103e1..384aa8b71b6 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_additionalproperties_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_additionalproperties_request_body/post.md index fc06e65a94b..ccf242394f1 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_additionalproperties_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_additionalproperties_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_allof_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_allof_request_body/post.md index b615be824fc..3f75cbdc899 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_allof_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_allof_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_anyof_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_anyof_request_body/post.md index 6fe1cd79b59..6b116102374 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_anyof_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_anyof_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_items_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_items_request_body/post.md index 277bc05982f..0441ec83f45 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_items_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_items_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_not_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_not_request_body/post.md index 26a9d8c05a8..76adf521bf3 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_not_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_not_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_oneof_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_oneof_request_body/post.md index 9b35bb34df3..ad1726e4970 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_oneof_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_oneof_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_property_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_property_request_body/post.md index 4da5bb2fd84..77384776acc 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_property_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_property_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_default_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_default_validation_request_body/post.md index fb32df32606..d9be7b26366 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_default_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_default_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_validation_request_body/post.md index 5fc5aaa3826..2002140d78a 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_with_empty_array_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_with_empty_array_request_body/post.md index d1917bcb221..106a25fd307 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_with_empty_array_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_with_empty_array_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_with_escaped_characters_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_with_escaped_characters_request_body/post.md index 610ddd56ed3..95dc28188ec 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_with_escaped_characters_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_with_escaped_characters_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_simple_enum_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_simple_enum_validation_request_body/post.md index b3f6e45925d..c87b9dd9735 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_simple_enum_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_simple_enum_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_string_type_matches_strings_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_string_type_matches_strings_request_body/post.md index 074b8897c69..5ef3be1d3fa 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_string_type_matches_strings_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_string_type_matches_strings_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.md index 9eaa98dd9f5..cd8d07f8def 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uniqueitems_false_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uniqueitems_false_validation_request_body/post.md index bbf28e27903..51bf95fa43e 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uniqueitems_false_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uniqueitems_false_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uniqueitems_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uniqueitems_validation_request_body/post.md index 93d2f0fdb0b..84a362bee96 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uniqueitems_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uniqueitems_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_format_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_format_request_body/post.md index 4dfc24b9078..3f11201f761 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_format_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_reference_format_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_reference_format_request_body/post.md index 5c728aa410c..9a4b29c95c8 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_reference_format_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_reference_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_template_format_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_template_format_request_body/post.md index 180e3ca0df7..5e6ea36a99e 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_template_format_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_template_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.md index bd1196899f6..c8adba29d89 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidateDict](../../components/schema/additionalproperties_allows_a_schema_which_should_validate.md#additionalpropertiesallowsaschemawhichshouldvalidatedict) | | +[body](#_200-body) | [additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidateDict](../../components/schema/additionalproperties_allows_a_schema_which_should_validate.md#additionalpropertiesallowsaschemawhichshouldvalidatedict) | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md index 07083960d51..25d8f9d9a74 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDict](../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDict](../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md index 04bde18e729..e99039e4c82 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDict](../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdict) | | +[body](#_200-body) | [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDict](../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdict) | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.md index 68c0cda5fdc..d30181c3d78 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicatorsDict](../../components/schema/additionalproperties_should_not_look_in_applicators.md#additionalpropertiesshouldnotlookinapplicatorsdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | [additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicatorsDict](../../components/schema/additionalproperties_should_not_look_in_applicators.md#additionalpropertiesshouldnotlookinapplicatorsdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.md index 47030a2a18a..7cd6a002c64 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_response_body_for_content_types/post.md index ecb1c4c6895..a7906664e80 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.md index 0704807b953..370aaa655f5 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.md index d1a08bab46a..712e295f404 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [allof_with_base_schema.AllofWithBaseSchemaDict](../../components/schema/allof_with_base_schema.md#allofwithbaseschemadict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | [allof_with_base_schema.AllofWithBaseSchemaDict](../../components/schema/allof_with_base_schema.md#allofwithbaseschemadict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.md index f5478360d53..748652cce84 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.md index 4b7ecfdee21..6c84f71c185 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.md index f3d05d5b297..617ab4ee53a 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.md index 55efb17dc6d..cc18665e9fe 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.md index 2ffbe705bc7..95f4bcf18ef 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_response_body_for_content_types/post.md index 83d0e41e710..3d30759415d 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.md index ef42615db00..de951c2122d 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | str | | +[body](#_200-body) | str | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.md index 699da1d4991..e0cf0438e35 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.md index 0afe2389f97..93628e239d1 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [array_type_matches_arrays.ArrayTypeMatchesArraysTuple](../../components/schema/array_type_matches_arrays.md#arraytypematchesarraystuple) | | +[body](#_200-body) | [array_type_matches_arrays.ArrayTypeMatchesArraysTuple](../../components/schema/array_type_matches_arrays.md#arraytypematchesarraystuple) | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.md index f9373d2dded..22227cb09f4 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | bool | | +[body](#_200-body) | bool | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_int_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_int_response_body_for_content_types/post.md index 21e489b8ead..4fbb085574d 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_int_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_int_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_number_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_number_response_body_for_content_types/post.md index 03c1ef622ef..812d57126ce 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_number_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_number_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md index 9b2fbafcf1a..cc4249b9ec4 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md index 0384cee6fd8..36449d3a92b 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_email_format_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_email_format_response_body_for_content_types/post.md index e3655122704..625ad5c58b3 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_email_format_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_email_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.md index 1f46d7858e0..d43c30418ed 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | float, int | | +[body](#_200-body) | float, int | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.md index 77cc20dba1c..538fb724ae5 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | float, int | | +[body](#_200-body) | float, int | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.md index 6a6f86ee7b5..940d6b763c9 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | typing.Literal["foo\nbar", "foo\rbar"] | | +[body](#_200-body) | typing.Literal["foo\nbar", "foo\rbar"] | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.md index ecee92a82ef..5cc3bed34f4 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | typing.Literal[False] | | +[body](#_200-body) | typing.Literal[False] | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.md index 4fc607b4218..d8a5c1286b0 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | typing.Literal[True] | | +[body](#_200-body) | typing.Literal[True] | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.md index 0f9751af197..f8a34267d45 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [enums_in_properties.EnumsInPropertiesDict](../../components/schema/enums_in_properties.md#enumsinpropertiesdict) | | +[body](#_200-body) | [enums_in_properties.EnumsInPropertiesDict](../../components/schema/enums_in_properties.md#enumsinpropertiesdict) | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_forbidden_property_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_forbidden_property_response_body_for_content_types/post.md index e782eee6871..482d5320507 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_forbidden_property_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_forbidden_property_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [forbidden_property.ForbiddenPropertyDict](../../components/schema/forbidden_property.md#forbiddenpropertydict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | [forbidden_property.ForbiddenPropertyDict](../../components/schema/forbidden_property.md#forbiddenpropertydict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_hostname_format_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_hostname_format_response_body_for_content_types/post.md index 54e96e04d29..b439972043e 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_hostname_format_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_hostname_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.md index 2e7e049149e..f71eead999c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | int | | +[body](#_200-body) | int | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.md index 19124c89afc..daa9f01efe7 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | int | | +[body](#_200-body) | int | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.md index b57190613a8..406d5542e1f 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [invalid_string_value_for_default.InvalidStringValueForDefaultDict](../../components/schema/invalid_string_value_for_default.md#invalidstringvaluefordefaultdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | [invalid_string_value_for_default.InvalidStringValueForDefaultDict](../../components/schema/invalid_string_value_for_default.md#invalidstringvaluefordefaultdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv4_format_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv4_format_response_body_for_content_types/post.md index d49ab322652..c9104b5f71e 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv4_format_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv4_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post.md index 6f0bdf65c4e..bc2475c46c6 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md index 38f99af75bc..73acf3c2ce9 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post.md index 33382572340..0fe723bca3e 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.md index 2ad2c0f44f5..fead8627f47 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.md index 9194f4e92ce..e270cea0d57 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.md index 94f4da2a652..f6df857d3eb 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.md index 1e3d5ea62a8..1a41a9af16b 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.md index f24bc02e54f..1c788f75853 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post.md index f4de026b01e..1dc6ddca708 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.md index f0623319deb..6ee43887c2e 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post.md index a2e80f516cc..bba61a16d9a 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post.md index 605f4403388..5e041d5916d 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md index c32fe29c801..aef5460fac5 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.md index 97f7bcff1fa..fd97c020735 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.md index cc0db50ccda..b237c6a94cf 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_items_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_items_response_body_for_content_types/post.md index 4373c46f801..d115e57942c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_items_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_items_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [nested_items.NestedItemsTuple](../../components/schema/nested_items.md#nesteditemstuple) | | +[body](#_200-body) | [nested_items.NestedItemsTuple](../../components/schema/nested_items.md#nesteditemstuple) | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md index f2e92c6f914..67d8da809c1 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md index 00a52498cda..1fea3356094 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_response_body_for_content_types/post.md index 365b2bbe3c8..8ac6b1fab7a 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.md index 478075ffb53..f6d87ef14b5 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | typing.Literal["hello\x00there"] | | +[body](#_200-body) | typing.Literal["hello\x00there"] | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.md index 8da9e975d92..3456e40762d 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | None | | +[body](#_200-body) | None | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.md index 3c29f230822..008170a3e67 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | float, int | | +[body](#_200-body) | float, int | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.md index 7ee2932fe63..1d9513bb84d 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [object_properties_validation.ObjectPropertiesValidationDict](../../components/schema/object_properties_validation.md#objectpropertiesvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | [object_properties_validation.ObjectPropertiesValidationDict](../../components/schema/object_properties_validation.md#objectpropertiesvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.md index 0ad8829e9e3..1935ff6a9a0 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict | | +[body](#_200-body) | schemas.immutabledict | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.md index 802d049b6cf..1c8c65a4216 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_response_body_for_content_types/post.md index 7da75e80400..74b67736d85 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.md index b3db8a20701..43d5450783a 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | str | | +[body](#_200-body) | str | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.md index c3f84a2d1af..e9ee7859cc3 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.md index 2f30af9a726..963ec3f9299 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict | | +[body](#_200-body) | schemas.immutabledict | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.md index acd43473cf5..f564ea016eb 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post.md index d9691bb1341..80f25702100 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md index e0fed3c6a05..8ff026e52c5 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [properties_with_escaped_characters.PropertiesWithEscapedCharactersDict](../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | [properties_with_escaped_characters.PropertiesWithEscapedCharactersDict](../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md index c74b71131ec..1f86708bb1f 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.md index 58360debb67..5db9d93ae0c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [ref_in_additionalproperties.RefInAdditionalpropertiesDict](../../components/schema/ref_in_additionalproperties.md#refinadditionalpropertiesdict) | | +[body](#_200-body) | [ref_in_additionalproperties.RefInAdditionalpropertiesDict](../../components/schema/ref_in_additionalproperties.md#refinadditionalpropertiesdict) | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.md index 53de549744e..643846c1deb 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.md index 4979ec2517c..486ea3be688 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_items_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_items_response_body_for_content_types/post.md index a9fed183002..ccef595d2ef 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_items_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_items_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [ref_in_items.RefInItemsTuple](../../components/schema/ref_in_items.md#refinitemstuple) | | +[body](#_200-body) | [ref_in_items.RefInItemsTuple](../../components/schema/ref_in_items.md#refinitemstuple) | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_not_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_not_response_body_for_content_types/post.md index 152f0f7a3ab..8d53f31bc04 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_not_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_not_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.md index e06989ea1cc..a81cd1b7f9c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_property_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_property_response_body_for_content_types/post.md index bfb6aa2c942..de206f70584 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_property_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_property_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [ref_in_property.RefInPropertyDict](../../components/schema/ref_in_property.md#refinpropertydict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | [ref_in_property.RefInPropertyDict](../../components/schema/ref_in_property.md#refinpropertydict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post.md index 27dbc3b144d..b606e5cf8b5 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [required_default_validation.RequiredDefaultValidationDict](../../components/schema/required_default_validation.md#requireddefaultvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | [required_default_validation.RequiredDefaultValidationDict](../../components/schema/required_default_validation.md#requireddefaultvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_validation_response_body_for_content_types/post.md index b1bbd780334..117908e45d7 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [required_validation.RequiredValidationDict](../../components/schema/required_validation.md#requiredvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | [required_validation.RequiredValidationDict](../../components/schema/required_validation.md#requiredvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.md index 12fa5e0375a..106b5a618c2 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [required_with_empty_array.RequiredWithEmptyArrayDict](../../components/schema/required_with_empty_array.md#requiredwithemptyarraydict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | [required_with_empty_array.RequiredWithEmptyArrayDict](../../components/schema/required_with_empty_array.md#requiredwithemptyarraydict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.md index dcdd0878a37..539241b6f5d 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [required_with_escaped_characters.RequiredWithEscapedCharactersDict](../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | [required_with_escaped_characters.RequiredWithEscapedCharactersDict](../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.md index ab8212b4d81..07be271f222 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | float, int | | +[body](#_200-body) | float, int | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.md index f221b5fd41a..6ea34e6d645 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | str | | +[body](#_200-body) | str | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.md index 6c6d5295b7a..f4138bda1a4 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDict](../../components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md#thedefaultkeyworddoesnotdoanythingifthepropertyismissingdict) | | +[body](#_200-body) | [the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDict](../../components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md#thedefaultkeyworddoesnotdoanythingifthepropertyismissingdict) | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md index ea686f3d9a0..ca2541b8d29 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.md index b7c6bd6708f..0eb754a9463 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_format_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_format_response_body_for_content_types/post.md index 145c150a3ff..79214083e18 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_format_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.md index d3ee1f0955c..ef316e0a4b0 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_template_format_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_template_format_response_body_for_content_types/post.md index b3c216c87d2..2db8b0e42e9 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_template_format_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_template_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/operation.py index 3919d0459c1..3e754c8d049 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/operation.py index b99a1e03592..bf13d2411e3 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/operation.py index 87e6d559418..faec6a439e1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/operation.py index 8e28a994247..8b678f293dc 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/operation.py index df62c6894d1..6408159e59b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/operation.py index 364453afdf2..7fa03721a4b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/operation.py index 167997e0be3..e0d327ecde0 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/operation.py index 5d6e5a9417f..f18051f3357 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/operation.py index c41c7abb227..fd26607b781 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/operation.py index 7b4aa22f5c4..7d2dc22cb92 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/operation.py index 247deedb197..c5b40498d84 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/operation.py index de243529c40..808632c060c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/operation.py index c1d882fa50f..4942a16c1d4 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/operation.py index 5392be95ab2..3e23774d7ef 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/operation.py index 0b83156330d..07c4b00d549 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/operation.py index 9ec95b7ec02..62c010dc2b9 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/operation.py index b7c44a67e0d..e424a9593f9 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/operation.py index 0c4bc24658c..d2c5b4db4ec 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/operation.py index 7d82e25ebaf..1c08bf377fb 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/operation.py index 7e4d024e818..9eba1a7b61d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/operation.py index 1ebeac7c700..882b8cfb016 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/operation.py index 28c8dc3e083..ef1dbcb3994 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/operation.py index 8727d68b73b..72eb178acab 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/operation.py index 6c2a295bdac..ad7ac47659b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/operation.py index 994f98feb69..c58995e88e6 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/operation.py index c92dedda09a..def3de025d8 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/operation.py index aff23b76309..eb96cfb1de1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/operation.py index 139fe18c966..07b33db7885 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/operation.py index ed6e7b81230..e87b81965b9 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/operation.py index 46217c66181..d4b9120e86a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/operation.py index b7d0f127816..eca8ba5d394 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/operation.py index b8cd1a3b31f..f4a129fdd91 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/operation.py index de6b538ad87..57549f5f5fa 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/operation.py index 6a1cb6817a3..9179a3149ac 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/operation.py index 92369d23fc3..51f5f5a8f84 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/operation.py index f37ca537c41..9155ca1d212 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/operation.py index a0eab10a36a..23af6ca1ba1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/operation.py index 898a1d303ed..048e329aa30 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/operation.py index 1c4f855e870..fec6304c585 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/operation.py index a666fb30fdb..3a0304a69d4 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/operation.py index 79d516829f0..33c091bca8b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/operation.py index f3b0af790a9..6f5c67c5022 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/operation.py index e61260a93cc..a6d27fcad7c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/operation.py index 80bae3df4d7..4a3d627af98 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/operation.py index 1661841a2fb..374fe3be996 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/operation.py index a96c9474e2c..5bdc1cb8b48 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/operation.py index 4918b3efd30..632b1abfedc 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/operation.py index 98b26a84a6f..3ec372ee914 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/operation.py index d1d165a59ed..e96751ba01e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/operation.py index e48324ee80c..483a6468c29 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/operation.py index faa7c7266d4..d1033364554 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/operation.py index b5ef0dca00d..dc66ca393ff 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/operation.py index 57849fc889d..3b86f14902c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/operation.py index d63f15c0b8c..a20c391c436 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/operation.py index b521f8d42c5..9dfdfc0e481 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/operation.py index e4b653621a0..aa446e95b94 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/operation.py index 63ca3bef84a..3c57c468072 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/operation.py index 4c48562b936..38e00a2dbea 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/operation.py index 7075dfb67dc..c886951c41b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/operation.py index ee6a59eb03b..4a26273a17c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/operation.py index 2bb830e4fdc..c77e43b1493 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/operation.py index cde0061a258..1854055de7f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/operation.py index f3611231b21..d2b93151285 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/operation.py index 45aac1b0644..1f293b49010 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/operation.py index cf6a8fc241a..32eb26efab3 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/operation.py index d4d620851c1..ef6a58f4fa7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/operation.py index b48196cc896..24a2c712ac9 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/operation.py index ada223bdf12..c7057ac61cb 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/operation.py index b6432f845ea..56c0a8a8fa7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/operation.py index c6d087a6178..df5b3a3a6ec 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/operation.py index d5ffe0b2ade..007ee81e2b7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/operation.py index 41648e69095..0e005fc5b0d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/operation.py index a9f4bca11be..17632750179 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/operation.py index a1bc1303f3a..183516baaf4 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/operation.py index d788cf02010..109aa5ed28a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/operation.py index 80c4ef28664..10caf145727 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/operation.py index 292ea1ac909..3eabf9cb6f5 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/operation.py index 8313bd00fd5..a65d2466a89 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/operation.py index 9f84f5d435d..b2a9503de17 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/operation.py index 0734c74a9b2..92120c5a4f6 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/operation.py index 47cfc3771e9..b13a106e0d9 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/operation.py index aa3710a8391..90797ba2367 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py index b8ae9395c4b..288b48db033 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/operation.py index a3bc01d48ae..95b6297666d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/operation.py index ae1ef69813d..b94fe306d33 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/operation.py index 2e69c8c5e0f..8f02ee4695d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/operation.py index 17e17846bda..53ada9bb266 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/operation.py index 169531f3cd6..b49444f01e5 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/responses/response_200/__init__.py index fd6b59ad840..7ea4def9334 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/operation.py index 090b14d82de..71c38714118 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py index 30fdcbd90c7..1d58b54edb9 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/__init__.py index cf76c16b19f..dc8827aa890 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/operation.py index 0be3c6cd84b..3acf7cc2de9 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/operation.py index 01e96ea5a8d..3ce56131d8a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/operation.py index 7dc48ea05b5..d33eca98c34 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/operation.py index da0d46d7ad9..6af48eb9854 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/operation.py index 95e82a9b74d..3004ced93b0 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/operation.py index 6246cf73da7..c37ac9b5e9c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/operation.py index 9d0d84c8b83..ecd9641bebb 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/operation.py index 07440623ae1..37451119733 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/operation.py index 5ddd8aba6cc..4c5ac2eb47a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/operation.py index 564492657b6..2059516c061 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/operation.py index 99431cc5f3b..f5e6430d9d7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/operation.py index 5a9ce6a0b52..4a541430f6b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 63fbad57c09..a78d9af2aec 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/operation.py index 2238c21de72..1ff2c37e6fc 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/operation.py index e72819e1ddb..278ffdb5e78 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/__init__.py index e44833e1983..77d5bd05419 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/operation.py index a6705e72cab..e000804dec3 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/__init__.py index d7e8a22d1d4..cd4330fa2cd 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/operation.py index 097f09a881f..125a33d7438 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/operation.py index d40fd29a04e..2e2d2d3e5a3 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/operation.py index 49e765acc99..3d30b071217 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/operation.py index 20ade10b80a..e20695fc635 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/operation.py index 112a8424a30..e3cfc5b56e8 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/operation.py index 7534d1d4fdd..63ed47782c1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/__init__.py index 452ca1bfe75..717ca796afa 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/operation.py index 3d89df03917..f3aee3de47b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py index 452ca1bfe75..717ca796afa 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/operation.py index b8ff055d10c..eee05cd6095 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py index e5ed3e05230..699299a6da7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/operation.py index 916c091d348..15da93cddd1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/__init__.py index d6132013814..6bae4f7c085 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/operation.py index eab55cb3656..652074c6d05 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/__init__.py index 2002c2d4032..a1d05eb4328 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/operation.py index 63dbc1d7b53..aa8a25a357b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/__init__.py index 219c773c01f..7c1c85fbc29 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/operation.py index 564fa742323..5db275d0432 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/operation.py index 99ade598795..6acfcb141ea 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/operation.py index 93b66401eae..49abccb576f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/__init__.py index 9ed2d0b94fd..b698dd5a79c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/operation.py index 64105ee313a..4b13e0a16cc 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/responses/response_200/__init__.py index 9ed2d0b94fd..b698dd5a79c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/operation.py index 55db8d9d0eb..247371407cf 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/operation.py index da231a84141..ab38df59a84 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/operation.py index fb8dfd0b363..bdf72453000 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/operation.py index 55cd085b6b5..33c16d5cd55 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/operation.py index fb63d32b1cc..b1e303fd649 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/operation.py index d5a88e876d0..200d7f5c945 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/operation.py index c080de1ae09..2900371c651 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/operation.py index 94fec2d28c4..791ac5148a5 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/operation.py index d2a9ba4469e..c5d5a367a45 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/operation.py index d67cb2110ae..10d254ab861 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/operation.py index e2806d1a61d..1ee8afeee03 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/operation.py index c830d5678bf..de3b2cc64ad 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/operation.py index 15946ad6450..f3e121b2262 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/operation.py index c7464c7b38f..b213659359e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/operation.py index 95226b68f3d..487368e6d59 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/operation.py index 578d2167c2e..023ed79ebb5 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/operation.py index b68edd3471b..4236775aec8 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/operation.py index e6fc6c285c9..e777a2b294a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/__init__.py index e2c4b4172df..7deb87c16e6 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/operation.py index aa684fa8db6..8e42322b09c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/operation.py index 6ae647ad6f0..063e7b0636b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/operation.py index 0a73512a8b7..83459b5c299 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/operation.py index d1545d7dc02..2722bfe7b13 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py index 6018ccc2c1f..3723f603ccb 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/operation.py index 5c40e450c0f..08725b56311 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/__init__.py index 54d2705ff29..ea83bf95d55 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/operation.py index 907a62f5004..837f925fd74 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/__init__.py index 452ca1bfe75..717ca796afa 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/operation.py index d28a04439db..ffb5ddcab79 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/operation.py index 08e97aa21b7..f97eec3b1ae 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/__init__.py index 92b57bc83c8..a8044f47039 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/operation.py index fc443417cde..231922b3580 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/operation.py index 085a08a618e..d22332a89f6 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/operation.py index 1fae0ff470d..71722cfa325 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 63fbad57c09..a78d9af2aec 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/operation.py index 0f147a7dca7..a8b04efec6d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/operation.py index a04bd8b8243..62550a997d7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/__init__.py index 92b57bc83c8..a8044f47039 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/operation.py index e4d865cd63e..d1033d404ff 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/operation.py index f271f994e3f..193dddb2f2e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/operation.py index 74d601d6ca6..aa637285008 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/operation.py index 222ecd2bd65..bcc069b06c5 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/operation.py index b0b7510fda7..236f284b1da 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py index 88f7d854dcb..3de7cd881a6 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/operation.py index df6ab9e0998..d023f187f57 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/operation.py index 8fbf2b36ac6..f13ae608bfd 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/operation.py index 869038af506..63cd9da9455 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/responses/response_200/__init__.py index 611e9164a7e..0c62350a61c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/operation.py index c5e2ddf926c..39e9e438c49 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/operation.py index a296e1cd756..61e1d2c9b9e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/operation.py index 96d196b3daf..3c50e56c9cd 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/operation.py index f0905a65506..812fe2c0064 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/operation.py index a4ce81f6b8b..cdc6f7f5375 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/operation.py index 78ca7737667..6c0cbe71a78 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/operation.py index 7e1bd517f1b..e50007df51a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/operation.py index 0f0f1c9b902..77aaf54b1d8 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 452ca1bfe75..717ca796afa 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/operation.py index 102cea8c432..98efe38d144 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/__init__.py index 63fbad57c09..a78d9af2aec 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/operation.py index 6d0ec3120dd..1f50262ec36 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/responses/response_200/__init__.py index f0f9a67ee77..486a68dc9e8 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py index d8c291ec290..60145d32e1b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/operation.py index 85ab539389c..57be20ce4fb 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/operation.py index 2e78f3fc368..9ef0b5fdf24 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/operation.py index ce243405e0e..d90d3bde189 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/operation.py index 94aa199b34a..bd98a5bd661 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..dd38e3a51a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/java/.openapi-generator/FILES b/samples/client/3_1_0_unit_test/java/.openapi-generator/FILES index cbe0194263f..e792671701f 100644 --- a/samples/client/3_1_0_unit_test/java/.openapi-generator/FILES +++ b/samples/client/3_1_0_unit_test/java/.openapi-generator/FILES @@ -302,6 +302,8 @@ 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/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 @@ -404,6 +406,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_1_0_unit_test/java/docs/components/schemas/ASchemaGivenForPrefixitems.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/ASchemaGivenForPrefixitems.md index 60f18cc8ef6..4e7390d7215 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/ASchemaGivenForPrefixitems.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/ASchemaGivenForPrefixitems.md @@ -4,7 +4,7 @@ public class ASchemaGivenForPrefixitems
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,25 +12,25 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ASchemaGivenForPrefixitems.ASchemaGivenForPrefixitems1Boxed](#aschemagivenforprefixitems1boxed)
abstract sealed validated payload class | -| static class | [ASchemaGivenForPrefixitems.ASchemaGivenForPrefixitems1BoxedVoid](#aschemagivenforprefixitems1boxedvoid)
boxed class to store validated null payloads | -| static class | [ASchemaGivenForPrefixitems.ASchemaGivenForPrefixitems1BoxedBoolean](#aschemagivenforprefixitems1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ASchemaGivenForPrefixitems.ASchemaGivenForPrefixitems1BoxedNumber](#aschemagivenforprefixitems1boxednumber)
boxed class to store validated Number payloads | -| static class | [ASchemaGivenForPrefixitems.ASchemaGivenForPrefixitems1BoxedString](#aschemagivenforprefixitems1boxedstring)
boxed class to store validated String payloads | -| static class | [ASchemaGivenForPrefixitems.ASchemaGivenForPrefixitems1BoxedList](#aschemagivenforprefixitems1boxedlist)
boxed class to store validated List payloads | -| static class | [ASchemaGivenForPrefixitems.ASchemaGivenForPrefixitems1BoxedMap](#aschemagivenforprefixitems1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ASchemaGivenForPrefixitems.ASchemaGivenForPrefixitems1Boxed](#aschemagivenforprefixitems1boxed)
sealed interface for validated payloads | +| record | [ASchemaGivenForPrefixitems.ASchemaGivenForPrefixitems1BoxedVoid](#aschemagivenforprefixitems1boxedvoid)
boxed class to store validated null payloads | +| record | [ASchemaGivenForPrefixitems.ASchemaGivenForPrefixitems1BoxedBoolean](#aschemagivenforprefixitems1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ASchemaGivenForPrefixitems.ASchemaGivenForPrefixitems1BoxedNumber](#aschemagivenforprefixitems1boxednumber)
boxed class to store validated Number payloads | +| record | [ASchemaGivenForPrefixitems.ASchemaGivenForPrefixitems1BoxedString](#aschemagivenforprefixitems1boxedstring)
boxed class to store validated String payloads | +| record | [ASchemaGivenForPrefixitems.ASchemaGivenForPrefixitems1BoxedList](#aschemagivenforprefixitems1boxedlist)
boxed class to store validated List payloads | +| record | [ASchemaGivenForPrefixitems.ASchemaGivenForPrefixitems1BoxedMap](#aschemagivenforprefixitems1boxedmap)
boxed class to store validated Map payloads | | static class | [ASchemaGivenForPrefixitems.ASchemaGivenForPrefixitems1](#aschemagivenforprefixitems1)
schema class | -| static class | [ASchemaGivenForPrefixitems.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | -| static class | [ASchemaGivenForPrefixitems.Schema1BoxedString](#schema1boxedstring)
boxed class to store validated String payloads | +| sealed interface | [ASchemaGivenForPrefixitems.Schema1Boxed](#schema1boxed)
sealed interface for validated payloads | +| record | [ASchemaGivenForPrefixitems.Schema1BoxedString](#schema1boxedstring)
boxed class to store validated String payloads | | static class | [ASchemaGivenForPrefixitems.Schema1](#schema1)
schema class | -| static class | [ASchemaGivenForPrefixitems.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | -| static class | [ASchemaGivenForPrefixitems.Schema0BoxedNumber](#schema0boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [ASchemaGivenForPrefixitems.Schema0Boxed](#schema0boxed)
sealed interface for validated payloads | +| record | [ASchemaGivenForPrefixitems.Schema0BoxedNumber](#schema0boxednumber)
boxed class to store validated Number payloads | | static class | [ASchemaGivenForPrefixitems.Schema0](#schema0)
schema class | | static class | [ASchemaGivenForPrefixitems.ASchemaGivenForPrefixitemsListBuilder](#aschemagivenforprefixitemslistbuilder)
builder for List payloads | | static class | [ASchemaGivenForPrefixitems.ASchemaGivenForPrefixitemsList](#aschemagivenforprefixitemslist)
output class for List payloads | ## ASchemaGivenForPrefixitems1Boxed -public static abstract sealed class ASchemaGivenForPrefixitems1Boxed
+public sealed interface ASchemaGivenForPrefixitems1Boxed
permits
[ASchemaGivenForPrefixitems1BoxedVoid](#aschemagivenforprefixitems1boxedvoid), [ASchemaGivenForPrefixitems1BoxedBoolean](#aschemagivenforprefixitems1boxedboolean), @@ -39,103 +39,109 @@ permits
[ASchemaGivenForPrefixitems1BoxedList](#aschemagivenforprefixitems1boxedlist), [ASchemaGivenForPrefixitems1BoxedMap](#aschemagivenforprefixitems1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ASchemaGivenForPrefixitems1BoxedVoid -public static final class ASchemaGivenForPrefixitems1BoxedVoid
-extends [ASchemaGivenForPrefixitems1Boxed](#aschemagivenforprefixitems1boxed) +public record ASchemaGivenForPrefixitems1BoxedVoid
+implements [ASchemaGivenForPrefixitems1Boxed](#aschemagivenforprefixitems1boxed) -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 | | --------------------------- | | ASchemaGivenForPrefixitems1BoxedVoid(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 | ## ASchemaGivenForPrefixitems1BoxedBoolean -public static final class ASchemaGivenForPrefixitems1BoxedBoolean
-extends [ASchemaGivenForPrefixitems1Boxed](#aschemagivenforprefixitems1boxed) +public record ASchemaGivenForPrefixitems1BoxedBoolean
+implements [ASchemaGivenForPrefixitems1Boxed](#aschemagivenforprefixitems1boxed) -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 | | --------------------------- | | ASchemaGivenForPrefixitems1BoxedBoolean(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 | ## ASchemaGivenForPrefixitems1BoxedNumber -public static final class ASchemaGivenForPrefixitems1BoxedNumber
-extends [ASchemaGivenForPrefixitems1Boxed](#aschemagivenforprefixitems1boxed) +public record ASchemaGivenForPrefixitems1BoxedNumber
+implements [ASchemaGivenForPrefixitems1Boxed](#aschemagivenforprefixitems1boxed) -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 | | --------------------------- | | ASchemaGivenForPrefixitems1BoxedNumber(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 | ## ASchemaGivenForPrefixitems1BoxedString -public static final class ASchemaGivenForPrefixitems1BoxedString
-extends [ASchemaGivenForPrefixitems1Boxed](#aschemagivenforprefixitems1boxed) +public record ASchemaGivenForPrefixitems1BoxedString
+implements [ASchemaGivenForPrefixitems1Boxed](#aschemagivenforprefixitems1boxed) -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 | | --------------------------- | | ASchemaGivenForPrefixitems1BoxedString(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 | ## ASchemaGivenForPrefixitems1BoxedList -public static final class ASchemaGivenForPrefixitems1BoxedList
-extends [ASchemaGivenForPrefixitems1Boxed](#aschemagivenforprefixitems1boxed) +public record ASchemaGivenForPrefixitems1BoxedList
+implements [ASchemaGivenForPrefixitems1Boxed](#aschemagivenforprefixitems1boxed) -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 | | --------------------------- | | ASchemaGivenForPrefixitems1BoxedList([ASchemaGivenForPrefixitemsList](#aschemagivenforprefixitemslist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ASchemaGivenForPrefixitemsList](#aschemagivenforprefixitemslist) | data
validated payload | +| [ASchemaGivenForPrefixitemsList](#aschemagivenforprefixitemslist) | data()
validated payload | +| @Nullable Object | getData()
validated payload | ## ASchemaGivenForPrefixitems1BoxedMap -public static final class ASchemaGivenForPrefixitems1BoxedMap
-extends [ASchemaGivenForPrefixitems1Boxed](#aschemagivenforprefixitems1boxed) +public record ASchemaGivenForPrefixitems1BoxedMap
+implements [ASchemaGivenForPrefixitems1Boxed](#aschemagivenforprefixitems1boxed) -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 | | --------------------------- | | ASchemaGivenForPrefixitems1BoxedMap(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 | ## ASchemaGivenForPrefixitems1 public static class ASchemaGivenForPrefixitems1
@@ -167,29 +173,32 @@ A schema class that validates payloads | [ASchemaGivenForPrefixitems1BoxedBoolean](#aschemagivenforprefixitems1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ASchemaGivenForPrefixitems1BoxedMap](#aschemagivenforprefixitems1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [ASchemaGivenForPrefixitems1BoxedList](#aschemagivenforprefixitems1boxedlist) | validateAndBox([List](#aschemagivenforprefixitemslistbuilder) arg, SchemaConfiguration configuration) | +| [ASchemaGivenForPrefixitems1Boxed](#aschemagivenforprefixitems1boxed) | 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
[Schema1BoxedString](#schema1boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## 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 | ## Schema1 public static class Schema1
@@ -203,27 +212,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_1_0_unit_test/java/docs/components/schemas/AdditionalItemsAreAllowedByDefault.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/AdditionalItemsAreAllowedByDefault.md index 0212093a2a9..05046febeb6 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/AdditionalItemsAreAllowedByDefault.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/AdditionalItemsAreAllowedByDefault.md @@ -4,7 +4,7 @@ public class AdditionalItemsAreAllowedByDefault
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,22 +12,22 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [AdditionalItemsAreAllowedByDefault.AdditionalItemsAreAllowedByDefault1Boxed](#additionalitemsareallowedbydefault1boxed)
abstract sealed validated payload class | -| static class | [AdditionalItemsAreAllowedByDefault.AdditionalItemsAreAllowedByDefault1BoxedVoid](#additionalitemsareallowedbydefault1boxedvoid)
boxed class to store validated null payloads | -| static class | [AdditionalItemsAreAllowedByDefault.AdditionalItemsAreAllowedByDefault1BoxedBoolean](#additionalitemsareallowedbydefault1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [AdditionalItemsAreAllowedByDefault.AdditionalItemsAreAllowedByDefault1BoxedNumber](#additionalitemsareallowedbydefault1boxednumber)
boxed class to store validated Number payloads | -| static class | [AdditionalItemsAreAllowedByDefault.AdditionalItemsAreAllowedByDefault1BoxedString](#additionalitemsareallowedbydefault1boxedstring)
boxed class to store validated String payloads | -| static class | [AdditionalItemsAreAllowedByDefault.AdditionalItemsAreAllowedByDefault1BoxedList](#additionalitemsareallowedbydefault1boxedlist)
boxed class to store validated List payloads | -| static class | [AdditionalItemsAreAllowedByDefault.AdditionalItemsAreAllowedByDefault1BoxedMap](#additionalitemsareallowedbydefault1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AdditionalItemsAreAllowedByDefault.AdditionalItemsAreAllowedByDefault1Boxed](#additionalitemsareallowedbydefault1boxed)
sealed interface for validated payloads | +| record | [AdditionalItemsAreAllowedByDefault.AdditionalItemsAreAllowedByDefault1BoxedVoid](#additionalitemsareallowedbydefault1boxedvoid)
boxed class to store validated null payloads | +| record | [AdditionalItemsAreAllowedByDefault.AdditionalItemsAreAllowedByDefault1BoxedBoolean](#additionalitemsareallowedbydefault1boxedboolean)
boxed class to store validated boolean payloads | +| record | [AdditionalItemsAreAllowedByDefault.AdditionalItemsAreAllowedByDefault1BoxedNumber](#additionalitemsareallowedbydefault1boxednumber)
boxed class to store validated Number payloads | +| record | [AdditionalItemsAreAllowedByDefault.AdditionalItemsAreAllowedByDefault1BoxedString](#additionalitemsareallowedbydefault1boxedstring)
boxed class to store validated String payloads | +| record | [AdditionalItemsAreAllowedByDefault.AdditionalItemsAreAllowedByDefault1BoxedList](#additionalitemsareallowedbydefault1boxedlist)
boxed class to store validated List payloads | +| record | [AdditionalItemsAreAllowedByDefault.AdditionalItemsAreAllowedByDefault1BoxedMap](#additionalitemsareallowedbydefault1boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalItemsAreAllowedByDefault.AdditionalItemsAreAllowedByDefault1](#additionalitemsareallowedbydefault1)
schema class | -| static class | [AdditionalItemsAreAllowedByDefault.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | -| static class | [AdditionalItemsAreAllowedByDefault.Schema0BoxedNumber](#schema0boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [AdditionalItemsAreAllowedByDefault.Schema0Boxed](#schema0boxed)
sealed interface for validated payloads | +| record | [AdditionalItemsAreAllowedByDefault.Schema0BoxedNumber](#schema0boxednumber)
boxed class to store validated Number payloads | | static class | [AdditionalItemsAreAllowedByDefault.Schema0](#schema0)
schema class | | static class | [AdditionalItemsAreAllowedByDefault.AdditionalItemsAreAllowedByDefaultListBuilder](#additionalitemsareallowedbydefaultlistbuilder)
builder for List payloads | | static class | [AdditionalItemsAreAllowedByDefault.AdditionalItemsAreAllowedByDefaultList](#additionalitemsareallowedbydefaultlist)
output class for List payloads | ## AdditionalItemsAreAllowedByDefault1Boxed -public static abstract sealed class AdditionalItemsAreAllowedByDefault1Boxed
+public sealed interface AdditionalItemsAreAllowedByDefault1Boxed
permits
[AdditionalItemsAreAllowedByDefault1BoxedVoid](#additionalitemsareallowedbydefault1boxedvoid), [AdditionalItemsAreAllowedByDefault1BoxedBoolean](#additionalitemsareallowedbydefault1boxedboolean), @@ -36,103 +36,109 @@ permits
[AdditionalItemsAreAllowedByDefault1BoxedList](#additionalitemsareallowedbydefault1boxedlist), [AdditionalItemsAreAllowedByDefault1BoxedMap](#additionalitemsareallowedbydefault1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalItemsAreAllowedByDefault1BoxedVoid -public static final class AdditionalItemsAreAllowedByDefault1BoxedVoid
-extends [AdditionalItemsAreAllowedByDefault1Boxed](#additionalitemsareallowedbydefault1boxed) +public record AdditionalItemsAreAllowedByDefault1BoxedVoid
+implements [AdditionalItemsAreAllowedByDefault1Boxed](#additionalitemsareallowedbydefault1boxed) -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 | | --------------------------- | | AdditionalItemsAreAllowedByDefault1BoxedVoid(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 | ## AdditionalItemsAreAllowedByDefault1BoxedBoolean -public static final class AdditionalItemsAreAllowedByDefault1BoxedBoolean
-extends [AdditionalItemsAreAllowedByDefault1Boxed](#additionalitemsareallowedbydefault1boxed) +public record AdditionalItemsAreAllowedByDefault1BoxedBoolean
+implements [AdditionalItemsAreAllowedByDefault1Boxed](#additionalitemsareallowedbydefault1boxed) -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 | | --------------------------- | | AdditionalItemsAreAllowedByDefault1BoxedBoolean(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 | ## AdditionalItemsAreAllowedByDefault1BoxedNumber -public static final class AdditionalItemsAreAllowedByDefault1BoxedNumber
-extends [AdditionalItemsAreAllowedByDefault1Boxed](#additionalitemsareallowedbydefault1boxed) +public record AdditionalItemsAreAllowedByDefault1BoxedNumber
+implements [AdditionalItemsAreAllowedByDefault1Boxed](#additionalitemsareallowedbydefault1boxed) -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 | | --------------------------- | | AdditionalItemsAreAllowedByDefault1BoxedNumber(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 | ## AdditionalItemsAreAllowedByDefault1BoxedString -public static final class AdditionalItemsAreAllowedByDefault1BoxedString
-extends [AdditionalItemsAreAllowedByDefault1Boxed](#additionalitemsareallowedbydefault1boxed) +public record AdditionalItemsAreAllowedByDefault1BoxedString
+implements [AdditionalItemsAreAllowedByDefault1Boxed](#additionalitemsareallowedbydefault1boxed) -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 | | --------------------------- | | AdditionalItemsAreAllowedByDefault1BoxedString(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 | ## AdditionalItemsAreAllowedByDefault1BoxedList -public static final class AdditionalItemsAreAllowedByDefault1BoxedList
-extends [AdditionalItemsAreAllowedByDefault1Boxed](#additionalitemsareallowedbydefault1boxed) +public record AdditionalItemsAreAllowedByDefault1BoxedList
+implements [AdditionalItemsAreAllowedByDefault1Boxed](#additionalitemsareallowedbydefault1boxed) -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 | | --------------------------- | | AdditionalItemsAreAllowedByDefault1BoxedList([AdditionalItemsAreAllowedByDefaultList](#additionalitemsareallowedbydefaultlist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [AdditionalItemsAreAllowedByDefaultList](#additionalitemsareallowedbydefaultlist) | data
validated payload | +| [AdditionalItemsAreAllowedByDefaultList](#additionalitemsareallowedbydefaultlist) | data()
validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalItemsAreAllowedByDefault1BoxedMap -public static final class AdditionalItemsAreAllowedByDefault1BoxedMap
-extends [AdditionalItemsAreAllowedByDefault1Boxed](#additionalitemsareallowedbydefault1boxed) +public record AdditionalItemsAreAllowedByDefault1BoxedMap
+implements [AdditionalItemsAreAllowedByDefault1Boxed](#additionalitemsareallowedbydefault1boxed) -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 | | --------------------------- | | AdditionalItemsAreAllowedByDefault1BoxedMap(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 | ## AdditionalItemsAreAllowedByDefault1 public static class AdditionalItemsAreAllowedByDefault1
@@ -164,29 +170,32 @@ A schema class that validates payloads | [AdditionalItemsAreAllowedByDefault1BoxedBoolean](#additionalitemsareallowedbydefault1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [AdditionalItemsAreAllowedByDefault1BoxedMap](#additionalitemsareallowedbydefault1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [AdditionalItemsAreAllowedByDefault1BoxedList](#additionalitemsareallowedbydefault1boxedlist) | validateAndBox([List](#additionalitemsareallowedbydefaultlistbuilder) arg, SchemaConfiguration configuration) | +| [AdditionalItemsAreAllowedByDefault1Boxed](#additionalitemsareallowedbydefault1boxed) | 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_1_0_unit_test/java/docs/components/schemas/AdditionalpropertiesAreAllowedByDefault.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/AdditionalpropertiesAreAllowedByDefault.md index 3d0102a4a24..b7e5ca27e35 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/AdditionalpropertiesAreAllowedByDefault.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/AdditionalpropertiesCanExistByItself.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/AdditionalpropertiesCanExistByItself.md index 159c5b6a253..b2488de4fd8 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/AdditionalpropertiesCanExistByItself.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/AdditionalpropertiesCanExistByItself.md @@ -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_1_0_unit_test/java/docs/components/schemas/AdditionalpropertiesDoesNotLookInApplicators.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/AdditionalpropertiesDoesNotLookInApplicators.md index dbdf5ac09cb..d76f03d1168 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/AdditionalpropertiesDoesNotLookInApplicators.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/AdditionalpropertiesDoesNotLookInApplicators.md @@ -4,7 +4,7 @@ public class AdditionalpropertiesDoesNotLookInApplicators
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 | [AdditionalpropertiesDoesNotLookInApplicators.AdditionalpropertiesDoesNotLookInApplicators1Boxed](#additionalpropertiesdoesnotlookinapplicators1boxed)
abstract sealed validated payload class | -| static class | [AdditionalpropertiesDoesNotLookInApplicators.AdditionalpropertiesDoesNotLookInApplicators1BoxedVoid](#additionalpropertiesdoesnotlookinapplicators1boxedvoid)
boxed class to store validated null payloads | -| static class | [AdditionalpropertiesDoesNotLookInApplicators.AdditionalpropertiesDoesNotLookInApplicators1BoxedBoolean](#additionalpropertiesdoesnotlookinapplicators1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [AdditionalpropertiesDoesNotLookInApplicators.AdditionalpropertiesDoesNotLookInApplicators1BoxedNumber](#additionalpropertiesdoesnotlookinapplicators1boxednumber)
boxed class to store validated Number payloads | -| static class | [AdditionalpropertiesDoesNotLookInApplicators.AdditionalpropertiesDoesNotLookInApplicators1BoxedString](#additionalpropertiesdoesnotlookinapplicators1boxedstring)
boxed class to store validated String payloads | -| static class | [AdditionalpropertiesDoesNotLookInApplicators.AdditionalpropertiesDoesNotLookInApplicators1BoxedList](#additionalpropertiesdoesnotlookinapplicators1boxedlist)
boxed class to store validated List payloads | -| static class | [AdditionalpropertiesDoesNotLookInApplicators.AdditionalpropertiesDoesNotLookInApplicators1BoxedMap](#additionalpropertiesdoesnotlookinapplicators1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AdditionalpropertiesDoesNotLookInApplicators.AdditionalpropertiesDoesNotLookInApplicators1Boxed](#additionalpropertiesdoesnotlookinapplicators1boxed)
sealed interface for validated payloads | +| record | [AdditionalpropertiesDoesNotLookInApplicators.AdditionalpropertiesDoesNotLookInApplicators1BoxedVoid](#additionalpropertiesdoesnotlookinapplicators1boxedvoid)
boxed class to store validated null payloads | +| record | [AdditionalpropertiesDoesNotLookInApplicators.AdditionalpropertiesDoesNotLookInApplicators1BoxedBoolean](#additionalpropertiesdoesnotlookinapplicators1boxedboolean)
boxed class to store validated boolean payloads | +| record | [AdditionalpropertiesDoesNotLookInApplicators.AdditionalpropertiesDoesNotLookInApplicators1BoxedNumber](#additionalpropertiesdoesnotlookinapplicators1boxednumber)
boxed class to store validated Number payloads | +| record | [AdditionalpropertiesDoesNotLookInApplicators.AdditionalpropertiesDoesNotLookInApplicators1BoxedString](#additionalpropertiesdoesnotlookinapplicators1boxedstring)
boxed class to store validated String payloads | +| record | [AdditionalpropertiesDoesNotLookInApplicators.AdditionalpropertiesDoesNotLookInApplicators1BoxedList](#additionalpropertiesdoesnotlookinapplicators1boxedlist)
boxed class to store validated List payloads | +| record | [AdditionalpropertiesDoesNotLookInApplicators.AdditionalpropertiesDoesNotLookInApplicators1BoxedMap](#additionalpropertiesdoesnotlookinapplicators1boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalpropertiesDoesNotLookInApplicators.AdditionalpropertiesDoesNotLookInApplicators1](#additionalpropertiesdoesnotlookinapplicators1)
schema class | | static class | [AdditionalpropertiesDoesNotLookInApplicators.AdditionalpropertiesDoesNotLookInApplicatorsMapBuilder](#additionalpropertiesdoesnotlookinapplicatorsmapbuilder)
builder for Map payloads | | static class | [AdditionalpropertiesDoesNotLookInApplicators.AdditionalpropertiesDoesNotLookInApplicatorsMap](#additionalpropertiesdoesnotlookinapplicatorsmap)
output class for Map payloads | -| static class | [AdditionalpropertiesDoesNotLookInApplicators.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | -| static class | [AdditionalpropertiesDoesNotLookInApplicators.Schema0BoxedVoid](#schema0boxedvoid)
boxed class to store validated null payloads | -| static class | [AdditionalpropertiesDoesNotLookInApplicators.Schema0BoxedBoolean](#schema0boxedboolean)
boxed class to store validated boolean payloads | -| static class | [AdditionalpropertiesDoesNotLookInApplicators.Schema0BoxedNumber](#schema0boxednumber)
boxed class to store validated Number payloads | -| static class | [AdditionalpropertiesDoesNotLookInApplicators.Schema0BoxedString](#schema0boxedstring)
boxed class to store validated String payloads | -| static class | [AdditionalpropertiesDoesNotLookInApplicators.Schema0BoxedList](#schema0boxedlist)
boxed class to store validated List payloads | -| static class | [AdditionalpropertiesDoesNotLookInApplicators.Schema0BoxedMap](#schema0boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AdditionalpropertiesDoesNotLookInApplicators.Schema0Boxed](#schema0boxed)
sealed interface for validated payloads | +| record | [AdditionalpropertiesDoesNotLookInApplicators.Schema0BoxedVoid](#schema0boxedvoid)
boxed class to store validated null payloads | +| record | [AdditionalpropertiesDoesNotLookInApplicators.Schema0BoxedBoolean](#schema0boxedboolean)
boxed class to store validated boolean payloads | +| record | [AdditionalpropertiesDoesNotLookInApplicators.Schema0BoxedNumber](#schema0boxednumber)
boxed class to store validated Number payloads | +| record | [AdditionalpropertiesDoesNotLookInApplicators.Schema0BoxedString](#schema0boxedstring)
boxed class to store validated String payloads | +| record | [AdditionalpropertiesDoesNotLookInApplicators.Schema0BoxedList](#schema0boxedlist)
boxed class to store validated List payloads | +| record | [AdditionalpropertiesDoesNotLookInApplicators.Schema0BoxedMap](#schema0boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalpropertiesDoesNotLookInApplicators.Schema0](#schema0)
schema class | | static class | [AdditionalpropertiesDoesNotLookInApplicators.Schema0MapBuilder](#schema0mapbuilder)
builder for Map payloads | | static class | [AdditionalpropertiesDoesNotLookInApplicators.Schema0Map](#schema0map)
output class for Map payloads | -| static class | [AdditionalpropertiesDoesNotLookInApplicators.FooBoxed](#fooboxed)
abstract sealed validated payload class | -| static class | [AdditionalpropertiesDoesNotLookInApplicators.FooBoxedVoid](#fooboxedvoid)
boxed class to store validated null payloads | -| static class | [AdditionalpropertiesDoesNotLookInApplicators.FooBoxedBoolean](#fooboxedboolean)
boxed class to store validated boolean payloads | -| static class | [AdditionalpropertiesDoesNotLookInApplicators.FooBoxedNumber](#fooboxednumber)
boxed class to store validated Number payloads | -| static class | [AdditionalpropertiesDoesNotLookInApplicators.FooBoxedString](#fooboxedstring)
boxed class to store validated String payloads | -| static class | [AdditionalpropertiesDoesNotLookInApplicators.FooBoxedList](#fooboxedlist)
boxed class to store validated List payloads | -| static class | [AdditionalpropertiesDoesNotLookInApplicators.FooBoxedMap](#fooboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AdditionalpropertiesDoesNotLookInApplicators.FooBoxed](#fooboxed)
sealed interface for validated payloads | +| record | [AdditionalpropertiesDoesNotLookInApplicators.FooBoxedVoid](#fooboxedvoid)
boxed class to store validated null payloads | +| record | [AdditionalpropertiesDoesNotLookInApplicators.FooBoxedBoolean](#fooboxedboolean)
boxed class to store validated boolean payloads | +| record | [AdditionalpropertiesDoesNotLookInApplicators.FooBoxedNumber](#fooboxednumber)
boxed class to store validated Number payloads | +| record | [AdditionalpropertiesDoesNotLookInApplicators.FooBoxedString](#fooboxedstring)
boxed class to store validated String payloads | +| record | [AdditionalpropertiesDoesNotLookInApplicators.FooBoxedList](#fooboxedlist)
boxed class to store validated List payloads | +| record | [AdditionalpropertiesDoesNotLookInApplicators.FooBoxedMap](#fooboxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalpropertiesDoesNotLookInApplicators.Foo](#foo)
schema class | -| static class | [AdditionalpropertiesDoesNotLookInApplicators.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | -| static class | [AdditionalpropertiesDoesNotLookInApplicators.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| sealed interface | [AdditionalpropertiesDoesNotLookInApplicators.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [AdditionalpropertiesDoesNotLookInApplicators.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | | static class | [AdditionalpropertiesDoesNotLookInApplicators.AdditionalProperties](#additionalproperties)
schema class | ## AdditionalpropertiesDoesNotLookInApplicators1Boxed -public static abstract sealed class AdditionalpropertiesDoesNotLookInApplicators1Boxed
+public sealed interface AdditionalpropertiesDoesNotLookInApplicators1Boxed
permits
[AdditionalpropertiesDoesNotLookInApplicators1BoxedVoid](#additionalpropertiesdoesnotlookinapplicators1boxedvoid), [AdditionalpropertiesDoesNotLookInApplicators1BoxedBoolean](#additionalpropertiesdoesnotlookinapplicators1boxedboolean), @@ -54,103 +54,109 @@ permits
[AdditionalpropertiesDoesNotLookInApplicators1BoxedList](#additionalpropertiesdoesnotlookinapplicators1boxedlist), [AdditionalpropertiesDoesNotLookInApplicators1BoxedMap](#additionalpropertiesdoesnotlookinapplicators1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalpropertiesDoesNotLookInApplicators1BoxedVoid -public static final class AdditionalpropertiesDoesNotLookInApplicators1BoxedVoid
-extends [AdditionalpropertiesDoesNotLookInApplicators1Boxed](#additionalpropertiesdoesnotlookinapplicators1boxed) +public record AdditionalpropertiesDoesNotLookInApplicators1BoxedVoid
+implements [AdditionalpropertiesDoesNotLookInApplicators1Boxed](#additionalpropertiesdoesnotlookinapplicators1boxed) -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 | | --------------------------- | | AdditionalpropertiesDoesNotLookInApplicators1BoxedVoid(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 | ## AdditionalpropertiesDoesNotLookInApplicators1BoxedBoolean -public static final class AdditionalpropertiesDoesNotLookInApplicators1BoxedBoolean
-extends [AdditionalpropertiesDoesNotLookInApplicators1Boxed](#additionalpropertiesdoesnotlookinapplicators1boxed) +public record AdditionalpropertiesDoesNotLookInApplicators1BoxedBoolean
+implements [AdditionalpropertiesDoesNotLookInApplicators1Boxed](#additionalpropertiesdoesnotlookinapplicators1boxed) -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 | | --------------------------- | | AdditionalpropertiesDoesNotLookInApplicators1BoxedBoolean(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 | ## AdditionalpropertiesDoesNotLookInApplicators1BoxedNumber -public static final class AdditionalpropertiesDoesNotLookInApplicators1BoxedNumber
-extends [AdditionalpropertiesDoesNotLookInApplicators1Boxed](#additionalpropertiesdoesnotlookinapplicators1boxed) +public record AdditionalpropertiesDoesNotLookInApplicators1BoxedNumber
+implements [AdditionalpropertiesDoesNotLookInApplicators1Boxed](#additionalpropertiesdoesnotlookinapplicators1boxed) -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 | | --------------------------- | | AdditionalpropertiesDoesNotLookInApplicators1BoxedNumber(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 | ## AdditionalpropertiesDoesNotLookInApplicators1BoxedString -public static final class AdditionalpropertiesDoesNotLookInApplicators1BoxedString
-extends [AdditionalpropertiesDoesNotLookInApplicators1Boxed](#additionalpropertiesdoesnotlookinapplicators1boxed) +public record AdditionalpropertiesDoesNotLookInApplicators1BoxedString
+implements [AdditionalpropertiesDoesNotLookInApplicators1Boxed](#additionalpropertiesdoesnotlookinapplicators1boxed) -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 | | --------------------------- | | AdditionalpropertiesDoesNotLookInApplicators1BoxedString(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 | ## AdditionalpropertiesDoesNotLookInApplicators1BoxedList -public static final class AdditionalpropertiesDoesNotLookInApplicators1BoxedList
-extends [AdditionalpropertiesDoesNotLookInApplicators1Boxed](#additionalpropertiesdoesnotlookinapplicators1boxed) +public record AdditionalpropertiesDoesNotLookInApplicators1BoxedList
+implements [AdditionalpropertiesDoesNotLookInApplicators1Boxed](#additionalpropertiesdoesnotlookinapplicators1boxed) -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 | | --------------------------- | | AdditionalpropertiesDoesNotLookInApplicators1BoxedList(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 | ## AdditionalpropertiesDoesNotLookInApplicators1BoxedMap -public static final class AdditionalpropertiesDoesNotLookInApplicators1BoxedMap
-extends [AdditionalpropertiesDoesNotLookInApplicators1Boxed](#additionalpropertiesdoesnotlookinapplicators1boxed) +public record AdditionalpropertiesDoesNotLookInApplicators1BoxedMap
+implements [AdditionalpropertiesDoesNotLookInApplicators1Boxed](#additionalpropertiesdoesnotlookinapplicators1boxed) -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 | | --------------------------- | | AdditionalpropertiesDoesNotLookInApplicators1BoxedMap([AdditionalpropertiesDoesNotLookInApplicatorsMap](#additionalpropertiesdoesnotlookinapplicatorsmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [AdditionalpropertiesDoesNotLookInApplicatorsMap](#additionalpropertiesdoesnotlookinapplicatorsmap) | data
validated payload | +| [AdditionalpropertiesDoesNotLookInApplicatorsMap](#additionalpropertiesdoesnotlookinapplicatorsmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalpropertiesDoesNotLookInApplicators1 public static class AdditionalpropertiesDoesNotLookInApplicators1
@@ -183,7 +189,9 @@ A schema class that validates payloads | [AdditionalpropertiesDoesNotLookInApplicators1BoxedBoolean](#additionalpropertiesdoesnotlookinapplicators1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [AdditionalpropertiesDoesNotLookInApplicators1BoxedMap](#additionalpropertiesdoesnotlookinapplicators1boxedmap) | validateAndBox([Map<?, ?>](#additionalpropertiesdoesnotlookinapplicatorsmapbuilder) arg, SchemaConfiguration configuration) | | [AdditionalpropertiesDoesNotLookInApplicators1BoxedList](#additionalpropertiesdoesnotlookinapplicators1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [AdditionalpropertiesDoesNotLookInApplicators1Boxed](#additionalpropertiesdoesnotlookinapplicators1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## AdditionalpropertiesDoesNotLookInApplicatorsMapBuilder public class AdditionalpropertiesDoesNotLookInApplicatorsMapBuilder
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_1_0_unit_test/java/docs/components/schemas/AdditionalpropertiesWithNullValuedInstanceProperties.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/AdditionalpropertiesWithNullValuedInstanceProperties.md index d23e8a28a1c..751eb1820fc 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/AdditionalpropertiesWithNullValuedInstanceProperties.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/AdditionalpropertiesWithNullValuedInstanceProperties.md @@ -4,7 +4,7 @@ public class AdditionalpropertiesWithNullValuedInstanceProperties
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 | [AdditionalpropertiesWithNullValuedInstanceProperties.AdditionalpropertiesWithNullValuedInstanceProperties1Boxed](#additionalpropertieswithnullvaluedinstanceproperties1boxed)
abstract sealed validated payload class | -| static class | [AdditionalpropertiesWithNullValuedInstanceProperties.AdditionalpropertiesWithNullValuedInstanceProperties1BoxedMap](#additionalpropertieswithnullvaluedinstanceproperties1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AdditionalpropertiesWithNullValuedInstanceProperties.AdditionalpropertiesWithNullValuedInstanceProperties1Boxed](#additionalpropertieswithnullvaluedinstanceproperties1boxed)
sealed interface for validated payloads | +| record | [AdditionalpropertiesWithNullValuedInstanceProperties.AdditionalpropertiesWithNullValuedInstanceProperties1BoxedMap](#additionalpropertieswithnullvaluedinstanceproperties1boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalpropertiesWithNullValuedInstanceProperties.AdditionalpropertiesWithNullValuedInstanceProperties1](#additionalpropertieswithnullvaluedinstanceproperties1)
schema class | | static class | [AdditionalpropertiesWithNullValuedInstanceProperties.AdditionalpropertiesWithNullValuedInstancePropertiesMapBuilder](#additionalpropertieswithnullvaluedinstancepropertiesmapbuilder)
builder for Map payloads | | static class | [AdditionalpropertiesWithNullValuedInstanceProperties.AdditionalpropertiesWithNullValuedInstancePropertiesMap](#additionalpropertieswithnullvaluedinstancepropertiesmap)
output class for Map payloads | -| static class | [AdditionalpropertiesWithNullValuedInstanceProperties.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | -| static class | [AdditionalpropertiesWithNullValuedInstanceProperties.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| sealed interface | [AdditionalpropertiesWithNullValuedInstanceProperties.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [AdditionalpropertiesWithNullValuedInstanceProperties.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | | static class | [AdditionalpropertiesWithNullValuedInstanceProperties.AdditionalProperties](#additionalproperties)
schema class | ## AdditionalpropertiesWithNullValuedInstanceProperties1Boxed -public static abstract sealed class AdditionalpropertiesWithNullValuedInstanceProperties1Boxed
+public sealed interface AdditionalpropertiesWithNullValuedInstanceProperties1Boxed
permits
[AdditionalpropertiesWithNullValuedInstanceProperties1BoxedMap](#additionalpropertieswithnullvaluedinstanceproperties1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalpropertiesWithNullValuedInstanceProperties1BoxedMap -public static final class AdditionalpropertiesWithNullValuedInstanceProperties1BoxedMap
-extends [AdditionalpropertiesWithNullValuedInstanceProperties1Boxed](#additionalpropertieswithnullvaluedinstanceproperties1boxed) +public record AdditionalpropertiesWithNullValuedInstanceProperties1BoxedMap
+implements [AdditionalpropertiesWithNullValuedInstanceProperties1Boxed](#additionalpropertieswithnullvaluedinstanceproperties1boxed) -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 | | --------------------------- | | AdditionalpropertiesWithNullValuedInstanceProperties1BoxedMap([AdditionalpropertiesWithNullValuedInstancePropertiesMap](#additionalpropertieswithnullvaluedinstancepropertiesmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [AdditionalpropertiesWithNullValuedInstancePropertiesMap](#additionalpropertieswithnullvaluedinstancepropertiesmap) | data
validated payload | +| [AdditionalpropertiesWithNullValuedInstancePropertiesMap](#additionalpropertieswithnullvaluedinstancepropertiesmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalpropertiesWithNullValuedInstanceProperties1 public static class AdditionalpropertiesWithNullValuedInstanceProperties1
@@ -87,7 +88,9 @@ AdditionalpropertiesWithNullValuedInstanceProperties.AdditionalpropertiesWithNul | ----------------- | ---------------------- | | [AdditionalpropertiesWithNullValuedInstancePropertiesMap](#additionalpropertieswithnullvaluedinstancepropertiesmap) | validate([Map<?, ?>](#additionalpropertieswithnullvaluedinstancepropertiesmapbuilder) arg, SchemaConfiguration configuration) | | [AdditionalpropertiesWithNullValuedInstanceProperties1BoxedMap](#additionalpropertieswithnullvaluedinstanceproperties1boxedmap) | validateAndBox([Map<?, ?>](#additionalpropertieswithnullvaluedinstancepropertiesmapbuilder) arg, SchemaConfiguration configuration) | +| [AdditionalpropertiesWithNullValuedInstanceProperties1Boxed](#additionalpropertieswithnullvaluedinstanceproperties1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## AdditionalpropertiesWithNullValuedInstancePropertiesMapBuilder public class AdditionalpropertiesWithNullValuedInstancePropertiesMapBuilder
builder for `Map` @@ -118,27 +121,28 @@ A class to store validated Map payloads | Void | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalPropertiesBoxed -public static abstract sealed class AdditionalPropertiesBoxed
+public sealed interface AdditionalPropertiesBoxed
permits
[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedVoid -public static final class AdditionalPropertiesBoxedVoid
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedVoid(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 | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/AdditionalpropertiesWithSchema.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/AdditionalpropertiesWithSchema.md index bd1c2e3b15d..3566614cf82 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/AdditionalpropertiesWithSchema.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/AdditionalpropertiesWithSchema.md @@ -4,7 +4,7 @@ public class AdditionalpropertiesWithSchema
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 | [AdditionalpropertiesWithSchema.AdditionalpropertiesWithSchema1Boxed](#additionalpropertieswithschema1boxed)
abstract sealed validated payload class | -| static class | [AdditionalpropertiesWithSchema.AdditionalpropertiesWithSchema1BoxedMap](#additionalpropertieswithschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AdditionalpropertiesWithSchema.AdditionalpropertiesWithSchema1Boxed](#additionalpropertieswithschema1boxed)
sealed interface for validated payloads | +| record | [AdditionalpropertiesWithSchema.AdditionalpropertiesWithSchema1BoxedMap](#additionalpropertieswithschema1boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalpropertiesWithSchema.AdditionalpropertiesWithSchema1](#additionalpropertieswithschema1)
schema class | | static class | [AdditionalpropertiesWithSchema.AdditionalpropertiesWithSchemaMapBuilder](#additionalpropertieswithschemamapbuilder)
builder for Map payloads | | static class | [AdditionalpropertiesWithSchema.AdditionalpropertiesWithSchemaMap](#additionalpropertieswithschemamap)
output class for Map payloads | -| static class | [AdditionalpropertiesWithSchema.BarBoxed](#barboxed)
abstract sealed validated payload class | -| static class | [AdditionalpropertiesWithSchema.BarBoxedVoid](#barboxedvoid)
boxed class to store validated null payloads | -| static class | [AdditionalpropertiesWithSchema.BarBoxedBoolean](#barboxedboolean)
boxed class to store validated boolean payloads | -| static class | [AdditionalpropertiesWithSchema.BarBoxedNumber](#barboxednumber)
boxed class to store validated Number payloads | -| static class | [AdditionalpropertiesWithSchema.BarBoxedString](#barboxedstring)
boxed class to store validated String payloads | -| static class | [AdditionalpropertiesWithSchema.BarBoxedList](#barboxedlist)
boxed class to store validated List payloads | -| static class | [AdditionalpropertiesWithSchema.BarBoxedMap](#barboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AdditionalpropertiesWithSchema.BarBoxed](#barboxed)
sealed interface for validated payloads | +| record | [AdditionalpropertiesWithSchema.BarBoxedVoid](#barboxedvoid)
boxed class to store validated null payloads | +| record | [AdditionalpropertiesWithSchema.BarBoxedBoolean](#barboxedboolean)
boxed class to store validated boolean payloads | +| record | [AdditionalpropertiesWithSchema.BarBoxedNumber](#barboxednumber)
boxed class to store validated Number payloads | +| record | [AdditionalpropertiesWithSchema.BarBoxedString](#barboxedstring)
boxed class to store validated String payloads | +| record | [AdditionalpropertiesWithSchema.BarBoxedList](#barboxedlist)
boxed class to store validated List payloads | +| record | [AdditionalpropertiesWithSchema.BarBoxedMap](#barboxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalpropertiesWithSchema.Bar](#bar)
schema class | -| static class | [AdditionalpropertiesWithSchema.FooBoxed](#fooboxed)
abstract sealed validated payload class | -| static class | [AdditionalpropertiesWithSchema.FooBoxedVoid](#fooboxedvoid)
boxed class to store validated null payloads | -| static class | [AdditionalpropertiesWithSchema.FooBoxedBoolean](#fooboxedboolean)
boxed class to store validated boolean payloads | -| static class | [AdditionalpropertiesWithSchema.FooBoxedNumber](#fooboxednumber)
boxed class to store validated Number payloads | -| static class | [AdditionalpropertiesWithSchema.FooBoxedString](#fooboxedstring)
boxed class to store validated String payloads | -| static class | [AdditionalpropertiesWithSchema.FooBoxedList](#fooboxedlist)
boxed class to store validated List payloads | -| static class | [AdditionalpropertiesWithSchema.FooBoxedMap](#fooboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [AdditionalpropertiesWithSchema.FooBoxed](#fooboxed)
sealed interface for validated payloads | +| record | [AdditionalpropertiesWithSchema.FooBoxedVoid](#fooboxedvoid)
boxed class to store validated null payloads | +| record | [AdditionalpropertiesWithSchema.FooBoxedBoolean](#fooboxedboolean)
boxed class to store validated boolean payloads | +| record | [AdditionalpropertiesWithSchema.FooBoxedNumber](#fooboxednumber)
boxed class to store validated Number payloads | +| record | [AdditionalpropertiesWithSchema.FooBoxedString](#fooboxedstring)
boxed class to store validated String payloads | +| record | [AdditionalpropertiesWithSchema.FooBoxedList](#fooboxedlist)
boxed class to store validated List payloads | +| record | [AdditionalpropertiesWithSchema.FooBoxedMap](#fooboxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalpropertiesWithSchema.Foo](#foo)
schema class | -| static class | [AdditionalpropertiesWithSchema.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | -| static class | [AdditionalpropertiesWithSchema.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| sealed interface | [AdditionalpropertiesWithSchema.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [AdditionalpropertiesWithSchema.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | | static class | [AdditionalpropertiesWithSchema.AdditionalProperties](#additionalproperties)
schema class | ## AdditionalpropertiesWithSchema1Boxed -public static abstract sealed class AdditionalpropertiesWithSchema1Boxed
+public sealed interface AdditionalpropertiesWithSchema1Boxed
permits
[AdditionalpropertiesWithSchema1BoxedMap](#additionalpropertieswithschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalpropertiesWithSchema1BoxedMap -public static final class AdditionalpropertiesWithSchema1BoxedMap
-extends [AdditionalpropertiesWithSchema1Boxed](#additionalpropertieswithschema1boxed) +public record AdditionalpropertiesWithSchema1BoxedMap
+implements [AdditionalpropertiesWithSchema1Boxed](#additionalpropertieswithschema1boxed) -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 | | --------------------------- | | AdditionalpropertiesWithSchema1BoxedMap([AdditionalpropertiesWithSchemaMap](#additionalpropertieswithschemamap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [AdditionalpropertiesWithSchemaMap](#additionalpropertieswithschemamap) | data
validated payload | +| [AdditionalpropertiesWithSchemaMap](#additionalpropertieswithschemamap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | ## AdditionalpropertiesWithSchema1 public static class AdditionalpropertiesWithSchema1
@@ -104,7 +105,9 @@ AdditionalpropertiesWithSchema.AdditionalpropertiesWithSchemaMap validatedPayloa | ----------------- | ---------------------- | | [AdditionalpropertiesWithSchemaMap](#additionalpropertieswithschemamap) | validate([Map<?, ?>](#additionalpropertieswithschemamapbuilder) arg, SchemaConfiguration configuration) | | [AdditionalpropertiesWithSchema1BoxedMap](#additionalpropertieswithschema1boxedmap) | validateAndBox([Map<?, ?>](#additionalpropertieswithschemamapbuilder) arg, SchemaConfiguration configuration) | +| [AdditionalpropertiesWithSchema1Boxed](#additionalpropertieswithschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## AdditionalpropertiesWithSchemaMapBuilder public class AdditionalpropertiesWithSchemaMapBuilder
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_1_0_unit_test/java/docs/components/schemas/Allof.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/Allof.md index 208abe021c6..079e4fe18ca 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/Allof.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/AllofCombinedWithAnyofOneof.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/AllofCombinedWithAnyofOneof.md index 6a21dc5716c..8aa4f4859ce 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/AllofCombinedWithAnyofOneof.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/AllofSimpleTypes.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/AllofSimpleTypes.md index 0d06f2192b5..6e506fe215a 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/AllofSimpleTypes.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/AllofWithBaseSchema.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/AllofWithBaseSchema.md index 02f0f53d81e..81125243a09 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/AllofWithBaseSchema.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/AllofWithOneEmptySchema.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/AllofWithOneEmptySchema.md index 8bb3b9ca2ec..353eef7b1a4 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/AllofWithOneEmptySchema.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/AllofWithTheFirstEmptySchema.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/AllofWithTheFirstEmptySchema.md index 60262417c7c..f4341590119 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/AllofWithTheFirstEmptySchema.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/AllofWithTheLastEmptySchema.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/AllofWithTheLastEmptySchema.md index f43f920d986..6d626d52eb9 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/AllofWithTheLastEmptySchema.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/AllofWithTwoEmptySchemas.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/AllofWithTwoEmptySchemas.md index e72c6155a05..4875f70770c 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/AllofWithTwoEmptySchemas.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/Anyof.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/Anyof.md index 8c0f413375b..316b94bb0d9 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/Anyof.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/AnyofComplexTypes.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/AnyofComplexTypes.md index 3b0fde2e61d..9d0ee6763c9 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/AnyofComplexTypes.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/AnyofWithBaseSchema.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/AnyofWithBaseSchema.md index 4f9f5d6e379..d0b22fd2a54 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/AnyofWithBaseSchema.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/AnyofWithBaseSchema.md @@ -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_1_0_unit_test/java/docs/components/schemas/AnyofWithOneEmptySchema.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/AnyofWithOneEmptySchema.md index 420dfa38f67..863a2b98c1b 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/AnyofWithOneEmptySchema.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/ArrayTypeMatchesArrays.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/ArrayTypeMatchesArrays.md index b260b0f451d..a81c51803a8 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/ArrayTypeMatchesArrays.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/ArrayTypeMatchesArrays.md @@ -4,38 +4,39 @@ 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 ## 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 | ## 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(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 | ## ArrayTypeMatchesArrays1 public static class ArrayTypeMatchesArrays1
diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/BooleanTypeMatchesBooleans.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/BooleanTypeMatchesBooleans.md index 5b620b259bf..96a41c9abfc 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/BooleanTypeMatchesBooleans.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/ByInt.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/ByInt.md index 377a402b485..a403f2e86af 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/ByInt.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/ByNumber.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/ByNumber.md index 392dc99034c..18757b1d71f 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/ByNumber.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/BySmallNumber.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/BySmallNumber.md index a611d905af7..db570d6827a 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/BySmallNumber.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/ConstNulCharactersInStrings.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/ConstNulCharactersInStrings.md index ac1000de6c6..e406aa2b1d1 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/ConstNulCharactersInStrings.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/ConstNulCharactersInStrings.md @@ -4,25 +4,25 @@ public class ConstNulCharactersInStrings
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 | [ConstNulCharactersInStrings.ConstNulCharactersInStrings1Boxed](#constnulcharactersinstrings1boxed)
abstract sealed validated payload class | -| static class | [ConstNulCharactersInStrings.ConstNulCharactersInStrings1BoxedVoid](#constnulcharactersinstrings1boxedvoid)
boxed class to store validated null payloads | -| static class | [ConstNulCharactersInStrings.ConstNulCharactersInStrings1BoxedBoolean](#constnulcharactersinstrings1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ConstNulCharactersInStrings.ConstNulCharactersInStrings1BoxedNumber](#constnulcharactersinstrings1boxednumber)
boxed class to store validated Number payloads | -| static class | [ConstNulCharactersInStrings.ConstNulCharactersInStrings1BoxedString](#constnulcharactersinstrings1boxedstring)
boxed class to store validated String payloads | -| static class | [ConstNulCharactersInStrings.ConstNulCharactersInStrings1BoxedList](#constnulcharactersinstrings1boxedlist)
boxed class to store validated List payloads | -| static class | [ConstNulCharactersInStrings.ConstNulCharactersInStrings1BoxedMap](#constnulcharactersinstrings1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ConstNulCharactersInStrings.ConstNulCharactersInStrings1Boxed](#constnulcharactersinstrings1boxed)
sealed interface for validated payloads | +| record | [ConstNulCharactersInStrings.ConstNulCharactersInStrings1BoxedVoid](#constnulcharactersinstrings1boxedvoid)
boxed class to store validated null payloads | +| record | [ConstNulCharactersInStrings.ConstNulCharactersInStrings1BoxedBoolean](#constnulcharactersinstrings1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ConstNulCharactersInStrings.ConstNulCharactersInStrings1BoxedNumber](#constnulcharactersinstrings1boxednumber)
boxed class to store validated Number payloads | +| record | [ConstNulCharactersInStrings.ConstNulCharactersInStrings1BoxedString](#constnulcharactersinstrings1boxedstring)
boxed class to store validated String payloads | +| record | [ConstNulCharactersInStrings.ConstNulCharactersInStrings1BoxedList](#constnulcharactersinstrings1boxedlist)
boxed class to store validated List payloads | +| record | [ConstNulCharactersInStrings.ConstNulCharactersInStrings1BoxedMap](#constnulcharactersinstrings1boxedmap)
boxed class to store validated Map payloads | | static class | [ConstNulCharactersInStrings.ConstNulCharactersInStrings1](#constnulcharactersinstrings1)
schema class | | enum | [ConstNulCharactersInStrings.StringConstNulCharactersInStringsConst](#stringconstnulcharactersinstringsconst)
String enum | ## ConstNulCharactersInStrings1Boxed -public static abstract sealed class ConstNulCharactersInStrings1Boxed
+public sealed interface ConstNulCharactersInStrings1Boxed
permits
[ConstNulCharactersInStrings1BoxedVoid](#constnulcharactersinstrings1boxedvoid), [ConstNulCharactersInStrings1BoxedBoolean](#constnulcharactersinstrings1boxedboolean), @@ -31,103 +31,109 @@ permits
[ConstNulCharactersInStrings1BoxedList](#constnulcharactersinstrings1boxedlist), [ConstNulCharactersInStrings1BoxedMap](#constnulcharactersinstrings1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ConstNulCharactersInStrings1BoxedVoid -public static final class ConstNulCharactersInStrings1BoxedVoid
-extends [ConstNulCharactersInStrings1Boxed](#constnulcharactersinstrings1boxed) +public record ConstNulCharactersInStrings1BoxedVoid
+implements [ConstNulCharactersInStrings1Boxed](#constnulcharactersinstrings1boxed) -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 | | --------------------------- | | ConstNulCharactersInStrings1BoxedVoid(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 | ## ConstNulCharactersInStrings1BoxedBoolean -public static final class ConstNulCharactersInStrings1BoxedBoolean
-extends [ConstNulCharactersInStrings1Boxed](#constnulcharactersinstrings1boxed) +public record ConstNulCharactersInStrings1BoxedBoolean
+implements [ConstNulCharactersInStrings1Boxed](#constnulcharactersinstrings1boxed) -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 | | --------------------------- | | ConstNulCharactersInStrings1BoxedBoolean(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 | ## ConstNulCharactersInStrings1BoxedNumber -public static final class ConstNulCharactersInStrings1BoxedNumber
-extends [ConstNulCharactersInStrings1Boxed](#constnulcharactersinstrings1boxed) +public record ConstNulCharactersInStrings1BoxedNumber
+implements [ConstNulCharactersInStrings1Boxed](#constnulcharactersinstrings1boxed) -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 | | --------------------------- | | ConstNulCharactersInStrings1BoxedNumber(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 | ## ConstNulCharactersInStrings1BoxedString -public static final class ConstNulCharactersInStrings1BoxedString
-extends [ConstNulCharactersInStrings1Boxed](#constnulcharactersinstrings1boxed) +public record ConstNulCharactersInStrings1BoxedString
+implements [ConstNulCharactersInStrings1Boxed](#constnulcharactersinstrings1boxed) -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 | | --------------------------- | | ConstNulCharactersInStrings1BoxedString(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 | ## ConstNulCharactersInStrings1BoxedList -public static final class ConstNulCharactersInStrings1BoxedList
-extends [ConstNulCharactersInStrings1Boxed](#constnulcharactersinstrings1boxed) +public record ConstNulCharactersInStrings1BoxedList
+implements [ConstNulCharactersInStrings1Boxed](#constnulcharactersinstrings1boxed) -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 | | --------------------------- | | ConstNulCharactersInStrings1BoxedList(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 | ## ConstNulCharactersInStrings1BoxedMap -public static final class ConstNulCharactersInStrings1BoxedMap
-extends [ConstNulCharactersInStrings1Boxed](#constnulcharactersinstrings1boxed) +public record ConstNulCharactersInStrings1BoxedMap
+implements [ConstNulCharactersInStrings1Boxed](#constnulcharactersinstrings1boxed) -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 | | --------------------------- | | ConstNulCharactersInStrings1BoxedMap(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 | ## ConstNulCharactersInStrings1 public static class ConstNulCharactersInStrings1
@@ -159,7 +165,9 @@ A schema class that validates payloads | [ConstNulCharactersInStrings1BoxedBoolean](#constnulcharactersinstrings1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ConstNulCharactersInStrings1BoxedMap](#constnulcharactersinstrings1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [ConstNulCharactersInStrings1BoxedList](#constnulcharactersinstrings1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ConstNulCharactersInStrings1Boxed](#constnulcharactersinstrings1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringConstNulCharactersInStringsConst public enum StringConstNulCharactersInStringsConst
extends `Enum` diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/ContainsKeywordValidation.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/ContainsKeywordValidation.md index decc1ece47f..939c4213f16 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/ContainsKeywordValidation.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/ContainsKeywordValidation.md @@ -4,31 +4,31 @@ public class ContainsKeywordValidation
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 | [ContainsKeywordValidation.ContainsKeywordValidation1Boxed](#containskeywordvalidation1boxed)
abstract sealed validated payload class | -| static class | [ContainsKeywordValidation.ContainsKeywordValidation1BoxedVoid](#containskeywordvalidation1boxedvoid)
boxed class to store validated null payloads | -| static class | [ContainsKeywordValidation.ContainsKeywordValidation1BoxedBoolean](#containskeywordvalidation1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ContainsKeywordValidation.ContainsKeywordValidation1BoxedNumber](#containskeywordvalidation1boxednumber)
boxed class to store validated Number payloads | -| static class | [ContainsKeywordValidation.ContainsKeywordValidation1BoxedString](#containskeywordvalidation1boxedstring)
boxed class to store validated String payloads | -| static class | [ContainsKeywordValidation.ContainsKeywordValidation1BoxedList](#containskeywordvalidation1boxedlist)
boxed class to store validated List payloads | -| static class | [ContainsKeywordValidation.ContainsKeywordValidation1BoxedMap](#containskeywordvalidation1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ContainsKeywordValidation.ContainsKeywordValidation1Boxed](#containskeywordvalidation1boxed)
sealed interface for validated payloads | +| record | [ContainsKeywordValidation.ContainsKeywordValidation1BoxedVoid](#containskeywordvalidation1boxedvoid)
boxed class to store validated null payloads | +| record | [ContainsKeywordValidation.ContainsKeywordValidation1BoxedBoolean](#containskeywordvalidation1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ContainsKeywordValidation.ContainsKeywordValidation1BoxedNumber](#containskeywordvalidation1boxednumber)
boxed class to store validated Number payloads | +| record | [ContainsKeywordValidation.ContainsKeywordValidation1BoxedString](#containskeywordvalidation1boxedstring)
boxed class to store validated String payloads | +| record | [ContainsKeywordValidation.ContainsKeywordValidation1BoxedList](#containskeywordvalidation1boxedlist)
boxed class to store validated List payloads | +| record | [ContainsKeywordValidation.ContainsKeywordValidation1BoxedMap](#containskeywordvalidation1boxedmap)
boxed class to store validated Map payloads | | static class | [ContainsKeywordValidation.ContainsKeywordValidation1](#containskeywordvalidation1)
schema class | -| static class | [ContainsKeywordValidation.ContainsBoxed](#containsboxed)
abstract sealed validated payload class | -| static class | [ContainsKeywordValidation.ContainsBoxedVoid](#containsboxedvoid)
boxed class to store validated null payloads | -| static class | [ContainsKeywordValidation.ContainsBoxedBoolean](#containsboxedboolean)
boxed class to store validated boolean payloads | -| static class | [ContainsKeywordValidation.ContainsBoxedNumber](#containsboxednumber)
boxed class to store validated Number payloads | -| static class | [ContainsKeywordValidation.ContainsBoxedString](#containsboxedstring)
boxed class to store validated String payloads | -| static class | [ContainsKeywordValidation.ContainsBoxedList](#containsboxedlist)
boxed class to store validated List payloads | -| static class | [ContainsKeywordValidation.ContainsBoxedMap](#containsboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ContainsKeywordValidation.ContainsBoxed](#containsboxed)
sealed interface for validated payloads | +| record | [ContainsKeywordValidation.ContainsBoxedVoid](#containsboxedvoid)
boxed class to store validated null payloads | +| record | [ContainsKeywordValidation.ContainsBoxedBoolean](#containsboxedboolean)
boxed class to store validated boolean payloads | +| record | [ContainsKeywordValidation.ContainsBoxedNumber](#containsboxednumber)
boxed class to store validated Number payloads | +| record | [ContainsKeywordValidation.ContainsBoxedString](#containsboxedstring)
boxed class to store validated String payloads | +| record | [ContainsKeywordValidation.ContainsBoxedList](#containsboxedlist)
boxed class to store validated List payloads | +| record | [ContainsKeywordValidation.ContainsBoxedMap](#containsboxedmap)
boxed class to store validated Map payloads | | static class | [ContainsKeywordValidation.Contains](#contains)
schema class | ## ContainsKeywordValidation1Boxed -public static abstract sealed class ContainsKeywordValidation1Boxed
+public sealed interface ContainsKeywordValidation1Boxed
permits
[ContainsKeywordValidation1BoxedVoid](#containskeywordvalidation1boxedvoid), [ContainsKeywordValidation1BoxedBoolean](#containskeywordvalidation1boxedboolean), @@ -37,103 +37,109 @@ permits
[ContainsKeywordValidation1BoxedList](#containskeywordvalidation1boxedlist), [ContainsKeywordValidation1BoxedMap](#containskeywordvalidation1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ContainsKeywordValidation1BoxedVoid -public static final class ContainsKeywordValidation1BoxedVoid
-extends [ContainsKeywordValidation1Boxed](#containskeywordvalidation1boxed) +public record ContainsKeywordValidation1BoxedVoid
+implements [ContainsKeywordValidation1Boxed](#containskeywordvalidation1boxed) -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 | | --------------------------- | | ContainsKeywordValidation1BoxedVoid(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 | ## ContainsKeywordValidation1BoxedBoolean -public static final class ContainsKeywordValidation1BoxedBoolean
-extends [ContainsKeywordValidation1Boxed](#containskeywordvalidation1boxed) +public record ContainsKeywordValidation1BoxedBoolean
+implements [ContainsKeywordValidation1Boxed](#containskeywordvalidation1boxed) -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 | | --------------------------- | | ContainsKeywordValidation1BoxedBoolean(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 | ## ContainsKeywordValidation1BoxedNumber -public static final class ContainsKeywordValidation1BoxedNumber
-extends [ContainsKeywordValidation1Boxed](#containskeywordvalidation1boxed) +public record ContainsKeywordValidation1BoxedNumber
+implements [ContainsKeywordValidation1Boxed](#containskeywordvalidation1boxed) -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 | | --------------------------- | | ContainsKeywordValidation1BoxedNumber(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 | ## ContainsKeywordValidation1BoxedString -public static final class ContainsKeywordValidation1BoxedString
-extends [ContainsKeywordValidation1Boxed](#containskeywordvalidation1boxed) +public record ContainsKeywordValidation1BoxedString
+implements [ContainsKeywordValidation1Boxed](#containskeywordvalidation1boxed) -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 | | --------------------------- | | ContainsKeywordValidation1BoxedString(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 | ## ContainsKeywordValidation1BoxedList -public static final class ContainsKeywordValidation1BoxedList
-extends [ContainsKeywordValidation1Boxed](#containskeywordvalidation1boxed) +public record ContainsKeywordValidation1BoxedList
+implements [ContainsKeywordValidation1Boxed](#containskeywordvalidation1boxed) -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 | | --------------------------- | | ContainsKeywordValidation1BoxedList(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 | ## ContainsKeywordValidation1BoxedMap -public static final class ContainsKeywordValidation1BoxedMap
-extends [ContainsKeywordValidation1Boxed](#containskeywordvalidation1boxed) +public record ContainsKeywordValidation1BoxedMap
+implements [ContainsKeywordValidation1Boxed](#containskeywordvalidation1boxed) -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 | | --------------------------- | | ContainsKeywordValidation1BoxedMap(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 | ## ContainsKeywordValidation1 public static class ContainsKeywordValidation1
@@ -165,9 +171,11 @@ A schema class that validates payloads | [ContainsKeywordValidation1BoxedBoolean](#containskeywordvalidation1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ContainsKeywordValidation1BoxedMap](#containskeywordvalidation1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [ContainsKeywordValidation1BoxedList](#containskeywordvalidation1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ContainsKeywordValidation1Boxed](#containskeywordvalidation1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ContainsBoxed -public static abstract sealed class ContainsBoxed
+public sealed interface ContainsBoxed
permits
[ContainsBoxedVoid](#containsboxedvoid), [ContainsBoxedBoolean](#containsboxedboolean), @@ -176,103 +184,109 @@ permits
[ContainsBoxedList](#containsboxedlist), [ContainsBoxedMap](#containsboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ContainsBoxedVoid -public static final class ContainsBoxedVoid
-extends [ContainsBoxed](#containsboxed) +public record ContainsBoxedVoid
+implements [ContainsBoxed](#containsboxed) -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 | | --------------------------- | | ContainsBoxedVoid(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 | ## ContainsBoxedBoolean -public static final class ContainsBoxedBoolean
-extends [ContainsBoxed](#containsboxed) +public record ContainsBoxedBoolean
+implements [ContainsBoxed](#containsboxed) -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 | | --------------------------- | | ContainsBoxedBoolean(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 | ## ContainsBoxedNumber -public static final class ContainsBoxedNumber
-extends [ContainsBoxed](#containsboxed) +public record ContainsBoxedNumber
+implements [ContainsBoxed](#containsboxed) -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 | | --------------------------- | | ContainsBoxedNumber(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 | ## ContainsBoxedString -public static final class ContainsBoxedString
-extends [ContainsBoxed](#containsboxed) +public record ContainsBoxedString
+implements [ContainsBoxed](#containsboxed) -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 | | --------------------------- | | ContainsBoxedString(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 | ## ContainsBoxedList -public static final class ContainsBoxedList
-extends [ContainsBoxed](#containsboxed) +public record ContainsBoxedList
+implements [ContainsBoxed](#containsboxed) -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 | | --------------------------- | | ContainsBoxedList(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 | ## ContainsBoxedMap -public static final class ContainsBoxedMap
-extends [ContainsBoxed](#containsboxed) +public record ContainsBoxedMap
+implements [ContainsBoxed](#containsboxed) -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 | | --------------------------- | | ContainsBoxedMap(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 | ## Contains public static class Contains
@@ -304,5 +318,7 @@ A schema class that validates payloads | [ContainsBoxedBoolean](#containsboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ContainsBoxedMap](#containsboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [ContainsBoxedList](#containsboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ContainsBoxed](#containsboxed) | 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_1_0_unit_test/java/docs/components/schemas/ContainsWithNullInstanceElements.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/ContainsWithNullInstanceElements.md index c434fd7f958..ff7b6e33b02 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/ContainsWithNullInstanceElements.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/ContainsWithNullInstanceElements.md @@ -4,26 +4,26 @@ public class ContainsWithNullInstanceElements
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 | [ContainsWithNullInstanceElements.ContainsWithNullInstanceElements1Boxed](#containswithnullinstanceelements1boxed)
abstract sealed validated payload class | -| static class | [ContainsWithNullInstanceElements.ContainsWithNullInstanceElements1BoxedVoid](#containswithnullinstanceelements1boxedvoid)
boxed class to store validated null payloads | -| static class | [ContainsWithNullInstanceElements.ContainsWithNullInstanceElements1BoxedBoolean](#containswithnullinstanceelements1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ContainsWithNullInstanceElements.ContainsWithNullInstanceElements1BoxedNumber](#containswithnullinstanceelements1boxednumber)
boxed class to store validated Number payloads | -| static class | [ContainsWithNullInstanceElements.ContainsWithNullInstanceElements1BoxedString](#containswithnullinstanceelements1boxedstring)
boxed class to store validated String payloads | -| static class | [ContainsWithNullInstanceElements.ContainsWithNullInstanceElements1BoxedList](#containswithnullinstanceelements1boxedlist)
boxed class to store validated List payloads | -| static class | [ContainsWithNullInstanceElements.ContainsWithNullInstanceElements1BoxedMap](#containswithnullinstanceelements1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ContainsWithNullInstanceElements.ContainsWithNullInstanceElements1Boxed](#containswithnullinstanceelements1boxed)
sealed interface for validated payloads | +| record | [ContainsWithNullInstanceElements.ContainsWithNullInstanceElements1BoxedVoid](#containswithnullinstanceelements1boxedvoid)
boxed class to store validated null payloads | +| record | [ContainsWithNullInstanceElements.ContainsWithNullInstanceElements1BoxedBoolean](#containswithnullinstanceelements1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ContainsWithNullInstanceElements.ContainsWithNullInstanceElements1BoxedNumber](#containswithnullinstanceelements1boxednumber)
boxed class to store validated Number payloads | +| record | [ContainsWithNullInstanceElements.ContainsWithNullInstanceElements1BoxedString](#containswithnullinstanceelements1boxedstring)
boxed class to store validated String payloads | +| record | [ContainsWithNullInstanceElements.ContainsWithNullInstanceElements1BoxedList](#containswithnullinstanceelements1boxedlist)
boxed class to store validated List payloads | +| record | [ContainsWithNullInstanceElements.ContainsWithNullInstanceElements1BoxedMap](#containswithnullinstanceelements1boxedmap)
boxed class to store validated Map payloads | | static class | [ContainsWithNullInstanceElements.ContainsWithNullInstanceElements1](#containswithnullinstanceelements1)
schema class | -| static class | [ContainsWithNullInstanceElements.ContainsBoxed](#containsboxed)
abstract sealed validated payload class | -| static class | [ContainsWithNullInstanceElements.ContainsBoxedVoid](#containsboxedvoid)
boxed class to store validated null payloads | +| sealed interface | [ContainsWithNullInstanceElements.ContainsBoxed](#containsboxed)
sealed interface for validated payloads | +| record | [ContainsWithNullInstanceElements.ContainsBoxedVoid](#containsboxedvoid)
boxed class to store validated null payloads | | static class | [ContainsWithNullInstanceElements.Contains](#contains)
schema class | ## ContainsWithNullInstanceElements1Boxed -public static abstract sealed class ContainsWithNullInstanceElements1Boxed
+public sealed interface ContainsWithNullInstanceElements1Boxed
permits
[ContainsWithNullInstanceElements1BoxedVoid](#containswithnullinstanceelements1boxedvoid), [ContainsWithNullInstanceElements1BoxedBoolean](#containswithnullinstanceelements1boxedboolean), @@ -32,103 +32,109 @@ permits
[ContainsWithNullInstanceElements1BoxedList](#containswithnullinstanceelements1boxedlist), [ContainsWithNullInstanceElements1BoxedMap](#containswithnullinstanceelements1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ContainsWithNullInstanceElements1BoxedVoid -public static final class ContainsWithNullInstanceElements1BoxedVoid
-extends [ContainsWithNullInstanceElements1Boxed](#containswithnullinstanceelements1boxed) +public record ContainsWithNullInstanceElements1BoxedVoid
+implements [ContainsWithNullInstanceElements1Boxed](#containswithnullinstanceelements1boxed) -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 | | --------------------------- | | ContainsWithNullInstanceElements1BoxedVoid(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 | ## ContainsWithNullInstanceElements1BoxedBoolean -public static final class ContainsWithNullInstanceElements1BoxedBoolean
-extends [ContainsWithNullInstanceElements1Boxed](#containswithnullinstanceelements1boxed) +public record ContainsWithNullInstanceElements1BoxedBoolean
+implements [ContainsWithNullInstanceElements1Boxed](#containswithnullinstanceelements1boxed) -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 | | --------------------------- | | ContainsWithNullInstanceElements1BoxedBoolean(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 | ## ContainsWithNullInstanceElements1BoxedNumber -public static final class ContainsWithNullInstanceElements1BoxedNumber
-extends [ContainsWithNullInstanceElements1Boxed](#containswithnullinstanceelements1boxed) +public record ContainsWithNullInstanceElements1BoxedNumber
+implements [ContainsWithNullInstanceElements1Boxed](#containswithnullinstanceelements1boxed) -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 | | --------------------------- | | ContainsWithNullInstanceElements1BoxedNumber(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 | ## ContainsWithNullInstanceElements1BoxedString -public static final class ContainsWithNullInstanceElements1BoxedString
-extends [ContainsWithNullInstanceElements1Boxed](#containswithnullinstanceelements1boxed) +public record ContainsWithNullInstanceElements1BoxedString
+implements [ContainsWithNullInstanceElements1Boxed](#containswithnullinstanceelements1boxed) -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 | | --------------------------- | | ContainsWithNullInstanceElements1BoxedString(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 | ## ContainsWithNullInstanceElements1BoxedList -public static final class ContainsWithNullInstanceElements1BoxedList
-extends [ContainsWithNullInstanceElements1Boxed](#containswithnullinstanceelements1boxed) +public record ContainsWithNullInstanceElements1BoxedList
+implements [ContainsWithNullInstanceElements1Boxed](#containswithnullinstanceelements1boxed) -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 | | --------------------------- | | ContainsWithNullInstanceElements1BoxedList(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 | ## ContainsWithNullInstanceElements1BoxedMap -public static final class ContainsWithNullInstanceElements1BoxedMap
-extends [ContainsWithNullInstanceElements1Boxed](#containswithnullinstanceelements1boxed) +public record ContainsWithNullInstanceElements1BoxedMap
+implements [ContainsWithNullInstanceElements1Boxed](#containswithnullinstanceelements1boxed) -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 | | --------------------------- | | ContainsWithNullInstanceElements1BoxedMap(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 | ## ContainsWithNullInstanceElements1 public static class ContainsWithNullInstanceElements1
@@ -160,29 +166,32 @@ A schema class that validates payloads | [ContainsWithNullInstanceElements1BoxedBoolean](#containswithnullinstanceelements1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ContainsWithNullInstanceElements1BoxedMap](#containswithnullinstanceelements1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [ContainsWithNullInstanceElements1BoxedList](#containswithnullinstanceelements1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ContainsWithNullInstanceElements1Boxed](#containswithnullinstanceelements1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ContainsBoxed -public static abstract sealed class ContainsBoxed
+public sealed interface ContainsBoxed
permits
[ContainsBoxedVoid](#containsboxedvoid) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ContainsBoxedVoid -public static final class ContainsBoxedVoid
-extends [ContainsBoxed](#containsboxed) +public record ContainsBoxedVoid
+implements [ContainsBoxed](#containsboxed) -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 | | --------------------------- | | ContainsBoxedVoid(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 | ## Contains public static class Contains
diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/DateFormat.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/DateFormat.md index ecf0b1d60bb..8e7001d5b91 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/DateFormat.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/DateFormat.md @@ -4,23 +4,23 @@ public class DateFormat
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 | [DateFormat.DateFormat1Boxed](#dateformat1boxed)
abstract sealed validated payload class | -| static class | [DateFormat.DateFormat1BoxedVoid](#dateformat1boxedvoid)
boxed class to store validated null payloads | -| static class | [DateFormat.DateFormat1BoxedBoolean](#dateformat1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [DateFormat.DateFormat1BoxedNumber](#dateformat1boxednumber)
boxed class to store validated Number payloads | -| static class | [DateFormat.DateFormat1BoxedString](#dateformat1boxedstring)
boxed class to store validated String payloads | -| static class | [DateFormat.DateFormat1BoxedList](#dateformat1boxedlist)
boxed class to store validated List payloads | -| static class | [DateFormat.DateFormat1BoxedMap](#dateformat1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [DateFormat.DateFormat1Boxed](#dateformat1boxed)
sealed interface for validated payloads | +| record | [DateFormat.DateFormat1BoxedVoid](#dateformat1boxedvoid)
boxed class to store validated null payloads | +| record | [DateFormat.DateFormat1BoxedBoolean](#dateformat1boxedboolean)
boxed class to store validated boolean payloads | +| record | [DateFormat.DateFormat1BoxedNumber](#dateformat1boxednumber)
boxed class to store validated Number payloads | +| record | [DateFormat.DateFormat1BoxedString](#dateformat1boxedstring)
boxed class to store validated String payloads | +| record | [DateFormat.DateFormat1BoxedList](#dateformat1boxedlist)
boxed class to store validated List payloads | +| record | [DateFormat.DateFormat1BoxedMap](#dateformat1boxedmap)
boxed class to store validated Map payloads | | static class | [DateFormat.DateFormat1](#dateformat1)
schema class | ## DateFormat1Boxed -public static abstract sealed class DateFormat1Boxed
+public sealed interface DateFormat1Boxed
permits
[DateFormat1BoxedVoid](#dateformat1boxedvoid), [DateFormat1BoxedBoolean](#dateformat1boxedboolean), @@ -29,103 +29,109 @@ permits
[DateFormat1BoxedList](#dateformat1boxedlist), [DateFormat1BoxedMap](#dateformat1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## DateFormat1BoxedVoid -public static final class DateFormat1BoxedVoid
-extends [DateFormat1Boxed](#dateformat1boxed) +public record DateFormat1BoxedVoid
+implements [DateFormat1Boxed](#dateformat1boxed) -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 | | --------------------------- | | DateFormat1BoxedVoid(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 | ## DateFormat1BoxedBoolean -public static final class DateFormat1BoxedBoolean
-extends [DateFormat1Boxed](#dateformat1boxed) +public record DateFormat1BoxedBoolean
+implements [DateFormat1Boxed](#dateformat1boxed) -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 | | --------------------------- | | DateFormat1BoxedBoolean(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 | ## DateFormat1BoxedNumber -public static final class DateFormat1BoxedNumber
-extends [DateFormat1Boxed](#dateformat1boxed) +public record DateFormat1BoxedNumber
+implements [DateFormat1Boxed](#dateformat1boxed) -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 | | --------------------------- | | DateFormat1BoxedNumber(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 | ## DateFormat1BoxedString -public static final class DateFormat1BoxedString
-extends [DateFormat1Boxed](#dateformat1boxed) +public record DateFormat1BoxedString
+implements [DateFormat1Boxed](#dateformat1boxed) -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 | | --------------------------- | | DateFormat1BoxedString(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 | ## DateFormat1BoxedList -public static final class DateFormat1BoxedList
-extends [DateFormat1Boxed](#dateformat1boxed) +public record DateFormat1BoxedList
+implements [DateFormat1Boxed](#dateformat1boxed) -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 | | --------------------------- | | DateFormat1BoxedList(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 | ## DateFormat1BoxedMap -public static final class DateFormat1BoxedMap
-extends [DateFormat1Boxed](#dateformat1boxed) +public record DateFormat1BoxedMap
+implements [DateFormat1Boxed](#dateformat1boxed) -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 | | --------------------------- | | DateFormat1BoxedMap(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 | ## DateFormat1 public static class DateFormat1
@@ -157,5 +163,7 @@ A schema class that validates payloads | [DateFormat1BoxedBoolean](#dateformat1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [DateFormat1BoxedMap](#dateformat1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [DateFormat1BoxedList](#dateformat1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [DateFormat1Boxed](#dateformat1boxed) | 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_1_0_unit_test/java/docs/components/schemas/DateTimeFormat.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/DateTimeFormat.md index 43524236e9c..dc179875fd1 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/DateTimeFormat.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/DependentSchemasDependenciesWithEscapedCharacters.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/DependentSchemasDependenciesWithEscapedCharacters.md index ee583b0780d..cb50a64bfc5 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/DependentSchemasDependenciesWithEscapedCharacters.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/DependentSchemasDependenciesWithEscapedCharacters.md @@ -4,7 +4,7 @@ public class DependentSchemasDependenciesWithEscapedCharacters
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 | [DependentSchemasDependenciesWithEscapedCharacters.DependentSchemasDependenciesWithEscapedCharacters1Boxed](#dependentschemasdependencieswithescapedcharacters1boxed)
abstract sealed validated payload class | -| static class | [DependentSchemasDependenciesWithEscapedCharacters.DependentSchemasDependenciesWithEscapedCharacters1BoxedVoid](#dependentschemasdependencieswithescapedcharacters1boxedvoid)
boxed class to store validated null payloads | -| static class | [DependentSchemasDependenciesWithEscapedCharacters.DependentSchemasDependenciesWithEscapedCharacters1BoxedBoolean](#dependentschemasdependencieswithescapedcharacters1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [DependentSchemasDependenciesWithEscapedCharacters.DependentSchemasDependenciesWithEscapedCharacters1BoxedNumber](#dependentschemasdependencieswithescapedcharacters1boxednumber)
boxed class to store validated Number payloads | -| static class | [DependentSchemasDependenciesWithEscapedCharacters.DependentSchemasDependenciesWithEscapedCharacters1BoxedString](#dependentschemasdependencieswithescapedcharacters1boxedstring)
boxed class to store validated String payloads | -| static class | [DependentSchemasDependenciesWithEscapedCharacters.DependentSchemasDependenciesWithEscapedCharacters1BoxedList](#dependentschemasdependencieswithescapedcharacters1boxedlist)
boxed class to store validated List payloads | -| static class | [DependentSchemasDependenciesWithEscapedCharacters.DependentSchemasDependenciesWithEscapedCharacters1BoxedMap](#dependentschemasdependencieswithescapedcharacters1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [DependentSchemasDependenciesWithEscapedCharacters.DependentSchemasDependenciesWithEscapedCharacters1Boxed](#dependentschemasdependencieswithescapedcharacters1boxed)
sealed interface for validated payloads | +| record | [DependentSchemasDependenciesWithEscapedCharacters.DependentSchemasDependenciesWithEscapedCharacters1BoxedVoid](#dependentschemasdependencieswithescapedcharacters1boxedvoid)
boxed class to store validated null payloads | +| record | [DependentSchemasDependenciesWithEscapedCharacters.DependentSchemasDependenciesWithEscapedCharacters1BoxedBoolean](#dependentschemasdependencieswithescapedcharacters1boxedboolean)
boxed class to store validated boolean payloads | +| record | [DependentSchemasDependenciesWithEscapedCharacters.DependentSchemasDependenciesWithEscapedCharacters1BoxedNumber](#dependentschemasdependencieswithescapedcharacters1boxednumber)
boxed class to store validated Number payloads | +| record | [DependentSchemasDependenciesWithEscapedCharacters.DependentSchemasDependenciesWithEscapedCharacters1BoxedString](#dependentschemasdependencieswithescapedcharacters1boxedstring)
boxed class to store validated String payloads | +| record | [DependentSchemasDependenciesWithEscapedCharacters.DependentSchemasDependenciesWithEscapedCharacters1BoxedList](#dependentschemasdependencieswithescapedcharacters1boxedlist)
boxed class to store validated List payloads | +| record | [DependentSchemasDependenciesWithEscapedCharacters.DependentSchemasDependenciesWithEscapedCharacters1BoxedMap](#dependentschemasdependencieswithescapedcharacters1boxedmap)
boxed class to store validated Map payloads | | static class | [DependentSchemasDependenciesWithEscapedCharacters.DependentSchemasDependenciesWithEscapedCharacters1](#dependentschemasdependencieswithescapedcharacters1)
schema class | -| static class | [DependentSchemasDependenciesWithEscapedCharacters.FoobarBoxed](#foobarboxed)
abstract sealed validated payload class | -| static class | [DependentSchemasDependenciesWithEscapedCharacters.FoobarBoxedVoid](#foobarboxedvoid)
boxed class to store validated null payloads | -| static class | [DependentSchemasDependenciesWithEscapedCharacters.FoobarBoxedBoolean](#foobarboxedboolean)
boxed class to store validated boolean payloads | -| static class | [DependentSchemasDependenciesWithEscapedCharacters.FoobarBoxedNumber](#foobarboxednumber)
boxed class to store validated Number payloads | -| static class | [DependentSchemasDependenciesWithEscapedCharacters.FoobarBoxedString](#foobarboxedstring)
boxed class to store validated String payloads | -| static class | [DependentSchemasDependenciesWithEscapedCharacters.FoobarBoxedList](#foobarboxedlist)
boxed class to store validated List payloads | -| static class | [DependentSchemasDependenciesWithEscapedCharacters.FoobarBoxedMap](#foobarboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [DependentSchemasDependenciesWithEscapedCharacters.FoobarBoxed](#foobarboxed)
sealed interface for validated payloads | +| record | [DependentSchemasDependenciesWithEscapedCharacters.FoobarBoxedVoid](#foobarboxedvoid)
boxed class to store validated null payloads | +| record | [DependentSchemasDependenciesWithEscapedCharacters.FoobarBoxedBoolean](#foobarboxedboolean)
boxed class to store validated boolean payloads | +| record | [DependentSchemasDependenciesWithEscapedCharacters.FoobarBoxedNumber](#foobarboxednumber)
boxed class to store validated Number payloads | +| record | [DependentSchemasDependenciesWithEscapedCharacters.FoobarBoxedString](#foobarboxedstring)
boxed class to store validated String payloads | +| record | [DependentSchemasDependenciesWithEscapedCharacters.FoobarBoxedList](#foobarboxedlist)
boxed class to store validated List payloads | +| record | [DependentSchemasDependenciesWithEscapedCharacters.FoobarBoxedMap](#foobarboxedmap)
boxed class to store validated Map payloads | | static class | [DependentSchemasDependenciesWithEscapedCharacters.Foobar](#foobar)
schema class | | static class | [DependentSchemasDependenciesWithEscapedCharacters.FoobarMapBuilder](#foobarmapbuilder)
builder for Map payloads | | static class | [DependentSchemasDependenciesWithEscapedCharacters.FoobarMap](#foobarmap)
output class for Map payloads | -| static class | [DependentSchemasDependenciesWithEscapedCharacters.FootbarBoxed](#footbarboxed)
abstract sealed validated payload class | -| static class | [DependentSchemasDependenciesWithEscapedCharacters.FootbarBoxedVoid](#footbarboxedvoid)
boxed class to store validated null payloads | -| static class | [DependentSchemasDependenciesWithEscapedCharacters.FootbarBoxedBoolean](#footbarboxedboolean)
boxed class to store validated boolean payloads | -| static class | [DependentSchemasDependenciesWithEscapedCharacters.FootbarBoxedNumber](#footbarboxednumber)
boxed class to store validated Number payloads | -| static class | [DependentSchemasDependenciesWithEscapedCharacters.FootbarBoxedString](#footbarboxedstring)
boxed class to store validated String payloads | -| static class | [DependentSchemasDependenciesWithEscapedCharacters.FootbarBoxedList](#footbarboxedlist)
boxed class to store validated List payloads | -| static class | [DependentSchemasDependenciesWithEscapedCharacters.FootbarBoxedMap](#footbarboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [DependentSchemasDependenciesWithEscapedCharacters.FootbarBoxed](#footbarboxed)
sealed interface for validated payloads | +| record | [DependentSchemasDependenciesWithEscapedCharacters.FootbarBoxedVoid](#footbarboxedvoid)
boxed class to store validated null payloads | +| record | [DependentSchemasDependenciesWithEscapedCharacters.FootbarBoxedBoolean](#footbarboxedboolean)
boxed class to store validated boolean payloads | +| record | [DependentSchemasDependenciesWithEscapedCharacters.FootbarBoxedNumber](#footbarboxednumber)
boxed class to store validated Number payloads | +| record | [DependentSchemasDependenciesWithEscapedCharacters.FootbarBoxedString](#footbarboxedstring)
boxed class to store validated String payloads | +| record | [DependentSchemasDependenciesWithEscapedCharacters.FootbarBoxedList](#footbarboxedlist)
boxed class to store validated List payloads | +| record | [DependentSchemasDependenciesWithEscapedCharacters.FootbarBoxedMap](#footbarboxedmap)
boxed class to store validated Map payloads | | static class | [DependentSchemasDependenciesWithEscapedCharacters.Footbar](#footbar)
schema class | ## DependentSchemasDependenciesWithEscapedCharacters1Boxed -public static abstract sealed class DependentSchemasDependenciesWithEscapedCharacters1Boxed
+public sealed interface DependentSchemasDependenciesWithEscapedCharacters1Boxed
permits
[DependentSchemasDependenciesWithEscapedCharacters1BoxedVoid](#dependentschemasdependencieswithescapedcharacters1boxedvoid), [DependentSchemasDependenciesWithEscapedCharacters1BoxedBoolean](#dependentschemasdependencieswithescapedcharacters1boxedboolean), @@ -49,103 +49,109 @@ permits
[DependentSchemasDependenciesWithEscapedCharacters1BoxedList](#dependentschemasdependencieswithescapedcharacters1boxedlist), [DependentSchemasDependenciesWithEscapedCharacters1BoxedMap](#dependentschemasdependencieswithescapedcharacters1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## DependentSchemasDependenciesWithEscapedCharacters1BoxedVoid -public static final class DependentSchemasDependenciesWithEscapedCharacters1BoxedVoid
-extends [DependentSchemasDependenciesWithEscapedCharacters1Boxed](#dependentschemasdependencieswithescapedcharacters1boxed) +public record DependentSchemasDependenciesWithEscapedCharacters1BoxedVoid
+implements [DependentSchemasDependenciesWithEscapedCharacters1Boxed](#dependentschemasdependencieswithescapedcharacters1boxed) -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 | | --------------------------- | | DependentSchemasDependenciesWithEscapedCharacters1BoxedVoid(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 | ## DependentSchemasDependenciesWithEscapedCharacters1BoxedBoolean -public static final class DependentSchemasDependenciesWithEscapedCharacters1BoxedBoolean
-extends [DependentSchemasDependenciesWithEscapedCharacters1Boxed](#dependentschemasdependencieswithescapedcharacters1boxed) +public record DependentSchemasDependenciesWithEscapedCharacters1BoxedBoolean
+implements [DependentSchemasDependenciesWithEscapedCharacters1Boxed](#dependentschemasdependencieswithescapedcharacters1boxed) -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 | | --------------------------- | | DependentSchemasDependenciesWithEscapedCharacters1BoxedBoolean(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 | ## DependentSchemasDependenciesWithEscapedCharacters1BoxedNumber -public static final class DependentSchemasDependenciesWithEscapedCharacters1BoxedNumber
-extends [DependentSchemasDependenciesWithEscapedCharacters1Boxed](#dependentschemasdependencieswithescapedcharacters1boxed) +public record DependentSchemasDependenciesWithEscapedCharacters1BoxedNumber
+implements [DependentSchemasDependenciesWithEscapedCharacters1Boxed](#dependentschemasdependencieswithescapedcharacters1boxed) -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 | | --------------------------- | | DependentSchemasDependenciesWithEscapedCharacters1BoxedNumber(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 | ## DependentSchemasDependenciesWithEscapedCharacters1BoxedString -public static final class DependentSchemasDependenciesWithEscapedCharacters1BoxedString
-extends [DependentSchemasDependenciesWithEscapedCharacters1Boxed](#dependentschemasdependencieswithescapedcharacters1boxed) +public record DependentSchemasDependenciesWithEscapedCharacters1BoxedString
+implements [DependentSchemasDependenciesWithEscapedCharacters1Boxed](#dependentschemasdependencieswithescapedcharacters1boxed) -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 | | --------------------------- | | DependentSchemasDependenciesWithEscapedCharacters1BoxedString(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 | ## DependentSchemasDependenciesWithEscapedCharacters1BoxedList -public static final class DependentSchemasDependenciesWithEscapedCharacters1BoxedList
-extends [DependentSchemasDependenciesWithEscapedCharacters1Boxed](#dependentschemasdependencieswithescapedcharacters1boxed) +public record DependentSchemasDependenciesWithEscapedCharacters1BoxedList
+implements [DependentSchemasDependenciesWithEscapedCharacters1Boxed](#dependentschemasdependencieswithescapedcharacters1boxed) -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 | | --------------------------- | | DependentSchemasDependenciesWithEscapedCharacters1BoxedList(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 | ## DependentSchemasDependenciesWithEscapedCharacters1BoxedMap -public static final class DependentSchemasDependenciesWithEscapedCharacters1BoxedMap
-extends [DependentSchemasDependenciesWithEscapedCharacters1Boxed](#dependentschemasdependencieswithescapedcharacters1boxed) +public record DependentSchemasDependenciesWithEscapedCharacters1BoxedMap
+implements [DependentSchemasDependenciesWithEscapedCharacters1Boxed](#dependentschemasdependencieswithescapedcharacters1boxed) -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 | | --------------------------- | | DependentSchemasDependenciesWithEscapedCharacters1BoxedMap(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 | ## DependentSchemasDependenciesWithEscapedCharacters1 public static class DependentSchemasDependenciesWithEscapedCharacters1
@@ -177,9 +183,11 @@ A schema class that validates payloads | [DependentSchemasDependenciesWithEscapedCharacters1BoxedBoolean](#dependentschemasdependencieswithescapedcharacters1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [DependentSchemasDependenciesWithEscapedCharacters1BoxedMap](#dependentschemasdependencieswithescapedcharacters1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [DependentSchemasDependenciesWithEscapedCharacters1BoxedList](#dependentschemasdependencieswithescapedcharacters1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [DependentSchemasDependenciesWithEscapedCharacters1Boxed](#dependentschemasdependencieswithescapedcharacters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## FoobarBoxed -public static abstract sealed class FoobarBoxed
+public sealed interface FoobarBoxed
permits
[FoobarBoxedVoid](#foobarboxedvoid), [FoobarBoxedBoolean](#foobarboxedboolean), @@ -188,103 +196,109 @@ permits
[FoobarBoxedList](#foobarboxedlist), [FoobarBoxedMap](#foobarboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## FoobarBoxedVoid -public static final class FoobarBoxedVoid
-extends [FoobarBoxed](#foobarboxed) +public record FoobarBoxedVoid
+implements [FoobarBoxed](#foobarboxed) -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 | | --------------------------- | | FoobarBoxedVoid(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 | ## FoobarBoxedBoolean -public static final class FoobarBoxedBoolean
-extends [FoobarBoxed](#foobarboxed) +public record FoobarBoxedBoolean
+implements [FoobarBoxed](#foobarboxed) -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 | | --------------------------- | | FoobarBoxedBoolean(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 | ## 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 | ## FoobarBoxedString -public static final class FoobarBoxedString
-extends [FoobarBoxed](#foobarboxed) +public record FoobarBoxedString
+implements [FoobarBoxed](#foobarboxed) -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 | | --------------------------- | | FoobarBoxedString(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 | ## FoobarBoxedList -public static final class FoobarBoxedList
-extends [FoobarBoxed](#foobarboxed) +public record FoobarBoxedList
+implements [FoobarBoxed](#foobarboxed) -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 | | --------------------------- | | FoobarBoxedList(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 | ## FoobarBoxedMap -public static final class FoobarBoxedMap
-extends [FoobarBoxed](#foobarboxed) +public record FoobarBoxedMap
+implements [FoobarBoxed](#foobarboxed) -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 | | --------------------------- | | FoobarBoxedMap([FoobarMap](#foobarmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FoobarMap](#foobarmap) | data
validated payload | +| [FoobarMap](#foobarmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | ## Foobar public static class Foobar
@@ -316,7 +330,9 @@ A schema class that validates payloads | [FoobarBoxedBoolean](#foobarboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [FoobarBoxedMap](#foobarboxedmap) | validateAndBox([Map<?, ?>](#foobarmapbuilder) arg, SchemaConfiguration configuration) | | [FoobarBoxedList](#foobarboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [FoobarBoxed](#foobarboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## FoobarMap0Builder public class FoobarMap0Builder
builder for `Map` @@ -380,7 +396,7 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## FootbarBoxed -public static abstract sealed class FootbarBoxed
+public sealed interface FootbarBoxed
permits
[FootbarBoxedVoid](#footbarboxedvoid), [FootbarBoxedBoolean](#footbarboxedboolean), @@ -389,103 +405,109 @@ permits
[FootbarBoxedList](#footbarboxedlist), [FootbarBoxedMap](#footbarboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## FootbarBoxedVoid -public static final class FootbarBoxedVoid
-extends [FootbarBoxed](#footbarboxed) +public record FootbarBoxedVoid
+implements [FootbarBoxed](#footbarboxed) -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 | | --------------------------- | | FootbarBoxedVoid(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 | ## FootbarBoxedBoolean -public static final class FootbarBoxedBoolean
-extends [FootbarBoxed](#footbarboxed) +public record FootbarBoxedBoolean
+implements [FootbarBoxed](#footbarboxed) -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 | | --------------------------- | | FootbarBoxedBoolean(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 | ## 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 | ## FootbarBoxedString -public static final class FootbarBoxedString
-extends [FootbarBoxed](#footbarboxed) +public record FootbarBoxedString
+implements [FootbarBoxed](#footbarboxed) -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 | | --------------------------- | | FootbarBoxedString(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 | ## FootbarBoxedList -public static final class FootbarBoxedList
-extends [FootbarBoxed](#footbarboxed) +public record FootbarBoxedList
+implements [FootbarBoxed](#footbarboxed) -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 | | --------------------------- | | FootbarBoxedList(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 | ## FootbarBoxedMap -public static final class FootbarBoxedMap
-extends [FootbarBoxed](#footbarboxed) +public record FootbarBoxedMap
+implements [FootbarBoxed](#footbarboxed) -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 | | --------------------------- | | FootbarBoxedMap(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 | ## Footbar public static class Footbar
@@ -517,5 +539,7 @@ A schema class that validates payloads | [FootbarBoxedBoolean](#footbarboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [FootbarBoxedMap](#footbarboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [FootbarBoxedList](#footbarboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [FootbarBoxed](#footbarboxed) | 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_1_0_unit_test/java/docs/components/schemas/DependentSchemasDependentSubschemaIncompatibleWithRoot.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/DependentSchemasDependentSubschemaIncompatibleWithRoot.md index 7679e687c06..610f9927a97 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/DependentSchemasDependentSubschemaIncompatibleWithRoot.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/DependentSchemasDependentSubschemaIncompatibleWithRoot.md @@ -4,7 +4,7 @@ public class DependentSchemasDependentSubschemaIncompatibleWithRoot
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 | [DependentSchemasDependentSubschemaIncompatibleWithRoot.DependentSchemasDependentSubschemaIncompatibleWithRoot1Boxed](#dependentschemasdependentsubschemaincompatiblewithroot1boxed)
abstract sealed validated payload class | -| static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedVoid](#dependentschemasdependentsubschemaincompatiblewithroot1boxedvoid)
boxed class to store validated null payloads | -| static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedBoolean](#dependentschemasdependentsubschemaincompatiblewithroot1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedNumber](#dependentschemasdependentsubschemaincompatiblewithroot1boxednumber)
boxed class to store validated Number payloads | -| static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedString](#dependentschemasdependentsubschemaincompatiblewithroot1boxedstring)
boxed class to store validated String payloads | -| static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedList](#dependentschemasdependentsubschemaincompatiblewithroot1boxedlist)
boxed class to store validated List payloads | -| static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedMap](#dependentschemasdependentsubschemaincompatiblewithroot1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [DependentSchemasDependentSubschemaIncompatibleWithRoot.DependentSchemasDependentSubschemaIncompatibleWithRoot1Boxed](#dependentschemasdependentsubschemaincompatiblewithroot1boxed)
sealed interface for validated payloads | +| record | [DependentSchemasDependentSubschemaIncompatibleWithRoot.DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedVoid](#dependentschemasdependentsubschemaincompatiblewithroot1boxedvoid)
boxed class to store validated null payloads | +| record | [DependentSchemasDependentSubschemaIncompatibleWithRoot.DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedBoolean](#dependentschemasdependentsubschemaincompatiblewithroot1boxedboolean)
boxed class to store validated boolean payloads | +| record | [DependentSchemasDependentSubschemaIncompatibleWithRoot.DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedNumber](#dependentschemasdependentsubschemaincompatiblewithroot1boxednumber)
boxed class to store validated Number payloads | +| record | [DependentSchemasDependentSubschemaIncompatibleWithRoot.DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedString](#dependentschemasdependentsubschemaincompatiblewithroot1boxedstring)
boxed class to store validated String payloads | +| record | [DependentSchemasDependentSubschemaIncompatibleWithRoot.DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedList](#dependentschemasdependentsubschemaincompatiblewithroot1boxedlist)
boxed class to store validated List payloads | +| record | [DependentSchemasDependentSubschemaIncompatibleWithRoot.DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedMap](#dependentschemasdependentsubschemaincompatiblewithroot1boxedmap)
boxed class to store validated Map payloads | | static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.DependentSchemasDependentSubschemaIncompatibleWithRoot1](#dependentschemasdependentsubschemaincompatiblewithroot1)
schema class | | static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.DependentSchemasDependentSubschemaIncompatibleWithRootMapBuilder](#dependentschemasdependentsubschemaincompatiblewithrootmapbuilder)
builder for Map payloads | | static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.DependentSchemasDependentSubschemaIncompatibleWithRootMap](#dependentschemasdependentsubschemaincompatiblewithrootmap)
output class for Map payloads | -| static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.FooBoxed](#fooboxed)
abstract sealed validated payload class | -| static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.FooBoxedVoid](#fooboxedvoid)
boxed class to store validated null payloads | -| static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.FooBoxedBoolean](#fooboxedboolean)
boxed class to store validated boolean payloads | -| static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.FooBoxedNumber](#fooboxednumber)
boxed class to store validated Number payloads | -| static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.FooBoxedString](#fooboxedstring)
boxed class to store validated String payloads | -| static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.FooBoxedList](#fooboxedlist)
boxed class to store validated List payloads | -| static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.FooBoxedMap](#fooboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [DependentSchemasDependentSubschemaIncompatibleWithRoot.FooBoxed](#fooboxed)
sealed interface for validated payloads | +| record | [DependentSchemasDependentSubschemaIncompatibleWithRoot.FooBoxedVoid](#fooboxedvoid)
boxed class to store validated null payloads | +| record | [DependentSchemasDependentSubschemaIncompatibleWithRoot.FooBoxedBoolean](#fooboxedboolean)
boxed class to store validated boolean payloads | +| record | [DependentSchemasDependentSubschemaIncompatibleWithRoot.FooBoxedNumber](#fooboxednumber)
boxed class to store validated Number payloads | +| record | [DependentSchemasDependentSubschemaIncompatibleWithRoot.FooBoxedString](#fooboxedstring)
boxed class to store validated String payloads | +| record | [DependentSchemasDependentSubschemaIncompatibleWithRoot.FooBoxedList](#fooboxedlist)
boxed class to store validated List payloads | +| record | [DependentSchemasDependentSubschemaIncompatibleWithRoot.FooBoxedMap](#fooboxedmap)
boxed class to store validated Map payloads | | static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.Foo](#foo)
schema class | -| static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.Foo1Boxed](#foo1boxed)
abstract sealed validated payload class | -| static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.Foo1BoxedMap](#foo1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [DependentSchemasDependentSubschemaIncompatibleWithRoot.Foo1Boxed](#foo1boxed)
sealed interface for validated payloads | +| record | [DependentSchemasDependentSubschemaIncompatibleWithRoot.Foo1BoxedMap](#foo1boxedmap)
boxed class to store validated Map payloads | | static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.Foo1](#foo1)
schema class | | static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.FooMapBuilder1](#foomapbuilder1)
builder for Map payloads | | static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.FooMap](#foomap)
output class for Map payloads | -| static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.BarBoxed](#barboxed)
abstract sealed validated payload class | -| static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.BarBoxedVoid](#barboxedvoid)
boxed class to store validated null payloads | -| static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.BarBoxedBoolean](#barboxedboolean)
boxed class to store validated boolean payloads | -| static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.BarBoxedNumber](#barboxednumber)
boxed class to store validated Number payloads | -| static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.BarBoxedString](#barboxedstring)
boxed class to store validated String payloads | -| static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.BarBoxedList](#barboxedlist)
boxed class to store validated List payloads | -| static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.BarBoxedMap](#barboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [DependentSchemasDependentSubschemaIncompatibleWithRoot.BarBoxed](#barboxed)
sealed interface for validated payloads | +| record | [DependentSchemasDependentSubschemaIncompatibleWithRoot.BarBoxedVoid](#barboxedvoid)
boxed class to store validated null payloads | +| record | [DependentSchemasDependentSubschemaIncompatibleWithRoot.BarBoxedBoolean](#barboxedboolean)
boxed class to store validated boolean payloads | +| record | [DependentSchemasDependentSubschemaIncompatibleWithRoot.BarBoxedNumber](#barboxednumber)
boxed class to store validated Number payloads | +| record | [DependentSchemasDependentSubschemaIncompatibleWithRoot.BarBoxedString](#barboxedstring)
boxed class to store validated String payloads | +| record | [DependentSchemasDependentSubschemaIncompatibleWithRoot.BarBoxedList](#barboxedlist)
boxed class to store validated List payloads | +| record | [DependentSchemasDependentSubschemaIncompatibleWithRoot.BarBoxedMap](#barboxedmap)
boxed class to store validated Map payloads | | static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.Bar](#bar)
schema class | -| static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | -| static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [DependentSchemasDependentSubschemaIncompatibleWithRoot.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [DependentSchemasDependentSubschemaIncompatibleWithRoot.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [DependentSchemasDependentSubschemaIncompatibleWithRoot.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [DependentSchemasDependentSubschemaIncompatibleWithRoot.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [DependentSchemasDependentSubschemaIncompatibleWithRoot.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [DependentSchemasDependentSubschemaIncompatibleWithRoot.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [DependentSchemasDependentSubschemaIncompatibleWithRoot.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | | static class | [DependentSchemasDependentSubschemaIncompatibleWithRoot.AdditionalProperties](#additionalproperties)
schema class | ## DependentSchemasDependentSubschemaIncompatibleWithRoot1Boxed -public static abstract sealed class DependentSchemasDependentSubschemaIncompatibleWithRoot1Boxed
+public sealed interface DependentSchemasDependentSubschemaIncompatibleWithRoot1Boxed
permits
[DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedVoid](#dependentschemasdependentsubschemaincompatiblewithroot1boxedvoid), [DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedBoolean](#dependentschemasdependentsubschemaincompatiblewithroot1boxedboolean), @@ -62,103 +62,109 @@ permits
[DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedList](#dependentschemasdependentsubschemaincompatiblewithroot1boxedlist), [DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedMap](#dependentschemasdependentsubschemaincompatiblewithroot1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedVoid -public static final class DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedVoid
-extends [DependentSchemasDependentSubschemaIncompatibleWithRoot1Boxed](#dependentschemasdependentsubschemaincompatiblewithroot1boxed) +public record DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedVoid
+implements [DependentSchemasDependentSubschemaIncompatibleWithRoot1Boxed](#dependentschemasdependentsubschemaincompatiblewithroot1boxed) -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 | | --------------------------- | | DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedVoid(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 | ## DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedBoolean -public static final class DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedBoolean
-extends [DependentSchemasDependentSubschemaIncompatibleWithRoot1Boxed](#dependentschemasdependentsubschemaincompatiblewithroot1boxed) +public record DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedBoolean
+implements [DependentSchemasDependentSubschemaIncompatibleWithRoot1Boxed](#dependentschemasdependentsubschemaincompatiblewithroot1boxed) -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 | | --------------------------- | | DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedBoolean(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 | ## DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedNumber -public static final class DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedNumber
-extends [DependentSchemasDependentSubschemaIncompatibleWithRoot1Boxed](#dependentschemasdependentsubschemaincompatiblewithroot1boxed) +public record DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedNumber
+implements [DependentSchemasDependentSubschemaIncompatibleWithRoot1Boxed](#dependentschemasdependentsubschemaincompatiblewithroot1boxed) -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 | | --------------------------- | | DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedNumber(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 | ## DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedString -public static final class DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedString
-extends [DependentSchemasDependentSubschemaIncompatibleWithRoot1Boxed](#dependentschemasdependentsubschemaincompatiblewithroot1boxed) +public record DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedString
+implements [DependentSchemasDependentSubschemaIncompatibleWithRoot1Boxed](#dependentschemasdependentsubschemaincompatiblewithroot1boxed) -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 | | --------------------------- | | DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedString(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 | ## DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedList -public static final class DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedList
-extends [DependentSchemasDependentSubschemaIncompatibleWithRoot1Boxed](#dependentschemasdependentsubschemaincompatiblewithroot1boxed) +public record DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedList
+implements [DependentSchemasDependentSubschemaIncompatibleWithRoot1Boxed](#dependentschemasdependentsubschemaincompatiblewithroot1boxed) -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 | | --------------------------- | | DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedList(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 | ## DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedMap -public static final class DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedMap
-extends [DependentSchemasDependentSubschemaIncompatibleWithRoot1Boxed](#dependentschemasdependentsubschemaincompatiblewithroot1boxed) +public record DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedMap
+implements [DependentSchemasDependentSubschemaIncompatibleWithRoot1Boxed](#dependentschemasdependentsubschemaincompatiblewithroot1boxed) -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 | | --------------------------- | | DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedMap([DependentSchemasDependentSubschemaIncompatibleWithRootMap](#dependentschemasdependentsubschemaincompatiblewithrootmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [DependentSchemasDependentSubschemaIncompatibleWithRootMap](#dependentschemasdependentsubschemaincompatiblewithrootmap) | data
validated payload | +| [DependentSchemasDependentSubschemaIncompatibleWithRootMap](#dependentschemasdependentsubschemaincompatiblewithrootmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | ## DependentSchemasDependentSubschemaIncompatibleWithRoot1 public static class DependentSchemasDependentSubschemaIncompatibleWithRoot1
@@ -191,7 +197,9 @@ A schema class that validates payloads | [DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedBoolean](#dependentschemasdependentsubschemaincompatiblewithroot1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedMap](#dependentschemasdependentsubschemaincompatiblewithroot1boxedmap) | validateAndBox([Map<?, ?>](#dependentschemasdependentsubschemaincompatiblewithrootmapbuilder) arg, SchemaConfiguration configuration) | | [DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedList](#dependentschemasdependentsubschemaincompatiblewithroot1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [DependentSchemasDependentSubschemaIncompatibleWithRoot1Boxed](#dependentschemasdependentsubschemaincompatiblewithroot1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## DependentSchemasDependentSubschemaIncompatibleWithRootMapBuilder public class DependentSchemasDependentSubschemaIncompatibleWithRootMapBuilder
builder for `Map` @@ -240,7 +248,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), @@ -249,103 +257,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
@@ -359,27 +373,28 @@ A schema class that validates payloads | validateAndBox | ## Foo1Boxed -public static abstract sealed class Foo1Boxed
+public sealed interface Foo1Boxed
permits
[Foo1BoxedMap](#foo1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Foo1BoxedMap -public static final class Foo1BoxedMap
-extends [Foo1Boxed](#foo1boxed) +public record Foo1BoxedMap
+implements [Foo1Boxed](#foo1boxed) -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 | | --------------------------- | | Foo1BoxedMap([FooMap](#foomap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FooMap](#foomap) | data
validated payload | +| [FooMap](#foomap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | ## Foo1 public static class Foo1
@@ -423,7 +438,9 @@ DependentSchemasDependentSubschemaIncompatibleWithRoot.FooMap validatedPayload = | ----------------- | ---------------------- | | [FooMap](#foomap) | validate([Map<?, ?>](#foomapbuilder1) arg, SchemaConfiguration configuration) | | [Foo1BoxedMap](#foo1boxedmap) | validateAndBox([Map<?, ?>](#foomapbuilder1) arg, SchemaConfiguration configuration) | +| [Foo1Boxed](#foo1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## FooMapBuilder1 public class FooMapBuilder1
builder for `Map` @@ -462,7 +479,7 @@ A class to store validated Map payloads | @Nullable Object | bar()
[optional] | ## BarBoxed -public static abstract sealed class BarBoxed
+public sealed interface BarBoxed
permits
[BarBoxedVoid](#barboxedvoid), [BarBoxedBoolean](#barboxedboolean), @@ -471,103 +488,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
@@ -581,7 +604,7 @@ A schema class that validates payloads | validateAndBox | ## AdditionalPropertiesBoxed -public static abstract sealed class AdditionalPropertiesBoxed
+public sealed interface AdditionalPropertiesBoxed
permits
[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), [AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), @@ -590,103 +613,109 @@ permits
[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), [AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedVoid -public static final class AdditionalPropertiesBoxedVoid
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedVoid(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 | ## 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 | ## AdditionalPropertiesBoxedNumber -public static final class AdditionalPropertiesBoxedNumber
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedNumber(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 | ## AdditionalPropertiesBoxedString -public static final class AdditionalPropertiesBoxedString
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedString(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 | ## AdditionalPropertiesBoxedList -public static final class AdditionalPropertiesBoxedList
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedList(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 | ## AdditionalPropertiesBoxedMap -public static final class AdditionalPropertiesBoxedMap
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedMap(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 | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/DependentSchemasSingleDependency.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/DependentSchemasSingleDependency.md index aec4f38e8fe..89850d5e1b3 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/DependentSchemasSingleDependency.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/DependentSchemasSingleDependency.md @@ -4,7 +4,7 @@ public class DependentSchemasSingleDependency
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,33 +12,33 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [DependentSchemasSingleDependency.DependentSchemasSingleDependency1Boxed](#dependentschemassingledependency1boxed)
abstract sealed validated payload class | -| static class | [DependentSchemasSingleDependency.DependentSchemasSingleDependency1BoxedVoid](#dependentschemassingledependency1boxedvoid)
boxed class to store validated null payloads | -| static class | [DependentSchemasSingleDependency.DependentSchemasSingleDependency1BoxedBoolean](#dependentschemassingledependency1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [DependentSchemasSingleDependency.DependentSchemasSingleDependency1BoxedNumber](#dependentschemassingledependency1boxednumber)
boxed class to store validated Number payloads | -| static class | [DependentSchemasSingleDependency.DependentSchemasSingleDependency1BoxedString](#dependentschemassingledependency1boxedstring)
boxed class to store validated String payloads | -| static class | [DependentSchemasSingleDependency.DependentSchemasSingleDependency1BoxedList](#dependentschemassingledependency1boxedlist)
boxed class to store validated List payloads | -| static class | [DependentSchemasSingleDependency.DependentSchemasSingleDependency1BoxedMap](#dependentschemassingledependency1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [DependentSchemasSingleDependency.DependentSchemasSingleDependency1Boxed](#dependentschemassingledependency1boxed)
sealed interface for validated payloads | +| record | [DependentSchemasSingleDependency.DependentSchemasSingleDependency1BoxedVoid](#dependentschemassingledependency1boxedvoid)
boxed class to store validated null payloads | +| record | [DependentSchemasSingleDependency.DependentSchemasSingleDependency1BoxedBoolean](#dependentschemassingledependency1boxedboolean)
boxed class to store validated boolean payloads | +| record | [DependentSchemasSingleDependency.DependentSchemasSingleDependency1BoxedNumber](#dependentschemassingledependency1boxednumber)
boxed class to store validated Number payloads | +| record | [DependentSchemasSingleDependency.DependentSchemasSingleDependency1BoxedString](#dependentschemassingledependency1boxedstring)
boxed class to store validated String payloads | +| record | [DependentSchemasSingleDependency.DependentSchemasSingleDependency1BoxedList](#dependentschemassingledependency1boxedlist)
boxed class to store validated List payloads | +| record | [DependentSchemasSingleDependency.DependentSchemasSingleDependency1BoxedMap](#dependentschemassingledependency1boxedmap)
boxed class to store validated Map payloads | | static class | [DependentSchemasSingleDependency.DependentSchemasSingleDependency1](#dependentschemassingledependency1)
schema class | -| static class | [DependentSchemasSingleDependency.BarBoxed](#barboxed)
abstract sealed validated payload class | -| static class | [DependentSchemasSingleDependency.BarBoxedVoid](#barboxedvoid)
boxed class to store validated null payloads | -| static class | [DependentSchemasSingleDependency.BarBoxedBoolean](#barboxedboolean)
boxed class to store validated boolean payloads | -| static class | [DependentSchemasSingleDependency.BarBoxedNumber](#barboxednumber)
boxed class to store validated Number payloads | -| static class | [DependentSchemasSingleDependency.BarBoxedString](#barboxedstring)
boxed class to store validated String payloads | -| static class | [DependentSchemasSingleDependency.BarBoxedList](#barboxedlist)
boxed class to store validated List payloads | -| static class | [DependentSchemasSingleDependency.BarBoxedMap](#barboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [DependentSchemasSingleDependency.BarBoxed](#barboxed)
sealed interface for validated payloads | +| record | [DependentSchemasSingleDependency.BarBoxedVoid](#barboxedvoid)
boxed class to store validated null payloads | +| record | [DependentSchemasSingleDependency.BarBoxedBoolean](#barboxedboolean)
boxed class to store validated boolean payloads | +| record | [DependentSchemasSingleDependency.BarBoxedNumber](#barboxednumber)
boxed class to store validated Number payloads | +| record | [DependentSchemasSingleDependency.BarBoxedString](#barboxedstring)
boxed class to store validated String payloads | +| record | [DependentSchemasSingleDependency.BarBoxedList](#barboxedlist)
boxed class to store validated List payloads | +| record | [DependentSchemasSingleDependency.BarBoxedMap](#barboxedmap)
boxed class to store validated Map payloads | | static class | [DependentSchemasSingleDependency.Bar](#bar)
schema class | | static class | [DependentSchemasSingleDependency.BarMapBuilder1](#barmapbuilder1)
builder for Map payloads | | static class | [DependentSchemasSingleDependency.BarMap](#barmap)
output class for Map payloads | -| static class | [DependentSchemasSingleDependency.Bar1Boxed](#bar1boxed)
abstract sealed validated payload class | -| static class | [DependentSchemasSingleDependency.Bar1BoxedNumber](#bar1boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [DependentSchemasSingleDependency.Bar1Boxed](#bar1boxed)
sealed interface for validated payloads | +| record | [DependentSchemasSingleDependency.Bar1BoxedNumber](#bar1boxednumber)
boxed class to store validated Number payloads | | static class | [DependentSchemasSingleDependency.Bar1](#bar1)
schema class | -| static class | [DependentSchemasSingleDependency.FooBoxed](#fooboxed)
abstract sealed validated payload class | -| static class | [DependentSchemasSingleDependency.FooBoxedNumber](#fooboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [DependentSchemasSingleDependency.FooBoxed](#fooboxed)
sealed interface for validated payloads | +| record | [DependentSchemasSingleDependency.FooBoxedNumber](#fooboxednumber)
boxed class to store validated Number payloads | | static class | [DependentSchemasSingleDependency.Foo](#foo)
schema class | ## DependentSchemasSingleDependency1Boxed -public static abstract sealed class DependentSchemasSingleDependency1Boxed
+public sealed interface DependentSchemasSingleDependency1Boxed
permits
[DependentSchemasSingleDependency1BoxedVoid](#dependentschemassingledependency1boxedvoid), [DependentSchemasSingleDependency1BoxedBoolean](#dependentschemassingledependency1boxedboolean), @@ -47,103 +47,109 @@ permits
[DependentSchemasSingleDependency1BoxedList](#dependentschemassingledependency1boxedlist), [DependentSchemasSingleDependency1BoxedMap](#dependentschemassingledependency1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## DependentSchemasSingleDependency1BoxedVoid -public static final class DependentSchemasSingleDependency1BoxedVoid
-extends [DependentSchemasSingleDependency1Boxed](#dependentschemassingledependency1boxed) +public record DependentSchemasSingleDependency1BoxedVoid
+implements [DependentSchemasSingleDependency1Boxed](#dependentschemassingledependency1boxed) -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 | | --------------------------- | | DependentSchemasSingleDependency1BoxedVoid(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 | ## DependentSchemasSingleDependency1BoxedBoolean -public static final class DependentSchemasSingleDependency1BoxedBoolean
-extends [DependentSchemasSingleDependency1Boxed](#dependentschemassingledependency1boxed) +public record DependentSchemasSingleDependency1BoxedBoolean
+implements [DependentSchemasSingleDependency1Boxed](#dependentschemassingledependency1boxed) -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 | | --------------------------- | | DependentSchemasSingleDependency1BoxedBoolean(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 | ## DependentSchemasSingleDependency1BoxedNumber -public static final class DependentSchemasSingleDependency1BoxedNumber
-extends [DependentSchemasSingleDependency1Boxed](#dependentschemassingledependency1boxed) +public record DependentSchemasSingleDependency1BoxedNumber
+implements [DependentSchemasSingleDependency1Boxed](#dependentschemassingledependency1boxed) -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 | | --------------------------- | | DependentSchemasSingleDependency1BoxedNumber(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 | ## DependentSchemasSingleDependency1BoxedString -public static final class DependentSchemasSingleDependency1BoxedString
-extends [DependentSchemasSingleDependency1Boxed](#dependentschemassingledependency1boxed) +public record DependentSchemasSingleDependency1BoxedString
+implements [DependentSchemasSingleDependency1Boxed](#dependentschemassingledependency1boxed) -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 | | --------------------------- | | DependentSchemasSingleDependency1BoxedString(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 | ## DependentSchemasSingleDependency1BoxedList -public static final class DependentSchemasSingleDependency1BoxedList
-extends [DependentSchemasSingleDependency1Boxed](#dependentschemassingledependency1boxed) +public record DependentSchemasSingleDependency1BoxedList
+implements [DependentSchemasSingleDependency1Boxed](#dependentschemassingledependency1boxed) -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 | | --------------------------- | | DependentSchemasSingleDependency1BoxedList(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 | ## DependentSchemasSingleDependency1BoxedMap -public static final class DependentSchemasSingleDependency1BoxedMap
-extends [DependentSchemasSingleDependency1Boxed](#dependentschemassingledependency1boxed) +public record DependentSchemasSingleDependency1BoxedMap
+implements [DependentSchemasSingleDependency1Boxed](#dependentschemassingledependency1boxed) -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 | | --------------------------- | | DependentSchemasSingleDependency1BoxedMap(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 | ## DependentSchemasSingleDependency1 public static class DependentSchemasSingleDependency1
@@ -175,9 +181,11 @@ A schema class that validates payloads | [DependentSchemasSingleDependency1BoxedBoolean](#dependentschemassingledependency1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [DependentSchemasSingleDependency1BoxedMap](#dependentschemassingledependency1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [DependentSchemasSingleDependency1BoxedList](#dependentschemassingledependency1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [DependentSchemasSingleDependency1Boxed](#dependentschemassingledependency1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## BarBoxed -public static abstract sealed class BarBoxed
+public sealed interface BarBoxed
permits
[BarBoxedVoid](#barboxedvoid), [BarBoxedBoolean](#barboxedboolean), @@ -186,103 +194,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([BarMap](#barmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [BarMap](#barmap) | data
validated payload | +| [BarMap](#barmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | ## Bar public static class Bar
@@ -314,7 +328,9 @@ A schema class that validates payloads | [BarBoxedBoolean](#barboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [BarBoxedMap](#barboxedmap) | validateAndBox([Map<?, ?>](#barmapbuilder1) arg, SchemaConfiguration configuration) | | [BarBoxedList](#barboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [BarBoxed](#barboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## BarMapBuilder1 public class BarMapBuilder1
builder for `Map` @@ -363,27 +379,28 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## Bar1Boxed -public static abstract sealed class Bar1Boxed
+public sealed interface Bar1Boxed
permits
[Bar1BoxedNumber](#bar1boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Bar1BoxedNumber -public static final class Bar1BoxedNumber
-extends [Bar1Boxed](#bar1boxed) +public record Bar1BoxedNumber
+implements [Bar1Boxed](#bar1boxed) -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 | | --------------------------- | | Bar1BoxedNumber(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 | ## Bar1 public static class Bar1
@@ -397,27 +414,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_1_0_unit_test/java/docs/components/schemas/DurationFormat.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/DurationFormat.md index 187901b55a2..9c74f82ceda 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/DurationFormat.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/DurationFormat.md @@ -4,23 +4,23 @@ public class DurationFormat
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 | [DurationFormat.DurationFormat1Boxed](#durationformat1boxed)
abstract sealed validated payload class | -| static class | [DurationFormat.DurationFormat1BoxedVoid](#durationformat1boxedvoid)
boxed class to store validated null payloads | -| static class | [DurationFormat.DurationFormat1BoxedBoolean](#durationformat1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [DurationFormat.DurationFormat1BoxedNumber](#durationformat1boxednumber)
boxed class to store validated Number payloads | -| static class | [DurationFormat.DurationFormat1BoxedString](#durationformat1boxedstring)
boxed class to store validated String payloads | -| static class | [DurationFormat.DurationFormat1BoxedList](#durationformat1boxedlist)
boxed class to store validated List payloads | -| static class | [DurationFormat.DurationFormat1BoxedMap](#durationformat1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [DurationFormat.DurationFormat1Boxed](#durationformat1boxed)
sealed interface for validated payloads | +| record | [DurationFormat.DurationFormat1BoxedVoid](#durationformat1boxedvoid)
boxed class to store validated null payloads | +| record | [DurationFormat.DurationFormat1BoxedBoolean](#durationformat1boxedboolean)
boxed class to store validated boolean payloads | +| record | [DurationFormat.DurationFormat1BoxedNumber](#durationformat1boxednumber)
boxed class to store validated Number payloads | +| record | [DurationFormat.DurationFormat1BoxedString](#durationformat1boxedstring)
boxed class to store validated String payloads | +| record | [DurationFormat.DurationFormat1BoxedList](#durationformat1boxedlist)
boxed class to store validated List payloads | +| record | [DurationFormat.DurationFormat1BoxedMap](#durationformat1boxedmap)
boxed class to store validated Map payloads | | static class | [DurationFormat.DurationFormat1](#durationformat1)
schema class | ## DurationFormat1Boxed -public static abstract sealed class DurationFormat1Boxed
+public sealed interface DurationFormat1Boxed
permits
[DurationFormat1BoxedVoid](#durationformat1boxedvoid), [DurationFormat1BoxedBoolean](#durationformat1boxedboolean), @@ -29,103 +29,109 @@ permits
[DurationFormat1BoxedList](#durationformat1boxedlist), [DurationFormat1BoxedMap](#durationformat1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## DurationFormat1BoxedVoid -public static final class DurationFormat1BoxedVoid
-extends [DurationFormat1Boxed](#durationformat1boxed) +public record DurationFormat1BoxedVoid
+implements [DurationFormat1Boxed](#durationformat1boxed) -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 | | --------------------------- | | DurationFormat1BoxedVoid(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 | ## DurationFormat1BoxedBoolean -public static final class DurationFormat1BoxedBoolean
-extends [DurationFormat1Boxed](#durationformat1boxed) +public record DurationFormat1BoxedBoolean
+implements [DurationFormat1Boxed](#durationformat1boxed) -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 | | --------------------------- | | DurationFormat1BoxedBoolean(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 | ## DurationFormat1BoxedNumber -public static final class DurationFormat1BoxedNumber
-extends [DurationFormat1Boxed](#durationformat1boxed) +public record DurationFormat1BoxedNumber
+implements [DurationFormat1Boxed](#durationformat1boxed) -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 | | --------------------------- | | DurationFormat1BoxedNumber(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 | ## DurationFormat1BoxedString -public static final class DurationFormat1BoxedString
-extends [DurationFormat1Boxed](#durationformat1boxed) +public record DurationFormat1BoxedString
+implements [DurationFormat1Boxed](#durationformat1boxed) -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 | | --------------------------- | | DurationFormat1BoxedString(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 | ## DurationFormat1BoxedList -public static final class DurationFormat1BoxedList
-extends [DurationFormat1Boxed](#durationformat1boxed) +public record DurationFormat1BoxedList
+implements [DurationFormat1Boxed](#durationformat1boxed) -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 | | --------------------------- | | DurationFormat1BoxedList(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 | ## DurationFormat1BoxedMap -public static final class DurationFormat1BoxedMap
-extends [DurationFormat1Boxed](#durationformat1boxed) +public record DurationFormat1BoxedMap
+implements [DurationFormat1Boxed](#durationformat1boxed) -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 | | --------------------------- | | DurationFormat1BoxedMap(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 | ## DurationFormat1 public static class DurationFormat1
@@ -157,5 +163,7 @@ A schema class that validates payloads | [DurationFormat1BoxedBoolean](#durationformat1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [DurationFormat1BoxedMap](#durationformat1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [DurationFormat1BoxedList](#durationformat1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [DurationFormat1Boxed](#durationformat1boxed) | 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_1_0_unit_test/java/docs/components/schemas/EmailFormat.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/EmailFormat.md index 46f78d993c6..b3448fb331a 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/EmailFormat.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/EmptyDependents.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/EmptyDependents.md index a0e54bf6e8c..61fd3611c08 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/EmptyDependents.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/EmptyDependents.md @@ -4,23 +4,23 @@ public class EmptyDependents
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 | [EmptyDependents.EmptyDependents1Boxed](#emptydependents1boxed)
abstract sealed validated payload class | -| static class | [EmptyDependents.EmptyDependents1BoxedVoid](#emptydependents1boxedvoid)
boxed class to store validated null payloads | -| static class | [EmptyDependents.EmptyDependents1BoxedBoolean](#emptydependents1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [EmptyDependents.EmptyDependents1BoxedNumber](#emptydependents1boxednumber)
boxed class to store validated Number payloads | -| static class | [EmptyDependents.EmptyDependents1BoxedString](#emptydependents1boxedstring)
boxed class to store validated String payloads | -| static class | [EmptyDependents.EmptyDependents1BoxedList](#emptydependents1boxedlist)
boxed class to store validated List payloads | -| static class | [EmptyDependents.EmptyDependents1BoxedMap](#emptydependents1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [EmptyDependents.EmptyDependents1Boxed](#emptydependents1boxed)
sealed interface for validated payloads | +| record | [EmptyDependents.EmptyDependents1BoxedVoid](#emptydependents1boxedvoid)
boxed class to store validated null payloads | +| record | [EmptyDependents.EmptyDependents1BoxedBoolean](#emptydependents1boxedboolean)
boxed class to store validated boolean payloads | +| record | [EmptyDependents.EmptyDependents1BoxedNumber](#emptydependents1boxednumber)
boxed class to store validated Number payloads | +| record | [EmptyDependents.EmptyDependents1BoxedString](#emptydependents1boxedstring)
boxed class to store validated String payloads | +| record | [EmptyDependents.EmptyDependents1BoxedList](#emptydependents1boxedlist)
boxed class to store validated List payloads | +| record | [EmptyDependents.EmptyDependents1BoxedMap](#emptydependents1boxedmap)
boxed class to store validated Map payloads | | static class | [EmptyDependents.EmptyDependents1](#emptydependents1)
schema class | ## EmptyDependents1Boxed -public static abstract sealed class EmptyDependents1Boxed
+public sealed interface EmptyDependents1Boxed
permits
[EmptyDependents1BoxedVoid](#emptydependents1boxedvoid), [EmptyDependents1BoxedBoolean](#emptydependents1boxedboolean), @@ -29,103 +29,109 @@ permits
[EmptyDependents1BoxedList](#emptydependents1boxedlist), [EmptyDependents1BoxedMap](#emptydependents1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## EmptyDependents1BoxedVoid -public static final class EmptyDependents1BoxedVoid
-extends [EmptyDependents1Boxed](#emptydependents1boxed) +public record EmptyDependents1BoxedVoid
+implements [EmptyDependents1Boxed](#emptydependents1boxed) -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 | | --------------------------- | | EmptyDependents1BoxedVoid(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 | ## EmptyDependents1BoxedBoolean -public static final class EmptyDependents1BoxedBoolean
-extends [EmptyDependents1Boxed](#emptydependents1boxed) +public record EmptyDependents1BoxedBoolean
+implements [EmptyDependents1Boxed](#emptydependents1boxed) -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 | | --------------------------- | | EmptyDependents1BoxedBoolean(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 | ## EmptyDependents1BoxedNumber -public static final class EmptyDependents1BoxedNumber
-extends [EmptyDependents1Boxed](#emptydependents1boxed) +public record EmptyDependents1BoxedNumber
+implements [EmptyDependents1Boxed](#emptydependents1boxed) -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 | | --------------------------- | | EmptyDependents1BoxedNumber(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 | ## EmptyDependents1BoxedString -public static final class EmptyDependents1BoxedString
-extends [EmptyDependents1Boxed](#emptydependents1boxed) +public record EmptyDependents1BoxedString
+implements [EmptyDependents1Boxed](#emptydependents1boxed) -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 | | --------------------------- | | EmptyDependents1BoxedString(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 | ## EmptyDependents1BoxedList -public static final class EmptyDependents1BoxedList
-extends [EmptyDependents1Boxed](#emptydependents1boxed) +public record EmptyDependents1BoxedList
+implements [EmptyDependents1Boxed](#emptydependents1boxed) -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 | | --------------------------- | | EmptyDependents1BoxedList(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 | ## EmptyDependents1BoxedMap -public static final class EmptyDependents1BoxedMap
-extends [EmptyDependents1Boxed](#emptydependents1boxed) +public record EmptyDependents1BoxedMap
+implements [EmptyDependents1Boxed](#emptydependents1boxed) -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 | | --------------------------- | | EmptyDependents1BoxedMap(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 | ## EmptyDependents1 public static class EmptyDependents1
@@ -164,5 +170,7 @@ A schema class that validates payloads | [EmptyDependents1BoxedBoolean](#emptydependents1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [EmptyDependents1BoxedMap](#emptydependents1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [EmptyDependents1BoxedList](#emptydependents1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [EmptyDependents1Boxed](#emptydependents1boxed) | 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_1_0_unit_test/java/docs/components/schemas/EnumWith0DoesNotMatchFalse.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWith0DoesNotMatchFalse.md index 1ca98c55bac..e3082672184 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWith0DoesNotMatchFalse.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWith0DoesNotMatchFalse.md @@ -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_1_0_unit_test/java/docs/components/schemas/EnumWith1DoesNotMatchTrue.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWith1DoesNotMatchTrue.md index a19cbe95ca5..f3a46b77a0f 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWith1DoesNotMatchTrue.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWith1DoesNotMatchTrue.md @@ -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_1_0_unit_test/java/docs/components/schemas/EnumWithEscapedCharacters.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWithEscapedCharacters.md index e526d2e529e..8c281b72e92 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWithEscapedCharacters.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWithEscapedCharacters.md @@ -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_1_0_unit_test/java/docs/components/schemas/EnumWithFalseDoesNotMatch0.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWithFalseDoesNotMatch0.md index 49ada19b41f..6e8b2582e42 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWithFalseDoesNotMatch0.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWithFalseDoesNotMatch0.md @@ -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_1_0_unit_test/java/docs/components/schemas/EnumWithTrueDoesNotMatch1.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWithTrueDoesNotMatch1.md index 2a6d6f9c88d..5902c3f2697 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWithTrueDoesNotMatch1.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWithTrueDoesNotMatch1.md @@ -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_1_0_unit_test/java/docs/components/schemas/EnumsInProperties.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumsInProperties.md index 6b1dbcf30dd..a518254b410 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumsInProperties.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumsInProperties.md @@ -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_1_0_unit_test/java/docs/components/schemas/ExclusivemaximumValidation.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/ExclusivemaximumValidation.md index 1e29e0b3d3d..ca6f30db8cb 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/ExclusivemaximumValidation.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/ExclusivemaximumValidation.md @@ -4,23 +4,23 @@ public class ExclusivemaximumValidation
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 | [ExclusivemaximumValidation.ExclusivemaximumValidation1Boxed](#exclusivemaximumvalidation1boxed)
abstract sealed validated payload class | -| static class | [ExclusivemaximumValidation.ExclusivemaximumValidation1BoxedVoid](#exclusivemaximumvalidation1boxedvoid)
boxed class to store validated null payloads | -| static class | [ExclusivemaximumValidation.ExclusivemaximumValidation1BoxedBoolean](#exclusivemaximumvalidation1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ExclusivemaximumValidation.ExclusivemaximumValidation1BoxedNumber](#exclusivemaximumvalidation1boxednumber)
boxed class to store validated Number payloads | -| static class | [ExclusivemaximumValidation.ExclusivemaximumValidation1BoxedString](#exclusivemaximumvalidation1boxedstring)
boxed class to store validated String payloads | -| static class | [ExclusivemaximumValidation.ExclusivemaximumValidation1BoxedList](#exclusivemaximumvalidation1boxedlist)
boxed class to store validated List payloads | -| static class | [ExclusivemaximumValidation.ExclusivemaximumValidation1BoxedMap](#exclusivemaximumvalidation1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ExclusivemaximumValidation.ExclusivemaximumValidation1Boxed](#exclusivemaximumvalidation1boxed)
sealed interface for validated payloads | +| record | [ExclusivemaximumValidation.ExclusivemaximumValidation1BoxedVoid](#exclusivemaximumvalidation1boxedvoid)
boxed class to store validated null payloads | +| record | [ExclusivemaximumValidation.ExclusivemaximumValidation1BoxedBoolean](#exclusivemaximumvalidation1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ExclusivemaximumValidation.ExclusivemaximumValidation1BoxedNumber](#exclusivemaximumvalidation1boxednumber)
boxed class to store validated Number payloads | +| record | [ExclusivemaximumValidation.ExclusivemaximumValidation1BoxedString](#exclusivemaximumvalidation1boxedstring)
boxed class to store validated String payloads | +| record | [ExclusivemaximumValidation.ExclusivemaximumValidation1BoxedList](#exclusivemaximumvalidation1boxedlist)
boxed class to store validated List payloads | +| record | [ExclusivemaximumValidation.ExclusivemaximumValidation1BoxedMap](#exclusivemaximumvalidation1boxedmap)
boxed class to store validated Map payloads | | static class | [ExclusivemaximumValidation.ExclusivemaximumValidation1](#exclusivemaximumvalidation1)
schema class | ## ExclusivemaximumValidation1Boxed -public static abstract sealed class ExclusivemaximumValidation1Boxed
+public sealed interface ExclusivemaximumValidation1Boxed
permits
[ExclusivemaximumValidation1BoxedVoid](#exclusivemaximumvalidation1boxedvoid), [ExclusivemaximumValidation1BoxedBoolean](#exclusivemaximumvalidation1boxedboolean), @@ -29,103 +29,109 @@ permits
[ExclusivemaximumValidation1BoxedList](#exclusivemaximumvalidation1boxedlist), [ExclusivemaximumValidation1BoxedMap](#exclusivemaximumvalidation1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ExclusivemaximumValidation1BoxedVoid -public static final class ExclusivemaximumValidation1BoxedVoid
-extends [ExclusivemaximumValidation1Boxed](#exclusivemaximumvalidation1boxed) +public record ExclusivemaximumValidation1BoxedVoid
+implements [ExclusivemaximumValidation1Boxed](#exclusivemaximumvalidation1boxed) -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 | | --------------------------- | | ExclusivemaximumValidation1BoxedVoid(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 | ## ExclusivemaximumValidation1BoxedBoolean -public static final class ExclusivemaximumValidation1BoxedBoolean
-extends [ExclusivemaximumValidation1Boxed](#exclusivemaximumvalidation1boxed) +public record ExclusivemaximumValidation1BoxedBoolean
+implements [ExclusivemaximumValidation1Boxed](#exclusivemaximumvalidation1boxed) -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 | | --------------------------- | | ExclusivemaximumValidation1BoxedBoolean(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 | ## ExclusivemaximumValidation1BoxedNumber -public static final class ExclusivemaximumValidation1BoxedNumber
-extends [ExclusivemaximumValidation1Boxed](#exclusivemaximumvalidation1boxed) +public record ExclusivemaximumValidation1BoxedNumber
+implements [ExclusivemaximumValidation1Boxed](#exclusivemaximumvalidation1boxed) -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 | | --------------------------- | | ExclusivemaximumValidation1BoxedNumber(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 | ## ExclusivemaximumValidation1BoxedString -public static final class ExclusivemaximumValidation1BoxedString
-extends [ExclusivemaximumValidation1Boxed](#exclusivemaximumvalidation1boxed) +public record ExclusivemaximumValidation1BoxedString
+implements [ExclusivemaximumValidation1Boxed](#exclusivemaximumvalidation1boxed) -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 | | --------------------------- | | ExclusivemaximumValidation1BoxedString(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 | ## ExclusivemaximumValidation1BoxedList -public static final class ExclusivemaximumValidation1BoxedList
-extends [ExclusivemaximumValidation1Boxed](#exclusivemaximumvalidation1boxed) +public record ExclusivemaximumValidation1BoxedList
+implements [ExclusivemaximumValidation1Boxed](#exclusivemaximumvalidation1boxed) -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 | | --------------------------- | | ExclusivemaximumValidation1BoxedList(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 | ## ExclusivemaximumValidation1BoxedMap -public static final class ExclusivemaximumValidation1BoxedMap
-extends [ExclusivemaximumValidation1Boxed](#exclusivemaximumvalidation1boxed) +public record ExclusivemaximumValidation1BoxedMap
+implements [ExclusivemaximumValidation1Boxed](#exclusivemaximumvalidation1boxed) -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 | | --------------------------- | | ExclusivemaximumValidation1BoxedMap(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 | ## ExclusivemaximumValidation1 public static class ExclusivemaximumValidation1
@@ -157,5 +163,7 @@ A schema class that validates payloads | [ExclusivemaximumValidation1BoxedBoolean](#exclusivemaximumvalidation1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ExclusivemaximumValidation1BoxedMap](#exclusivemaximumvalidation1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [ExclusivemaximumValidation1BoxedList](#exclusivemaximumvalidation1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ExclusivemaximumValidation1Boxed](#exclusivemaximumvalidation1boxed) | 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_1_0_unit_test/java/docs/components/schemas/ExclusiveminimumValidation.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/ExclusiveminimumValidation.md index f953fabb28e..e9c2e63c0af 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/ExclusiveminimumValidation.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/ExclusiveminimumValidation.md @@ -4,23 +4,23 @@ public class ExclusiveminimumValidation
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 | [ExclusiveminimumValidation.ExclusiveminimumValidation1Boxed](#exclusiveminimumvalidation1boxed)
abstract sealed validated payload class | -| static class | [ExclusiveminimumValidation.ExclusiveminimumValidation1BoxedVoid](#exclusiveminimumvalidation1boxedvoid)
boxed class to store validated null payloads | -| static class | [ExclusiveminimumValidation.ExclusiveminimumValidation1BoxedBoolean](#exclusiveminimumvalidation1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ExclusiveminimumValidation.ExclusiveminimumValidation1BoxedNumber](#exclusiveminimumvalidation1boxednumber)
boxed class to store validated Number payloads | -| static class | [ExclusiveminimumValidation.ExclusiveminimumValidation1BoxedString](#exclusiveminimumvalidation1boxedstring)
boxed class to store validated String payloads | -| static class | [ExclusiveminimumValidation.ExclusiveminimumValidation1BoxedList](#exclusiveminimumvalidation1boxedlist)
boxed class to store validated List payloads | -| static class | [ExclusiveminimumValidation.ExclusiveminimumValidation1BoxedMap](#exclusiveminimumvalidation1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ExclusiveminimumValidation.ExclusiveminimumValidation1Boxed](#exclusiveminimumvalidation1boxed)
sealed interface for validated payloads | +| record | [ExclusiveminimumValidation.ExclusiveminimumValidation1BoxedVoid](#exclusiveminimumvalidation1boxedvoid)
boxed class to store validated null payloads | +| record | [ExclusiveminimumValidation.ExclusiveminimumValidation1BoxedBoolean](#exclusiveminimumvalidation1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ExclusiveminimumValidation.ExclusiveminimumValidation1BoxedNumber](#exclusiveminimumvalidation1boxednumber)
boxed class to store validated Number payloads | +| record | [ExclusiveminimumValidation.ExclusiveminimumValidation1BoxedString](#exclusiveminimumvalidation1boxedstring)
boxed class to store validated String payloads | +| record | [ExclusiveminimumValidation.ExclusiveminimumValidation1BoxedList](#exclusiveminimumvalidation1boxedlist)
boxed class to store validated List payloads | +| record | [ExclusiveminimumValidation.ExclusiveminimumValidation1BoxedMap](#exclusiveminimumvalidation1boxedmap)
boxed class to store validated Map payloads | | static class | [ExclusiveminimumValidation.ExclusiveminimumValidation1](#exclusiveminimumvalidation1)
schema class | ## ExclusiveminimumValidation1Boxed -public static abstract sealed class ExclusiveminimumValidation1Boxed
+public sealed interface ExclusiveminimumValidation1Boxed
permits
[ExclusiveminimumValidation1BoxedVoid](#exclusiveminimumvalidation1boxedvoid), [ExclusiveminimumValidation1BoxedBoolean](#exclusiveminimumvalidation1boxedboolean), @@ -29,103 +29,109 @@ permits
[ExclusiveminimumValidation1BoxedList](#exclusiveminimumvalidation1boxedlist), [ExclusiveminimumValidation1BoxedMap](#exclusiveminimumvalidation1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ExclusiveminimumValidation1BoxedVoid -public static final class ExclusiveminimumValidation1BoxedVoid
-extends [ExclusiveminimumValidation1Boxed](#exclusiveminimumvalidation1boxed) +public record ExclusiveminimumValidation1BoxedVoid
+implements [ExclusiveminimumValidation1Boxed](#exclusiveminimumvalidation1boxed) -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 | | --------------------------- | | ExclusiveminimumValidation1BoxedVoid(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 | ## ExclusiveminimumValidation1BoxedBoolean -public static final class ExclusiveminimumValidation1BoxedBoolean
-extends [ExclusiveminimumValidation1Boxed](#exclusiveminimumvalidation1boxed) +public record ExclusiveminimumValidation1BoxedBoolean
+implements [ExclusiveminimumValidation1Boxed](#exclusiveminimumvalidation1boxed) -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 | | --------------------------- | | ExclusiveminimumValidation1BoxedBoolean(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 | ## ExclusiveminimumValidation1BoxedNumber -public static final class ExclusiveminimumValidation1BoxedNumber
-extends [ExclusiveminimumValidation1Boxed](#exclusiveminimumvalidation1boxed) +public record ExclusiveminimumValidation1BoxedNumber
+implements [ExclusiveminimumValidation1Boxed](#exclusiveminimumvalidation1boxed) -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 | | --------------------------- | | ExclusiveminimumValidation1BoxedNumber(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 | ## ExclusiveminimumValidation1BoxedString -public static final class ExclusiveminimumValidation1BoxedString
-extends [ExclusiveminimumValidation1Boxed](#exclusiveminimumvalidation1boxed) +public record ExclusiveminimumValidation1BoxedString
+implements [ExclusiveminimumValidation1Boxed](#exclusiveminimumvalidation1boxed) -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 | | --------------------------- | | ExclusiveminimumValidation1BoxedString(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 | ## ExclusiveminimumValidation1BoxedList -public static final class ExclusiveminimumValidation1BoxedList
-extends [ExclusiveminimumValidation1Boxed](#exclusiveminimumvalidation1boxed) +public record ExclusiveminimumValidation1BoxedList
+implements [ExclusiveminimumValidation1Boxed](#exclusiveminimumvalidation1boxed) -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 | | --------------------------- | | ExclusiveminimumValidation1BoxedList(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 | ## ExclusiveminimumValidation1BoxedMap -public static final class ExclusiveminimumValidation1BoxedMap
-extends [ExclusiveminimumValidation1Boxed](#exclusiveminimumvalidation1boxed) +public record ExclusiveminimumValidation1BoxedMap
+implements [ExclusiveminimumValidation1Boxed](#exclusiveminimumvalidation1boxed) -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 | | --------------------------- | | ExclusiveminimumValidation1BoxedMap(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 | ## ExclusiveminimumValidation1 public static class ExclusiveminimumValidation1
@@ -157,5 +163,7 @@ A schema class that validates payloads | [ExclusiveminimumValidation1BoxedBoolean](#exclusiveminimumvalidation1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ExclusiveminimumValidation1BoxedMap](#exclusiveminimumvalidation1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [ExclusiveminimumValidation1BoxedList](#exclusiveminimumvalidation1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ExclusiveminimumValidation1Boxed](#exclusiveminimumvalidation1boxed) | 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_1_0_unit_test/java/docs/components/schemas/FloatDivisionInf.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/FloatDivisionInf.md index ef8a8d5dae5..d6338e6126f 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/FloatDivisionInf.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/FloatDivisionInf.md @@ -4,38 +4,39 @@ public class FloatDivisionInf
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 | [FloatDivisionInf.FloatDivisionInf1Boxed](#floatdivisioninf1boxed)
abstract sealed validated payload class | -| static class | [FloatDivisionInf.FloatDivisionInf1BoxedNumber](#floatdivisioninf1boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [FloatDivisionInf.FloatDivisionInf1Boxed](#floatdivisioninf1boxed)
sealed interface for validated payloads | +| record | [FloatDivisionInf.FloatDivisionInf1BoxedNumber](#floatdivisioninf1boxednumber)
boxed class to store validated Number payloads | | static class | [FloatDivisionInf.FloatDivisionInf1](#floatdivisioninf1)
schema class | ## FloatDivisionInf1Boxed -public static abstract sealed class FloatDivisionInf1Boxed
+public sealed interface FloatDivisionInf1Boxed
permits
[FloatDivisionInf1BoxedNumber](#floatdivisioninf1boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## FloatDivisionInf1BoxedNumber -public static final class FloatDivisionInf1BoxedNumber
-extends [FloatDivisionInf1Boxed](#floatdivisioninf1boxed) +public record FloatDivisionInf1BoxedNumber
+implements [FloatDivisionInf1Boxed](#floatdivisioninf1boxed) -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 | | --------------------------- | | FloatDivisionInf1BoxedNumber(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 | ## FloatDivisionInf1 public static class FloatDivisionInf1
@@ -77,5 +78,7 @@ int validatedPayload = FloatDivisionInf.FloatDivisionInf1.validate( | ----------------- | ---------------------- | | long | validate(long arg, SchemaConfiguration configuration) | | [FloatDivisionInf1BoxedNumber](#floatdivisioninf1boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [FloatDivisionInf1Boxed](#floatdivisioninf1boxed) | 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_1_0_unit_test/java/docs/components/schemas/ForbiddenProperty.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/ForbiddenProperty.md index f83f8e2d402..a0b819b97ca 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/ForbiddenProperty.md +++ b/samples/client/3_1_0_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,35 +12,35 @@ 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 | -| static class | [ForbiddenProperty.NotBoxed](#notboxed)
abstract sealed validated payload class | -| static class | [ForbiddenProperty.NotBoxedVoid](#notboxedvoid)
boxed class to store validated null payloads | -| static class | [ForbiddenProperty.NotBoxedBoolean](#notboxedboolean)
boxed class to store validated boolean payloads | -| static class | [ForbiddenProperty.NotBoxedNumber](#notboxednumber)
boxed class to store validated Number payloads | -| static class | [ForbiddenProperty.NotBoxedString](#notboxedstring)
boxed class to store validated String payloads | -| static class | [ForbiddenProperty.NotBoxedList](#notboxedlist)
boxed class to store validated List payloads | -| static class | [ForbiddenProperty.NotBoxedMap](#notboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ForbiddenProperty.NotBoxed](#notboxed)
sealed interface for validated payloads | +| record | [ForbiddenProperty.NotBoxedVoid](#notboxedvoid)
boxed class to store validated null payloads | +| record | [ForbiddenProperty.NotBoxedBoolean](#notboxedboolean)
boxed class to store validated boolean payloads | +| record | [ForbiddenProperty.NotBoxedNumber](#notboxednumber)
boxed class to store validated Number payloads | +| record | [ForbiddenProperty.NotBoxedString](#notboxedstring)
boxed class to store validated String payloads | +| record | [ForbiddenProperty.NotBoxedList](#notboxedlist)
boxed class to store validated List payloads | +| record | [ForbiddenProperty.NotBoxedMap](#notboxedmap)
boxed class to store validated Map payloads | | static class | [ForbiddenProperty.Not](#not)
schema class | ## ForbiddenProperty1Boxed -public static abstract sealed class ForbiddenProperty1Boxed
+public sealed interface ForbiddenProperty1Boxed
permits
[ForbiddenProperty1BoxedVoid](#forbiddenproperty1boxedvoid), [ForbiddenProperty1BoxedBoolean](#forbiddenproperty1boxedboolean), @@ -49,103 +49,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
@@ -177,7 +183,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` @@ -226,7 +234,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), @@ -235,103 +243,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
@@ -363,9 +377,11 @@ A schema class that validates payloads | [FooBoxedBoolean](#fooboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [FooBoxedMap](#fooboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [FooBoxedList](#fooboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [FooBoxed](#fooboxed) | 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
[NotBoxedVoid](#notboxedvoid), [NotBoxedBoolean](#notboxedboolean), @@ -374,103 +390,109 @@ permits
[NotBoxedList](#notboxedlist), [NotBoxedMap](#notboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## NotBoxedVoid -public static final class NotBoxedVoid
-extends [NotBoxed](#notboxed) +public record NotBoxedVoid
+implements [NotBoxed](#notboxed) -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 | | --------------------------- | | NotBoxedVoid(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 | ## NotBoxedBoolean -public static final class NotBoxedBoolean
-extends [NotBoxed](#notboxed) +public record NotBoxedBoolean
+implements [NotBoxed](#notboxed) -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 | | --------------------------- | | NotBoxedBoolean(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 | ## NotBoxedNumber -public static final class NotBoxedNumber
-extends [NotBoxed](#notboxed) +public record NotBoxedNumber
+implements [NotBoxed](#notboxed) -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 | | --------------------------- | | NotBoxedNumber(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 | ## NotBoxedString -public static final class NotBoxedString
-extends [NotBoxed](#notboxed) +public record NotBoxedString
+implements [NotBoxed](#notboxed) -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 | | --------------------------- | | NotBoxedString(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 | ## NotBoxedList -public static final class NotBoxedList
-extends [NotBoxed](#notboxed) +public record NotBoxedList
+implements [NotBoxed](#notboxed) -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 | | --------------------------- | | NotBoxedList(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 | ## 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(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 | ## Not public static class Not
diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/HostnameFormat.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/HostnameFormat.md index 8630d7ab683..085ff0c08a1 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/HostnameFormat.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/IdnEmailFormat.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/IdnEmailFormat.md index 1c48df9456b..0b756db3627 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/IdnEmailFormat.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/IdnEmailFormat.md @@ -4,23 +4,23 @@ public class IdnEmailFormat
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 | [IdnEmailFormat.IdnEmailFormat1Boxed](#idnemailformat1boxed)
abstract sealed validated payload class | -| static class | [IdnEmailFormat.IdnEmailFormat1BoxedVoid](#idnemailformat1boxedvoid)
boxed class to store validated null payloads | -| static class | [IdnEmailFormat.IdnEmailFormat1BoxedBoolean](#idnemailformat1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [IdnEmailFormat.IdnEmailFormat1BoxedNumber](#idnemailformat1boxednumber)
boxed class to store validated Number payloads | -| static class | [IdnEmailFormat.IdnEmailFormat1BoxedString](#idnemailformat1boxedstring)
boxed class to store validated String payloads | -| static class | [IdnEmailFormat.IdnEmailFormat1BoxedList](#idnemailformat1boxedlist)
boxed class to store validated List payloads | -| static class | [IdnEmailFormat.IdnEmailFormat1BoxedMap](#idnemailformat1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [IdnEmailFormat.IdnEmailFormat1Boxed](#idnemailformat1boxed)
sealed interface for validated payloads | +| record | [IdnEmailFormat.IdnEmailFormat1BoxedVoid](#idnemailformat1boxedvoid)
boxed class to store validated null payloads | +| record | [IdnEmailFormat.IdnEmailFormat1BoxedBoolean](#idnemailformat1boxedboolean)
boxed class to store validated boolean payloads | +| record | [IdnEmailFormat.IdnEmailFormat1BoxedNumber](#idnemailformat1boxednumber)
boxed class to store validated Number payloads | +| record | [IdnEmailFormat.IdnEmailFormat1BoxedString](#idnemailformat1boxedstring)
boxed class to store validated String payloads | +| record | [IdnEmailFormat.IdnEmailFormat1BoxedList](#idnemailformat1boxedlist)
boxed class to store validated List payloads | +| record | [IdnEmailFormat.IdnEmailFormat1BoxedMap](#idnemailformat1boxedmap)
boxed class to store validated Map payloads | | static class | [IdnEmailFormat.IdnEmailFormat1](#idnemailformat1)
schema class | ## IdnEmailFormat1Boxed -public static abstract sealed class IdnEmailFormat1Boxed
+public sealed interface IdnEmailFormat1Boxed
permits
[IdnEmailFormat1BoxedVoid](#idnemailformat1boxedvoid), [IdnEmailFormat1BoxedBoolean](#idnemailformat1boxedboolean), @@ -29,103 +29,109 @@ permits
[IdnEmailFormat1BoxedList](#idnemailformat1boxedlist), [IdnEmailFormat1BoxedMap](#idnemailformat1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## IdnEmailFormat1BoxedVoid -public static final class IdnEmailFormat1BoxedVoid
-extends [IdnEmailFormat1Boxed](#idnemailformat1boxed) +public record IdnEmailFormat1BoxedVoid
+implements [IdnEmailFormat1Boxed](#idnemailformat1boxed) -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 | | --------------------------- | | IdnEmailFormat1BoxedVoid(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 | ## IdnEmailFormat1BoxedBoolean -public static final class IdnEmailFormat1BoxedBoolean
-extends [IdnEmailFormat1Boxed](#idnemailformat1boxed) +public record IdnEmailFormat1BoxedBoolean
+implements [IdnEmailFormat1Boxed](#idnemailformat1boxed) -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 | | --------------------------- | | IdnEmailFormat1BoxedBoolean(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 | ## IdnEmailFormat1BoxedNumber -public static final class IdnEmailFormat1BoxedNumber
-extends [IdnEmailFormat1Boxed](#idnemailformat1boxed) +public record IdnEmailFormat1BoxedNumber
+implements [IdnEmailFormat1Boxed](#idnemailformat1boxed) -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 | | --------------------------- | | IdnEmailFormat1BoxedNumber(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 | ## IdnEmailFormat1BoxedString -public static final class IdnEmailFormat1BoxedString
-extends [IdnEmailFormat1Boxed](#idnemailformat1boxed) +public record IdnEmailFormat1BoxedString
+implements [IdnEmailFormat1Boxed](#idnemailformat1boxed) -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 | | --------------------------- | | IdnEmailFormat1BoxedString(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 | ## IdnEmailFormat1BoxedList -public static final class IdnEmailFormat1BoxedList
-extends [IdnEmailFormat1Boxed](#idnemailformat1boxed) +public record IdnEmailFormat1BoxedList
+implements [IdnEmailFormat1Boxed](#idnemailformat1boxed) -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 | | --------------------------- | | IdnEmailFormat1BoxedList(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 | ## IdnEmailFormat1BoxedMap -public static final class IdnEmailFormat1BoxedMap
-extends [IdnEmailFormat1Boxed](#idnemailformat1boxed) +public record IdnEmailFormat1BoxedMap
+implements [IdnEmailFormat1Boxed](#idnemailformat1boxed) -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 | | --------------------------- | | IdnEmailFormat1BoxedMap(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 | ## IdnEmailFormat1 public static class IdnEmailFormat1
@@ -157,5 +163,7 @@ A schema class that validates payloads | [IdnEmailFormat1BoxedBoolean](#idnemailformat1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [IdnEmailFormat1BoxedMap](#idnemailformat1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [IdnEmailFormat1BoxedList](#idnemailformat1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [IdnEmailFormat1Boxed](#idnemailformat1boxed) | 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_1_0_unit_test/java/docs/components/schemas/IdnHostnameFormat.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/IdnHostnameFormat.md index fb37369c260..046d158dc78 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/IdnHostnameFormat.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/IdnHostnameFormat.md @@ -4,23 +4,23 @@ public class IdnHostnameFormat
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 | [IdnHostnameFormat.IdnHostnameFormat1Boxed](#idnhostnameformat1boxed)
abstract sealed validated payload class | -| static class | [IdnHostnameFormat.IdnHostnameFormat1BoxedVoid](#idnhostnameformat1boxedvoid)
boxed class to store validated null payloads | -| static class | [IdnHostnameFormat.IdnHostnameFormat1BoxedBoolean](#idnhostnameformat1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [IdnHostnameFormat.IdnHostnameFormat1BoxedNumber](#idnhostnameformat1boxednumber)
boxed class to store validated Number payloads | -| static class | [IdnHostnameFormat.IdnHostnameFormat1BoxedString](#idnhostnameformat1boxedstring)
boxed class to store validated String payloads | -| static class | [IdnHostnameFormat.IdnHostnameFormat1BoxedList](#idnhostnameformat1boxedlist)
boxed class to store validated List payloads | -| static class | [IdnHostnameFormat.IdnHostnameFormat1BoxedMap](#idnhostnameformat1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [IdnHostnameFormat.IdnHostnameFormat1Boxed](#idnhostnameformat1boxed)
sealed interface for validated payloads | +| record | [IdnHostnameFormat.IdnHostnameFormat1BoxedVoid](#idnhostnameformat1boxedvoid)
boxed class to store validated null payloads | +| record | [IdnHostnameFormat.IdnHostnameFormat1BoxedBoolean](#idnhostnameformat1boxedboolean)
boxed class to store validated boolean payloads | +| record | [IdnHostnameFormat.IdnHostnameFormat1BoxedNumber](#idnhostnameformat1boxednumber)
boxed class to store validated Number payloads | +| record | [IdnHostnameFormat.IdnHostnameFormat1BoxedString](#idnhostnameformat1boxedstring)
boxed class to store validated String payloads | +| record | [IdnHostnameFormat.IdnHostnameFormat1BoxedList](#idnhostnameformat1boxedlist)
boxed class to store validated List payloads | +| record | [IdnHostnameFormat.IdnHostnameFormat1BoxedMap](#idnhostnameformat1boxedmap)
boxed class to store validated Map payloads | | static class | [IdnHostnameFormat.IdnHostnameFormat1](#idnhostnameformat1)
schema class | ## IdnHostnameFormat1Boxed -public static abstract sealed class IdnHostnameFormat1Boxed
+public sealed interface IdnHostnameFormat1Boxed
permits
[IdnHostnameFormat1BoxedVoid](#idnhostnameformat1boxedvoid), [IdnHostnameFormat1BoxedBoolean](#idnhostnameformat1boxedboolean), @@ -29,103 +29,109 @@ permits
[IdnHostnameFormat1BoxedList](#idnhostnameformat1boxedlist), [IdnHostnameFormat1BoxedMap](#idnhostnameformat1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## IdnHostnameFormat1BoxedVoid -public static final class IdnHostnameFormat1BoxedVoid
-extends [IdnHostnameFormat1Boxed](#idnhostnameformat1boxed) +public record IdnHostnameFormat1BoxedVoid
+implements [IdnHostnameFormat1Boxed](#idnhostnameformat1boxed) -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 | | --------------------------- | | IdnHostnameFormat1BoxedVoid(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 | ## IdnHostnameFormat1BoxedBoolean -public static final class IdnHostnameFormat1BoxedBoolean
-extends [IdnHostnameFormat1Boxed](#idnhostnameformat1boxed) +public record IdnHostnameFormat1BoxedBoolean
+implements [IdnHostnameFormat1Boxed](#idnhostnameformat1boxed) -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 | | --------------------------- | | IdnHostnameFormat1BoxedBoolean(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 | ## IdnHostnameFormat1BoxedNumber -public static final class IdnHostnameFormat1BoxedNumber
-extends [IdnHostnameFormat1Boxed](#idnhostnameformat1boxed) +public record IdnHostnameFormat1BoxedNumber
+implements [IdnHostnameFormat1Boxed](#idnhostnameformat1boxed) -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 | | --------------------------- | | IdnHostnameFormat1BoxedNumber(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 | ## IdnHostnameFormat1BoxedString -public static final class IdnHostnameFormat1BoxedString
-extends [IdnHostnameFormat1Boxed](#idnhostnameformat1boxed) +public record IdnHostnameFormat1BoxedString
+implements [IdnHostnameFormat1Boxed](#idnhostnameformat1boxed) -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 | | --------------------------- | | IdnHostnameFormat1BoxedString(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 | ## IdnHostnameFormat1BoxedList -public static final class IdnHostnameFormat1BoxedList
-extends [IdnHostnameFormat1Boxed](#idnhostnameformat1boxed) +public record IdnHostnameFormat1BoxedList
+implements [IdnHostnameFormat1Boxed](#idnhostnameformat1boxed) -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 | | --------------------------- | | IdnHostnameFormat1BoxedList(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 | ## IdnHostnameFormat1BoxedMap -public static final class IdnHostnameFormat1BoxedMap
-extends [IdnHostnameFormat1Boxed](#idnhostnameformat1boxed) +public record IdnHostnameFormat1BoxedMap
+implements [IdnHostnameFormat1Boxed](#idnhostnameformat1boxed) -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 | | --------------------------- | | IdnHostnameFormat1BoxedMap(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 | ## IdnHostnameFormat1 public static class IdnHostnameFormat1
@@ -157,5 +163,7 @@ A schema class that validates payloads | [IdnHostnameFormat1BoxedBoolean](#idnhostnameformat1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [IdnHostnameFormat1BoxedMap](#idnhostnameformat1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [IdnHostnameFormat1BoxedList](#idnhostnameformat1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [IdnHostnameFormat1Boxed](#idnhostnameformat1boxed) | 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_1_0_unit_test/java/docs/components/schemas/IfAndElseWithoutThen.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/IfAndElseWithoutThen.md index 3d2a6cb8972..66ec8e109bf 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/IfAndElseWithoutThen.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/IfAndElseWithoutThen.md @@ -4,39 +4,39 @@ public class IfAndElseWithoutThen
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 | [IfAndElseWithoutThen.IfAndElseWithoutThen1Boxed](#ifandelsewithoutthen1boxed)
abstract sealed validated payload class | -| static class | [IfAndElseWithoutThen.IfAndElseWithoutThen1BoxedVoid](#ifandelsewithoutthen1boxedvoid)
boxed class to store validated null payloads | -| static class | [IfAndElseWithoutThen.IfAndElseWithoutThen1BoxedBoolean](#ifandelsewithoutthen1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [IfAndElseWithoutThen.IfAndElseWithoutThen1BoxedNumber](#ifandelsewithoutthen1boxednumber)
boxed class to store validated Number payloads | -| static class | [IfAndElseWithoutThen.IfAndElseWithoutThen1BoxedString](#ifandelsewithoutthen1boxedstring)
boxed class to store validated String payloads | -| static class | [IfAndElseWithoutThen.IfAndElseWithoutThen1BoxedList](#ifandelsewithoutthen1boxedlist)
boxed class to store validated List payloads | -| static class | [IfAndElseWithoutThen.IfAndElseWithoutThen1BoxedMap](#ifandelsewithoutthen1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [IfAndElseWithoutThen.IfAndElseWithoutThen1Boxed](#ifandelsewithoutthen1boxed)
sealed interface for validated payloads | +| record | [IfAndElseWithoutThen.IfAndElseWithoutThen1BoxedVoid](#ifandelsewithoutthen1boxedvoid)
boxed class to store validated null payloads | +| record | [IfAndElseWithoutThen.IfAndElseWithoutThen1BoxedBoolean](#ifandelsewithoutthen1boxedboolean)
boxed class to store validated boolean payloads | +| record | [IfAndElseWithoutThen.IfAndElseWithoutThen1BoxedNumber](#ifandelsewithoutthen1boxednumber)
boxed class to store validated Number payloads | +| record | [IfAndElseWithoutThen.IfAndElseWithoutThen1BoxedString](#ifandelsewithoutthen1boxedstring)
boxed class to store validated String payloads | +| record | [IfAndElseWithoutThen.IfAndElseWithoutThen1BoxedList](#ifandelsewithoutthen1boxedlist)
boxed class to store validated List payloads | +| record | [IfAndElseWithoutThen.IfAndElseWithoutThen1BoxedMap](#ifandelsewithoutthen1boxedmap)
boxed class to store validated Map payloads | | static class | [IfAndElseWithoutThen.IfAndElseWithoutThen1](#ifandelsewithoutthen1)
schema class | -| static class | [IfAndElseWithoutThen.IfSchemaBoxed](#ifschemaboxed)
abstract sealed validated payload class | -| static class | [IfAndElseWithoutThen.IfSchemaBoxedVoid](#ifschemaboxedvoid)
boxed class to store validated null payloads | -| static class | [IfAndElseWithoutThen.IfSchemaBoxedBoolean](#ifschemaboxedboolean)
boxed class to store validated boolean payloads | -| static class | [IfAndElseWithoutThen.IfSchemaBoxedNumber](#ifschemaboxednumber)
boxed class to store validated Number payloads | -| static class | [IfAndElseWithoutThen.IfSchemaBoxedString](#ifschemaboxedstring)
boxed class to store validated String payloads | -| static class | [IfAndElseWithoutThen.IfSchemaBoxedList](#ifschemaboxedlist)
boxed class to store validated List payloads | -| static class | [IfAndElseWithoutThen.IfSchemaBoxedMap](#ifschemaboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [IfAndElseWithoutThen.IfSchemaBoxed](#ifschemaboxed)
sealed interface for validated payloads | +| record | [IfAndElseWithoutThen.IfSchemaBoxedVoid](#ifschemaboxedvoid)
boxed class to store validated null payloads | +| record | [IfAndElseWithoutThen.IfSchemaBoxedBoolean](#ifschemaboxedboolean)
boxed class to store validated boolean payloads | +| record | [IfAndElseWithoutThen.IfSchemaBoxedNumber](#ifschemaboxednumber)
boxed class to store validated Number payloads | +| record | [IfAndElseWithoutThen.IfSchemaBoxedString](#ifschemaboxedstring)
boxed class to store validated String payloads | +| record | [IfAndElseWithoutThen.IfSchemaBoxedList](#ifschemaboxedlist)
boxed class to store validated List payloads | +| record | [IfAndElseWithoutThen.IfSchemaBoxedMap](#ifschemaboxedmap)
boxed class to store validated Map payloads | | static class | [IfAndElseWithoutThen.IfSchema](#ifschema)
schema class | -| static class | [IfAndElseWithoutThen.ElseSchemaBoxed](#elseschemaboxed)
abstract sealed validated payload class | -| static class | [IfAndElseWithoutThen.ElseSchemaBoxedVoid](#elseschemaboxedvoid)
boxed class to store validated null payloads | -| static class | [IfAndElseWithoutThen.ElseSchemaBoxedBoolean](#elseschemaboxedboolean)
boxed class to store validated boolean payloads | -| static class | [IfAndElseWithoutThen.ElseSchemaBoxedNumber](#elseschemaboxednumber)
boxed class to store validated Number payloads | -| static class | [IfAndElseWithoutThen.ElseSchemaBoxedString](#elseschemaboxedstring)
boxed class to store validated String payloads | -| static class | [IfAndElseWithoutThen.ElseSchemaBoxedList](#elseschemaboxedlist)
boxed class to store validated List payloads | -| static class | [IfAndElseWithoutThen.ElseSchemaBoxedMap](#elseschemaboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [IfAndElseWithoutThen.ElseSchemaBoxed](#elseschemaboxed)
sealed interface for validated payloads | +| record | [IfAndElseWithoutThen.ElseSchemaBoxedVoid](#elseschemaboxedvoid)
boxed class to store validated null payloads | +| record | [IfAndElseWithoutThen.ElseSchemaBoxedBoolean](#elseschemaboxedboolean)
boxed class to store validated boolean payloads | +| record | [IfAndElseWithoutThen.ElseSchemaBoxedNumber](#elseschemaboxednumber)
boxed class to store validated Number payloads | +| record | [IfAndElseWithoutThen.ElseSchemaBoxedString](#elseschemaboxedstring)
boxed class to store validated String payloads | +| record | [IfAndElseWithoutThen.ElseSchemaBoxedList](#elseschemaboxedlist)
boxed class to store validated List payloads | +| record | [IfAndElseWithoutThen.ElseSchemaBoxedMap](#elseschemaboxedmap)
boxed class to store validated Map payloads | | static class | [IfAndElseWithoutThen.ElseSchema](#elseschema)
schema class | ## IfAndElseWithoutThen1Boxed -public static abstract sealed class IfAndElseWithoutThen1Boxed
+public sealed interface IfAndElseWithoutThen1Boxed
permits
[IfAndElseWithoutThen1BoxedVoid](#ifandelsewithoutthen1boxedvoid), [IfAndElseWithoutThen1BoxedBoolean](#ifandelsewithoutthen1boxedboolean), @@ -45,103 +45,109 @@ permits
[IfAndElseWithoutThen1BoxedList](#ifandelsewithoutthen1boxedlist), [IfAndElseWithoutThen1BoxedMap](#ifandelsewithoutthen1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## IfAndElseWithoutThen1BoxedVoid -public static final class IfAndElseWithoutThen1BoxedVoid
-extends [IfAndElseWithoutThen1Boxed](#ifandelsewithoutthen1boxed) +public record IfAndElseWithoutThen1BoxedVoid
+implements [IfAndElseWithoutThen1Boxed](#ifandelsewithoutthen1boxed) -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 | | --------------------------- | | IfAndElseWithoutThen1BoxedVoid(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 | ## IfAndElseWithoutThen1BoxedBoolean -public static final class IfAndElseWithoutThen1BoxedBoolean
-extends [IfAndElseWithoutThen1Boxed](#ifandelsewithoutthen1boxed) +public record IfAndElseWithoutThen1BoxedBoolean
+implements [IfAndElseWithoutThen1Boxed](#ifandelsewithoutthen1boxed) -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 | | --------------------------- | | IfAndElseWithoutThen1BoxedBoolean(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 | ## IfAndElseWithoutThen1BoxedNumber -public static final class IfAndElseWithoutThen1BoxedNumber
-extends [IfAndElseWithoutThen1Boxed](#ifandelsewithoutthen1boxed) +public record IfAndElseWithoutThen1BoxedNumber
+implements [IfAndElseWithoutThen1Boxed](#ifandelsewithoutthen1boxed) -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 | | --------------------------- | | IfAndElseWithoutThen1BoxedNumber(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 | ## IfAndElseWithoutThen1BoxedString -public static final class IfAndElseWithoutThen1BoxedString
-extends [IfAndElseWithoutThen1Boxed](#ifandelsewithoutthen1boxed) +public record IfAndElseWithoutThen1BoxedString
+implements [IfAndElseWithoutThen1Boxed](#ifandelsewithoutthen1boxed) -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 | | --------------------------- | | IfAndElseWithoutThen1BoxedString(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 | ## IfAndElseWithoutThen1BoxedList -public static final class IfAndElseWithoutThen1BoxedList
-extends [IfAndElseWithoutThen1Boxed](#ifandelsewithoutthen1boxed) +public record IfAndElseWithoutThen1BoxedList
+implements [IfAndElseWithoutThen1Boxed](#ifandelsewithoutthen1boxed) -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 | | --------------------------- | | IfAndElseWithoutThen1BoxedList(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 | ## IfAndElseWithoutThen1BoxedMap -public static final class IfAndElseWithoutThen1BoxedMap
-extends [IfAndElseWithoutThen1Boxed](#ifandelsewithoutthen1boxed) +public record IfAndElseWithoutThen1BoxedMap
+implements [IfAndElseWithoutThen1Boxed](#ifandelsewithoutthen1boxed) -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 | | --------------------------- | | IfAndElseWithoutThen1BoxedMap(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 | ## IfAndElseWithoutThen1 public static class IfAndElseWithoutThen1
@@ -174,9 +180,11 @@ A schema class that validates payloads | [IfAndElseWithoutThen1BoxedBoolean](#ifandelsewithoutthen1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [IfAndElseWithoutThen1BoxedMap](#ifandelsewithoutthen1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [IfAndElseWithoutThen1BoxedList](#ifandelsewithoutthen1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [IfAndElseWithoutThen1Boxed](#ifandelsewithoutthen1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## IfSchemaBoxed -public static abstract sealed class IfSchemaBoxed
+public sealed interface IfSchemaBoxed
permits
[IfSchemaBoxedVoid](#ifschemaboxedvoid), [IfSchemaBoxedBoolean](#ifschemaboxedboolean), @@ -185,103 +193,109 @@ permits
[IfSchemaBoxedList](#ifschemaboxedlist), [IfSchemaBoxedMap](#ifschemaboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## IfSchemaBoxedVoid -public static final class IfSchemaBoxedVoid
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedVoid
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedVoid(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 | ## IfSchemaBoxedBoolean -public static final class IfSchemaBoxedBoolean
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedBoolean
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedBoolean(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 | ## IfSchemaBoxedNumber -public static final class IfSchemaBoxedNumber
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedNumber
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedNumber(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 | ## IfSchemaBoxedString -public static final class IfSchemaBoxedString
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedString
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedString(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 | ## IfSchemaBoxedList -public static final class IfSchemaBoxedList
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedList
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedList(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 | ## IfSchemaBoxedMap -public static final class IfSchemaBoxedMap
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedMap
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedMap(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 | ## IfSchema public static class IfSchema
@@ -313,9 +327,11 @@ A schema class that validates payloads | [IfSchemaBoxedBoolean](#ifschemaboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [IfSchemaBoxedMap](#ifschemaboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [IfSchemaBoxedList](#ifschemaboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [IfSchemaBoxed](#ifschemaboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ElseSchemaBoxed -public static abstract sealed class ElseSchemaBoxed
+public sealed interface ElseSchemaBoxed
permits
[ElseSchemaBoxedVoid](#elseschemaboxedvoid), [ElseSchemaBoxedBoolean](#elseschemaboxedboolean), @@ -324,103 +340,109 @@ permits
[ElseSchemaBoxedList](#elseschemaboxedlist), [ElseSchemaBoxedMap](#elseschemaboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ElseSchemaBoxedVoid -public static final class ElseSchemaBoxedVoid
-extends [ElseSchemaBoxed](#elseschemaboxed) +public record ElseSchemaBoxedVoid
+implements [ElseSchemaBoxed](#elseschemaboxed) -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 | | --------------------------- | | ElseSchemaBoxedVoid(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 | ## ElseSchemaBoxedBoolean -public static final class ElseSchemaBoxedBoolean
-extends [ElseSchemaBoxed](#elseschemaboxed) +public record ElseSchemaBoxedBoolean
+implements [ElseSchemaBoxed](#elseschemaboxed) -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 | | --------------------------- | | ElseSchemaBoxedBoolean(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 | ## ElseSchemaBoxedNumber -public static final class ElseSchemaBoxedNumber
-extends [ElseSchemaBoxed](#elseschemaboxed) +public record ElseSchemaBoxedNumber
+implements [ElseSchemaBoxed](#elseschemaboxed) -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 | | --------------------------- | | ElseSchemaBoxedNumber(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 | ## ElseSchemaBoxedString -public static final class ElseSchemaBoxedString
-extends [ElseSchemaBoxed](#elseschemaboxed) +public record ElseSchemaBoxedString
+implements [ElseSchemaBoxed](#elseschemaboxed) -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 | | --------------------------- | | ElseSchemaBoxedString(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 | ## ElseSchemaBoxedList -public static final class ElseSchemaBoxedList
-extends [ElseSchemaBoxed](#elseschemaboxed) +public record ElseSchemaBoxedList
+implements [ElseSchemaBoxed](#elseschemaboxed) -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 | | --------------------------- | | ElseSchemaBoxedList(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 | ## ElseSchemaBoxedMap -public static final class ElseSchemaBoxedMap
-extends [ElseSchemaBoxed](#elseschemaboxed) +public record ElseSchemaBoxedMap
+implements [ElseSchemaBoxed](#elseschemaboxed) -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 | | --------------------------- | | ElseSchemaBoxedMap(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 | ## ElseSchema public static class ElseSchema
@@ -452,5 +474,7 @@ A schema class that validates payloads | [ElseSchemaBoxedBoolean](#elseschemaboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ElseSchemaBoxedMap](#elseschemaboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [ElseSchemaBoxedList](#elseschemaboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ElseSchemaBoxed](#elseschemaboxed) | 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_1_0_unit_test/java/docs/components/schemas/IfAndThenWithoutElse.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/IfAndThenWithoutElse.md index 8479d4b1691..7f611633c05 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/IfAndThenWithoutElse.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/IfAndThenWithoutElse.md @@ -4,39 +4,39 @@ public class IfAndThenWithoutElse
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 | [IfAndThenWithoutElse.IfAndThenWithoutElse1Boxed](#ifandthenwithoutelse1boxed)
abstract sealed validated payload class | -| static class | [IfAndThenWithoutElse.IfAndThenWithoutElse1BoxedVoid](#ifandthenwithoutelse1boxedvoid)
boxed class to store validated null payloads | -| static class | [IfAndThenWithoutElse.IfAndThenWithoutElse1BoxedBoolean](#ifandthenwithoutelse1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [IfAndThenWithoutElse.IfAndThenWithoutElse1BoxedNumber](#ifandthenwithoutelse1boxednumber)
boxed class to store validated Number payloads | -| static class | [IfAndThenWithoutElse.IfAndThenWithoutElse1BoxedString](#ifandthenwithoutelse1boxedstring)
boxed class to store validated String payloads | -| static class | [IfAndThenWithoutElse.IfAndThenWithoutElse1BoxedList](#ifandthenwithoutelse1boxedlist)
boxed class to store validated List payloads | -| static class | [IfAndThenWithoutElse.IfAndThenWithoutElse1BoxedMap](#ifandthenwithoutelse1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [IfAndThenWithoutElse.IfAndThenWithoutElse1Boxed](#ifandthenwithoutelse1boxed)
sealed interface for validated payloads | +| record | [IfAndThenWithoutElse.IfAndThenWithoutElse1BoxedVoid](#ifandthenwithoutelse1boxedvoid)
boxed class to store validated null payloads | +| record | [IfAndThenWithoutElse.IfAndThenWithoutElse1BoxedBoolean](#ifandthenwithoutelse1boxedboolean)
boxed class to store validated boolean payloads | +| record | [IfAndThenWithoutElse.IfAndThenWithoutElse1BoxedNumber](#ifandthenwithoutelse1boxednumber)
boxed class to store validated Number payloads | +| record | [IfAndThenWithoutElse.IfAndThenWithoutElse1BoxedString](#ifandthenwithoutelse1boxedstring)
boxed class to store validated String payloads | +| record | [IfAndThenWithoutElse.IfAndThenWithoutElse1BoxedList](#ifandthenwithoutelse1boxedlist)
boxed class to store validated List payloads | +| record | [IfAndThenWithoutElse.IfAndThenWithoutElse1BoxedMap](#ifandthenwithoutelse1boxedmap)
boxed class to store validated Map payloads | | static class | [IfAndThenWithoutElse.IfAndThenWithoutElse1](#ifandthenwithoutelse1)
schema class | -| static class | [IfAndThenWithoutElse.ThenBoxed](#thenboxed)
abstract sealed validated payload class | -| static class | [IfAndThenWithoutElse.ThenBoxedVoid](#thenboxedvoid)
boxed class to store validated null payloads | -| static class | [IfAndThenWithoutElse.ThenBoxedBoolean](#thenboxedboolean)
boxed class to store validated boolean payloads | -| static class | [IfAndThenWithoutElse.ThenBoxedNumber](#thenboxednumber)
boxed class to store validated Number payloads | -| static class | [IfAndThenWithoutElse.ThenBoxedString](#thenboxedstring)
boxed class to store validated String payloads | -| static class | [IfAndThenWithoutElse.ThenBoxedList](#thenboxedlist)
boxed class to store validated List payloads | -| static class | [IfAndThenWithoutElse.ThenBoxedMap](#thenboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [IfAndThenWithoutElse.ThenBoxed](#thenboxed)
sealed interface for validated payloads | +| record | [IfAndThenWithoutElse.ThenBoxedVoid](#thenboxedvoid)
boxed class to store validated null payloads | +| record | [IfAndThenWithoutElse.ThenBoxedBoolean](#thenboxedboolean)
boxed class to store validated boolean payloads | +| record | [IfAndThenWithoutElse.ThenBoxedNumber](#thenboxednumber)
boxed class to store validated Number payloads | +| record | [IfAndThenWithoutElse.ThenBoxedString](#thenboxedstring)
boxed class to store validated String payloads | +| record | [IfAndThenWithoutElse.ThenBoxedList](#thenboxedlist)
boxed class to store validated List payloads | +| record | [IfAndThenWithoutElse.ThenBoxedMap](#thenboxedmap)
boxed class to store validated Map payloads | | static class | [IfAndThenWithoutElse.Then](#then)
schema class | -| static class | [IfAndThenWithoutElse.IfSchemaBoxed](#ifschemaboxed)
abstract sealed validated payload class | -| static class | [IfAndThenWithoutElse.IfSchemaBoxedVoid](#ifschemaboxedvoid)
boxed class to store validated null payloads | -| static class | [IfAndThenWithoutElse.IfSchemaBoxedBoolean](#ifschemaboxedboolean)
boxed class to store validated boolean payloads | -| static class | [IfAndThenWithoutElse.IfSchemaBoxedNumber](#ifschemaboxednumber)
boxed class to store validated Number payloads | -| static class | [IfAndThenWithoutElse.IfSchemaBoxedString](#ifschemaboxedstring)
boxed class to store validated String payloads | -| static class | [IfAndThenWithoutElse.IfSchemaBoxedList](#ifschemaboxedlist)
boxed class to store validated List payloads | -| static class | [IfAndThenWithoutElse.IfSchemaBoxedMap](#ifschemaboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [IfAndThenWithoutElse.IfSchemaBoxed](#ifschemaboxed)
sealed interface for validated payloads | +| record | [IfAndThenWithoutElse.IfSchemaBoxedVoid](#ifschemaboxedvoid)
boxed class to store validated null payloads | +| record | [IfAndThenWithoutElse.IfSchemaBoxedBoolean](#ifschemaboxedboolean)
boxed class to store validated boolean payloads | +| record | [IfAndThenWithoutElse.IfSchemaBoxedNumber](#ifschemaboxednumber)
boxed class to store validated Number payloads | +| record | [IfAndThenWithoutElse.IfSchemaBoxedString](#ifschemaboxedstring)
boxed class to store validated String payloads | +| record | [IfAndThenWithoutElse.IfSchemaBoxedList](#ifschemaboxedlist)
boxed class to store validated List payloads | +| record | [IfAndThenWithoutElse.IfSchemaBoxedMap](#ifschemaboxedmap)
boxed class to store validated Map payloads | | static class | [IfAndThenWithoutElse.IfSchema](#ifschema)
schema class | ## IfAndThenWithoutElse1Boxed -public static abstract sealed class IfAndThenWithoutElse1Boxed
+public sealed interface IfAndThenWithoutElse1Boxed
permits
[IfAndThenWithoutElse1BoxedVoid](#ifandthenwithoutelse1boxedvoid), [IfAndThenWithoutElse1BoxedBoolean](#ifandthenwithoutelse1boxedboolean), @@ -45,103 +45,109 @@ permits
[IfAndThenWithoutElse1BoxedList](#ifandthenwithoutelse1boxedlist), [IfAndThenWithoutElse1BoxedMap](#ifandthenwithoutelse1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## IfAndThenWithoutElse1BoxedVoid -public static final class IfAndThenWithoutElse1BoxedVoid
-extends [IfAndThenWithoutElse1Boxed](#ifandthenwithoutelse1boxed) +public record IfAndThenWithoutElse1BoxedVoid
+implements [IfAndThenWithoutElse1Boxed](#ifandthenwithoutelse1boxed) -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 | | --------------------------- | | IfAndThenWithoutElse1BoxedVoid(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 | ## IfAndThenWithoutElse1BoxedBoolean -public static final class IfAndThenWithoutElse1BoxedBoolean
-extends [IfAndThenWithoutElse1Boxed](#ifandthenwithoutelse1boxed) +public record IfAndThenWithoutElse1BoxedBoolean
+implements [IfAndThenWithoutElse1Boxed](#ifandthenwithoutelse1boxed) -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 | | --------------------------- | | IfAndThenWithoutElse1BoxedBoolean(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 | ## IfAndThenWithoutElse1BoxedNumber -public static final class IfAndThenWithoutElse1BoxedNumber
-extends [IfAndThenWithoutElse1Boxed](#ifandthenwithoutelse1boxed) +public record IfAndThenWithoutElse1BoxedNumber
+implements [IfAndThenWithoutElse1Boxed](#ifandthenwithoutelse1boxed) -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 | | --------------------------- | | IfAndThenWithoutElse1BoxedNumber(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 | ## IfAndThenWithoutElse1BoxedString -public static final class IfAndThenWithoutElse1BoxedString
-extends [IfAndThenWithoutElse1Boxed](#ifandthenwithoutelse1boxed) +public record IfAndThenWithoutElse1BoxedString
+implements [IfAndThenWithoutElse1Boxed](#ifandthenwithoutelse1boxed) -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 | | --------------------------- | | IfAndThenWithoutElse1BoxedString(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 | ## IfAndThenWithoutElse1BoxedList -public static final class IfAndThenWithoutElse1BoxedList
-extends [IfAndThenWithoutElse1Boxed](#ifandthenwithoutelse1boxed) +public record IfAndThenWithoutElse1BoxedList
+implements [IfAndThenWithoutElse1Boxed](#ifandthenwithoutelse1boxed) -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 | | --------------------------- | | IfAndThenWithoutElse1BoxedList(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 | ## IfAndThenWithoutElse1BoxedMap -public static final class IfAndThenWithoutElse1BoxedMap
-extends [IfAndThenWithoutElse1Boxed](#ifandthenwithoutelse1boxed) +public record IfAndThenWithoutElse1BoxedMap
+implements [IfAndThenWithoutElse1Boxed](#ifandthenwithoutelse1boxed) -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 | | --------------------------- | | IfAndThenWithoutElse1BoxedMap(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 | ## IfAndThenWithoutElse1 public static class IfAndThenWithoutElse1
@@ -174,9 +180,11 @@ A schema class that validates payloads | [IfAndThenWithoutElse1BoxedBoolean](#ifandthenwithoutelse1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [IfAndThenWithoutElse1BoxedMap](#ifandthenwithoutelse1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [IfAndThenWithoutElse1BoxedList](#ifandthenwithoutelse1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [IfAndThenWithoutElse1Boxed](#ifandthenwithoutelse1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ThenBoxed -public static abstract sealed class ThenBoxed
+public sealed interface ThenBoxed
permits
[ThenBoxedVoid](#thenboxedvoid), [ThenBoxedBoolean](#thenboxedboolean), @@ -185,103 +193,109 @@ permits
[ThenBoxedList](#thenboxedlist), [ThenBoxedMap](#thenboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ThenBoxedVoid -public static final class ThenBoxedVoid
-extends [ThenBoxed](#thenboxed) +public record ThenBoxedVoid
+implements [ThenBoxed](#thenboxed) -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 | | --------------------------- | | ThenBoxedVoid(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 | ## ThenBoxedBoolean -public static final class ThenBoxedBoolean
-extends [ThenBoxed](#thenboxed) +public record ThenBoxedBoolean
+implements [ThenBoxed](#thenboxed) -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 | | --------------------------- | | ThenBoxedBoolean(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 | ## ThenBoxedNumber -public static final class ThenBoxedNumber
-extends [ThenBoxed](#thenboxed) +public record ThenBoxedNumber
+implements [ThenBoxed](#thenboxed) -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 | | --------------------------- | | ThenBoxedNumber(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 | ## ThenBoxedString -public static final class ThenBoxedString
-extends [ThenBoxed](#thenboxed) +public record ThenBoxedString
+implements [ThenBoxed](#thenboxed) -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 | | --------------------------- | | ThenBoxedString(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 | ## ThenBoxedList -public static final class ThenBoxedList
-extends [ThenBoxed](#thenboxed) +public record ThenBoxedList
+implements [ThenBoxed](#thenboxed) -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 | | --------------------------- | | ThenBoxedList(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 | ## ThenBoxedMap -public static final class ThenBoxedMap
-extends [ThenBoxed](#thenboxed) +public record ThenBoxedMap
+implements [ThenBoxed](#thenboxed) -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 | | --------------------------- | | ThenBoxedMap(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 | ## Then public static class Then
@@ -313,9 +327,11 @@ A schema class that validates payloads | [ThenBoxedBoolean](#thenboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ThenBoxedMap](#thenboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [ThenBoxedList](#thenboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ThenBoxed](#thenboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## IfSchemaBoxed -public static abstract sealed class IfSchemaBoxed
+public sealed interface IfSchemaBoxed
permits
[IfSchemaBoxedVoid](#ifschemaboxedvoid), [IfSchemaBoxedBoolean](#ifschemaboxedboolean), @@ -324,103 +340,109 @@ permits
[IfSchemaBoxedList](#ifschemaboxedlist), [IfSchemaBoxedMap](#ifschemaboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## IfSchemaBoxedVoid -public static final class IfSchemaBoxedVoid
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedVoid
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedVoid(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 | ## IfSchemaBoxedBoolean -public static final class IfSchemaBoxedBoolean
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedBoolean
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedBoolean(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 | ## IfSchemaBoxedNumber -public static final class IfSchemaBoxedNumber
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedNumber
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedNumber(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 | ## IfSchemaBoxedString -public static final class IfSchemaBoxedString
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedString
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedString(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 | ## IfSchemaBoxedList -public static final class IfSchemaBoxedList
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedList
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedList(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 | ## IfSchemaBoxedMap -public static final class IfSchemaBoxedMap
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedMap
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedMap(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 | ## IfSchema public static class IfSchema
@@ -452,5 +474,7 @@ A schema class that validates payloads | [IfSchemaBoxedBoolean](#ifschemaboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [IfSchemaBoxedMap](#ifschemaboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [IfSchemaBoxedList](#ifschemaboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [IfSchemaBoxed](#ifschemaboxed) | 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_1_0_unit_test/java/docs/components/schemas/IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.md index 02a5c4d5431..35f6c235a13 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.md @@ -4,50 +4,50 @@ public class IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence
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 | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1Boxed](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxed)
abstract sealed validated payload class | -| static class | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedVoid](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxedvoid)
boxed class to store validated null payloads | -| static class | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedBoolean](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedNumber](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxednumber)
boxed class to store validated Number payloads | -| static class | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedString](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxedstring)
boxed class to store validated String payloads | -| static class | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedList](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxedlist)
boxed class to store validated List payloads | -| static class | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedMap](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1Boxed](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxed)
sealed interface for validated payloads | +| record | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedVoid](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxedvoid)
boxed class to store validated null payloads | +| record | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedBoolean](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxedboolean)
boxed class to store validated boolean payloads | +| record | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedNumber](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxednumber)
boxed class to store validated Number payloads | +| record | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedString](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxedstring)
boxed class to store validated String payloads | +| record | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedList](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxedlist)
boxed class to store validated List payloads | +| record | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedMap](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxedmap)
boxed class to store validated Map payloads | | static class | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1](#ifappearsattheendwhenserializedkeywordprocessingsequence1)
schema class | -| static class | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.ThenBoxed](#thenboxed)
abstract sealed validated payload class | -| static class | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.ThenBoxedVoid](#thenboxedvoid)
boxed class to store validated null payloads | -| static class | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.ThenBoxedBoolean](#thenboxedboolean)
boxed class to store validated boolean payloads | -| static class | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.ThenBoxedNumber](#thenboxednumber)
boxed class to store validated Number payloads | -| static class | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.ThenBoxedString](#thenboxedstring)
boxed class to store validated String payloads | -| static class | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.ThenBoxedList](#thenboxedlist)
boxed class to store validated List payloads | -| static class | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.ThenBoxedMap](#thenboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.ThenBoxed](#thenboxed)
sealed interface for validated payloads | +| record | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.ThenBoxedVoid](#thenboxedvoid)
boxed class to store validated null payloads | +| record | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.ThenBoxedBoolean](#thenboxedboolean)
boxed class to store validated boolean payloads | +| record | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.ThenBoxedNumber](#thenboxednumber)
boxed class to store validated Number payloads | +| record | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.ThenBoxedString](#thenboxedstring)
boxed class to store validated String payloads | +| record | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.ThenBoxedList](#thenboxedlist)
boxed class to store validated List payloads | +| record | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.ThenBoxedMap](#thenboxedmap)
boxed class to store validated Map payloads | | static class | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.Then](#then)
schema class | | enum | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.StringThenConst](#stringthenconst)
String enum | -| static class | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.IfSchemaBoxed](#ifschemaboxed)
abstract sealed validated payload class | -| static class | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.IfSchemaBoxedVoid](#ifschemaboxedvoid)
boxed class to store validated null payloads | -| static class | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.IfSchemaBoxedBoolean](#ifschemaboxedboolean)
boxed class to store validated boolean payloads | -| static class | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.IfSchemaBoxedNumber](#ifschemaboxednumber)
boxed class to store validated Number payloads | -| static class | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.IfSchemaBoxedString](#ifschemaboxedstring)
boxed class to store validated String payloads | -| static class | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.IfSchemaBoxedList](#ifschemaboxedlist)
boxed class to store validated List payloads | -| static class | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.IfSchemaBoxedMap](#ifschemaboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.IfSchemaBoxed](#ifschemaboxed)
sealed interface for validated payloads | +| record | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.IfSchemaBoxedVoid](#ifschemaboxedvoid)
boxed class to store validated null payloads | +| record | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.IfSchemaBoxedBoolean](#ifschemaboxedboolean)
boxed class to store validated boolean payloads | +| record | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.IfSchemaBoxedNumber](#ifschemaboxednumber)
boxed class to store validated Number payloads | +| record | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.IfSchemaBoxedString](#ifschemaboxedstring)
boxed class to store validated String payloads | +| record | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.IfSchemaBoxedList](#ifschemaboxedlist)
boxed class to store validated List payloads | +| record | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.IfSchemaBoxedMap](#ifschemaboxedmap)
boxed class to store validated Map payloads | | static class | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.IfSchema](#ifschema)
schema class | -| static class | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.ElseSchemaBoxed](#elseschemaboxed)
abstract sealed validated payload class | -| static class | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.ElseSchemaBoxedVoid](#elseschemaboxedvoid)
boxed class to store validated null payloads | -| static class | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.ElseSchemaBoxedBoolean](#elseschemaboxedboolean)
boxed class to store validated boolean payloads | -| static class | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.ElseSchemaBoxedNumber](#elseschemaboxednumber)
boxed class to store validated Number payloads | -| static class | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.ElseSchemaBoxedString](#elseschemaboxedstring)
boxed class to store validated String payloads | -| static class | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.ElseSchemaBoxedList](#elseschemaboxedlist)
boxed class to store validated List payloads | -| static class | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.ElseSchemaBoxedMap](#elseschemaboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.ElseSchemaBoxed](#elseschemaboxed)
sealed interface for validated payloads | +| record | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.ElseSchemaBoxedVoid](#elseschemaboxedvoid)
boxed class to store validated null payloads | +| record | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.ElseSchemaBoxedBoolean](#elseschemaboxedboolean)
boxed class to store validated boolean payloads | +| record | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.ElseSchemaBoxedNumber](#elseschemaboxednumber)
boxed class to store validated Number payloads | +| record | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.ElseSchemaBoxedString](#elseschemaboxedstring)
boxed class to store validated String payloads | +| record | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.ElseSchemaBoxedList](#elseschemaboxedlist)
boxed class to store validated List payloads | +| record | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.ElseSchemaBoxedMap](#elseschemaboxedmap)
boxed class to store validated Map payloads | | static class | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.ElseSchema](#elseschema)
schema class | | enum | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.StringElseConst](#stringelseconst)
String enum | ## IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1Boxed -public static abstract sealed class IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1Boxed
+public sealed interface IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1Boxed
permits
[IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedVoid](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxedvoid), [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedBoolean](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxedboolean), @@ -56,103 +56,109 @@ permits
[IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedList](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxedlist), [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedMap](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedVoid -public static final class IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedVoid
-extends [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1Boxed](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxed) +public record IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedVoid
+implements [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1Boxed](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxed) -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 | | --------------------------- | | IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedVoid(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 | ## IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedBoolean -public static final class IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedBoolean
-extends [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1Boxed](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxed) +public record IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedBoolean
+implements [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1Boxed](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxed) -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 | | --------------------------- | | IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedBoolean(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 | ## IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedNumber -public static final class IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedNumber
-extends [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1Boxed](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxed) +public record IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedNumber
+implements [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1Boxed](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxed) -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 | | --------------------------- | | IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedNumber(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 | ## IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedString -public static final class IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedString
-extends [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1Boxed](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxed) +public record IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedString
+implements [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1Boxed](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxed) -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 | | --------------------------- | | IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedString(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 | ## IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedList -public static final class IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedList
-extends [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1Boxed](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxed) +public record IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedList
+implements [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1Boxed](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxed) -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 | | --------------------------- | | IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedList(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 | ## IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedMap -public static final class IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedMap
-extends [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1Boxed](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxed) +public record IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedMap
+implements [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1Boxed](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxed) -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 | | --------------------------- | | IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedMap(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 | ## IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1 public static class IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1
@@ -186,9 +192,11 @@ A schema class that validates payloads | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedBoolean](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedMap](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedList](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1Boxed](#ifappearsattheendwhenserializedkeywordprocessingsequence1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ThenBoxed -public static abstract sealed class ThenBoxed
+public sealed interface ThenBoxed
permits
[ThenBoxedVoid](#thenboxedvoid), [ThenBoxedBoolean](#thenboxedboolean), @@ -197,103 +205,109 @@ permits
[ThenBoxedList](#thenboxedlist), [ThenBoxedMap](#thenboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ThenBoxedVoid -public static final class ThenBoxedVoid
-extends [ThenBoxed](#thenboxed) +public record ThenBoxedVoid
+implements [ThenBoxed](#thenboxed) -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 | | --------------------------- | | ThenBoxedVoid(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 | ## ThenBoxedBoolean -public static final class ThenBoxedBoolean
-extends [ThenBoxed](#thenboxed) +public record ThenBoxedBoolean
+implements [ThenBoxed](#thenboxed) -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 | | --------------------------- | | ThenBoxedBoolean(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 | ## ThenBoxedNumber -public static final class ThenBoxedNumber
-extends [ThenBoxed](#thenboxed) +public record ThenBoxedNumber
+implements [ThenBoxed](#thenboxed) -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 | | --------------------------- | | ThenBoxedNumber(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 | ## ThenBoxedString -public static final class ThenBoxedString
-extends [ThenBoxed](#thenboxed) +public record ThenBoxedString
+implements [ThenBoxed](#thenboxed) -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 | | --------------------------- | | ThenBoxedString(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 | ## ThenBoxedList -public static final class ThenBoxedList
-extends [ThenBoxed](#thenboxed) +public record ThenBoxedList
+implements [ThenBoxed](#thenboxed) -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 | | --------------------------- | | ThenBoxedList(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 | ## ThenBoxedMap -public static final class ThenBoxedMap
-extends [ThenBoxed](#thenboxed) +public record ThenBoxedMap
+implements [ThenBoxed](#thenboxed) -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 | | --------------------------- | | ThenBoxedMap(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 | ## Then public static class Then
@@ -325,7 +339,9 @@ A schema class that validates payloads | [ThenBoxedBoolean](#thenboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ThenBoxedMap](#thenboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [ThenBoxedList](#thenboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ThenBoxed](#thenboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringThenConst public enum StringThenConst
extends `Enum` @@ -338,7 +354,7 @@ A class that stores String enum values | YES | value = "yes" | ## IfSchemaBoxed -public static abstract sealed class IfSchemaBoxed
+public sealed interface IfSchemaBoxed
permits
[IfSchemaBoxedVoid](#ifschemaboxedvoid), [IfSchemaBoxedBoolean](#ifschemaboxedboolean), @@ -347,103 +363,109 @@ permits
[IfSchemaBoxedList](#ifschemaboxedlist), [IfSchemaBoxedMap](#ifschemaboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## IfSchemaBoxedVoid -public static final class IfSchemaBoxedVoid
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedVoid
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedVoid(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 | ## IfSchemaBoxedBoolean -public static final class IfSchemaBoxedBoolean
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedBoolean
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedBoolean(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 | ## IfSchemaBoxedNumber -public static final class IfSchemaBoxedNumber
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedNumber
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedNumber(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 | ## IfSchemaBoxedString -public static final class IfSchemaBoxedString
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedString
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedString(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 | ## IfSchemaBoxedList -public static final class IfSchemaBoxedList
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedList
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedList(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 | ## IfSchemaBoxedMap -public static final class IfSchemaBoxedMap
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedMap
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedMap(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 | ## IfSchema public static class IfSchema
@@ -475,9 +497,11 @@ A schema class that validates payloads | [IfSchemaBoxedBoolean](#ifschemaboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [IfSchemaBoxedMap](#ifschemaboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [IfSchemaBoxedList](#ifschemaboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [IfSchemaBoxed](#ifschemaboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ElseSchemaBoxed -public static abstract sealed class ElseSchemaBoxed
+public sealed interface ElseSchemaBoxed
permits
[ElseSchemaBoxedVoid](#elseschemaboxedvoid), [ElseSchemaBoxedBoolean](#elseschemaboxedboolean), @@ -486,103 +510,109 @@ permits
[ElseSchemaBoxedList](#elseschemaboxedlist), [ElseSchemaBoxedMap](#elseschemaboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ElseSchemaBoxedVoid -public static final class ElseSchemaBoxedVoid
-extends [ElseSchemaBoxed](#elseschemaboxed) +public record ElseSchemaBoxedVoid
+implements [ElseSchemaBoxed](#elseschemaboxed) -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 | | --------------------------- | | ElseSchemaBoxedVoid(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 | ## ElseSchemaBoxedBoolean -public static final class ElseSchemaBoxedBoolean
-extends [ElseSchemaBoxed](#elseschemaboxed) +public record ElseSchemaBoxedBoolean
+implements [ElseSchemaBoxed](#elseschemaboxed) -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 | | --------------------------- | | ElseSchemaBoxedBoolean(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 | ## ElseSchemaBoxedNumber -public static final class ElseSchemaBoxedNumber
-extends [ElseSchemaBoxed](#elseschemaboxed) +public record ElseSchemaBoxedNumber
+implements [ElseSchemaBoxed](#elseschemaboxed) -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 | | --------------------------- | | ElseSchemaBoxedNumber(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 | ## ElseSchemaBoxedString -public static final class ElseSchemaBoxedString
-extends [ElseSchemaBoxed](#elseschemaboxed) +public record ElseSchemaBoxedString
+implements [ElseSchemaBoxed](#elseschemaboxed) -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 | | --------------------------- | | ElseSchemaBoxedString(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 | ## ElseSchemaBoxedList -public static final class ElseSchemaBoxedList
-extends [ElseSchemaBoxed](#elseschemaboxed) +public record ElseSchemaBoxedList
+implements [ElseSchemaBoxed](#elseschemaboxed) -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 | | --------------------------- | | ElseSchemaBoxedList(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 | ## ElseSchemaBoxedMap -public static final class ElseSchemaBoxedMap
-extends [ElseSchemaBoxed](#elseschemaboxed) +public record ElseSchemaBoxedMap
+implements [ElseSchemaBoxed](#elseschemaboxed) -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 | | --------------------------- | | ElseSchemaBoxedMap(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 | ## ElseSchema public static class ElseSchema
@@ -614,7 +644,9 @@ A schema class that validates payloads | [ElseSchemaBoxedBoolean](#elseschemaboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ElseSchemaBoxedMap](#elseschemaboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [ElseSchemaBoxedList](#elseschemaboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ElseSchemaBoxed](#elseschemaboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringElseConst public enum StringElseConst
extends `Enum` diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/IgnoreElseWithoutIf.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/IgnoreElseWithoutIf.md index 52d6031e50c..dc5da4ce435 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/IgnoreElseWithoutIf.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/IgnoreElseWithoutIf.md @@ -4,33 +4,33 @@ public class IgnoreElseWithoutIf
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 | [IgnoreElseWithoutIf.IgnoreElseWithoutIf1Boxed](#ignoreelsewithoutif1boxed)
abstract sealed validated payload class | -| static class | [IgnoreElseWithoutIf.IgnoreElseWithoutIf1BoxedVoid](#ignoreelsewithoutif1boxedvoid)
boxed class to store validated null payloads | -| static class | [IgnoreElseWithoutIf.IgnoreElseWithoutIf1BoxedBoolean](#ignoreelsewithoutif1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [IgnoreElseWithoutIf.IgnoreElseWithoutIf1BoxedNumber](#ignoreelsewithoutif1boxednumber)
boxed class to store validated Number payloads | -| static class | [IgnoreElseWithoutIf.IgnoreElseWithoutIf1BoxedString](#ignoreelsewithoutif1boxedstring)
boxed class to store validated String payloads | -| static class | [IgnoreElseWithoutIf.IgnoreElseWithoutIf1BoxedList](#ignoreelsewithoutif1boxedlist)
boxed class to store validated List payloads | -| static class | [IgnoreElseWithoutIf.IgnoreElseWithoutIf1BoxedMap](#ignoreelsewithoutif1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [IgnoreElseWithoutIf.IgnoreElseWithoutIf1Boxed](#ignoreelsewithoutif1boxed)
sealed interface for validated payloads | +| record | [IgnoreElseWithoutIf.IgnoreElseWithoutIf1BoxedVoid](#ignoreelsewithoutif1boxedvoid)
boxed class to store validated null payloads | +| record | [IgnoreElseWithoutIf.IgnoreElseWithoutIf1BoxedBoolean](#ignoreelsewithoutif1boxedboolean)
boxed class to store validated boolean payloads | +| record | [IgnoreElseWithoutIf.IgnoreElseWithoutIf1BoxedNumber](#ignoreelsewithoutif1boxednumber)
boxed class to store validated Number payloads | +| record | [IgnoreElseWithoutIf.IgnoreElseWithoutIf1BoxedString](#ignoreelsewithoutif1boxedstring)
boxed class to store validated String payloads | +| record | [IgnoreElseWithoutIf.IgnoreElseWithoutIf1BoxedList](#ignoreelsewithoutif1boxedlist)
boxed class to store validated List payloads | +| record | [IgnoreElseWithoutIf.IgnoreElseWithoutIf1BoxedMap](#ignoreelsewithoutif1boxedmap)
boxed class to store validated Map payloads | | static class | [IgnoreElseWithoutIf.IgnoreElseWithoutIf1](#ignoreelsewithoutif1)
schema class | -| static class | [IgnoreElseWithoutIf.ElseSchemaBoxed](#elseschemaboxed)
abstract sealed validated payload class | -| static class | [IgnoreElseWithoutIf.ElseSchemaBoxedVoid](#elseschemaboxedvoid)
boxed class to store validated null payloads | -| static class | [IgnoreElseWithoutIf.ElseSchemaBoxedBoolean](#elseschemaboxedboolean)
boxed class to store validated boolean payloads | -| static class | [IgnoreElseWithoutIf.ElseSchemaBoxedNumber](#elseschemaboxednumber)
boxed class to store validated Number payloads | -| static class | [IgnoreElseWithoutIf.ElseSchemaBoxedString](#elseschemaboxedstring)
boxed class to store validated String payloads | -| static class | [IgnoreElseWithoutIf.ElseSchemaBoxedList](#elseschemaboxedlist)
boxed class to store validated List payloads | -| static class | [IgnoreElseWithoutIf.ElseSchemaBoxedMap](#elseschemaboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [IgnoreElseWithoutIf.ElseSchemaBoxed](#elseschemaboxed)
sealed interface for validated payloads | +| record | [IgnoreElseWithoutIf.ElseSchemaBoxedVoid](#elseschemaboxedvoid)
boxed class to store validated null payloads | +| record | [IgnoreElseWithoutIf.ElseSchemaBoxedBoolean](#elseschemaboxedboolean)
boxed class to store validated boolean payloads | +| record | [IgnoreElseWithoutIf.ElseSchemaBoxedNumber](#elseschemaboxednumber)
boxed class to store validated Number payloads | +| record | [IgnoreElseWithoutIf.ElseSchemaBoxedString](#elseschemaboxedstring)
boxed class to store validated String payloads | +| record | [IgnoreElseWithoutIf.ElseSchemaBoxedList](#elseschemaboxedlist)
boxed class to store validated List payloads | +| record | [IgnoreElseWithoutIf.ElseSchemaBoxedMap](#elseschemaboxedmap)
boxed class to store validated Map payloads | | static class | [IgnoreElseWithoutIf.ElseSchema](#elseschema)
schema class | | enum | [IgnoreElseWithoutIf.StringElseConst](#stringelseconst)
String enum | ## IgnoreElseWithoutIf1Boxed -public static abstract sealed class IgnoreElseWithoutIf1Boxed
+public sealed interface IgnoreElseWithoutIf1Boxed
permits
[IgnoreElseWithoutIf1BoxedVoid](#ignoreelsewithoutif1boxedvoid), [IgnoreElseWithoutIf1BoxedBoolean](#ignoreelsewithoutif1boxedboolean), @@ -39,103 +39,109 @@ permits
[IgnoreElseWithoutIf1BoxedList](#ignoreelsewithoutif1boxedlist), [IgnoreElseWithoutIf1BoxedMap](#ignoreelsewithoutif1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## IgnoreElseWithoutIf1BoxedVoid -public static final class IgnoreElseWithoutIf1BoxedVoid
-extends [IgnoreElseWithoutIf1Boxed](#ignoreelsewithoutif1boxed) +public record IgnoreElseWithoutIf1BoxedVoid
+implements [IgnoreElseWithoutIf1Boxed](#ignoreelsewithoutif1boxed) -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 | | --------------------------- | | IgnoreElseWithoutIf1BoxedVoid(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 | ## IgnoreElseWithoutIf1BoxedBoolean -public static final class IgnoreElseWithoutIf1BoxedBoolean
-extends [IgnoreElseWithoutIf1Boxed](#ignoreelsewithoutif1boxed) +public record IgnoreElseWithoutIf1BoxedBoolean
+implements [IgnoreElseWithoutIf1Boxed](#ignoreelsewithoutif1boxed) -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 | | --------------------------- | | IgnoreElseWithoutIf1BoxedBoolean(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 | ## IgnoreElseWithoutIf1BoxedNumber -public static final class IgnoreElseWithoutIf1BoxedNumber
-extends [IgnoreElseWithoutIf1Boxed](#ignoreelsewithoutif1boxed) +public record IgnoreElseWithoutIf1BoxedNumber
+implements [IgnoreElseWithoutIf1Boxed](#ignoreelsewithoutif1boxed) -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 | | --------------------------- | | IgnoreElseWithoutIf1BoxedNumber(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 | ## IgnoreElseWithoutIf1BoxedString -public static final class IgnoreElseWithoutIf1BoxedString
-extends [IgnoreElseWithoutIf1Boxed](#ignoreelsewithoutif1boxed) +public record IgnoreElseWithoutIf1BoxedString
+implements [IgnoreElseWithoutIf1Boxed](#ignoreelsewithoutif1boxed) -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 | | --------------------------- | | IgnoreElseWithoutIf1BoxedString(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 | ## IgnoreElseWithoutIf1BoxedList -public static final class IgnoreElseWithoutIf1BoxedList
-extends [IgnoreElseWithoutIf1Boxed](#ignoreelsewithoutif1boxed) +public record IgnoreElseWithoutIf1BoxedList
+implements [IgnoreElseWithoutIf1Boxed](#ignoreelsewithoutif1boxed) -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 | | --------------------------- | | IgnoreElseWithoutIf1BoxedList(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 | ## IgnoreElseWithoutIf1BoxedMap -public static final class IgnoreElseWithoutIf1BoxedMap
-extends [IgnoreElseWithoutIf1Boxed](#ignoreelsewithoutif1boxed) +public record IgnoreElseWithoutIf1BoxedMap
+implements [IgnoreElseWithoutIf1Boxed](#ignoreelsewithoutif1boxed) -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 | | --------------------------- | | IgnoreElseWithoutIf1BoxedMap(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 | ## IgnoreElseWithoutIf1 public static class IgnoreElseWithoutIf1
@@ -167,9 +173,11 @@ A schema class that validates payloads | [IgnoreElseWithoutIf1BoxedBoolean](#ignoreelsewithoutif1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [IgnoreElseWithoutIf1BoxedMap](#ignoreelsewithoutif1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [IgnoreElseWithoutIf1BoxedList](#ignoreelsewithoutif1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [IgnoreElseWithoutIf1Boxed](#ignoreelsewithoutif1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ElseSchemaBoxed -public static abstract sealed class ElseSchemaBoxed
+public sealed interface ElseSchemaBoxed
permits
[ElseSchemaBoxedVoid](#elseschemaboxedvoid), [ElseSchemaBoxedBoolean](#elseschemaboxedboolean), @@ -178,103 +186,109 @@ permits
[ElseSchemaBoxedList](#elseschemaboxedlist), [ElseSchemaBoxedMap](#elseschemaboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ElseSchemaBoxedVoid -public static final class ElseSchemaBoxedVoid
-extends [ElseSchemaBoxed](#elseschemaboxed) +public record ElseSchemaBoxedVoid
+implements [ElseSchemaBoxed](#elseschemaboxed) -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 | | --------------------------- | | ElseSchemaBoxedVoid(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 | ## ElseSchemaBoxedBoolean -public static final class ElseSchemaBoxedBoolean
-extends [ElseSchemaBoxed](#elseschemaboxed) +public record ElseSchemaBoxedBoolean
+implements [ElseSchemaBoxed](#elseschemaboxed) -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 | | --------------------------- | | ElseSchemaBoxedBoolean(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 | ## ElseSchemaBoxedNumber -public static final class ElseSchemaBoxedNumber
-extends [ElseSchemaBoxed](#elseschemaboxed) +public record ElseSchemaBoxedNumber
+implements [ElseSchemaBoxed](#elseschemaboxed) -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 | | --------------------------- | | ElseSchemaBoxedNumber(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 | ## ElseSchemaBoxedString -public static final class ElseSchemaBoxedString
-extends [ElseSchemaBoxed](#elseschemaboxed) +public record ElseSchemaBoxedString
+implements [ElseSchemaBoxed](#elseschemaboxed) -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 | | --------------------------- | | ElseSchemaBoxedString(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 | ## ElseSchemaBoxedList -public static final class ElseSchemaBoxedList
-extends [ElseSchemaBoxed](#elseschemaboxed) +public record ElseSchemaBoxedList
+implements [ElseSchemaBoxed](#elseschemaboxed) -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 | | --------------------------- | | ElseSchemaBoxedList(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 | ## ElseSchemaBoxedMap -public static final class ElseSchemaBoxedMap
-extends [ElseSchemaBoxed](#elseschemaboxed) +public record ElseSchemaBoxedMap
+implements [ElseSchemaBoxed](#elseschemaboxed) -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 | | --------------------------- | | ElseSchemaBoxedMap(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 | ## ElseSchema public static class ElseSchema
@@ -306,7 +320,9 @@ A schema class that validates payloads | [ElseSchemaBoxedBoolean](#elseschemaboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ElseSchemaBoxedMap](#elseschemaboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [ElseSchemaBoxedList](#elseschemaboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ElseSchemaBoxed](#elseschemaboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringElseConst public enum StringElseConst
extends `Enum` diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/IgnoreIfWithoutThenOrElse.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/IgnoreIfWithoutThenOrElse.md index 0b5a21bcf0d..8c9062f441c 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/IgnoreIfWithoutThenOrElse.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/IgnoreIfWithoutThenOrElse.md @@ -4,33 +4,33 @@ public class IgnoreIfWithoutThenOrElse
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 | [IgnoreIfWithoutThenOrElse.IgnoreIfWithoutThenOrElse1Boxed](#ignoreifwithoutthenorelse1boxed)
abstract sealed validated payload class | -| static class | [IgnoreIfWithoutThenOrElse.IgnoreIfWithoutThenOrElse1BoxedVoid](#ignoreifwithoutthenorelse1boxedvoid)
boxed class to store validated null payloads | -| static class | [IgnoreIfWithoutThenOrElse.IgnoreIfWithoutThenOrElse1BoxedBoolean](#ignoreifwithoutthenorelse1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [IgnoreIfWithoutThenOrElse.IgnoreIfWithoutThenOrElse1BoxedNumber](#ignoreifwithoutthenorelse1boxednumber)
boxed class to store validated Number payloads | -| static class | [IgnoreIfWithoutThenOrElse.IgnoreIfWithoutThenOrElse1BoxedString](#ignoreifwithoutthenorelse1boxedstring)
boxed class to store validated String payloads | -| static class | [IgnoreIfWithoutThenOrElse.IgnoreIfWithoutThenOrElse1BoxedList](#ignoreifwithoutthenorelse1boxedlist)
boxed class to store validated List payloads | -| static class | [IgnoreIfWithoutThenOrElse.IgnoreIfWithoutThenOrElse1BoxedMap](#ignoreifwithoutthenorelse1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [IgnoreIfWithoutThenOrElse.IgnoreIfWithoutThenOrElse1Boxed](#ignoreifwithoutthenorelse1boxed)
sealed interface for validated payloads | +| record | [IgnoreIfWithoutThenOrElse.IgnoreIfWithoutThenOrElse1BoxedVoid](#ignoreifwithoutthenorelse1boxedvoid)
boxed class to store validated null payloads | +| record | [IgnoreIfWithoutThenOrElse.IgnoreIfWithoutThenOrElse1BoxedBoolean](#ignoreifwithoutthenorelse1boxedboolean)
boxed class to store validated boolean payloads | +| record | [IgnoreIfWithoutThenOrElse.IgnoreIfWithoutThenOrElse1BoxedNumber](#ignoreifwithoutthenorelse1boxednumber)
boxed class to store validated Number payloads | +| record | [IgnoreIfWithoutThenOrElse.IgnoreIfWithoutThenOrElse1BoxedString](#ignoreifwithoutthenorelse1boxedstring)
boxed class to store validated String payloads | +| record | [IgnoreIfWithoutThenOrElse.IgnoreIfWithoutThenOrElse1BoxedList](#ignoreifwithoutthenorelse1boxedlist)
boxed class to store validated List payloads | +| record | [IgnoreIfWithoutThenOrElse.IgnoreIfWithoutThenOrElse1BoxedMap](#ignoreifwithoutthenorelse1boxedmap)
boxed class to store validated Map payloads | | static class | [IgnoreIfWithoutThenOrElse.IgnoreIfWithoutThenOrElse1](#ignoreifwithoutthenorelse1)
schema class | -| static class | [IgnoreIfWithoutThenOrElse.IfSchemaBoxed](#ifschemaboxed)
abstract sealed validated payload class | -| static class | [IgnoreIfWithoutThenOrElse.IfSchemaBoxedVoid](#ifschemaboxedvoid)
boxed class to store validated null payloads | -| static class | [IgnoreIfWithoutThenOrElse.IfSchemaBoxedBoolean](#ifschemaboxedboolean)
boxed class to store validated boolean payloads | -| static class | [IgnoreIfWithoutThenOrElse.IfSchemaBoxedNumber](#ifschemaboxednumber)
boxed class to store validated Number payloads | -| static class | [IgnoreIfWithoutThenOrElse.IfSchemaBoxedString](#ifschemaboxedstring)
boxed class to store validated String payloads | -| static class | [IgnoreIfWithoutThenOrElse.IfSchemaBoxedList](#ifschemaboxedlist)
boxed class to store validated List payloads | -| static class | [IgnoreIfWithoutThenOrElse.IfSchemaBoxedMap](#ifschemaboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [IgnoreIfWithoutThenOrElse.IfSchemaBoxed](#ifschemaboxed)
sealed interface for validated payloads | +| record | [IgnoreIfWithoutThenOrElse.IfSchemaBoxedVoid](#ifschemaboxedvoid)
boxed class to store validated null payloads | +| record | [IgnoreIfWithoutThenOrElse.IfSchemaBoxedBoolean](#ifschemaboxedboolean)
boxed class to store validated boolean payloads | +| record | [IgnoreIfWithoutThenOrElse.IfSchemaBoxedNumber](#ifschemaboxednumber)
boxed class to store validated Number payloads | +| record | [IgnoreIfWithoutThenOrElse.IfSchemaBoxedString](#ifschemaboxedstring)
boxed class to store validated String payloads | +| record | [IgnoreIfWithoutThenOrElse.IfSchemaBoxedList](#ifschemaboxedlist)
boxed class to store validated List payloads | +| record | [IgnoreIfWithoutThenOrElse.IfSchemaBoxedMap](#ifschemaboxedmap)
boxed class to store validated Map payloads | | static class | [IgnoreIfWithoutThenOrElse.IfSchema](#ifschema)
schema class | | enum | [IgnoreIfWithoutThenOrElse.StringIfConst](#stringifconst)
String enum | ## IgnoreIfWithoutThenOrElse1Boxed -public static abstract sealed class IgnoreIfWithoutThenOrElse1Boxed
+public sealed interface IgnoreIfWithoutThenOrElse1Boxed
permits
[IgnoreIfWithoutThenOrElse1BoxedVoid](#ignoreifwithoutthenorelse1boxedvoid), [IgnoreIfWithoutThenOrElse1BoxedBoolean](#ignoreifwithoutthenorelse1boxedboolean), @@ -39,103 +39,109 @@ permits
[IgnoreIfWithoutThenOrElse1BoxedList](#ignoreifwithoutthenorelse1boxedlist), [IgnoreIfWithoutThenOrElse1BoxedMap](#ignoreifwithoutthenorelse1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## IgnoreIfWithoutThenOrElse1BoxedVoid -public static final class IgnoreIfWithoutThenOrElse1BoxedVoid
-extends [IgnoreIfWithoutThenOrElse1Boxed](#ignoreifwithoutthenorelse1boxed) +public record IgnoreIfWithoutThenOrElse1BoxedVoid
+implements [IgnoreIfWithoutThenOrElse1Boxed](#ignoreifwithoutthenorelse1boxed) -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 | | --------------------------- | | IgnoreIfWithoutThenOrElse1BoxedVoid(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 | ## IgnoreIfWithoutThenOrElse1BoxedBoolean -public static final class IgnoreIfWithoutThenOrElse1BoxedBoolean
-extends [IgnoreIfWithoutThenOrElse1Boxed](#ignoreifwithoutthenorelse1boxed) +public record IgnoreIfWithoutThenOrElse1BoxedBoolean
+implements [IgnoreIfWithoutThenOrElse1Boxed](#ignoreifwithoutthenorelse1boxed) -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 | | --------------------------- | | IgnoreIfWithoutThenOrElse1BoxedBoolean(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 | ## IgnoreIfWithoutThenOrElse1BoxedNumber -public static final class IgnoreIfWithoutThenOrElse1BoxedNumber
-extends [IgnoreIfWithoutThenOrElse1Boxed](#ignoreifwithoutthenorelse1boxed) +public record IgnoreIfWithoutThenOrElse1BoxedNumber
+implements [IgnoreIfWithoutThenOrElse1Boxed](#ignoreifwithoutthenorelse1boxed) -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 | | --------------------------- | | IgnoreIfWithoutThenOrElse1BoxedNumber(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 | ## IgnoreIfWithoutThenOrElse1BoxedString -public static final class IgnoreIfWithoutThenOrElse1BoxedString
-extends [IgnoreIfWithoutThenOrElse1Boxed](#ignoreifwithoutthenorelse1boxed) +public record IgnoreIfWithoutThenOrElse1BoxedString
+implements [IgnoreIfWithoutThenOrElse1Boxed](#ignoreifwithoutthenorelse1boxed) -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 | | --------------------------- | | IgnoreIfWithoutThenOrElse1BoxedString(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 | ## IgnoreIfWithoutThenOrElse1BoxedList -public static final class IgnoreIfWithoutThenOrElse1BoxedList
-extends [IgnoreIfWithoutThenOrElse1Boxed](#ignoreifwithoutthenorelse1boxed) +public record IgnoreIfWithoutThenOrElse1BoxedList
+implements [IgnoreIfWithoutThenOrElse1Boxed](#ignoreifwithoutthenorelse1boxed) -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 | | --------------------------- | | IgnoreIfWithoutThenOrElse1BoxedList(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 | ## IgnoreIfWithoutThenOrElse1BoxedMap -public static final class IgnoreIfWithoutThenOrElse1BoxedMap
-extends [IgnoreIfWithoutThenOrElse1Boxed](#ignoreifwithoutthenorelse1boxed) +public record IgnoreIfWithoutThenOrElse1BoxedMap
+implements [IgnoreIfWithoutThenOrElse1Boxed](#ignoreifwithoutthenorelse1boxed) -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 | | --------------------------- | | IgnoreIfWithoutThenOrElse1BoxedMap(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 | ## IgnoreIfWithoutThenOrElse1 public static class IgnoreIfWithoutThenOrElse1
@@ -167,9 +173,11 @@ A schema class that validates payloads | [IgnoreIfWithoutThenOrElse1BoxedBoolean](#ignoreifwithoutthenorelse1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [IgnoreIfWithoutThenOrElse1BoxedMap](#ignoreifwithoutthenorelse1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [IgnoreIfWithoutThenOrElse1BoxedList](#ignoreifwithoutthenorelse1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [IgnoreIfWithoutThenOrElse1Boxed](#ignoreifwithoutthenorelse1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## IfSchemaBoxed -public static abstract sealed class IfSchemaBoxed
+public sealed interface IfSchemaBoxed
permits
[IfSchemaBoxedVoid](#ifschemaboxedvoid), [IfSchemaBoxedBoolean](#ifschemaboxedboolean), @@ -178,103 +186,109 @@ permits
[IfSchemaBoxedList](#ifschemaboxedlist), [IfSchemaBoxedMap](#ifschemaboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## IfSchemaBoxedVoid -public static final class IfSchemaBoxedVoid
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedVoid
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedVoid(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 | ## IfSchemaBoxedBoolean -public static final class IfSchemaBoxedBoolean
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedBoolean
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedBoolean(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 | ## IfSchemaBoxedNumber -public static final class IfSchemaBoxedNumber
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedNumber
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedNumber(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 | ## IfSchemaBoxedString -public static final class IfSchemaBoxedString
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedString
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedString(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 | ## IfSchemaBoxedList -public static final class IfSchemaBoxedList
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedList
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedList(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 | ## IfSchemaBoxedMap -public static final class IfSchemaBoxedMap
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedMap
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedMap(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 | ## IfSchema public static class IfSchema
@@ -306,7 +320,9 @@ A schema class that validates payloads | [IfSchemaBoxedBoolean](#ifschemaboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [IfSchemaBoxedMap](#ifschemaboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [IfSchemaBoxedList](#ifschemaboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [IfSchemaBoxed](#ifschemaboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringIfConst public enum StringIfConst
extends `Enum` diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/IgnoreThenWithoutIf.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/IgnoreThenWithoutIf.md index 8a816674b49..22c93058573 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/IgnoreThenWithoutIf.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/IgnoreThenWithoutIf.md @@ -4,33 +4,33 @@ public class IgnoreThenWithoutIf
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 | [IgnoreThenWithoutIf.IgnoreThenWithoutIf1Boxed](#ignorethenwithoutif1boxed)
abstract sealed validated payload class | -| static class | [IgnoreThenWithoutIf.IgnoreThenWithoutIf1BoxedVoid](#ignorethenwithoutif1boxedvoid)
boxed class to store validated null payloads | -| static class | [IgnoreThenWithoutIf.IgnoreThenWithoutIf1BoxedBoolean](#ignorethenwithoutif1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [IgnoreThenWithoutIf.IgnoreThenWithoutIf1BoxedNumber](#ignorethenwithoutif1boxednumber)
boxed class to store validated Number payloads | -| static class | [IgnoreThenWithoutIf.IgnoreThenWithoutIf1BoxedString](#ignorethenwithoutif1boxedstring)
boxed class to store validated String payloads | -| static class | [IgnoreThenWithoutIf.IgnoreThenWithoutIf1BoxedList](#ignorethenwithoutif1boxedlist)
boxed class to store validated List payloads | -| static class | [IgnoreThenWithoutIf.IgnoreThenWithoutIf1BoxedMap](#ignorethenwithoutif1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [IgnoreThenWithoutIf.IgnoreThenWithoutIf1Boxed](#ignorethenwithoutif1boxed)
sealed interface for validated payloads | +| record | [IgnoreThenWithoutIf.IgnoreThenWithoutIf1BoxedVoid](#ignorethenwithoutif1boxedvoid)
boxed class to store validated null payloads | +| record | [IgnoreThenWithoutIf.IgnoreThenWithoutIf1BoxedBoolean](#ignorethenwithoutif1boxedboolean)
boxed class to store validated boolean payloads | +| record | [IgnoreThenWithoutIf.IgnoreThenWithoutIf1BoxedNumber](#ignorethenwithoutif1boxednumber)
boxed class to store validated Number payloads | +| record | [IgnoreThenWithoutIf.IgnoreThenWithoutIf1BoxedString](#ignorethenwithoutif1boxedstring)
boxed class to store validated String payloads | +| record | [IgnoreThenWithoutIf.IgnoreThenWithoutIf1BoxedList](#ignorethenwithoutif1boxedlist)
boxed class to store validated List payloads | +| record | [IgnoreThenWithoutIf.IgnoreThenWithoutIf1BoxedMap](#ignorethenwithoutif1boxedmap)
boxed class to store validated Map payloads | | static class | [IgnoreThenWithoutIf.IgnoreThenWithoutIf1](#ignorethenwithoutif1)
schema class | -| static class | [IgnoreThenWithoutIf.ThenBoxed](#thenboxed)
abstract sealed validated payload class | -| static class | [IgnoreThenWithoutIf.ThenBoxedVoid](#thenboxedvoid)
boxed class to store validated null payloads | -| static class | [IgnoreThenWithoutIf.ThenBoxedBoolean](#thenboxedboolean)
boxed class to store validated boolean payloads | -| static class | [IgnoreThenWithoutIf.ThenBoxedNumber](#thenboxednumber)
boxed class to store validated Number payloads | -| static class | [IgnoreThenWithoutIf.ThenBoxedString](#thenboxedstring)
boxed class to store validated String payloads | -| static class | [IgnoreThenWithoutIf.ThenBoxedList](#thenboxedlist)
boxed class to store validated List payloads | -| static class | [IgnoreThenWithoutIf.ThenBoxedMap](#thenboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [IgnoreThenWithoutIf.ThenBoxed](#thenboxed)
sealed interface for validated payloads | +| record | [IgnoreThenWithoutIf.ThenBoxedVoid](#thenboxedvoid)
boxed class to store validated null payloads | +| record | [IgnoreThenWithoutIf.ThenBoxedBoolean](#thenboxedboolean)
boxed class to store validated boolean payloads | +| record | [IgnoreThenWithoutIf.ThenBoxedNumber](#thenboxednumber)
boxed class to store validated Number payloads | +| record | [IgnoreThenWithoutIf.ThenBoxedString](#thenboxedstring)
boxed class to store validated String payloads | +| record | [IgnoreThenWithoutIf.ThenBoxedList](#thenboxedlist)
boxed class to store validated List payloads | +| record | [IgnoreThenWithoutIf.ThenBoxedMap](#thenboxedmap)
boxed class to store validated Map payloads | | static class | [IgnoreThenWithoutIf.Then](#then)
schema class | | enum | [IgnoreThenWithoutIf.StringThenConst](#stringthenconst)
String enum | ## IgnoreThenWithoutIf1Boxed -public static abstract sealed class IgnoreThenWithoutIf1Boxed
+public sealed interface IgnoreThenWithoutIf1Boxed
permits
[IgnoreThenWithoutIf1BoxedVoid](#ignorethenwithoutif1boxedvoid), [IgnoreThenWithoutIf1BoxedBoolean](#ignorethenwithoutif1boxedboolean), @@ -39,103 +39,109 @@ permits
[IgnoreThenWithoutIf1BoxedList](#ignorethenwithoutif1boxedlist), [IgnoreThenWithoutIf1BoxedMap](#ignorethenwithoutif1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## IgnoreThenWithoutIf1BoxedVoid -public static final class IgnoreThenWithoutIf1BoxedVoid
-extends [IgnoreThenWithoutIf1Boxed](#ignorethenwithoutif1boxed) +public record IgnoreThenWithoutIf1BoxedVoid
+implements [IgnoreThenWithoutIf1Boxed](#ignorethenwithoutif1boxed) -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 | | --------------------------- | | IgnoreThenWithoutIf1BoxedVoid(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 | ## IgnoreThenWithoutIf1BoxedBoolean -public static final class IgnoreThenWithoutIf1BoxedBoolean
-extends [IgnoreThenWithoutIf1Boxed](#ignorethenwithoutif1boxed) +public record IgnoreThenWithoutIf1BoxedBoolean
+implements [IgnoreThenWithoutIf1Boxed](#ignorethenwithoutif1boxed) -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 | | --------------------------- | | IgnoreThenWithoutIf1BoxedBoolean(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 | ## IgnoreThenWithoutIf1BoxedNumber -public static final class IgnoreThenWithoutIf1BoxedNumber
-extends [IgnoreThenWithoutIf1Boxed](#ignorethenwithoutif1boxed) +public record IgnoreThenWithoutIf1BoxedNumber
+implements [IgnoreThenWithoutIf1Boxed](#ignorethenwithoutif1boxed) -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 | | --------------------------- | | IgnoreThenWithoutIf1BoxedNumber(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 | ## IgnoreThenWithoutIf1BoxedString -public static final class IgnoreThenWithoutIf1BoxedString
-extends [IgnoreThenWithoutIf1Boxed](#ignorethenwithoutif1boxed) +public record IgnoreThenWithoutIf1BoxedString
+implements [IgnoreThenWithoutIf1Boxed](#ignorethenwithoutif1boxed) -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 | | --------------------------- | | IgnoreThenWithoutIf1BoxedString(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 | ## IgnoreThenWithoutIf1BoxedList -public static final class IgnoreThenWithoutIf1BoxedList
-extends [IgnoreThenWithoutIf1Boxed](#ignorethenwithoutif1boxed) +public record IgnoreThenWithoutIf1BoxedList
+implements [IgnoreThenWithoutIf1Boxed](#ignorethenwithoutif1boxed) -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 | | --------------------------- | | IgnoreThenWithoutIf1BoxedList(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 | ## IgnoreThenWithoutIf1BoxedMap -public static final class IgnoreThenWithoutIf1BoxedMap
-extends [IgnoreThenWithoutIf1Boxed](#ignorethenwithoutif1boxed) +public record IgnoreThenWithoutIf1BoxedMap
+implements [IgnoreThenWithoutIf1Boxed](#ignorethenwithoutif1boxed) -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 | | --------------------------- | | IgnoreThenWithoutIf1BoxedMap(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 | ## IgnoreThenWithoutIf1 public static class IgnoreThenWithoutIf1
@@ -167,9 +173,11 @@ A schema class that validates payloads | [IgnoreThenWithoutIf1BoxedBoolean](#ignorethenwithoutif1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [IgnoreThenWithoutIf1BoxedMap](#ignorethenwithoutif1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [IgnoreThenWithoutIf1BoxedList](#ignorethenwithoutif1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [IgnoreThenWithoutIf1Boxed](#ignorethenwithoutif1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ThenBoxed -public static abstract sealed class ThenBoxed
+public sealed interface ThenBoxed
permits
[ThenBoxedVoid](#thenboxedvoid), [ThenBoxedBoolean](#thenboxedboolean), @@ -178,103 +186,109 @@ permits
[ThenBoxedList](#thenboxedlist), [ThenBoxedMap](#thenboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ThenBoxedVoid -public static final class ThenBoxedVoid
-extends [ThenBoxed](#thenboxed) +public record ThenBoxedVoid
+implements [ThenBoxed](#thenboxed) -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 | | --------------------------- | | ThenBoxedVoid(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 | ## ThenBoxedBoolean -public static final class ThenBoxedBoolean
-extends [ThenBoxed](#thenboxed) +public record ThenBoxedBoolean
+implements [ThenBoxed](#thenboxed) -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 | | --------------------------- | | ThenBoxedBoolean(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 | ## ThenBoxedNumber -public static final class ThenBoxedNumber
-extends [ThenBoxed](#thenboxed) +public record ThenBoxedNumber
+implements [ThenBoxed](#thenboxed) -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 | | --------------------------- | | ThenBoxedNumber(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 | ## ThenBoxedString -public static final class ThenBoxedString
-extends [ThenBoxed](#thenboxed) +public record ThenBoxedString
+implements [ThenBoxed](#thenboxed) -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 | | --------------------------- | | ThenBoxedString(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 | ## ThenBoxedList -public static final class ThenBoxedList
-extends [ThenBoxed](#thenboxed) +public record ThenBoxedList
+implements [ThenBoxed](#thenboxed) -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 | | --------------------------- | | ThenBoxedList(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 | ## ThenBoxedMap -public static final class ThenBoxedMap
-extends [ThenBoxed](#thenboxed) +public record ThenBoxedMap
+implements [ThenBoxed](#thenboxed) -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 | | --------------------------- | | ThenBoxedMap(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 | ## Then public static class Then
@@ -306,7 +320,9 @@ A schema class that validates payloads | [ThenBoxedBoolean](#thenboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ThenBoxedMap](#thenboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [ThenBoxedList](#thenboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ThenBoxed](#thenboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## StringThenConst public enum StringThenConst
extends `Enum` diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/IntegerTypeMatchesIntegers.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/IntegerTypeMatchesIntegers.md index bcd9231a5c0..1e84368f22a 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/IntegerTypeMatchesIntegers.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/Ipv4Format.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/Ipv4Format.md index 5ee841749a5..fc4821b8b70 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/Ipv4Format.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/Ipv6Format.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/Ipv6Format.md index e6d1b20816b..b7e6fa306b8 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/Ipv6Format.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/IriFormat.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/IriFormat.md index 93fa5083bc7..2a8f1ba9564 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/IriFormat.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/IriFormat.md @@ -4,23 +4,23 @@ public class IriFormat
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 | [IriFormat.IriFormat1Boxed](#iriformat1boxed)
abstract sealed validated payload class | -| static class | [IriFormat.IriFormat1BoxedVoid](#iriformat1boxedvoid)
boxed class to store validated null payloads | -| static class | [IriFormat.IriFormat1BoxedBoolean](#iriformat1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [IriFormat.IriFormat1BoxedNumber](#iriformat1boxednumber)
boxed class to store validated Number payloads | -| static class | [IriFormat.IriFormat1BoxedString](#iriformat1boxedstring)
boxed class to store validated String payloads | -| static class | [IriFormat.IriFormat1BoxedList](#iriformat1boxedlist)
boxed class to store validated List payloads | -| static class | [IriFormat.IriFormat1BoxedMap](#iriformat1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [IriFormat.IriFormat1Boxed](#iriformat1boxed)
sealed interface for validated payloads | +| record | [IriFormat.IriFormat1BoxedVoid](#iriformat1boxedvoid)
boxed class to store validated null payloads | +| record | [IriFormat.IriFormat1BoxedBoolean](#iriformat1boxedboolean)
boxed class to store validated boolean payloads | +| record | [IriFormat.IriFormat1BoxedNumber](#iriformat1boxednumber)
boxed class to store validated Number payloads | +| record | [IriFormat.IriFormat1BoxedString](#iriformat1boxedstring)
boxed class to store validated String payloads | +| record | [IriFormat.IriFormat1BoxedList](#iriformat1boxedlist)
boxed class to store validated List payloads | +| record | [IriFormat.IriFormat1BoxedMap](#iriformat1boxedmap)
boxed class to store validated Map payloads | | static class | [IriFormat.IriFormat1](#iriformat1)
schema class | ## IriFormat1Boxed -public static abstract sealed class IriFormat1Boxed
+public sealed interface IriFormat1Boxed
permits
[IriFormat1BoxedVoid](#iriformat1boxedvoid), [IriFormat1BoxedBoolean](#iriformat1boxedboolean), @@ -29,103 +29,109 @@ permits
[IriFormat1BoxedList](#iriformat1boxedlist), [IriFormat1BoxedMap](#iriformat1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## IriFormat1BoxedVoid -public static final class IriFormat1BoxedVoid
-extends [IriFormat1Boxed](#iriformat1boxed) +public record IriFormat1BoxedVoid
+implements [IriFormat1Boxed](#iriformat1boxed) -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 | | --------------------------- | | IriFormat1BoxedVoid(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 | ## IriFormat1BoxedBoolean -public static final class IriFormat1BoxedBoolean
-extends [IriFormat1Boxed](#iriformat1boxed) +public record IriFormat1BoxedBoolean
+implements [IriFormat1Boxed](#iriformat1boxed) -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 | | --------------------------- | | IriFormat1BoxedBoolean(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 | ## IriFormat1BoxedNumber -public static final class IriFormat1BoxedNumber
-extends [IriFormat1Boxed](#iriformat1boxed) +public record IriFormat1BoxedNumber
+implements [IriFormat1Boxed](#iriformat1boxed) -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 | | --------------------------- | | IriFormat1BoxedNumber(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 | ## IriFormat1BoxedString -public static final class IriFormat1BoxedString
-extends [IriFormat1Boxed](#iriformat1boxed) +public record IriFormat1BoxedString
+implements [IriFormat1Boxed](#iriformat1boxed) -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 | | --------------------------- | | IriFormat1BoxedString(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 | ## IriFormat1BoxedList -public static final class IriFormat1BoxedList
-extends [IriFormat1Boxed](#iriformat1boxed) +public record IriFormat1BoxedList
+implements [IriFormat1Boxed](#iriformat1boxed) -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 | | --------------------------- | | IriFormat1BoxedList(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 | ## IriFormat1BoxedMap -public static final class IriFormat1BoxedMap
-extends [IriFormat1Boxed](#iriformat1boxed) +public record IriFormat1BoxedMap
+implements [IriFormat1Boxed](#iriformat1boxed) -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 | | --------------------------- | | IriFormat1BoxedMap(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 | ## IriFormat1 public static class IriFormat1
@@ -157,5 +163,7 @@ A schema class that validates payloads | [IriFormat1BoxedBoolean](#iriformat1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [IriFormat1BoxedMap](#iriformat1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [IriFormat1BoxedList](#iriformat1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [IriFormat1Boxed](#iriformat1boxed) | 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_1_0_unit_test/java/docs/components/schemas/IriReferenceFormat.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/IriReferenceFormat.md index 11acf567a61..d7d17b32f51 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/IriReferenceFormat.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/IriReferenceFormat.md @@ -4,23 +4,23 @@ public class IriReferenceFormat
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 | [IriReferenceFormat.IriReferenceFormat1Boxed](#irireferenceformat1boxed)
abstract sealed validated payload class | -| static class | [IriReferenceFormat.IriReferenceFormat1BoxedVoid](#irireferenceformat1boxedvoid)
boxed class to store validated null payloads | -| static class | [IriReferenceFormat.IriReferenceFormat1BoxedBoolean](#irireferenceformat1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [IriReferenceFormat.IriReferenceFormat1BoxedNumber](#irireferenceformat1boxednumber)
boxed class to store validated Number payloads | -| static class | [IriReferenceFormat.IriReferenceFormat1BoxedString](#irireferenceformat1boxedstring)
boxed class to store validated String payloads | -| static class | [IriReferenceFormat.IriReferenceFormat1BoxedList](#irireferenceformat1boxedlist)
boxed class to store validated List payloads | -| static class | [IriReferenceFormat.IriReferenceFormat1BoxedMap](#irireferenceformat1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [IriReferenceFormat.IriReferenceFormat1Boxed](#irireferenceformat1boxed)
sealed interface for validated payloads | +| record | [IriReferenceFormat.IriReferenceFormat1BoxedVoid](#irireferenceformat1boxedvoid)
boxed class to store validated null payloads | +| record | [IriReferenceFormat.IriReferenceFormat1BoxedBoolean](#irireferenceformat1boxedboolean)
boxed class to store validated boolean payloads | +| record | [IriReferenceFormat.IriReferenceFormat1BoxedNumber](#irireferenceformat1boxednumber)
boxed class to store validated Number payloads | +| record | [IriReferenceFormat.IriReferenceFormat1BoxedString](#irireferenceformat1boxedstring)
boxed class to store validated String payloads | +| record | [IriReferenceFormat.IriReferenceFormat1BoxedList](#irireferenceformat1boxedlist)
boxed class to store validated List payloads | +| record | [IriReferenceFormat.IriReferenceFormat1BoxedMap](#irireferenceformat1boxedmap)
boxed class to store validated Map payloads | | static class | [IriReferenceFormat.IriReferenceFormat1](#irireferenceformat1)
schema class | ## IriReferenceFormat1Boxed -public static abstract sealed class IriReferenceFormat1Boxed
+public sealed interface IriReferenceFormat1Boxed
permits
[IriReferenceFormat1BoxedVoid](#irireferenceformat1boxedvoid), [IriReferenceFormat1BoxedBoolean](#irireferenceformat1boxedboolean), @@ -29,103 +29,109 @@ permits
[IriReferenceFormat1BoxedList](#irireferenceformat1boxedlist), [IriReferenceFormat1BoxedMap](#irireferenceformat1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## IriReferenceFormat1BoxedVoid -public static final class IriReferenceFormat1BoxedVoid
-extends [IriReferenceFormat1Boxed](#irireferenceformat1boxed) +public record IriReferenceFormat1BoxedVoid
+implements [IriReferenceFormat1Boxed](#irireferenceformat1boxed) -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 | | --------------------------- | | IriReferenceFormat1BoxedVoid(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 | ## IriReferenceFormat1BoxedBoolean -public static final class IriReferenceFormat1BoxedBoolean
-extends [IriReferenceFormat1Boxed](#irireferenceformat1boxed) +public record IriReferenceFormat1BoxedBoolean
+implements [IriReferenceFormat1Boxed](#irireferenceformat1boxed) -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 | | --------------------------- | | IriReferenceFormat1BoxedBoolean(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 | ## IriReferenceFormat1BoxedNumber -public static final class IriReferenceFormat1BoxedNumber
-extends [IriReferenceFormat1Boxed](#irireferenceformat1boxed) +public record IriReferenceFormat1BoxedNumber
+implements [IriReferenceFormat1Boxed](#irireferenceformat1boxed) -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 | | --------------------------- | | IriReferenceFormat1BoxedNumber(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 | ## IriReferenceFormat1BoxedString -public static final class IriReferenceFormat1BoxedString
-extends [IriReferenceFormat1Boxed](#irireferenceformat1boxed) +public record IriReferenceFormat1BoxedString
+implements [IriReferenceFormat1Boxed](#irireferenceformat1boxed) -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 | | --------------------------- | | IriReferenceFormat1BoxedString(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 | ## IriReferenceFormat1BoxedList -public static final class IriReferenceFormat1BoxedList
-extends [IriReferenceFormat1Boxed](#irireferenceformat1boxed) +public record IriReferenceFormat1BoxedList
+implements [IriReferenceFormat1Boxed](#irireferenceformat1boxed) -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 | | --------------------------- | | IriReferenceFormat1BoxedList(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 | ## IriReferenceFormat1BoxedMap -public static final class IriReferenceFormat1BoxedMap
-extends [IriReferenceFormat1Boxed](#irireferenceformat1boxed) +public record IriReferenceFormat1BoxedMap
+implements [IriReferenceFormat1Boxed](#irireferenceformat1boxed) -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 | | --------------------------- | | IriReferenceFormat1BoxedMap(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 | ## IriReferenceFormat1 public static class IriReferenceFormat1
@@ -157,5 +163,7 @@ A schema class that validates payloads | [IriReferenceFormat1BoxedBoolean](#irireferenceformat1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [IriReferenceFormat1BoxedMap](#irireferenceformat1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [IriReferenceFormat1BoxedList](#irireferenceformat1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [IriReferenceFormat1Boxed](#irireferenceformat1boxed) | 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_1_0_unit_test/java/docs/components/schemas/ItemsContains.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/ItemsContains.md index 667b35372a1..49d747bfa50 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/ItemsContains.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/ItemsContains.md @@ -4,7 +4,7 @@ public class ItemsContains
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,50 +12,51 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ItemsContains.ItemsContains1Boxed](#itemscontains1boxed)
abstract sealed validated payload class | -| static class | [ItemsContains.ItemsContains1BoxedList](#itemscontains1boxedlist)
boxed class to store validated List payloads | +| sealed interface | [ItemsContains.ItemsContains1Boxed](#itemscontains1boxed)
sealed interface for validated payloads | +| record | [ItemsContains.ItemsContains1BoxedList](#itemscontains1boxedlist)
boxed class to store validated List payloads | | static class | [ItemsContains.ItemsContains1](#itemscontains1)
schema class | | static class | [ItemsContains.ItemsContainsListBuilder](#itemscontainslistbuilder)
builder for List payloads | | static class | [ItemsContains.ItemsContainsList](#itemscontainslist)
output class for List payloads | -| static class | [ItemsContains.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | -| static class | [ItemsContains.ItemsBoxedVoid](#itemsboxedvoid)
boxed class to store validated null payloads | -| static class | [ItemsContains.ItemsBoxedBoolean](#itemsboxedboolean)
boxed class to store validated boolean payloads | -| static class | [ItemsContains.ItemsBoxedNumber](#itemsboxednumber)
boxed class to store validated Number payloads | -| static class | [ItemsContains.ItemsBoxedString](#itemsboxedstring)
boxed class to store validated String payloads | -| static class | [ItemsContains.ItemsBoxedList](#itemsboxedlist)
boxed class to store validated List payloads | -| static class | [ItemsContains.ItemsBoxedMap](#itemsboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ItemsContains.ItemsBoxed](#itemsboxed)
sealed interface for validated payloads | +| record | [ItemsContains.ItemsBoxedVoid](#itemsboxedvoid)
boxed class to store validated null payloads | +| record | [ItemsContains.ItemsBoxedBoolean](#itemsboxedboolean)
boxed class to store validated boolean payloads | +| record | [ItemsContains.ItemsBoxedNumber](#itemsboxednumber)
boxed class to store validated Number payloads | +| record | [ItemsContains.ItemsBoxedString](#itemsboxedstring)
boxed class to store validated String payloads | +| record | [ItemsContains.ItemsBoxedList](#itemsboxedlist)
boxed class to store validated List payloads | +| record | [ItemsContains.ItemsBoxedMap](#itemsboxedmap)
boxed class to store validated Map payloads | | static class | [ItemsContains.Items](#items)
schema class | -| static class | [ItemsContains.ContainsBoxed](#containsboxed)
abstract sealed validated payload class | -| static class | [ItemsContains.ContainsBoxedVoid](#containsboxedvoid)
boxed class to store validated null payloads | -| static class | [ItemsContains.ContainsBoxedBoolean](#containsboxedboolean)
boxed class to store validated boolean payloads | -| static class | [ItemsContains.ContainsBoxedNumber](#containsboxednumber)
boxed class to store validated Number payloads | -| static class | [ItemsContains.ContainsBoxedString](#containsboxedstring)
boxed class to store validated String payloads | -| static class | [ItemsContains.ContainsBoxedList](#containsboxedlist)
boxed class to store validated List payloads | -| static class | [ItemsContains.ContainsBoxedMap](#containsboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ItemsContains.ContainsBoxed](#containsboxed)
sealed interface for validated payloads | +| record | [ItemsContains.ContainsBoxedVoid](#containsboxedvoid)
boxed class to store validated null payloads | +| record | [ItemsContains.ContainsBoxedBoolean](#containsboxedboolean)
boxed class to store validated boolean payloads | +| record | [ItemsContains.ContainsBoxedNumber](#containsboxednumber)
boxed class to store validated Number payloads | +| record | [ItemsContains.ContainsBoxedString](#containsboxedstring)
boxed class to store validated String payloads | +| record | [ItemsContains.ContainsBoxedList](#containsboxedlist)
boxed class to store validated List payloads | +| record | [ItemsContains.ContainsBoxedMap](#containsboxedmap)
boxed class to store validated Map payloads | | static class | [ItemsContains.Contains](#contains)
schema class | ## ItemsContains1Boxed -public static abstract sealed class ItemsContains1Boxed
+public sealed interface ItemsContains1Boxed
permits
[ItemsContains1BoxedList](#itemscontains1boxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ItemsContains1BoxedList -public static final class ItemsContains1BoxedList
-extends [ItemsContains1Boxed](#itemscontains1boxed) +public record ItemsContains1BoxedList
+implements [ItemsContains1Boxed](#itemscontains1boxed) -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 | | --------------------------- | | ItemsContains1BoxedList([ItemsContainsList](#itemscontainslist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ItemsContainsList](#itemscontainslist) | data
validated payload | +| [ItemsContainsList](#itemscontainslist) | data()
validated payload | +| @Nullable Object | getData()
validated payload | ## ItemsContains1 public static class ItemsContains1
@@ -99,7 +100,9 @@ ItemsContains.ItemsContainsList validatedPayload = | ----------------- | ---------------------- | | [ItemsContainsList](#itemscontainslist) | validate([List](#itemscontainslistbuilder) arg, SchemaConfiguration configuration) | | [ItemsContains1BoxedList](#itemscontains1boxedlist) | validateAndBox([List](#itemscontainslistbuilder) arg, SchemaConfiguration configuration) | +| [ItemsContains1Boxed](#itemscontains1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ItemsContainsListBuilder public class ItemsContainsListBuilder
builder for `List<@Nullable Object>` @@ -138,7 +141,7 @@ A class to store validated List payloads | static [ItemsContainsList](#itemscontainslist) | of([List](#itemscontainslistbuilder) arg, SchemaConfiguration configuration) | ## ItemsBoxed -public static abstract sealed class ItemsBoxed
+public sealed interface ItemsBoxed
permits
[ItemsBoxedVoid](#itemsboxedvoid), [ItemsBoxedBoolean](#itemsboxedboolean), @@ -147,103 +150,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
@@ -275,9 +284,11 @@ A schema class that validates payloads | [ItemsBoxedBoolean](#itemsboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ItemsBoxedMap](#itemsboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [ItemsBoxedList](#itemsboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ItemsBoxed](#itemsboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ContainsBoxed -public static abstract sealed class ContainsBoxed
+public sealed interface ContainsBoxed
permits
[ContainsBoxedVoid](#containsboxedvoid), [ContainsBoxedBoolean](#containsboxedboolean), @@ -286,103 +297,109 @@ permits
[ContainsBoxedList](#containsboxedlist), [ContainsBoxedMap](#containsboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ContainsBoxedVoid -public static final class ContainsBoxedVoid
-extends [ContainsBoxed](#containsboxed) +public record ContainsBoxedVoid
+implements [ContainsBoxed](#containsboxed) -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 | | --------------------------- | | ContainsBoxedVoid(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 | ## ContainsBoxedBoolean -public static final class ContainsBoxedBoolean
-extends [ContainsBoxed](#containsboxed) +public record ContainsBoxedBoolean
+implements [ContainsBoxed](#containsboxed) -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 | | --------------------------- | | ContainsBoxedBoolean(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 | ## ContainsBoxedNumber -public static final class ContainsBoxedNumber
-extends [ContainsBoxed](#containsboxed) +public record ContainsBoxedNumber
+implements [ContainsBoxed](#containsboxed) -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 | | --------------------------- | | ContainsBoxedNumber(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 | ## ContainsBoxedString -public static final class ContainsBoxedString
-extends [ContainsBoxed](#containsboxed) +public record ContainsBoxedString
+implements [ContainsBoxed](#containsboxed) -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 | | --------------------------- | | ContainsBoxedString(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 | ## ContainsBoxedList -public static final class ContainsBoxedList
-extends [ContainsBoxed](#containsboxed) +public record ContainsBoxedList
+implements [ContainsBoxed](#containsboxed) -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 | | --------------------------- | | ContainsBoxedList(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 | ## ContainsBoxedMap -public static final class ContainsBoxedMap
-extends [ContainsBoxed](#containsboxed) +public record ContainsBoxedMap
+implements [ContainsBoxed](#containsboxed) -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 | | --------------------------- | | ContainsBoxedMap(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 | ## Contains public static class Contains
@@ -414,5 +431,7 @@ A schema class that validates payloads | [ContainsBoxedBoolean](#containsboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ContainsBoxedMap](#containsboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [ContainsBoxedList](#containsboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ContainsBoxed](#containsboxed) | 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_1_0_unit_test/java/docs/components/schemas/ItemsDoesNotLookInApplicatorsValidCase.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/ItemsDoesNotLookInApplicatorsValidCase.md index a4a91e145fa..c42cd35f6d0 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/ItemsDoesNotLookInApplicatorsValidCase.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/ItemsDoesNotLookInApplicatorsValidCase.md @@ -4,7 +4,7 @@ public class ItemsDoesNotLookInApplicatorsValidCase
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 | [ItemsDoesNotLookInApplicatorsValidCase.ItemsDoesNotLookInApplicatorsValidCase1Boxed](#itemsdoesnotlookinapplicatorsvalidcase1boxed)
abstract sealed validated payload class | -| static class | [ItemsDoesNotLookInApplicatorsValidCase.ItemsDoesNotLookInApplicatorsValidCase1BoxedList](#itemsdoesnotlookinapplicatorsvalidcase1boxedlist)
boxed class to store validated List payloads | +| sealed interface | [ItemsDoesNotLookInApplicatorsValidCase.ItemsDoesNotLookInApplicatorsValidCase1Boxed](#itemsdoesnotlookinapplicatorsvalidcase1boxed)
sealed interface for validated payloads | +| record | [ItemsDoesNotLookInApplicatorsValidCase.ItemsDoesNotLookInApplicatorsValidCase1BoxedList](#itemsdoesnotlookinapplicatorsvalidcase1boxedlist)
boxed class to store validated List payloads | | static class | [ItemsDoesNotLookInApplicatorsValidCase.ItemsDoesNotLookInApplicatorsValidCase1](#itemsdoesnotlookinapplicatorsvalidcase1)
schema class | | static class | [ItemsDoesNotLookInApplicatorsValidCase.ItemsDoesNotLookInApplicatorsValidCaseListBuilder](#itemsdoesnotlookinapplicatorsvalidcaselistbuilder)
builder for List payloads | | static class | [ItemsDoesNotLookInApplicatorsValidCase.ItemsDoesNotLookInApplicatorsValidCaseList](#itemsdoesnotlookinapplicatorsvalidcaselist)
output class for List payloads | -| static class | [ItemsDoesNotLookInApplicatorsValidCase.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | -| static class | [ItemsDoesNotLookInApplicatorsValidCase.ItemsBoxedVoid](#itemsboxedvoid)
boxed class to store validated null payloads | -| static class | [ItemsDoesNotLookInApplicatorsValidCase.ItemsBoxedBoolean](#itemsboxedboolean)
boxed class to store validated boolean payloads | -| static class | [ItemsDoesNotLookInApplicatorsValidCase.ItemsBoxedNumber](#itemsboxednumber)
boxed class to store validated Number payloads | -| static class | [ItemsDoesNotLookInApplicatorsValidCase.ItemsBoxedString](#itemsboxedstring)
boxed class to store validated String payloads | -| static class | [ItemsDoesNotLookInApplicatorsValidCase.ItemsBoxedList](#itemsboxedlist)
boxed class to store validated List payloads | -| static class | [ItemsDoesNotLookInApplicatorsValidCase.ItemsBoxedMap](#itemsboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ItemsDoesNotLookInApplicatorsValidCase.ItemsBoxed](#itemsboxed)
sealed interface for validated payloads | +| record | [ItemsDoesNotLookInApplicatorsValidCase.ItemsBoxedVoid](#itemsboxedvoid)
boxed class to store validated null payloads | +| record | [ItemsDoesNotLookInApplicatorsValidCase.ItemsBoxedBoolean](#itemsboxedboolean)
boxed class to store validated boolean payloads | +| record | [ItemsDoesNotLookInApplicatorsValidCase.ItemsBoxedNumber](#itemsboxednumber)
boxed class to store validated Number payloads | +| record | [ItemsDoesNotLookInApplicatorsValidCase.ItemsBoxedString](#itemsboxedstring)
boxed class to store validated String payloads | +| record | [ItemsDoesNotLookInApplicatorsValidCase.ItemsBoxedList](#itemsboxedlist)
boxed class to store validated List payloads | +| record | [ItemsDoesNotLookInApplicatorsValidCase.ItemsBoxedMap](#itemsboxedmap)
boxed class to store validated Map payloads | | static class | [ItemsDoesNotLookInApplicatorsValidCase.Items](#items)
schema class | ## ItemsDoesNotLookInApplicatorsValidCase1Boxed -public static abstract sealed class ItemsDoesNotLookInApplicatorsValidCase1Boxed
+public sealed interface ItemsDoesNotLookInApplicatorsValidCase1Boxed
permits
[ItemsDoesNotLookInApplicatorsValidCase1BoxedList](#itemsdoesnotlookinapplicatorsvalidcase1boxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ItemsDoesNotLookInApplicatorsValidCase1BoxedList -public static final class ItemsDoesNotLookInApplicatorsValidCase1BoxedList
-extends [ItemsDoesNotLookInApplicatorsValidCase1Boxed](#itemsdoesnotlookinapplicatorsvalidcase1boxed) +public record ItemsDoesNotLookInApplicatorsValidCase1BoxedList
+implements [ItemsDoesNotLookInApplicatorsValidCase1Boxed](#itemsdoesnotlookinapplicatorsvalidcase1boxed) -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 | | --------------------------- | | ItemsDoesNotLookInApplicatorsValidCase1BoxedList([ItemsDoesNotLookInApplicatorsValidCaseList](#itemsdoesnotlookinapplicatorsvalidcaselist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ItemsDoesNotLookInApplicatorsValidCaseList](#itemsdoesnotlookinapplicatorsvalidcaselist) | data
validated payload | +| [ItemsDoesNotLookInApplicatorsValidCaseList](#itemsdoesnotlookinapplicatorsvalidcaselist) | data()
validated payload | +| @Nullable Object | getData()
validated payload | ## ItemsDoesNotLookInApplicatorsValidCase1 public static class ItemsDoesNotLookInApplicatorsValidCase1
@@ -90,7 +91,9 @@ ItemsDoesNotLookInApplicatorsValidCase.ItemsDoesNotLookInApplicatorsValidCaseLis | ----------------- | ---------------------- | | [ItemsDoesNotLookInApplicatorsValidCaseList](#itemsdoesnotlookinapplicatorsvalidcaselist) | validate([List](#itemsdoesnotlookinapplicatorsvalidcaselistbuilder) arg, SchemaConfiguration configuration) | | [ItemsDoesNotLookInApplicatorsValidCase1BoxedList](#itemsdoesnotlookinapplicatorsvalidcase1boxedlist) | validateAndBox([List](#itemsdoesnotlookinapplicatorsvalidcaselistbuilder) arg, SchemaConfiguration configuration) | +| [ItemsDoesNotLookInApplicatorsValidCase1Boxed](#itemsdoesnotlookinapplicatorsvalidcase1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ItemsDoesNotLookInApplicatorsValidCaseListBuilder public class ItemsDoesNotLookInApplicatorsValidCaseListBuilder
builder for `List<@Nullable Object>` @@ -129,7 +132,7 @@ A class to store validated List payloads | static [ItemsDoesNotLookInApplicatorsValidCaseList](#itemsdoesnotlookinapplicatorsvalidcaselist) | of([List](#itemsdoesnotlookinapplicatorsvalidcaselistbuilder) 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
@@ -266,5 +275,7 @@ A schema class that validates payloads | [ItemsBoxedBoolean](#itemsboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ItemsBoxedMap](#itemsboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [ItemsBoxedList](#itemsboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ItemsBoxed](#itemsboxed) | 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_1_0_unit_test/java/docs/components/schemas/ItemsWithNullInstanceElements.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/ItemsWithNullInstanceElements.md index b7b7c2eb784..9d40bbb4a07 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/ItemsWithNullInstanceElements.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/ItemsWithNullInstanceElements.md @@ -4,7 +4,7 @@ public class ItemsWithNullInstanceElements
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,37 +12,38 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [ItemsWithNullInstanceElements.ItemsWithNullInstanceElements1Boxed](#itemswithnullinstanceelements1boxed)
abstract sealed validated payload class | -| static class | [ItemsWithNullInstanceElements.ItemsWithNullInstanceElements1BoxedList](#itemswithnullinstanceelements1boxedlist)
boxed class to store validated List payloads | +| sealed interface | [ItemsWithNullInstanceElements.ItemsWithNullInstanceElements1Boxed](#itemswithnullinstanceelements1boxed)
sealed interface for validated payloads | +| record | [ItemsWithNullInstanceElements.ItemsWithNullInstanceElements1BoxedList](#itemswithnullinstanceelements1boxedlist)
boxed class to store validated List payloads | | static class | [ItemsWithNullInstanceElements.ItemsWithNullInstanceElements1](#itemswithnullinstanceelements1)
schema class | | static class | [ItemsWithNullInstanceElements.ItemsWithNullInstanceElementsListBuilder](#itemswithnullinstanceelementslistbuilder)
builder for List payloads | | static class | [ItemsWithNullInstanceElements.ItemsWithNullInstanceElementsList](#itemswithnullinstanceelementslist)
output class for List payloads | -| static class | [ItemsWithNullInstanceElements.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | -| static class | [ItemsWithNullInstanceElements.ItemsBoxedVoid](#itemsboxedvoid)
boxed class to store validated null payloads | +| sealed interface | [ItemsWithNullInstanceElements.ItemsBoxed](#itemsboxed)
sealed interface for validated payloads | +| record | [ItemsWithNullInstanceElements.ItemsBoxedVoid](#itemsboxedvoid)
boxed class to store validated null payloads | | static class | [ItemsWithNullInstanceElements.Items](#items)
schema class | ## ItemsWithNullInstanceElements1Boxed -public static abstract sealed class ItemsWithNullInstanceElements1Boxed
+public sealed interface ItemsWithNullInstanceElements1Boxed
permits
[ItemsWithNullInstanceElements1BoxedList](#itemswithnullinstanceelements1boxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ItemsWithNullInstanceElements1BoxedList -public static final class ItemsWithNullInstanceElements1BoxedList
-extends [ItemsWithNullInstanceElements1Boxed](#itemswithnullinstanceelements1boxed) +public record ItemsWithNullInstanceElements1BoxedList
+implements [ItemsWithNullInstanceElements1Boxed](#itemswithnullinstanceelements1boxed) -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 | | --------------------------- | | ItemsWithNullInstanceElements1BoxedList([ItemsWithNullInstanceElementsList](#itemswithnullinstanceelementslist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ItemsWithNullInstanceElementsList](#itemswithnullinstanceelementslist) | data
validated payload | +| [ItemsWithNullInstanceElementsList](#itemswithnullinstanceelementslist) | data()
validated payload | +| @Nullable Object | getData()
validated payload | ## ItemsWithNullInstanceElements1 public static class ItemsWithNullInstanceElements1
@@ -87,7 +88,9 @@ ItemsWithNullInstanceElements.ItemsWithNullInstanceElementsList validatedPayload | ----------------- | ---------------------- | | [ItemsWithNullInstanceElementsList](#itemswithnullinstanceelementslist) | validate([List](#itemswithnullinstanceelementslistbuilder) arg, SchemaConfiguration configuration) | | [ItemsWithNullInstanceElements1BoxedList](#itemswithnullinstanceelements1boxedlist) | validateAndBox([List](#itemswithnullinstanceelementslistbuilder) arg, SchemaConfiguration configuration) | +| [ItemsWithNullInstanceElements1Boxed](#itemswithnullinstanceelements1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ItemsWithNullInstanceElementsListBuilder public class ItemsWithNullInstanceElementsListBuilder
builder for `List` @@ -118,27 +121,28 @@ A class to store validated List payloads | static [ItemsWithNullInstanceElementsList](#itemswithnullinstanceelementslist) | of([List](#itemswithnullinstanceelementslistbuilder) arg, SchemaConfiguration configuration) | ## ItemsBoxed -public static abstract sealed class ItemsBoxed
+public sealed interface ItemsBoxed
permits
[ItemsBoxedVoid](#itemsboxedvoid) -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 | ## Items public static class Items
diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/JsonPointerFormat.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/JsonPointerFormat.md index 0bf84047e03..65c23c09e6c 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/JsonPointerFormat.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/MaxcontainsWithoutContainsIsIgnored.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/MaxcontainsWithoutContainsIsIgnored.md index 2def0d691a1..34f9ac593c7 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/MaxcontainsWithoutContainsIsIgnored.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/MaxcontainsWithoutContainsIsIgnored.md @@ -4,23 +4,23 @@ public class MaxcontainsWithoutContainsIsIgnored
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 | [MaxcontainsWithoutContainsIsIgnored.MaxcontainsWithoutContainsIsIgnored1Boxed](#maxcontainswithoutcontainsisignored1boxed)
abstract sealed validated payload class | -| static class | [MaxcontainsWithoutContainsIsIgnored.MaxcontainsWithoutContainsIsIgnored1BoxedVoid](#maxcontainswithoutcontainsisignored1boxedvoid)
boxed class to store validated null payloads | -| static class | [MaxcontainsWithoutContainsIsIgnored.MaxcontainsWithoutContainsIsIgnored1BoxedBoolean](#maxcontainswithoutcontainsisignored1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [MaxcontainsWithoutContainsIsIgnored.MaxcontainsWithoutContainsIsIgnored1BoxedNumber](#maxcontainswithoutcontainsisignored1boxednumber)
boxed class to store validated Number payloads | -| static class | [MaxcontainsWithoutContainsIsIgnored.MaxcontainsWithoutContainsIsIgnored1BoxedString](#maxcontainswithoutcontainsisignored1boxedstring)
boxed class to store validated String payloads | -| static class | [MaxcontainsWithoutContainsIsIgnored.MaxcontainsWithoutContainsIsIgnored1BoxedList](#maxcontainswithoutcontainsisignored1boxedlist)
boxed class to store validated List payloads | -| static class | [MaxcontainsWithoutContainsIsIgnored.MaxcontainsWithoutContainsIsIgnored1BoxedMap](#maxcontainswithoutcontainsisignored1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [MaxcontainsWithoutContainsIsIgnored.MaxcontainsWithoutContainsIsIgnored1Boxed](#maxcontainswithoutcontainsisignored1boxed)
sealed interface for validated payloads | +| record | [MaxcontainsWithoutContainsIsIgnored.MaxcontainsWithoutContainsIsIgnored1BoxedVoid](#maxcontainswithoutcontainsisignored1boxedvoid)
boxed class to store validated null payloads | +| record | [MaxcontainsWithoutContainsIsIgnored.MaxcontainsWithoutContainsIsIgnored1BoxedBoolean](#maxcontainswithoutcontainsisignored1boxedboolean)
boxed class to store validated boolean payloads | +| record | [MaxcontainsWithoutContainsIsIgnored.MaxcontainsWithoutContainsIsIgnored1BoxedNumber](#maxcontainswithoutcontainsisignored1boxednumber)
boxed class to store validated Number payloads | +| record | [MaxcontainsWithoutContainsIsIgnored.MaxcontainsWithoutContainsIsIgnored1BoxedString](#maxcontainswithoutcontainsisignored1boxedstring)
boxed class to store validated String payloads | +| record | [MaxcontainsWithoutContainsIsIgnored.MaxcontainsWithoutContainsIsIgnored1BoxedList](#maxcontainswithoutcontainsisignored1boxedlist)
boxed class to store validated List payloads | +| record | [MaxcontainsWithoutContainsIsIgnored.MaxcontainsWithoutContainsIsIgnored1BoxedMap](#maxcontainswithoutcontainsisignored1boxedmap)
boxed class to store validated Map payloads | | static class | [MaxcontainsWithoutContainsIsIgnored.MaxcontainsWithoutContainsIsIgnored1](#maxcontainswithoutcontainsisignored1)
schema class | ## MaxcontainsWithoutContainsIsIgnored1Boxed -public static abstract sealed class MaxcontainsWithoutContainsIsIgnored1Boxed
+public sealed interface MaxcontainsWithoutContainsIsIgnored1Boxed
permits
[MaxcontainsWithoutContainsIsIgnored1BoxedVoid](#maxcontainswithoutcontainsisignored1boxedvoid), [MaxcontainsWithoutContainsIsIgnored1BoxedBoolean](#maxcontainswithoutcontainsisignored1boxedboolean), @@ -29,103 +29,109 @@ permits
[MaxcontainsWithoutContainsIsIgnored1BoxedList](#maxcontainswithoutcontainsisignored1boxedlist), [MaxcontainsWithoutContainsIsIgnored1BoxedMap](#maxcontainswithoutcontainsisignored1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MaxcontainsWithoutContainsIsIgnored1BoxedVoid -public static final class MaxcontainsWithoutContainsIsIgnored1BoxedVoid
-extends [MaxcontainsWithoutContainsIsIgnored1Boxed](#maxcontainswithoutcontainsisignored1boxed) +public record MaxcontainsWithoutContainsIsIgnored1BoxedVoid
+implements [MaxcontainsWithoutContainsIsIgnored1Boxed](#maxcontainswithoutcontainsisignored1boxed) -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 | | --------------------------- | | MaxcontainsWithoutContainsIsIgnored1BoxedVoid(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 | ## MaxcontainsWithoutContainsIsIgnored1BoxedBoolean -public static final class MaxcontainsWithoutContainsIsIgnored1BoxedBoolean
-extends [MaxcontainsWithoutContainsIsIgnored1Boxed](#maxcontainswithoutcontainsisignored1boxed) +public record MaxcontainsWithoutContainsIsIgnored1BoxedBoolean
+implements [MaxcontainsWithoutContainsIsIgnored1Boxed](#maxcontainswithoutcontainsisignored1boxed) -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 | | --------------------------- | | MaxcontainsWithoutContainsIsIgnored1BoxedBoolean(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 | ## MaxcontainsWithoutContainsIsIgnored1BoxedNumber -public static final class MaxcontainsWithoutContainsIsIgnored1BoxedNumber
-extends [MaxcontainsWithoutContainsIsIgnored1Boxed](#maxcontainswithoutcontainsisignored1boxed) +public record MaxcontainsWithoutContainsIsIgnored1BoxedNumber
+implements [MaxcontainsWithoutContainsIsIgnored1Boxed](#maxcontainswithoutcontainsisignored1boxed) -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 | | --------------------------- | | MaxcontainsWithoutContainsIsIgnored1BoxedNumber(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 | ## MaxcontainsWithoutContainsIsIgnored1BoxedString -public static final class MaxcontainsWithoutContainsIsIgnored1BoxedString
-extends [MaxcontainsWithoutContainsIsIgnored1Boxed](#maxcontainswithoutcontainsisignored1boxed) +public record MaxcontainsWithoutContainsIsIgnored1BoxedString
+implements [MaxcontainsWithoutContainsIsIgnored1Boxed](#maxcontainswithoutcontainsisignored1boxed) -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 | | --------------------------- | | MaxcontainsWithoutContainsIsIgnored1BoxedString(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 | ## MaxcontainsWithoutContainsIsIgnored1BoxedList -public static final class MaxcontainsWithoutContainsIsIgnored1BoxedList
-extends [MaxcontainsWithoutContainsIsIgnored1Boxed](#maxcontainswithoutcontainsisignored1boxed) +public record MaxcontainsWithoutContainsIsIgnored1BoxedList
+implements [MaxcontainsWithoutContainsIsIgnored1Boxed](#maxcontainswithoutcontainsisignored1boxed) -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 | | --------------------------- | | MaxcontainsWithoutContainsIsIgnored1BoxedList(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 | ## MaxcontainsWithoutContainsIsIgnored1BoxedMap -public static final class MaxcontainsWithoutContainsIsIgnored1BoxedMap
-extends [MaxcontainsWithoutContainsIsIgnored1Boxed](#maxcontainswithoutcontainsisignored1boxed) +public record MaxcontainsWithoutContainsIsIgnored1BoxedMap
+implements [MaxcontainsWithoutContainsIsIgnored1Boxed](#maxcontainswithoutcontainsisignored1boxed) -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 | | --------------------------- | | MaxcontainsWithoutContainsIsIgnored1BoxedMap(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 | ## MaxcontainsWithoutContainsIsIgnored1 public static class MaxcontainsWithoutContainsIsIgnored1
@@ -157,5 +163,7 @@ A schema class that validates payloads | [MaxcontainsWithoutContainsIsIgnored1BoxedBoolean](#maxcontainswithoutcontainsisignored1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [MaxcontainsWithoutContainsIsIgnored1BoxedMap](#maxcontainswithoutcontainsisignored1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [MaxcontainsWithoutContainsIsIgnored1BoxedList](#maxcontainswithoutcontainsisignored1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [MaxcontainsWithoutContainsIsIgnored1Boxed](#maxcontainswithoutcontainsisignored1boxed) | 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_1_0_unit_test/java/docs/components/schemas/MaximumValidation.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/MaximumValidation.md index 8d3299d1f57..ea90b82fd0b 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/MaximumValidation.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/MaximumValidationWithUnsignedInteger.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/MaximumValidationWithUnsignedInteger.md index 98e8b63439d..319d16fd33e 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/MaximumValidationWithUnsignedInteger.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/MaxitemsValidation.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/MaxitemsValidation.md index 98523745270..1fd4640fa8a 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/MaxitemsValidation.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/MaxlengthValidation.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/MaxlengthValidation.md index 7aa1d4b333d..e828355331e 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/MaxlengthValidation.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/Maxproperties0MeansTheObjectIsEmpty.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/Maxproperties0MeansTheObjectIsEmpty.md index 36d25749476..0f8c895fdcd 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/Maxproperties0MeansTheObjectIsEmpty.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/MaxpropertiesValidation.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/MaxpropertiesValidation.md index 7c12d46e04b..0ee228096d5 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/MaxpropertiesValidation.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/MincontainsWithoutContainsIsIgnored.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/MincontainsWithoutContainsIsIgnored.md index 59c302b579d..4bfad67b17b 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/MincontainsWithoutContainsIsIgnored.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/MincontainsWithoutContainsIsIgnored.md @@ -4,23 +4,23 @@ public class MincontainsWithoutContainsIsIgnored
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 | [MincontainsWithoutContainsIsIgnored.MincontainsWithoutContainsIsIgnored1Boxed](#mincontainswithoutcontainsisignored1boxed)
abstract sealed validated payload class | -| static class | [MincontainsWithoutContainsIsIgnored.MincontainsWithoutContainsIsIgnored1BoxedVoid](#mincontainswithoutcontainsisignored1boxedvoid)
boxed class to store validated null payloads | -| static class | [MincontainsWithoutContainsIsIgnored.MincontainsWithoutContainsIsIgnored1BoxedBoolean](#mincontainswithoutcontainsisignored1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [MincontainsWithoutContainsIsIgnored.MincontainsWithoutContainsIsIgnored1BoxedNumber](#mincontainswithoutcontainsisignored1boxednumber)
boxed class to store validated Number payloads | -| static class | [MincontainsWithoutContainsIsIgnored.MincontainsWithoutContainsIsIgnored1BoxedString](#mincontainswithoutcontainsisignored1boxedstring)
boxed class to store validated String payloads | -| static class | [MincontainsWithoutContainsIsIgnored.MincontainsWithoutContainsIsIgnored1BoxedList](#mincontainswithoutcontainsisignored1boxedlist)
boxed class to store validated List payloads | -| static class | [MincontainsWithoutContainsIsIgnored.MincontainsWithoutContainsIsIgnored1BoxedMap](#mincontainswithoutcontainsisignored1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [MincontainsWithoutContainsIsIgnored.MincontainsWithoutContainsIsIgnored1Boxed](#mincontainswithoutcontainsisignored1boxed)
sealed interface for validated payloads | +| record | [MincontainsWithoutContainsIsIgnored.MincontainsWithoutContainsIsIgnored1BoxedVoid](#mincontainswithoutcontainsisignored1boxedvoid)
boxed class to store validated null payloads | +| record | [MincontainsWithoutContainsIsIgnored.MincontainsWithoutContainsIsIgnored1BoxedBoolean](#mincontainswithoutcontainsisignored1boxedboolean)
boxed class to store validated boolean payloads | +| record | [MincontainsWithoutContainsIsIgnored.MincontainsWithoutContainsIsIgnored1BoxedNumber](#mincontainswithoutcontainsisignored1boxednumber)
boxed class to store validated Number payloads | +| record | [MincontainsWithoutContainsIsIgnored.MincontainsWithoutContainsIsIgnored1BoxedString](#mincontainswithoutcontainsisignored1boxedstring)
boxed class to store validated String payloads | +| record | [MincontainsWithoutContainsIsIgnored.MincontainsWithoutContainsIsIgnored1BoxedList](#mincontainswithoutcontainsisignored1boxedlist)
boxed class to store validated List payloads | +| record | [MincontainsWithoutContainsIsIgnored.MincontainsWithoutContainsIsIgnored1BoxedMap](#mincontainswithoutcontainsisignored1boxedmap)
boxed class to store validated Map payloads | | static class | [MincontainsWithoutContainsIsIgnored.MincontainsWithoutContainsIsIgnored1](#mincontainswithoutcontainsisignored1)
schema class | ## MincontainsWithoutContainsIsIgnored1Boxed -public static abstract sealed class MincontainsWithoutContainsIsIgnored1Boxed
+public sealed interface MincontainsWithoutContainsIsIgnored1Boxed
permits
[MincontainsWithoutContainsIsIgnored1BoxedVoid](#mincontainswithoutcontainsisignored1boxedvoid), [MincontainsWithoutContainsIsIgnored1BoxedBoolean](#mincontainswithoutcontainsisignored1boxedboolean), @@ -29,103 +29,109 @@ permits
[MincontainsWithoutContainsIsIgnored1BoxedList](#mincontainswithoutcontainsisignored1boxedlist), [MincontainsWithoutContainsIsIgnored1BoxedMap](#mincontainswithoutcontainsisignored1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MincontainsWithoutContainsIsIgnored1BoxedVoid -public static final class MincontainsWithoutContainsIsIgnored1BoxedVoid
-extends [MincontainsWithoutContainsIsIgnored1Boxed](#mincontainswithoutcontainsisignored1boxed) +public record MincontainsWithoutContainsIsIgnored1BoxedVoid
+implements [MincontainsWithoutContainsIsIgnored1Boxed](#mincontainswithoutcontainsisignored1boxed) -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 | | --------------------------- | | MincontainsWithoutContainsIsIgnored1BoxedVoid(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 | ## MincontainsWithoutContainsIsIgnored1BoxedBoolean -public static final class MincontainsWithoutContainsIsIgnored1BoxedBoolean
-extends [MincontainsWithoutContainsIsIgnored1Boxed](#mincontainswithoutcontainsisignored1boxed) +public record MincontainsWithoutContainsIsIgnored1BoxedBoolean
+implements [MincontainsWithoutContainsIsIgnored1Boxed](#mincontainswithoutcontainsisignored1boxed) -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 | | --------------------------- | | MincontainsWithoutContainsIsIgnored1BoxedBoolean(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 | ## MincontainsWithoutContainsIsIgnored1BoxedNumber -public static final class MincontainsWithoutContainsIsIgnored1BoxedNumber
-extends [MincontainsWithoutContainsIsIgnored1Boxed](#mincontainswithoutcontainsisignored1boxed) +public record MincontainsWithoutContainsIsIgnored1BoxedNumber
+implements [MincontainsWithoutContainsIsIgnored1Boxed](#mincontainswithoutcontainsisignored1boxed) -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 | | --------------------------- | | MincontainsWithoutContainsIsIgnored1BoxedNumber(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 | ## MincontainsWithoutContainsIsIgnored1BoxedString -public static final class MincontainsWithoutContainsIsIgnored1BoxedString
-extends [MincontainsWithoutContainsIsIgnored1Boxed](#mincontainswithoutcontainsisignored1boxed) +public record MincontainsWithoutContainsIsIgnored1BoxedString
+implements [MincontainsWithoutContainsIsIgnored1Boxed](#mincontainswithoutcontainsisignored1boxed) -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 | | --------------------------- | | MincontainsWithoutContainsIsIgnored1BoxedString(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 | ## MincontainsWithoutContainsIsIgnored1BoxedList -public static final class MincontainsWithoutContainsIsIgnored1BoxedList
-extends [MincontainsWithoutContainsIsIgnored1Boxed](#mincontainswithoutcontainsisignored1boxed) +public record MincontainsWithoutContainsIsIgnored1BoxedList
+implements [MincontainsWithoutContainsIsIgnored1Boxed](#mincontainswithoutcontainsisignored1boxed) -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 | | --------------------------- | | MincontainsWithoutContainsIsIgnored1BoxedList(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 | ## MincontainsWithoutContainsIsIgnored1BoxedMap -public static final class MincontainsWithoutContainsIsIgnored1BoxedMap
-extends [MincontainsWithoutContainsIsIgnored1Boxed](#mincontainswithoutcontainsisignored1boxed) +public record MincontainsWithoutContainsIsIgnored1BoxedMap
+implements [MincontainsWithoutContainsIsIgnored1Boxed](#mincontainswithoutcontainsisignored1boxed) -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 | | --------------------------- | | MincontainsWithoutContainsIsIgnored1BoxedMap(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 | ## MincontainsWithoutContainsIsIgnored1 public static class MincontainsWithoutContainsIsIgnored1
@@ -157,5 +163,7 @@ A schema class that validates payloads | [MincontainsWithoutContainsIsIgnored1BoxedBoolean](#mincontainswithoutcontainsisignored1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [MincontainsWithoutContainsIsIgnored1BoxedMap](#mincontainswithoutcontainsisignored1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [MincontainsWithoutContainsIsIgnored1BoxedList](#mincontainswithoutcontainsisignored1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [MincontainsWithoutContainsIsIgnored1Boxed](#mincontainswithoutcontainsisignored1boxed) | 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_1_0_unit_test/java/docs/components/schemas/MinimumValidation.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/MinimumValidation.md index d08a4b87b8d..26df31b73bd 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/MinimumValidation.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/MinimumValidationWithSignedInteger.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/MinimumValidationWithSignedInteger.md index d0e27071bf5..8cf8b08f2a7 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/MinimumValidationWithSignedInteger.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/MinitemsValidation.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/MinitemsValidation.md index 64dda8d0ea0..0f8a46474b2 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/MinitemsValidation.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/MinlengthValidation.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/MinlengthValidation.md index 90c47d11e25..bf689a4ffa4 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/MinlengthValidation.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/MinpropertiesValidation.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/MinpropertiesValidation.md index a93e08d7d8f..43f7370e423 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/MinpropertiesValidation.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/MultipleDependentsRequired.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/MultipleDependentsRequired.md index 22c4315dc40..11eb2987149 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/MultipleDependentsRequired.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/MultipleDependentsRequired.md @@ -4,23 +4,23 @@ public class MultipleDependentsRequired
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 | [MultipleDependentsRequired.MultipleDependentsRequired1Boxed](#multipledependentsrequired1boxed)
abstract sealed validated payload class | -| static class | [MultipleDependentsRequired.MultipleDependentsRequired1BoxedVoid](#multipledependentsrequired1boxedvoid)
boxed class to store validated null payloads | -| static class | [MultipleDependentsRequired.MultipleDependentsRequired1BoxedBoolean](#multipledependentsrequired1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [MultipleDependentsRequired.MultipleDependentsRequired1BoxedNumber](#multipledependentsrequired1boxednumber)
boxed class to store validated Number payloads | -| static class | [MultipleDependentsRequired.MultipleDependentsRequired1BoxedString](#multipledependentsrequired1boxedstring)
boxed class to store validated String payloads | -| static class | [MultipleDependentsRequired.MultipleDependentsRequired1BoxedList](#multipledependentsrequired1boxedlist)
boxed class to store validated List payloads | -| static class | [MultipleDependentsRequired.MultipleDependentsRequired1BoxedMap](#multipledependentsrequired1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [MultipleDependentsRequired.MultipleDependentsRequired1Boxed](#multipledependentsrequired1boxed)
sealed interface for validated payloads | +| record | [MultipleDependentsRequired.MultipleDependentsRequired1BoxedVoid](#multipledependentsrequired1boxedvoid)
boxed class to store validated null payloads | +| record | [MultipleDependentsRequired.MultipleDependentsRequired1BoxedBoolean](#multipledependentsrequired1boxedboolean)
boxed class to store validated boolean payloads | +| record | [MultipleDependentsRequired.MultipleDependentsRequired1BoxedNumber](#multipledependentsrequired1boxednumber)
boxed class to store validated Number payloads | +| record | [MultipleDependentsRequired.MultipleDependentsRequired1BoxedString](#multipledependentsrequired1boxedstring)
boxed class to store validated String payloads | +| record | [MultipleDependentsRequired.MultipleDependentsRequired1BoxedList](#multipledependentsrequired1boxedlist)
boxed class to store validated List payloads | +| record | [MultipleDependentsRequired.MultipleDependentsRequired1BoxedMap](#multipledependentsrequired1boxedmap)
boxed class to store validated Map payloads | | static class | [MultipleDependentsRequired.MultipleDependentsRequired1](#multipledependentsrequired1)
schema class | ## MultipleDependentsRequired1Boxed -public static abstract sealed class MultipleDependentsRequired1Boxed
+public sealed interface MultipleDependentsRequired1Boxed
permits
[MultipleDependentsRequired1BoxedVoid](#multipledependentsrequired1boxedvoid), [MultipleDependentsRequired1BoxedBoolean](#multipledependentsrequired1boxedboolean), @@ -29,103 +29,109 @@ permits
[MultipleDependentsRequired1BoxedList](#multipledependentsrequired1boxedlist), [MultipleDependentsRequired1BoxedMap](#multipledependentsrequired1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MultipleDependentsRequired1BoxedVoid -public static final class MultipleDependentsRequired1BoxedVoid
-extends [MultipleDependentsRequired1Boxed](#multipledependentsrequired1boxed) +public record MultipleDependentsRequired1BoxedVoid
+implements [MultipleDependentsRequired1Boxed](#multipledependentsrequired1boxed) -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 | | --------------------------- | | MultipleDependentsRequired1BoxedVoid(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 | ## MultipleDependentsRequired1BoxedBoolean -public static final class MultipleDependentsRequired1BoxedBoolean
-extends [MultipleDependentsRequired1Boxed](#multipledependentsrequired1boxed) +public record MultipleDependentsRequired1BoxedBoolean
+implements [MultipleDependentsRequired1Boxed](#multipledependentsrequired1boxed) -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 | | --------------------------- | | MultipleDependentsRequired1BoxedBoolean(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 | ## MultipleDependentsRequired1BoxedNumber -public static final class MultipleDependentsRequired1BoxedNumber
-extends [MultipleDependentsRequired1Boxed](#multipledependentsrequired1boxed) +public record MultipleDependentsRequired1BoxedNumber
+implements [MultipleDependentsRequired1Boxed](#multipledependentsrequired1boxed) -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 | | --------------------------- | | MultipleDependentsRequired1BoxedNumber(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 | ## MultipleDependentsRequired1BoxedString -public static final class MultipleDependentsRequired1BoxedString
-extends [MultipleDependentsRequired1Boxed](#multipledependentsrequired1boxed) +public record MultipleDependentsRequired1BoxedString
+implements [MultipleDependentsRequired1Boxed](#multipledependentsrequired1boxed) -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 | | --------------------------- | | MultipleDependentsRequired1BoxedString(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 | ## MultipleDependentsRequired1BoxedList -public static final class MultipleDependentsRequired1BoxedList
-extends [MultipleDependentsRequired1Boxed](#multipledependentsrequired1boxed) +public record MultipleDependentsRequired1BoxedList
+implements [MultipleDependentsRequired1Boxed](#multipledependentsrequired1boxed) -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 | | --------------------------- | | MultipleDependentsRequired1BoxedList(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 | ## MultipleDependentsRequired1BoxedMap -public static final class MultipleDependentsRequired1BoxedMap
-extends [MultipleDependentsRequired1Boxed](#multipledependentsrequired1boxed) +public record MultipleDependentsRequired1BoxedMap
+implements [MultipleDependentsRequired1Boxed](#multipledependentsrequired1boxed) -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 | | --------------------------- | | MultipleDependentsRequired1BoxedMap(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 | ## MultipleDependentsRequired1 public static class MultipleDependentsRequired1
@@ -166,5 +172,7 @@ A schema class that validates payloads | [MultipleDependentsRequired1BoxedBoolean](#multipledependentsrequired1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [MultipleDependentsRequired1BoxedMap](#multipledependentsrequired1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [MultipleDependentsRequired1BoxedList](#multipledependentsrequired1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [MultipleDependentsRequired1Boxed](#multipledependentsrequired1boxed) | 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_1_0_unit_test/java/docs/components/schemas/MultipleSimultaneousPatternpropertiesAreValidated.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/MultipleSimultaneousPatternpropertiesAreValidated.md index b81920ce328..618e43d1420 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/MultipleSimultaneousPatternpropertiesAreValidated.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/MultipleSimultaneousPatternpropertiesAreValidated.md @@ -4,34 +4,34 @@ public class MultipleSimultaneousPatternpropertiesAreValidated
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 | [MultipleSimultaneousPatternpropertiesAreValidated.MultipleSimultaneousPatternpropertiesAreValidated1Boxed](#multiplesimultaneouspatternpropertiesarevalidated1boxed)
abstract sealed validated payload class | -| static class | [MultipleSimultaneousPatternpropertiesAreValidated.MultipleSimultaneousPatternpropertiesAreValidated1BoxedVoid](#multiplesimultaneouspatternpropertiesarevalidated1boxedvoid)
boxed class to store validated null payloads | -| static class | [MultipleSimultaneousPatternpropertiesAreValidated.MultipleSimultaneousPatternpropertiesAreValidated1BoxedBoolean](#multiplesimultaneouspatternpropertiesarevalidated1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [MultipleSimultaneousPatternpropertiesAreValidated.MultipleSimultaneousPatternpropertiesAreValidated1BoxedNumber](#multiplesimultaneouspatternpropertiesarevalidated1boxednumber)
boxed class to store validated Number payloads | -| static class | [MultipleSimultaneousPatternpropertiesAreValidated.MultipleSimultaneousPatternpropertiesAreValidated1BoxedString](#multiplesimultaneouspatternpropertiesarevalidated1boxedstring)
boxed class to store validated String payloads | -| static class | [MultipleSimultaneousPatternpropertiesAreValidated.MultipleSimultaneousPatternpropertiesAreValidated1BoxedList](#multiplesimultaneouspatternpropertiesarevalidated1boxedlist)
boxed class to store validated List payloads | -| static class | [MultipleSimultaneousPatternpropertiesAreValidated.MultipleSimultaneousPatternpropertiesAreValidated1BoxedMap](#multiplesimultaneouspatternpropertiesarevalidated1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [MultipleSimultaneousPatternpropertiesAreValidated.MultipleSimultaneousPatternpropertiesAreValidated1Boxed](#multiplesimultaneouspatternpropertiesarevalidated1boxed)
sealed interface for validated payloads | +| record | [MultipleSimultaneousPatternpropertiesAreValidated.MultipleSimultaneousPatternpropertiesAreValidated1BoxedVoid](#multiplesimultaneouspatternpropertiesarevalidated1boxedvoid)
boxed class to store validated null payloads | +| record | [MultipleSimultaneousPatternpropertiesAreValidated.MultipleSimultaneousPatternpropertiesAreValidated1BoxedBoolean](#multiplesimultaneouspatternpropertiesarevalidated1boxedboolean)
boxed class to store validated boolean payloads | +| record | [MultipleSimultaneousPatternpropertiesAreValidated.MultipleSimultaneousPatternpropertiesAreValidated1BoxedNumber](#multiplesimultaneouspatternpropertiesarevalidated1boxednumber)
boxed class to store validated Number payloads | +| record | [MultipleSimultaneousPatternpropertiesAreValidated.MultipleSimultaneousPatternpropertiesAreValidated1BoxedString](#multiplesimultaneouspatternpropertiesarevalidated1boxedstring)
boxed class to store validated String payloads | +| record | [MultipleSimultaneousPatternpropertiesAreValidated.MultipleSimultaneousPatternpropertiesAreValidated1BoxedList](#multiplesimultaneouspatternpropertiesarevalidated1boxedlist)
boxed class to store validated List payloads | +| record | [MultipleSimultaneousPatternpropertiesAreValidated.MultipleSimultaneousPatternpropertiesAreValidated1BoxedMap](#multiplesimultaneouspatternpropertiesarevalidated1boxedmap)
boxed class to store validated Map payloads | | static class | [MultipleSimultaneousPatternpropertiesAreValidated.MultipleSimultaneousPatternpropertiesAreValidated1](#multiplesimultaneouspatternpropertiesarevalidated1)
schema class | -| static class | [MultipleSimultaneousPatternpropertiesAreValidated.AaaBoxed](#aaaboxed)
abstract sealed validated payload class | -| static class | [MultipleSimultaneousPatternpropertiesAreValidated.AaaBoxedVoid](#aaaboxedvoid)
boxed class to store validated null payloads | -| static class | [MultipleSimultaneousPatternpropertiesAreValidated.AaaBoxedBoolean](#aaaboxedboolean)
boxed class to store validated boolean payloads | -| static class | [MultipleSimultaneousPatternpropertiesAreValidated.AaaBoxedNumber](#aaaboxednumber)
boxed class to store validated Number payloads | -| static class | [MultipleSimultaneousPatternpropertiesAreValidated.AaaBoxedString](#aaaboxedstring)
boxed class to store validated String payloads | -| static class | [MultipleSimultaneousPatternpropertiesAreValidated.AaaBoxedList](#aaaboxedlist)
boxed class to store validated List payloads | -| static class | [MultipleSimultaneousPatternpropertiesAreValidated.AaaBoxedMap](#aaaboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [MultipleSimultaneousPatternpropertiesAreValidated.AaaBoxed](#aaaboxed)
sealed interface for validated payloads | +| record | [MultipleSimultaneousPatternpropertiesAreValidated.AaaBoxedVoid](#aaaboxedvoid)
boxed class to store validated null payloads | +| record | [MultipleSimultaneousPatternpropertiesAreValidated.AaaBoxedBoolean](#aaaboxedboolean)
boxed class to store validated boolean payloads | +| record | [MultipleSimultaneousPatternpropertiesAreValidated.AaaBoxedNumber](#aaaboxednumber)
boxed class to store validated Number payloads | +| record | [MultipleSimultaneousPatternpropertiesAreValidated.AaaBoxedString](#aaaboxedstring)
boxed class to store validated String payloads | +| record | [MultipleSimultaneousPatternpropertiesAreValidated.AaaBoxedList](#aaaboxedlist)
boxed class to store validated List payloads | +| record | [MultipleSimultaneousPatternpropertiesAreValidated.AaaBoxedMap](#aaaboxedmap)
boxed class to store validated Map payloads | | static class | [MultipleSimultaneousPatternpropertiesAreValidated.Aaa](#aaa)
schema class | -| static class | [MultipleSimultaneousPatternpropertiesAreValidated.ABoxed](#aboxed)
abstract sealed validated payload class | -| static class | [MultipleSimultaneousPatternpropertiesAreValidated.ABoxedNumber](#aboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [MultipleSimultaneousPatternpropertiesAreValidated.ABoxed](#aboxed)
sealed interface for validated payloads | +| record | [MultipleSimultaneousPatternpropertiesAreValidated.ABoxedNumber](#aboxednumber)
boxed class to store validated Number payloads | | static class | [MultipleSimultaneousPatternpropertiesAreValidated.A](#a)
schema class | ## MultipleSimultaneousPatternpropertiesAreValidated1Boxed -public static abstract sealed class MultipleSimultaneousPatternpropertiesAreValidated1Boxed
+public sealed interface MultipleSimultaneousPatternpropertiesAreValidated1Boxed
permits
[MultipleSimultaneousPatternpropertiesAreValidated1BoxedVoid](#multiplesimultaneouspatternpropertiesarevalidated1boxedvoid), [MultipleSimultaneousPatternpropertiesAreValidated1BoxedBoolean](#multiplesimultaneouspatternpropertiesarevalidated1boxedboolean), @@ -40,103 +40,109 @@ permits
[MultipleSimultaneousPatternpropertiesAreValidated1BoxedList](#multiplesimultaneouspatternpropertiesarevalidated1boxedlist), [MultipleSimultaneousPatternpropertiesAreValidated1BoxedMap](#multiplesimultaneouspatternpropertiesarevalidated1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MultipleSimultaneousPatternpropertiesAreValidated1BoxedVoid -public static final class MultipleSimultaneousPatternpropertiesAreValidated1BoxedVoid
-extends [MultipleSimultaneousPatternpropertiesAreValidated1Boxed](#multiplesimultaneouspatternpropertiesarevalidated1boxed) +public record MultipleSimultaneousPatternpropertiesAreValidated1BoxedVoid
+implements [MultipleSimultaneousPatternpropertiesAreValidated1Boxed](#multiplesimultaneouspatternpropertiesarevalidated1boxed) -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 | | --------------------------- | | MultipleSimultaneousPatternpropertiesAreValidated1BoxedVoid(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 | ## MultipleSimultaneousPatternpropertiesAreValidated1BoxedBoolean -public static final class MultipleSimultaneousPatternpropertiesAreValidated1BoxedBoolean
-extends [MultipleSimultaneousPatternpropertiesAreValidated1Boxed](#multiplesimultaneouspatternpropertiesarevalidated1boxed) +public record MultipleSimultaneousPatternpropertiesAreValidated1BoxedBoolean
+implements [MultipleSimultaneousPatternpropertiesAreValidated1Boxed](#multiplesimultaneouspatternpropertiesarevalidated1boxed) -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 | | --------------------------- | | MultipleSimultaneousPatternpropertiesAreValidated1BoxedBoolean(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 | ## MultipleSimultaneousPatternpropertiesAreValidated1BoxedNumber -public static final class MultipleSimultaneousPatternpropertiesAreValidated1BoxedNumber
-extends [MultipleSimultaneousPatternpropertiesAreValidated1Boxed](#multiplesimultaneouspatternpropertiesarevalidated1boxed) +public record MultipleSimultaneousPatternpropertiesAreValidated1BoxedNumber
+implements [MultipleSimultaneousPatternpropertiesAreValidated1Boxed](#multiplesimultaneouspatternpropertiesarevalidated1boxed) -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 | | --------------------------- | | MultipleSimultaneousPatternpropertiesAreValidated1BoxedNumber(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 | ## MultipleSimultaneousPatternpropertiesAreValidated1BoxedString -public static final class MultipleSimultaneousPatternpropertiesAreValidated1BoxedString
-extends [MultipleSimultaneousPatternpropertiesAreValidated1Boxed](#multiplesimultaneouspatternpropertiesarevalidated1boxed) +public record MultipleSimultaneousPatternpropertiesAreValidated1BoxedString
+implements [MultipleSimultaneousPatternpropertiesAreValidated1Boxed](#multiplesimultaneouspatternpropertiesarevalidated1boxed) -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 | | --------------------------- | | MultipleSimultaneousPatternpropertiesAreValidated1BoxedString(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 | ## MultipleSimultaneousPatternpropertiesAreValidated1BoxedList -public static final class MultipleSimultaneousPatternpropertiesAreValidated1BoxedList
-extends [MultipleSimultaneousPatternpropertiesAreValidated1Boxed](#multiplesimultaneouspatternpropertiesarevalidated1boxed) +public record MultipleSimultaneousPatternpropertiesAreValidated1BoxedList
+implements [MultipleSimultaneousPatternpropertiesAreValidated1Boxed](#multiplesimultaneouspatternpropertiesarevalidated1boxed) -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 | | --------------------------- | | MultipleSimultaneousPatternpropertiesAreValidated1BoxedList(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 | ## MultipleSimultaneousPatternpropertiesAreValidated1BoxedMap -public static final class MultipleSimultaneousPatternpropertiesAreValidated1BoxedMap
-extends [MultipleSimultaneousPatternpropertiesAreValidated1Boxed](#multiplesimultaneouspatternpropertiesarevalidated1boxed) +public record MultipleSimultaneousPatternpropertiesAreValidated1BoxedMap
+implements [MultipleSimultaneousPatternpropertiesAreValidated1Boxed](#multiplesimultaneouspatternpropertiesarevalidated1boxed) -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 | | --------------------------- | | MultipleSimultaneousPatternpropertiesAreValidated1BoxedMap(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 | ## MultipleSimultaneousPatternpropertiesAreValidated1 public static class MultipleSimultaneousPatternpropertiesAreValidated1
@@ -168,9 +174,11 @@ A schema class that validates payloads | [MultipleSimultaneousPatternpropertiesAreValidated1BoxedBoolean](#multiplesimultaneouspatternpropertiesarevalidated1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [MultipleSimultaneousPatternpropertiesAreValidated1BoxedMap](#multiplesimultaneouspatternpropertiesarevalidated1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [MultipleSimultaneousPatternpropertiesAreValidated1BoxedList](#multiplesimultaneouspatternpropertiesarevalidated1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [MultipleSimultaneousPatternpropertiesAreValidated1Boxed](#multiplesimultaneouspatternpropertiesarevalidated1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## AaaBoxed -public static abstract sealed class AaaBoxed
+public sealed interface AaaBoxed
permits
[AaaBoxedVoid](#aaaboxedvoid), [AaaBoxedBoolean](#aaaboxedboolean), @@ -179,103 +187,109 @@ permits
[AaaBoxedList](#aaaboxedlist), [AaaBoxedMap](#aaaboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AaaBoxedVoid -public static final class AaaBoxedVoid
-extends [AaaBoxed](#aaaboxed) +public record AaaBoxedVoid
+implements [AaaBoxed](#aaaboxed) -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 | | --------------------------- | | AaaBoxedVoid(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 | ## AaaBoxedBoolean -public static final class AaaBoxedBoolean
-extends [AaaBoxed](#aaaboxed) +public record AaaBoxedBoolean
+implements [AaaBoxed](#aaaboxed) -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 | | --------------------------- | | AaaBoxedBoolean(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 | ## AaaBoxedNumber -public static final class AaaBoxedNumber
-extends [AaaBoxed](#aaaboxed) +public record AaaBoxedNumber
+implements [AaaBoxed](#aaaboxed) -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 | | --------------------------- | | AaaBoxedNumber(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 | ## AaaBoxedString -public static final class AaaBoxedString
-extends [AaaBoxed](#aaaboxed) +public record AaaBoxedString
+implements [AaaBoxed](#aaaboxed) -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 | | --------------------------- | | AaaBoxedString(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 | ## AaaBoxedList -public static final class AaaBoxedList
-extends [AaaBoxed](#aaaboxed) +public record AaaBoxedList
+implements [AaaBoxed](#aaaboxed) -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 | | --------------------------- | | AaaBoxedList(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 | ## AaaBoxedMap -public static final class AaaBoxedMap
-extends [AaaBoxed](#aaaboxed) +public record AaaBoxedMap
+implements [AaaBoxed](#aaaboxed) -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 | | --------------------------- | | AaaBoxedMap(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 | ## Aaa public static class Aaa
@@ -307,29 +321,32 @@ A schema class that validates payloads | [AaaBoxedBoolean](#aaaboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [AaaBoxedMap](#aaaboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [AaaBoxedList](#aaaboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [AaaBoxed](#aaaboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ABoxed -public static abstract sealed class ABoxed
+public sealed interface ABoxed
permits
[ABoxedNumber](#aboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ABoxedNumber -public static final class ABoxedNumber
-extends [ABoxed](#aboxed) +public record ABoxedNumber
+implements [ABoxed](#aboxed) -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 | | --------------------------- | | ABoxedNumber(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 | ## A public static class A
diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/MultipleTypesCanBeSpecifiedInAnArray.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/MultipleTypesCanBeSpecifiedInAnArray.md index 769674fb229..ea9c6876b68 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/MultipleTypesCanBeSpecifiedInAnArray.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/MultipleTypesCanBeSpecifiedInAnArray.md @@ -4,56 +4,58 @@ public class MultipleTypesCanBeSpecifiedInAnArray
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 | [MultipleTypesCanBeSpecifiedInAnArray.MultipleTypesCanBeSpecifiedInAnArray1Boxed](#multipletypescanbespecifiedinanarray1boxed)
abstract sealed validated payload class | -| static class | [MultipleTypesCanBeSpecifiedInAnArray.MultipleTypesCanBeSpecifiedInAnArray1BoxedNumber](#multipletypescanbespecifiedinanarray1boxednumber)
boxed class to store validated Number payloads | -| static class | [MultipleTypesCanBeSpecifiedInAnArray.MultipleTypesCanBeSpecifiedInAnArray1BoxedString](#multipletypescanbespecifiedinanarray1boxedstring)
boxed class to store validated String payloads | +| sealed interface | [MultipleTypesCanBeSpecifiedInAnArray.MultipleTypesCanBeSpecifiedInAnArray1Boxed](#multipletypescanbespecifiedinanarray1boxed)
sealed interface for validated payloads | +| record | [MultipleTypesCanBeSpecifiedInAnArray.MultipleTypesCanBeSpecifiedInAnArray1BoxedNumber](#multipletypescanbespecifiedinanarray1boxednumber)
boxed class to store validated Number payloads | +| record | [MultipleTypesCanBeSpecifiedInAnArray.MultipleTypesCanBeSpecifiedInAnArray1BoxedString](#multipletypescanbespecifiedinanarray1boxedstring)
boxed class to store validated String payloads | | static class | [MultipleTypesCanBeSpecifiedInAnArray.MultipleTypesCanBeSpecifiedInAnArray1](#multipletypescanbespecifiedinanarray1)
schema class | ## MultipleTypesCanBeSpecifiedInAnArray1Boxed -public static abstract sealed class MultipleTypesCanBeSpecifiedInAnArray1Boxed
+public sealed interface MultipleTypesCanBeSpecifiedInAnArray1Boxed
permits
[MultipleTypesCanBeSpecifiedInAnArray1BoxedNumber](#multipletypescanbespecifiedinanarray1boxednumber), [MultipleTypesCanBeSpecifiedInAnArray1BoxedString](#multipletypescanbespecifiedinanarray1boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## MultipleTypesCanBeSpecifiedInAnArray1BoxedNumber -public static final class MultipleTypesCanBeSpecifiedInAnArray1BoxedNumber
-extends [MultipleTypesCanBeSpecifiedInAnArray1Boxed](#multipletypescanbespecifiedinanarray1boxed) +public record MultipleTypesCanBeSpecifiedInAnArray1BoxedNumber
+implements [MultipleTypesCanBeSpecifiedInAnArray1Boxed](#multipletypescanbespecifiedinanarray1boxed) -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 | | --------------------------- | | MultipleTypesCanBeSpecifiedInAnArray1BoxedNumber(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 | ## MultipleTypesCanBeSpecifiedInAnArray1BoxedString -public static final class MultipleTypesCanBeSpecifiedInAnArray1BoxedString
-extends [MultipleTypesCanBeSpecifiedInAnArray1Boxed](#multipletypescanbespecifiedinanarray1boxed) +public record MultipleTypesCanBeSpecifiedInAnArray1BoxedString
+implements [MultipleTypesCanBeSpecifiedInAnArray1Boxed](#multipletypescanbespecifiedinanarray1boxed) -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 | | --------------------------- | | MultipleTypesCanBeSpecifiedInAnArray1BoxedString(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 | ## MultipleTypesCanBeSpecifiedInAnArray1 public static class MultipleTypesCanBeSpecifiedInAnArray1
@@ -102,5 +104,7 @@ String validatedPayload = MultipleTypesCanBeSpecifiedInAnArray.MultipleTypesCanB | [MultipleTypesCanBeSpecifiedInAnArray1BoxedNumber](#multipletypescanbespecifiedinanarray1boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | | String | validate(String arg, SchemaConfiguration configuration) | | [MultipleTypesCanBeSpecifiedInAnArray1BoxedString](#multipletypescanbespecifiedinanarray1boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [MultipleTypesCanBeSpecifiedInAnArray1Boxed](#multipletypescanbespecifiedinanarray1boxed) | 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_1_0_unit_test/java/docs/components/schemas/NestedAllofToCheckValidationSemantics.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/NestedAllofToCheckValidationSemantics.md index d02f03d3c8b..ebf65ca84c7 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/NestedAllofToCheckValidationSemantics.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/NestedAnyofToCheckValidationSemantics.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/NestedAnyofToCheckValidationSemantics.md index 61a43526623..dc2de71feb0 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/NestedAnyofToCheckValidationSemantics.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/NestedItems.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/NestedItems.md index 36a26e8d039..7f7efb8dd5f 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/NestedItems.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/NestedItems.md @@ -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_1_0_unit_test/java/docs/components/schemas/NestedOneofToCheckValidationSemantics.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/NestedOneofToCheckValidationSemantics.md index 0bf18e4dad3..ee3e1712834 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/NestedOneofToCheckValidationSemantics.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/NonAsciiPatternWithAdditionalproperties.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/NonAsciiPatternWithAdditionalproperties.md index ae12de64705..30f7135062f 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/NonAsciiPatternWithAdditionalproperties.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/NonAsciiPatternWithAdditionalproperties.md @@ -4,7 +4,7 @@ public class NonAsciiPatternWithAdditionalproperties
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,50 +12,51 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [NonAsciiPatternWithAdditionalproperties.NonAsciiPatternWithAdditionalproperties1Boxed](#nonasciipatternwithadditionalproperties1boxed)
abstract sealed validated payload class | -| static class | [NonAsciiPatternWithAdditionalproperties.NonAsciiPatternWithAdditionalproperties1BoxedMap](#nonasciipatternwithadditionalproperties1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [NonAsciiPatternWithAdditionalproperties.NonAsciiPatternWithAdditionalproperties1Boxed](#nonasciipatternwithadditionalproperties1boxed)
sealed interface for validated payloads | +| record | [NonAsciiPatternWithAdditionalproperties.NonAsciiPatternWithAdditionalproperties1BoxedMap](#nonasciipatternwithadditionalproperties1boxedmap)
boxed class to store validated Map payloads | | static class | [NonAsciiPatternWithAdditionalproperties.NonAsciiPatternWithAdditionalproperties1](#nonasciipatternwithadditionalproperties1)
schema class | | static class | [NonAsciiPatternWithAdditionalproperties.NonAsciiPatternWithAdditionalpropertiesMapBuilder](#nonasciipatternwithadditionalpropertiesmapbuilder)
builder for Map payloads | | static class | [NonAsciiPatternWithAdditionalproperties.NonAsciiPatternWithAdditionalpropertiesMap](#nonasciipatternwithadditionalpropertiesmap)
output class for Map payloads | -| static class | [NonAsciiPatternWithAdditionalproperties.CircumflexAccentLatinSmallLetterAWithAcuteBoxed](#circumflexaccentlatinsmallletterawithacuteboxed)
abstract sealed validated payload class | -| static class | [NonAsciiPatternWithAdditionalproperties.CircumflexAccentLatinSmallLetterAWithAcuteBoxedVoid](#circumflexaccentlatinsmallletterawithacuteboxedvoid)
boxed class to store validated null payloads | -| static class | [NonAsciiPatternWithAdditionalproperties.CircumflexAccentLatinSmallLetterAWithAcuteBoxedBoolean](#circumflexaccentlatinsmallletterawithacuteboxedboolean)
boxed class to store validated boolean payloads | -| static class | [NonAsciiPatternWithAdditionalproperties.CircumflexAccentLatinSmallLetterAWithAcuteBoxedNumber](#circumflexaccentlatinsmallletterawithacuteboxednumber)
boxed class to store validated Number payloads | -| static class | [NonAsciiPatternWithAdditionalproperties.CircumflexAccentLatinSmallLetterAWithAcuteBoxedString](#circumflexaccentlatinsmallletterawithacuteboxedstring)
boxed class to store validated String payloads | -| static class | [NonAsciiPatternWithAdditionalproperties.CircumflexAccentLatinSmallLetterAWithAcuteBoxedList](#circumflexaccentlatinsmallletterawithacuteboxedlist)
boxed class to store validated List payloads | -| static class | [NonAsciiPatternWithAdditionalproperties.CircumflexAccentLatinSmallLetterAWithAcuteBoxedMap](#circumflexaccentlatinsmallletterawithacuteboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [NonAsciiPatternWithAdditionalproperties.CircumflexAccentLatinSmallLetterAWithAcuteBoxed](#circumflexaccentlatinsmallletterawithacuteboxed)
sealed interface for validated payloads | +| record | [NonAsciiPatternWithAdditionalproperties.CircumflexAccentLatinSmallLetterAWithAcuteBoxedVoid](#circumflexaccentlatinsmallletterawithacuteboxedvoid)
boxed class to store validated null payloads | +| record | [NonAsciiPatternWithAdditionalproperties.CircumflexAccentLatinSmallLetterAWithAcuteBoxedBoolean](#circumflexaccentlatinsmallletterawithacuteboxedboolean)
boxed class to store validated boolean payloads | +| record | [NonAsciiPatternWithAdditionalproperties.CircumflexAccentLatinSmallLetterAWithAcuteBoxedNumber](#circumflexaccentlatinsmallletterawithacuteboxednumber)
boxed class to store validated Number payloads | +| record | [NonAsciiPatternWithAdditionalproperties.CircumflexAccentLatinSmallLetterAWithAcuteBoxedString](#circumflexaccentlatinsmallletterawithacuteboxedstring)
boxed class to store validated String payloads | +| record | [NonAsciiPatternWithAdditionalproperties.CircumflexAccentLatinSmallLetterAWithAcuteBoxedList](#circumflexaccentlatinsmallletterawithacuteboxedlist)
boxed class to store validated List payloads | +| record | [NonAsciiPatternWithAdditionalproperties.CircumflexAccentLatinSmallLetterAWithAcuteBoxedMap](#circumflexaccentlatinsmallletterawithacuteboxedmap)
boxed class to store validated Map payloads | | static class | [NonAsciiPatternWithAdditionalproperties.CircumflexAccentLatinSmallLetterAWithAcute](#circumflexaccentlatinsmallletterawithacute)
schema class | -| static class | [NonAsciiPatternWithAdditionalproperties.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | -| static class | [NonAsciiPatternWithAdditionalproperties.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| static class | [NonAsciiPatternWithAdditionalproperties.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| static class | [NonAsciiPatternWithAdditionalproperties.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| static class | [NonAsciiPatternWithAdditionalproperties.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| static class | [NonAsciiPatternWithAdditionalproperties.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| static class | [NonAsciiPatternWithAdditionalproperties.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [NonAsciiPatternWithAdditionalproperties.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [NonAsciiPatternWithAdditionalproperties.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [NonAsciiPatternWithAdditionalproperties.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [NonAsciiPatternWithAdditionalproperties.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [NonAsciiPatternWithAdditionalproperties.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [NonAsciiPatternWithAdditionalproperties.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [NonAsciiPatternWithAdditionalproperties.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | | static class | [NonAsciiPatternWithAdditionalproperties.AdditionalProperties](#additionalproperties)
schema class | ## NonAsciiPatternWithAdditionalproperties1Boxed -public static abstract sealed class NonAsciiPatternWithAdditionalproperties1Boxed
+public sealed interface NonAsciiPatternWithAdditionalproperties1Boxed
permits
[NonAsciiPatternWithAdditionalproperties1BoxedMap](#nonasciipatternwithadditionalproperties1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## NonAsciiPatternWithAdditionalproperties1BoxedMap -public static final class NonAsciiPatternWithAdditionalproperties1BoxedMap
-extends [NonAsciiPatternWithAdditionalproperties1Boxed](#nonasciipatternwithadditionalproperties1boxed) +public record NonAsciiPatternWithAdditionalproperties1BoxedMap
+implements [NonAsciiPatternWithAdditionalproperties1Boxed](#nonasciipatternwithadditionalproperties1boxed) -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 | | --------------------------- | | NonAsciiPatternWithAdditionalproperties1BoxedMap([NonAsciiPatternWithAdditionalpropertiesMap](#nonasciipatternwithadditionalpropertiesmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [NonAsciiPatternWithAdditionalpropertiesMap](#nonasciipatternwithadditionalpropertiesmap) | data
validated payload | +| [NonAsciiPatternWithAdditionalpropertiesMap](#nonasciipatternwithadditionalpropertiesmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | ## NonAsciiPatternWithAdditionalproperties1 public static class NonAsciiPatternWithAdditionalproperties1
@@ -99,7 +100,9 @@ NonAsciiPatternWithAdditionalproperties.NonAsciiPatternWithAdditionalpropertiesM | ----------------- | ---------------------- | | [NonAsciiPatternWithAdditionalpropertiesMap](#nonasciipatternwithadditionalpropertiesmap) | validate([Map<?, ?>](#nonasciipatternwithadditionalpropertiesmapbuilder) arg, SchemaConfiguration configuration) | | [NonAsciiPatternWithAdditionalproperties1BoxedMap](#nonasciipatternwithadditionalproperties1boxedmap) | validateAndBox([Map<?, ?>](#nonasciipatternwithadditionalpropertiesmapbuilder) arg, SchemaConfiguration configuration) | +| [NonAsciiPatternWithAdditionalproperties1Boxed](#nonasciipatternwithadditionalproperties1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## NonAsciiPatternWithAdditionalpropertiesMapBuilder public class NonAsciiPatternWithAdditionalpropertiesMapBuilder
builder for `Map` @@ -128,7 +131,7 @@ A class to store validated Map payloads | static [NonAsciiPatternWithAdditionalpropertiesMap](#nonasciipatternwithadditionalpropertiesmap) | of([Map](#nonasciipatternwithadditionalpropertiesmapbuilder) arg, SchemaConfiguration configuration) | ## CircumflexAccentLatinSmallLetterAWithAcuteBoxed -public static abstract sealed class CircumflexAccentLatinSmallLetterAWithAcuteBoxed
+public sealed interface CircumflexAccentLatinSmallLetterAWithAcuteBoxed
permits
[CircumflexAccentLatinSmallLetterAWithAcuteBoxedVoid](#circumflexaccentlatinsmallletterawithacuteboxedvoid), [CircumflexAccentLatinSmallLetterAWithAcuteBoxedBoolean](#circumflexaccentlatinsmallletterawithacuteboxedboolean), @@ -137,103 +140,109 @@ permits
[CircumflexAccentLatinSmallLetterAWithAcuteBoxedList](#circumflexaccentlatinsmallletterawithacuteboxedlist), [CircumflexAccentLatinSmallLetterAWithAcuteBoxedMap](#circumflexaccentlatinsmallletterawithacuteboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## CircumflexAccentLatinSmallLetterAWithAcuteBoxedVoid -public static final class CircumflexAccentLatinSmallLetterAWithAcuteBoxedVoid
-extends [CircumflexAccentLatinSmallLetterAWithAcuteBoxed](#circumflexaccentlatinsmallletterawithacuteboxed) +public record CircumflexAccentLatinSmallLetterAWithAcuteBoxedVoid
+implements [CircumflexAccentLatinSmallLetterAWithAcuteBoxed](#circumflexaccentlatinsmallletterawithacuteboxed) -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 | | --------------------------- | | CircumflexAccentLatinSmallLetterAWithAcuteBoxedVoid(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 | ## CircumflexAccentLatinSmallLetterAWithAcuteBoxedBoolean -public static final class CircumflexAccentLatinSmallLetterAWithAcuteBoxedBoolean
-extends [CircumflexAccentLatinSmallLetterAWithAcuteBoxed](#circumflexaccentlatinsmallletterawithacuteboxed) +public record CircumflexAccentLatinSmallLetterAWithAcuteBoxedBoolean
+implements [CircumflexAccentLatinSmallLetterAWithAcuteBoxed](#circumflexaccentlatinsmallletterawithacuteboxed) -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 | | --------------------------- | | CircumflexAccentLatinSmallLetterAWithAcuteBoxedBoolean(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 | ## CircumflexAccentLatinSmallLetterAWithAcuteBoxedNumber -public static final class CircumflexAccentLatinSmallLetterAWithAcuteBoxedNumber
-extends [CircumflexAccentLatinSmallLetterAWithAcuteBoxed](#circumflexaccentlatinsmallletterawithacuteboxed) +public record CircumflexAccentLatinSmallLetterAWithAcuteBoxedNumber
+implements [CircumflexAccentLatinSmallLetterAWithAcuteBoxed](#circumflexaccentlatinsmallletterawithacuteboxed) -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 | | --------------------------- | | CircumflexAccentLatinSmallLetterAWithAcuteBoxedNumber(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 | ## CircumflexAccentLatinSmallLetterAWithAcuteBoxedString -public static final class CircumflexAccentLatinSmallLetterAWithAcuteBoxedString
-extends [CircumflexAccentLatinSmallLetterAWithAcuteBoxed](#circumflexaccentlatinsmallletterawithacuteboxed) +public record CircumflexAccentLatinSmallLetterAWithAcuteBoxedString
+implements [CircumflexAccentLatinSmallLetterAWithAcuteBoxed](#circumflexaccentlatinsmallletterawithacuteboxed) -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 | | --------------------------- | | CircumflexAccentLatinSmallLetterAWithAcuteBoxedString(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 | ## CircumflexAccentLatinSmallLetterAWithAcuteBoxedList -public static final class CircumflexAccentLatinSmallLetterAWithAcuteBoxedList
-extends [CircumflexAccentLatinSmallLetterAWithAcuteBoxed](#circumflexaccentlatinsmallletterawithacuteboxed) +public record CircumflexAccentLatinSmallLetterAWithAcuteBoxedList
+implements [CircumflexAccentLatinSmallLetterAWithAcuteBoxed](#circumflexaccentlatinsmallletterawithacuteboxed) -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 | | --------------------------- | | CircumflexAccentLatinSmallLetterAWithAcuteBoxedList(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 | ## CircumflexAccentLatinSmallLetterAWithAcuteBoxedMap -public static final class CircumflexAccentLatinSmallLetterAWithAcuteBoxedMap
-extends [CircumflexAccentLatinSmallLetterAWithAcuteBoxed](#circumflexaccentlatinsmallletterawithacuteboxed) +public record CircumflexAccentLatinSmallLetterAWithAcuteBoxedMap
+implements [CircumflexAccentLatinSmallLetterAWithAcuteBoxed](#circumflexaccentlatinsmallletterawithacuteboxed) -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 | | --------------------------- | | CircumflexAccentLatinSmallLetterAWithAcuteBoxedMap(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 | ## CircumflexAccentLatinSmallLetterAWithAcute public static class CircumflexAccentLatinSmallLetterAWithAcute
@@ -247,7 +256,7 @@ A schema class that validates payloads | validateAndBox | ## AdditionalPropertiesBoxed -public static abstract sealed class AdditionalPropertiesBoxed
+public sealed interface AdditionalPropertiesBoxed
permits
[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), [AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), @@ -256,103 +265,109 @@ permits
[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), [AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedVoid -public static final class AdditionalPropertiesBoxedVoid
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedVoid(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 | ## 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 | ## AdditionalPropertiesBoxedNumber -public static final class AdditionalPropertiesBoxedNumber
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedNumber(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 | ## AdditionalPropertiesBoxedString -public static final class AdditionalPropertiesBoxedString
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedString(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 | ## AdditionalPropertiesBoxedList -public static final class AdditionalPropertiesBoxedList
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedList(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 | ## AdditionalPropertiesBoxedMap -public static final class AdditionalPropertiesBoxedMap
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedMap(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 | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/NonInterferenceAcrossCombinedSchemas.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/NonInterferenceAcrossCombinedSchemas.md index 392ced31f44..727c527c7b2 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/NonInterferenceAcrossCombinedSchemas.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/NonInterferenceAcrossCombinedSchemas.md @@ -4,71 +4,71 @@ public class NonInterferenceAcrossCombinedSchemas
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 | [NonInterferenceAcrossCombinedSchemas.NonInterferenceAcrossCombinedSchemas1Boxed](#noninterferenceacrosscombinedschemas1boxed)
abstract sealed validated payload class | -| static class | [NonInterferenceAcrossCombinedSchemas.NonInterferenceAcrossCombinedSchemas1BoxedVoid](#noninterferenceacrosscombinedschemas1boxedvoid)
boxed class to store validated null payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.NonInterferenceAcrossCombinedSchemas1BoxedBoolean](#noninterferenceacrosscombinedschemas1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.NonInterferenceAcrossCombinedSchemas1BoxedNumber](#noninterferenceacrosscombinedschemas1boxednumber)
boxed class to store validated Number payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.NonInterferenceAcrossCombinedSchemas1BoxedString](#noninterferenceacrosscombinedschemas1boxedstring)
boxed class to store validated String payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.NonInterferenceAcrossCombinedSchemas1BoxedList](#noninterferenceacrosscombinedschemas1boxedlist)
boxed class to store validated List payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.NonInterferenceAcrossCombinedSchemas1BoxedMap](#noninterferenceacrosscombinedschemas1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [NonInterferenceAcrossCombinedSchemas.NonInterferenceAcrossCombinedSchemas1Boxed](#noninterferenceacrosscombinedschemas1boxed)
sealed interface for validated payloads | +| record | [NonInterferenceAcrossCombinedSchemas.NonInterferenceAcrossCombinedSchemas1BoxedVoid](#noninterferenceacrosscombinedschemas1boxedvoid)
boxed class to store validated null payloads | +| record | [NonInterferenceAcrossCombinedSchemas.NonInterferenceAcrossCombinedSchemas1BoxedBoolean](#noninterferenceacrosscombinedschemas1boxedboolean)
boxed class to store validated boolean payloads | +| record | [NonInterferenceAcrossCombinedSchemas.NonInterferenceAcrossCombinedSchemas1BoxedNumber](#noninterferenceacrosscombinedschemas1boxednumber)
boxed class to store validated Number payloads | +| record | [NonInterferenceAcrossCombinedSchemas.NonInterferenceAcrossCombinedSchemas1BoxedString](#noninterferenceacrosscombinedschemas1boxedstring)
boxed class to store validated String payloads | +| record | [NonInterferenceAcrossCombinedSchemas.NonInterferenceAcrossCombinedSchemas1BoxedList](#noninterferenceacrosscombinedschemas1boxedlist)
boxed class to store validated List payloads | +| record | [NonInterferenceAcrossCombinedSchemas.NonInterferenceAcrossCombinedSchemas1BoxedMap](#noninterferenceacrosscombinedschemas1boxedmap)
boxed class to store validated Map payloads | | static class | [NonInterferenceAcrossCombinedSchemas.NonInterferenceAcrossCombinedSchemas1](#noninterferenceacrosscombinedschemas1)
schema class | -| static class | [NonInterferenceAcrossCombinedSchemas.Schema2Boxed](#schema2boxed)
abstract sealed validated payload class | -| static class | [NonInterferenceAcrossCombinedSchemas.Schema2BoxedVoid](#schema2boxedvoid)
boxed class to store validated null payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.Schema2BoxedBoolean](#schema2boxedboolean)
boxed class to store validated boolean payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.Schema2BoxedNumber](#schema2boxednumber)
boxed class to store validated Number payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.Schema2BoxedString](#schema2boxedstring)
boxed class to store validated String payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.Schema2BoxedList](#schema2boxedlist)
boxed class to store validated List payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.Schema2BoxedMap](#schema2boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [NonInterferenceAcrossCombinedSchemas.Schema2Boxed](#schema2boxed)
sealed interface for validated payloads | +| record | [NonInterferenceAcrossCombinedSchemas.Schema2BoxedVoid](#schema2boxedvoid)
boxed class to store validated null payloads | +| record | [NonInterferenceAcrossCombinedSchemas.Schema2BoxedBoolean](#schema2boxedboolean)
boxed class to store validated boolean payloads | +| record | [NonInterferenceAcrossCombinedSchemas.Schema2BoxedNumber](#schema2boxednumber)
boxed class to store validated Number payloads | +| record | [NonInterferenceAcrossCombinedSchemas.Schema2BoxedString](#schema2boxedstring)
boxed class to store validated String payloads | +| record | [NonInterferenceAcrossCombinedSchemas.Schema2BoxedList](#schema2boxedlist)
boxed class to store validated List payloads | +| record | [NonInterferenceAcrossCombinedSchemas.Schema2BoxedMap](#schema2boxedmap)
boxed class to store validated Map payloads | | static class | [NonInterferenceAcrossCombinedSchemas.Schema2](#schema2)
schema class | -| static class | [NonInterferenceAcrossCombinedSchemas.ElseSchemaBoxed](#elseschemaboxed)
abstract sealed validated payload class | -| static class | [NonInterferenceAcrossCombinedSchemas.ElseSchemaBoxedVoid](#elseschemaboxedvoid)
boxed class to store validated null payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.ElseSchemaBoxedBoolean](#elseschemaboxedboolean)
boxed class to store validated boolean payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.ElseSchemaBoxedNumber](#elseschemaboxednumber)
boxed class to store validated Number payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.ElseSchemaBoxedString](#elseschemaboxedstring)
boxed class to store validated String payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.ElseSchemaBoxedList](#elseschemaboxedlist)
boxed class to store validated List payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.ElseSchemaBoxedMap](#elseschemaboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [NonInterferenceAcrossCombinedSchemas.ElseSchemaBoxed](#elseschemaboxed)
sealed interface for validated payloads | +| record | [NonInterferenceAcrossCombinedSchemas.ElseSchemaBoxedVoid](#elseschemaboxedvoid)
boxed class to store validated null payloads | +| record | [NonInterferenceAcrossCombinedSchemas.ElseSchemaBoxedBoolean](#elseschemaboxedboolean)
boxed class to store validated boolean payloads | +| record | [NonInterferenceAcrossCombinedSchemas.ElseSchemaBoxedNumber](#elseschemaboxednumber)
boxed class to store validated Number payloads | +| record | [NonInterferenceAcrossCombinedSchemas.ElseSchemaBoxedString](#elseschemaboxedstring)
boxed class to store validated String payloads | +| record | [NonInterferenceAcrossCombinedSchemas.ElseSchemaBoxedList](#elseschemaboxedlist)
boxed class to store validated List payloads | +| record | [NonInterferenceAcrossCombinedSchemas.ElseSchemaBoxedMap](#elseschemaboxedmap)
boxed class to store validated Map payloads | | static class | [NonInterferenceAcrossCombinedSchemas.ElseSchema](#elseschema)
schema class | -| static class | [NonInterferenceAcrossCombinedSchemas.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | -| static class | [NonInterferenceAcrossCombinedSchemas.Schema1BoxedVoid](#schema1boxedvoid)
boxed class to store validated null payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.Schema1BoxedBoolean](#schema1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.Schema1BoxedNumber](#schema1boxednumber)
boxed class to store validated Number payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.Schema1BoxedString](#schema1boxedstring)
boxed class to store validated String payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.Schema1BoxedList](#schema1boxedlist)
boxed class to store validated List payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [NonInterferenceAcrossCombinedSchemas.Schema1Boxed](#schema1boxed)
sealed interface for validated payloads | +| record | [NonInterferenceAcrossCombinedSchemas.Schema1BoxedVoid](#schema1boxedvoid)
boxed class to store validated null payloads | +| record | [NonInterferenceAcrossCombinedSchemas.Schema1BoxedBoolean](#schema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [NonInterferenceAcrossCombinedSchemas.Schema1BoxedNumber](#schema1boxednumber)
boxed class to store validated Number payloads | +| record | [NonInterferenceAcrossCombinedSchemas.Schema1BoxedString](#schema1boxedstring)
boxed class to store validated String payloads | +| record | [NonInterferenceAcrossCombinedSchemas.Schema1BoxedList](#schema1boxedlist)
boxed class to store validated List payloads | +| record | [NonInterferenceAcrossCombinedSchemas.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | | static class | [NonInterferenceAcrossCombinedSchemas.Schema1](#schema1)
schema class | -| static class | [NonInterferenceAcrossCombinedSchemas.ThenBoxed](#thenboxed)
abstract sealed validated payload class | -| static class | [NonInterferenceAcrossCombinedSchemas.ThenBoxedVoid](#thenboxedvoid)
boxed class to store validated null payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.ThenBoxedBoolean](#thenboxedboolean)
boxed class to store validated boolean payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.ThenBoxedNumber](#thenboxednumber)
boxed class to store validated Number payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.ThenBoxedString](#thenboxedstring)
boxed class to store validated String payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.ThenBoxedList](#thenboxedlist)
boxed class to store validated List payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.ThenBoxedMap](#thenboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [NonInterferenceAcrossCombinedSchemas.ThenBoxed](#thenboxed)
sealed interface for validated payloads | +| record | [NonInterferenceAcrossCombinedSchemas.ThenBoxedVoid](#thenboxedvoid)
boxed class to store validated null payloads | +| record | [NonInterferenceAcrossCombinedSchemas.ThenBoxedBoolean](#thenboxedboolean)
boxed class to store validated boolean payloads | +| record | [NonInterferenceAcrossCombinedSchemas.ThenBoxedNumber](#thenboxednumber)
boxed class to store validated Number payloads | +| record | [NonInterferenceAcrossCombinedSchemas.ThenBoxedString](#thenboxedstring)
boxed class to store validated String payloads | +| record | [NonInterferenceAcrossCombinedSchemas.ThenBoxedList](#thenboxedlist)
boxed class to store validated List payloads | +| record | [NonInterferenceAcrossCombinedSchemas.ThenBoxedMap](#thenboxedmap)
boxed class to store validated Map payloads | | static class | [NonInterferenceAcrossCombinedSchemas.Then](#then)
schema class | -| static class | [NonInterferenceAcrossCombinedSchemas.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | -| static class | [NonInterferenceAcrossCombinedSchemas.Schema0BoxedVoid](#schema0boxedvoid)
boxed class to store validated null payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.Schema0BoxedBoolean](#schema0boxedboolean)
boxed class to store validated boolean payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.Schema0BoxedNumber](#schema0boxednumber)
boxed class to store validated Number payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.Schema0BoxedString](#schema0boxedstring)
boxed class to store validated String payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.Schema0BoxedList](#schema0boxedlist)
boxed class to store validated List payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.Schema0BoxedMap](#schema0boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [NonInterferenceAcrossCombinedSchemas.Schema0Boxed](#schema0boxed)
sealed interface for validated payloads | +| record | [NonInterferenceAcrossCombinedSchemas.Schema0BoxedVoid](#schema0boxedvoid)
boxed class to store validated null payloads | +| record | [NonInterferenceAcrossCombinedSchemas.Schema0BoxedBoolean](#schema0boxedboolean)
boxed class to store validated boolean payloads | +| record | [NonInterferenceAcrossCombinedSchemas.Schema0BoxedNumber](#schema0boxednumber)
boxed class to store validated Number payloads | +| record | [NonInterferenceAcrossCombinedSchemas.Schema0BoxedString](#schema0boxedstring)
boxed class to store validated String payloads | +| record | [NonInterferenceAcrossCombinedSchemas.Schema0BoxedList](#schema0boxedlist)
boxed class to store validated List payloads | +| record | [NonInterferenceAcrossCombinedSchemas.Schema0BoxedMap](#schema0boxedmap)
boxed class to store validated Map payloads | | static class | [NonInterferenceAcrossCombinedSchemas.Schema0](#schema0)
schema class | -| static class | [NonInterferenceAcrossCombinedSchemas.IfSchemaBoxed](#ifschemaboxed)
abstract sealed validated payload class | -| static class | [NonInterferenceAcrossCombinedSchemas.IfSchemaBoxedVoid](#ifschemaboxedvoid)
boxed class to store validated null payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.IfSchemaBoxedBoolean](#ifschemaboxedboolean)
boxed class to store validated boolean payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.IfSchemaBoxedNumber](#ifschemaboxednumber)
boxed class to store validated Number payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.IfSchemaBoxedString](#ifschemaboxedstring)
boxed class to store validated String payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.IfSchemaBoxedList](#ifschemaboxedlist)
boxed class to store validated List payloads | -| static class | [NonInterferenceAcrossCombinedSchemas.IfSchemaBoxedMap](#ifschemaboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [NonInterferenceAcrossCombinedSchemas.IfSchemaBoxed](#ifschemaboxed)
sealed interface for validated payloads | +| record | [NonInterferenceAcrossCombinedSchemas.IfSchemaBoxedVoid](#ifschemaboxedvoid)
boxed class to store validated null payloads | +| record | [NonInterferenceAcrossCombinedSchemas.IfSchemaBoxedBoolean](#ifschemaboxedboolean)
boxed class to store validated boolean payloads | +| record | [NonInterferenceAcrossCombinedSchemas.IfSchemaBoxedNumber](#ifschemaboxednumber)
boxed class to store validated Number payloads | +| record | [NonInterferenceAcrossCombinedSchemas.IfSchemaBoxedString](#ifschemaboxedstring)
boxed class to store validated String payloads | +| record | [NonInterferenceAcrossCombinedSchemas.IfSchemaBoxedList](#ifschemaboxedlist)
boxed class to store validated List payloads | +| record | [NonInterferenceAcrossCombinedSchemas.IfSchemaBoxedMap](#ifschemaboxedmap)
boxed class to store validated Map payloads | | static class | [NonInterferenceAcrossCombinedSchemas.IfSchema](#ifschema)
schema class | ## NonInterferenceAcrossCombinedSchemas1Boxed -public static abstract sealed class NonInterferenceAcrossCombinedSchemas1Boxed
+public sealed interface NonInterferenceAcrossCombinedSchemas1Boxed
permits
[NonInterferenceAcrossCombinedSchemas1BoxedVoid](#noninterferenceacrosscombinedschemas1boxedvoid), [NonInterferenceAcrossCombinedSchemas1BoxedBoolean](#noninterferenceacrosscombinedschemas1boxedboolean), @@ -77,103 +77,109 @@ permits
[NonInterferenceAcrossCombinedSchemas1BoxedList](#noninterferenceacrosscombinedschemas1boxedlist), [NonInterferenceAcrossCombinedSchemas1BoxedMap](#noninterferenceacrosscombinedschemas1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## NonInterferenceAcrossCombinedSchemas1BoxedVoid -public static final class NonInterferenceAcrossCombinedSchemas1BoxedVoid
-extends [NonInterferenceAcrossCombinedSchemas1Boxed](#noninterferenceacrosscombinedschemas1boxed) +public record NonInterferenceAcrossCombinedSchemas1BoxedVoid
+implements [NonInterferenceAcrossCombinedSchemas1Boxed](#noninterferenceacrosscombinedschemas1boxed) -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 | | --------------------------- | | NonInterferenceAcrossCombinedSchemas1BoxedVoid(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 | ## NonInterferenceAcrossCombinedSchemas1BoxedBoolean -public static final class NonInterferenceAcrossCombinedSchemas1BoxedBoolean
-extends [NonInterferenceAcrossCombinedSchemas1Boxed](#noninterferenceacrosscombinedschemas1boxed) +public record NonInterferenceAcrossCombinedSchemas1BoxedBoolean
+implements [NonInterferenceAcrossCombinedSchemas1Boxed](#noninterferenceacrosscombinedschemas1boxed) -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 | | --------------------------- | | NonInterferenceAcrossCombinedSchemas1BoxedBoolean(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 | ## NonInterferenceAcrossCombinedSchemas1BoxedNumber -public static final class NonInterferenceAcrossCombinedSchemas1BoxedNumber
-extends [NonInterferenceAcrossCombinedSchemas1Boxed](#noninterferenceacrosscombinedschemas1boxed) +public record NonInterferenceAcrossCombinedSchemas1BoxedNumber
+implements [NonInterferenceAcrossCombinedSchemas1Boxed](#noninterferenceacrosscombinedschemas1boxed) -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 | | --------------------------- | | NonInterferenceAcrossCombinedSchemas1BoxedNumber(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 | ## NonInterferenceAcrossCombinedSchemas1BoxedString -public static final class NonInterferenceAcrossCombinedSchemas1BoxedString
-extends [NonInterferenceAcrossCombinedSchemas1Boxed](#noninterferenceacrosscombinedschemas1boxed) +public record NonInterferenceAcrossCombinedSchemas1BoxedString
+implements [NonInterferenceAcrossCombinedSchemas1Boxed](#noninterferenceacrosscombinedschemas1boxed) -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 | | --------------------------- | | NonInterferenceAcrossCombinedSchemas1BoxedString(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 | ## NonInterferenceAcrossCombinedSchemas1BoxedList -public static final class NonInterferenceAcrossCombinedSchemas1BoxedList
-extends [NonInterferenceAcrossCombinedSchemas1Boxed](#noninterferenceacrosscombinedschemas1boxed) +public record NonInterferenceAcrossCombinedSchemas1BoxedList
+implements [NonInterferenceAcrossCombinedSchemas1Boxed](#noninterferenceacrosscombinedschemas1boxed) -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 | | --------------------------- | | NonInterferenceAcrossCombinedSchemas1BoxedList(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 | ## NonInterferenceAcrossCombinedSchemas1BoxedMap -public static final class NonInterferenceAcrossCombinedSchemas1BoxedMap
-extends [NonInterferenceAcrossCombinedSchemas1Boxed](#noninterferenceacrosscombinedschemas1boxed) +public record NonInterferenceAcrossCombinedSchemas1BoxedMap
+implements [NonInterferenceAcrossCombinedSchemas1Boxed](#noninterferenceacrosscombinedschemas1boxed) -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 | | --------------------------- | | NonInterferenceAcrossCombinedSchemas1BoxedMap(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 | ## NonInterferenceAcrossCombinedSchemas1 public static class NonInterferenceAcrossCombinedSchemas1
@@ -205,9 +211,11 @@ A schema class that validates payloads | [NonInterferenceAcrossCombinedSchemas1BoxedBoolean](#noninterferenceacrosscombinedschemas1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [NonInterferenceAcrossCombinedSchemas1BoxedMap](#noninterferenceacrosscombinedschemas1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [NonInterferenceAcrossCombinedSchemas1BoxedList](#noninterferenceacrosscombinedschemas1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [NonInterferenceAcrossCombinedSchemas1Boxed](#noninterferenceacrosscombinedschemas1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## Schema2Boxed -public static abstract sealed class Schema2Boxed
+public sealed interface Schema2Boxed
permits
[Schema2BoxedVoid](#schema2boxedvoid), [Schema2BoxedBoolean](#schema2boxedboolean), @@ -216,103 +224,109 @@ permits
[Schema2BoxedList](#schema2boxedlist), [Schema2BoxedMap](#schema2boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema2BoxedVoid -public static final class Schema2BoxedVoid
-extends [Schema2Boxed](#schema2boxed) +public record Schema2BoxedVoid
+implements [Schema2Boxed](#schema2boxed) -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 | | --------------------------- | | Schema2BoxedVoid(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 | ## Schema2BoxedBoolean -public static final class Schema2BoxedBoolean
-extends [Schema2Boxed](#schema2boxed) +public record Schema2BoxedBoolean
+implements [Schema2Boxed](#schema2boxed) -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 | | --------------------------- | | Schema2BoxedBoolean(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 | ## Schema2BoxedNumber -public static final class Schema2BoxedNumber
-extends [Schema2Boxed](#schema2boxed) +public record Schema2BoxedNumber
+implements [Schema2Boxed](#schema2boxed) -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 | | --------------------------- | | Schema2BoxedNumber(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 | ## Schema2BoxedString -public static final class Schema2BoxedString
-extends [Schema2Boxed](#schema2boxed) +public record Schema2BoxedString
+implements [Schema2Boxed](#schema2boxed) -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 | | --------------------------- | | Schema2BoxedString(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 | ## Schema2BoxedList -public static final class Schema2BoxedList
-extends [Schema2Boxed](#schema2boxed) +public record Schema2BoxedList
+implements [Schema2Boxed](#schema2boxed) -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 | | --------------------------- | | Schema2BoxedList(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 | ## Schema2BoxedMap -public static final class Schema2BoxedMap
-extends [Schema2Boxed](#schema2boxed) +public record Schema2BoxedMap
+implements [Schema2Boxed](#schema2boxed) -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 | | --------------------------- | | Schema2BoxedMap(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 | ## Schema2 public static class Schema2
@@ -344,9 +358,11 @@ A schema class that validates payloads | [Schema2BoxedBoolean](#schema2boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [Schema2BoxedMap](#schema2boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [Schema2BoxedList](#schema2boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [Schema2Boxed](#schema2boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ElseSchemaBoxed -public static abstract sealed class ElseSchemaBoxed
+public sealed interface ElseSchemaBoxed
permits
[ElseSchemaBoxedVoid](#elseschemaboxedvoid), [ElseSchemaBoxedBoolean](#elseschemaboxedboolean), @@ -355,103 +371,109 @@ permits
[ElseSchemaBoxedList](#elseschemaboxedlist), [ElseSchemaBoxedMap](#elseschemaboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ElseSchemaBoxedVoid -public static final class ElseSchemaBoxedVoid
-extends [ElseSchemaBoxed](#elseschemaboxed) +public record ElseSchemaBoxedVoid
+implements [ElseSchemaBoxed](#elseschemaboxed) -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 | | --------------------------- | | ElseSchemaBoxedVoid(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 | ## ElseSchemaBoxedBoolean -public static final class ElseSchemaBoxedBoolean
-extends [ElseSchemaBoxed](#elseschemaboxed) +public record ElseSchemaBoxedBoolean
+implements [ElseSchemaBoxed](#elseschemaboxed) -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 | | --------------------------- | | ElseSchemaBoxedBoolean(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 | ## ElseSchemaBoxedNumber -public static final class ElseSchemaBoxedNumber
-extends [ElseSchemaBoxed](#elseschemaboxed) +public record ElseSchemaBoxedNumber
+implements [ElseSchemaBoxed](#elseschemaboxed) -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 | | --------------------------- | | ElseSchemaBoxedNumber(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 | ## ElseSchemaBoxedString -public static final class ElseSchemaBoxedString
-extends [ElseSchemaBoxed](#elseschemaboxed) +public record ElseSchemaBoxedString
+implements [ElseSchemaBoxed](#elseschemaboxed) -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 | | --------------------------- | | ElseSchemaBoxedString(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 | ## ElseSchemaBoxedList -public static final class ElseSchemaBoxedList
-extends [ElseSchemaBoxed](#elseschemaboxed) +public record ElseSchemaBoxedList
+implements [ElseSchemaBoxed](#elseschemaboxed) -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 | | --------------------------- | | ElseSchemaBoxedList(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 | ## ElseSchemaBoxedMap -public static final class ElseSchemaBoxedMap
-extends [ElseSchemaBoxed](#elseschemaboxed) +public record ElseSchemaBoxedMap
+implements [ElseSchemaBoxed](#elseschemaboxed) -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 | | --------------------------- | | ElseSchemaBoxedMap(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 | ## ElseSchema public static class ElseSchema
@@ -483,9 +505,11 @@ A schema class that validates payloads | [ElseSchemaBoxedBoolean](#elseschemaboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ElseSchemaBoxedMap](#elseschemaboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [ElseSchemaBoxedList](#elseschemaboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ElseSchemaBoxed](#elseschemaboxed) | 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), @@ -494,103 +518,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
@@ -622,9 +652,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) | + ## ThenBoxed -public static abstract sealed class ThenBoxed
+public sealed interface ThenBoxed
permits
[ThenBoxedVoid](#thenboxedvoid), [ThenBoxedBoolean](#thenboxedboolean), @@ -633,103 +665,109 @@ permits
[ThenBoxedList](#thenboxedlist), [ThenBoxedMap](#thenboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ThenBoxedVoid -public static final class ThenBoxedVoid
-extends [ThenBoxed](#thenboxed) +public record ThenBoxedVoid
+implements [ThenBoxed](#thenboxed) -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 | | --------------------------- | | ThenBoxedVoid(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 | ## ThenBoxedBoolean -public static final class ThenBoxedBoolean
-extends [ThenBoxed](#thenboxed) +public record ThenBoxedBoolean
+implements [ThenBoxed](#thenboxed) -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 | | --------------------------- | | ThenBoxedBoolean(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 | ## ThenBoxedNumber -public static final class ThenBoxedNumber
-extends [ThenBoxed](#thenboxed) +public record ThenBoxedNumber
+implements [ThenBoxed](#thenboxed) -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 | | --------------------------- | | ThenBoxedNumber(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 | ## ThenBoxedString -public static final class ThenBoxedString
-extends [ThenBoxed](#thenboxed) +public record ThenBoxedString
+implements [ThenBoxed](#thenboxed) -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 | | --------------------------- | | ThenBoxedString(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 | ## ThenBoxedList -public static final class ThenBoxedList
-extends [ThenBoxed](#thenboxed) +public record ThenBoxedList
+implements [ThenBoxed](#thenboxed) -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 | | --------------------------- | | ThenBoxedList(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 | ## ThenBoxedMap -public static final class ThenBoxedMap
-extends [ThenBoxed](#thenboxed) +public record ThenBoxedMap
+implements [ThenBoxed](#thenboxed) -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 | | --------------------------- | | ThenBoxedMap(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 | ## Then public static class Then
@@ -761,9 +799,11 @@ A schema class that validates payloads | [ThenBoxedBoolean](#thenboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ThenBoxedMap](#thenboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [ThenBoxedList](#thenboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ThenBoxed](#thenboxed) | 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), @@ -772,103 +812,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
@@ -900,9 +946,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) | + ## IfSchemaBoxed -public static abstract sealed class IfSchemaBoxed
+public sealed interface IfSchemaBoxed
permits
[IfSchemaBoxedVoid](#ifschemaboxedvoid), [IfSchemaBoxedBoolean](#ifschemaboxedboolean), @@ -911,103 +959,109 @@ permits
[IfSchemaBoxedList](#ifschemaboxedlist), [IfSchemaBoxedMap](#ifschemaboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## IfSchemaBoxedVoid -public static final class IfSchemaBoxedVoid
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedVoid
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedVoid(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 | ## IfSchemaBoxedBoolean -public static final class IfSchemaBoxedBoolean
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedBoolean
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedBoolean(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 | ## IfSchemaBoxedNumber -public static final class IfSchemaBoxedNumber
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedNumber
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedNumber(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 | ## IfSchemaBoxedString -public static final class IfSchemaBoxedString
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedString
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedString(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 | ## IfSchemaBoxedList -public static final class IfSchemaBoxedList
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedList
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedList(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 | ## IfSchemaBoxedMap -public static final class IfSchemaBoxedMap
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedMap
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedMap(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 | ## IfSchema public static class IfSchema
@@ -1039,5 +1093,7 @@ A schema class that validates payloads | [IfSchemaBoxedBoolean](#ifschemaboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [IfSchemaBoxedMap](#ifschemaboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [IfSchemaBoxedList](#ifschemaboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [IfSchemaBoxed](#ifschemaboxed) | 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_1_0_unit_test/java/docs/components/schemas/Not.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/Not.md index e5bf572f8bd..8358d5d2f6e 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/Not.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/NotMoreComplexSchema.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/NotMoreComplexSchema.md index 3e0871f1245..3b1f33fa85c 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/NotMoreComplexSchema.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/NotMoreComplexSchema.md @@ -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_1_0_unit_test/java/docs/components/schemas/NotMultipleTypes.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/NotMultipleTypes.md index d0b048168c4..404817cf298 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/NotMultipleTypes.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/NotMultipleTypes.md @@ -4,27 +4,27 @@ public class NotMultipleTypes
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 | [NotMultipleTypes.NotMultipleTypes1Boxed](#notmultipletypes1boxed)
abstract sealed validated payload class | -| static class | [NotMultipleTypes.NotMultipleTypes1BoxedVoid](#notmultipletypes1boxedvoid)
boxed class to store validated null payloads | -| static class | [NotMultipleTypes.NotMultipleTypes1BoxedBoolean](#notmultipletypes1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [NotMultipleTypes.NotMultipleTypes1BoxedNumber](#notmultipletypes1boxednumber)
boxed class to store validated Number payloads | -| static class | [NotMultipleTypes.NotMultipleTypes1BoxedString](#notmultipletypes1boxedstring)
boxed class to store validated String payloads | -| static class | [NotMultipleTypes.NotMultipleTypes1BoxedList](#notmultipletypes1boxedlist)
boxed class to store validated List payloads | -| static class | [NotMultipleTypes.NotMultipleTypes1BoxedMap](#notmultipletypes1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [NotMultipleTypes.NotMultipleTypes1Boxed](#notmultipletypes1boxed)
sealed interface for validated payloads | +| record | [NotMultipleTypes.NotMultipleTypes1BoxedVoid](#notmultipletypes1boxedvoid)
boxed class to store validated null payloads | +| record | [NotMultipleTypes.NotMultipleTypes1BoxedBoolean](#notmultipletypes1boxedboolean)
boxed class to store validated boolean payloads | +| record | [NotMultipleTypes.NotMultipleTypes1BoxedNumber](#notmultipletypes1boxednumber)
boxed class to store validated Number payloads | +| record | [NotMultipleTypes.NotMultipleTypes1BoxedString](#notmultipletypes1boxedstring)
boxed class to store validated String payloads | +| record | [NotMultipleTypes.NotMultipleTypes1BoxedList](#notmultipletypes1boxedlist)
boxed class to store validated List payloads | +| record | [NotMultipleTypes.NotMultipleTypes1BoxedMap](#notmultipletypes1boxedmap)
boxed class to store validated Map payloads | | static class | [NotMultipleTypes.NotMultipleTypes1](#notmultipletypes1)
schema class | -| static class | [NotMultipleTypes.NotBoxed](#notboxed)
abstract sealed validated payload class | -| static class | [NotMultipleTypes.NotBoxedNumber](#notboxednumber)
boxed class to store validated Number payloads | -| static class | [NotMultipleTypes.NotBoxedBoolean](#notboxedboolean)
boxed class to store validated boolean payloads | +| sealed interface | [NotMultipleTypes.NotBoxed](#notboxed)
sealed interface for validated payloads | +| record | [NotMultipleTypes.NotBoxedNumber](#notboxednumber)
boxed class to store validated Number payloads | +| record | [NotMultipleTypes.NotBoxedBoolean](#notboxedboolean)
boxed class to store validated boolean payloads | | static class | [NotMultipleTypes.Not](#not)
schema class | ## NotMultipleTypes1Boxed -public static abstract sealed class NotMultipleTypes1Boxed
+public sealed interface NotMultipleTypes1Boxed
permits
[NotMultipleTypes1BoxedVoid](#notmultipletypes1boxedvoid), [NotMultipleTypes1BoxedBoolean](#notmultipletypes1boxedboolean), @@ -33,103 +33,109 @@ permits
[NotMultipleTypes1BoxedList](#notmultipletypes1boxedlist), [NotMultipleTypes1BoxedMap](#notmultipletypes1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## NotMultipleTypes1BoxedVoid -public static final class NotMultipleTypes1BoxedVoid
-extends [NotMultipleTypes1Boxed](#notmultipletypes1boxed) +public record NotMultipleTypes1BoxedVoid
+implements [NotMultipleTypes1Boxed](#notmultipletypes1boxed) -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 | | --------------------------- | | NotMultipleTypes1BoxedVoid(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 | ## NotMultipleTypes1BoxedBoolean -public static final class NotMultipleTypes1BoxedBoolean
-extends [NotMultipleTypes1Boxed](#notmultipletypes1boxed) +public record NotMultipleTypes1BoxedBoolean
+implements [NotMultipleTypes1Boxed](#notmultipletypes1boxed) -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 | | --------------------------- | | NotMultipleTypes1BoxedBoolean(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 | ## NotMultipleTypes1BoxedNumber -public static final class NotMultipleTypes1BoxedNumber
-extends [NotMultipleTypes1Boxed](#notmultipletypes1boxed) +public record NotMultipleTypes1BoxedNumber
+implements [NotMultipleTypes1Boxed](#notmultipletypes1boxed) -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 | | --------------------------- | | NotMultipleTypes1BoxedNumber(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 | ## NotMultipleTypes1BoxedString -public static final class NotMultipleTypes1BoxedString
-extends [NotMultipleTypes1Boxed](#notmultipletypes1boxed) +public record NotMultipleTypes1BoxedString
+implements [NotMultipleTypes1Boxed](#notmultipletypes1boxed) -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 | | --------------------------- | | NotMultipleTypes1BoxedString(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 | ## NotMultipleTypes1BoxedList -public static final class NotMultipleTypes1BoxedList
-extends [NotMultipleTypes1Boxed](#notmultipletypes1boxed) +public record NotMultipleTypes1BoxedList
+implements [NotMultipleTypes1Boxed](#notmultipletypes1boxed) -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 | | --------------------------- | | NotMultipleTypes1BoxedList(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 | ## NotMultipleTypes1BoxedMap -public static final class NotMultipleTypes1BoxedMap
-extends [NotMultipleTypes1Boxed](#notmultipletypes1boxed) +public record NotMultipleTypes1BoxedMap
+implements [NotMultipleTypes1Boxed](#notmultipletypes1boxed) -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 | | --------------------------- | | NotMultipleTypes1BoxedMap(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 | ## NotMultipleTypes1 public static class NotMultipleTypes1
@@ -161,46 +167,50 @@ A schema class that validates payloads | [NotMultipleTypes1BoxedBoolean](#notmultipletypes1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [NotMultipleTypes1BoxedMap](#notmultipletypes1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [NotMultipleTypes1BoxedList](#notmultipletypes1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [NotMultipleTypes1Boxed](#notmultipletypes1boxed) | 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
[NotBoxedNumber](#notboxednumber), [NotBoxedBoolean](#notboxedboolean) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## NotBoxedNumber -public static final class NotBoxedNumber
-extends [NotBoxed](#notboxed) +public record NotBoxedNumber
+implements [NotBoxed](#notboxed) -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 | | --------------------------- | | NotBoxedNumber(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 | ## NotBoxedBoolean -public static final class NotBoxedBoolean
-extends [NotBoxed](#notboxed) +public record NotBoxedBoolean
+implements [NotBoxed](#notboxed) -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 | | --------------------------- | | NotBoxedBoolean(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 | ## Not public static class Not
@@ -249,5 +259,7 @@ boolean validatedPayload = NotMultipleTypes.Not.validate( | [NotBoxedNumber](#notboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | | boolean | validate(boolean arg, SchemaConfiguration configuration) | | [NotBoxedBoolean](#notboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | +| [NotBoxed](#notboxed) | 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_1_0_unit_test/java/docs/components/schemas/NulCharactersInStrings.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/NulCharactersInStrings.md index eb1cfff98ed..78007c6f372 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/NulCharactersInStrings.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/NulCharactersInStrings.md @@ -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_1_0_unit_test/java/docs/components/schemas/NullTypeMatchesOnlyTheNullObject.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/NullTypeMatchesOnlyTheNullObject.md index ac85cb6749c..a7bf060e212 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/NullTypeMatchesOnlyTheNullObject.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/NumberTypeMatchesNumbers.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/NumberTypeMatchesNumbers.md index d668c33c2de..76a1b65da1a 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/NumberTypeMatchesNumbers.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/ObjectPropertiesValidation.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/ObjectPropertiesValidation.md index caba7bd3cae..2427b5219d5 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/ObjectPropertiesValidation.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/ObjectTypeMatchesObjects.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/ObjectTypeMatchesObjects.md index 1e9b8c9a96d..f169645577b 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/ObjectTypeMatchesObjects.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/Oneof.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/Oneof.md index 2b209414821..f4c0b682e27 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/Oneof.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/OneofComplexTypes.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/OneofComplexTypes.md index 5c4ed6bcf33..182a53d6956 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/OneofComplexTypes.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/OneofWithBaseSchema.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/OneofWithBaseSchema.md index f122b9e0462..176ea9e3a54 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/OneofWithBaseSchema.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/OneofWithBaseSchema.md @@ -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_1_0_unit_test/java/docs/components/schemas/OneofWithEmptySchema.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/OneofWithEmptySchema.md index 9129b14859b..a3b4f2933cb 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/OneofWithEmptySchema.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/OneofWithRequired.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/OneofWithRequired.md index 78f1deb2646..b5daaad8023 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/OneofWithRequired.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/PatternIsNotAnchored.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/PatternIsNotAnchored.md index 09b6b5b6cc3..15a76dd0a5d 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/PatternIsNotAnchored.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/PatternValidation.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/PatternValidation.md index 7a47b6b1945..ddec1547b2a 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/PatternValidation.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/PatternpropertiesValidatesPropertiesMatchingARegex.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/PatternpropertiesValidatesPropertiesMatchingARegex.md index b41d5247f74..837555c8491 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/PatternpropertiesValidatesPropertiesMatchingARegex.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/PatternpropertiesValidatesPropertiesMatchingARegex.md @@ -4,26 +4,26 @@ public class PatternpropertiesValidatesPropertiesMatchingARegex
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 | [PatternpropertiesValidatesPropertiesMatchingARegex.PatternpropertiesValidatesPropertiesMatchingARegex1Boxed](#patternpropertiesvalidatespropertiesmatchingaregex1boxed)
abstract sealed validated payload class | -| static class | [PatternpropertiesValidatesPropertiesMatchingARegex.PatternpropertiesValidatesPropertiesMatchingARegex1BoxedVoid](#patternpropertiesvalidatespropertiesmatchingaregex1boxedvoid)
boxed class to store validated null payloads | -| static class | [PatternpropertiesValidatesPropertiesMatchingARegex.PatternpropertiesValidatesPropertiesMatchingARegex1BoxedBoolean](#patternpropertiesvalidatespropertiesmatchingaregex1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [PatternpropertiesValidatesPropertiesMatchingARegex.PatternpropertiesValidatesPropertiesMatchingARegex1BoxedNumber](#patternpropertiesvalidatespropertiesmatchingaregex1boxednumber)
boxed class to store validated Number payloads | -| static class | [PatternpropertiesValidatesPropertiesMatchingARegex.PatternpropertiesValidatesPropertiesMatchingARegex1BoxedString](#patternpropertiesvalidatespropertiesmatchingaregex1boxedstring)
boxed class to store validated String payloads | -| static class | [PatternpropertiesValidatesPropertiesMatchingARegex.PatternpropertiesValidatesPropertiesMatchingARegex1BoxedList](#patternpropertiesvalidatespropertiesmatchingaregex1boxedlist)
boxed class to store validated List payloads | -| static class | [PatternpropertiesValidatesPropertiesMatchingARegex.PatternpropertiesValidatesPropertiesMatchingARegex1BoxedMap](#patternpropertiesvalidatespropertiesmatchingaregex1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [PatternpropertiesValidatesPropertiesMatchingARegex.PatternpropertiesValidatesPropertiesMatchingARegex1Boxed](#patternpropertiesvalidatespropertiesmatchingaregex1boxed)
sealed interface for validated payloads | +| record | [PatternpropertiesValidatesPropertiesMatchingARegex.PatternpropertiesValidatesPropertiesMatchingARegex1BoxedVoid](#patternpropertiesvalidatespropertiesmatchingaregex1boxedvoid)
boxed class to store validated null payloads | +| record | [PatternpropertiesValidatesPropertiesMatchingARegex.PatternpropertiesValidatesPropertiesMatchingARegex1BoxedBoolean](#patternpropertiesvalidatespropertiesmatchingaregex1boxedboolean)
boxed class to store validated boolean payloads | +| record | [PatternpropertiesValidatesPropertiesMatchingARegex.PatternpropertiesValidatesPropertiesMatchingARegex1BoxedNumber](#patternpropertiesvalidatespropertiesmatchingaregex1boxednumber)
boxed class to store validated Number payloads | +| record | [PatternpropertiesValidatesPropertiesMatchingARegex.PatternpropertiesValidatesPropertiesMatchingARegex1BoxedString](#patternpropertiesvalidatespropertiesmatchingaregex1boxedstring)
boxed class to store validated String payloads | +| record | [PatternpropertiesValidatesPropertiesMatchingARegex.PatternpropertiesValidatesPropertiesMatchingARegex1BoxedList](#patternpropertiesvalidatespropertiesmatchingaregex1boxedlist)
boxed class to store validated List payloads | +| record | [PatternpropertiesValidatesPropertiesMatchingARegex.PatternpropertiesValidatesPropertiesMatchingARegex1BoxedMap](#patternpropertiesvalidatespropertiesmatchingaregex1boxedmap)
boxed class to store validated Map payloads | | static class | [PatternpropertiesValidatesPropertiesMatchingARegex.PatternpropertiesValidatesPropertiesMatchingARegex1](#patternpropertiesvalidatespropertiesmatchingaregex1)
schema class | -| static class | [PatternpropertiesValidatesPropertiesMatchingARegex.FoBoxed](#foboxed)
abstract sealed validated payload class | -| static class | [PatternpropertiesValidatesPropertiesMatchingARegex.FoBoxedNumber](#foboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [PatternpropertiesValidatesPropertiesMatchingARegex.FoBoxed](#foboxed)
sealed interface for validated payloads | +| record | [PatternpropertiesValidatesPropertiesMatchingARegex.FoBoxedNumber](#foboxednumber)
boxed class to store validated Number payloads | | static class | [PatternpropertiesValidatesPropertiesMatchingARegex.Fo](#fo)
schema class | ## PatternpropertiesValidatesPropertiesMatchingARegex1Boxed -public static abstract sealed class PatternpropertiesValidatesPropertiesMatchingARegex1Boxed
+public sealed interface PatternpropertiesValidatesPropertiesMatchingARegex1Boxed
permits
[PatternpropertiesValidatesPropertiesMatchingARegex1BoxedVoid](#patternpropertiesvalidatespropertiesmatchingaregex1boxedvoid), [PatternpropertiesValidatesPropertiesMatchingARegex1BoxedBoolean](#patternpropertiesvalidatespropertiesmatchingaregex1boxedboolean), @@ -32,103 +32,109 @@ permits
[PatternpropertiesValidatesPropertiesMatchingARegex1BoxedList](#patternpropertiesvalidatespropertiesmatchingaregex1boxedlist), [PatternpropertiesValidatesPropertiesMatchingARegex1BoxedMap](#patternpropertiesvalidatespropertiesmatchingaregex1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## PatternpropertiesValidatesPropertiesMatchingARegex1BoxedVoid -public static final class PatternpropertiesValidatesPropertiesMatchingARegex1BoxedVoid
-extends [PatternpropertiesValidatesPropertiesMatchingARegex1Boxed](#patternpropertiesvalidatespropertiesmatchingaregex1boxed) +public record PatternpropertiesValidatesPropertiesMatchingARegex1BoxedVoid
+implements [PatternpropertiesValidatesPropertiesMatchingARegex1Boxed](#patternpropertiesvalidatespropertiesmatchingaregex1boxed) -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 | | --------------------------- | | PatternpropertiesValidatesPropertiesMatchingARegex1BoxedVoid(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 | ## PatternpropertiesValidatesPropertiesMatchingARegex1BoxedBoolean -public static final class PatternpropertiesValidatesPropertiesMatchingARegex1BoxedBoolean
-extends [PatternpropertiesValidatesPropertiesMatchingARegex1Boxed](#patternpropertiesvalidatespropertiesmatchingaregex1boxed) +public record PatternpropertiesValidatesPropertiesMatchingARegex1BoxedBoolean
+implements [PatternpropertiesValidatesPropertiesMatchingARegex1Boxed](#patternpropertiesvalidatespropertiesmatchingaregex1boxed) -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 | | --------------------------- | | PatternpropertiesValidatesPropertiesMatchingARegex1BoxedBoolean(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 | ## PatternpropertiesValidatesPropertiesMatchingARegex1BoxedNumber -public static final class PatternpropertiesValidatesPropertiesMatchingARegex1BoxedNumber
-extends [PatternpropertiesValidatesPropertiesMatchingARegex1Boxed](#patternpropertiesvalidatespropertiesmatchingaregex1boxed) +public record PatternpropertiesValidatesPropertiesMatchingARegex1BoxedNumber
+implements [PatternpropertiesValidatesPropertiesMatchingARegex1Boxed](#patternpropertiesvalidatespropertiesmatchingaregex1boxed) -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 | | --------------------------- | | PatternpropertiesValidatesPropertiesMatchingARegex1BoxedNumber(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 | ## PatternpropertiesValidatesPropertiesMatchingARegex1BoxedString -public static final class PatternpropertiesValidatesPropertiesMatchingARegex1BoxedString
-extends [PatternpropertiesValidatesPropertiesMatchingARegex1Boxed](#patternpropertiesvalidatespropertiesmatchingaregex1boxed) +public record PatternpropertiesValidatesPropertiesMatchingARegex1BoxedString
+implements [PatternpropertiesValidatesPropertiesMatchingARegex1Boxed](#patternpropertiesvalidatespropertiesmatchingaregex1boxed) -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 | | --------------------------- | | PatternpropertiesValidatesPropertiesMatchingARegex1BoxedString(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 | ## PatternpropertiesValidatesPropertiesMatchingARegex1BoxedList -public static final class PatternpropertiesValidatesPropertiesMatchingARegex1BoxedList
-extends [PatternpropertiesValidatesPropertiesMatchingARegex1Boxed](#patternpropertiesvalidatespropertiesmatchingaregex1boxed) +public record PatternpropertiesValidatesPropertiesMatchingARegex1BoxedList
+implements [PatternpropertiesValidatesPropertiesMatchingARegex1Boxed](#patternpropertiesvalidatespropertiesmatchingaregex1boxed) -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 | | --------------------------- | | PatternpropertiesValidatesPropertiesMatchingARegex1BoxedList(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 | ## PatternpropertiesValidatesPropertiesMatchingARegex1BoxedMap -public static final class PatternpropertiesValidatesPropertiesMatchingARegex1BoxedMap
-extends [PatternpropertiesValidatesPropertiesMatchingARegex1Boxed](#patternpropertiesvalidatespropertiesmatchingaregex1boxed) +public record PatternpropertiesValidatesPropertiesMatchingARegex1BoxedMap
+implements [PatternpropertiesValidatesPropertiesMatchingARegex1Boxed](#patternpropertiesvalidatespropertiesmatchingaregex1boxed) -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 | | --------------------------- | | PatternpropertiesValidatesPropertiesMatchingARegex1BoxedMap(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 | ## PatternpropertiesValidatesPropertiesMatchingARegex1 public static class PatternpropertiesValidatesPropertiesMatchingARegex1
@@ -160,29 +166,32 @@ A schema class that validates payloads | [PatternpropertiesValidatesPropertiesMatchingARegex1BoxedBoolean](#patternpropertiesvalidatespropertiesmatchingaregex1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [PatternpropertiesValidatesPropertiesMatchingARegex1BoxedMap](#patternpropertiesvalidatespropertiesmatchingaregex1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [PatternpropertiesValidatesPropertiesMatchingARegex1BoxedList](#patternpropertiesvalidatespropertiesmatchingaregex1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [PatternpropertiesValidatesPropertiesMatchingARegex1Boxed](#patternpropertiesvalidatespropertiesmatchingaregex1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## FoBoxed -public static abstract sealed class FoBoxed
+public sealed interface FoBoxed
permits
[FoBoxedNumber](#foboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## FoBoxedNumber -public static final class FoBoxedNumber
-extends [FoBoxed](#foboxed) +public record FoBoxedNumber
+implements [FoBoxed](#foboxed) -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 | | --------------------------- | | FoBoxedNumber(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 | ## Fo public static class Fo
diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/PatternpropertiesWithNullValuedInstanceProperties.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/PatternpropertiesWithNullValuedInstanceProperties.md index 36c4b753aaf..74e030b224e 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/PatternpropertiesWithNullValuedInstanceProperties.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/PatternpropertiesWithNullValuedInstanceProperties.md @@ -4,26 +4,26 @@ public class PatternpropertiesWithNullValuedInstanceProperties
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 | [PatternpropertiesWithNullValuedInstanceProperties.PatternpropertiesWithNullValuedInstanceProperties1Boxed](#patternpropertieswithnullvaluedinstanceproperties1boxed)
abstract sealed validated payload class | -| static class | [PatternpropertiesWithNullValuedInstanceProperties.PatternpropertiesWithNullValuedInstanceProperties1BoxedVoid](#patternpropertieswithnullvaluedinstanceproperties1boxedvoid)
boxed class to store validated null payloads | -| static class | [PatternpropertiesWithNullValuedInstanceProperties.PatternpropertiesWithNullValuedInstanceProperties1BoxedBoolean](#patternpropertieswithnullvaluedinstanceproperties1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [PatternpropertiesWithNullValuedInstanceProperties.PatternpropertiesWithNullValuedInstanceProperties1BoxedNumber](#patternpropertieswithnullvaluedinstanceproperties1boxednumber)
boxed class to store validated Number payloads | -| static class | [PatternpropertiesWithNullValuedInstanceProperties.PatternpropertiesWithNullValuedInstanceProperties1BoxedString](#patternpropertieswithnullvaluedinstanceproperties1boxedstring)
boxed class to store validated String payloads | -| static class | [PatternpropertiesWithNullValuedInstanceProperties.PatternpropertiesWithNullValuedInstanceProperties1BoxedList](#patternpropertieswithnullvaluedinstanceproperties1boxedlist)
boxed class to store validated List payloads | -| static class | [PatternpropertiesWithNullValuedInstanceProperties.PatternpropertiesWithNullValuedInstanceProperties1BoxedMap](#patternpropertieswithnullvaluedinstanceproperties1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [PatternpropertiesWithNullValuedInstanceProperties.PatternpropertiesWithNullValuedInstanceProperties1Boxed](#patternpropertieswithnullvaluedinstanceproperties1boxed)
sealed interface for validated payloads | +| record | [PatternpropertiesWithNullValuedInstanceProperties.PatternpropertiesWithNullValuedInstanceProperties1BoxedVoid](#patternpropertieswithnullvaluedinstanceproperties1boxedvoid)
boxed class to store validated null payloads | +| record | [PatternpropertiesWithNullValuedInstanceProperties.PatternpropertiesWithNullValuedInstanceProperties1BoxedBoolean](#patternpropertieswithnullvaluedinstanceproperties1boxedboolean)
boxed class to store validated boolean payloads | +| record | [PatternpropertiesWithNullValuedInstanceProperties.PatternpropertiesWithNullValuedInstanceProperties1BoxedNumber](#patternpropertieswithnullvaluedinstanceproperties1boxednumber)
boxed class to store validated Number payloads | +| record | [PatternpropertiesWithNullValuedInstanceProperties.PatternpropertiesWithNullValuedInstanceProperties1BoxedString](#patternpropertieswithnullvaluedinstanceproperties1boxedstring)
boxed class to store validated String payloads | +| record | [PatternpropertiesWithNullValuedInstanceProperties.PatternpropertiesWithNullValuedInstanceProperties1BoxedList](#patternpropertieswithnullvaluedinstanceproperties1boxedlist)
boxed class to store validated List payloads | +| record | [PatternpropertiesWithNullValuedInstanceProperties.PatternpropertiesWithNullValuedInstanceProperties1BoxedMap](#patternpropertieswithnullvaluedinstanceproperties1boxedmap)
boxed class to store validated Map payloads | | static class | [PatternpropertiesWithNullValuedInstanceProperties.PatternpropertiesWithNullValuedInstanceProperties1](#patternpropertieswithnullvaluedinstanceproperties1)
schema class | -| static class | [PatternpropertiesWithNullValuedInstanceProperties.BarBoxed](#barboxed)
abstract sealed validated payload class | -| static class | [PatternpropertiesWithNullValuedInstanceProperties.BarBoxedVoid](#barboxedvoid)
boxed class to store validated null payloads | +| sealed interface | [PatternpropertiesWithNullValuedInstanceProperties.BarBoxed](#barboxed)
sealed interface for validated payloads | +| record | [PatternpropertiesWithNullValuedInstanceProperties.BarBoxedVoid](#barboxedvoid)
boxed class to store validated null payloads | | static class | [PatternpropertiesWithNullValuedInstanceProperties.Bar](#bar)
schema class | ## PatternpropertiesWithNullValuedInstanceProperties1Boxed -public static abstract sealed class PatternpropertiesWithNullValuedInstanceProperties1Boxed
+public sealed interface PatternpropertiesWithNullValuedInstanceProperties1Boxed
permits
[PatternpropertiesWithNullValuedInstanceProperties1BoxedVoid](#patternpropertieswithnullvaluedinstanceproperties1boxedvoid), [PatternpropertiesWithNullValuedInstanceProperties1BoxedBoolean](#patternpropertieswithnullvaluedinstanceproperties1boxedboolean), @@ -32,103 +32,109 @@ permits
[PatternpropertiesWithNullValuedInstanceProperties1BoxedList](#patternpropertieswithnullvaluedinstanceproperties1boxedlist), [PatternpropertiesWithNullValuedInstanceProperties1BoxedMap](#patternpropertieswithnullvaluedinstanceproperties1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## PatternpropertiesWithNullValuedInstanceProperties1BoxedVoid -public static final class PatternpropertiesWithNullValuedInstanceProperties1BoxedVoid
-extends [PatternpropertiesWithNullValuedInstanceProperties1Boxed](#patternpropertieswithnullvaluedinstanceproperties1boxed) +public record PatternpropertiesWithNullValuedInstanceProperties1BoxedVoid
+implements [PatternpropertiesWithNullValuedInstanceProperties1Boxed](#patternpropertieswithnullvaluedinstanceproperties1boxed) -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 | | --------------------------- | | PatternpropertiesWithNullValuedInstanceProperties1BoxedVoid(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 | ## PatternpropertiesWithNullValuedInstanceProperties1BoxedBoolean -public static final class PatternpropertiesWithNullValuedInstanceProperties1BoxedBoolean
-extends [PatternpropertiesWithNullValuedInstanceProperties1Boxed](#patternpropertieswithnullvaluedinstanceproperties1boxed) +public record PatternpropertiesWithNullValuedInstanceProperties1BoxedBoolean
+implements [PatternpropertiesWithNullValuedInstanceProperties1Boxed](#patternpropertieswithnullvaluedinstanceproperties1boxed) -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 | | --------------------------- | | PatternpropertiesWithNullValuedInstanceProperties1BoxedBoolean(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 | ## PatternpropertiesWithNullValuedInstanceProperties1BoxedNumber -public static final class PatternpropertiesWithNullValuedInstanceProperties1BoxedNumber
-extends [PatternpropertiesWithNullValuedInstanceProperties1Boxed](#patternpropertieswithnullvaluedinstanceproperties1boxed) +public record PatternpropertiesWithNullValuedInstanceProperties1BoxedNumber
+implements [PatternpropertiesWithNullValuedInstanceProperties1Boxed](#patternpropertieswithnullvaluedinstanceproperties1boxed) -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 | | --------------------------- | | PatternpropertiesWithNullValuedInstanceProperties1BoxedNumber(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 | ## PatternpropertiesWithNullValuedInstanceProperties1BoxedString -public static final class PatternpropertiesWithNullValuedInstanceProperties1BoxedString
-extends [PatternpropertiesWithNullValuedInstanceProperties1Boxed](#patternpropertieswithnullvaluedinstanceproperties1boxed) +public record PatternpropertiesWithNullValuedInstanceProperties1BoxedString
+implements [PatternpropertiesWithNullValuedInstanceProperties1Boxed](#patternpropertieswithnullvaluedinstanceproperties1boxed) -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 | | --------------------------- | | PatternpropertiesWithNullValuedInstanceProperties1BoxedString(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 | ## PatternpropertiesWithNullValuedInstanceProperties1BoxedList -public static final class PatternpropertiesWithNullValuedInstanceProperties1BoxedList
-extends [PatternpropertiesWithNullValuedInstanceProperties1Boxed](#patternpropertieswithnullvaluedinstanceproperties1boxed) +public record PatternpropertiesWithNullValuedInstanceProperties1BoxedList
+implements [PatternpropertiesWithNullValuedInstanceProperties1Boxed](#patternpropertieswithnullvaluedinstanceproperties1boxed) -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 | | --------------------------- | | PatternpropertiesWithNullValuedInstanceProperties1BoxedList(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 | ## PatternpropertiesWithNullValuedInstanceProperties1BoxedMap -public static final class PatternpropertiesWithNullValuedInstanceProperties1BoxedMap
-extends [PatternpropertiesWithNullValuedInstanceProperties1Boxed](#patternpropertieswithnullvaluedinstanceproperties1boxed) +public record PatternpropertiesWithNullValuedInstanceProperties1BoxedMap
+implements [PatternpropertiesWithNullValuedInstanceProperties1Boxed](#patternpropertieswithnullvaluedinstanceproperties1boxed) -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 | | --------------------------- | | PatternpropertiesWithNullValuedInstanceProperties1BoxedMap(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 | ## PatternpropertiesWithNullValuedInstanceProperties1 public static class PatternpropertiesWithNullValuedInstanceProperties1
@@ -160,29 +166,32 @@ A schema class that validates payloads | [PatternpropertiesWithNullValuedInstanceProperties1BoxedBoolean](#patternpropertieswithnullvaluedinstanceproperties1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [PatternpropertiesWithNullValuedInstanceProperties1BoxedMap](#patternpropertieswithnullvaluedinstanceproperties1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [PatternpropertiesWithNullValuedInstanceProperties1BoxedList](#patternpropertieswithnullvaluedinstanceproperties1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [PatternpropertiesWithNullValuedInstanceProperties1Boxed](#patternpropertieswithnullvaluedinstanceproperties1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## BarBoxed -public static abstract sealed class BarBoxed
+public sealed interface BarBoxed
permits
[BarBoxedVoid](#barboxedvoid) -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 | ## Bar public static class Bar
diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/PrefixitemsValidationAdjustsTheStartingIndexForItems.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/PrefixitemsValidationAdjustsTheStartingIndexForItems.md index 7adfcfecbf2..1b15dd3fca0 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/PrefixitemsValidationAdjustsTheStartingIndexForItems.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/PrefixitemsValidationAdjustsTheStartingIndexForItems.md @@ -4,7 +4,7 @@ public class PrefixitemsValidationAdjustsTheStartingIndexForItems
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,40 +12,41 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [PrefixitemsValidationAdjustsTheStartingIndexForItems.PrefixitemsValidationAdjustsTheStartingIndexForItems1Boxed](#prefixitemsvalidationadjuststhestartingindexforitems1boxed)
abstract sealed validated payload class | -| static class | [PrefixitemsValidationAdjustsTheStartingIndexForItems.PrefixitemsValidationAdjustsTheStartingIndexForItems1BoxedList](#prefixitemsvalidationadjuststhestartingindexforitems1boxedlist)
boxed class to store validated List payloads | +| sealed interface | [PrefixitemsValidationAdjustsTheStartingIndexForItems.PrefixitemsValidationAdjustsTheStartingIndexForItems1Boxed](#prefixitemsvalidationadjuststhestartingindexforitems1boxed)
sealed interface for validated payloads | +| record | [PrefixitemsValidationAdjustsTheStartingIndexForItems.PrefixitemsValidationAdjustsTheStartingIndexForItems1BoxedList](#prefixitemsvalidationadjuststhestartingindexforitems1boxedlist)
boxed class to store validated List payloads | | static class | [PrefixitemsValidationAdjustsTheStartingIndexForItems.PrefixitemsValidationAdjustsTheStartingIndexForItems1](#prefixitemsvalidationadjuststhestartingindexforitems1)
schema class | -| static class | [PrefixitemsValidationAdjustsTheStartingIndexForItems.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | -| static class | [PrefixitemsValidationAdjustsTheStartingIndexForItems.Schema0BoxedString](#schema0boxedstring)
boxed class to store validated String payloads | +| sealed interface | [PrefixitemsValidationAdjustsTheStartingIndexForItems.Schema0Boxed](#schema0boxed)
sealed interface for validated payloads | +| record | [PrefixitemsValidationAdjustsTheStartingIndexForItems.Schema0BoxedString](#schema0boxedstring)
boxed class to store validated String payloads | | static class | [PrefixitemsValidationAdjustsTheStartingIndexForItems.Schema0](#schema0)
schema class | | static class | [PrefixitemsValidationAdjustsTheStartingIndexForItems.PrefixitemsValidationAdjustsTheStartingIndexForItemsListBuilder](#prefixitemsvalidationadjuststhestartingindexforitemslistbuilder)
builder for List payloads | | static class | [PrefixitemsValidationAdjustsTheStartingIndexForItems.PrefixitemsValidationAdjustsTheStartingIndexForItemsList](#prefixitemsvalidationadjuststhestartingindexforitemslist)
output class for List payloads | -| static class | [PrefixitemsValidationAdjustsTheStartingIndexForItems.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | -| static class | [PrefixitemsValidationAdjustsTheStartingIndexForItems.ItemsBoxedNumber](#itemsboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [PrefixitemsValidationAdjustsTheStartingIndexForItems.ItemsBoxed](#itemsboxed)
sealed interface for validated payloads | +| record | [PrefixitemsValidationAdjustsTheStartingIndexForItems.ItemsBoxedNumber](#itemsboxednumber)
boxed class to store validated Number payloads | | static class | [PrefixitemsValidationAdjustsTheStartingIndexForItems.Items](#items)
schema class | ## PrefixitemsValidationAdjustsTheStartingIndexForItems1Boxed -public static abstract sealed class PrefixitemsValidationAdjustsTheStartingIndexForItems1Boxed
+public sealed interface PrefixitemsValidationAdjustsTheStartingIndexForItems1Boxed
permits
[PrefixitemsValidationAdjustsTheStartingIndexForItems1BoxedList](#prefixitemsvalidationadjuststhestartingindexforitems1boxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## PrefixitemsValidationAdjustsTheStartingIndexForItems1BoxedList -public static final class PrefixitemsValidationAdjustsTheStartingIndexForItems1BoxedList
-extends [PrefixitemsValidationAdjustsTheStartingIndexForItems1Boxed](#prefixitemsvalidationadjuststhestartingindexforitems1boxed) +public record PrefixitemsValidationAdjustsTheStartingIndexForItems1BoxedList
+implements [PrefixitemsValidationAdjustsTheStartingIndexForItems1Boxed](#prefixitemsvalidationadjuststhestartingindexforitems1boxed) -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 | | --------------------------- | | PrefixitemsValidationAdjustsTheStartingIndexForItems1BoxedList([PrefixitemsValidationAdjustsTheStartingIndexForItemsList](#prefixitemsvalidationadjuststhestartingindexforitemslist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PrefixitemsValidationAdjustsTheStartingIndexForItemsList](#prefixitemsvalidationadjuststhestartingindexforitemslist) | data
validated payload | +| [PrefixitemsValidationAdjustsTheStartingIndexForItemsList](#prefixitemsvalidationadjuststhestartingindexforitemslist) | data()
validated payload | +| @Nullable Object | getData()
validated payload | ## PrefixitemsValidationAdjustsTheStartingIndexForItems1 public static class PrefixitemsValidationAdjustsTheStartingIndexForItems1
@@ -91,29 +92,32 @@ PrefixitemsValidationAdjustsTheStartingIndexForItems.PrefixitemsValidationAdjust | ----------------- | ---------------------- | | [PrefixitemsValidationAdjustsTheStartingIndexForItemsList](#prefixitemsvalidationadjuststhestartingindexforitemslist) | validate([List](#prefixitemsvalidationadjuststhestartingindexforitemslistbuilder) arg, SchemaConfiguration configuration) | | [PrefixitemsValidationAdjustsTheStartingIndexForItems1BoxedList](#prefixitemsvalidationadjuststhestartingindexforitems1boxedlist) | validateAndBox([List](#prefixitemsvalidationadjuststhestartingindexforitemslistbuilder) arg, SchemaConfiguration configuration) | +| [PrefixitemsValidationAdjustsTheStartingIndexForItems1Boxed](#prefixitemsvalidationadjuststhestartingindexforitems1boxed) | 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
[Schema0BoxedString](#schema0boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## 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 | ## Schema0 public static class Schema0
@@ -160,27 +164,28 @@ A class to store validated List payloads | static [PrefixitemsValidationAdjustsTheStartingIndexForItemsList](#prefixitemsvalidationadjuststhestartingindexforitemslist) | of([List](#prefixitemsvalidationadjuststhestartingindexforitemslistbuilder) arg, SchemaConfiguration configuration) | ## ItemsBoxed -public static abstract sealed class ItemsBoxed
+public sealed interface ItemsBoxed
permits
[ItemsBoxedNumber](#itemsboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## 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 | ## Items public static class Items
diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/PrefixitemsWithNullInstanceElements.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/PrefixitemsWithNullInstanceElements.md index 3a6239ddae7..7ca15c2ac9e 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/PrefixitemsWithNullInstanceElements.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/PrefixitemsWithNullInstanceElements.md @@ -4,7 +4,7 @@ public class PrefixitemsWithNullInstanceElements
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,22 +12,22 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [PrefixitemsWithNullInstanceElements.PrefixitemsWithNullInstanceElements1Boxed](#prefixitemswithnullinstanceelements1boxed)
abstract sealed validated payload class | -| static class | [PrefixitemsWithNullInstanceElements.PrefixitemsWithNullInstanceElements1BoxedVoid](#prefixitemswithnullinstanceelements1boxedvoid)
boxed class to store validated null payloads | -| static class | [PrefixitemsWithNullInstanceElements.PrefixitemsWithNullInstanceElements1BoxedBoolean](#prefixitemswithnullinstanceelements1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [PrefixitemsWithNullInstanceElements.PrefixitemsWithNullInstanceElements1BoxedNumber](#prefixitemswithnullinstanceelements1boxednumber)
boxed class to store validated Number payloads | -| static class | [PrefixitemsWithNullInstanceElements.PrefixitemsWithNullInstanceElements1BoxedString](#prefixitemswithnullinstanceelements1boxedstring)
boxed class to store validated String payloads | -| static class | [PrefixitemsWithNullInstanceElements.PrefixitemsWithNullInstanceElements1BoxedList](#prefixitemswithnullinstanceelements1boxedlist)
boxed class to store validated List payloads | -| static class | [PrefixitemsWithNullInstanceElements.PrefixitemsWithNullInstanceElements1BoxedMap](#prefixitemswithnullinstanceelements1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [PrefixitemsWithNullInstanceElements.PrefixitemsWithNullInstanceElements1Boxed](#prefixitemswithnullinstanceelements1boxed)
sealed interface for validated payloads | +| record | [PrefixitemsWithNullInstanceElements.PrefixitemsWithNullInstanceElements1BoxedVoid](#prefixitemswithnullinstanceelements1boxedvoid)
boxed class to store validated null payloads | +| record | [PrefixitemsWithNullInstanceElements.PrefixitemsWithNullInstanceElements1BoxedBoolean](#prefixitemswithnullinstanceelements1boxedboolean)
boxed class to store validated boolean payloads | +| record | [PrefixitemsWithNullInstanceElements.PrefixitemsWithNullInstanceElements1BoxedNumber](#prefixitemswithnullinstanceelements1boxednumber)
boxed class to store validated Number payloads | +| record | [PrefixitemsWithNullInstanceElements.PrefixitemsWithNullInstanceElements1BoxedString](#prefixitemswithnullinstanceelements1boxedstring)
boxed class to store validated String payloads | +| record | [PrefixitemsWithNullInstanceElements.PrefixitemsWithNullInstanceElements1BoxedList](#prefixitemswithnullinstanceelements1boxedlist)
boxed class to store validated List payloads | +| record | [PrefixitemsWithNullInstanceElements.PrefixitemsWithNullInstanceElements1BoxedMap](#prefixitemswithnullinstanceelements1boxedmap)
boxed class to store validated Map payloads | | static class | [PrefixitemsWithNullInstanceElements.PrefixitemsWithNullInstanceElements1](#prefixitemswithnullinstanceelements1)
schema class | -| static class | [PrefixitemsWithNullInstanceElements.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | -| static class | [PrefixitemsWithNullInstanceElements.Schema0BoxedVoid](#schema0boxedvoid)
boxed class to store validated null payloads | +| sealed interface | [PrefixitemsWithNullInstanceElements.Schema0Boxed](#schema0boxed)
sealed interface for validated payloads | +| record | [PrefixitemsWithNullInstanceElements.Schema0BoxedVoid](#schema0boxedvoid)
boxed class to store validated null payloads | | static class | [PrefixitemsWithNullInstanceElements.Schema0](#schema0)
schema class | | static class | [PrefixitemsWithNullInstanceElements.PrefixitemsWithNullInstanceElementsListBuilder](#prefixitemswithnullinstanceelementslistbuilder)
builder for List payloads | | static class | [PrefixitemsWithNullInstanceElements.PrefixitemsWithNullInstanceElementsList](#prefixitemswithnullinstanceelementslist)
output class for List payloads | ## PrefixitemsWithNullInstanceElements1Boxed -public static abstract sealed class PrefixitemsWithNullInstanceElements1Boxed
+public sealed interface PrefixitemsWithNullInstanceElements1Boxed
permits
[PrefixitemsWithNullInstanceElements1BoxedVoid](#prefixitemswithnullinstanceelements1boxedvoid), [PrefixitemsWithNullInstanceElements1BoxedBoolean](#prefixitemswithnullinstanceelements1boxedboolean), @@ -36,103 +36,109 @@ permits
[PrefixitemsWithNullInstanceElements1BoxedList](#prefixitemswithnullinstanceelements1boxedlist), [PrefixitemsWithNullInstanceElements1BoxedMap](#prefixitemswithnullinstanceelements1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## PrefixitemsWithNullInstanceElements1BoxedVoid -public static final class PrefixitemsWithNullInstanceElements1BoxedVoid
-extends [PrefixitemsWithNullInstanceElements1Boxed](#prefixitemswithnullinstanceelements1boxed) +public record PrefixitemsWithNullInstanceElements1BoxedVoid
+implements [PrefixitemsWithNullInstanceElements1Boxed](#prefixitemswithnullinstanceelements1boxed) -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 | | --------------------------- | | PrefixitemsWithNullInstanceElements1BoxedVoid(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 | ## PrefixitemsWithNullInstanceElements1BoxedBoolean -public static final class PrefixitemsWithNullInstanceElements1BoxedBoolean
-extends [PrefixitemsWithNullInstanceElements1Boxed](#prefixitemswithnullinstanceelements1boxed) +public record PrefixitemsWithNullInstanceElements1BoxedBoolean
+implements [PrefixitemsWithNullInstanceElements1Boxed](#prefixitemswithnullinstanceelements1boxed) -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 | | --------------------------- | | PrefixitemsWithNullInstanceElements1BoxedBoolean(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 | ## PrefixitemsWithNullInstanceElements1BoxedNumber -public static final class PrefixitemsWithNullInstanceElements1BoxedNumber
-extends [PrefixitemsWithNullInstanceElements1Boxed](#prefixitemswithnullinstanceelements1boxed) +public record PrefixitemsWithNullInstanceElements1BoxedNumber
+implements [PrefixitemsWithNullInstanceElements1Boxed](#prefixitemswithnullinstanceelements1boxed) -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 | | --------------------------- | | PrefixitemsWithNullInstanceElements1BoxedNumber(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 | ## PrefixitemsWithNullInstanceElements1BoxedString -public static final class PrefixitemsWithNullInstanceElements1BoxedString
-extends [PrefixitemsWithNullInstanceElements1Boxed](#prefixitemswithnullinstanceelements1boxed) +public record PrefixitemsWithNullInstanceElements1BoxedString
+implements [PrefixitemsWithNullInstanceElements1Boxed](#prefixitemswithnullinstanceelements1boxed) -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 | | --------------------------- | | PrefixitemsWithNullInstanceElements1BoxedString(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 | ## PrefixitemsWithNullInstanceElements1BoxedList -public static final class PrefixitemsWithNullInstanceElements1BoxedList
-extends [PrefixitemsWithNullInstanceElements1Boxed](#prefixitemswithnullinstanceelements1boxed) +public record PrefixitemsWithNullInstanceElements1BoxedList
+implements [PrefixitemsWithNullInstanceElements1Boxed](#prefixitemswithnullinstanceelements1boxed) -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 | | --------------------------- | | PrefixitemsWithNullInstanceElements1BoxedList([PrefixitemsWithNullInstanceElementsList](#prefixitemswithnullinstanceelementslist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PrefixitemsWithNullInstanceElementsList](#prefixitemswithnullinstanceelementslist) | data
validated payload | +| [PrefixitemsWithNullInstanceElementsList](#prefixitemswithnullinstanceelementslist) | data()
validated payload | +| @Nullable Object | getData()
validated payload | ## PrefixitemsWithNullInstanceElements1BoxedMap -public static final class PrefixitemsWithNullInstanceElements1BoxedMap
-extends [PrefixitemsWithNullInstanceElements1Boxed](#prefixitemswithnullinstanceelements1boxed) +public record PrefixitemsWithNullInstanceElements1BoxedMap
+implements [PrefixitemsWithNullInstanceElements1Boxed](#prefixitemswithnullinstanceelements1boxed) -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 | | --------------------------- | | PrefixitemsWithNullInstanceElements1BoxedMap(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 | ## PrefixitemsWithNullInstanceElements1 public static class PrefixitemsWithNullInstanceElements1
@@ -164,29 +170,32 @@ A schema class that validates payloads | [PrefixitemsWithNullInstanceElements1BoxedBoolean](#prefixitemswithnullinstanceelements1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [PrefixitemsWithNullInstanceElements1BoxedMap](#prefixitemswithnullinstanceelements1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [PrefixitemsWithNullInstanceElements1BoxedList](#prefixitemswithnullinstanceelements1boxedlist) | validateAndBox([List](#prefixitemswithnullinstanceelementslistbuilder) arg, SchemaConfiguration configuration) | +| [PrefixitemsWithNullInstanceElements1Boxed](#prefixitemswithnullinstanceelements1boxed) | 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) -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 | ## Schema0 public static class Schema0
diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/PropertiesPatternpropertiesAdditionalpropertiesInteraction.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/PropertiesPatternpropertiesAdditionalpropertiesInteraction.md index 1e53657af78..14f101bdedc 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/PropertiesPatternpropertiesAdditionalpropertiesInteraction.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/PropertiesPatternpropertiesAdditionalpropertiesInteraction.md @@ -4,7 +4,7 @@ public class PropertiesPatternpropertiesAdditionalpropertiesInteraction
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,51 +12,52 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.PropertiesPatternpropertiesAdditionalpropertiesInteraction1Boxed](#propertiespatternpropertiesadditionalpropertiesinteraction1boxed)
abstract sealed validated payload class | -| static class | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.PropertiesPatternpropertiesAdditionalpropertiesInteraction1BoxedMap](#propertiespatternpropertiesadditionalpropertiesinteraction1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.PropertiesPatternpropertiesAdditionalpropertiesInteraction1Boxed](#propertiespatternpropertiesadditionalpropertiesinteraction1boxed)
sealed interface for validated payloads | +| record | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.PropertiesPatternpropertiesAdditionalpropertiesInteraction1BoxedMap](#propertiespatternpropertiesadditionalpropertiesinteraction1boxedmap)
boxed class to store validated Map payloads | | static class | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.PropertiesPatternpropertiesAdditionalpropertiesInteraction1](#propertiespatternpropertiesadditionalpropertiesinteraction1)
schema class | | static class | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.PropertiesPatternpropertiesAdditionalpropertiesInteractionMapBuilder](#propertiespatternpropertiesadditionalpropertiesinteractionmapbuilder)
builder for Map payloads | | static class | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.PropertiesPatternpropertiesAdditionalpropertiesInteractionMap](#propertiespatternpropertiesadditionalpropertiesinteractionmap)
output class for Map payloads | -| static class | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.BarBoxed](#barboxed)
abstract sealed validated payload class | -| static class | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.BarBoxedList](#barboxedlist)
boxed class to store validated List payloads | +| sealed interface | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.BarBoxed](#barboxed)
sealed interface for validated payloads | +| record | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.BarBoxedList](#barboxedlist)
boxed class to store validated List payloads | | static class | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.Bar](#bar)
schema class | -| static class | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.FooBoxed](#fooboxed)
abstract sealed validated payload class | -| static class | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.FooBoxedList](#fooboxedlist)
boxed class to store validated List payloads | +| sealed interface | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.FooBoxed](#fooboxed)
sealed interface for validated payloads | +| record | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.FooBoxedList](#fooboxedlist)
boxed class to store validated List payloads | | static class | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.Foo](#foo)
schema class | -| static class | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.FoBoxed](#foboxed)
abstract sealed validated payload class | -| static class | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.FoBoxedVoid](#foboxedvoid)
boxed class to store validated null payloads | -| static class | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.FoBoxedBoolean](#foboxedboolean)
boxed class to store validated boolean payloads | -| static class | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.FoBoxedNumber](#foboxednumber)
boxed class to store validated Number payloads | -| static class | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.FoBoxedString](#foboxedstring)
boxed class to store validated String payloads | -| static class | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.FoBoxedList](#foboxedlist)
boxed class to store validated List payloads | -| static class | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.FoBoxedMap](#foboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.FoBoxed](#foboxed)
sealed interface for validated payloads | +| record | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.FoBoxedVoid](#foboxedvoid)
boxed class to store validated null payloads | +| record | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.FoBoxedBoolean](#foboxedboolean)
boxed class to store validated boolean payloads | +| record | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.FoBoxedNumber](#foboxednumber)
boxed class to store validated Number payloads | +| record | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.FoBoxedString](#foboxedstring)
boxed class to store validated String payloads | +| record | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.FoBoxedList](#foboxedlist)
boxed class to store validated List payloads | +| record | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.FoBoxedMap](#foboxedmap)
boxed class to store validated Map payloads | | static class | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.Fo](#fo)
schema class | -| static class | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | -| static class | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | | static class | [PropertiesPatternpropertiesAdditionalpropertiesInteraction.AdditionalProperties](#additionalproperties)
schema class | ## PropertiesPatternpropertiesAdditionalpropertiesInteraction1Boxed -public static abstract sealed class PropertiesPatternpropertiesAdditionalpropertiesInteraction1Boxed
+public sealed interface PropertiesPatternpropertiesAdditionalpropertiesInteraction1Boxed
permits
[PropertiesPatternpropertiesAdditionalpropertiesInteraction1BoxedMap](#propertiespatternpropertiesadditionalpropertiesinteraction1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## PropertiesPatternpropertiesAdditionalpropertiesInteraction1BoxedMap -public static final class PropertiesPatternpropertiesAdditionalpropertiesInteraction1BoxedMap
-extends [PropertiesPatternpropertiesAdditionalpropertiesInteraction1Boxed](#propertiespatternpropertiesadditionalpropertiesinteraction1boxed) +public record PropertiesPatternpropertiesAdditionalpropertiesInteraction1BoxedMap
+implements [PropertiesPatternpropertiesAdditionalpropertiesInteraction1Boxed](#propertiespatternpropertiesadditionalpropertiesinteraction1boxed) -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 | | --------------------------- | | PropertiesPatternpropertiesAdditionalpropertiesInteraction1BoxedMap([PropertiesPatternpropertiesAdditionalpropertiesInteractionMap](#propertiespatternpropertiesadditionalpropertiesinteractionmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PropertiesPatternpropertiesAdditionalpropertiesInteractionMap](#propertiespatternpropertiesadditionalpropertiesinteractionmap) | data
validated payload | +| [PropertiesPatternpropertiesAdditionalpropertiesInteractionMap](#propertiespatternpropertiesadditionalpropertiesinteractionmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | ## PropertiesPatternpropertiesAdditionalpropertiesInteraction1 public static class PropertiesPatternpropertiesAdditionalpropertiesInteraction1
@@ -103,7 +104,9 @@ PropertiesPatternpropertiesAdditionalpropertiesInteraction.PropertiesPatternprop | ----------------- | ---------------------- | | [PropertiesPatternpropertiesAdditionalpropertiesInteractionMap](#propertiespatternpropertiesadditionalpropertiesinteractionmap) | validate([Map<?, ?>](#propertiespatternpropertiesadditionalpropertiesinteractionmapbuilder) arg, SchemaConfiguration configuration) | | [PropertiesPatternpropertiesAdditionalpropertiesInteraction1BoxedMap](#propertiespatternpropertiesadditionalpropertiesinteraction1boxedmap) | validateAndBox([Map<?, ?>](#propertiespatternpropertiesadditionalpropertiesinteractionmapbuilder) arg, SchemaConfiguration configuration) | +| [PropertiesPatternpropertiesAdditionalpropertiesInteraction1Boxed](#propertiespatternpropertiesadditionalpropertiesinteraction1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## PropertiesPatternpropertiesAdditionalpropertiesInteractionMapBuilder public class PropertiesPatternpropertiesAdditionalpropertiesInteractionMapBuilder
builder for `Map` @@ -141,27 +144,28 @@ A class to store validated Map payloads | Number | getAdditionalProperty(String name)
provides type safety for additional properties | ## BarBoxed -public static abstract sealed class BarBoxed
+public sealed interface BarBoxed
permits
[BarBoxedList](#barboxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## 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 | ## Bar public static class Bar
@@ -175,27 +179,28 @@ A schema class that validates payloads | validateAndBox | ## FooBoxed -public static abstract sealed class FooBoxed
+public sealed interface FooBoxed
permits
[FooBoxedList](#fooboxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## 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 | ## Foo public static class Foo
@@ -214,9 +219,11 @@ A schema class that validates payloads | ----------------- | ---------------------- | | FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | | [FooBoxedList](#fooboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [FooBoxed](#fooboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## FoBoxed -public static abstract sealed class FoBoxed
+public sealed interface FoBoxed
permits
[FoBoxedVoid](#foboxedvoid), [FoBoxedBoolean](#foboxedboolean), @@ -225,103 +232,109 @@ permits
[FoBoxedList](#foboxedlist), [FoBoxedMap](#foboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## FoBoxedVoid -public static final class FoBoxedVoid
-extends [FoBoxed](#foboxed) +public record FoBoxedVoid
+implements [FoBoxed](#foboxed) -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 | | --------------------------- | | FoBoxedVoid(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 | ## FoBoxedBoolean -public static final class FoBoxedBoolean
-extends [FoBoxed](#foboxed) +public record FoBoxedBoolean
+implements [FoBoxed](#foboxed) -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 | | --------------------------- | | FoBoxedBoolean(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 | ## FoBoxedNumber -public static final class FoBoxedNumber
-extends [FoBoxed](#foboxed) +public record FoBoxedNumber
+implements [FoBoxed](#foboxed) -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 | | --------------------------- | | FoBoxedNumber(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 | ## FoBoxedString -public static final class FoBoxedString
-extends [FoBoxed](#foboxed) +public record FoBoxedString
+implements [FoBoxed](#foboxed) -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 | | --------------------------- | | FoBoxedString(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 | ## FoBoxedList -public static final class FoBoxedList
-extends [FoBoxed](#foboxed) +public record FoBoxedList
+implements [FoBoxed](#foboxed) -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 | | --------------------------- | | FoBoxedList(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 | ## FoBoxedMap -public static final class FoBoxedMap
-extends [FoBoxed](#foboxed) +public record FoBoxedMap
+implements [FoBoxed](#foboxed) -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 | | --------------------------- | | FoBoxedMap(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 | ## Fo public static class Fo
@@ -353,29 +366,32 @@ A schema class that validates payloads | [FoBoxedBoolean](#foboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [FoBoxedMap](#foboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [FoBoxedList](#foboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [FoBoxed](#foboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## AdditionalPropertiesBoxed -public static abstract sealed class AdditionalPropertiesBoxed
+public sealed interface AdditionalPropertiesBoxed
permits
[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedNumber -public static final class AdditionalPropertiesBoxedNumber
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedNumber(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 | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/PropertiesWhoseNamesAreJavascriptObjectPropertyNames.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/PropertiesWhoseNamesAreJavascriptObjectPropertyNames.md index 70ba755e01c..12521dedf71 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/PropertiesWhoseNamesAreJavascriptObjectPropertyNames.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/PropertiesWhoseNamesAreJavascriptObjectPropertyNames.md @@ -4,7 +4,7 @@ public class PropertiesWhoseNamesAreJavascriptObjectPropertyNames
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,38 +12,38 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.PropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed](#propertieswhosenamesarejavascriptobjectpropertynames1boxed)
abstract sealed validated payload class | -| static class | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedVoid](#propertieswhosenamesarejavascriptobjectpropertynames1boxedvoid)
boxed class to store validated null payloads | -| static class | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedBoolean](#propertieswhosenamesarejavascriptobjectpropertynames1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedNumber](#propertieswhosenamesarejavascriptobjectpropertynames1boxednumber)
boxed class to store validated Number payloads | -| static class | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedString](#propertieswhosenamesarejavascriptobjectpropertynames1boxedstring)
boxed class to store validated String payloads | -| static class | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedList](#propertieswhosenamesarejavascriptobjectpropertynames1boxedlist)
boxed class to store validated List payloads | -| static class | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedMap](#propertieswhosenamesarejavascriptobjectpropertynames1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.PropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed](#propertieswhosenamesarejavascriptobjectpropertynames1boxed)
sealed interface for validated payloads | +| record | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedVoid](#propertieswhosenamesarejavascriptobjectpropertynames1boxedvoid)
boxed class to store validated null payloads | +| record | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedBoolean](#propertieswhosenamesarejavascriptobjectpropertynames1boxedboolean)
boxed class to store validated boolean payloads | +| record | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedNumber](#propertieswhosenamesarejavascriptobjectpropertynames1boxednumber)
boxed class to store validated Number payloads | +| record | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedString](#propertieswhosenamesarejavascriptobjectpropertynames1boxedstring)
boxed class to store validated String payloads | +| record | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedList](#propertieswhosenamesarejavascriptobjectpropertynames1boxedlist)
boxed class to store validated List payloads | +| record | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedMap](#propertieswhosenamesarejavascriptobjectpropertynames1boxedmap)
boxed class to store validated Map payloads | | static class | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.PropertiesWhoseNamesAreJavascriptObjectPropertyNames1](#propertieswhosenamesarejavascriptobjectpropertynames1)
schema class | | static class | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.PropertiesWhoseNamesAreJavascriptObjectPropertyNamesMapBuilder](#propertieswhosenamesarejavascriptobjectpropertynamesmapbuilder)
builder for Map payloads | | static class | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.PropertiesWhoseNamesAreJavascriptObjectPropertyNamesMap](#propertieswhosenamesarejavascriptobjectpropertynamesmap)
output class for Map payloads | -| static class | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.ConstructorBoxed](#constructorboxed)
abstract sealed validated payload class | -| static class | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.ConstructorBoxedNumber](#constructorboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.ConstructorBoxed](#constructorboxed)
sealed interface for validated payloads | +| record | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.ConstructorBoxedNumber](#constructorboxednumber)
boxed class to store validated Number payloads | | static class | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.Constructor](#constructor)
schema class | -| static class | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.ToStringSchemaBoxed](#tostringschemaboxed)
abstract sealed validated payload class | -| static class | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.ToStringSchemaBoxedVoid](#tostringschemaboxedvoid)
boxed class to store validated null payloads | -| static class | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.ToStringSchemaBoxedBoolean](#tostringschemaboxedboolean)
boxed class to store validated boolean payloads | -| static class | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.ToStringSchemaBoxedNumber](#tostringschemaboxednumber)
boxed class to store validated Number payloads | -| static class | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.ToStringSchemaBoxedString](#tostringschemaboxedstring)
boxed class to store validated String payloads | -| static class | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.ToStringSchemaBoxedList](#tostringschemaboxedlist)
boxed class to store validated List payloads | -| static class | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.ToStringSchemaBoxedMap](#tostringschemaboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.ToStringSchemaBoxed](#tostringschemaboxed)
sealed interface for validated payloads | +| record | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.ToStringSchemaBoxedVoid](#tostringschemaboxedvoid)
boxed class to store validated null payloads | +| record | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.ToStringSchemaBoxedBoolean](#tostringschemaboxedboolean)
boxed class to store validated boolean payloads | +| record | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.ToStringSchemaBoxedNumber](#tostringschemaboxednumber)
boxed class to store validated Number payloads | +| record | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.ToStringSchemaBoxedString](#tostringschemaboxedstring)
boxed class to store validated String payloads | +| record | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.ToStringSchemaBoxedList](#tostringschemaboxedlist)
boxed class to store validated List payloads | +| record | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.ToStringSchemaBoxedMap](#tostringschemaboxedmap)
boxed class to store validated Map payloads | | static class | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.ToStringSchema](#tostringschema)
schema class | | static class | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.ToStringMapBuilder](#tostringmapbuilder)
builder for Map payloads | | static class | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.ToStringMap](#tostringmap)
output class for Map payloads | -| static class | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.LengthBoxed](#lengthboxed)
abstract sealed validated payload class | -| static class | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.LengthBoxedString](#lengthboxedstring)
boxed class to store validated String payloads | +| sealed interface | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.LengthBoxed](#lengthboxed)
sealed interface for validated payloads | +| record | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.LengthBoxedString](#lengthboxedstring)
boxed class to store validated String payloads | | static class | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.Length](#length)
schema class | -| static class | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.ProtoBoxed](#protoboxed)
abstract sealed validated payload class | -| static class | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.ProtoBoxedNumber](#protoboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.ProtoBoxed](#protoboxed)
sealed interface for validated payloads | +| record | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.ProtoBoxedNumber](#protoboxednumber)
boxed class to store validated Number payloads | | static class | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames.Proto](#proto)
schema class | ## PropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed -public static abstract sealed class PropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed
+public sealed interface PropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed
permits
[PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedVoid](#propertieswhosenamesarejavascriptobjectpropertynames1boxedvoid), [PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedBoolean](#propertieswhosenamesarejavascriptobjectpropertynames1boxedboolean), @@ -52,103 +52,109 @@ permits
[PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedList](#propertieswhosenamesarejavascriptobjectpropertynames1boxedlist), [PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedMap](#propertieswhosenamesarejavascriptobjectpropertynames1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedVoid -public static final class PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedVoid
-extends [PropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed](#propertieswhosenamesarejavascriptobjectpropertynames1boxed) +public record PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedVoid
+implements [PropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed](#propertieswhosenamesarejavascriptobjectpropertynames1boxed) -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 | | --------------------------- | | PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedVoid(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 | ## PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedBoolean -public static final class PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedBoolean
-extends [PropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed](#propertieswhosenamesarejavascriptobjectpropertynames1boxed) +public record PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedBoolean
+implements [PropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed](#propertieswhosenamesarejavascriptobjectpropertynames1boxed) -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 | | --------------------------- | | PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedBoolean(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 | ## PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedNumber -public static final class PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedNumber
-extends [PropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed](#propertieswhosenamesarejavascriptobjectpropertynames1boxed) +public record PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedNumber
+implements [PropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed](#propertieswhosenamesarejavascriptobjectpropertynames1boxed) -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 | | --------------------------- | | PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedNumber(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 | ## PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedString -public static final class PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedString
-extends [PropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed](#propertieswhosenamesarejavascriptobjectpropertynames1boxed) +public record PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedString
+implements [PropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed](#propertieswhosenamesarejavascriptobjectpropertynames1boxed) -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 | | --------------------------- | | PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedString(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 | ## PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedList -public static final class PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedList
-extends [PropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed](#propertieswhosenamesarejavascriptobjectpropertynames1boxed) +public record PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedList
+implements [PropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed](#propertieswhosenamesarejavascriptobjectpropertynames1boxed) -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 | | --------------------------- | | PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedList(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 | ## PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedMap -public static final class PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedMap
-extends [PropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed](#propertieswhosenamesarejavascriptobjectpropertynames1boxed) +public record PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedMap
+implements [PropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed](#propertieswhosenamesarejavascriptobjectpropertynames1boxed) -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 | | --------------------------- | | PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedMap([PropertiesWhoseNamesAreJavascriptObjectPropertyNamesMap](#propertieswhosenamesarejavascriptobjectpropertynamesmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PropertiesWhoseNamesAreJavascriptObjectPropertyNamesMap](#propertieswhosenamesarejavascriptobjectpropertynamesmap) | data
validated payload | +| [PropertiesWhoseNamesAreJavascriptObjectPropertyNamesMap](#propertieswhosenamesarejavascriptobjectpropertynamesmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | ## PropertiesWhoseNamesAreJavascriptObjectPropertyNames1 public static class PropertiesWhoseNamesAreJavascriptObjectPropertyNames1
@@ -180,7 +186,9 @@ A schema class that validates payloads | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedBoolean](#propertieswhosenamesarejavascriptobjectpropertynames1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedMap](#propertieswhosenamesarejavascriptobjectpropertynames1boxedmap) | validateAndBox([Map<?, ?>](#propertieswhosenamesarejavascriptobjectpropertynamesmapbuilder) arg, SchemaConfiguration configuration) | | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedList](#propertieswhosenamesarejavascriptobjectpropertynames1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [PropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed](#propertieswhosenamesarejavascriptobjectpropertynames1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## PropertiesWhoseNamesAreJavascriptObjectPropertyNamesMapBuilder public class PropertiesWhoseNamesAreJavascriptObjectPropertyNamesMapBuilder
builder for `Map` @@ -238,27 +246,28 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## ConstructorBoxed -public static abstract sealed class ConstructorBoxed
+public sealed interface ConstructorBoxed
permits
[ConstructorBoxedNumber](#constructorboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ConstructorBoxedNumber -public static final class ConstructorBoxedNumber
-extends [ConstructorBoxed](#constructorboxed) +public record ConstructorBoxedNumber
+implements [ConstructorBoxed](#constructorboxed) -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 | | --------------------------- | | ConstructorBoxedNumber(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 | ## Constructor public static class Constructor
@@ -272,7 +281,7 @@ A schema class that validates payloads | validateAndBox | ## ToStringSchemaBoxed -public static abstract sealed class ToStringSchemaBoxed
+public sealed interface ToStringSchemaBoxed
permits
[ToStringSchemaBoxedVoid](#tostringschemaboxedvoid), [ToStringSchemaBoxedBoolean](#tostringschemaboxedboolean), @@ -281,103 +290,109 @@ permits
[ToStringSchemaBoxedList](#tostringschemaboxedlist), [ToStringSchemaBoxedMap](#tostringschemaboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ToStringSchemaBoxedVoid -public static final class ToStringSchemaBoxedVoid
-extends [ToStringSchemaBoxed](#tostringschemaboxed) +public record ToStringSchemaBoxedVoid
+implements [ToStringSchemaBoxed](#tostringschemaboxed) -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 | | --------------------------- | | ToStringSchemaBoxedVoid(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 | ## ToStringSchemaBoxedBoolean -public static final class ToStringSchemaBoxedBoolean
-extends [ToStringSchemaBoxed](#tostringschemaboxed) +public record ToStringSchemaBoxedBoolean
+implements [ToStringSchemaBoxed](#tostringschemaboxed) -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 | | --------------------------- | | ToStringSchemaBoxedBoolean(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 | ## ToStringSchemaBoxedNumber -public static final class ToStringSchemaBoxedNumber
-extends [ToStringSchemaBoxed](#tostringschemaboxed) +public record ToStringSchemaBoxedNumber
+implements [ToStringSchemaBoxed](#tostringschemaboxed) -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 | | --------------------------- | | ToStringSchemaBoxedNumber(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 | ## ToStringSchemaBoxedString -public static final class ToStringSchemaBoxedString
-extends [ToStringSchemaBoxed](#tostringschemaboxed) +public record ToStringSchemaBoxedString
+implements [ToStringSchemaBoxed](#tostringschemaboxed) -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 | | --------------------------- | | ToStringSchemaBoxedString(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 | ## ToStringSchemaBoxedList -public static final class ToStringSchemaBoxedList
-extends [ToStringSchemaBoxed](#tostringschemaboxed) +public record ToStringSchemaBoxedList
+implements [ToStringSchemaBoxed](#tostringschemaboxed) -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 | | --------------------------- | | ToStringSchemaBoxedList(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 | ## ToStringSchemaBoxedMap -public static final class ToStringSchemaBoxedMap
-extends [ToStringSchemaBoxed](#tostringschemaboxed) +public record ToStringSchemaBoxedMap
+implements [ToStringSchemaBoxed](#tostringschemaboxed) -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 | | --------------------------- | | ToStringSchemaBoxedMap([ToStringMap](#tostringmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ToStringMap](#tostringmap) | data
validated payload | +| [ToStringMap](#tostringmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | ## ToStringSchema public static class ToStringSchema
@@ -409,7 +424,9 @@ A schema class that validates payloads | [ToStringSchemaBoxedBoolean](#tostringschemaboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ToStringSchemaBoxedMap](#tostringschemaboxedmap) | validateAndBox([Map<?, ?>](#tostringmapbuilder) arg, SchemaConfiguration configuration) | | [ToStringSchemaBoxedList](#tostringschemaboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ToStringSchemaBoxed](#tostringschemaboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ToStringMapBuilder public class ToStringMapBuilder
builder for `Map` @@ -450,27 +467,28 @@ A class to store validated Map payloads | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## LengthBoxed -public static abstract sealed class LengthBoxed
+public sealed interface LengthBoxed
permits
[LengthBoxedString](#lengthboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## LengthBoxedString -public static final class LengthBoxedString
-extends [LengthBoxed](#lengthboxed) +public record LengthBoxedString
+implements [LengthBoxed](#lengthboxed) -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 | | --------------------------- | | LengthBoxedString(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 | ## Length public static class Length
@@ -484,27 +502,28 @@ A schema class that validates payloads | validateAndBox | ## ProtoBoxed -public static abstract sealed class ProtoBoxed
+public sealed interface ProtoBoxed
permits
[ProtoBoxedNumber](#protoboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ProtoBoxedNumber -public static final class ProtoBoxedNumber
-extends [ProtoBoxed](#protoboxed) +public record ProtoBoxedNumber
+implements [ProtoBoxed](#protoboxed) -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 | | --------------------------- | | ProtoBoxedNumber(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 | ## Proto public static class Proto
diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/PropertiesWithEscapedCharacters.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/PropertiesWithEscapedCharacters.md index d2af863280c..a34e94b8786 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/PropertiesWithEscapedCharacters.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/PropertiesWithNullValuedInstanceProperties.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/PropertiesWithNullValuedInstanceProperties.md index 84f77ba51a4..fed56234823 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/PropertiesWithNullValuedInstanceProperties.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/PropertiesWithNullValuedInstanceProperties.md @@ -4,7 +4,7 @@ public class PropertiesWithNullValuedInstanceProperties
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 | [PropertiesWithNullValuedInstanceProperties.PropertiesWithNullValuedInstanceProperties1Boxed](#propertieswithnullvaluedinstanceproperties1boxed)
abstract sealed validated payload class | -| static class | [PropertiesWithNullValuedInstanceProperties.PropertiesWithNullValuedInstanceProperties1BoxedVoid](#propertieswithnullvaluedinstanceproperties1boxedvoid)
boxed class to store validated null payloads | -| static class | [PropertiesWithNullValuedInstanceProperties.PropertiesWithNullValuedInstanceProperties1BoxedBoolean](#propertieswithnullvaluedinstanceproperties1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [PropertiesWithNullValuedInstanceProperties.PropertiesWithNullValuedInstanceProperties1BoxedNumber](#propertieswithnullvaluedinstanceproperties1boxednumber)
boxed class to store validated Number payloads | -| static class | [PropertiesWithNullValuedInstanceProperties.PropertiesWithNullValuedInstanceProperties1BoxedString](#propertieswithnullvaluedinstanceproperties1boxedstring)
boxed class to store validated String payloads | -| static class | [PropertiesWithNullValuedInstanceProperties.PropertiesWithNullValuedInstanceProperties1BoxedList](#propertieswithnullvaluedinstanceproperties1boxedlist)
boxed class to store validated List payloads | -| static class | [PropertiesWithNullValuedInstanceProperties.PropertiesWithNullValuedInstanceProperties1BoxedMap](#propertieswithnullvaluedinstanceproperties1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [PropertiesWithNullValuedInstanceProperties.PropertiesWithNullValuedInstanceProperties1Boxed](#propertieswithnullvaluedinstanceproperties1boxed)
sealed interface for validated payloads | +| record | [PropertiesWithNullValuedInstanceProperties.PropertiesWithNullValuedInstanceProperties1BoxedVoid](#propertieswithnullvaluedinstanceproperties1boxedvoid)
boxed class to store validated null payloads | +| record | [PropertiesWithNullValuedInstanceProperties.PropertiesWithNullValuedInstanceProperties1BoxedBoolean](#propertieswithnullvaluedinstanceproperties1boxedboolean)
boxed class to store validated boolean payloads | +| record | [PropertiesWithNullValuedInstanceProperties.PropertiesWithNullValuedInstanceProperties1BoxedNumber](#propertieswithnullvaluedinstanceproperties1boxednumber)
boxed class to store validated Number payloads | +| record | [PropertiesWithNullValuedInstanceProperties.PropertiesWithNullValuedInstanceProperties1BoxedString](#propertieswithnullvaluedinstanceproperties1boxedstring)
boxed class to store validated String payloads | +| record | [PropertiesWithNullValuedInstanceProperties.PropertiesWithNullValuedInstanceProperties1BoxedList](#propertieswithnullvaluedinstanceproperties1boxedlist)
boxed class to store validated List payloads | +| record | [PropertiesWithNullValuedInstanceProperties.PropertiesWithNullValuedInstanceProperties1BoxedMap](#propertieswithnullvaluedinstanceproperties1boxedmap)
boxed class to store validated Map payloads | | static class | [PropertiesWithNullValuedInstanceProperties.PropertiesWithNullValuedInstanceProperties1](#propertieswithnullvaluedinstanceproperties1)
schema class | | static class | [PropertiesWithNullValuedInstanceProperties.PropertiesWithNullValuedInstancePropertiesMapBuilder](#propertieswithnullvaluedinstancepropertiesmapbuilder)
builder for Map payloads | | static class | [PropertiesWithNullValuedInstanceProperties.PropertiesWithNullValuedInstancePropertiesMap](#propertieswithnullvaluedinstancepropertiesmap)
output class for Map payloads | -| static class | [PropertiesWithNullValuedInstanceProperties.FooBoxed](#fooboxed)
abstract sealed validated payload class | -| static class | [PropertiesWithNullValuedInstanceProperties.FooBoxedVoid](#fooboxedvoid)
boxed class to store validated null payloads | +| sealed interface | [PropertiesWithNullValuedInstanceProperties.FooBoxed](#fooboxed)
sealed interface for validated payloads | +| record | [PropertiesWithNullValuedInstanceProperties.FooBoxedVoid](#fooboxedvoid)
boxed class to store validated null payloads | | static class | [PropertiesWithNullValuedInstanceProperties.Foo](#foo)
schema class | ## PropertiesWithNullValuedInstanceProperties1Boxed -public static abstract sealed class PropertiesWithNullValuedInstanceProperties1Boxed
+public sealed interface PropertiesWithNullValuedInstanceProperties1Boxed
permits
[PropertiesWithNullValuedInstanceProperties1BoxedVoid](#propertieswithnullvaluedinstanceproperties1boxedvoid), [PropertiesWithNullValuedInstanceProperties1BoxedBoolean](#propertieswithnullvaluedinstanceproperties1boxedboolean), @@ -36,103 +36,109 @@ permits
[PropertiesWithNullValuedInstanceProperties1BoxedList](#propertieswithnullvaluedinstanceproperties1boxedlist), [PropertiesWithNullValuedInstanceProperties1BoxedMap](#propertieswithnullvaluedinstanceproperties1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## PropertiesWithNullValuedInstanceProperties1BoxedVoid -public static final class PropertiesWithNullValuedInstanceProperties1BoxedVoid
-extends [PropertiesWithNullValuedInstanceProperties1Boxed](#propertieswithnullvaluedinstanceproperties1boxed) +public record PropertiesWithNullValuedInstanceProperties1BoxedVoid
+implements [PropertiesWithNullValuedInstanceProperties1Boxed](#propertieswithnullvaluedinstanceproperties1boxed) -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 | | --------------------------- | | PropertiesWithNullValuedInstanceProperties1BoxedVoid(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 | ## PropertiesWithNullValuedInstanceProperties1BoxedBoolean -public static final class PropertiesWithNullValuedInstanceProperties1BoxedBoolean
-extends [PropertiesWithNullValuedInstanceProperties1Boxed](#propertieswithnullvaluedinstanceproperties1boxed) +public record PropertiesWithNullValuedInstanceProperties1BoxedBoolean
+implements [PropertiesWithNullValuedInstanceProperties1Boxed](#propertieswithnullvaluedinstanceproperties1boxed) -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 | | --------------------------- | | PropertiesWithNullValuedInstanceProperties1BoxedBoolean(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 | ## PropertiesWithNullValuedInstanceProperties1BoxedNumber -public static final class PropertiesWithNullValuedInstanceProperties1BoxedNumber
-extends [PropertiesWithNullValuedInstanceProperties1Boxed](#propertieswithnullvaluedinstanceproperties1boxed) +public record PropertiesWithNullValuedInstanceProperties1BoxedNumber
+implements [PropertiesWithNullValuedInstanceProperties1Boxed](#propertieswithnullvaluedinstanceproperties1boxed) -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 | | --------------------------- | | PropertiesWithNullValuedInstanceProperties1BoxedNumber(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 | ## PropertiesWithNullValuedInstanceProperties1BoxedString -public static final class PropertiesWithNullValuedInstanceProperties1BoxedString
-extends [PropertiesWithNullValuedInstanceProperties1Boxed](#propertieswithnullvaluedinstanceproperties1boxed) +public record PropertiesWithNullValuedInstanceProperties1BoxedString
+implements [PropertiesWithNullValuedInstanceProperties1Boxed](#propertieswithnullvaluedinstanceproperties1boxed) -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 | | --------------------------- | | PropertiesWithNullValuedInstanceProperties1BoxedString(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 | ## PropertiesWithNullValuedInstanceProperties1BoxedList -public static final class PropertiesWithNullValuedInstanceProperties1BoxedList
-extends [PropertiesWithNullValuedInstanceProperties1Boxed](#propertieswithnullvaluedinstanceproperties1boxed) +public record PropertiesWithNullValuedInstanceProperties1BoxedList
+implements [PropertiesWithNullValuedInstanceProperties1Boxed](#propertieswithnullvaluedinstanceproperties1boxed) -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 | | --------------------------- | | PropertiesWithNullValuedInstanceProperties1BoxedList(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 | ## PropertiesWithNullValuedInstanceProperties1BoxedMap -public static final class PropertiesWithNullValuedInstanceProperties1BoxedMap
-extends [PropertiesWithNullValuedInstanceProperties1Boxed](#propertieswithnullvaluedinstanceproperties1boxed) +public record PropertiesWithNullValuedInstanceProperties1BoxedMap
+implements [PropertiesWithNullValuedInstanceProperties1Boxed](#propertieswithnullvaluedinstanceproperties1boxed) -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 | | --------------------------- | | PropertiesWithNullValuedInstanceProperties1BoxedMap([PropertiesWithNullValuedInstancePropertiesMap](#propertieswithnullvaluedinstancepropertiesmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PropertiesWithNullValuedInstancePropertiesMap](#propertieswithnullvaluedinstancepropertiesmap) | data
validated payload | +| [PropertiesWithNullValuedInstancePropertiesMap](#propertieswithnullvaluedinstancepropertiesmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | ## PropertiesWithNullValuedInstanceProperties1 public static class PropertiesWithNullValuedInstanceProperties1
@@ -164,7 +170,9 @@ A schema class that validates payloads | [PropertiesWithNullValuedInstanceProperties1BoxedBoolean](#propertieswithnullvaluedinstanceproperties1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [PropertiesWithNullValuedInstanceProperties1BoxedMap](#propertieswithnullvaluedinstanceproperties1boxedmap) | validateAndBox([Map<?, ?>](#propertieswithnullvaluedinstancepropertiesmapbuilder) arg, SchemaConfiguration configuration) | | [PropertiesWithNullValuedInstanceProperties1BoxedList](#propertieswithnullvaluedinstanceproperties1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [PropertiesWithNullValuedInstanceProperties1Boxed](#propertieswithnullvaluedinstanceproperties1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## PropertiesWithNullValuedInstancePropertiesMapBuilder public class PropertiesWithNullValuedInstancePropertiesMapBuilder
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 | ## FooBoxed -public static abstract sealed class FooBoxed
+public sealed interface FooBoxed
permits
[FooBoxedVoid](#fooboxedvoid) -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 | ## Foo public static class Foo
diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/PropertyNamedRefThatIsNotAReference.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/PropertyNamedRefThatIsNotAReference.md index 45748c1d470..1d8a12ff4d3 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/PropertyNamedRefThatIsNotAReference.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/PropertynamesValidation.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/PropertynamesValidation.md index 77f225c3fb9..e69267abd96 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/PropertynamesValidation.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/PropertynamesValidation.md @@ -4,26 +4,26 @@ public class PropertynamesValidation
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 | [PropertynamesValidation.PropertynamesValidation1Boxed](#propertynamesvalidation1boxed)
abstract sealed validated payload class | -| static class | [PropertynamesValidation.PropertynamesValidation1BoxedVoid](#propertynamesvalidation1boxedvoid)
boxed class to store validated null payloads | -| static class | [PropertynamesValidation.PropertynamesValidation1BoxedBoolean](#propertynamesvalidation1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [PropertynamesValidation.PropertynamesValidation1BoxedNumber](#propertynamesvalidation1boxednumber)
boxed class to store validated Number payloads | -| static class | [PropertynamesValidation.PropertynamesValidation1BoxedString](#propertynamesvalidation1boxedstring)
boxed class to store validated String payloads | -| static class | [PropertynamesValidation.PropertynamesValidation1BoxedList](#propertynamesvalidation1boxedlist)
boxed class to store validated List payloads | -| static class | [PropertynamesValidation.PropertynamesValidation1BoxedMap](#propertynamesvalidation1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [PropertynamesValidation.PropertynamesValidation1Boxed](#propertynamesvalidation1boxed)
sealed interface for validated payloads | +| record | [PropertynamesValidation.PropertynamesValidation1BoxedVoid](#propertynamesvalidation1boxedvoid)
boxed class to store validated null payloads | +| record | [PropertynamesValidation.PropertynamesValidation1BoxedBoolean](#propertynamesvalidation1boxedboolean)
boxed class to store validated boolean payloads | +| record | [PropertynamesValidation.PropertynamesValidation1BoxedNumber](#propertynamesvalidation1boxednumber)
boxed class to store validated Number payloads | +| record | [PropertynamesValidation.PropertynamesValidation1BoxedString](#propertynamesvalidation1boxedstring)
boxed class to store validated String payloads | +| record | [PropertynamesValidation.PropertynamesValidation1BoxedList](#propertynamesvalidation1boxedlist)
boxed class to store validated List payloads | +| record | [PropertynamesValidation.PropertynamesValidation1BoxedMap](#propertynamesvalidation1boxedmap)
boxed class to store validated Map payloads | | static class | [PropertynamesValidation.PropertynamesValidation1](#propertynamesvalidation1)
schema class | -| static class | [PropertynamesValidation.PropertyNamesBoxed](#propertynamesboxed)
abstract sealed validated payload class | -| static class | [PropertynamesValidation.PropertyNamesBoxedString](#propertynamesboxedstring)
boxed class to store validated String payloads | +| sealed interface | [PropertynamesValidation.PropertyNamesBoxed](#propertynamesboxed)
sealed interface for validated payloads | +| record | [PropertynamesValidation.PropertyNamesBoxedString](#propertynamesboxedstring)
boxed class to store validated String payloads | | static class | [PropertynamesValidation.PropertyNames](#propertynames)
schema class | ## PropertynamesValidation1Boxed -public static abstract sealed class PropertynamesValidation1Boxed
+public sealed interface PropertynamesValidation1Boxed
permits
[PropertynamesValidation1BoxedVoid](#propertynamesvalidation1boxedvoid), [PropertynamesValidation1BoxedBoolean](#propertynamesvalidation1boxedboolean), @@ -32,103 +32,109 @@ permits
[PropertynamesValidation1BoxedList](#propertynamesvalidation1boxedlist), [PropertynamesValidation1BoxedMap](#propertynamesvalidation1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## PropertynamesValidation1BoxedVoid -public static final class PropertynamesValidation1BoxedVoid
-extends [PropertynamesValidation1Boxed](#propertynamesvalidation1boxed) +public record PropertynamesValidation1BoxedVoid
+implements [PropertynamesValidation1Boxed](#propertynamesvalidation1boxed) -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 | | --------------------------- | | PropertynamesValidation1BoxedVoid(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 | ## PropertynamesValidation1BoxedBoolean -public static final class PropertynamesValidation1BoxedBoolean
-extends [PropertynamesValidation1Boxed](#propertynamesvalidation1boxed) +public record PropertynamesValidation1BoxedBoolean
+implements [PropertynamesValidation1Boxed](#propertynamesvalidation1boxed) -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 | | --------------------------- | | PropertynamesValidation1BoxedBoolean(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 | ## PropertynamesValidation1BoxedNumber -public static final class PropertynamesValidation1BoxedNumber
-extends [PropertynamesValidation1Boxed](#propertynamesvalidation1boxed) +public record PropertynamesValidation1BoxedNumber
+implements [PropertynamesValidation1Boxed](#propertynamesvalidation1boxed) -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 | | --------------------------- | | PropertynamesValidation1BoxedNumber(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 | ## PropertynamesValidation1BoxedString -public static final class PropertynamesValidation1BoxedString
-extends [PropertynamesValidation1Boxed](#propertynamesvalidation1boxed) +public record PropertynamesValidation1BoxedString
+implements [PropertynamesValidation1Boxed](#propertynamesvalidation1boxed) -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 | | --------------------------- | | PropertynamesValidation1BoxedString(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 | ## PropertynamesValidation1BoxedList -public static final class PropertynamesValidation1BoxedList
-extends [PropertynamesValidation1Boxed](#propertynamesvalidation1boxed) +public record PropertynamesValidation1BoxedList
+implements [PropertynamesValidation1Boxed](#propertynamesvalidation1boxed) -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 | | --------------------------- | | PropertynamesValidation1BoxedList(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 | ## PropertynamesValidation1BoxedMap -public static final class PropertynamesValidation1BoxedMap
-extends [PropertynamesValidation1Boxed](#propertynamesvalidation1boxed) +public record PropertynamesValidation1BoxedMap
+implements [PropertynamesValidation1Boxed](#propertynamesvalidation1boxed) -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 | | --------------------------- | | PropertynamesValidation1BoxedMap(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 | ## PropertynamesValidation1 public static class PropertynamesValidation1
@@ -160,29 +166,32 @@ A schema class that validates payloads | [PropertynamesValidation1BoxedBoolean](#propertynamesvalidation1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [PropertynamesValidation1BoxedMap](#propertynamesvalidation1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [PropertynamesValidation1BoxedList](#propertynamesvalidation1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [PropertynamesValidation1Boxed](#propertynamesvalidation1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## PropertyNamesBoxed -public static abstract sealed class PropertyNamesBoxed
+public sealed interface PropertyNamesBoxed
permits
[PropertyNamesBoxedString](#propertynamesboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## PropertyNamesBoxedString -public static final class PropertyNamesBoxedString
-extends [PropertyNamesBoxed](#propertynamesboxed) +public record PropertyNamesBoxedString
+implements [PropertyNamesBoxed](#propertynamesboxed) -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 | | --------------------------- | | PropertyNamesBoxedString(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 | ## PropertyNames public static class PropertyNames
@@ -223,5 +232,7 @@ String validatedPayload = PropertynamesValidation.PropertyNames.validate( | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | | [PropertyNamesBoxedString](#propertynamesboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [PropertyNamesBoxed](#propertynamesboxed) | 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_1_0_unit_test/java/docs/components/schemas/RegexFormat.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/RegexFormat.md index efa47d86c32..11d63e7de13 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/RegexFormat.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/RegexFormat.md @@ -4,23 +4,23 @@ public class RegexFormat
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 | [RegexFormat.RegexFormat1Boxed](#regexformat1boxed)
abstract sealed validated payload class | -| static class | [RegexFormat.RegexFormat1BoxedVoid](#regexformat1boxedvoid)
boxed class to store validated null payloads | -| static class | [RegexFormat.RegexFormat1BoxedBoolean](#regexformat1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [RegexFormat.RegexFormat1BoxedNumber](#regexformat1boxednumber)
boxed class to store validated Number payloads | -| static class | [RegexFormat.RegexFormat1BoxedString](#regexformat1boxedstring)
boxed class to store validated String payloads | -| static class | [RegexFormat.RegexFormat1BoxedList](#regexformat1boxedlist)
boxed class to store validated List payloads | -| static class | [RegexFormat.RegexFormat1BoxedMap](#regexformat1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [RegexFormat.RegexFormat1Boxed](#regexformat1boxed)
sealed interface for validated payloads | +| record | [RegexFormat.RegexFormat1BoxedVoid](#regexformat1boxedvoid)
boxed class to store validated null payloads | +| record | [RegexFormat.RegexFormat1BoxedBoolean](#regexformat1boxedboolean)
boxed class to store validated boolean payloads | +| record | [RegexFormat.RegexFormat1BoxedNumber](#regexformat1boxednumber)
boxed class to store validated Number payloads | +| record | [RegexFormat.RegexFormat1BoxedString](#regexformat1boxedstring)
boxed class to store validated String payloads | +| record | [RegexFormat.RegexFormat1BoxedList](#regexformat1boxedlist)
boxed class to store validated List payloads | +| record | [RegexFormat.RegexFormat1BoxedMap](#regexformat1boxedmap)
boxed class to store validated Map payloads | | static class | [RegexFormat.RegexFormat1](#regexformat1)
schema class | ## RegexFormat1Boxed -public static abstract sealed class RegexFormat1Boxed
+public sealed interface RegexFormat1Boxed
permits
[RegexFormat1BoxedVoid](#regexformat1boxedvoid), [RegexFormat1BoxedBoolean](#regexformat1boxedboolean), @@ -29,103 +29,109 @@ permits
[RegexFormat1BoxedList](#regexformat1boxedlist), [RegexFormat1BoxedMap](#regexformat1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## RegexFormat1BoxedVoid -public static final class RegexFormat1BoxedVoid
-extends [RegexFormat1Boxed](#regexformat1boxed) +public record RegexFormat1BoxedVoid
+implements [RegexFormat1Boxed](#regexformat1boxed) -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 | | --------------------------- | | RegexFormat1BoxedVoid(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 | ## RegexFormat1BoxedBoolean -public static final class RegexFormat1BoxedBoolean
-extends [RegexFormat1Boxed](#regexformat1boxed) +public record RegexFormat1BoxedBoolean
+implements [RegexFormat1Boxed](#regexformat1boxed) -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 | | --------------------------- | | RegexFormat1BoxedBoolean(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 | ## RegexFormat1BoxedNumber -public static final class RegexFormat1BoxedNumber
-extends [RegexFormat1Boxed](#regexformat1boxed) +public record RegexFormat1BoxedNumber
+implements [RegexFormat1Boxed](#regexformat1boxed) -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 | | --------------------------- | | RegexFormat1BoxedNumber(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 | ## RegexFormat1BoxedString -public static final class RegexFormat1BoxedString
-extends [RegexFormat1Boxed](#regexformat1boxed) +public record RegexFormat1BoxedString
+implements [RegexFormat1Boxed](#regexformat1boxed) -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 | | --------------------------- | | RegexFormat1BoxedString(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 | ## RegexFormat1BoxedList -public static final class RegexFormat1BoxedList
-extends [RegexFormat1Boxed](#regexformat1boxed) +public record RegexFormat1BoxedList
+implements [RegexFormat1Boxed](#regexformat1boxed) -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 | | --------------------------- | | RegexFormat1BoxedList(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 | ## RegexFormat1BoxedMap -public static final class RegexFormat1BoxedMap
-extends [RegexFormat1Boxed](#regexformat1boxed) +public record RegexFormat1BoxedMap
+implements [RegexFormat1Boxed](#regexformat1boxed) -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 | | --------------------------- | | RegexFormat1BoxedMap(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 | ## RegexFormat1 public static class RegexFormat1
@@ -157,5 +163,7 @@ A schema class that validates payloads | [RegexFormat1BoxedBoolean](#regexformat1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [RegexFormat1BoxedMap](#regexformat1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [RegexFormat1BoxedList](#regexformat1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [RegexFormat1Boxed](#regexformat1boxed) | 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_1_0_unit_test/java/docs/components/schemas/RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.md index 856e3eed7aa..0947b3fc9e2 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.md @@ -4,29 +4,29 @@ public class RegexesAreNotAnchoredByDefaultAndAreCaseSensitive
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 | [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1Boxed](#regexesarenotanchoredbydefaultandarecasesensitive1boxed)
abstract sealed validated payload class | -| static class | [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedVoid](#regexesarenotanchoredbydefaultandarecasesensitive1boxedvoid)
boxed class to store validated null payloads | -| static class | [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedBoolean](#regexesarenotanchoredbydefaultandarecasesensitive1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedNumber](#regexesarenotanchoredbydefaultandarecasesensitive1boxednumber)
boxed class to store validated Number payloads | -| static class | [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedString](#regexesarenotanchoredbydefaultandarecasesensitive1boxedstring)
boxed class to store validated String payloads | -| static class | [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedList](#regexesarenotanchoredbydefaultandarecasesensitive1boxedlist)
boxed class to store validated List payloads | -| static class | [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedMap](#regexesarenotanchoredbydefaultandarecasesensitive1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1Boxed](#regexesarenotanchoredbydefaultandarecasesensitive1boxed)
sealed interface for validated payloads | +| record | [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedVoid](#regexesarenotanchoredbydefaultandarecasesensitive1boxedvoid)
boxed class to store validated null payloads | +| record | [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedBoolean](#regexesarenotanchoredbydefaultandarecasesensitive1boxedboolean)
boxed class to store validated boolean payloads | +| record | [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedNumber](#regexesarenotanchoredbydefaultandarecasesensitive1boxednumber)
boxed class to store validated Number payloads | +| record | [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedString](#regexesarenotanchoredbydefaultandarecasesensitive1boxedstring)
boxed class to store validated String payloads | +| record | [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedList](#regexesarenotanchoredbydefaultandarecasesensitive1boxedlist)
boxed class to store validated List payloads | +| record | [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedMap](#regexesarenotanchoredbydefaultandarecasesensitive1boxedmap)
boxed class to store validated Map payloads | | static class | [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1](#regexesarenotanchoredbydefaultandarecasesensitive1)
schema class | -| static class | [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.XBoxed](#xboxed)
abstract sealed validated payload class | -| static class | [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.XBoxedString](#xboxedstring)
boxed class to store validated String payloads | +| sealed interface | [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.XBoxed](#xboxed)
sealed interface for validated payloads | +| record | [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.XBoxedString](#xboxedstring)
boxed class to store validated String payloads | | static class | [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.X](#x)
schema class | -| static class | [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.Schema092Boxed](#schema092boxed)
abstract sealed validated payload class | -| static class | [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.Schema092BoxedBoolean](#schema092boxedboolean)
boxed class to store validated boolean payloads | +| sealed interface | [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.Schema092Boxed](#schema092boxed)
sealed interface for validated payloads | +| record | [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.Schema092BoxedBoolean](#schema092boxedboolean)
boxed class to store validated boolean payloads | | static class | [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.Schema092](#schema092)
schema class | ## RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1Boxed -public static abstract sealed class RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1Boxed
+public sealed interface RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1Boxed
permits
[RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedVoid](#regexesarenotanchoredbydefaultandarecasesensitive1boxedvoid), [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedBoolean](#regexesarenotanchoredbydefaultandarecasesensitive1boxedboolean), @@ -35,103 +35,109 @@ permits
[RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedList](#regexesarenotanchoredbydefaultandarecasesensitive1boxedlist), [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedMap](#regexesarenotanchoredbydefaultandarecasesensitive1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedVoid -public static final class RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedVoid
-extends [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1Boxed](#regexesarenotanchoredbydefaultandarecasesensitive1boxed) +public record RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedVoid
+implements [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1Boxed](#regexesarenotanchoredbydefaultandarecasesensitive1boxed) -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 | | --------------------------- | | RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedVoid(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 | ## RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedBoolean -public static final class RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedBoolean
-extends [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1Boxed](#regexesarenotanchoredbydefaultandarecasesensitive1boxed) +public record RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedBoolean
+implements [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1Boxed](#regexesarenotanchoredbydefaultandarecasesensitive1boxed) -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 | | --------------------------- | | RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedBoolean(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 | ## RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedNumber -public static final class RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedNumber
-extends [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1Boxed](#regexesarenotanchoredbydefaultandarecasesensitive1boxed) +public record RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedNumber
+implements [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1Boxed](#regexesarenotanchoredbydefaultandarecasesensitive1boxed) -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 | | --------------------------- | | RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedNumber(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 | ## RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedString -public static final class RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedString
-extends [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1Boxed](#regexesarenotanchoredbydefaultandarecasesensitive1boxed) +public record RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedString
+implements [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1Boxed](#regexesarenotanchoredbydefaultandarecasesensitive1boxed) -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 | | --------------------------- | | RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedString(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 | ## RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedList -public static final class RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedList
-extends [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1Boxed](#regexesarenotanchoredbydefaultandarecasesensitive1boxed) +public record RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedList
+implements [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1Boxed](#regexesarenotanchoredbydefaultandarecasesensitive1boxed) -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 | | --------------------------- | | RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedList(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 | ## RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedMap -public static final class RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedMap
-extends [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1Boxed](#regexesarenotanchoredbydefaultandarecasesensitive1boxed) +public record RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedMap
+implements [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1Boxed](#regexesarenotanchoredbydefaultandarecasesensitive1boxed) -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 | | --------------------------- | | RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedMap(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 | ## RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1 public static class RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1
@@ -163,29 +169,32 @@ A schema class that validates payloads | [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedBoolean](#regexesarenotanchoredbydefaultandarecasesensitive1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedMap](#regexesarenotanchoredbydefaultandarecasesensitive1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedList](#regexesarenotanchoredbydefaultandarecasesensitive1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1Boxed](#regexesarenotanchoredbydefaultandarecasesensitive1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## XBoxed -public static abstract sealed class XBoxed
+public sealed interface XBoxed
permits
[XBoxedString](#xboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## XBoxedString -public static final class XBoxedString
-extends [XBoxed](#xboxed) +public record XBoxedString
+implements [XBoxed](#xboxed) -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 | | --------------------------- | | XBoxedString(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 | ## X public static class X
@@ -199,27 +208,28 @@ A schema class that validates payloads | validateAndBox | ## Schema092Boxed -public static abstract sealed class Schema092Boxed
+public sealed interface Schema092Boxed
permits
[Schema092BoxedBoolean](#schema092boxedboolean) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Schema092BoxedBoolean -public static final class Schema092BoxedBoolean
-extends [Schema092Boxed](#schema092boxed) +public record Schema092BoxedBoolean
+implements [Schema092Boxed](#schema092boxed) -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 | | --------------------------- | | Schema092BoxedBoolean(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 | ## Schema092 public static class Schema092
diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/RelativeJsonPointerFormat.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/RelativeJsonPointerFormat.md index 0d4605cf12f..ec19588c4a7 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/RelativeJsonPointerFormat.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/RelativeJsonPointerFormat.md @@ -4,23 +4,23 @@ public class RelativeJsonPointerFormat
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 | [RelativeJsonPointerFormat.RelativeJsonPointerFormat1Boxed](#relativejsonpointerformat1boxed)
abstract sealed validated payload class | -| static class | [RelativeJsonPointerFormat.RelativeJsonPointerFormat1BoxedVoid](#relativejsonpointerformat1boxedvoid)
boxed class to store validated null payloads | -| static class | [RelativeJsonPointerFormat.RelativeJsonPointerFormat1BoxedBoolean](#relativejsonpointerformat1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [RelativeJsonPointerFormat.RelativeJsonPointerFormat1BoxedNumber](#relativejsonpointerformat1boxednumber)
boxed class to store validated Number payloads | -| static class | [RelativeJsonPointerFormat.RelativeJsonPointerFormat1BoxedString](#relativejsonpointerformat1boxedstring)
boxed class to store validated String payloads | -| static class | [RelativeJsonPointerFormat.RelativeJsonPointerFormat1BoxedList](#relativejsonpointerformat1boxedlist)
boxed class to store validated List payloads | -| static class | [RelativeJsonPointerFormat.RelativeJsonPointerFormat1BoxedMap](#relativejsonpointerformat1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [RelativeJsonPointerFormat.RelativeJsonPointerFormat1Boxed](#relativejsonpointerformat1boxed)
sealed interface for validated payloads | +| record | [RelativeJsonPointerFormat.RelativeJsonPointerFormat1BoxedVoid](#relativejsonpointerformat1boxedvoid)
boxed class to store validated null payloads | +| record | [RelativeJsonPointerFormat.RelativeJsonPointerFormat1BoxedBoolean](#relativejsonpointerformat1boxedboolean)
boxed class to store validated boolean payloads | +| record | [RelativeJsonPointerFormat.RelativeJsonPointerFormat1BoxedNumber](#relativejsonpointerformat1boxednumber)
boxed class to store validated Number payloads | +| record | [RelativeJsonPointerFormat.RelativeJsonPointerFormat1BoxedString](#relativejsonpointerformat1boxedstring)
boxed class to store validated String payloads | +| record | [RelativeJsonPointerFormat.RelativeJsonPointerFormat1BoxedList](#relativejsonpointerformat1boxedlist)
boxed class to store validated List payloads | +| record | [RelativeJsonPointerFormat.RelativeJsonPointerFormat1BoxedMap](#relativejsonpointerformat1boxedmap)
boxed class to store validated Map payloads | | static class | [RelativeJsonPointerFormat.RelativeJsonPointerFormat1](#relativejsonpointerformat1)
schema class | ## RelativeJsonPointerFormat1Boxed -public static abstract sealed class RelativeJsonPointerFormat1Boxed
+public sealed interface RelativeJsonPointerFormat1Boxed
permits
[RelativeJsonPointerFormat1BoxedVoid](#relativejsonpointerformat1boxedvoid), [RelativeJsonPointerFormat1BoxedBoolean](#relativejsonpointerformat1boxedboolean), @@ -29,103 +29,109 @@ permits
[RelativeJsonPointerFormat1BoxedList](#relativejsonpointerformat1boxedlist), [RelativeJsonPointerFormat1BoxedMap](#relativejsonpointerformat1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## RelativeJsonPointerFormat1BoxedVoid -public static final class RelativeJsonPointerFormat1BoxedVoid
-extends [RelativeJsonPointerFormat1Boxed](#relativejsonpointerformat1boxed) +public record RelativeJsonPointerFormat1BoxedVoid
+implements [RelativeJsonPointerFormat1Boxed](#relativejsonpointerformat1boxed) -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 | | --------------------------- | | RelativeJsonPointerFormat1BoxedVoid(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 | ## RelativeJsonPointerFormat1BoxedBoolean -public static final class RelativeJsonPointerFormat1BoxedBoolean
-extends [RelativeJsonPointerFormat1Boxed](#relativejsonpointerformat1boxed) +public record RelativeJsonPointerFormat1BoxedBoolean
+implements [RelativeJsonPointerFormat1Boxed](#relativejsonpointerformat1boxed) -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 | | --------------------------- | | RelativeJsonPointerFormat1BoxedBoolean(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 | ## RelativeJsonPointerFormat1BoxedNumber -public static final class RelativeJsonPointerFormat1BoxedNumber
-extends [RelativeJsonPointerFormat1Boxed](#relativejsonpointerformat1boxed) +public record RelativeJsonPointerFormat1BoxedNumber
+implements [RelativeJsonPointerFormat1Boxed](#relativejsonpointerformat1boxed) -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 | | --------------------------- | | RelativeJsonPointerFormat1BoxedNumber(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 | ## RelativeJsonPointerFormat1BoxedString -public static final class RelativeJsonPointerFormat1BoxedString
-extends [RelativeJsonPointerFormat1Boxed](#relativejsonpointerformat1boxed) +public record RelativeJsonPointerFormat1BoxedString
+implements [RelativeJsonPointerFormat1Boxed](#relativejsonpointerformat1boxed) -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 | | --------------------------- | | RelativeJsonPointerFormat1BoxedString(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 | ## RelativeJsonPointerFormat1BoxedList -public static final class RelativeJsonPointerFormat1BoxedList
-extends [RelativeJsonPointerFormat1Boxed](#relativejsonpointerformat1boxed) +public record RelativeJsonPointerFormat1BoxedList
+implements [RelativeJsonPointerFormat1Boxed](#relativejsonpointerformat1boxed) -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 | | --------------------------- | | RelativeJsonPointerFormat1BoxedList(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 | ## RelativeJsonPointerFormat1BoxedMap -public static final class RelativeJsonPointerFormat1BoxedMap
-extends [RelativeJsonPointerFormat1Boxed](#relativejsonpointerformat1boxed) +public record RelativeJsonPointerFormat1BoxedMap
+implements [RelativeJsonPointerFormat1Boxed](#relativejsonpointerformat1boxed) -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 | | --------------------------- | | RelativeJsonPointerFormat1BoxedMap(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 | ## RelativeJsonPointerFormat1 public static class RelativeJsonPointerFormat1
@@ -157,5 +163,7 @@ A schema class that validates payloads | [RelativeJsonPointerFormat1BoxedBoolean](#relativejsonpointerformat1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [RelativeJsonPointerFormat1BoxedMap](#relativejsonpointerformat1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [RelativeJsonPointerFormat1BoxedList](#relativejsonpointerformat1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [RelativeJsonPointerFormat1Boxed](#relativejsonpointerformat1boxed) | 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_1_0_unit_test/java/docs/components/schemas/RequiredDefaultValidation.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/RequiredDefaultValidation.md index e50e0a3c2e1..365a4f96ff4 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/RequiredDefaultValidation.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames.md index 94e20aa9733..9fe35d634ae 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames.md @@ -4,7 +4,7 @@ public class RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames
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 | [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames.RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxed)
abstract sealed validated payload class | -| static class | [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames.RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedVoid](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxedvoid)
boxed class to store validated null payloads | -| static class | [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames.RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedBoolean](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames.RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedNumber](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxednumber)
boxed class to store validated Number payloads | -| static class | [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames.RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedString](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxedstring)
boxed class to store validated String payloads | -| static class | [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames.RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedList](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxedlist)
boxed class to store validated List payloads | -| static class | [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames.RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedMap](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames.RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxed)
sealed interface for validated payloads | +| record | [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames.RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedVoid](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxedvoid)
boxed class to store validated null payloads | +| record | [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames.RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedBoolean](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxedboolean)
boxed class to store validated boolean payloads | +| record | [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames.RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedNumber](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxednumber)
boxed class to store validated Number payloads | +| record | [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames.RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedString](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxedstring)
boxed class to store validated String payloads | +| record | [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames.RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedList](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxedlist)
boxed class to store validated List payloads | +| record | [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames.RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedMap](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxedmap)
boxed class to store validated Map payloads | | static class | [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames.RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1)
schema class | | static class | [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames.RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesMapBuilder](#requiredpropertieswhosenamesarejavascriptobjectpropertynamesmapbuilder)
builder for Map payloads | | static class | [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames.RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesMap](#requiredpropertieswhosenamesarejavascriptobjectpropertynamesmap)
output class for Map payloads | ## RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed -public static abstract sealed class RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed
+public sealed interface RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed
permits
[RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedVoid](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxedvoid), [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedBoolean](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxedboolean), @@ -33,103 +33,109 @@ permits
[RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedList](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxedlist), [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedMap](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedVoid -public static final class RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedVoid
-extends [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxed) +public record RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedVoid
+implements [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxed) -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 | | --------------------------- | | RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedVoid(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 | ## RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedBoolean -public static final class RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedBoolean
-extends [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxed) +public record RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedBoolean
+implements [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxed) -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 | | --------------------------- | | RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedBoolean(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 | ## RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedNumber -public static final class RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedNumber
-extends [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxed) +public record RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedNumber
+implements [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxed) -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 | | --------------------------- | | RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedNumber(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 | ## RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedString -public static final class RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedString
-extends [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxed) +public record RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedString
+implements [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxed) -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 | | --------------------------- | | RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedString(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 | ## RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedList -public static final class RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedList
-extends [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxed) +public record RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedList
+implements [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxed) -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 | | --------------------------- | | RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedList(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 | ## RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedMap -public static final class RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedMap
-extends [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxed) +public record RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedMap
+implements [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxed) -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 | | --------------------------- | | RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedMap([RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesMap](#requiredpropertieswhosenamesarejavascriptobjectpropertynamesmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesMap](#requiredpropertieswhosenamesarejavascriptobjectpropertynamesmap) | data
validated payload | +| [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesMap](#requiredpropertieswhosenamesarejavascriptobjectpropertynamesmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | ## RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1 public static class RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1
@@ -161,7 +167,9 @@ A schema class that validates payloads | [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedBoolean](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedMap](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxedmap) | validateAndBox([Map<?, ?>](#requiredpropertieswhosenamesarejavascriptobjectpropertynamesmapbuilder) arg, SchemaConfiguration configuration) | | [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedList](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed](#requiredpropertieswhosenamesarejavascriptobjectpropertynames1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesMap000Builder public class RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesMap000Builder
builder for `Map` diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/RequiredValidation.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/RequiredValidation.md index 8b9f025df75..8db2b0fbc2b 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/RequiredValidation.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/RequiredWithEmptyArray.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/RequiredWithEmptyArray.md index 91edade5906..a1761569c18 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/RequiredWithEmptyArray.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/RequiredWithEscapedCharacters.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/RequiredWithEscapedCharacters.md index 284e500c4d3..753c5d0241d 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/RequiredWithEscapedCharacters.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/SimpleEnumValidation.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/SimpleEnumValidation.md index a1927ab15d9..f1b951c38a5 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/SimpleEnumValidation.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/SimpleEnumValidation.md @@ -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_1_0_unit_test/java/docs/components/schemas/SingleDependency.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/SingleDependency.md index f013ae66dc6..feb7bdac989 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/SingleDependency.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/SingleDependency.md @@ -4,23 +4,23 @@ public class SingleDependency
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 | [SingleDependency.SingleDependency1Boxed](#singledependency1boxed)
abstract sealed validated payload class | -| static class | [SingleDependency.SingleDependency1BoxedVoid](#singledependency1boxedvoid)
boxed class to store validated null payloads | -| static class | [SingleDependency.SingleDependency1BoxedBoolean](#singledependency1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [SingleDependency.SingleDependency1BoxedNumber](#singledependency1boxednumber)
boxed class to store validated Number payloads | -| static class | [SingleDependency.SingleDependency1BoxedString](#singledependency1boxedstring)
boxed class to store validated String payloads | -| static class | [SingleDependency.SingleDependency1BoxedList](#singledependency1boxedlist)
boxed class to store validated List payloads | -| static class | [SingleDependency.SingleDependency1BoxedMap](#singledependency1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [SingleDependency.SingleDependency1Boxed](#singledependency1boxed)
sealed interface for validated payloads | +| record | [SingleDependency.SingleDependency1BoxedVoid](#singledependency1boxedvoid)
boxed class to store validated null payloads | +| record | [SingleDependency.SingleDependency1BoxedBoolean](#singledependency1boxedboolean)
boxed class to store validated boolean payloads | +| record | [SingleDependency.SingleDependency1BoxedNumber](#singledependency1boxednumber)
boxed class to store validated Number payloads | +| record | [SingleDependency.SingleDependency1BoxedString](#singledependency1boxedstring)
boxed class to store validated String payloads | +| record | [SingleDependency.SingleDependency1BoxedList](#singledependency1boxedlist)
boxed class to store validated List payloads | +| record | [SingleDependency.SingleDependency1BoxedMap](#singledependency1boxedmap)
boxed class to store validated Map payloads | | static class | [SingleDependency.SingleDependency1](#singledependency1)
schema class | ## SingleDependency1Boxed -public static abstract sealed class SingleDependency1Boxed
+public sealed interface SingleDependency1Boxed
permits
[SingleDependency1BoxedVoid](#singledependency1boxedvoid), [SingleDependency1BoxedBoolean](#singledependency1boxedboolean), @@ -29,103 +29,109 @@ permits
[SingleDependency1BoxedList](#singledependency1boxedlist), [SingleDependency1BoxedMap](#singledependency1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## SingleDependency1BoxedVoid -public static final class SingleDependency1BoxedVoid
-extends [SingleDependency1Boxed](#singledependency1boxed) +public record SingleDependency1BoxedVoid
+implements [SingleDependency1Boxed](#singledependency1boxed) -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 | | --------------------------- | | SingleDependency1BoxedVoid(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 | ## SingleDependency1BoxedBoolean -public static final class SingleDependency1BoxedBoolean
-extends [SingleDependency1Boxed](#singledependency1boxed) +public record SingleDependency1BoxedBoolean
+implements [SingleDependency1Boxed](#singledependency1boxed) -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 | | --------------------------- | | SingleDependency1BoxedBoolean(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 | ## SingleDependency1BoxedNumber -public static final class SingleDependency1BoxedNumber
-extends [SingleDependency1Boxed](#singledependency1boxed) +public record SingleDependency1BoxedNumber
+implements [SingleDependency1Boxed](#singledependency1boxed) -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 | | --------------------------- | | SingleDependency1BoxedNumber(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 | ## SingleDependency1BoxedString -public static final class SingleDependency1BoxedString
-extends [SingleDependency1Boxed](#singledependency1boxed) +public record SingleDependency1BoxedString
+implements [SingleDependency1Boxed](#singledependency1boxed) -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 | | --------------------------- | | SingleDependency1BoxedString(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 | ## SingleDependency1BoxedList -public static final class SingleDependency1BoxedList
-extends [SingleDependency1Boxed](#singledependency1boxed) +public record SingleDependency1BoxedList
+implements [SingleDependency1Boxed](#singledependency1boxed) -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 | | --------------------------- | | SingleDependency1BoxedList(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 | ## SingleDependency1BoxedMap -public static final class SingleDependency1BoxedMap
-extends [SingleDependency1Boxed](#singledependency1boxed) +public record SingleDependency1BoxedMap
+implements [SingleDependency1Boxed](#singledependency1boxed) -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 | | --------------------------- | | SingleDependency1BoxedMap(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 | ## SingleDependency1 public static class SingleDependency1
@@ -165,5 +171,7 @@ A schema class that validates payloads | [SingleDependency1BoxedBoolean](#singledependency1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [SingleDependency1BoxedMap](#singledependency1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [SingleDependency1BoxedList](#singledependency1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [SingleDependency1Boxed](#singledependency1boxed) | 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_1_0_unit_test/java/docs/components/schemas/SmallMultipleOfLargeInteger.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/SmallMultipleOfLargeInteger.md index 93b89796684..e7db63f15b8 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/SmallMultipleOfLargeInteger.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/SmallMultipleOfLargeInteger.md @@ -4,38 +4,39 @@ public class SmallMultipleOfLargeInteger
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 | [SmallMultipleOfLargeInteger.SmallMultipleOfLargeInteger1Boxed](#smallmultipleoflargeinteger1boxed)
abstract sealed validated payload class | -| static class | [SmallMultipleOfLargeInteger.SmallMultipleOfLargeInteger1BoxedNumber](#smallmultipleoflargeinteger1boxednumber)
boxed class to store validated Number payloads | +| sealed interface | [SmallMultipleOfLargeInteger.SmallMultipleOfLargeInteger1Boxed](#smallmultipleoflargeinteger1boxed)
sealed interface for validated payloads | +| record | [SmallMultipleOfLargeInteger.SmallMultipleOfLargeInteger1BoxedNumber](#smallmultipleoflargeinteger1boxednumber)
boxed class to store validated Number payloads | | static class | [SmallMultipleOfLargeInteger.SmallMultipleOfLargeInteger1](#smallmultipleoflargeinteger1)
schema class | ## SmallMultipleOfLargeInteger1Boxed -public static abstract sealed class SmallMultipleOfLargeInteger1Boxed
+public sealed interface SmallMultipleOfLargeInteger1Boxed
permits
[SmallMultipleOfLargeInteger1BoxedNumber](#smallmultipleoflargeinteger1boxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## SmallMultipleOfLargeInteger1BoxedNumber -public static final class SmallMultipleOfLargeInteger1BoxedNumber
-extends [SmallMultipleOfLargeInteger1Boxed](#smallmultipleoflargeinteger1boxed) +public record SmallMultipleOfLargeInteger1BoxedNumber
+implements [SmallMultipleOfLargeInteger1Boxed](#smallmultipleoflargeinteger1boxed) -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 | | --------------------------- | | SmallMultipleOfLargeInteger1BoxedNumber(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 | ## SmallMultipleOfLargeInteger1 public static class SmallMultipleOfLargeInteger1
@@ -77,5 +78,7 @@ int validatedPayload = SmallMultipleOfLargeInteger.SmallMultipleOfLargeInteger1. | ----------------- | ---------------------- | | long | validate(long arg, SchemaConfiguration configuration) | | [SmallMultipleOfLargeInteger1BoxedNumber](#smallmultipleoflargeinteger1boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [SmallMultipleOfLargeInteger1Boxed](#smallmultipleoflargeinteger1boxed) | 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_1_0_unit_test/java/docs/components/schemas/StringTypeMatchesStrings.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/StringTypeMatchesStrings.md index 3d2c0b40869..5166ec0ed59 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/StringTypeMatchesStrings.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/TimeFormat.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/TimeFormat.md index 31f58c66057..aadc93a5b33 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/TimeFormat.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/TimeFormat.md @@ -4,23 +4,23 @@ public class TimeFormat
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 | [TimeFormat.TimeFormat1Boxed](#timeformat1boxed)
abstract sealed validated payload class | -| static class | [TimeFormat.TimeFormat1BoxedVoid](#timeformat1boxedvoid)
boxed class to store validated null payloads | -| static class | [TimeFormat.TimeFormat1BoxedBoolean](#timeformat1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [TimeFormat.TimeFormat1BoxedNumber](#timeformat1boxednumber)
boxed class to store validated Number payloads | -| static class | [TimeFormat.TimeFormat1BoxedString](#timeformat1boxedstring)
boxed class to store validated String payloads | -| static class | [TimeFormat.TimeFormat1BoxedList](#timeformat1boxedlist)
boxed class to store validated List payloads | -| static class | [TimeFormat.TimeFormat1BoxedMap](#timeformat1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [TimeFormat.TimeFormat1Boxed](#timeformat1boxed)
sealed interface for validated payloads | +| record | [TimeFormat.TimeFormat1BoxedVoid](#timeformat1boxedvoid)
boxed class to store validated null payloads | +| record | [TimeFormat.TimeFormat1BoxedBoolean](#timeformat1boxedboolean)
boxed class to store validated boolean payloads | +| record | [TimeFormat.TimeFormat1BoxedNumber](#timeformat1boxednumber)
boxed class to store validated Number payloads | +| record | [TimeFormat.TimeFormat1BoxedString](#timeformat1boxedstring)
boxed class to store validated String payloads | +| record | [TimeFormat.TimeFormat1BoxedList](#timeformat1boxedlist)
boxed class to store validated List payloads | +| record | [TimeFormat.TimeFormat1BoxedMap](#timeformat1boxedmap)
boxed class to store validated Map payloads | | static class | [TimeFormat.TimeFormat1](#timeformat1)
schema class | ## TimeFormat1Boxed -public static abstract sealed class TimeFormat1Boxed
+public sealed interface TimeFormat1Boxed
permits
[TimeFormat1BoxedVoid](#timeformat1boxedvoid), [TimeFormat1BoxedBoolean](#timeformat1boxedboolean), @@ -29,103 +29,109 @@ permits
[TimeFormat1BoxedList](#timeformat1boxedlist), [TimeFormat1BoxedMap](#timeformat1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## TimeFormat1BoxedVoid -public static final class TimeFormat1BoxedVoid
-extends [TimeFormat1Boxed](#timeformat1boxed) +public record TimeFormat1BoxedVoid
+implements [TimeFormat1Boxed](#timeformat1boxed) -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 | | --------------------------- | | TimeFormat1BoxedVoid(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 | ## TimeFormat1BoxedBoolean -public static final class TimeFormat1BoxedBoolean
-extends [TimeFormat1Boxed](#timeformat1boxed) +public record TimeFormat1BoxedBoolean
+implements [TimeFormat1Boxed](#timeformat1boxed) -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 | | --------------------------- | | TimeFormat1BoxedBoolean(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 | ## TimeFormat1BoxedNumber -public static final class TimeFormat1BoxedNumber
-extends [TimeFormat1Boxed](#timeformat1boxed) +public record TimeFormat1BoxedNumber
+implements [TimeFormat1Boxed](#timeformat1boxed) -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 | | --------------------------- | | TimeFormat1BoxedNumber(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 | ## TimeFormat1BoxedString -public static final class TimeFormat1BoxedString
-extends [TimeFormat1Boxed](#timeformat1boxed) +public record TimeFormat1BoxedString
+implements [TimeFormat1Boxed](#timeformat1boxed) -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 | | --------------------------- | | TimeFormat1BoxedString(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 | ## TimeFormat1BoxedList -public static final class TimeFormat1BoxedList
-extends [TimeFormat1Boxed](#timeformat1boxed) +public record TimeFormat1BoxedList
+implements [TimeFormat1Boxed](#timeformat1boxed) -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 | | --------------------------- | | TimeFormat1BoxedList(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 | ## TimeFormat1BoxedMap -public static final class TimeFormat1BoxedMap
-extends [TimeFormat1Boxed](#timeformat1boxed) +public record TimeFormat1BoxedMap
+implements [TimeFormat1Boxed](#timeformat1boxed) -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 | | --------------------------- | | TimeFormat1BoxedMap(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 | ## TimeFormat1 public static class TimeFormat1
@@ -157,5 +163,7 @@ A schema class that validates payloads | [TimeFormat1BoxedBoolean](#timeformat1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [TimeFormat1BoxedMap](#timeformat1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [TimeFormat1BoxedList](#timeformat1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [TimeFormat1Boxed](#timeformat1boxed) | 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_1_0_unit_test/java/docs/components/schemas/TypeArrayObjectOrNull.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/TypeArrayObjectOrNull.md index adfc730c4de..0c1aaebdcbb 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/TypeArrayObjectOrNull.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/TypeArrayObjectOrNull.md @@ -4,74 +4,77 @@ public class TypeArrayObjectOrNull
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 | [TypeArrayObjectOrNull.TypeArrayObjectOrNull1Boxed](#typearrayobjectornull1boxed)
abstract sealed validated payload class | -| static class | [TypeArrayObjectOrNull.TypeArrayObjectOrNull1BoxedList](#typearrayobjectornull1boxedlist)
boxed class to store validated List payloads | -| static class | [TypeArrayObjectOrNull.TypeArrayObjectOrNull1BoxedMap](#typearrayobjectornull1boxedmap)
boxed class to store validated Map payloads | -| static class | [TypeArrayObjectOrNull.TypeArrayObjectOrNull1BoxedVoid](#typearrayobjectornull1boxedvoid)
boxed class to store validated null payloads | +| sealed interface | [TypeArrayObjectOrNull.TypeArrayObjectOrNull1Boxed](#typearrayobjectornull1boxed)
sealed interface for validated payloads | +| record | [TypeArrayObjectOrNull.TypeArrayObjectOrNull1BoxedList](#typearrayobjectornull1boxedlist)
boxed class to store validated List payloads | +| record | [TypeArrayObjectOrNull.TypeArrayObjectOrNull1BoxedMap](#typearrayobjectornull1boxedmap)
boxed class to store validated Map payloads | +| record | [TypeArrayObjectOrNull.TypeArrayObjectOrNull1BoxedVoid](#typearrayobjectornull1boxedvoid)
boxed class to store validated null payloads | | static class | [TypeArrayObjectOrNull.TypeArrayObjectOrNull1](#typearrayobjectornull1)
schema class | ## TypeArrayObjectOrNull1Boxed -public static abstract sealed class TypeArrayObjectOrNull1Boxed
+public sealed interface TypeArrayObjectOrNull1Boxed
permits
[TypeArrayObjectOrNull1BoxedList](#typearrayobjectornull1boxedlist), [TypeArrayObjectOrNull1BoxedMap](#typearrayobjectornull1boxedmap), [TypeArrayObjectOrNull1BoxedVoid](#typearrayobjectornull1boxedvoid) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## TypeArrayObjectOrNull1BoxedList -public static final class TypeArrayObjectOrNull1BoxedList
-extends [TypeArrayObjectOrNull1Boxed](#typearrayobjectornull1boxed) +public record TypeArrayObjectOrNull1BoxedList
+implements [TypeArrayObjectOrNull1Boxed](#typearrayobjectornull1boxed) -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 | | --------------------------- | | TypeArrayObjectOrNull1BoxedList(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 | ## TypeArrayObjectOrNull1BoxedMap -public static final class TypeArrayObjectOrNull1BoxedMap
-extends [TypeArrayObjectOrNull1Boxed](#typearrayobjectornull1boxed) +public record TypeArrayObjectOrNull1BoxedMap
+implements [TypeArrayObjectOrNull1Boxed](#typearrayobjectornull1boxed) -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 | | --------------------------- | | TypeArrayObjectOrNull1BoxedMap(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 | ## TypeArrayObjectOrNull1BoxedVoid -public static final class TypeArrayObjectOrNull1BoxedVoid
-extends [TypeArrayObjectOrNull1Boxed](#typearrayobjectornull1boxed) +public record TypeArrayObjectOrNull1BoxedVoid
+implements [TypeArrayObjectOrNull1Boxed](#typearrayobjectornull1boxed) -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 | | --------------------------- | | TypeArrayObjectOrNull1BoxedVoid(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 | ## TypeArrayObjectOrNull1 public static class TypeArrayObjectOrNull1
@@ -115,5 +118,7 @@ Void validatedPayload = TypeArrayObjectOrNull.TypeArrayObjectOrNull1.validate( | [TypeArrayObjectOrNull1BoxedMap](#typearrayobjectornull1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | Void | validate(Void arg, SchemaConfiguration configuration) | | [TypeArrayObjectOrNull1BoxedVoid](#typearrayobjectornull1boxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | +| [TypeArrayObjectOrNull1Boxed](#typearrayobjectornull1boxed) | 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_1_0_unit_test/java/docs/components/schemas/TypeArrayOrObject.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/TypeArrayOrObject.md index 4ecc8248b86..5bb799c1fdb 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/TypeArrayOrObject.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/TypeArrayOrObject.md @@ -4,56 +4,58 @@ public class TypeArrayOrObject
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 | [TypeArrayOrObject.TypeArrayOrObject1Boxed](#typearrayorobject1boxed)
abstract sealed validated payload class | -| static class | [TypeArrayOrObject.TypeArrayOrObject1BoxedList](#typearrayorobject1boxedlist)
boxed class to store validated List payloads | -| static class | [TypeArrayOrObject.TypeArrayOrObject1BoxedMap](#typearrayorobject1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [TypeArrayOrObject.TypeArrayOrObject1Boxed](#typearrayorobject1boxed)
sealed interface for validated payloads | +| record | [TypeArrayOrObject.TypeArrayOrObject1BoxedList](#typearrayorobject1boxedlist)
boxed class to store validated List payloads | +| record | [TypeArrayOrObject.TypeArrayOrObject1BoxedMap](#typearrayorobject1boxedmap)
boxed class to store validated Map payloads | | static class | [TypeArrayOrObject.TypeArrayOrObject1](#typearrayorobject1)
schema class | ## TypeArrayOrObject1Boxed -public static abstract sealed class TypeArrayOrObject1Boxed
+public sealed interface TypeArrayOrObject1Boxed
permits
[TypeArrayOrObject1BoxedList](#typearrayorobject1boxedlist), [TypeArrayOrObject1BoxedMap](#typearrayorobject1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## TypeArrayOrObject1BoxedList -public static final class TypeArrayOrObject1BoxedList
-extends [TypeArrayOrObject1Boxed](#typearrayorobject1boxed) +public record TypeArrayOrObject1BoxedList
+implements [TypeArrayOrObject1Boxed](#typearrayorobject1boxed) -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 | | --------------------------- | | TypeArrayOrObject1BoxedList(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 | ## TypeArrayOrObject1BoxedMap -public static final class TypeArrayOrObject1BoxedMap
-extends [TypeArrayOrObject1Boxed](#typearrayorobject1boxed) +public record TypeArrayOrObject1BoxedMap
+implements [TypeArrayOrObject1Boxed](#typearrayorobject1boxed) -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 | | --------------------------- | | TypeArrayOrObject1BoxedMap(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 | ## TypeArrayOrObject1 public static class TypeArrayOrObject1
@@ -73,5 +75,7 @@ A schema class that validates payloads | [TypeArrayOrObject1BoxedList](#typearrayorobject1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | | FrozenMap | validate(Map<?, ?> arg, SchemaConfiguration configuration) | | [TypeArrayOrObject1BoxedMap](#typearrayorobject1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | +| [TypeArrayOrObject1Boxed](#typearrayorobject1boxed) | 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_1_0_unit_test/java/docs/components/schemas/TypeAsArrayWithOneItem.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/TypeAsArrayWithOneItem.md index baa265bad82..a50422c5a6f 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/TypeAsArrayWithOneItem.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/TypeAsArrayWithOneItem.md @@ -4,38 +4,39 @@ public class TypeAsArrayWithOneItem
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 | [TypeAsArrayWithOneItem.TypeAsArrayWithOneItem1Boxed](#typeasarraywithoneitem1boxed)
abstract sealed validated payload class | -| static class | [TypeAsArrayWithOneItem.TypeAsArrayWithOneItem1BoxedString](#typeasarraywithoneitem1boxedstring)
boxed class to store validated String payloads | +| sealed interface | [TypeAsArrayWithOneItem.TypeAsArrayWithOneItem1Boxed](#typeasarraywithoneitem1boxed)
sealed interface for validated payloads | +| record | [TypeAsArrayWithOneItem.TypeAsArrayWithOneItem1BoxedString](#typeasarraywithoneitem1boxedstring)
boxed class to store validated String payloads | | static class | [TypeAsArrayWithOneItem.TypeAsArrayWithOneItem1](#typeasarraywithoneitem1)
schema class | ## TypeAsArrayWithOneItem1Boxed -public static abstract sealed class TypeAsArrayWithOneItem1Boxed
+public sealed interface TypeAsArrayWithOneItem1Boxed
permits
[TypeAsArrayWithOneItem1BoxedString](#typeasarraywithoneitem1boxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## TypeAsArrayWithOneItem1BoxedString -public static final class TypeAsArrayWithOneItem1BoxedString
-extends [TypeAsArrayWithOneItem1Boxed](#typeasarraywithoneitem1boxed) +public record TypeAsArrayWithOneItem1BoxedString
+implements [TypeAsArrayWithOneItem1Boxed](#typeasarraywithoneitem1boxed) -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 | | --------------------------- | | TypeAsArrayWithOneItem1BoxedString(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 | ## TypeAsArrayWithOneItem1 public static class TypeAsArrayWithOneItem1
diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluateditemsAsSchema.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluateditemsAsSchema.md index acb0a361673..0d9460530b0 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluateditemsAsSchema.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluateditemsAsSchema.md @@ -4,26 +4,26 @@ public class UnevaluateditemsAsSchema
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 | [UnevaluateditemsAsSchema.UnevaluateditemsAsSchema1Boxed](#unevaluateditemsasschema1boxed)
abstract sealed validated payload class | -| static class | [UnevaluateditemsAsSchema.UnevaluateditemsAsSchema1BoxedVoid](#unevaluateditemsasschema1boxedvoid)
boxed class to store validated null payloads | -| static class | [UnevaluateditemsAsSchema.UnevaluateditemsAsSchema1BoxedBoolean](#unevaluateditemsasschema1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [UnevaluateditemsAsSchema.UnevaluateditemsAsSchema1BoxedNumber](#unevaluateditemsasschema1boxednumber)
boxed class to store validated Number payloads | -| static class | [UnevaluateditemsAsSchema.UnevaluateditemsAsSchema1BoxedString](#unevaluateditemsasschema1boxedstring)
boxed class to store validated String payloads | -| static class | [UnevaluateditemsAsSchema.UnevaluateditemsAsSchema1BoxedList](#unevaluateditemsasschema1boxedlist)
boxed class to store validated List payloads | -| static class | [UnevaluateditemsAsSchema.UnevaluateditemsAsSchema1BoxedMap](#unevaluateditemsasschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [UnevaluateditemsAsSchema.UnevaluateditemsAsSchema1Boxed](#unevaluateditemsasschema1boxed)
sealed interface for validated payloads | +| record | [UnevaluateditemsAsSchema.UnevaluateditemsAsSchema1BoxedVoid](#unevaluateditemsasschema1boxedvoid)
boxed class to store validated null payloads | +| record | [UnevaluateditemsAsSchema.UnevaluateditemsAsSchema1BoxedBoolean](#unevaluateditemsasschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [UnevaluateditemsAsSchema.UnevaluateditemsAsSchema1BoxedNumber](#unevaluateditemsasschema1boxednumber)
boxed class to store validated Number payloads | +| record | [UnevaluateditemsAsSchema.UnevaluateditemsAsSchema1BoxedString](#unevaluateditemsasschema1boxedstring)
boxed class to store validated String payloads | +| record | [UnevaluateditemsAsSchema.UnevaluateditemsAsSchema1BoxedList](#unevaluateditemsasschema1boxedlist)
boxed class to store validated List payloads | +| record | [UnevaluateditemsAsSchema.UnevaluateditemsAsSchema1BoxedMap](#unevaluateditemsasschema1boxedmap)
boxed class to store validated Map payloads | | static class | [UnevaluateditemsAsSchema.UnevaluateditemsAsSchema1](#unevaluateditemsasschema1)
schema class | -| static class | [UnevaluateditemsAsSchema.UnevaluatedItemsBoxed](#unevaluateditemsboxed)
abstract sealed validated payload class | -| static class | [UnevaluateditemsAsSchema.UnevaluatedItemsBoxedString](#unevaluateditemsboxedstring)
boxed class to store validated String payloads | +| sealed interface | [UnevaluateditemsAsSchema.UnevaluatedItemsBoxed](#unevaluateditemsboxed)
sealed interface for validated payloads | +| record | [UnevaluateditemsAsSchema.UnevaluatedItemsBoxedString](#unevaluateditemsboxedstring)
boxed class to store validated String payloads | | static class | [UnevaluateditemsAsSchema.UnevaluatedItems](#unevaluateditems)
schema class | ## UnevaluateditemsAsSchema1Boxed -public static abstract sealed class UnevaluateditemsAsSchema1Boxed
+public sealed interface UnevaluateditemsAsSchema1Boxed
permits
[UnevaluateditemsAsSchema1BoxedVoid](#unevaluateditemsasschema1boxedvoid), [UnevaluateditemsAsSchema1BoxedBoolean](#unevaluateditemsasschema1boxedboolean), @@ -32,103 +32,109 @@ permits
[UnevaluateditemsAsSchema1BoxedList](#unevaluateditemsasschema1boxedlist), [UnevaluateditemsAsSchema1BoxedMap](#unevaluateditemsasschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## UnevaluateditemsAsSchema1BoxedVoid -public static final class UnevaluateditemsAsSchema1BoxedVoid
-extends [UnevaluateditemsAsSchema1Boxed](#unevaluateditemsasschema1boxed) +public record UnevaluateditemsAsSchema1BoxedVoid
+implements [UnevaluateditemsAsSchema1Boxed](#unevaluateditemsasschema1boxed) -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 | | --------------------------- | | UnevaluateditemsAsSchema1BoxedVoid(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 | ## UnevaluateditemsAsSchema1BoxedBoolean -public static final class UnevaluateditemsAsSchema1BoxedBoolean
-extends [UnevaluateditemsAsSchema1Boxed](#unevaluateditemsasschema1boxed) +public record UnevaluateditemsAsSchema1BoxedBoolean
+implements [UnevaluateditemsAsSchema1Boxed](#unevaluateditemsasschema1boxed) -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 | | --------------------------- | | UnevaluateditemsAsSchema1BoxedBoolean(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 | ## UnevaluateditemsAsSchema1BoxedNumber -public static final class UnevaluateditemsAsSchema1BoxedNumber
-extends [UnevaluateditemsAsSchema1Boxed](#unevaluateditemsasschema1boxed) +public record UnevaluateditemsAsSchema1BoxedNumber
+implements [UnevaluateditemsAsSchema1Boxed](#unevaluateditemsasschema1boxed) -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 | | --------------------------- | | UnevaluateditemsAsSchema1BoxedNumber(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 | ## UnevaluateditemsAsSchema1BoxedString -public static final class UnevaluateditemsAsSchema1BoxedString
-extends [UnevaluateditemsAsSchema1Boxed](#unevaluateditemsasschema1boxed) +public record UnevaluateditemsAsSchema1BoxedString
+implements [UnevaluateditemsAsSchema1Boxed](#unevaluateditemsasschema1boxed) -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 | | --------------------------- | | UnevaluateditemsAsSchema1BoxedString(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 | ## UnevaluateditemsAsSchema1BoxedList -public static final class UnevaluateditemsAsSchema1BoxedList
-extends [UnevaluateditemsAsSchema1Boxed](#unevaluateditemsasschema1boxed) +public record UnevaluateditemsAsSchema1BoxedList
+implements [UnevaluateditemsAsSchema1Boxed](#unevaluateditemsasschema1boxed) -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 | | --------------------------- | | UnevaluateditemsAsSchema1BoxedList(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 | ## UnevaluateditemsAsSchema1BoxedMap -public static final class UnevaluateditemsAsSchema1BoxedMap
-extends [UnevaluateditemsAsSchema1Boxed](#unevaluateditemsasschema1boxed) +public record UnevaluateditemsAsSchema1BoxedMap
+implements [UnevaluateditemsAsSchema1Boxed](#unevaluateditemsasschema1boxed) -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 | | --------------------------- | | UnevaluateditemsAsSchema1BoxedMap(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 | ## UnevaluateditemsAsSchema1 public static class UnevaluateditemsAsSchema1
@@ -160,29 +166,32 @@ A schema class that validates payloads | [UnevaluateditemsAsSchema1BoxedBoolean](#unevaluateditemsasschema1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [UnevaluateditemsAsSchema1BoxedMap](#unevaluateditemsasschema1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [UnevaluateditemsAsSchema1BoxedList](#unevaluateditemsasschema1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [UnevaluateditemsAsSchema1Boxed](#unevaluateditemsasschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## UnevaluatedItemsBoxed -public static abstract sealed class UnevaluatedItemsBoxed
+public sealed interface UnevaluatedItemsBoxed
permits
[UnevaluatedItemsBoxedString](#unevaluateditemsboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## UnevaluatedItemsBoxedString -public static final class UnevaluatedItemsBoxedString
-extends [UnevaluatedItemsBoxed](#unevaluateditemsboxed) +public record UnevaluatedItemsBoxedString
+implements [UnevaluatedItemsBoxed](#unevaluateditemsboxed) -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 | | --------------------------- | | UnevaluatedItemsBoxedString(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 | ## UnevaluatedItems public static class UnevaluatedItems
diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluateditemsDependsOnMultipleNestedContains.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluateditemsDependsOnMultipleNestedContains.md index d92f28e6821..419b1e650e2 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluateditemsDependsOnMultipleNestedContains.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluateditemsDependsOnMultipleNestedContains.md @@ -4,63 +4,63 @@ public class UnevaluateditemsDependsOnMultipleNestedContains
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 | [UnevaluateditemsDependsOnMultipleNestedContains.UnevaluateditemsDependsOnMultipleNestedContains1Boxed](#unevaluateditemsdependsonmultiplenestedcontains1boxed)
abstract sealed validated payload class | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.UnevaluateditemsDependsOnMultipleNestedContains1BoxedVoid](#unevaluateditemsdependsonmultiplenestedcontains1boxedvoid)
boxed class to store validated null payloads | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.UnevaluateditemsDependsOnMultipleNestedContains1BoxedBoolean](#unevaluateditemsdependsonmultiplenestedcontains1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.UnevaluateditemsDependsOnMultipleNestedContains1BoxedNumber](#unevaluateditemsdependsonmultiplenestedcontains1boxednumber)
boxed class to store validated Number payloads | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.UnevaluateditemsDependsOnMultipleNestedContains1BoxedString](#unevaluateditemsdependsonmultiplenestedcontains1boxedstring)
boxed class to store validated String payloads | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.UnevaluateditemsDependsOnMultipleNestedContains1BoxedList](#unevaluateditemsdependsonmultiplenestedcontains1boxedlist)
boxed class to store validated List payloads | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.UnevaluateditemsDependsOnMultipleNestedContains1BoxedMap](#unevaluateditemsdependsonmultiplenestedcontains1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [UnevaluateditemsDependsOnMultipleNestedContains.UnevaluateditemsDependsOnMultipleNestedContains1Boxed](#unevaluateditemsdependsonmultiplenestedcontains1boxed)
sealed interface for validated payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.UnevaluateditemsDependsOnMultipleNestedContains1BoxedVoid](#unevaluateditemsdependsonmultiplenestedcontains1boxedvoid)
boxed class to store validated null payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.UnevaluateditemsDependsOnMultipleNestedContains1BoxedBoolean](#unevaluateditemsdependsonmultiplenestedcontains1boxedboolean)
boxed class to store validated boolean payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.UnevaluateditemsDependsOnMultipleNestedContains1BoxedNumber](#unevaluateditemsdependsonmultiplenestedcontains1boxednumber)
boxed class to store validated Number payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.UnevaluateditemsDependsOnMultipleNestedContains1BoxedString](#unevaluateditemsdependsonmultiplenestedcontains1boxedstring)
boxed class to store validated String payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.UnevaluateditemsDependsOnMultipleNestedContains1BoxedList](#unevaluateditemsdependsonmultiplenestedcontains1boxedlist)
boxed class to store validated List payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.UnevaluateditemsDependsOnMultipleNestedContains1BoxedMap](#unevaluateditemsdependsonmultiplenestedcontains1boxedmap)
boxed class to store validated Map payloads | | static class | [UnevaluateditemsDependsOnMultipleNestedContains.UnevaluateditemsDependsOnMultipleNestedContains1](#unevaluateditemsdependsonmultiplenestedcontains1)
schema class | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.UnevaluatedItemsBoxed](#unevaluateditemsboxed)
abstract sealed validated payload class | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.UnevaluatedItemsBoxedVoid](#unevaluateditemsboxedvoid)
boxed class to store validated null payloads | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.UnevaluatedItemsBoxedBoolean](#unevaluateditemsboxedboolean)
boxed class to store validated boolean payloads | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.UnevaluatedItemsBoxedNumber](#unevaluateditemsboxednumber)
boxed class to store validated Number payloads | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.UnevaluatedItemsBoxedString](#unevaluateditemsboxedstring)
boxed class to store validated String payloads | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.UnevaluatedItemsBoxedList](#unevaluateditemsboxedlist)
boxed class to store validated List payloads | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.UnevaluatedItemsBoxedMap](#unevaluateditemsboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [UnevaluateditemsDependsOnMultipleNestedContains.UnevaluatedItemsBoxed](#unevaluateditemsboxed)
sealed interface for validated payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.UnevaluatedItemsBoxedVoid](#unevaluateditemsboxedvoid)
boxed class to store validated null payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.UnevaluatedItemsBoxedBoolean](#unevaluateditemsboxedboolean)
boxed class to store validated boolean payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.UnevaluatedItemsBoxedNumber](#unevaluateditemsboxednumber)
boxed class to store validated Number payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.UnevaluatedItemsBoxedString](#unevaluateditemsboxedstring)
boxed class to store validated String payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.UnevaluatedItemsBoxedList](#unevaluateditemsboxedlist)
boxed class to store validated List payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.UnevaluatedItemsBoxedMap](#unevaluateditemsboxedmap)
boxed class to store validated Map payloads | | static class | [UnevaluateditemsDependsOnMultipleNestedContains.UnevaluatedItems](#unevaluateditems)
schema class | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.Schema1BoxedVoid](#schema1boxedvoid)
boxed class to store validated null payloads | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.Schema1BoxedBoolean](#schema1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.Schema1BoxedNumber](#schema1boxednumber)
boxed class to store validated Number payloads | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.Schema1BoxedString](#schema1boxedstring)
boxed class to store validated String payloads | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.Schema1BoxedList](#schema1boxedlist)
boxed class to store validated List payloads | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [UnevaluateditemsDependsOnMultipleNestedContains.Schema1Boxed](#schema1boxed)
sealed interface for validated payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.Schema1BoxedVoid](#schema1boxedvoid)
boxed class to store validated null payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.Schema1BoxedBoolean](#schema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.Schema1BoxedNumber](#schema1boxednumber)
boxed class to store validated Number payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.Schema1BoxedString](#schema1boxedstring)
boxed class to store validated String payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.Schema1BoxedList](#schema1boxedlist)
boxed class to store validated List payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | | static class | [UnevaluateditemsDependsOnMultipleNestedContains.Schema1](#schema1)
schema class | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.Contains1Boxed](#contains1boxed)
abstract sealed validated payload class | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.Contains1BoxedVoid](#contains1boxedvoid)
boxed class to store validated null payloads | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.Contains1BoxedBoolean](#contains1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.Contains1BoxedNumber](#contains1boxednumber)
boxed class to store validated Number payloads | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.Contains1BoxedString](#contains1boxedstring)
boxed class to store validated String payloads | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.Contains1BoxedList](#contains1boxedlist)
boxed class to store validated List payloads | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.Contains1BoxedMap](#contains1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [UnevaluateditemsDependsOnMultipleNestedContains.Contains1Boxed](#contains1boxed)
sealed interface for validated payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.Contains1BoxedVoid](#contains1boxedvoid)
boxed class to store validated null payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.Contains1BoxedBoolean](#contains1boxedboolean)
boxed class to store validated boolean payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.Contains1BoxedNumber](#contains1boxednumber)
boxed class to store validated Number payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.Contains1BoxedString](#contains1boxedstring)
boxed class to store validated String payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.Contains1BoxedList](#contains1boxedlist)
boxed class to store validated List payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.Contains1BoxedMap](#contains1boxedmap)
boxed class to store validated Map payloads | | static class | [UnevaluateditemsDependsOnMultipleNestedContains.Contains1](#contains1)
schema class | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.Schema0BoxedVoid](#schema0boxedvoid)
boxed class to store validated null payloads | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.Schema0BoxedBoolean](#schema0boxedboolean)
boxed class to store validated boolean payloads | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.Schema0BoxedNumber](#schema0boxednumber)
boxed class to store validated Number payloads | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.Schema0BoxedString](#schema0boxedstring)
boxed class to store validated String payloads | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.Schema0BoxedList](#schema0boxedlist)
boxed class to store validated List payloads | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.Schema0BoxedMap](#schema0boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [UnevaluateditemsDependsOnMultipleNestedContains.Schema0Boxed](#schema0boxed)
sealed interface for validated payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.Schema0BoxedVoid](#schema0boxedvoid)
boxed class to store validated null payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.Schema0BoxedBoolean](#schema0boxedboolean)
boxed class to store validated boolean payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.Schema0BoxedNumber](#schema0boxednumber)
boxed class to store validated Number payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.Schema0BoxedString](#schema0boxedstring)
boxed class to store validated String payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.Schema0BoxedList](#schema0boxedlist)
boxed class to store validated List payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.Schema0BoxedMap](#schema0boxedmap)
boxed class to store validated Map payloads | | static class | [UnevaluateditemsDependsOnMultipleNestedContains.Schema0](#schema0)
schema class | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.ContainsBoxed](#containsboxed)
abstract sealed validated payload class | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.ContainsBoxedVoid](#containsboxedvoid)
boxed class to store validated null payloads | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.ContainsBoxedBoolean](#containsboxedboolean)
boxed class to store validated boolean payloads | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.ContainsBoxedNumber](#containsboxednumber)
boxed class to store validated Number payloads | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.ContainsBoxedString](#containsboxedstring)
boxed class to store validated String payloads | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.ContainsBoxedList](#containsboxedlist)
boxed class to store validated List payloads | -| static class | [UnevaluateditemsDependsOnMultipleNestedContains.ContainsBoxedMap](#containsboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [UnevaluateditemsDependsOnMultipleNestedContains.ContainsBoxed](#containsboxed)
sealed interface for validated payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.ContainsBoxedVoid](#containsboxedvoid)
boxed class to store validated null payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.ContainsBoxedBoolean](#containsboxedboolean)
boxed class to store validated boolean payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.ContainsBoxedNumber](#containsboxednumber)
boxed class to store validated Number payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.ContainsBoxedString](#containsboxedstring)
boxed class to store validated String payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.ContainsBoxedList](#containsboxedlist)
boxed class to store validated List payloads | +| record | [UnevaluateditemsDependsOnMultipleNestedContains.ContainsBoxedMap](#containsboxedmap)
boxed class to store validated Map payloads | | static class | [UnevaluateditemsDependsOnMultipleNestedContains.Contains](#contains)
schema class | ## UnevaluateditemsDependsOnMultipleNestedContains1Boxed -public static abstract sealed class UnevaluateditemsDependsOnMultipleNestedContains1Boxed
+public sealed interface UnevaluateditemsDependsOnMultipleNestedContains1Boxed
permits
[UnevaluateditemsDependsOnMultipleNestedContains1BoxedVoid](#unevaluateditemsdependsonmultiplenestedcontains1boxedvoid), [UnevaluateditemsDependsOnMultipleNestedContains1BoxedBoolean](#unevaluateditemsdependsonmultiplenestedcontains1boxedboolean), @@ -69,103 +69,109 @@ permits
[UnevaluateditemsDependsOnMultipleNestedContains1BoxedList](#unevaluateditemsdependsonmultiplenestedcontains1boxedlist), [UnevaluateditemsDependsOnMultipleNestedContains1BoxedMap](#unevaluateditemsdependsonmultiplenestedcontains1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## UnevaluateditemsDependsOnMultipleNestedContains1BoxedVoid -public static final class UnevaluateditemsDependsOnMultipleNestedContains1BoxedVoid
-extends [UnevaluateditemsDependsOnMultipleNestedContains1Boxed](#unevaluateditemsdependsonmultiplenestedcontains1boxed) +public record UnevaluateditemsDependsOnMultipleNestedContains1BoxedVoid
+implements [UnevaluateditemsDependsOnMultipleNestedContains1Boxed](#unevaluateditemsdependsonmultiplenestedcontains1boxed) -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 | | --------------------------- | | UnevaluateditemsDependsOnMultipleNestedContains1BoxedVoid(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 | ## UnevaluateditemsDependsOnMultipleNestedContains1BoxedBoolean -public static final class UnevaluateditemsDependsOnMultipleNestedContains1BoxedBoolean
-extends [UnevaluateditemsDependsOnMultipleNestedContains1Boxed](#unevaluateditemsdependsonmultiplenestedcontains1boxed) +public record UnevaluateditemsDependsOnMultipleNestedContains1BoxedBoolean
+implements [UnevaluateditemsDependsOnMultipleNestedContains1Boxed](#unevaluateditemsdependsonmultiplenestedcontains1boxed) -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 | | --------------------------- | | UnevaluateditemsDependsOnMultipleNestedContains1BoxedBoolean(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 | ## UnevaluateditemsDependsOnMultipleNestedContains1BoxedNumber -public static final class UnevaluateditemsDependsOnMultipleNestedContains1BoxedNumber
-extends [UnevaluateditemsDependsOnMultipleNestedContains1Boxed](#unevaluateditemsdependsonmultiplenestedcontains1boxed) +public record UnevaluateditemsDependsOnMultipleNestedContains1BoxedNumber
+implements [UnevaluateditemsDependsOnMultipleNestedContains1Boxed](#unevaluateditemsdependsonmultiplenestedcontains1boxed) -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 | | --------------------------- | | UnevaluateditemsDependsOnMultipleNestedContains1BoxedNumber(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 | ## UnevaluateditemsDependsOnMultipleNestedContains1BoxedString -public static final class UnevaluateditemsDependsOnMultipleNestedContains1BoxedString
-extends [UnevaluateditemsDependsOnMultipleNestedContains1Boxed](#unevaluateditemsdependsonmultiplenestedcontains1boxed) +public record UnevaluateditemsDependsOnMultipleNestedContains1BoxedString
+implements [UnevaluateditemsDependsOnMultipleNestedContains1Boxed](#unevaluateditemsdependsonmultiplenestedcontains1boxed) -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 | | --------------------------- | | UnevaluateditemsDependsOnMultipleNestedContains1BoxedString(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 | ## UnevaluateditemsDependsOnMultipleNestedContains1BoxedList -public static final class UnevaluateditemsDependsOnMultipleNestedContains1BoxedList
-extends [UnevaluateditemsDependsOnMultipleNestedContains1Boxed](#unevaluateditemsdependsonmultiplenestedcontains1boxed) +public record UnevaluateditemsDependsOnMultipleNestedContains1BoxedList
+implements [UnevaluateditemsDependsOnMultipleNestedContains1Boxed](#unevaluateditemsdependsonmultiplenestedcontains1boxed) -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 | | --------------------------- | | UnevaluateditemsDependsOnMultipleNestedContains1BoxedList(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 | ## UnevaluateditemsDependsOnMultipleNestedContains1BoxedMap -public static final class UnevaluateditemsDependsOnMultipleNestedContains1BoxedMap
-extends [UnevaluateditemsDependsOnMultipleNestedContains1Boxed](#unevaluateditemsdependsonmultiplenestedcontains1boxed) +public record UnevaluateditemsDependsOnMultipleNestedContains1BoxedMap
+implements [UnevaluateditemsDependsOnMultipleNestedContains1Boxed](#unevaluateditemsdependsonmultiplenestedcontains1boxed) -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 | | --------------------------- | | UnevaluateditemsDependsOnMultipleNestedContains1BoxedMap(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 | ## UnevaluateditemsDependsOnMultipleNestedContains1 public static class UnevaluateditemsDependsOnMultipleNestedContains1
@@ -198,9 +204,11 @@ A schema class that validates payloads | [UnevaluateditemsDependsOnMultipleNestedContains1BoxedBoolean](#unevaluateditemsdependsonmultiplenestedcontains1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [UnevaluateditemsDependsOnMultipleNestedContains1BoxedMap](#unevaluateditemsdependsonmultiplenestedcontains1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [UnevaluateditemsDependsOnMultipleNestedContains1BoxedList](#unevaluateditemsdependsonmultiplenestedcontains1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [UnevaluateditemsDependsOnMultipleNestedContains1Boxed](#unevaluateditemsdependsonmultiplenestedcontains1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## UnevaluatedItemsBoxed -public static abstract sealed class UnevaluatedItemsBoxed
+public sealed interface UnevaluatedItemsBoxed
permits
[UnevaluatedItemsBoxedVoid](#unevaluateditemsboxedvoid), [UnevaluatedItemsBoxedBoolean](#unevaluateditemsboxedboolean), @@ -209,103 +217,109 @@ permits
[UnevaluatedItemsBoxedList](#unevaluateditemsboxedlist), [UnevaluatedItemsBoxedMap](#unevaluateditemsboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## UnevaluatedItemsBoxedVoid -public static final class UnevaluatedItemsBoxedVoid
-extends [UnevaluatedItemsBoxed](#unevaluateditemsboxed) +public record UnevaluatedItemsBoxedVoid
+implements [UnevaluatedItemsBoxed](#unevaluateditemsboxed) -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 | | --------------------------- | | UnevaluatedItemsBoxedVoid(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 | ## UnevaluatedItemsBoxedBoolean -public static final class UnevaluatedItemsBoxedBoolean
-extends [UnevaluatedItemsBoxed](#unevaluateditemsboxed) +public record UnevaluatedItemsBoxedBoolean
+implements [UnevaluatedItemsBoxed](#unevaluateditemsboxed) -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 | | --------------------------- | | UnevaluatedItemsBoxedBoolean(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 | ## UnevaluatedItemsBoxedNumber -public static final class UnevaluatedItemsBoxedNumber
-extends [UnevaluatedItemsBoxed](#unevaluateditemsboxed) +public record UnevaluatedItemsBoxedNumber
+implements [UnevaluatedItemsBoxed](#unevaluateditemsboxed) -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 | | --------------------------- | | UnevaluatedItemsBoxedNumber(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 | ## UnevaluatedItemsBoxedString -public static final class UnevaluatedItemsBoxedString
-extends [UnevaluatedItemsBoxed](#unevaluateditemsboxed) +public record UnevaluatedItemsBoxedString
+implements [UnevaluatedItemsBoxed](#unevaluateditemsboxed) -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 | | --------------------------- | | UnevaluatedItemsBoxedString(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 | ## UnevaluatedItemsBoxedList -public static final class UnevaluatedItemsBoxedList
-extends [UnevaluatedItemsBoxed](#unevaluateditemsboxed) +public record UnevaluatedItemsBoxedList
+implements [UnevaluatedItemsBoxed](#unevaluateditemsboxed) -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 | | --------------------------- | | UnevaluatedItemsBoxedList(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 | ## UnevaluatedItemsBoxedMap -public static final class UnevaluatedItemsBoxedMap
-extends [UnevaluatedItemsBoxed](#unevaluateditemsboxed) +public record UnevaluatedItemsBoxedMap
+implements [UnevaluatedItemsBoxed](#unevaluateditemsboxed) -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 | | --------------------------- | | UnevaluatedItemsBoxedMap(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 | ## UnevaluatedItems public static class UnevaluatedItems
@@ -337,9 +351,11 @@ A schema class that validates payloads | [UnevaluatedItemsBoxedBoolean](#unevaluateditemsboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [UnevaluatedItemsBoxedMap](#unevaluateditemsboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [UnevaluatedItemsBoxedList](#unevaluateditemsboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [UnevaluatedItemsBoxed](#unevaluateditemsboxed) | 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), @@ -348,103 +364,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
@@ -476,9 +498,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) | + ## Contains1Boxed -public static abstract sealed class Contains1Boxed
+public sealed interface Contains1Boxed
permits
[Contains1BoxedVoid](#contains1boxedvoid), [Contains1BoxedBoolean](#contains1boxedboolean), @@ -487,103 +511,109 @@ permits
[Contains1BoxedList](#contains1boxedlist), [Contains1BoxedMap](#contains1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## Contains1BoxedVoid -public static final class Contains1BoxedVoid
-extends [Contains1Boxed](#contains1boxed) +public record Contains1BoxedVoid
+implements [Contains1Boxed](#contains1boxed) -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 | | --------------------------- | | Contains1BoxedVoid(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 | ## Contains1BoxedBoolean -public static final class Contains1BoxedBoolean
-extends [Contains1Boxed](#contains1boxed) +public record Contains1BoxedBoolean
+implements [Contains1Boxed](#contains1boxed) -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 | | --------------------------- | | Contains1BoxedBoolean(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 | ## Contains1BoxedNumber -public static final class Contains1BoxedNumber
-extends [Contains1Boxed](#contains1boxed) +public record Contains1BoxedNumber
+implements [Contains1Boxed](#contains1boxed) -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 | | --------------------------- | | Contains1BoxedNumber(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 | ## Contains1BoxedString -public static final class Contains1BoxedString
-extends [Contains1Boxed](#contains1boxed) +public record Contains1BoxedString
+implements [Contains1Boxed](#contains1boxed) -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 | | --------------------------- | | Contains1BoxedString(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 | ## Contains1BoxedList -public static final class Contains1BoxedList
-extends [Contains1Boxed](#contains1boxed) +public record Contains1BoxedList
+implements [Contains1Boxed](#contains1boxed) -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 | | --------------------------- | | Contains1BoxedList(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 | ## Contains1BoxedMap -public static final class Contains1BoxedMap
-extends [Contains1Boxed](#contains1boxed) +public record Contains1BoxedMap
+implements [Contains1Boxed](#contains1boxed) -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 | | --------------------------- | | Contains1BoxedMap(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 | ## Contains1 public static class Contains1
@@ -615,9 +645,11 @@ A schema class that validates payloads | [Contains1BoxedBoolean](#contains1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [Contains1BoxedMap](#contains1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [Contains1BoxedList](#contains1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [Contains1Boxed](#contains1boxed) | 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), @@ -626,103 +658,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
@@ -754,9 +792,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) | + ## ContainsBoxed -public static abstract sealed class ContainsBoxed
+public sealed interface ContainsBoxed
permits
[ContainsBoxedVoid](#containsboxedvoid), [ContainsBoxedBoolean](#containsboxedboolean), @@ -765,103 +805,109 @@ permits
[ContainsBoxedList](#containsboxedlist), [ContainsBoxedMap](#containsboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ContainsBoxedVoid -public static final class ContainsBoxedVoid
-extends [ContainsBoxed](#containsboxed) +public record ContainsBoxedVoid
+implements [ContainsBoxed](#containsboxed) -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 | | --------------------------- | | ContainsBoxedVoid(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 | ## ContainsBoxedBoolean -public static final class ContainsBoxedBoolean
-extends [ContainsBoxed](#containsboxed) +public record ContainsBoxedBoolean
+implements [ContainsBoxed](#containsboxed) -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 | | --------------------------- | | ContainsBoxedBoolean(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 | ## ContainsBoxedNumber -public static final class ContainsBoxedNumber
-extends [ContainsBoxed](#containsboxed) +public record ContainsBoxedNumber
+implements [ContainsBoxed](#containsboxed) -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 | | --------------------------- | | ContainsBoxedNumber(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 | ## ContainsBoxedString -public static final class ContainsBoxedString
-extends [ContainsBoxed](#containsboxed) +public record ContainsBoxedString
+implements [ContainsBoxed](#containsboxed) -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 | | --------------------------- | | ContainsBoxedString(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 | ## ContainsBoxedList -public static final class ContainsBoxedList
-extends [ContainsBoxed](#containsboxed) +public record ContainsBoxedList
+implements [ContainsBoxed](#containsboxed) -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 | | --------------------------- | | ContainsBoxedList(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 | ## ContainsBoxedMap -public static final class ContainsBoxedMap
-extends [ContainsBoxed](#containsboxed) +public record ContainsBoxedMap
+implements [ContainsBoxed](#containsboxed) -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 | | --------------------------- | | ContainsBoxedMap(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 | ## Contains public static class Contains
@@ -893,5 +939,7 @@ A schema class that validates payloads | [ContainsBoxedBoolean](#containsboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ContainsBoxedMap](#containsboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [ContainsBoxedList](#containsboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ContainsBoxed](#containsboxed) | 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_1_0_unit_test/java/docs/components/schemas/UnevaluateditemsWithItems.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluateditemsWithItems.md index e3e995f14b8..11448ba2e23 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluateditemsWithItems.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluateditemsWithItems.md @@ -4,7 +4,7 @@ public class UnevaluateditemsWithItems
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,40 +12,41 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [UnevaluateditemsWithItems.UnevaluateditemsWithItems1Boxed](#unevaluateditemswithitems1boxed)
abstract sealed validated payload class | -| static class | [UnevaluateditemsWithItems.UnevaluateditemsWithItems1BoxedList](#unevaluateditemswithitems1boxedlist)
boxed class to store validated List payloads | +| sealed interface | [UnevaluateditemsWithItems.UnevaluateditemsWithItems1Boxed](#unevaluateditemswithitems1boxed)
sealed interface for validated payloads | +| record | [UnevaluateditemsWithItems.UnevaluateditemsWithItems1BoxedList](#unevaluateditemswithitems1boxedlist)
boxed class to store validated List payloads | | static class | [UnevaluateditemsWithItems.UnevaluateditemsWithItems1](#unevaluateditemswithitems1)
schema class | -| static class | [UnevaluateditemsWithItems.UnevaluatedItemsBoxed](#unevaluateditemsboxed)
abstract sealed validated payload class | -| static class | [UnevaluateditemsWithItems.UnevaluatedItemsBoxedString](#unevaluateditemsboxedstring)
boxed class to store validated String payloads | +| sealed interface | [UnevaluateditemsWithItems.UnevaluatedItemsBoxed](#unevaluateditemsboxed)
sealed interface for validated payloads | +| record | [UnevaluateditemsWithItems.UnevaluatedItemsBoxedString](#unevaluateditemsboxedstring)
boxed class to store validated String payloads | | static class | [UnevaluateditemsWithItems.UnevaluatedItems](#unevaluateditems)
schema class | | static class | [UnevaluateditemsWithItems.UnevaluateditemsWithItemsListBuilder](#unevaluateditemswithitemslistbuilder)
builder for List payloads | | static class | [UnevaluateditemsWithItems.UnevaluateditemsWithItemsList](#unevaluateditemswithitemslist)
output class for List payloads | -| static class | [UnevaluateditemsWithItems.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | -| static class | [UnevaluateditemsWithItems.ItemsBoxedNumber](#itemsboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [UnevaluateditemsWithItems.ItemsBoxed](#itemsboxed)
sealed interface for validated payloads | +| record | [UnevaluateditemsWithItems.ItemsBoxedNumber](#itemsboxednumber)
boxed class to store validated Number payloads | | static class | [UnevaluateditemsWithItems.Items](#items)
schema class | ## UnevaluateditemsWithItems1Boxed -public static abstract sealed class UnevaluateditemsWithItems1Boxed
+public sealed interface UnevaluateditemsWithItems1Boxed
permits
[UnevaluateditemsWithItems1BoxedList](#unevaluateditemswithitems1boxedlist) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## UnevaluateditemsWithItems1BoxedList -public static final class UnevaluateditemsWithItems1BoxedList
-extends [UnevaluateditemsWithItems1Boxed](#unevaluateditemswithitems1boxed) +public record UnevaluateditemsWithItems1BoxedList
+implements [UnevaluateditemsWithItems1Boxed](#unevaluateditemswithitems1boxed) -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 | | --------------------------- | | UnevaluateditemsWithItems1BoxedList([UnevaluateditemsWithItemsList](#unevaluateditemswithitemslist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UnevaluateditemsWithItemsList](#unevaluateditemswithitemslist) | data
validated payload | +| [UnevaluateditemsWithItemsList](#unevaluateditemswithitemslist) | data()
validated payload | +| @Nullable Object | getData()
validated payload | ## UnevaluateditemsWithItems1 public static class UnevaluateditemsWithItems1
@@ -91,29 +92,32 @@ UnevaluateditemsWithItems.UnevaluateditemsWithItemsList validatedPayload = | ----------------- | ---------------------- | | [UnevaluateditemsWithItemsList](#unevaluateditemswithitemslist) | validate([List](#unevaluateditemswithitemslistbuilder) arg, SchemaConfiguration configuration) | | [UnevaluateditemsWithItems1BoxedList](#unevaluateditemswithitems1boxedlist) | validateAndBox([List](#unevaluateditemswithitemslistbuilder) arg, SchemaConfiguration configuration) | +| [UnevaluateditemsWithItems1Boxed](#unevaluateditemswithitems1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## UnevaluatedItemsBoxed -public static abstract sealed class UnevaluatedItemsBoxed
+public sealed interface UnevaluatedItemsBoxed
permits
[UnevaluatedItemsBoxedString](#unevaluateditemsboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## UnevaluatedItemsBoxedString -public static final class UnevaluatedItemsBoxedString
-extends [UnevaluatedItemsBoxed](#unevaluateditemsboxed) +public record UnevaluatedItemsBoxedString
+implements [UnevaluatedItemsBoxed](#unevaluateditemsboxed) -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 | | --------------------------- | | UnevaluatedItemsBoxedString(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 | ## UnevaluatedItems public static class UnevaluatedItems
@@ -159,27 +163,28 @@ A class to store validated List payloads | static [UnevaluateditemsWithItemsList](#unevaluateditemswithitemslist) | of([List](#unevaluateditemswithitemslistbuilder) arg, SchemaConfiguration configuration) | ## ItemsBoxed -public static abstract sealed class ItemsBoxed
+public sealed interface ItemsBoxed
permits
[ItemsBoxedNumber](#itemsboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## 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 | ## Items public static class Items
diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluateditemsWithNullInstanceElements.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluateditemsWithNullInstanceElements.md index 313284c4981..3fc8d9e757c 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluateditemsWithNullInstanceElements.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluateditemsWithNullInstanceElements.md @@ -4,26 +4,26 @@ public class UnevaluateditemsWithNullInstanceElements
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 | [UnevaluateditemsWithNullInstanceElements.UnevaluateditemsWithNullInstanceElements1Boxed](#unevaluateditemswithnullinstanceelements1boxed)
abstract sealed validated payload class | -| static class | [UnevaluateditemsWithNullInstanceElements.UnevaluateditemsWithNullInstanceElements1BoxedVoid](#unevaluateditemswithnullinstanceelements1boxedvoid)
boxed class to store validated null payloads | -| static class | [UnevaluateditemsWithNullInstanceElements.UnevaluateditemsWithNullInstanceElements1BoxedBoolean](#unevaluateditemswithnullinstanceelements1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [UnevaluateditemsWithNullInstanceElements.UnevaluateditemsWithNullInstanceElements1BoxedNumber](#unevaluateditemswithnullinstanceelements1boxednumber)
boxed class to store validated Number payloads | -| static class | [UnevaluateditemsWithNullInstanceElements.UnevaluateditemsWithNullInstanceElements1BoxedString](#unevaluateditemswithnullinstanceelements1boxedstring)
boxed class to store validated String payloads | -| static class | [UnevaluateditemsWithNullInstanceElements.UnevaluateditemsWithNullInstanceElements1BoxedList](#unevaluateditemswithnullinstanceelements1boxedlist)
boxed class to store validated List payloads | -| static class | [UnevaluateditemsWithNullInstanceElements.UnevaluateditemsWithNullInstanceElements1BoxedMap](#unevaluateditemswithnullinstanceelements1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [UnevaluateditemsWithNullInstanceElements.UnevaluateditemsWithNullInstanceElements1Boxed](#unevaluateditemswithnullinstanceelements1boxed)
sealed interface for validated payloads | +| record | [UnevaluateditemsWithNullInstanceElements.UnevaluateditemsWithNullInstanceElements1BoxedVoid](#unevaluateditemswithnullinstanceelements1boxedvoid)
boxed class to store validated null payloads | +| record | [UnevaluateditemsWithNullInstanceElements.UnevaluateditemsWithNullInstanceElements1BoxedBoolean](#unevaluateditemswithnullinstanceelements1boxedboolean)
boxed class to store validated boolean payloads | +| record | [UnevaluateditemsWithNullInstanceElements.UnevaluateditemsWithNullInstanceElements1BoxedNumber](#unevaluateditemswithnullinstanceelements1boxednumber)
boxed class to store validated Number payloads | +| record | [UnevaluateditemsWithNullInstanceElements.UnevaluateditemsWithNullInstanceElements1BoxedString](#unevaluateditemswithnullinstanceelements1boxedstring)
boxed class to store validated String payloads | +| record | [UnevaluateditemsWithNullInstanceElements.UnevaluateditemsWithNullInstanceElements1BoxedList](#unevaluateditemswithnullinstanceelements1boxedlist)
boxed class to store validated List payloads | +| record | [UnevaluateditemsWithNullInstanceElements.UnevaluateditemsWithNullInstanceElements1BoxedMap](#unevaluateditemswithnullinstanceelements1boxedmap)
boxed class to store validated Map payloads | | static class | [UnevaluateditemsWithNullInstanceElements.UnevaluateditemsWithNullInstanceElements1](#unevaluateditemswithnullinstanceelements1)
schema class | -| static class | [UnevaluateditemsWithNullInstanceElements.UnevaluatedItemsBoxed](#unevaluateditemsboxed)
abstract sealed validated payload class | -| static class | [UnevaluateditemsWithNullInstanceElements.UnevaluatedItemsBoxedVoid](#unevaluateditemsboxedvoid)
boxed class to store validated null payloads | +| sealed interface | [UnevaluateditemsWithNullInstanceElements.UnevaluatedItemsBoxed](#unevaluateditemsboxed)
sealed interface for validated payloads | +| record | [UnevaluateditemsWithNullInstanceElements.UnevaluatedItemsBoxedVoid](#unevaluateditemsboxedvoid)
boxed class to store validated null payloads | | static class | [UnevaluateditemsWithNullInstanceElements.UnevaluatedItems](#unevaluateditems)
schema class | ## UnevaluateditemsWithNullInstanceElements1Boxed -public static abstract sealed class UnevaluateditemsWithNullInstanceElements1Boxed
+public sealed interface UnevaluateditemsWithNullInstanceElements1Boxed
permits
[UnevaluateditemsWithNullInstanceElements1BoxedVoid](#unevaluateditemswithnullinstanceelements1boxedvoid), [UnevaluateditemsWithNullInstanceElements1BoxedBoolean](#unevaluateditemswithnullinstanceelements1boxedboolean), @@ -32,103 +32,109 @@ permits
[UnevaluateditemsWithNullInstanceElements1BoxedList](#unevaluateditemswithnullinstanceelements1boxedlist), [UnevaluateditemsWithNullInstanceElements1BoxedMap](#unevaluateditemswithnullinstanceelements1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## UnevaluateditemsWithNullInstanceElements1BoxedVoid -public static final class UnevaluateditemsWithNullInstanceElements1BoxedVoid
-extends [UnevaluateditemsWithNullInstanceElements1Boxed](#unevaluateditemswithnullinstanceelements1boxed) +public record UnevaluateditemsWithNullInstanceElements1BoxedVoid
+implements [UnevaluateditemsWithNullInstanceElements1Boxed](#unevaluateditemswithnullinstanceelements1boxed) -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 | | --------------------------- | | UnevaluateditemsWithNullInstanceElements1BoxedVoid(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 | ## UnevaluateditemsWithNullInstanceElements1BoxedBoolean -public static final class UnevaluateditemsWithNullInstanceElements1BoxedBoolean
-extends [UnevaluateditemsWithNullInstanceElements1Boxed](#unevaluateditemswithnullinstanceelements1boxed) +public record UnevaluateditemsWithNullInstanceElements1BoxedBoolean
+implements [UnevaluateditemsWithNullInstanceElements1Boxed](#unevaluateditemswithnullinstanceelements1boxed) -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 | | --------------------------- | | UnevaluateditemsWithNullInstanceElements1BoxedBoolean(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 | ## UnevaluateditemsWithNullInstanceElements1BoxedNumber -public static final class UnevaluateditemsWithNullInstanceElements1BoxedNumber
-extends [UnevaluateditemsWithNullInstanceElements1Boxed](#unevaluateditemswithnullinstanceelements1boxed) +public record UnevaluateditemsWithNullInstanceElements1BoxedNumber
+implements [UnevaluateditemsWithNullInstanceElements1Boxed](#unevaluateditemswithnullinstanceelements1boxed) -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 | | --------------------------- | | UnevaluateditemsWithNullInstanceElements1BoxedNumber(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 | ## UnevaluateditemsWithNullInstanceElements1BoxedString -public static final class UnevaluateditemsWithNullInstanceElements1BoxedString
-extends [UnevaluateditemsWithNullInstanceElements1Boxed](#unevaluateditemswithnullinstanceelements1boxed) +public record UnevaluateditemsWithNullInstanceElements1BoxedString
+implements [UnevaluateditemsWithNullInstanceElements1Boxed](#unevaluateditemswithnullinstanceelements1boxed) -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 | | --------------------------- | | UnevaluateditemsWithNullInstanceElements1BoxedString(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 | ## UnevaluateditemsWithNullInstanceElements1BoxedList -public static final class UnevaluateditemsWithNullInstanceElements1BoxedList
-extends [UnevaluateditemsWithNullInstanceElements1Boxed](#unevaluateditemswithnullinstanceelements1boxed) +public record UnevaluateditemsWithNullInstanceElements1BoxedList
+implements [UnevaluateditemsWithNullInstanceElements1Boxed](#unevaluateditemswithnullinstanceelements1boxed) -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 | | --------------------------- | | UnevaluateditemsWithNullInstanceElements1BoxedList(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 | ## UnevaluateditemsWithNullInstanceElements1BoxedMap -public static final class UnevaluateditemsWithNullInstanceElements1BoxedMap
-extends [UnevaluateditemsWithNullInstanceElements1Boxed](#unevaluateditemswithnullinstanceelements1boxed) +public record UnevaluateditemsWithNullInstanceElements1BoxedMap
+implements [UnevaluateditemsWithNullInstanceElements1Boxed](#unevaluateditemswithnullinstanceelements1boxed) -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 | | --------------------------- | | UnevaluateditemsWithNullInstanceElements1BoxedMap(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 | ## UnevaluateditemsWithNullInstanceElements1 public static class UnevaluateditemsWithNullInstanceElements1
@@ -160,29 +166,32 @@ A schema class that validates payloads | [UnevaluateditemsWithNullInstanceElements1BoxedBoolean](#unevaluateditemswithnullinstanceelements1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [UnevaluateditemsWithNullInstanceElements1BoxedMap](#unevaluateditemswithnullinstanceelements1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [UnevaluateditemsWithNullInstanceElements1BoxedList](#unevaluateditemswithnullinstanceelements1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [UnevaluateditemsWithNullInstanceElements1Boxed](#unevaluateditemswithnullinstanceelements1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## UnevaluatedItemsBoxed -public static abstract sealed class UnevaluatedItemsBoxed
+public sealed interface UnevaluatedItemsBoxed
permits
[UnevaluatedItemsBoxedVoid](#unevaluateditemsboxedvoid) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## UnevaluatedItemsBoxedVoid -public static final class UnevaluatedItemsBoxedVoid
-extends [UnevaluatedItemsBoxed](#unevaluateditemsboxed) +public record UnevaluatedItemsBoxedVoid
+implements [UnevaluatedItemsBoxed](#unevaluateditemsboxed) -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 | | --------------------------- | | UnevaluatedItemsBoxedVoid(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 | ## UnevaluatedItems public static class UnevaluatedItems
diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluatedpropertiesNotAffectedByPropertynames.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluatedpropertiesNotAffectedByPropertynames.md index 5722ada90f8..b86451826dc 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluatedpropertiesNotAffectedByPropertynames.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluatedpropertiesNotAffectedByPropertynames.md @@ -4,29 +4,29 @@ public class UnevaluatedpropertiesNotAffectedByPropertynames
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 | [UnevaluatedpropertiesNotAffectedByPropertynames.UnevaluatedpropertiesNotAffectedByPropertynames1Boxed](#unevaluatedpropertiesnotaffectedbypropertynames1boxed)
abstract sealed validated payload class | -| static class | [UnevaluatedpropertiesNotAffectedByPropertynames.UnevaluatedpropertiesNotAffectedByPropertynames1BoxedVoid](#unevaluatedpropertiesnotaffectedbypropertynames1boxedvoid)
boxed class to store validated null payloads | -| static class | [UnevaluatedpropertiesNotAffectedByPropertynames.UnevaluatedpropertiesNotAffectedByPropertynames1BoxedBoolean](#unevaluatedpropertiesnotaffectedbypropertynames1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [UnevaluatedpropertiesNotAffectedByPropertynames.UnevaluatedpropertiesNotAffectedByPropertynames1BoxedNumber](#unevaluatedpropertiesnotaffectedbypropertynames1boxednumber)
boxed class to store validated Number payloads | -| static class | [UnevaluatedpropertiesNotAffectedByPropertynames.UnevaluatedpropertiesNotAffectedByPropertynames1BoxedString](#unevaluatedpropertiesnotaffectedbypropertynames1boxedstring)
boxed class to store validated String payloads | -| static class | [UnevaluatedpropertiesNotAffectedByPropertynames.UnevaluatedpropertiesNotAffectedByPropertynames1BoxedList](#unevaluatedpropertiesnotaffectedbypropertynames1boxedlist)
boxed class to store validated List payloads | -| static class | [UnevaluatedpropertiesNotAffectedByPropertynames.UnevaluatedpropertiesNotAffectedByPropertynames1BoxedMap](#unevaluatedpropertiesnotaffectedbypropertynames1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [UnevaluatedpropertiesNotAffectedByPropertynames.UnevaluatedpropertiesNotAffectedByPropertynames1Boxed](#unevaluatedpropertiesnotaffectedbypropertynames1boxed)
sealed interface for validated payloads | +| record | [UnevaluatedpropertiesNotAffectedByPropertynames.UnevaluatedpropertiesNotAffectedByPropertynames1BoxedVoid](#unevaluatedpropertiesnotaffectedbypropertynames1boxedvoid)
boxed class to store validated null payloads | +| record | [UnevaluatedpropertiesNotAffectedByPropertynames.UnevaluatedpropertiesNotAffectedByPropertynames1BoxedBoolean](#unevaluatedpropertiesnotaffectedbypropertynames1boxedboolean)
boxed class to store validated boolean payloads | +| record | [UnevaluatedpropertiesNotAffectedByPropertynames.UnevaluatedpropertiesNotAffectedByPropertynames1BoxedNumber](#unevaluatedpropertiesnotaffectedbypropertynames1boxednumber)
boxed class to store validated Number payloads | +| record | [UnevaluatedpropertiesNotAffectedByPropertynames.UnevaluatedpropertiesNotAffectedByPropertynames1BoxedString](#unevaluatedpropertiesnotaffectedbypropertynames1boxedstring)
boxed class to store validated String payloads | +| record | [UnevaluatedpropertiesNotAffectedByPropertynames.UnevaluatedpropertiesNotAffectedByPropertynames1BoxedList](#unevaluatedpropertiesnotaffectedbypropertynames1boxedlist)
boxed class to store validated List payloads | +| record | [UnevaluatedpropertiesNotAffectedByPropertynames.UnevaluatedpropertiesNotAffectedByPropertynames1BoxedMap](#unevaluatedpropertiesnotaffectedbypropertynames1boxedmap)
boxed class to store validated Map payloads | | static class | [UnevaluatedpropertiesNotAffectedByPropertynames.UnevaluatedpropertiesNotAffectedByPropertynames1](#unevaluatedpropertiesnotaffectedbypropertynames1)
schema class | -| static class | [UnevaluatedpropertiesNotAffectedByPropertynames.UnevaluatedPropertiesBoxed](#unevaluatedpropertiesboxed)
abstract sealed validated payload class | -| static class | [UnevaluatedpropertiesNotAffectedByPropertynames.UnevaluatedPropertiesBoxedNumber](#unevaluatedpropertiesboxednumber)
boxed class to store validated Number payloads | +| sealed interface | [UnevaluatedpropertiesNotAffectedByPropertynames.UnevaluatedPropertiesBoxed](#unevaluatedpropertiesboxed)
sealed interface for validated payloads | +| record | [UnevaluatedpropertiesNotAffectedByPropertynames.UnevaluatedPropertiesBoxedNumber](#unevaluatedpropertiesboxednumber)
boxed class to store validated Number payloads | | static class | [UnevaluatedpropertiesNotAffectedByPropertynames.UnevaluatedProperties](#unevaluatedproperties)
schema class | -| static class | [UnevaluatedpropertiesNotAffectedByPropertynames.PropertyNamesBoxed](#propertynamesboxed)
abstract sealed validated payload class | -| static class | [UnevaluatedpropertiesNotAffectedByPropertynames.PropertyNamesBoxedString](#propertynamesboxedstring)
boxed class to store validated String payloads | +| sealed interface | [UnevaluatedpropertiesNotAffectedByPropertynames.PropertyNamesBoxed](#propertynamesboxed)
sealed interface for validated payloads | +| record | [UnevaluatedpropertiesNotAffectedByPropertynames.PropertyNamesBoxedString](#propertynamesboxedstring)
boxed class to store validated String payloads | | static class | [UnevaluatedpropertiesNotAffectedByPropertynames.PropertyNames](#propertynames)
schema class | ## UnevaluatedpropertiesNotAffectedByPropertynames1Boxed -public static abstract sealed class UnevaluatedpropertiesNotAffectedByPropertynames1Boxed
+public sealed interface UnevaluatedpropertiesNotAffectedByPropertynames1Boxed
permits
[UnevaluatedpropertiesNotAffectedByPropertynames1BoxedVoid](#unevaluatedpropertiesnotaffectedbypropertynames1boxedvoid), [UnevaluatedpropertiesNotAffectedByPropertynames1BoxedBoolean](#unevaluatedpropertiesnotaffectedbypropertynames1boxedboolean), @@ -35,103 +35,109 @@ permits
[UnevaluatedpropertiesNotAffectedByPropertynames1BoxedList](#unevaluatedpropertiesnotaffectedbypropertynames1boxedlist), [UnevaluatedpropertiesNotAffectedByPropertynames1BoxedMap](#unevaluatedpropertiesnotaffectedbypropertynames1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## UnevaluatedpropertiesNotAffectedByPropertynames1BoxedVoid -public static final class UnevaluatedpropertiesNotAffectedByPropertynames1BoxedVoid
-extends [UnevaluatedpropertiesNotAffectedByPropertynames1Boxed](#unevaluatedpropertiesnotaffectedbypropertynames1boxed) +public record UnevaluatedpropertiesNotAffectedByPropertynames1BoxedVoid
+implements [UnevaluatedpropertiesNotAffectedByPropertynames1Boxed](#unevaluatedpropertiesnotaffectedbypropertynames1boxed) -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 | | --------------------------- | | UnevaluatedpropertiesNotAffectedByPropertynames1BoxedVoid(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 | ## UnevaluatedpropertiesNotAffectedByPropertynames1BoxedBoolean -public static final class UnevaluatedpropertiesNotAffectedByPropertynames1BoxedBoolean
-extends [UnevaluatedpropertiesNotAffectedByPropertynames1Boxed](#unevaluatedpropertiesnotaffectedbypropertynames1boxed) +public record UnevaluatedpropertiesNotAffectedByPropertynames1BoxedBoolean
+implements [UnevaluatedpropertiesNotAffectedByPropertynames1Boxed](#unevaluatedpropertiesnotaffectedbypropertynames1boxed) -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 | | --------------------------- | | UnevaluatedpropertiesNotAffectedByPropertynames1BoxedBoolean(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 | ## UnevaluatedpropertiesNotAffectedByPropertynames1BoxedNumber -public static final class UnevaluatedpropertiesNotAffectedByPropertynames1BoxedNumber
-extends [UnevaluatedpropertiesNotAffectedByPropertynames1Boxed](#unevaluatedpropertiesnotaffectedbypropertynames1boxed) +public record UnevaluatedpropertiesNotAffectedByPropertynames1BoxedNumber
+implements [UnevaluatedpropertiesNotAffectedByPropertynames1Boxed](#unevaluatedpropertiesnotaffectedbypropertynames1boxed) -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 | | --------------------------- | | UnevaluatedpropertiesNotAffectedByPropertynames1BoxedNumber(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 | ## UnevaluatedpropertiesNotAffectedByPropertynames1BoxedString -public static final class UnevaluatedpropertiesNotAffectedByPropertynames1BoxedString
-extends [UnevaluatedpropertiesNotAffectedByPropertynames1Boxed](#unevaluatedpropertiesnotaffectedbypropertynames1boxed) +public record UnevaluatedpropertiesNotAffectedByPropertynames1BoxedString
+implements [UnevaluatedpropertiesNotAffectedByPropertynames1Boxed](#unevaluatedpropertiesnotaffectedbypropertynames1boxed) -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 | | --------------------------- | | UnevaluatedpropertiesNotAffectedByPropertynames1BoxedString(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 | ## UnevaluatedpropertiesNotAffectedByPropertynames1BoxedList -public static final class UnevaluatedpropertiesNotAffectedByPropertynames1BoxedList
-extends [UnevaluatedpropertiesNotAffectedByPropertynames1Boxed](#unevaluatedpropertiesnotaffectedbypropertynames1boxed) +public record UnevaluatedpropertiesNotAffectedByPropertynames1BoxedList
+implements [UnevaluatedpropertiesNotAffectedByPropertynames1Boxed](#unevaluatedpropertiesnotaffectedbypropertynames1boxed) -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 | | --------------------------- | | UnevaluatedpropertiesNotAffectedByPropertynames1BoxedList(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 | ## UnevaluatedpropertiesNotAffectedByPropertynames1BoxedMap -public static final class UnevaluatedpropertiesNotAffectedByPropertynames1BoxedMap
-extends [UnevaluatedpropertiesNotAffectedByPropertynames1Boxed](#unevaluatedpropertiesnotaffectedbypropertynames1boxed) +public record UnevaluatedpropertiesNotAffectedByPropertynames1BoxedMap
+implements [UnevaluatedpropertiesNotAffectedByPropertynames1Boxed](#unevaluatedpropertiesnotaffectedbypropertynames1boxed) -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 | | --------------------------- | | UnevaluatedpropertiesNotAffectedByPropertynames1BoxedMap(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 | ## UnevaluatedpropertiesNotAffectedByPropertynames1 public static class UnevaluatedpropertiesNotAffectedByPropertynames1
@@ -164,29 +170,32 @@ A schema class that validates payloads | [UnevaluatedpropertiesNotAffectedByPropertynames1BoxedBoolean](#unevaluatedpropertiesnotaffectedbypropertynames1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [UnevaluatedpropertiesNotAffectedByPropertynames1BoxedMap](#unevaluatedpropertiesnotaffectedbypropertynames1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [UnevaluatedpropertiesNotAffectedByPropertynames1BoxedList](#unevaluatedpropertiesnotaffectedbypropertynames1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [UnevaluatedpropertiesNotAffectedByPropertynames1Boxed](#unevaluatedpropertiesnotaffectedbypropertynames1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## UnevaluatedPropertiesBoxed -public static abstract sealed class UnevaluatedPropertiesBoxed
+public sealed interface UnevaluatedPropertiesBoxed
permits
[UnevaluatedPropertiesBoxedNumber](#unevaluatedpropertiesboxednumber) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## UnevaluatedPropertiesBoxedNumber -public static final class UnevaluatedPropertiesBoxedNumber
-extends [UnevaluatedPropertiesBoxed](#unevaluatedpropertiesboxed) +public record UnevaluatedPropertiesBoxedNumber
+implements [UnevaluatedPropertiesBoxed](#unevaluatedpropertiesboxed) -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 | | --------------------------- | | UnevaluatedPropertiesBoxedNumber(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 | ## UnevaluatedProperties public static class UnevaluatedProperties
@@ -200,27 +209,28 @@ A schema class that validates payloads | validateAndBox | ## PropertyNamesBoxed -public static abstract sealed class PropertyNamesBoxed
+public sealed interface PropertyNamesBoxed
permits
[PropertyNamesBoxedString](#propertynamesboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## PropertyNamesBoxedString -public static final class PropertyNamesBoxedString
-extends [PropertyNamesBoxed](#propertynamesboxed) +public record PropertyNamesBoxedString
+implements [PropertyNamesBoxed](#propertynamesboxed) -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 | | --------------------------- | | PropertyNamesBoxedString(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 | ## PropertyNames public static class PropertyNames
@@ -261,5 +271,7 @@ String validatedPayload = UnevaluatedpropertiesNotAffectedByPropertynames.Proper | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | | [PropertyNamesBoxedString](#propertynamesboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [PropertyNamesBoxed](#propertynamesboxed) | 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_1_0_unit_test/java/docs/components/schemas/UnevaluatedpropertiesSchema.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluatedpropertiesSchema.md index e0afa2a059c..36d0b5dd424 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluatedpropertiesSchema.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluatedpropertiesSchema.md @@ -4,41 +4,42 @@ public class UnevaluatedpropertiesSchema
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 | [UnevaluatedpropertiesSchema.UnevaluatedpropertiesSchema1Boxed](#unevaluatedpropertiesschema1boxed)
abstract sealed validated payload class | -| static class | [UnevaluatedpropertiesSchema.UnevaluatedpropertiesSchema1BoxedMap](#unevaluatedpropertiesschema1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [UnevaluatedpropertiesSchema.UnevaluatedpropertiesSchema1Boxed](#unevaluatedpropertiesschema1boxed)
sealed interface for validated payloads | +| record | [UnevaluatedpropertiesSchema.UnevaluatedpropertiesSchema1BoxedMap](#unevaluatedpropertiesschema1boxedmap)
boxed class to store validated Map payloads | | static class | [UnevaluatedpropertiesSchema.UnevaluatedpropertiesSchema1](#unevaluatedpropertiesschema1)
schema class | -| static class | [UnevaluatedpropertiesSchema.UnevaluatedPropertiesBoxed](#unevaluatedpropertiesboxed)
abstract sealed validated payload class | -| static class | [UnevaluatedpropertiesSchema.UnevaluatedPropertiesBoxedString](#unevaluatedpropertiesboxedstring)
boxed class to store validated String payloads | +| sealed interface | [UnevaluatedpropertiesSchema.UnevaluatedPropertiesBoxed](#unevaluatedpropertiesboxed)
sealed interface for validated payloads | +| record | [UnevaluatedpropertiesSchema.UnevaluatedPropertiesBoxedString](#unevaluatedpropertiesboxedstring)
boxed class to store validated String payloads | | static class | [UnevaluatedpropertiesSchema.UnevaluatedProperties](#unevaluatedproperties)
schema class | ## UnevaluatedpropertiesSchema1Boxed -public static abstract sealed class UnevaluatedpropertiesSchema1Boxed
+public sealed interface UnevaluatedpropertiesSchema1Boxed
permits
[UnevaluatedpropertiesSchema1BoxedMap](#unevaluatedpropertiesschema1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## UnevaluatedpropertiesSchema1BoxedMap -public static final class UnevaluatedpropertiesSchema1BoxedMap
-extends [UnevaluatedpropertiesSchema1Boxed](#unevaluatedpropertiesschema1boxed) +public record UnevaluatedpropertiesSchema1BoxedMap
+implements [UnevaluatedpropertiesSchema1Boxed](#unevaluatedpropertiesschema1boxed) -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 | | --------------------------- | | UnevaluatedpropertiesSchema1BoxedMap(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 | ## UnevaluatedpropertiesSchema1 public static class UnevaluatedpropertiesSchema1
@@ -57,29 +58,32 @@ A schema class that validates payloads | ----------------- | ---------------------- | | FrozenMap | validate(Map<?, ?> arg, SchemaConfiguration configuration) | | [UnevaluatedpropertiesSchema1BoxedMap](#unevaluatedpropertiesschema1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | +| [UnevaluatedpropertiesSchema1Boxed](#unevaluatedpropertiesschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## UnevaluatedPropertiesBoxed -public static abstract sealed class UnevaluatedPropertiesBoxed
+public sealed interface UnevaluatedPropertiesBoxed
permits
[UnevaluatedPropertiesBoxedString](#unevaluatedpropertiesboxedstring) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## UnevaluatedPropertiesBoxedString -public static final class UnevaluatedPropertiesBoxedString
-extends [UnevaluatedPropertiesBoxed](#unevaluatedpropertiesboxed) +public record UnevaluatedPropertiesBoxedString
+implements [UnevaluatedPropertiesBoxed](#unevaluatedpropertiesboxed) -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 | | --------------------------- | | UnevaluatedPropertiesBoxedString(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 | ## UnevaluatedProperties public static class UnevaluatedProperties
@@ -120,5 +124,7 @@ String validatedPayload = UnevaluatedpropertiesSchema.UnevaluatedProperties.vali | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | | [UnevaluatedPropertiesBoxedString](#unevaluatedpropertiesboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [UnevaluatedPropertiesBoxed](#unevaluatedpropertiesboxed) | 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_1_0_unit_test/java/docs/components/schemas/UnevaluatedpropertiesWithAdjacentAdditionalproperties.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluatedpropertiesWithAdjacentAdditionalproperties.md index c51e89ed94b..862619af3f6 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluatedpropertiesWithAdjacentAdditionalproperties.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluatedpropertiesWithAdjacentAdditionalproperties.md @@ -4,7 +4,7 @@ public class UnevaluatedpropertiesWithAdjacentAdditionalproperties
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 | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalproperties1Boxed](#unevaluatedpropertieswithadjacentadditionalproperties1boxed)
abstract sealed validated payload class | -| static class | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalproperties1BoxedMap](#unevaluatedpropertieswithadjacentadditionalproperties1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalproperties1Boxed](#unevaluatedpropertieswithadjacentadditionalproperties1boxed)
sealed interface for validated payloads | +| record | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalproperties1BoxedMap](#unevaluatedpropertieswithadjacentadditionalproperties1boxedmap)
boxed class to store validated Map payloads | | static class | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalproperties1](#unevaluatedpropertieswithadjacentadditionalproperties1)
schema class | -| static class | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.UnevaluatedPropertiesBoxed](#unevaluatedpropertiesboxed)
abstract sealed validated payload class | -| static class | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.UnevaluatedPropertiesBoxedVoid](#unevaluatedpropertiesboxedvoid)
boxed class to store validated null payloads | -| static class | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.UnevaluatedPropertiesBoxedBoolean](#unevaluatedpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| static class | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.UnevaluatedPropertiesBoxedNumber](#unevaluatedpropertiesboxednumber)
boxed class to store validated Number payloads | -| static class | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.UnevaluatedPropertiesBoxedString](#unevaluatedpropertiesboxedstring)
boxed class to store validated String payloads | -| static class | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.UnevaluatedPropertiesBoxedList](#unevaluatedpropertiesboxedlist)
boxed class to store validated List payloads | -| static class | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.UnevaluatedPropertiesBoxedMap](#unevaluatedpropertiesboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.UnevaluatedPropertiesBoxed](#unevaluatedpropertiesboxed)
sealed interface for validated payloads | +| record | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.UnevaluatedPropertiesBoxedVoid](#unevaluatedpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.UnevaluatedPropertiesBoxedBoolean](#unevaluatedpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.UnevaluatedPropertiesBoxedNumber](#unevaluatedpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.UnevaluatedPropertiesBoxedString](#unevaluatedpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.UnevaluatedPropertiesBoxedList](#unevaluatedpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.UnevaluatedPropertiesBoxedMap](#unevaluatedpropertiesboxedmap)
boxed class to store validated Map payloads | | static class | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.UnevaluatedProperties](#unevaluatedproperties)
schema class | | static class | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesMapBuilder](#unevaluatedpropertieswithadjacentadditionalpropertiesmapbuilder)
builder for Map payloads | | static class | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesMap](#unevaluatedpropertieswithadjacentadditionalpropertiesmap)
output class for Map payloads | -| static class | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.FooBoxed](#fooboxed)
abstract sealed validated payload class | -| static class | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.FooBoxedString](#fooboxedstring)
boxed class to store validated String payloads | +| sealed interface | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.FooBoxed](#fooboxed)
sealed interface for validated payloads | +| record | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.FooBoxedString](#fooboxedstring)
boxed class to store validated String payloads | | static class | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.Foo](#foo)
schema class | -| static class | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | -| static class | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| static class | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| static class | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| static class | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| static class | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| static class | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | | static class | [UnevaluatedpropertiesWithAdjacentAdditionalproperties.AdditionalProperties](#additionalproperties)
schema class | ## UnevaluatedpropertiesWithAdjacentAdditionalproperties1Boxed -public static abstract sealed class UnevaluatedpropertiesWithAdjacentAdditionalproperties1Boxed
+public sealed interface UnevaluatedpropertiesWithAdjacentAdditionalproperties1Boxed
permits
[UnevaluatedpropertiesWithAdjacentAdditionalproperties1BoxedMap](#unevaluatedpropertieswithadjacentadditionalproperties1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## UnevaluatedpropertiesWithAdjacentAdditionalproperties1BoxedMap -public static final class UnevaluatedpropertiesWithAdjacentAdditionalproperties1BoxedMap
-extends [UnevaluatedpropertiesWithAdjacentAdditionalproperties1Boxed](#unevaluatedpropertieswithadjacentadditionalproperties1boxed) +public record UnevaluatedpropertiesWithAdjacentAdditionalproperties1BoxedMap
+implements [UnevaluatedpropertiesWithAdjacentAdditionalproperties1Boxed](#unevaluatedpropertieswithadjacentadditionalproperties1boxed) -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 | | --------------------------- | | UnevaluatedpropertiesWithAdjacentAdditionalproperties1BoxedMap([UnevaluatedpropertiesWithAdjacentAdditionalpropertiesMap](#unevaluatedpropertieswithadjacentadditionalpropertiesmap) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UnevaluatedpropertiesWithAdjacentAdditionalpropertiesMap](#unevaluatedpropertieswithadjacentadditionalpropertiesmap) | data
validated payload | +| [UnevaluatedpropertiesWithAdjacentAdditionalpropertiesMap](#unevaluatedpropertieswithadjacentadditionalpropertiesmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | ## UnevaluatedpropertiesWithAdjacentAdditionalproperties1 public static class UnevaluatedpropertiesWithAdjacentAdditionalproperties1
@@ -105,9 +106,11 @@ UnevaluatedpropertiesWithAdjacentAdditionalproperties.UnevaluatedpropertiesWithA | ----------------- | ---------------------- | | [UnevaluatedpropertiesWithAdjacentAdditionalpropertiesMap](#unevaluatedpropertieswithadjacentadditionalpropertiesmap) | validate([Map<?, ?>](#unevaluatedpropertieswithadjacentadditionalpropertiesmapbuilder) arg, SchemaConfiguration configuration) | | [UnevaluatedpropertiesWithAdjacentAdditionalproperties1BoxedMap](#unevaluatedpropertieswithadjacentadditionalproperties1boxedmap) | validateAndBox([Map<?, ?>](#unevaluatedpropertieswithadjacentadditionalpropertiesmapbuilder) arg, SchemaConfiguration configuration) | +| [UnevaluatedpropertiesWithAdjacentAdditionalproperties1Boxed](#unevaluatedpropertieswithadjacentadditionalproperties1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## UnevaluatedPropertiesBoxed -public static abstract sealed class UnevaluatedPropertiesBoxed
+public sealed interface UnevaluatedPropertiesBoxed
permits
[UnevaluatedPropertiesBoxedVoid](#unevaluatedpropertiesboxedvoid), [UnevaluatedPropertiesBoxedBoolean](#unevaluatedpropertiesboxedboolean), @@ -116,103 +119,109 @@ permits
[UnevaluatedPropertiesBoxedList](#unevaluatedpropertiesboxedlist), [UnevaluatedPropertiesBoxedMap](#unevaluatedpropertiesboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## UnevaluatedPropertiesBoxedVoid -public static final class UnevaluatedPropertiesBoxedVoid
-extends [UnevaluatedPropertiesBoxed](#unevaluatedpropertiesboxed) +public record UnevaluatedPropertiesBoxedVoid
+implements [UnevaluatedPropertiesBoxed](#unevaluatedpropertiesboxed) -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 | | --------------------------- | | UnevaluatedPropertiesBoxedVoid(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 | ## UnevaluatedPropertiesBoxedBoolean -public static final class UnevaluatedPropertiesBoxedBoolean
-extends [UnevaluatedPropertiesBoxed](#unevaluatedpropertiesboxed) +public record UnevaluatedPropertiesBoxedBoolean
+implements [UnevaluatedPropertiesBoxed](#unevaluatedpropertiesboxed) -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 | | --------------------------- | | UnevaluatedPropertiesBoxedBoolean(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 | ## UnevaluatedPropertiesBoxedNumber -public static final class UnevaluatedPropertiesBoxedNumber
-extends [UnevaluatedPropertiesBoxed](#unevaluatedpropertiesboxed) +public record UnevaluatedPropertiesBoxedNumber
+implements [UnevaluatedPropertiesBoxed](#unevaluatedpropertiesboxed) -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 | | --------------------------- | | UnevaluatedPropertiesBoxedNumber(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 | ## UnevaluatedPropertiesBoxedString -public static final class UnevaluatedPropertiesBoxedString
-extends [UnevaluatedPropertiesBoxed](#unevaluatedpropertiesboxed) +public record UnevaluatedPropertiesBoxedString
+implements [UnevaluatedPropertiesBoxed](#unevaluatedpropertiesboxed) -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 | | --------------------------- | | UnevaluatedPropertiesBoxedString(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 | ## UnevaluatedPropertiesBoxedList -public static final class UnevaluatedPropertiesBoxedList
-extends [UnevaluatedPropertiesBoxed](#unevaluatedpropertiesboxed) +public record UnevaluatedPropertiesBoxedList
+implements [UnevaluatedPropertiesBoxed](#unevaluatedpropertiesboxed) -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 | | --------------------------- | | UnevaluatedPropertiesBoxedList(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 | ## UnevaluatedPropertiesBoxedMap -public static final class UnevaluatedPropertiesBoxedMap
-extends [UnevaluatedPropertiesBoxed](#unevaluatedpropertiesboxed) +public record UnevaluatedPropertiesBoxedMap
+implements [UnevaluatedPropertiesBoxed](#unevaluatedpropertiesboxed) -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 | | --------------------------- | | UnevaluatedPropertiesBoxedMap(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 | ## UnevaluatedProperties public static class UnevaluatedProperties
@@ -265,27 +274,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
@@ -299,7 +309,7 @@ A schema class that validates payloads | validateAndBox | ## AdditionalPropertiesBoxed -public static abstract sealed class AdditionalPropertiesBoxed
+public sealed interface AdditionalPropertiesBoxed
permits
[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), [AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), @@ -308,103 +318,109 @@ permits
[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), [AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## AdditionalPropertiesBoxedVoid -public static final class AdditionalPropertiesBoxedVoid
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedVoid(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 | ## 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 | ## AdditionalPropertiesBoxedNumber -public static final class AdditionalPropertiesBoxedNumber
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedNumber(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 | ## AdditionalPropertiesBoxedString -public static final class AdditionalPropertiesBoxedString
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedString(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 | ## AdditionalPropertiesBoxedList -public static final class AdditionalPropertiesBoxedList
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedList(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 | ## AdditionalPropertiesBoxedMap -public static final class AdditionalPropertiesBoxedMap
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) -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 | | --------------------------- | | AdditionalPropertiesBoxedMap(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 | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluatedpropertiesWithNullValuedInstanceProperties.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluatedpropertiesWithNullValuedInstanceProperties.md index 8d1e7953dc1..128bdcf42de 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluatedpropertiesWithNullValuedInstanceProperties.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluatedpropertiesWithNullValuedInstanceProperties.md @@ -4,26 +4,26 @@ public class UnevaluatedpropertiesWithNullValuedInstanceProperties
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 | [UnevaluatedpropertiesWithNullValuedInstanceProperties.UnevaluatedpropertiesWithNullValuedInstanceProperties1Boxed](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxed)
abstract sealed validated payload class | -| static class | [UnevaluatedpropertiesWithNullValuedInstanceProperties.UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedVoid](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxedvoid)
boxed class to store validated null payloads | -| static class | [UnevaluatedpropertiesWithNullValuedInstanceProperties.UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedBoolean](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [UnevaluatedpropertiesWithNullValuedInstanceProperties.UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedNumber](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxednumber)
boxed class to store validated Number payloads | -| static class | [UnevaluatedpropertiesWithNullValuedInstanceProperties.UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedString](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxedstring)
boxed class to store validated String payloads | -| static class | [UnevaluatedpropertiesWithNullValuedInstanceProperties.UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedList](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxedlist)
boxed class to store validated List payloads | -| static class | [UnevaluatedpropertiesWithNullValuedInstanceProperties.UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedMap](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [UnevaluatedpropertiesWithNullValuedInstanceProperties.UnevaluatedpropertiesWithNullValuedInstanceProperties1Boxed](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxed)
sealed interface for validated payloads | +| record | [UnevaluatedpropertiesWithNullValuedInstanceProperties.UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedVoid](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxedvoid)
boxed class to store validated null payloads | +| record | [UnevaluatedpropertiesWithNullValuedInstanceProperties.UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedBoolean](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxedboolean)
boxed class to store validated boolean payloads | +| record | [UnevaluatedpropertiesWithNullValuedInstanceProperties.UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedNumber](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxednumber)
boxed class to store validated Number payloads | +| record | [UnevaluatedpropertiesWithNullValuedInstanceProperties.UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedString](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxedstring)
boxed class to store validated String payloads | +| record | [UnevaluatedpropertiesWithNullValuedInstanceProperties.UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedList](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxedlist)
boxed class to store validated List payloads | +| record | [UnevaluatedpropertiesWithNullValuedInstanceProperties.UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedMap](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxedmap)
boxed class to store validated Map payloads | | static class | [UnevaluatedpropertiesWithNullValuedInstanceProperties.UnevaluatedpropertiesWithNullValuedInstanceProperties1](#unevaluatedpropertieswithnullvaluedinstanceproperties1)
schema class | -| static class | [UnevaluatedpropertiesWithNullValuedInstanceProperties.UnevaluatedPropertiesBoxed](#unevaluatedpropertiesboxed)
abstract sealed validated payload class | -| static class | [UnevaluatedpropertiesWithNullValuedInstanceProperties.UnevaluatedPropertiesBoxedVoid](#unevaluatedpropertiesboxedvoid)
boxed class to store validated null payloads | +| sealed interface | [UnevaluatedpropertiesWithNullValuedInstanceProperties.UnevaluatedPropertiesBoxed](#unevaluatedpropertiesboxed)
sealed interface for validated payloads | +| record | [UnevaluatedpropertiesWithNullValuedInstanceProperties.UnevaluatedPropertiesBoxedVoid](#unevaluatedpropertiesboxedvoid)
boxed class to store validated null payloads | | static class | [UnevaluatedpropertiesWithNullValuedInstanceProperties.UnevaluatedProperties](#unevaluatedproperties)
schema class | ## UnevaluatedpropertiesWithNullValuedInstanceProperties1Boxed -public static abstract sealed class UnevaluatedpropertiesWithNullValuedInstanceProperties1Boxed
+public sealed interface UnevaluatedpropertiesWithNullValuedInstanceProperties1Boxed
permits
[UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedVoid](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxedvoid), [UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedBoolean](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxedboolean), @@ -32,103 +32,109 @@ permits
[UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedList](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxedlist), [UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedMap](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedVoid -public static final class UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedVoid
-extends [UnevaluatedpropertiesWithNullValuedInstanceProperties1Boxed](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxed) +public record UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedVoid
+implements [UnevaluatedpropertiesWithNullValuedInstanceProperties1Boxed](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxed) -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 | | --------------------------- | | UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedVoid(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 | ## UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedBoolean -public static final class UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedBoolean
-extends [UnevaluatedpropertiesWithNullValuedInstanceProperties1Boxed](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxed) +public record UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedBoolean
+implements [UnevaluatedpropertiesWithNullValuedInstanceProperties1Boxed](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxed) -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 | | --------------------------- | | UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedBoolean(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 | ## UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedNumber -public static final class UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedNumber
-extends [UnevaluatedpropertiesWithNullValuedInstanceProperties1Boxed](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxed) +public record UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedNumber
+implements [UnevaluatedpropertiesWithNullValuedInstanceProperties1Boxed](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxed) -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 | | --------------------------- | | UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedNumber(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 | ## UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedString -public static final class UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedString
-extends [UnevaluatedpropertiesWithNullValuedInstanceProperties1Boxed](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxed) +public record UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedString
+implements [UnevaluatedpropertiesWithNullValuedInstanceProperties1Boxed](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxed) -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 | | --------------------------- | | UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedString(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 | ## UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedList -public static final class UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedList
-extends [UnevaluatedpropertiesWithNullValuedInstanceProperties1Boxed](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxed) +public record UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedList
+implements [UnevaluatedpropertiesWithNullValuedInstanceProperties1Boxed](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxed) -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 | | --------------------------- | | UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedList(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 | ## UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedMap -public static final class UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedMap
-extends [UnevaluatedpropertiesWithNullValuedInstanceProperties1Boxed](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxed) +public record UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedMap
+implements [UnevaluatedpropertiesWithNullValuedInstanceProperties1Boxed](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxed) -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 | | --------------------------- | | UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedMap(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 | ## UnevaluatedpropertiesWithNullValuedInstanceProperties1 public static class UnevaluatedpropertiesWithNullValuedInstanceProperties1
@@ -160,29 +166,32 @@ A schema class that validates payloads | [UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedBoolean](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedMap](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedList](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [UnevaluatedpropertiesWithNullValuedInstanceProperties1Boxed](#unevaluatedpropertieswithnullvaluedinstanceproperties1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## UnevaluatedPropertiesBoxed -public static abstract sealed class UnevaluatedPropertiesBoxed
+public sealed interface UnevaluatedPropertiesBoxed
permits
[UnevaluatedPropertiesBoxedVoid](#unevaluatedpropertiesboxedvoid) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## UnevaluatedPropertiesBoxedVoid -public static final class UnevaluatedPropertiesBoxedVoid
-extends [UnevaluatedPropertiesBoxed](#unevaluatedpropertiesboxed) +public record UnevaluatedPropertiesBoxedVoid
+implements [UnevaluatedPropertiesBoxed](#unevaluatedpropertiesboxed) -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 | | --------------------------- | | UnevaluatedPropertiesBoxedVoid(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 | ## UnevaluatedProperties public static class UnevaluatedProperties
diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/UniqueitemsFalseValidation.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UniqueitemsFalseValidation.md index d535b08ed84..322fd231596 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/UniqueitemsFalseValidation.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/UniqueitemsFalseWithAnArrayOfItems.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UniqueitemsFalseWithAnArrayOfItems.md index b612b9cc2cd..1ecfacb8e78 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/UniqueitemsFalseWithAnArrayOfItems.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UniqueitemsFalseWithAnArrayOfItems.md @@ -4,7 +4,7 @@ public class UniqueitemsFalseWithAnArrayOfItems
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,25 +12,25 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [UniqueitemsFalseWithAnArrayOfItems.UniqueitemsFalseWithAnArrayOfItems1Boxed](#uniqueitemsfalsewithanarrayofitems1boxed)
abstract sealed validated payload class | -| static class | [UniqueitemsFalseWithAnArrayOfItems.UniqueitemsFalseWithAnArrayOfItems1BoxedVoid](#uniqueitemsfalsewithanarrayofitems1boxedvoid)
boxed class to store validated null payloads | -| static class | [UniqueitemsFalseWithAnArrayOfItems.UniqueitemsFalseWithAnArrayOfItems1BoxedBoolean](#uniqueitemsfalsewithanarrayofitems1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [UniqueitemsFalseWithAnArrayOfItems.UniqueitemsFalseWithAnArrayOfItems1BoxedNumber](#uniqueitemsfalsewithanarrayofitems1boxednumber)
boxed class to store validated Number payloads | -| static class | [UniqueitemsFalseWithAnArrayOfItems.UniqueitemsFalseWithAnArrayOfItems1BoxedString](#uniqueitemsfalsewithanarrayofitems1boxedstring)
boxed class to store validated String payloads | -| static class | [UniqueitemsFalseWithAnArrayOfItems.UniqueitemsFalseWithAnArrayOfItems1BoxedList](#uniqueitemsfalsewithanarrayofitems1boxedlist)
boxed class to store validated List payloads | -| static class | [UniqueitemsFalseWithAnArrayOfItems.UniqueitemsFalseWithAnArrayOfItems1BoxedMap](#uniqueitemsfalsewithanarrayofitems1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [UniqueitemsFalseWithAnArrayOfItems.UniqueitemsFalseWithAnArrayOfItems1Boxed](#uniqueitemsfalsewithanarrayofitems1boxed)
sealed interface for validated payloads | +| record | [UniqueitemsFalseWithAnArrayOfItems.UniqueitemsFalseWithAnArrayOfItems1BoxedVoid](#uniqueitemsfalsewithanarrayofitems1boxedvoid)
boxed class to store validated null payloads | +| record | [UniqueitemsFalseWithAnArrayOfItems.UniqueitemsFalseWithAnArrayOfItems1BoxedBoolean](#uniqueitemsfalsewithanarrayofitems1boxedboolean)
boxed class to store validated boolean payloads | +| record | [UniqueitemsFalseWithAnArrayOfItems.UniqueitemsFalseWithAnArrayOfItems1BoxedNumber](#uniqueitemsfalsewithanarrayofitems1boxednumber)
boxed class to store validated Number payloads | +| record | [UniqueitemsFalseWithAnArrayOfItems.UniqueitemsFalseWithAnArrayOfItems1BoxedString](#uniqueitemsfalsewithanarrayofitems1boxedstring)
boxed class to store validated String payloads | +| record | [UniqueitemsFalseWithAnArrayOfItems.UniqueitemsFalseWithAnArrayOfItems1BoxedList](#uniqueitemsfalsewithanarrayofitems1boxedlist)
boxed class to store validated List payloads | +| record | [UniqueitemsFalseWithAnArrayOfItems.UniqueitemsFalseWithAnArrayOfItems1BoxedMap](#uniqueitemsfalsewithanarrayofitems1boxedmap)
boxed class to store validated Map payloads | | static class | [UniqueitemsFalseWithAnArrayOfItems.UniqueitemsFalseWithAnArrayOfItems1](#uniqueitemsfalsewithanarrayofitems1)
schema class | -| static class | [UniqueitemsFalseWithAnArrayOfItems.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | -| static class | [UniqueitemsFalseWithAnArrayOfItems.Schema1BoxedBoolean](#schema1boxedboolean)
boxed class to store validated boolean payloads | +| sealed interface | [UniqueitemsFalseWithAnArrayOfItems.Schema1Boxed](#schema1boxed)
sealed interface for validated payloads | +| record | [UniqueitemsFalseWithAnArrayOfItems.Schema1BoxedBoolean](#schema1boxedboolean)
boxed class to store validated boolean payloads | | static class | [UniqueitemsFalseWithAnArrayOfItems.Schema1](#schema1)
schema class | -| static class | [UniqueitemsFalseWithAnArrayOfItems.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | -| static class | [UniqueitemsFalseWithAnArrayOfItems.Schema0BoxedBoolean](#schema0boxedboolean)
boxed class to store validated boolean payloads | +| sealed interface | [UniqueitemsFalseWithAnArrayOfItems.Schema0Boxed](#schema0boxed)
sealed interface for validated payloads | +| record | [UniqueitemsFalseWithAnArrayOfItems.Schema0BoxedBoolean](#schema0boxedboolean)
boxed class to store validated boolean payloads | | static class | [UniqueitemsFalseWithAnArrayOfItems.Schema0](#schema0)
schema class | | static class | [UniqueitemsFalseWithAnArrayOfItems.UniqueitemsFalseWithAnArrayOfItemsListBuilder](#uniqueitemsfalsewithanarrayofitemslistbuilder)
builder for List payloads | | static class | [UniqueitemsFalseWithAnArrayOfItems.UniqueitemsFalseWithAnArrayOfItemsList](#uniqueitemsfalsewithanarrayofitemslist)
output class for List payloads | ## UniqueitemsFalseWithAnArrayOfItems1Boxed -public static abstract sealed class UniqueitemsFalseWithAnArrayOfItems1Boxed
+public sealed interface UniqueitemsFalseWithAnArrayOfItems1Boxed
permits
[UniqueitemsFalseWithAnArrayOfItems1BoxedVoid](#uniqueitemsfalsewithanarrayofitems1boxedvoid), [UniqueitemsFalseWithAnArrayOfItems1BoxedBoolean](#uniqueitemsfalsewithanarrayofitems1boxedboolean), @@ -39,103 +39,109 @@ permits
[UniqueitemsFalseWithAnArrayOfItems1BoxedList](#uniqueitemsfalsewithanarrayofitems1boxedlist), [UniqueitemsFalseWithAnArrayOfItems1BoxedMap](#uniqueitemsfalsewithanarrayofitems1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## UniqueitemsFalseWithAnArrayOfItems1BoxedVoid -public static final class UniqueitemsFalseWithAnArrayOfItems1BoxedVoid
-extends [UniqueitemsFalseWithAnArrayOfItems1Boxed](#uniqueitemsfalsewithanarrayofitems1boxed) +public record UniqueitemsFalseWithAnArrayOfItems1BoxedVoid
+implements [UniqueitemsFalseWithAnArrayOfItems1Boxed](#uniqueitemsfalsewithanarrayofitems1boxed) -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 | | --------------------------- | | UniqueitemsFalseWithAnArrayOfItems1BoxedVoid(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 | ## UniqueitemsFalseWithAnArrayOfItems1BoxedBoolean -public static final class UniqueitemsFalseWithAnArrayOfItems1BoxedBoolean
-extends [UniqueitemsFalseWithAnArrayOfItems1Boxed](#uniqueitemsfalsewithanarrayofitems1boxed) +public record UniqueitemsFalseWithAnArrayOfItems1BoxedBoolean
+implements [UniqueitemsFalseWithAnArrayOfItems1Boxed](#uniqueitemsfalsewithanarrayofitems1boxed) -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 | | --------------------------- | | UniqueitemsFalseWithAnArrayOfItems1BoxedBoolean(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 | ## UniqueitemsFalseWithAnArrayOfItems1BoxedNumber -public static final class UniqueitemsFalseWithAnArrayOfItems1BoxedNumber
-extends [UniqueitemsFalseWithAnArrayOfItems1Boxed](#uniqueitemsfalsewithanarrayofitems1boxed) +public record UniqueitemsFalseWithAnArrayOfItems1BoxedNumber
+implements [UniqueitemsFalseWithAnArrayOfItems1Boxed](#uniqueitemsfalsewithanarrayofitems1boxed) -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 | | --------------------------- | | UniqueitemsFalseWithAnArrayOfItems1BoxedNumber(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 | ## UniqueitemsFalseWithAnArrayOfItems1BoxedString -public static final class UniqueitemsFalseWithAnArrayOfItems1BoxedString
-extends [UniqueitemsFalseWithAnArrayOfItems1Boxed](#uniqueitemsfalsewithanarrayofitems1boxed) +public record UniqueitemsFalseWithAnArrayOfItems1BoxedString
+implements [UniqueitemsFalseWithAnArrayOfItems1Boxed](#uniqueitemsfalsewithanarrayofitems1boxed) -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 | | --------------------------- | | UniqueitemsFalseWithAnArrayOfItems1BoxedString(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 | ## UniqueitemsFalseWithAnArrayOfItems1BoxedList -public static final class UniqueitemsFalseWithAnArrayOfItems1BoxedList
-extends [UniqueitemsFalseWithAnArrayOfItems1Boxed](#uniqueitemsfalsewithanarrayofitems1boxed) +public record UniqueitemsFalseWithAnArrayOfItems1BoxedList
+implements [UniqueitemsFalseWithAnArrayOfItems1Boxed](#uniqueitemsfalsewithanarrayofitems1boxed) -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 | | --------------------------- | | UniqueitemsFalseWithAnArrayOfItems1BoxedList([UniqueitemsFalseWithAnArrayOfItemsList](#uniqueitemsfalsewithanarrayofitemslist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UniqueitemsFalseWithAnArrayOfItemsList](#uniqueitemsfalsewithanarrayofitemslist) | data
validated payload | +| [UniqueitemsFalseWithAnArrayOfItemsList](#uniqueitemsfalsewithanarrayofitemslist) | data()
validated payload | +| @Nullable Object | getData()
validated payload | ## UniqueitemsFalseWithAnArrayOfItems1BoxedMap -public static final class UniqueitemsFalseWithAnArrayOfItems1BoxedMap
-extends [UniqueitemsFalseWithAnArrayOfItems1Boxed](#uniqueitemsfalsewithanarrayofitems1boxed) +public record UniqueitemsFalseWithAnArrayOfItems1BoxedMap
+implements [UniqueitemsFalseWithAnArrayOfItems1Boxed](#uniqueitemsfalsewithanarrayofitems1boxed) -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 | | --------------------------- | | UniqueitemsFalseWithAnArrayOfItems1BoxedMap(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 | ## UniqueitemsFalseWithAnArrayOfItems1 public static class UniqueitemsFalseWithAnArrayOfItems1
@@ -168,29 +174,32 @@ A schema class that validates payloads | [UniqueitemsFalseWithAnArrayOfItems1BoxedBoolean](#uniqueitemsfalsewithanarrayofitems1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [UniqueitemsFalseWithAnArrayOfItems1BoxedMap](#uniqueitemsfalsewithanarrayofitems1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [UniqueitemsFalseWithAnArrayOfItems1BoxedList](#uniqueitemsfalsewithanarrayofitems1boxedlist) | validateAndBox([List](#uniqueitemsfalsewithanarrayofitemslistbuilder) arg, SchemaConfiguration configuration) | +| [UniqueitemsFalseWithAnArrayOfItems1Boxed](#uniqueitemsfalsewithanarrayofitems1boxed) | 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
[Schema1BoxedBoolean](#schema1boxedboolean) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## 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 | ## Schema1 public static class Schema1
@@ -204,27 +213,28 @@ A schema class that validates payloads | validateAndBox | ## Schema0Boxed -public static abstract sealed class Schema0Boxed
+public sealed interface Schema0Boxed
permits
[Schema0BoxedBoolean](#schema0boxedboolean) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## 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 | ## Schema0 public static class Schema0
diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/UniqueitemsValidation.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UniqueitemsValidation.md index ba4c7a9730c..be6b794fe51 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/UniqueitemsValidation.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/UniqueitemsWithAnArrayOfItems.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UniqueitemsWithAnArrayOfItems.md index a27972ce379..ca977d4c703 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/UniqueitemsWithAnArrayOfItems.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UniqueitemsWithAnArrayOfItems.md @@ -4,7 +4,7 @@ public class UniqueitemsWithAnArrayOfItems
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,25 +12,25 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| static class | [UniqueitemsWithAnArrayOfItems.UniqueitemsWithAnArrayOfItems1Boxed](#uniqueitemswithanarrayofitems1boxed)
abstract sealed validated payload class | -| static class | [UniqueitemsWithAnArrayOfItems.UniqueitemsWithAnArrayOfItems1BoxedVoid](#uniqueitemswithanarrayofitems1boxedvoid)
boxed class to store validated null payloads | -| static class | [UniqueitemsWithAnArrayOfItems.UniqueitemsWithAnArrayOfItems1BoxedBoolean](#uniqueitemswithanarrayofitems1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [UniqueitemsWithAnArrayOfItems.UniqueitemsWithAnArrayOfItems1BoxedNumber](#uniqueitemswithanarrayofitems1boxednumber)
boxed class to store validated Number payloads | -| static class | [UniqueitemsWithAnArrayOfItems.UniqueitemsWithAnArrayOfItems1BoxedString](#uniqueitemswithanarrayofitems1boxedstring)
boxed class to store validated String payloads | -| static class | [UniqueitemsWithAnArrayOfItems.UniqueitemsWithAnArrayOfItems1BoxedList](#uniqueitemswithanarrayofitems1boxedlist)
boxed class to store validated List payloads | -| static class | [UniqueitemsWithAnArrayOfItems.UniqueitemsWithAnArrayOfItems1BoxedMap](#uniqueitemswithanarrayofitems1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [UniqueitemsWithAnArrayOfItems.UniqueitemsWithAnArrayOfItems1Boxed](#uniqueitemswithanarrayofitems1boxed)
sealed interface for validated payloads | +| record | [UniqueitemsWithAnArrayOfItems.UniqueitemsWithAnArrayOfItems1BoxedVoid](#uniqueitemswithanarrayofitems1boxedvoid)
boxed class to store validated null payloads | +| record | [UniqueitemsWithAnArrayOfItems.UniqueitemsWithAnArrayOfItems1BoxedBoolean](#uniqueitemswithanarrayofitems1boxedboolean)
boxed class to store validated boolean payloads | +| record | [UniqueitemsWithAnArrayOfItems.UniqueitemsWithAnArrayOfItems1BoxedNumber](#uniqueitemswithanarrayofitems1boxednumber)
boxed class to store validated Number payloads | +| record | [UniqueitemsWithAnArrayOfItems.UniqueitemsWithAnArrayOfItems1BoxedString](#uniqueitemswithanarrayofitems1boxedstring)
boxed class to store validated String payloads | +| record | [UniqueitemsWithAnArrayOfItems.UniqueitemsWithAnArrayOfItems1BoxedList](#uniqueitemswithanarrayofitems1boxedlist)
boxed class to store validated List payloads | +| record | [UniqueitemsWithAnArrayOfItems.UniqueitemsWithAnArrayOfItems1BoxedMap](#uniqueitemswithanarrayofitems1boxedmap)
boxed class to store validated Map payloads | | static class | [UniqueitemsWithAnArrayOfItems.UniqueitemsWithAnArrayOfItems1](#uniqueitemswithanarrayofitems1)
schema class | -| static class | [UniqueitemsWithAnArrayOfItems.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | -| static class | [UniqueitemsWithAnArrayOfItems.Schema1BoxedBoolean](#schema1boxedboolean)
boxed class to store validated boolean payloads | +| sealed interface | [UniqueitemsWithAnArrayOfItems.Schema1Boxed](#schema1boxed)
sealed interface for validated payloads | +| record | [UniqueitemsWithAnArrayOfItems.Schema1BoxedBoolean](#schema1boxedboolean)
boxed class to store validated boolean payloads | | static class | [UniqueitemsWithAnArrayOfItems.Schema1](#schema1)
schema class | -| static class | [UniqueitemsWithAnArrayOfItems.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | -| static class | [UniqueitemsWithAnArrayOfItems.Schema0BoxedBoolean](#schema0boxedboolean)
boxed class to store validated boolean payloads | +| sealed interface | [UniqueitemsWithAnArrayOfItems.Schema0Boxed](#schema0boxed)
sealed interface for validated payloads | +| record | [UniqueitemsWithAnArrayOfItems.Schema0BoxedBoolean](#schema0boxedboolean)
boxed class to store validated boolean payloads | | static class | [UniqueitemsWithAnArrayOfItems.Schema0](#schema0)
schema class | | static class | [UniqueitemsWithAnArrayOfItems.UniqueitemsWithAnArrayOfItemsListBuilder](#uniqueitemswithanarrayofitemslistbuilder)
builder for List payloads | | static class | [UniqueitemsWithAnArrayOfItems.UniqueitemsWithAnArrayOfItemsList](#uniqueitemswithanarrayofitemslist)
output class for List payloads | ## UniqueitemsWithAnArrayOfItems1Boxed -public static abstract sealed class UniqueitemsWithAnArrayOfItems1Boxed
+public sealed interface UniqueitemsWithAnArrayOfItems1Boxed
permits
[UniqueitemsWithAnArrayOfItems1BoxedVoid](#uniqueitemswithanarrayofitems1boxedvoid), [UniqueitemsWithAnArrayOfItems1BoxedBoolean](#uniqueitemswithanarrayofitems1boxedboolean), @@ -39,103 +39,109 @@ permits
[UniqueitemsWithAnArrayOfItems1BoxedList](#uniqueitemswithanarrayofitems1boxedlist), [UniqueitemsWithAnArrayOfItems1BoxedMap](#uniqueitemswithanarrayofitems1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## UniqueitemsWithAnArrayOfItems1BoxedVoid -public static final class UniqueitemsWithAnArrayOfItems1BoxedVoid
-extends [UniqueitemsWithAnArrayOfItems1Boxed](#uniqueitemswithanarrayofitems1boxed) +public record UniqueitemsWithAnArrayOfItems1BoxedVoid
+implements [UniqueitemsWithAnArrayOfItems1Boxed](#uniqueitemswithanarrayofitems1boxed) -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 | | --------------------------- | | UniqueitemsWithAnArrayOfItems1BoxedVoid(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 | ## UniqueitemsWithAnArrayOfItems1BoxedBoolean -public static final class UniqueitemsWithAnArrayOfItems1BoxedBoolean
-extends [UniqueitemsWithAnArrayOfItems1Boxed](#uniqueitemswithanarrayofitems1boxed) +public record UniqueitemsWithAnArrayOfItems1BoxedBoolean
+implements [UniqueitemsWithAnArrayOfItems1Boxed](#uniqueitemswithanarrayofitems1boxed) -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 | | --------------------------- | | UniqueitemsWithAnArrayOfItems1BoxedBoolean(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 | ## UniqueitemsWithAnArrayOfItems1BoxedNumber -public static final class UniqueitemsWithAnArrayOfItems1BoxedNumber
-extends [UniqueitemsWithAnArrayOfItems1Boxed](#uniqueitemswithanarrayofitems1boxed) +public record UniqueitemsWithAnArrayOfItems1BoxedNumber
+implements [UniqueitemsWithAnArrayOfItems1Boxed](#uniqueitemswithanarrayofitems1boxed) -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 | | --------------------------- | | UniqueitemsWithAnArrayOfItems1BoxedNumber(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 | ## UniqueitemsWithAnArrayOfItems1BoxedString -public static final class UniqueitemsWithAnArrayOfItems1BoxedString
-extends [UniqueitemsWithAnArrayOfItems1Boxed](#uniqueitemswithanarrayofitems1boxed) +public record UniqueitemsWithAnArrayOfItems1BoxedString
+implements [UniqueitemsWithAnArrayOfItems1Boxed](#uniqueitemswithanarrayofitems1boxed) -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 | | --------------------------- | | UniqueitemsWithAnArrayOfItems1BoxedString(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 | ## UniqueitemsWithAnArrayOfItems1BoxedList -public static final class UniqueitemsWithAnArrayOfItems1BoxedList
-extends [UniqueitemsWithAnArrayOfItems1Boxed](#uniqueitemswithanarrayofitems1boxed) +public record UniqueitemsWithAnArrayOfItems1BoxedList
+implements [UniqueitemsWithAnArrayOfItems1Boxed](#uniqueitemswithanarrayofitems1boxed) -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 | | --------------------------- | | UniqueitemsWithAnArrayOfItems1BoxedList([UniqueitemsWithAnArrayOfItemsList](#uniqueitemswithanarrayofitemslist) data)
Creates an instance, private visibility | -### Field Summary -| Modifier and Type | Field and Description | +### Method Summary +| Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UniqueitemsWithAnArrayOfItemsList](#uniqueitemswithanarrayofitemslist) | data
validated payload | +| [UniqueitemsWithAnArrayOfItemsList](#uniqueitemswithanarrayofitemslist) | data()
validated payload | +| @Nullable Object | getData()
validated payload | ## UniqueitemsWithAnArrayOfItems1BoxedMap -public static final class UniqueitemsWithAnArrayOfItems1BoxedMap
-extends [UniqueitemsWithAnArrayOfItems1Boxed](#uniqueitemswithanarrayofitems1boxed) +public record UniqueitemsWithAnArrayOfItems1BoxedMap
+implements [UniqueitemsWithAnArrayOfItems1Boxed](#uniqueitemswithanarrayofitems1boxed) -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 | | --------------------------- | | UniqueitemsWithAnArrayOfItems1BoxedMap(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 | ## UniqueitemsWithAnArrayOfItems1 public static class UniqueitemsWithAnArrayOfItems1
@@ -168,29 +174,32 @@ A schema class that validates payloads | [UniqueitemsWithAnArrayOfItems1BoxedBoolean](#uniqueitemswithanarrayofitems1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [UniqueitemsWithAnArrayOfItems1BoxedMap](#uniqueitemswithanarrayofitems1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [UniqueitemsWithAnArrayOfItems1BoxedList](#uniqueitemswithanarrayofitems1boxedlist) | validateAndBox([List](#uniqueitemswithanarrayofitemslistbuilder) arg, SchemaConfiguration configuration) | +| [UniqueitemsWithAnArrayOfItems1Boxed](#uniqueitemswithanarrayofitems1boxed) | 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
[Schema1BoxedBoolean](#schema1boxedboolean) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## 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 | ## Schema1 public static class Schema1
@@ -204,27 +213,28 @@ A schema class that validates payloads | validateAndBox | ## Schema0Boxed -public static abstract sealed class Schema0Boxed
+public sealed interface Schema0Boxed
permits
[Schema0BoxedBoolean](#schema0boxedboolean) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## 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 | ## Schema0 public static class Schema0
diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/UriFormat.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UriFormat.md index e88ec7c7e06..86070ed0198 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/UriFormat.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/UriReferenceFormat.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UriReferenceFormat.md index 6292b784449..9b8f21979a3 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/UriReferenceFormat.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/UriTemplateFormat.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UriTemplateFormat.md index 22c921701b2..a95971b7ca9 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/UriTemplateFormat.md +++ b/samples/client/3_1_0_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_1_0_unit_test/java/docs/components/schemas/UuidFormat.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UuidFormat.md index bbe14d4538d..ed984bd9617 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/UuidFormat.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UuidFormat.md @@ -4,23 +4,23 @@ public class UuidFormat
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 | [UuidFormat.UuidFormat1Boxed](#uuidformat1boxed)
abstract sealed validated payload class | -| static class | [UuidFormat.UuidFormat1BoxedVoid](#uuidformat1boxedvoid)
boxed class to store validated null payloads | -| static class | [UuidFormat.UuidFormat1BoxedBoolean](#uuidformat1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [UuidFormat.UuidFormat1BoxedNumber](#uuidformat1boxednumber)
boxed class to store validated Number payloads | -| static class | [UuidFormat.UuidFormat1BoxedString](#uuidformat1boxedstring)
boxed class to store validated String payloads | -| static class | [UuidFormat.UuidFormat1BoxedList](#uuidformat1boxedlist)
boxed class to store validated List payloads | -| static class | [UuidFormat.UuidFormat1BoxedMap](#uuidformat1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [UuidFormat.UuidFormat1Boxed](#uuidformat1boxed)
sealed interface for validated payloads | +| record | [UuidFormat.UuidFormat1BoxedVoid](#uuidformat1boxedvoid)
boxed class to store validated null payloads | +| record | [UuidFormat.UuidFormat1BoxedBoolean](#uuidformat1boxedboolean)
boxed class to store validated boolean payloads | +| record | [UuidFormat.UuidFormat1BoxedNumber](#uuidformat1boxednumber)
boxed class to store validated Number payloads | +| record | [UuidFormat.UuidFormat1BoxedString](#uuidformat1boxedstring)
boxed class to store validated String payloads | +| record | [UuidFormat.UuidFormat1BoxedList](#uuidformat1boxedlist)
boxed class to store validated List payloads | +| record | [UuidFormat.UuidFormat1BoxedMap](#uuidformat1boxedmap)
boxed class to store validated Map payloads | | static class | [UuidFormat.UuidFormat1](#uuidformat1)
schema class | ## UuidFormat1Boxed -public static abstract sealed class UuidFormat1Boxed
+public sealed interface UuidFormat1Boxed
permits
[UuidFormat1BoxedVoid](#uuidformat1boxedvoid), [UuidFormat1BoxedBoolean](#uuidformat1boxedboolean), @@ -29,103 +29,109 @@ permits
[UuidFormat1BoxedList](#uuidformat1boxedlist), [UuidFormat1BoxedMap](#uuidformat1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## UuidFormat1BoxedVoid -public static final class UuidFormat1BoxedVoid
-extends [UuidFormat1Boxed](#uuidformat1boxed) +public record UuidFormat1BoxedVoid
+implements [UuidFormat1Boxed](#uuidformat1boxed) -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 | | --------------------------- | | UuidFormat1BoxedVoid(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 | ## UuidFormat1BoxedBoolean -public static final class UuidFormat1BoxedBoolean
-extends [UuidFormat1Boxed](#uuidformat1boxed) +public record UuidFormat1BoxedBoolean
+implements [UuidFormat1Boxed](#uuidformat1boxed) -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 | | --------------------------- | | UuidFormat1BoxedBoolean(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 | ## UuidFormat1BoxedNumber -public static final class UuidFormat1BoxedNumber
-extends [UuidFormat1Boxed](#uuidformat1boxed) +public record UuidFormat1BoxedNumber
+implements [UuidFormat1Boxed](#uuidformat1boxed) -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 | | --------------------------- | | UuidFormat1BoxedNumber(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 | ## UuidFormat1BoxedString -public static final class UuidFormat1BoxedString
-extends [UuidFormat1Boxed](#uuidformat1boxed) +public record UuidFormat1BoxedString
+implements [UuidFormat1Boxed](#uuidformat1boxed) -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 | | --------------------------- | | UuidFormat1BoxedString(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 | ## UuidFormat1BoxedList -public static final class UuidFormat1BoxedList
-extends [UuidFormat1Boxed](#uuidformat1boxed) +public record UuidFormat1BoxedList
+implements [UuidFormat1Boxed](#uuidformat1boxed) -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 | | --------------------------- | | UuidFormat1BoxedList(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 | ## UuidFormat1BoxedMap -public static final class UuidFormat1BoxedMap
-extends [UuidFormat1Boxed](#uuidformat1boxed) +public record UuidFormat1BoxedMap
+implements [UuidFormat1Boxed](#uuidformat1boxed) -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 | | --------------------------- | | UuidFormat1BoxedMap(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 | ## UuidFormat1 public static class UuidFormat1
@@ -157,5 +163,7 @@ A schema class that validates payloads | [UuidFormat1BoxedBoolean](#uuidformat1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [UuidFormat1BoxedMap](#uuidformat1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [UuidFormat1BoxedList](#uuidformat1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [UuidFormat1Boxed](#uuidformat1boxed) | 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_1_0_unit_test/java/docs/components/schemas/ValidateAgainstCorrectBranchThenVsElse.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/ValidateAgainstCorrectBranchThenVsElse.md index d816f82ac38..38fda5efcca 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/ValidateAgainstCorrectBranchThenVsElse.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/ValidateAgainstCorrectBranchThenVsElse.md @@ -4,47 +4,47 @@ public class ValidateAgainstCorrectBranchThenVsElse
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 | [ValidateAgainstCorrectBranchThenVsElse.ValidateAgainstCorrectBranchThenVsElse1Boxed](#validateagainstcorrectbranchthenvselse1boxed)
abstract sealed validated payload class | -| static class | [ValidateAgainstCorrectBranchThenVsElse.ValidateAgainstCorrectBranchThenVsElse1BoxedVoid](#validateagainstcorrectbranchthenvselse1boxedvoid)
boxed class to store validated null payloads | -| static class | [ValidateAgainstCorrectBranchThenVsElse.ValidateAgainstCorrectBranchThenVsElse1BoxedBoolean](#validateagainstcorrectbranchthenvselse1boxedboolean)
boxed class to store validated boolean payloads | -| static class | [ValidateAgainstCorrectBranchThenVsElse.ValidateAgainstCorrectBranchThenVsElse1BoxedNumber](#validateagainstcorrectbranchthenvselse1boxednumber)
boxed class to store validated Number payloads | -| static class | [ValidateAgainstCorrectBranchThenVsElse.ValidateAgainstCorrectBranchThenVsElse1BoxedString](#validateagainstcorrectbranchthenvselse1boxedstring)
boxed class to store validated String payloads | -| static class | [ValidateAgainstCorrectBranchThenVsElse.ValidateAgainstCorrectBranchThenVsElse1BoxedList](#validateagainstcorrectbranchthenvselse1boxedlist)
boxed class to store validated List payloads | -| static class | [ValidateAgainstCorrectBranchThenVsElse.ValidateAgainstCorrectBranchThenVsElse1BoxedMap](#validateagainstcorrectbranchthenvselse1boxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ValidateAgainstCorrectBranchThenVsElse.ValidateAgainstCorrectBranchThenVsElse1Boxed](#validateagainstcorrectbranchthenvselse1boxed)
sealed interface for validated payloads | +| record | [ValidateAgainstCorrectBranchThenVsElse.ValidateAgainstCorrectBranchThenVsElse1BoxedVoid](#validateagainstcorrectbranchthenvselse1boxedvoid)
boxed class to store validated null payloads | +| record | [ValidateAgainstCorrectBranchThenVsElse.ValidateAgainstCorrectBranchThenVsElse1BoxedBoolean](#validateagainstcorrectbranchthenvselse1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ValidateAgainstCorrectBranchThenVsElse.ValidateAgainstCorrectBranchThenVsElse1BoxedNumber](#validateagainstcorrectbranchthenvselse1boxednumber)
boxed class to store validated Number payloads | +| record | [ValidateAgainstCorrectBranchThenVsElse.ValidateAgainstCorrectBranchThenVsElse1BoxedString](#validateagainstcorrectbranchthenvselse1boxedstring)
boxed class to store validated String payloads | +| record | [ValidateAgainstCorrectBranchThenVsElse.ValidateAgainstCorrectBranchThenVsElse1BoxedList](#validateagainstcorrectbranchthenvselse1boxedlist)
boxed class to store validated List payloads | +| record | [ValidateAgainstCorrectBranchThenVsElse.ValidateAgainstCorrectBranchThenVsElse1BoxedMap](#validateagainstcorrectbranchthenvselse1boxedmap)
boxed class to store validated Map payloads | | static class | [ValidateAgainstCorrectBranchThenVsElse.ValidateAgainstCorrectBranchThenVsElse1](#validateagainstcorrectbranchthenvselse1)
schema class | -| static class | [ValidateAgainstCorrectBranchThenVsElse.ThenBoxed](#thenboxed)
abstract sealed validated payload class | -| static class | [ValidateAgainstCorrectBranchThenVsElse.ThenBoxedVoid](#thenboxedvoid)
boxed class to store validated null payloads | -| static class | [ValidateAgainstCorrectBranchThenVsElse.ThenBoxedBoolean](#thenboxedboolean)
boxed class to store validated boolean payloads | -| static class | [ValidateAgainstCorrectBranchThenVsElse.ThenBoxedNumber](#thenboxednumber)
boxed class to store validated Number payloads | -| static class | [ValidateAgainstCorrectBranchThenVsElse.ThenBoxedString](#thenboxedstring)
boxed class to store validated String payloads | -| static class | [ValidateAgainstCorrectBranchThenVsElse.ThenBoxedList](#thenboxedlist)
boxed class to store validated List payloads | -| static class | [ValidateAgainstCorrectBranchThenVsElse.ThenBoxedMap](#thenboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ValidateAgainstCorrectBranchThenVsElse.ThenBoxed](#thenboxed)
sealed interface for validated payloads | +| record | [ValidateAgainstCorrectBranchThenVsElse.ThenBoxedVoid](#thenboxedvoid)
boxed class to store validated null payloads | +| record | [ValidateAgainstCorrectBranchThenVsElse.ThenBoxedBoolean](#thenboxedboolean)
boxed class to store validated boolean payloads | +| record | [ValidateAgainstCorrectBranchThenVsElse.ThenBoxedNumber](#thenboxednumber)
boxed class to store validated Number payloads | +| record | [ValidateAgainstCorrectBranchThenVsElse.ThenBoxedString](#thenboxedstring)
boxed class to store validated String payloads | +| record | [ValidateAgainstCorrectBranchThenVsElse.ThenBoxedList](#thenboxedlist)
boxed class to store validated List payloads | +| record | [ValidateAgainstCorrectBranchThenVsElse.ThenBoxedMap](#thenboxedmap)
boxed class to store validated Map payloads | | static class | [ValidateAgainstCorrectBranchThenVsElse.Then](#then)
schema class | -| static class | [ValidateAgainstCorrectBranchThenVsElse.IfSchemaBoxed](#ifschemaboxed)
abstract sealed validated payload class | -| static class | [ValidateAgainstCorrectBranchThenVsElse.IfSchemaBoxedVoid](#ifschemaboxedvoid)
boxed class to store validated null payloads | -| static class | [ValidateAgainstCorrectBranchThenVsElse.IfSchemaBoxedBoolean](#ifschemaboxedboolean)
boxed class to store validated boolean payloads | -| static class | [ValidateAgainstCorrectBranchThenVsElse.IfSchemaBoxedNumber](#ifschemaboxednumber)
boxed class to store validated Number payloads | -| static class | [ValidateAgainstCorrectBranchThenVsElse.IfSchemaBoxedString](#ifschemaboxedstring)
boxed class to store validated String payloads | -| static class | [ValidateAgainstCorrectBranchThenVsElse.IfSchemaBoxedList](#ifschemaboxedlist)
boxed class to store validated List payloads | -| static class | [ValidateAgainstCorrectBranchThenVsElse.IfSchemaBoxedMap](#ifschemaboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ValidateAgainstCorrectBranchThenVsElse.IfSchemaBoxed](#ifschemaboxed)
sealed interface for validated payloads | +| record | [ValidateAgainstCorrectBranchThenVsElse.IfSchemaBoxedVoid](#ifschemaboxedvoid)
boxed class to store validated null payloads | +| record | [ValidateAgainstCorrectBranchThenVsElse.IfSchemaBoxedBoolean](#ifschemaboxedboolean)
boxed class to store validated boolean payloads | +| record | [ValidateAgainstCorrectBranchThenVsElse.IfSchemaBoxedNumber](#ifschemaboxednumber)
boxed class to store validated Number payloads | +| record | [ValidateAgainstCorrectBranchThenVsElse.IfSchemaBoxedString](#ifschemaboxedstring)
boxed class to store validated String payloads | +| record | [ValidateAgainstCorrectBranchThenVsElse.IfSchemaBoxedList](#ifschemaboxedlist)
boxed class to store validated List payloads | +| record | [ValidateAgainstCorrectBranchThenVsElse.IfSchemaBoxedMap](#ifschemaboxedmap)
boxed class to store validated Map payloads | | static class | [ValidateAgainstCorrectBranchThenVsElse.IfSchema](#ifschema)
schema class | -| static class | [ValidateAgainstCorrectBranchThenVsElse.ElseSchemaBoxed](#elseschemaboxed)
abstract sealed validated payload class | -| static class | [ValidateAgainstCorrectBranchThenVsElse.ElseSchemaBoxedVoid](#elseschemaboxedvoid)
boxed class to store validated null payloads | -| static class | [ValidateAgainstCorrectBranchThenVsElse.ElseSchemaBoxedBoolean](#elseschemaboxedboolean)
boxed class to store validated boolean payloads | -| static class | [ValidateAgainstCorrectBranchThenVsElse.ElseSchemaBoxedNumber](#elseschemaboxednumber)
boxed class to store validated Number payloads | -| static class | [ValidateAgainstCorrectBranchThenVsElse.ElseSchemaBoxedString](#elseschemaboxedstring)
boxed class to store validated String payloads | -| static class | [ValidateAgainstCorrectBranchThenVsElse.ElseSchemaBoxedList](#elseschemaboxedlist)
boxed class to store validated List payloads | -| static class | [ValidateAgainstCorrectBranchThenVsElse.ElseSchemaBoxedMap](#elseschemaboxedmap)
boxed class to store validated Map payloads | +| sealed interface | [ValidateAgainstCorrectBranchThenVsElse.ElseSchemaBoxed](#elseschemaboxed)
sealed interface for validated payloads | +| record | [ValidateAgainstCorrectBranchThenVsElse.ElseSchemaBoxedVoid](#elseschemaboxedvoid)
boxed class to store validated null payloads | +| record | [ValidateAgainstCorrectBranchThenVsElse.ElseSchemaBoxedBoolean](#elseschemaboxedboolean)
boxed class to store validated boolean payloads | +| record | [ValidateAgainstCorrectBranchThenVsElse.ElseSchemaBoxedNumber](#elseschemaboxednumber)
boxed class to store validated Number payloads | +| record | [ValidateAgainstCorrectBranchThenVsElse.ElseSchemaBoxedString](#elseschemaboxedstring)
boxed class to store validated String payloads | +| record | [ValidateAgainstCorrectBranchThenVsElse.ElseSchemaBoxedList](#elseschemaboxedlist)
boxed class to store validated List payloads | +| record | [ValidateAgainstCorrectBranchThenVsElse.ElseSchemaBoxedMap](#elseschemaboxedmap)
boxed class to store validated Map payloads | | static class | [ValidateAgainstCorrectBranchThenVsElse.ElseSchema](#elseschema)
schema class | ## ValidateAgainstCorrectBranchThenVsElse1Boxed -public static abstract sealed class ValidateAgainstCorrectBranchThenVsElse1Boxed
+public sealed interface ValidateAgainstCorrectBranchThenVsElse1Boxed
permits
[ValidateAgainstCorrectBranchThenVsElse1BoxedVoid](#validateagainstcorrectbranchthenvselse1boxedvoid), [ValidateAgainstCorrectBranchThenVsElse1BoxedBoolean](#validateagainstcorrectbranchthenvselse1boxedboolean), @@ -53,103 +53,109 @@ permits
[ValidateAgainstCorrectBranchThenVsElse1BoxedList](#validateagainstcorrectbranchthenvselse1boxedlist), [ValidateAgainstCorrectBranchThenVsElse1BoxedMap](#validateagainstcorrectbranchthenvselse1boxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ValidateAgainstCorrectBranchThenVsElse1BoxedVoid -public static final class ValidateAgainstCorrectBranchThenVsElse1BoxedVoid
-extends [ValidateAgainstCorrectBranchThenVsElse1Boxed](#validateagainstcorrectbranchthenvselse1boxed) +public record ValidateAgainstCorrectBranchThenVsElse1BoxedVoid
+implements [ValidateAgainstCorrectBranchThenVsElse1Boxed](#validateagainstcorrectbranchthenvselse1boxed) -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 | | --------------------------- | | ValidateAgainstCorrectBranchThenVsElse1BoxedVoid(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 | ## ValidateAgainstCorrectBranchThenVsElse1BoxedBoolean -public static final class ValidateAgainstCorrectBranchThenVsElse1BoxedBoolean
-extends [ValidateAgainstCorrectBranchThenVsElse1Boxed](#validateagainstcorrectbranchthenvselse1boxed) +public record ValidateAgainstCorrectBranchThenVsElse1BoxedBoolean
+implements [ValidateAgainstCorrectBranchThenVsElse1Boxed](#validateagainstcorrectbranchthenvselse1boxed) -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 | | --------------------------- | | ValidateAgainstCorrectBranchThenVsElse1BoxedBoolean(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 | ## ValidateAgainstCorrectBranchThenVsElse1BoxedNumber -public static final class ValidateAgainstCorrectBranchThenVsElse1BoxedNumber
-extends [ValidateAgainstCorrectBranchThenVsElse1Boxed](#validateagainstcorrectbranchthenvselse1boxed) +public record ValidateAgainstCorrectBranchThenVsElse1BoxedNumber
+implements [ValidateAgainstCorrectBranchThenVsElse1Boxed](#validateagainstcorrectbranchthenvselse1boxed) -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 | | --------------------------- | | ValidateAgainstCorrectBranchThenVsElse1BoxedNumber(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 | ## ValidateAgainstCorrectBranchThenVsElse1BoxedString -public static final class ValidateAgainstCorrectBranchThenVsElse1BoxedString
-extends [ValidateAgainstCorrectBranchThenVsElse1Boxed](#validateagainstcorrectbranchthenvselse1boxed) +public record ValidateAgainstCorrectBranchThenVsElse1BoxedString
+implements [ValidateAgainstCorrectBranchThenVsElse1Boxed](#validateagainstcorrectbranchthenvselse1boxed) -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 | | --------------------------- | | ValidateAgainstCorrectBranchThenVsElse1BoxedString(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 | ## ValidateAgainstCorrectBranchThenVsElse1BoxedList -public static final class ValidateAgainstCorrectBranchThenVsElse1BoxedList
-extends [ValidateAgainstCorrectBranchThenVsElse1Boxed](#validateagainstcorrectbranchthenvselse1boxed) +public record ValidateAgainstCorrectBranchThenVsElse1BoxedList
+implements [ValidateAgainstCorrectBranchThenVsElse1Boxed](#validateagainstcorrectbranchthenvselse1boxed) -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 | | --------------------------- | | ValidateAgainstCorrectBranchThenVsElse1BoxedList(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 | ## ValidateAgainstCorrectBranchThenVsElse1BoxedMap -public static final class ValidateAgainstCorrectBranchThenVsElse1BoxedMap
-extends [ValidateAgainstCorrectBranchThenVsElse1Boxed](#validateagainstcorrectbranchthenvselse1boxed) +public record ValidateAgainstCorrectBranchThenVsElse1BoxedMap
+implements [ValidateAgainstCorrectBranchThenVsElse1Boxed](#validateagainstcorrectbranchthenvselse1boxed) -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 | | --------------------------- | | ValidateAgainstCorrectBranchThenVsElse1BoxedMap(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 | ## ValidateAgainstCorrectBranchThenVsElse1 public static class ValidateAgainstCorrectBranchThenVsElse1
@@ -183,9 +189,11 @@ A schema class that validates payloads | [ValidateAgainstCorrectBranchThenVsElse1BoxedBoolean](#validateagainstcorrectbranchthenvselse1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ValidateAgainstCorrectBranchThenVsElse1BoxedMap](#validateagainstcorrectbranchthenvselse1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [ValidateAgainstCorrectBranchThenVsElse1BoxedList](#validateagainstcorrectbranchthenvselse1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ValidateAgainstCorrectBranchThenVsElse1Boxed](#validateagainstcorrectbranchthenvselse1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ThenBoxed -public static abstract sealed class ThenBoxed
+public sealed interface ThenBoxed
permits
[ThenBoxedVoid](#thenboxedvoid), [ThenBoxedBoolean](#thenboxedboolean), @@ -194,103 +202,109 @@ permits
[ThenBoxedList](#thenboxedlist), [ThenBoxedMap](#thenboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ThenBoxedVoid -public static final class ThenBoxedVoid
-extends [ThenBoxed](#thenboxed) +public record ThenBoxedVoid
+implements [ThenBoxed](#thenboxed) -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 | | --------------------------- | | ThenBoxedVoid(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 | ## ThenBoxedBoolean -public static final class ThenBoxedBoolean
-extends [ThenBoxed](#thenboxed) +public record ThenBoxedBoolean
+implements [ThenBoxed](#thenboxed) -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 | | --------------------------- | | ThenBoxedBoolean(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 | ## ThenBoxedNumber -public static final class ThenBoxedNumber
-extends [ThenBoxed](#thenboxed) +public record ThenBoxedNumber
+implements [ThenBoxed](#thenboxed) -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 | | --------------------------- | | ThenBoxedNumber(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 | ## ThenBoxedString -public static final class ThenBoxedString
-extends [ThenBoxed](#thenboxed) +public record ThenBoxedString
+implements [ThenBoxed](#thenboxed) -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 | | --------------------------- | | ThenBoxedString(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 | ## ThenBoxedList -public static final class ThenBoxedList
-extends [ThenBoxed](#thenboxed) +public record ThenBoxedList
+implements [ThenBoxed](#thenboxed) -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 | | --------------------------- | | ThenBoxedList(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 | ## ThenBoxedMap -public static final class ThenBoxedMap
-extends [ThenBoxed](#thenboxed) +public record ThenBoxedMap
+implements [ThenBoxed](#thenboxed) -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 | | --------------------------- | | ThenBoxedMap(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 | ## Then public static class Then
@@ -322,9 +336,11 @@ A schema class that validates payloads | [ThenBoxedBoolean](#thenboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ThenBoxedMap](#thenboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [ThenBoxedList](#thenboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ThenBoxed](#thenboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## IfSchemaBoxed -public static abstract sealed class IfSchemaBoxed
+public sealed interface IfSchemaBoxed
permits
[IfSchemaBoxedVoid](#ifschemaboxedvoid), [IfSchemaBoxedBoolean](#ifschemaboxedboolean), @@ -333,103 +349,109 @@ permits
[IfSchemaBoxedList](#ifschemaboxedlist), [IfSchemaBoxedMap](#ifschemaboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## IfSchemaBoxedVoid -public static final class IfSchemaBoxedVoid
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedVoid
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedVoid(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 | ## IfSchemaBoxedBoolean -public static final class IfSchemaBoxedBoolean
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedBoolean
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedBoolean(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 | ## IfSchemaBoxedNumber -public static final class IfSchemaBoxedNumber
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedNumber
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedNumber(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 | ## IfSchemaBoxedString -public static final class IfSchemaBoxedString
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedString
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedString(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 | ## IfSchemaBoxedList -public static final class IfSchemaBoxedList
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedList
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedList(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 | ## IfSchemaBoxedMap -public static final class IfSchemaBoxedMap
-extends [IfSchemaBoxed](#ifschemaboxed) +public record IfSchemaBoxedMap
+implements [IfSchemaBoxed](#ifschemaboxed) -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 | | --------------------------- | | IfSchemaBoxedMap(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 | ## IfSchema public static class IfSchema
@@ -461,9 +483,11 @@ A schema class that validates payloads | [IfSchemaBoxedBoolean](#ifschemaboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [IfSchemaBoxedMap](#ifschemaboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [IfSchemaBoxedList](#ifschemaboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [IfSchemaBoxed](#ifschemaboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + ## ElseSchemaBoxed -public static abstract sealed class ElseSchemaBoxed
+public sealed interface ElseSchemaBoxed
permits
[ElseSchemaBoxedVoid](#elseschemaboxedvoid), [ElseSchemaBoxedBoolean](#elseschemaboxedboolean), @@ -472,103 +496,109 @@ permits
[ElseSchemaBoxedList](#elseschemaboxedlist), [ElseSchemaBoxedMap](#elseschemaboxedmap) -abstract sealed class that stores validated payloads using boxed classes +sealed interface that stores validated payloads using boxed classes ## ElseSchemaBoxedVoid -public static final class ElseSchemaBoxedVoid
-extends [ElseSchemaBoxed](#elseschemaboxed) +public record ElseSchemaBoxedVoid
+implements [ElseSchemaBoxed](#elseschemaboxed) -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 | | --------------------------- | | ElseSchemaBoxedVoid(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 | ## ElseSchemaBoxedBoolean -public static final class ElseSchemaBoxedBoolean
-extends [ElseSchemaBoxed](#elseschemaboxed) +public record ElseSchemaBoxedBoolean
+implements [ElseSchemaBoxed](#elseschemaboxed) -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 | | --------------------------- | | ElseSchemaBoxedBoolean(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 | ## ElseSchemaBoxedNumber -public static final class ElseSchemaBoxedNumber
-extends [ElseSchemaBoxed](#elseschemaboxed) +public record ElseSchemaBoxedNumber
+implements [ElseSchemaBoxed](#elseschemaboxed) -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 | | --------------------------- | | ElseSchemaBoxedNumber(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 | ## ElseSchemaBoxedString -public static final class ElseSchemaBoxedString
-extends [ElseSchemaBoxed](#elseschemaboxed) +public record ElseSchemaBoxedString
+implements [ElseSchemaBoxed](#elseschemaboxed) -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 | | --------------------------- | | ElseSchemaBoxedString(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 | ## ElseSchemaBoxedList -public static final class ElseSchemaBoxedList
-extends [ElseSchemaBoxed](#elseschemaboxed) +public record ElseSchemaBoxedList
+implements [ElseSchemaBoxed](#elseschemaboxed) -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 | | --------------------------- | | ElseSchemaBoxedList(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 | ## ElseSchemaBoxedMap -public static final class ElseSchemaBoxedMap
-extends [ElseSchemaBoxed](#elseschemaboxed) +public record ElseSchemaBoxedMap
+implements [ElseSchemaBoxed](#elseschemaboxed) -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 | | --------------------------- | | ElseSchemaBoxedMap(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 | ## ElseSchema public static class ElseSchema
@@ -600,5 +630,7 @@ A schema class that validates payloads | [ElseSchemaBoxedBoolean](#elseschemaboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | | [ElseSchemaBoxedMap](#elseschemaboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | | [ElseSchemaBoxedList](#elseschemaboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ElseSchemaBoxed](#elseschemaboxed) | 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_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ASchemaGivenForPrefixitems.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ASchemaGivenForPrefixitems.java index 1482812de1d..16b1fdbff62 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ASchemaGivenForPrefixitems.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ASchemaGivenForPrefixitems.java @@ -131,78 +131,54 @@ public static Schema1 getInstance() { } - public static abstract sealed class ASchemaGivenForPrefixitems1Boxed permits ASchemaGivenForPrefixitems1BoxedVoid, ASchemaGivenForPrefixitems1BoxedBoolean, ASchemaGivenForPrefixitems1BoxedNumber, ASchemaGivenForPrefixitems1BoxedString, ASchemaGivenForPrefixitems1BoxedList, ASchemaGivenForPrefixitems1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface ASchemaGivenForPrefixitems1Boxed permits ASchemaGivenForPrefixitems1BoxedVoid, ASchemaGivenForPrefixitems1BoxedBoolean, ASchemaGivenForPrefixitems1BoxedNumber, ASchemaGivenForPrefixitems1BoxedString, ASchemaGivenForPrefixitems1BoxedList, ASchemaGivenForPrefixitems1BoxedMap { + @Nullable Object getData(); } - public static final class ASchemaGivenForPrefixitems1BoxedVoid extends ASchemaGivenForPrefixitems1Boxed { - public final Void data; - private ASchemaGivenForPrefixitems1BoxedVoid(Void data) { - this.data = data; - } + public record ASchemaGivenForPrefixitems1BoxedVoid(Void data) implements ASchemaGivenForPrefixitems1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ASchemaGivenForPrefixitems1BoxedBoolean extends ASchemaGivenForPrefixitems1Boxed { - public final boolean data; - private ASchemaGivenForPrefixitems1BoxedBoolean(boolean data) { - this.data = data; - } + public record ASchemaGivenForPrefixitems1BoxedBoolean(boolean data) implements ASchemaGivenForPrefixitems1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ASchemaGivenForPrefixitems1BoxedNumber extends ASchemaGivenForPrefixitems1Boxed { - public final Number data; - private ASchemaGivenForPrefixitems1BoxedNumber(Number data) { - this.data = data; - } + public record ASchemaGivenForPrefixitems1BoxedNumber(Number data) implements ASchemaGivenForPrefixitems1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ASchemaGivenForPrefixitems1BoxedString extends ASchemaGivenForPrefixitems1Boxed { - public final String data; - private ASchemaGivenForPrefixitems1BoxedString(String data) { - this.data = data; - } + public record ASchemaGivenForPrefixitems1BoxedString(String data) implements ASchemaGivenForPrefixitems1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ASchemaGivenForPrefixitems1BoxedList extends ASchemaGivenForPrefixitems1Boxed { - public final ASchemaGivenForPrefixitemsList data; - private ASchemaGivenForPrefixitems1BoxedList(ASchemaGivenForPrefixitemsList data) { - this.data = data; - } + public record ASchemaGivenForPrefixitems1BoxedList(ASchemaGivenForPrefixitemsList data) implements ASchemaGivenForPrefixitems1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ASchemaGivenForPrefixitems1BoxedMap extends ASchemaGivenForPrefixitems1Boxed { - public final FrozenMap<@Nullable Object> data; - private ASchemaGivenForPrefixitems1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ASchemaGivenForPrefixitems1BoxedMap(FrozenMap<@Nullable Object> data) implements ASchemaGivenForPrefixitems1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class ASchemaGivenForPrefixitems1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MapSchemaValidator, ASchemaGivenForPrefixitems1BoxedMap> { + public static class ASchemaGivenForPrefixitems1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MapSchemaValidator, ASchemaGivenForPrefixitems1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -310,11 +286,11 @@ public ASchemaGivenForPrefixitemsList getNewInstance(List arg, List p for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -345,11 +321,11 @@ public ASchemaGivenForPrefixitemsList validate(List arg, SchemaConfiguration List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -428,5 +404,24 @@ public ASchemaGivenForPrefixitems1BoxedList validateAndBox(List arg, SchemaCo public ASchemaGivenForPrefixitems1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ASchemaGivenForPrefixitems1BoxedMap(validate(arg, configuration)); } + @Override + public ASchemaGivenForPrefixitems1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalItemsAreAllowedByDefault.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalItemsAreAllowedByDefault.java index 8572ce1e4da..f9c32af6fec 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalItemsAreAllowedByDefault.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalItemsAreAllowedByDefault.java @@ -119,78 +119,54 @@ public static Schema0 getInstance() { } - public static abstract sealed class AdditionalItemsAreAllowedByDefault1Boxed permits AdditionalItemsAreAllowedByDefault1BoxedVoid, AdditionalItemsAreAllowedByDefault1BoxedBoolean, AdditionalItemsAreAllowedByDefault1BoxedNumber, AdditionalItemsAreAllowedByDefault1BoxedString, AdditionalItemsAreAllowedByDefault1BoxedList, AdditionalItemsAreAllowedByDefault1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AdditionalItemsAreAllowedByDefault1Boxed permits AdditionalItemsAreAllowedByDefault1BoxedVoid, AdditionalItemsAreAllowedByDefault1BoxedBoolean, AdditionalItemsAreAllowedByDefault1BoxedNumber, AdditionalItemsAreAllowedByDefault1BoxedString, AdditionalItemsAreAllowedByDefault1BoxedList, AdditionalItemsAreAllowedByDefault1BoxedMap { + @Nullable Object getData(); } - public static final class AdditionalItemsAreAllowedByDefault1BoxedVoid extends AdditionalItemsAreAllowedByDefault1Boxed { - public final Void data; - private AdditionalItemsAreAllowedByDefault1BoxedVoid(Void data) { - this.data = data; - } + public record AdditionalItemsAreAllowedByDefault1BoxedVoid(Void data) implements AdditionalItemsAreAllowedByDefault1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalItemsAreAllowedByDefault1BoxedBoolean extends AdditionalItemsAreAllowedByDefault1Boxed { - public final boolean data; - private AdditionalItemsAreAllowedByDefault1BoxedBoolean(boolean data) { - this.data = data; - } + public record AdditionalItemsAreAllowedByDefault1BoxedBoolean(boolean data) implements AdditionalItemsAreAllowedByDefault1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalItemsAreAllowedByDefault1BoxedNumber extends AdditionalItemsAreAllowedByDefault1Boxed { - public final Number data; - private AdditionalItemsAreAllowedByDefault1BoxedNumber(Number data) { - this.data = data; - } + public record AdditionalItemsAreAllowedByDefault1BoxedNumber(Number data) implements AdditionalItemsAreAllowedByDefault1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalItemsAreAllowedByDefault1BoxedString extends AdditionalItemsAreAllowedByDefault1Boxed { - public final String data; - private AdditionalItemsAreAllowedByDefault1BoxedString(String data) { - this.data = data; - } + public record AdditionalItemsAreAllowedByDefault1BoxedString(String data) implements AdditionalItemsAreAllowedByDefault1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalItemsAreAllowedByDefault1BoxedList extends AdditionalItemsAreAllowedByDefault1Boxed { - public final AdditionalItemsAreAllowedByDefaultList data; - private AdditionalItemsAreAllowedByDefault1BoxedList(AdditionalItemsAreAllowedByDefaultList data) { - this.data = data; - } + public record AdditionalItemsAreAllowedByDefault1BoxedList(AdditionalItemsAreAllowedByDefaultList data) implements AdditionalItemsAreAllowedByDefault1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalItemsAreAllowedByDefault1BoxedMap extends AdditionalItemsAreAllowedByDefault1Boxed { - public final FrozenMap<@Nullable Object> data; - private AdditionalItemsAreAllowedByDefault1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record AdditionalItemsAreAllowedByDefault1BoxedMap(FrozenMap<@Nullable Object> data) implements AdditionalItemsAreAllowedByDefault1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class AdditionalItemsAreAllowedByDefault1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MapSchemaValidator, AdditionalItemsAreAllowedByDefault1BoxedMap> { + public static class AdditionalItemsAreAllowedByDefault1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MapSchemaValidator, AdditionalItemsAreAllowedByDefault1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -297,11 +273,11 @@ public AdditionalItemsAreAllowedByDefaultList getNewInstance(List arg, List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -332,11 +308,11 @@ public AdditionalItemsAreAllowedByDefaultList validate(List arg, SchemaConfig List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -415,5 +391,24 @@ public AdditionalItemsAreAllowedByDefault1BoxedList validateAndBox(List arg, public AdditionalItemsAreAllowedByDefault1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AdditionalItemsAreAllowedByDefault1BoxedMap(validate(arg, configuration)); } + @Override + public AdditionalItemsAreAllowedByDefault1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAreAllowedByDefault.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAreAllowedByDefault.java index f572d0ef637..e6517f75b10 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAreAllowedByDefault.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAreAllowedByDefault.java @@ -236,78 +236,54 @@ public AdditionalpropertiesAreAllowedByDefaultMapBuilder getBuilderAfterAddition } - public static abstract sealed class AdditionalpropertiesAreAllowedByDefault1Boxed permits AdditionalpropertiesAreAllowedByDefault1BoxedVoid, AdditionalpropertiesAreAllowedByDefault1BoxedBoolean, AdditionalpropertiesAreAllowedByDefault1BoxedNumber, AdditionalpropertiesAreAllowedByDefault1BoxedString, AdditionalpropertiesAreAllowedByDefault1BoxedList, AdditionalpropertiesAreAllowedByDefault1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AdditionalpropertiesAreAllowedByDefault1Boxed permits AdditionalpropertiesAreAllowedByDefault1BoxedVoid, AdditionalpropertiesAreAllowedByDefault1BoxedBoolean, AdditionalpropertiesAreAllowedByDefault1BoxedNumber, AdditionalpropertiesAreAllowedByDefault1BoxedString, AdditionalpropertiesAreAllowedByDefault1BoxedList, AdditionalpropertiesAreAllowedByDefault1BoxedMap { + @Nullable Object getData(); } - public static final class AdditionalpropertiesAreAllowedByDefault1BoxedVoid extends AdditionalpropertiesAreAllowedByDefault1Boxed { - public final Void data; - private AdditionalpropertiesAreAllowedByDefault1BoxedVoid(Void data) { - this.data = data; - } + public record AdditionalpropertiesAreAllowedByDefault1BoxedVoid(Void data) implements AdditionalpropertiesAreAllowedByDefault1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalpropertiesAreAllowedByDefault1BoxedBoolean extends AdditionalpropertiesAreAllowedByDefault1Boxed { - public final boolean data; - private AdditionalpropertiesAreAllowedByDefault1BoxedBoolean(boolean data) { - this.data = data; - } + public record AdditionalpropertiesAreAllowedByDefault1BoxedBoolean(boolean data) implements AdditionalpropertiesAreAllowedByDefault1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalpropertiesAreAllowedByDefault1BoxedNumber extends AdditionalpropertiesAreAllowedByDefault1Boxed { - public final Number data; - private AdditionalpropertiesAreAllowedByDefault1BoxedNumber(Number data) { - this.data = data; - } + public record AdditionalpropertiesAreAllowedByDefault1BoxedNumber(Number data) implements AdditionalpropertiesAreAllowedByDefault1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalpropertiesAreAllowedByDefault1BoxedString extends AdditionalpropertiesAreAllowedByDefault1Boxed { - public final String data; - private AdditionalpropertiesAreAllowedByDefault1BoxedString(String data) { - this.data = data; - } + public record AdditionalpropertiesAreAllowedByDefault1BoxedString(String data) implements AdditionalpropertiesAreAllowedByDefault1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalpropertiesAreAllowedByDefault1BoxedList extends AdditionalpropertiesAreAllowedByDefault1Boxed { - public final FrozenList<@Nullable Object> data; - private AdditionalpropertiesAreAllowedByDefault1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record AdditionalpropertiesAreAllowedByDefault1BoxedList(FrozenList<@Nullable Object> data) implements AdditionalpropertiesAreAllowedByDefault1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalpropertiesAreAllowedByDefault1BoxedMap extends AdditionalpropertiesAreAllowedByDefault1Boxed { - public final AdditionalpropertiesAreAllowedByDefaultMap data; - private AdditionalpropertiesAreAllowedByDefault1BoxedMap(AdditionalpropertiesAreAllowedByDefaultMap data) { - this.data = data; - } + public record AdditionalpropertiesAreAllowedByDefault1BoxedMap(AdditionalpropertiesAreAllowedByDefaultMap data) implements AdditionalpropertiesAreAllowedByDefault1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class AdditionalpropertiesAreAllowedByDefault1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AdditionalpropertiesAreAllowedByDefault1BoxedList>, MapSchemaValidator { + public static class AdditionalpropertiesAreAllowedByDefault1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AdditionalpropertiesAreAllowedByDefault1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -415,11 +391,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -450,11 +426,11 @@ public AdditionalpropertiesAreAllowedByDefaultMap getNewInstance(Map arg, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -533,5 +509,24 @@ public AdditionalpropertiesAreAllowedByDefault1BoxedList validateAndBox(List public AdditionalpropertiesAreAllowedByDefault1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AdditionalpropertiesAreAllowedByDefault1BoxedMap(validate(arg, configuration)); } + @Override + public AdditionalpropertiesAreAllowedByDefault1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesCanExistByItself.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesCanExistByItself.java index 3b243ef9a6c..649e69307db 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesCanExistByItself.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesCanExistByItself.java @@ -93,23 +93,19 @@ public AdditionalpropertiesCanExistByItselfMapBuilder getBuilderAfterAdditionalP } - public static abstract sealed class AdditionalpropertiesCanExistByItself1Boxed permits AdditionalpropertiesCanExistByItself1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AdditionalpropertiesCanExistByItself1Boxed permits AdditionalpropertiesCanExistByItself1BoxedMap { + @Nullable Object getData(); } - public static final class AdditionalpropertiesCanExistByItself1BoxedMap extends AdditionalpropertiesCanExistByItself1Boxed { - public final AdditionalpropertiesCanExistByItselfMap data; - private AdditionalpropertiesCanExistByItself1BoxedMap(AdditionalpropertiesCanExistByItselfMap data) { - this.data = data; - } + public record AdditionalpropertiesCanExistByItself1BoxedMap(AdditionalpropertiesCanExistByItselfMap data) implements AdditionalpropertiesCanExistByItself1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class AdditionalpropertiesCanExistByItself1 extends JsonSchema implements MapSchemaValidator { + public static class AdditionalpropertiesCanExistByItself1 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 @@ -143,11 +139,11 @@ public AdditionalpropertiesCanExistByItselfMap getNewInstance(Map arg, Lis List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof Boolean)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -187,6 +183,13 @@ public AdditionalpropertiesCanExistByItselfMap validate(Map arg, SchemaCon public AdditionalpropertiesCanExistByItself1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AdditionalpropertiesCanExistByItself1BoxedMap(validate(arg, configuration)); } + @Override + public AdditionalpropertiesCanExistByItself1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesDoesNotLookInApplicators.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesDoesNotLookInApplicators.java index 2b31f327d3c..94d89c88eab 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesDoesNotLookInApplicators.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesDoesNotLookInApplicators.java @@ -170,78 +170,54 @@ public Schema0MapBuilder getBuilderAfterAdditionalProperty(Map data; - private Schema0BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedList(FrozenList<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedMap extends Schema0Boxed { - public final Schema0Map data; - private Schema0BoxedMap(Schema0Map data) { - this.data = data; - } + public record Schema0BoxedMap(Schema0Map data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator { + public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator { private static @Nullable Schema0 instance = null; protected Schema0() { @@ -342,11 +318,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -377,11 +353,11 @@ public Schema0Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -460,6 +436,25 @@ public Schema0BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema0BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema0BoxedMap(validate(arg, configuration)); } + @Override + public Schema0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class AdditionalpropertiesDoesNotLookInApplicatorsMap extends FrozenMap { @@ -516,78 +511,54 @@ public AdditionalpropertiesDoesNotLookInApplicatorsMapBuilder getBuilderAfterAdd } - public static abstract sealed class AdditionalpropertiesDoesNotLookInApplicators1Boxed permits AdditionalpropertiesDoesNotLookInApplicators1BoxedVoid, AdditionalpropertiesDoesNotLookInApplicators1BoxedBoolean, AdditionalpropertiesDoesNotLookInApplicators1BoxedNumber, AdditionalpropertiesDoesNotLookInApplicators1BoxedString, AdditionalpropertiesDoesNotLookInApplicators1BoxedList, AdditionalpropertiesDoesNotLookInApplicators1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AdditionalpropertiesDoesNotLookInApplicators1Boxed permits AdditionalpropertiesDoesNotLookInApplicators1BoxedVoid, AdditionalpropertiesDoesNotLookInApplicators1BoxedBoolean, AdditionalpropertiesDoesNotLookInApplicators1BoxedNumber, AdditionalpropertiesDoesNotLookInApplicators1BoxedString, AdditionalpropertiesDoesNotLookInApplicators1BoxedList, AdditionalpropertiesDoesNotLookInApplicators1BoxedMap { + @Nullable Object getData(); } - public static final class AdditionalpropertiesDoesNotLookInApplicators1BoxedVoid extends AdditionalpropertiesDoesNotLookInApplicators1Boxed { - public final Void data; - private AdditionalpropertiesDoesNotLookInApplicators1BoxedVoid(Void data) { - this.data = data; - } + public record AdditionalpropertiesDoesNotLookInApplicators1BoxedVoid(Void data) implements AdditionalpropertiesDoesNotLookInApplicators1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalpropertiesDoesNotLookInApplicators1BoxedBoolean extends AdditionalpropertiesDoesNotLookInApplicators1Boxed { - public final boolean data; - private AdditionalpropertiesDoesNotLookInApplicators1BoxedBoolean(boolean data) { - this.data = data; - } + public record AdditionalpropertiesDoesNotLookInApplicators1BoxedBoolean(boolean data) implements AdditionalpropertiesDoesNotLookInApplicators1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalpropertiesDoesNotLookInApplicators1BoxedNumber extends AdditionalpropertiesDoesNotLookInApplicators1Boxed { - public final Number data; - private AdditionalpropertiesDoesNotLookInApplicators1BoxedNumber(Number data) { - this.data = data; - } + public record AdditionalpropertiesDoesNotLookInApplicators1BoxedNumber(Number data) implements AdditionalpropertiesDoesNotLookInApplicators1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalpropertiesDoesNotLookInApplicators1BoxedString extends AdditionalpropertiesDoesNotLookInApplicators1Boxed { - public final String data; - private AdditionalpropertiesDoesNotLookInApplicators1BoxedString(String data) { - this.data = data; - } + public record AdditionalpropertiesDoesNotLookInApplicators1BoxedString(String data) implements AdditionalpropertiesDoesNotLookInApplicators1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalpropertiesDoesNotLookInApplicators1BoxedList extends AdditionalpropertiesDoesNotLookInApplicators1Boxed { - public final FrozenList<@Nullable Object> data; - private AdditionalpropertiesDoesNotLookInApplicators1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record AdditionalpropertiesDoesNotLookInApplicators1BoxedList(FrozenList<@Nullable Object> data) implements AdditionalpropertiesDoesNotLookInApplicators1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AdditionalpropertiesDoesNotLookInApplicators1BoxedMap extends AdditionalpropertiesDoesNotLookInApplicators1Boxed { - public final AdditionalpropertiesDoesNotLookInApplicatorsMap data; - private AdditionalpropertiesDoesNotLookInApplicators1BoxedMap(AdditionalpropertiesDoesNotLookInApplicatorsMap data) { - this.data = data; - } + public record AdditionalpropertiesDoesNotLookInApplicators1BoxedMap(AdditionalpropertiesDoesNotLookInApplicatorsMap data) implements AdditionalpropertiesDoesNotLookInApplicators1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class AdditionalpropertiesDoesNotLookInApplicators1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AdditionalpropertiesDoesNotLookInApplicators1BoxedList>, MapSchemaValidator { + public static class AdditionalpropertiesDoesNotLookInApplicators1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AdditionalpropertiesDoesNotLookInApplicators1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -695,11 +666,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -730,11 +701,11 @@ public AdditionalpropertiesDoesNotLookInApplicatorsMap getNewInstance(Map List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof Boolean)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -816,5 +787,24 @@ public AdditionalpropertiesDoesNotLookInApplicators1BoxedList validateAndBox(Lis public AdditionalpropertiesDoesNotLookInApplicators1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AdditionalpropertiesDoesNotLookInApplicators1BoxedMap(validate(arg, configuration)); } + @Override + public AdditionalpropertiesDoesNotLookInApplicators1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesWithNullValuedInstanceProperties.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesWithNullValuedInstanceProperties.java index d4ff8b22d9d..bec67224249 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesWithNullValuedInstanceProperties.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesWithNullValuedInstanceProperties.java @@ -88,23 +88,19 @@ public AdditionalpropertiesWithNullValuedInstancePropertiesMapBuilder getBuilder } - public static abstract sealed class AdditionalpropertiesWithNullValuedInstanceProperties1Boxed permits AdditionalpropertiesWithNullValuedInstanceProperties1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AdditionalpropertiesWithNullValuedInstanceProperties1Boxed permits AdditionalpropertiesWithNullValuedInstanceProperties1BoxedMap { + @Nullable Object getData(); } - public static final class AdditionalpropertiesWithNullValuedInstanceProperties1BoxedMap extends AdditionalpropertiesWithNullValuedInstanceProperties1Boxed { - public final AdditionalpropertiesWithNullValuedInstancePropertiesMap data; - private AdditionalpropertiesWithNullValuedInstanceProperties1BoxedMap(AdditionalpropertiesWithNullValuedInstancePropertiesMap data) { - this.data = data; - } + public record AdditionalpropertiesWithNullValuedInstanceProperties1BoxedMap(AdditionalpropertiesWithNullValuedInstancePropertiesMap data) implements AdditionalpropertiesWithNullValuedInstanceProperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class AdditionalpropertiesWithNullValuedInstanceProperties1 extends JsonSchema implements MapSchemaValidator { + public static class AdditionalpropertiesWithNullValuedInstanceProperties1 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 @@ -138,11 +134,11 @@ public AdditionalpropertiesWithNullValuedInstancePropertiesMap getNewInstance(Ma List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance == null || propertyInstance instanceof Void)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -182,6 +178,13 @@ public AdditionalpropertiesWithNullValuedInstancePropertiesMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AdditionalpropertiesWithNullValuedInstanceProperties1BoxedMap(validate(arg, configuration)); } + @Override + public AdditionalpropertiesWithNullValuedInstanceProperties1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesWithSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesWithSchema.java index 1ccdefbdcea..8a657893b71 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesWithSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesWithSchema.java @@ -255,23 +255,19 @@ public AdditionalpropertiesWithSchemaMapBuilder getBuilderAfterAdditionalPropert } - public static abstract sealed class AdditionalpropertiesWithSchema1Boxed permits AdditionalpropertiesWithSchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AdditionalpropertiesWithSchema1Boxed permits AdditionalpropertiesWithSchema1BoxedMap { + @Nullable Object getData(); } - public static final class AdditionalpropertiesWithSchema1BoxedMap extends AdditionalpropertiesWithSchema1Boxed { - public final AdditionalpropertiesWithSchemaMap data; - private AdditionalpropertiesWithSchema1BoxedMap(AdditionalpropertiesWithSchemaMap data) { - this.data = data; - } + public record AdditionalpropertiesWithSchema1BoxedMap(AdditionalpropertiesWithSchemaMap data) implements AdditionalpropertiesWithSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class AdditionalpropertiesWithSchema1 extends JsonSchema implements MapSchemaValidator { + public static class AdditionalpropertiesWithSchema1 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 AdditionalpropertiesWithSchemaMap getNewInstance(Map arg, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -350,6 +346,13 @@ public AdditionalpropertiesWithSchemaMap validate(Map arg, SchemaConfigura public AdditionalpropertiesWithSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AdditionalpropertiesWithSchema1BoxedMap(validate(arg, configuration)); } + @Override + public AdditionalpropertiesWithSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Allof.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Allof.java index a21785e89d4..f2c3bac9dfb 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Allof.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Allof.java @@ -142,78 +142,54 @@ public Schema0Map0Builder getBuilderAfterBar(Map insta } - public static abstract sealed class Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { + @Nullable Object getData(); } - public static final class Schema0BoxedVoid extends Schema0Boxed { - public final Void data; - private Schema0BoxedVoid(Void data) { - this.data = data; - } + public record Schema0BoxedVoid(Void data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedBoolean extends Schema0Boxed { - public final boolean data; - private Schema0BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema0BoxedBoolean(boolean data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedNumber extends Schema0Boxed { - public final Number data; - private Schema0BoxedNumber(Number data) { - this.data = data; - } + public record Schema0BoxedNumber(Number data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedString extends Schema0Boxed { - public final String data; - private Schema0BoxedString(String data) { - this.data = data; - } + public record Schema0BoxedString(String data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedList extends Schema0Boxed { - public final FrozenList<@Nullable Object> data; - private Schema0BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedList(FrozenList<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedMap extends Schema0Boxed { - public final Schema0Map data; - private Schema0BoxedMap(Schema0Map data) { - this.data = data; - } + public record Schema0BoxedMap(Schema0Map data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator { + public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator { private static @Nullable Schema0 instance = null; protected Schema0() { @@ -317,11 +293,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -352,11 +328,11 @@ public Schema0Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -435,6 +411,25 @@ public Schema0BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema0BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema0BoxedMap(validate(arg, configuration)); } + @Override + public Schema0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class Foo extends StringJsonSchema.StringJsonSchema1 { @@ -522,78 +517,54 @@ public Schema1Map0Builder getBuilderAfterFoo(Map insta } - public static abstract sealed class Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { + @Nullable Object getData(); } - public static final class Schema1BoxedVoid extends Schema1Boxed { - public final Void data; - private Schema1BoxedVoid(Void data) { - this.data = data; - } + public record Schema1BoxedVoid(Void data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedBoolean extends Schema1Boxed { - public final boolean data; - private Schema1BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema1BoxedBoolean(boolean data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedNumber extends Schema1Boxed { - public final Number data; - private Schema1BoxedNumber(Number data) { - this.data = data; - } + public record Schema1BoxedNumber(Number data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedString extends Schema1Boxed { - public final String data; - private Schema1BoxedString(String data) { - this.data = data; - } + public record Schema1BoxedString(String data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedList extends Schema1Boxed { - public final FrozenList<@Nullable Object> data; - private Schema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedList(FrozenList<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedMap extends Schema1Boxed { - public final Schema1Map data; - private Schema1BoxedMap(Schema1Map data) { - this.data = data; - } + public record Schema1BoxedMap(Schema1Map data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator { + public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator { private static @Nullable Schema1 instance = null; protected Schema1() { @@ -697,11 +668,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -732,11 +703,11 @@ public Schema1Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -815,80 +786,75 @@ public Schema1BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema1BoxedMap(validate(arg, configuration)); } + @Override + public Schema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class Allof1Boxed permits Allof1BoxedVoid, Allof1BoxedBoolean, Allof1BoxedNumber, Allof1BoxedString, Allof1BoxedList, Allof1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Allof1Boxed permits Allof1BoxedVoid, Allof1BoxedBoolean, Allof1BoxedNumber, Allof1BoxedString, Allof1BoxedList, Allof1BoxedMap { + @Nullable Object getData(); } - public static final class Allof1BoxedVoid extends Allof1Boxed { - public final Void data; - private Allof1BoxedVoid(Void data) { - this.data = data; - } + public record Allof1BoxedVoid(Void data) implements Allof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Allof1BoxedBoolean extends Allof1Boxed { - public final boolean data; - private Allof1BoxedBoolean(boolean data) { - this.data = data; - } + public record Allof1BoxedBoolean(boolean data) implements Allof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Allof1BoxedNumber extends Allof1Boxed { - public final Number data; - private Allof1BoxedNumber(Number data) { - this.data = data; - } + public record Allof1BoxedNumber(Number data) implements Allof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Allof1BoxedString extends Allof1Boxed { - public final String data; - private Allof1BoxedString(String data) { - this.data = data; - } + public record Allof1BoxedString(String data) implements Allof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Allof1BoxedList extends Allof1Boxed { - public final FrozenList<@Nullable Object> data; - private Allof1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Allof1BoxedList(FrozenList<@Nullable Object> data) implements Allof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Allof1BoxedMap extends Allof1Boxed { - public final FrozenMap<@Nullable Object> data; - private Allof1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Allof1BoxedMap(FrozenMap<@Nullable Object> data) implements Allof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Allof1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Allof1BoxedList>, MapSchemaValidator, Allof1BoxedMap> { + public static class Allof1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Allof1BoxedList>, MapSchemaValidator, Allof1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -996,11 +962,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -1031,11 +997,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1114,5 +1080,24 @@ public Allof1BoxedList validateAndBox(List arg, SchemaConfiguration configura public Allof1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Allof1BoxedMap(validate(arg, configuration)); } + @Override + public Allof1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofCombinedWithAnyofOneof.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofCombinedWithAnyofOneof.java index eb146be7828..e17daac12ce 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofCombinedWithAnyofOneof.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofCombinedWithAnyofOneof.java @@ -36,78 +36,54 @@ public class AllofCombinedWithAnyofOneof { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class Schema02Boxed permits Schema02BoxedVoid, Schema02BoxedBoolean, Schema02BoxedNumber, Schema02BoxedString, Schema02BoxedList, Schema02BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema02Boxed permits Schema02BoxedVoid, Schema02BoxedBoolean, Schema02BoxedNumber, Schema02BoxedString, Schema02BoxedList, Schema02BoxedMap { + @Nullable Object getData(); } - public static final class Schema02BoxedVoid extends Schema02Boxed { - public final Void data; - private Schema02BoxedVoid(Void data) { - this.data = data; - } + public record Schema02BoxedVoid(Void data) implements Schema02Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema02BoxedBoolean extends Schema02Boxed { - public final boolean data; - private Schema02BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema02BoxedBoolean(boolean data) implements Schema02Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema02BoxedNumber extends Schema02Boxed { - public final Number data; - private Schema02BoxedNumber(Number data) { - this.data = data; - } + public record Schema02BoxedNumber(Number data) implements Schema02Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema02BoxedString extends Schema02Boxed { - public final String data; - private Schema02BoxedString(String data) { - this.data = data; - } + public record Schema02BoxedString(String data) implements Schema02Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema02BoxedList extends Schema02Boxed { - public final FrozenList<@Nullable Object> data; - private Schema02BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema02BoxedList(FrozenList<@Nullable Object> data) implements Schema02Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema02BoxedMap extends Schema02Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema02BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema02BoxedMap(FrozenMap<@Nullable Object> data) implements Schema02Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema02 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema02BoxedList>, MapSchemaValidator, Schema02BoxedMap> { + public static class Schema02 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema02BoxedList>, MapSchemaValidator, Schema02BoxedMap> { private static @Nullable Schema02 instance = null; protected Schema02() { @@ -206,11 +182,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -241,11 +217,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -324,80 +300,75 @@ public Schema02BoxedList validateAndBox(List arg, SchemaConfiguration configu public Schema02BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema02BoxedMap(validate(arg, configuration)); } + @Override + public Schema02Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class Schema01Boxed permits Schema01BoxedVoid, Schema01BoxedBoolean, Schema01BoxedNumber, Schema01BoxedString, Schema01BoxedList, Schema01BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema01Boxed permits Schema01BoxedVoid, Schema01BoxedBoolean, Schema01BoxedNumber, Schema01BoxedString, Schema01BoxedList, Schema01BoxedMap { + @Nullable Object getData(); } - public static final class Schema01BoxedVoid extends Schema01Boxed { - public final Void data; - private Schema01BoxedVoid(Void data) { - this.data = data; - } + public record Schema01BoxedVoid(Void data) implements Schema01Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema01BoxedBoolean extends Schema01Boxed { - public final boolean data; - private Schema01BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema01BoxedBoolean(boolean data) implements Schema01Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema01BoxedNumber extends Schema01Boxed { - public final Number data; - private Schema01BoxedNumber(Number data) { - this.data = data; - } + public record Schema01BoxedNumber(Number data) implements Schema01Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema01BoxedString extends Schema01Boxed { - public final String data; - private Schema01BoxedString(String data) { - this.data = data; - } + public record Schema01BoxedString(String data) implements Schema01Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema01BoxedList extends Schema01Boxed { - public final FrozenList<@Nullable Object> data; - private Schema01BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema01BoxedList(FrozenList<@Nullable Object> data) implements Schema01Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema01BoxedMap extends Schema01Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema01BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema01BoxedMap(FrozenMap<@Nullable Object> data) implements Schema01Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema01 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema01BoxedList>, MapSchemaValidator, Schema01BoxedMap> { + public static class Schema01 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema01BoxedList>, MapSchemaValidator, Schema01BoxedMap> { private static @Nullable Schema01 instance = null; protected Schema01() { @@ -496,11 +467,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -531,11 +502,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -614,80 +585,75 @@ public Schema01BoxedList validateAndBox(List arg, SchemaConfiguration configu public Schema01BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema01BoxedMap(validate(arg, configuration)); } + @Override + public Schema01Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { + @Nullable Object getData(); } - public static final class Schema0BoxedVoid extends Schema0Boxed { - public final Void data; - private Schema0BoxedVoid(Void data) { - this.data = data; - } + public record Schema0BoxedVoid(Void data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedBoolean extends Schema0Boxed { - public final boolean data; - private Schema0BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema0BoxedBoolean(boolean data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedNumber extends Schema0Boxed { - public final Number data; - private Schema0BoxedNumber(Number data) { - this.data = data; - } + public record Schema0BoxedNumber(Number data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedString extends Schema0Boxed { - public final String data; - private Schema0BoxedString(String data) { - this.data = data; - } + public record Schema0BoxedString(String data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedList extends Schema0Boxed { - public final FrozenList<@Nullable Object> data; - private Schema0BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedList(FrozenList<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedMap extends Schema0Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema0BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedMap(FrozenMap<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator, Schema0BoxedMap> { + public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator, Schema0BoxedMap> { private static @Nullable Schema0 instance = null; protected Schema0() { @@ -786,11 +752,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -821,11 +787,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -904,80 +870,75 @@ public Schema0BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema0BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema0BoxedMap(validate(arg, configuration)); } + @Override + public Schema0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class AllofCombinedWithAnyofOneof1Boxed permits AllofCombinedWithAnyofOneof1BoxedVoid, AllofCombinedWithAnyofOneof1BoxedBoolean, AllofCombinedWithAnyofOneof1BoxedNumber, AllofCombinedWithAnyofOneof1BoxedString, AllofCombinedWithAnyofOneof1BoxedList, AllofCombinedWithAnyofOneof1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AllofCombinedWithAnyofOneof1Boxed permits AllofCombinedWithAnyofOneof1BoxedVoid, AllofCombinedWithAnyofOneof1BoxedBoolean, AllofCombinedWithAnyofOneof1BoxedNumber, AllofCombinedWithAnyofOneof1BoxedString, AllofCombinedWithAnyofOneof1BoxedList, AllofCombinedWithAnyofOneof1BoxedMap { + @Nullable Object getData(); } - public static final class AllofCombinedWithAnyofOneof1BoxedVoid extends AllofCombinedWithAnyofOneof1Boxed { - public final Void data; - private AllofCombinedWithAnyofOneof1BoxedVoid(Void data) { - this.data = data; - } + public record AllofCombinedWithAnyofOneof1BoxedVoid(Void data) implements AllofCombinedWithAnyofOneof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofCombinedWithAnyofOneof1BoxedBoolean extends AllofCombinedWithAnyofOneof1Boxed { - public final boolean data; - private AllofCombinedWithAnyofOneof1BoxedBoolean(boolean data) { - this.data = data; - } + public record AllofCombinedWithAnyofOneof1BoxedBoolean(boolean data) implements AllofCombinedWithAnyofOneof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofCombinedWithAnyofOneof1BoxedNumber extends AllofCombinedWithAnyofOneof1Boxed { - public final Number data; - private AllofCombinedWithAnyofOneof1BoxedNumber(Number data) { - this.data = data; - } + public record AllofCombinedWithAnyofOneof1BoxedNumber(Number data) implements AllofCombinedWithAnyofOneof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofCombinedWithAnyofOneof1BoxedString extends AllofCombinedWithAnyofOneof1Boxed { - public final String data; - private AllofCombinedWithAnyofOneof1BoxedString(String data) { - this.data = data; - } + public record AllofCombinedWithAnyofOneof1BoxedString(String data) implements AllofCombinedWithAnyofOneof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofCombinedWithAnyofOneof1BoxedList extends AllofCombinedWithAnyofOneof1Boxed { - public final FrozenList<@Nullable Object> data; - private AllofCombinedWithAnyofOneof1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record AllofCombinedWithAnyofOneof1BoxedList(FrozenList<@Nullable Object> data) implements AllofCombinedWithAnyofOneof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofCombinedWithAnyofOneof1BoxedMap extends AllofCombinedWithAnyofOneof1Boxed { - public final FrozenMap<@Nullable Object> data; - private AllofCombinedWithAnyofOneof1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record AllofCombinedWithAnyofOneof1BoxedMap(FrozenMap<@Nullable Object> data) implements AllofCombinedWithAnyofOneof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class AllofCombinedWithAnyofOneof1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AllofCombinedWithAnyofOneof1BoxedList>, MapSchemaValidator, AllofCombinedWithAnyofOneof1BoxedMap> { + public static class AllofCombinedWithAnyofOneof1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AllofCombinedWithAnyofOneof1BoxedList>, MapSchemaValidator, AllofCombinedWithAnyofOneof1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -1090,11 +1051,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -1125,11 +1086,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1208,5 +1169,24 @@ public AllofCombinedWithAnyofOneof1BoxedList validateAndBox(List arg, SchemaC public AllofCombinedWithAnyofOneof1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AllofCombinedWithAnyofOneof1BoxedMap(validate(arg, configuration)); } + @Override + public AllofCombinedWithAnyofOneof1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofSimpleTypes.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofSimpleTypes.java index 781a8fc1595..4c9d473a2f9 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofSimpleTypes.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofSimpleTypes.java @@ -35,78 +35,54 @@ public class AllofSimpleTypes { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { + @Nullable Object getData(); } - public static final class Schema0BoxedVoid extends Schema0Boxed { - public final Void data; - private Schema0BoxedVoid(Void data) { - this.data = data; - } + public record Schema0BoxedVoid(Void data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedBoolean extends Schema0Boxed { - public final boolean data; - private Schema0BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema0BoxedBoolean(boolean data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedNumber extends Schema0Boxed { - public final Number data; - private Schema0BoxedNumber(Number data) { - this.data = data; - } + public record Schema0BoxedNumber(Number data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedString extends Schema0Boxed { - public final String data; - private Schema0BoxedString(String data) { - this.data = data; - } + public record Schema0BoxedString(String data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedList extends Schema0Boxed { - public final FrozenList<@Nullable Object> data; - private Schema0BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedList(FrozenList<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedMap extends Schema0Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema0BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedMap(FrozenMap<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator, Schema0BoxedMap> { + public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator, Schema0BoxedMap> { private static @Nullable Schema0 instance = null; protected Schema0() { @@ -205,11 +181,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -240,11 +216,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -323,80 +299,75 @@ public Schema0BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema0BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema0BoxedMap(validate(arg, configuration)); } + @Override + public Schema0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { + @Nullable Object getData(); } - public static final class Schema1BoxedVoid extends Schema1Boxed { - public final Void data; - private Schema1BoxedVoid(Void data) { - this.data = data; - } + public record Schema1BoxedVoid(Void data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedBoolean extends Schema1Boxed { - public final boolean data; - private Schema1BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema1BoxedBoolean(boolean data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedNumber extends Schema1Boxed { - public final Number data; - private Schema1BoxedNumber(Number data) { - this.data = data; - } + public record Schema1BoxedNumber(Number data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedString extends Schema1Boxed { - public final String data; - private Schema1BoxedString(String data) { - this.data = data; - } + public record Schema1BoxedString(String data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedList extends Schema1Boxed { - public final FrozenList<@Nullable Object> data; - private Schema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedList(FrozenList<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedMap extends Schema1Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedMap(FrozenMap<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator, Schema1BoxedMap> { + public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator, Schema1BoxedMap> { private static @Nullable Schema1 instance = null; protected Schema1() { @@ -495,11 +466,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -530,11 +501,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -613,80 +584,75 @@ public Schema1BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema1BoxedMap(validate(arg, configuration)); } + @Override + public Schema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class AllofSimpleTypes1Boxed permits AllofSimpleTypes1BoxedVoid, AllofSimpleTypes1BoxedBoolean, AllofSimpleTypes1BoxedNumber, AllofSimpleTypes1BoxedString, AllofSimpleTypes1BoxedList, AllofSimpleTypes1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AllofSimpleTypes1Boxed permits AllofSimpleTypes1BoxedVoid, AllofSimpleTypes1BoxedBoolean, AllofSimpleTypes1BoxedNumber, AllofSimpleTypes1BoxedString, AllofSimpleTypes1BoxedList, AllofSimpleTypes1BoxedMap { + @Nullable Object getData(); } - public static final class AllofSimpleTypes1BoxedVoid extends AllofSimpleTypes1Boxed { - public final Void data; - private AllofSimpleTypes1BoxedVoid(Void data) { - this.data = data; - } + public record AllofSimpleTypes1BoxedVoid(Void data) implements AllofSimpleTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofSimpleTypes1BoxedBoolean extends AllofSimpleTypes1Boxed { - public final boolean data; - private AllofSimpleTypes1BoxedBoolean(boolean data) { - this.data = data; - } + public record AllofSimpleTypes1BoxedBoolean(boolean data) implements AllofSimpleTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofSimpleTypes1BoxedNumber extends AllofSimpleTypes1Boxed { - public final Number data; - private AllofSimpleTypes1BoxedNumber(Number data) { - this.data = data; - } + public record AllofSimpleTypes1BoxedNumber(Number data) implements AllofSimpleTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofSimpleTypes1BoxedString extends AllofSimpleTypes1Boxed { - public final String data; - private AllofSimpleTypes1BoxedString(String data) { - this.data = data; - } + public record AllofSimpleTypes1BoxedString(String data) implements AllofSimpleTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofSimpleTypes1BoxedList extends AllofSimpleTypes1Boxed { - public final FrozenList<@Nullable Object> data; - private AllofSimpleTypes1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record AllofSimpleTypes1BoxedList(FrozenList<@Nullable Object> data) implements AllofSimpleTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofSimpleTypes1BoxedMap extends AllofSimpleTypes1Boxed { - public final FrozenMap<@Nullable Object> data; - private AllofSimpleTypes1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record AllofSimpleTypes1BoxedMap(FrozenMap<@Nullable Object> data) implements AllofSimpleTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class AllofSimpleTypes1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AllofSimpleTypes1BoxedList>, MapSchemaValidator, AllofSimpleTypes1BoxedMap> { + public static class AllofSimpleTypes1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AllofSimpleTypes1BoxedList>, MapSchemaValidator, AllofSimpleTypes1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -794,11 +760,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -829,11 +795,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -912,5 +878,24 @@ public AllofSimpleTypes1BoxedList validateAndBox(List arg, SchemaConfiguratio public AllofSimpleTypes1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AllofSimpleTypes1BoxedMap(validate(arg, configuration)); } + @Override + public AllofSimpleTypes1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithBaseSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithBaseSchema.java index f640bab85f2..a67e189c9e4 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithBaseSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithBaseSchema.java @@ -125,78 +125,54 @@ public Schema0Map0Builder getBuilderAfterFoo(Map insta } - public static abstract sealed class Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { + @Nullable Object getData(); } - public static final class Schema0BoxedVoid extends Schema0Boxed { - public final Void data; - private Schema0BoxedVoid(Void data) { - this.data = data; - } + public record Schema0BoxedVoid(Void data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedBoolean extends Schema0Boxed { - public final boolean data; - private Schema0BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema0BoxedBoolean(boolean data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedNumber extends Schema0Boxed { - public final Number data; - private Schema0BoxedNumber(Number data) { - this.data = data; - } + public record Schema0BoxedNumber(Number data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedString extends Schema0Boxed { - public final String data; - private Schema0BoxedString(String data) { - this.data = data; - } + public record Schema0BoxedString(String data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedList extends Schema0Boxed { - public final FrozenList<@Nullable Object> data; - private Schema0BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedList(FrozenList<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedMap extends Schema0Boxed { - public final Schema0Map data; - private Schema0BoxedMap(Schema0Map data) { - this.data = data; - } + public record Schema0BoxedMap(Schema0Map data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator { + public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator { private static @Nullable Schema0 instance = null; protected Schema0() { @@ -300,11 +276,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -335,11 +311,11 @@ public Schema0Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -418,6 +394,25 @@ public Schema0BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema0BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema0BoxedMap(validate(arg, configuration)); } + @Override + public Schema0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class Baz extends NullJsonSchema.NullJsonSchema1 { @@ -505,78 +500,54 @@ public Schema1Map0Builder getBuilderAfterBaz(Map insta } - public static abstract sealed class Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { + @Nullable Object getData(); } - public static final class Schema1BoxedVoid extends Schema1Boxed { - public final Void data; - private Schema1BoxedVoid(Void data) { - this.data = data; - } + public record Schema1BoxedVoid(Void data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedBoolean extends Schema1Boxed { - public final boolean data; - private Schema1BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema1BoxedBoolean(boolean data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedNumber extends Schema1Boxed { - public final Number data; - private Schema1BoxedNumber(Number data) { - this.data = data; - } + public record Schema1BoxedNumber(Number data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedString extends Schema1Boxed { - public final String data; - private Schema1BoxedString(String data) { - this.data = data; - } + public record Schema1BoxedString(String data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedList extends Schema1Boxed { - public final FrozenList<@Nullable Object> data; - private Schema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedList(FrozenList<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedMap extends Schema1Boxed { - public final Schema1Map data; - private Schema1BoxedMap(Schema1Map data) { - this.data = data; - } + public record Schema1BoxedMap(Schema1Map data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator { + public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator { private static @Nullable Schema1 instance = null; protected Schema1() { @@ -680,11 +651,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -715,11 +686,11 @@ public Schema1Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -798,6 +769,25 @@ public Schema1BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema1BoxedMap(validate(arg, configuration)); } + @Override + public Schema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class Bar extends IntJsonSchema.IntJsonSchema1 { @@ -903,78 +893,54 @@ public AllofWithBaseSchemaMap0Builder getBuilderAfterBar(Map data; - private AllofWithBaseSchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record AllofWithBaseSchema1BoxedList(FrozenList<@Nullable Object> data) implements AllofWithBaseSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithBaseSchema1BoxedMap extends AllofWithBaseSchema1Boxed { - public final AllofWithBaseSchemaMap data; - private AllofWithBaseSchema1BoxedMap(AllofWithBaseSchemaMap data) { - this.data = data; - } + public record AllofWithBaseSchema1BoxedMap(AllofWithBaseSchemaMap data) implements AllofWithBaseSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class AllofWithBaseSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AllofWithBaseSchema1BoxedList>, MapSchemaValidator { + public static class AllofWithBaseSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AllofWithBaseSchema1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -1088,11 +1054,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -1123,11 +1089,11 @@ public AllofWithBaseSchemaMap getNewInstance(Map arg, List pathToI List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1206,5 +1172,24 @@ public AllofWithBaseSchema1BoxedList validateAndBox(List arg, SchemaConfigura public AllofWithBaseSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AllofWithBaseSchema1BoxedMap(validate(arg, configuration)); } + @Override + public AllofWithBaseSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithOneEmptySchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithOneEmptySchema.java index ba7f3cd1473..6ad17067551 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithOneEmptySchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithOneEmptySchema.java @@ -47,78 +47,54 @@ public static Schema0 getInstance() { } - public static abstract sealed class AllofWithOneEmptySchema1Boxed permits AllofWithOneEmptySchema1BoxedVoid, AllofWithOneEmptySchema1BoxedBoolean, AllofWithOneEmptySchema1BoxedNumber, AllofWithOneEmptySchema1BoxedString, AllofWithOneEmptySchema1BoxedList, AllofWithOneEmptySchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AllofWithOneEmptySchema1Boxed permits AllofWithOneEmptySchema1BoxedVoid, AllofWithOneEmptySchema1BoxedBoolean, AllofWithOneEmptySchema1BoxedNumber, AllofWithOneEmptySchema1BoxedString, AllofWithOneEmptySchema1BoxedList, AllofWithOneEmptySchema1BoxedMap { + @Nullable Object getData(); } - public static final class AllofWithOneEmptySchema1BoxedVoid extends AllofWithOneEmptySchema1Boxed { - public final Void data; - private AllofWithOneEmptySchema1BoxedVoid(Void data) { - this.data = data; - } + public record AllofWithOneEmptySchema1BoxedVoid(Void data) implements AllofWithOneEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithOneEmptySchema1BoxedBoolean extends AllofWithOneEmptySchema1Boxed { - public final boolean data; - private AllofWithOneEmptySchema1BoxedBoolean(boolean data) { - this.data = data; - } + public record AllofWithOneEmptySchema1BoxedBoolean(boolean data) implements AllofWithOneEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithOneEmptySchema1BoxedNumber extends AllofWithOneEmptySchema1Boxed { - public final Number data; - private AllofWithOneEmptySchema1BoxedNumber(Number data) { - this.data = data; - } + public record AllofWithOneEmptySchema1BoxedNumber(Number data) implements AllofWithOneEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithOneEmptySchema1BoxedString extends AllofWithOneEmptySchema1Boxed { - public final String data; - private AllofWithOneEmptySchema1BoxedString(String data) { - this.data = data; - } + public record AllofWithOneEmptySchema1BoxedString(String data) implements AllofWithOneEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithOneEmptySchema1BoxedList extends AllofWithOneEmptySchema1Boxed { - public final FrozenList<@Nullable Object> data; - private AllofWithOneEmptySchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record AllofWithOneEmptySchema1BoxedList(FrozenList<@Nullable Object> data) implements AllofWithOneEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithOneEmptySchema1BoxedMap extends AllofWithOneEmptySchema1Boxed { - public final FrozenMap<@Nullable Object> data; - private AllofWithOneEmptySchema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record AllofWithOneEmptySchema1BoxedMap(FrozenMap<@Nullable Object> data) implements AllofWithOneEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class AllofWithOneEmptySchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AllofWithOneEmptySchema1BoxedList>, MapSchemaValidator, AllofWithOneEmptySchema1BoxedMap> { + public static class AllofWithOneEmptySchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AllofWithOneEmptySchema1BoxedList>, MapSchemaValidator, AllofWithOneEmptySchema1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -225,11 +201,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -260,11 +236,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -343,5 +319,24 @@ public AllofWithOneEmptySchema1BoxedList validateAndBox(List arg, SchemaConfi public AllofWithOneEmptySchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AllofWithOneEmptySchema1BoxedMap(validate(arg, configuration)); } + @Override + public AllofWithOneEmptySchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTheFirstEmptySchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTheFirstEmptySchema.java index 0a0ea1cf8f4..77063ed5e5c 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTheFirstEmptySchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTheFirstEmptySchema.java @@ -59,78 +59,54 @@ public static Schema1 getInstance() { } - public static abstract sealed class AllofWithTheFirstEmptySchema1Boxed permits AllofWithTheFirstEmptySchema1BoxedVoid, AllofWithTheFirstEmptySchema1BoxedBoolean, AllofWithTheFirstEmptySchema1BoxedNumber, AllofWithTheFirstEmptySchema1BoxedString, AllofWithTheFirstEmptySchema1BoxedList, AllofWithTheFirstEmptySchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AllofWithTheFirstEmptySchema1Boxed permits AllofWithTheFirstEmptySchema1BoxedVoid, AllofWithTheFirstEmptySchema1BoxedBoolean, AllofWithTheFirstEmptySchema1BoxedNumber, AllofWithTheFirstEmptySchema1BoxedString, AllofWithTheFirstEmptySchema1BoxedList, AllofWithTheFirstEmptySchema1BoxedMap { + @Nullable Object getData(); } - public static final class AllofWithTheFirstEmptySchema1BoxedVoid extends AllofWithTheFirstEmptySchema1Boxed { - public final Void data; - private AllofWithTheFirstEmptySchema1BoxedVoid(Void data) { - this.data = data; - } + public record AllofWithTheFirstEmptySchema1BoxedVoid(Void data) implements AllofWithTheFirstEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithTheFirstEmptySchema1BoxedBoolean extends AllofWithTheFirstEmptySchema1Boxed { - public final boolean data; - private AllofWithTheFirstEmptySchema1BoxedBoolean(boolean data) { - this.data = data; - } + public record AllofWithTheFirstEmptySchema1BoxedBoolean(boolean data) implements AllofWithTheFirstEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithTheFirstEmptySchema1BoxedNumber extends AllofWithTheFirstEmptySchema1Boxed { - public final Number data; - private AllofWithTheFirstEmptySchema1BoxedNumber(Number data) { - this.data = data; - } + public record AllofWithTheFirstEmptySchema1BoxedNumber(Number data) implements AllofWithTheFirstEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithTheFirstEmptySchema1BoxedString extends AllofWithTheFirstEmptySchema1Boxed { - public final String data; - private AllofWithTheFirstEmptySchema1BoxedString(String data) { - this.data = data; - } + public record AllofWithTheFirstEmptySchema1BoxedString(String data) implements AllofWithTheFirstEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithTheFirstEmptySchema1BoxedList extends AllofWithTheFirstEmptySchema1Boxed { - public final FrozenList<@Nullable Object> data; - private AllofWithTheFirstEmptySchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record AllofWithTheFirstEmptySchema1BoxedList(FrozenList<@Nullable Object> data) implements AllofWithTheFirstEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithTheFirstEmptySchema1BoxedMap extends AllofWithTheFirstEmptySchema1Boxed { - public final FrozenMap<@Nullable Object> data; - private AllofWithTheFirstEmptySchema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record AllofWithTheFirstEmptySchema1BoxedMap(FrozenMap<@Nullable Object> data) implements AllofWithTheFirstEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class AllofWithTheFirstEmptySchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AllofWithTheFirstEmptySchema1BoxedList>, MapSchemaValidator, AllofWithTheFirstEmptySchema1BoxedMap> { + public static class AllofWithTheFirstEmptySchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AllofWithTheFirstEmptySchema1BoxedList>, MapSchemaValidator, AllofWithTheFirstEmptySchema1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -238,11 +214,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -273,11 +249,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -356,5 +332,24 @@ public AllofWithTheFirstEmptySchema1BoxedList validateAndBox(List arg, Schema public AllofWithTheFirstEmptySchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AllofWithTheFirstEmptySchema1BoxedMap(validate(arg, configuration)); } + @Override + public AllofWithTheFirstEmptySchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTheLastEmptySchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTheLastEmptySchema.java index 9f4988b7e52..0ea5f48a712 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTheLastEmptySchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTheLastEmptySchema.java @@ -59,78 +59,54 @@ public static Schema1 getInstance() { } - public static abstract sealed class AllofWithTheLastEmptySchema1Boxed permits AllofWithTheLastEmptySchema1BoxedVoid, AllofWithTheLastEmptySchema1BoxedBoolean, AllofWithTheLastEmptySchema1BoxedNumber, AllofWithTheLastEmptySchema1BoxedString, AllofWithTheLastEmptySchema1BoxedList, AllofWithTheLastEmptySchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AllofWithTheLastEmptySchema1Boxed permits AllofWithTheLastEmptySchema1BoxedVoid, AllofWithTheLastEmptySchema1BoxedBoolean, AllofWithTheLastEmptySchema1BoxedNumber, AllofWithTheLastEmptySchema1BoxedString, AllofWithTheLastEmptySchema1BoxedList, AllofWithTheLastEmptySchema1BoxedMap { + @Nullable Object getData(); } - public static final class AllofWithTheLastEmptySchema1BoxedVoid extends AllofWithTheLastEmptySchema1Boxed { - public final Void data; - private AllofWithTheLastEmptySchema1BoxedVoid(Void data) { - this.data = data; - } + public record AllofWithTheLastEmptySchema1BoxedVoid(Void data) implements AllofWithTheLastEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithTheLastEmptySchema1BoxedBoolean extends AllofWithTheLastEmptySchema1Boxed { - public final boolean data; - private AllofWithTheLastEmptySchema1BoxedBoolean(boolean data) { - this.data = data; - } + public record AllofWithTheLastEmptySchema1BoxedBoolean(boolean data) implements AllofWithTheLastEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithTheLastEmptySchema1BoxedNumber extends AllofWithTheLastEmptySchema1Boxed { - public final Number data; - private AllofWithTheLastEmptySchema1BoxedNumber(Number data) { - this.data = data; - } + public record AllofWithTheLastEmptySchema1BoxedNumber(Number data) implements AllofWithTheLastEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithTheLastEmptySchema1BoxedString extends AllofWithTheLastEmptySchema1Boxed { - public final String data; - private AllofWithTheLastEmptySchema1BoxedString(String data) { - this.data = data; - } + public record AllofWithTheLastEmptySchema1BoxedString(String data) implements AllofWithTheLastEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithTheLastEmptySchema1BoxedList extends AllofWithTheLastEmptySchema1Boxed { - public final FrozenList<@Nullable Object> data; - private AllofWithTheLastEmptySchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record AllofWithTheLastEmptySchema1BoxedList(FrozenList<@Nullable Object> data) implements AllofWithTheLastEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithTheLastEmptySchema1BoxedMap extends AllofWithTheLastEmptySchema1Boxed { - public final FrozenMap<@Nullable Object> data; - private AllofWithTheLastEmptySchema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record AllofWithTheLastEmptySchema1BoxedMap(FrozenMap<@Nullable Object> data) implements AllofWithTheLastEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class AllofWithTheLastEmptySchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AllofWithTheLastEmptySchema1BoxedList>, MapSchemaValidator, AllofWithTheLastEmptySchema1BoxedMap> { + public static class AllofWithTheLastEmptySchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AllofWithTheLastEmptySchema1BoxedList>, MapSchemaValidator, AllofWithTheLastEmptySchema1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -238,11 +214,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -273,11 +249,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -356,5 +332,24 @@ public AllofWithTheLastEmptySchema1BoxedList validateAndBox(List arg, SchemaC public AllofWithTheLastEmptySchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AllofWithTheLastEmptySchema1BoxedMap(validate(arg, configuration)); } + @Override + public AllofWithTheLastEmptySchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTwoEmptySchemas.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTwoEmptySchemas.java index 5ba07d47c64..6430ce42fd0 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTwoEmptySchemas.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTwoEmptySchemas.java @@ -58,78 +58,54 @@ public static Schema1 getInstance() { } - public static abstract sealed class AllofWithTwoEmptySchemas1Boxed permits AllofWithTwoEmptySchemas1BoxedVoid, AllofWithTwoEmptySchemas1BoxedBoolean, AllofWithTwoEmptySchemas1BoxedNumber, AllofWithTwoEmptySchemas1BoxedString, AllofWithTwoEmptySchemas1BoxedList, AllofWithTwoEmptySchemas1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AllofWithTwoEmptySchemas1Boxed permits AllofWithTwoEmptySchemas1BoxedVoid, AllofWithTwoEmptySchemas1BoxedBoolean, AllofWithTwoEmptySchemas1BoxedNumber, AllofWithTwoEmptySchemas1BoxedString, AllofWithTwoEmptySchemas1BoxedList, AllofWithTwoEmptySchemas1BoxedMap { + @Nullable Object getData(); } - public static final class AllofWithTwoEmptySchemas1BoxedVoid extends AllofWithTwoEmptySchemas1Boxed { - public final Void data; - private AllofWithTwoEmptySchemas1BoxedVoid(Void data) { - this.data = data; - } + public record AllofWithTwoEmptySchemas1BoxedVoid(Void data) implements AllofWithTwoEmptySchemas1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithTwoEmptySchemas1BoxedBoolean extends AllofWithTwoEmptySchemas1Boxed { - public final boolean data; - private AllofWithTwoEmptySchemas1BoxedBoolean(boolean data) { - this.data = data; - } + public record AllofWithTwoEmptySchemas1BoxedBoolean(boolean data) implements AllofWithTwoEmptySchemas1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithTwoEmptySchemas1BoxedNumber extends AllofWithTwoEmptySchemas1Boxed { - public final Number data; - private AllofWithTwoEmptySchemas1BoxedNumber(Number data) { - this.data = data; - } + public record AllofWithTwoEmptySchemas1BoxedNumber(Number data) implements AllofWithTwoEmptySchemas1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithTwoEmptySchemas1BoxedString extends AllofWithTwoEmptySchemas1Boxed { - public final String data; - private AllofWithTwoEmptySchemas1BoxedString(String data) { - this.data = data; - } + public record AllofWithTwoEmptySchemas1BoxedString(String data) implements AllofWithTwoEmptySchemas1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithTwoEmptySchemas1BoxedList extends AllofWithTwoEmptySchemas1Boxed { - public final FrozenList<@Nullable Object> data; - private AllofWithTwoEmptySchemas1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record AllofWithTwoEmptySchemas1BoxedList(FrozenList<@Nullable Object> data) implements AllofWithTwoEmptySchemas1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AllofWithTwoEmptySchemas1BoxedMap extends AllofWithTwoEmptySchemas1Boxed { - public final FrozenMap<@Nullable Object> data; - private AllofWithTwoEmptySchemas1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record AllofWithTwoEmptySchemas1BoxedMap(FrozenMap<@Nullable Object> data) implements AllofWithTwoEmptySchemas1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class AllofWithTwoEmptySchemas1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AllofWithTwoEmptySchemas1BoxedList>, MapSchemaValidator, AllofWithTwoEmptySchemas1BoxedMap> { + public static class AllofWithTwoEmptySchemas1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AllofWithTwoEmptySchemas1BoxedList>, MapSchemaValidator, AllofWithTwoEmptySchemas1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -237,11 +213,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -272,11 +248,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -355,5 +331,24 @@ public AllofWithTwoEmptySchemas1BoxedList validateAndBox(List arg, SchemaConf public AllofWithTwoEmptySchemas1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AllofWithTwoEmptySchemas1BoxedMap(validate(arg, configuration)); } + @Override + public AllofWithTwoEmptySchemas1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Anyof.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Anyof.java index 12c165c5bf4..901e8939216 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Anyof.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Anyof.java @@ -47,78 +47,54 @@ public static Schema0 getInstance() { } - public static abstract sealed class Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { + @Nullable Object getData(); } - public static final class Schema1BoxedVoid extends Schema1Boxed { - public final Void data; - private Schema1BoxedVoid(Void data) { - this.data = data; - } + public record Schema1BoxedVoid(Void data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedBoolean extends Schema1Boxed { - public final boolean data; - private Schema1BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema1BoxedBoolean(boolean data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedNumber extends Schema1Boxed { - public final Number data; - private Schema1BoxedNumber(Number data) { - this.data = data; - } + public record Schema1BoxedNumber(Number data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedString extends Schema1Boxed { - public final String data; - private Schema1BoxedString(String data) { - this.data = data; - } + public record Schema1BoxedString(String data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedList extends Schema1Boxed { - public final FrozenList<@Nullable Object> data; - private Schema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedList(FrozenList<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedMap extends Schema1Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedMap(FrozenMap<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator, Schema1BoxedMap> { + public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator, Schema1BoxedMap> { private static @Nullable Schema1 instance = null; protected Schema1() { @@ -217,11 +193,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -252,11 +228,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -335,80 +311,75 @@ public Schema1BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema1BoxedMap(validate(arg, configuration)); } + @Override + public Schema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class Anyof1Boxed permits Anyof1BoxedVoid, Anyof1BoxedBoolean, Anyof1BoxedNumber, Anyof1BoxedString, Anyof1BoxedList, Anyof1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Anyof1Boxed permits Anyof1BoxedVoid, Anyof1BoxedBoolean, Anyof1BoxedNumber, Anyof1BoxedString, Anyof1BoxedList, Anyof1BoxedMap { + @Nullable Object getData(); } - public static final class Anyof1BoxedVoid extends Anyof1Boxed { - public final Void data; - private Anyof1BoxedVoid(Void data) { - this.data = data; - } + public record Anyof1BoxedVoid(Void data) implements Anyof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Anyof1BoxedBoolean extends Anyof1Boxed { - public final boolean data; - private Anyof1BoxedBoolean(boolean data) { - this.data = data; - } + public record Anyof1BoxedBoolean(boolean data) implements Anyof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Anyof1BoxedNumber extends Anyof1Boxed { - public final Number data; - private Anyof1BoxedNumber(Number data) { - this.data = data; - } + public record Anyof1BoxedNumber(Number data) implements Anyof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Anyof1BoxedString extends Anyof1Boxed { - public final String data; - private Anyof1BoxedString(String data) { - this.data = data; - } + public record Anyof1BoxedString(String data) implements Anyof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Anyof1BoxedList extends Anyof1Boxed { - public final FrozenList<@Nullable Object> data; - private Anyof1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Anyof1BoxedList(FrozenList<@Nullable Object> data) implements Anyof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Anyof1BoxedMap extends Anyof1Boxed { - public final FrozenMap<@Nullable Object> data; - private Anyof1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Anyof1BoxedMap(FrozenMap<@Nullable Object> data) implements Anyof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Anyof1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Anyof1BoxedList>, MapSchemaValidator, Anyof1BoxedMap> { + public static class Anyof1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Anyof1BoxedList>, MapSchemaValidator, Anyof1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -516,11 +487,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -551,11 +522,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -634,5 +605,24 @@ public Anyof1BoxedList validateAndBox(List arg, SchemaConfiguration configura public Anyof1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Anyof1BoxedMap(validate(arg, configuration)); } + @Override + public Anyof1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofComplexTypes.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofComplexTypes.java index 652c79e8ee9..1057b9bce71 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofComplexTypes.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofComplexTypes.java @@ -142,78 +142,54 @@ public Schema0Map0Builder getBuilderAfterBar(Map insta } - public static abstract sealed class Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { + @Nullable Object getData(); } - public static final class Schema0BoxedVoid extends Schema0Boxed { - public final Void data; - private Schema0BoxedVoid(Void data) { - this.data = data; - } + public record Schema0BoxedVoid(Void data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedBoolean extends Schema0Boxed { - public final boolean data; - private Schema0BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema0BoxedBoolean(boolean data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedNumber extends Schema0Boxed { - public final Number data; - private Schema0BoxedNumber(Number data) { - this.data = data; - } + public record Schema0BoxedNumber(Number data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedString extends Schema0Boxed { - public final String data; - private Schema0BoxedString(String data) { - this.data = data; - } + public record Schema0BoxedString(String data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedList extends Schema0Boxed { - public final FrozenList<@Nullable Object> data; - private Schema0BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedList(FrozenList<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedMap extends Schema0Boxed { - public final Schema0Map data; - private Schema0BoxedMap(Schema0Map data) { - this.data = data; - } + public record Schema0BoxedMap(Schema0Map data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator { + public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator { private static @Nullable Schema0 instance = null; protected Schema0() { @@ -317,11 +293,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -352,11 +328,11 @@ public Schema0Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -435,6 +411,25 @@ public Schema0BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema0BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema0BoxedMap(validate(arg, configuration)); } + @Override + public Schema0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class Foo extends StringJsonSchema.StringJsonSchema1 { @@ -522,78 +517,54 @@ public Schema1Map0Builder getBuilderAfterFoo(Map insta } - public static abstract sealed class Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { + @Nullable Object getData(); } - public static final class Schema1BoxedVoid extends Schema1Boxed { - public final Void data; - private Schema1BoxedVoid(Void data) { - this.data = data; - } + public record Schema1BoxedVoid(Void data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedBoolean extends Schema1Boxed { - public final boolean data; - private Schema1BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema1BoxedBoolean(boolean data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedNumber extends Schema1Boxed { - public final Number data; - private Schema1BoxedNumber(Number data) { - this.data = data; - } + public record Schema1BoxedNumber(Number data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedString extends Schema1Boxed { - public final String data; - private Schema1BoxedString(String data) { - this.data = data; - } + public record Schema1BoxedString(String data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedList extends Schema1Boxed { - public final FrozenList<@Nullable Object> data; - private Schema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedList(FrozenList<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedMap extends Schema1Boxed { - public final Schema1Map data; - private Schema1BoxedMap(Schema1Map data) { - this.data = data; - } + public record Schema1BoxedMap(Schema1Map data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator { + public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator { private static @Nullable Schema1 instance = null; protected Schema1() { @@ -697,11 +668,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -732,11 +703,11 @@ public Schema1Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -815,80 +786,75 @@ public Schema1BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema1BoxedMap(validate(arg, configuration)); } + @Override + public Schema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class AnyofComplexTypes1Boxed permits AnyofComplexTypes1BoxedVoid, AnyofComplexTypes1BoxedBoolean, AnyofComplexTypes1BoxedNumber, AnyofComplexTypes1BoxedString, AnyofComplexTypes1BoxedList, AnyofComplexTypes1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AnyofComplexTypes1Boxed permits AnyofComplexTypes1BoxedVoid, AnyofComplexTypes1BoxedBoolean, AnyofComplexTypes1BoxedNumber, AnyofComplexTypes1BoxedString, AnyofComplexTypes1BoxedList, AnyofComplexTypes1BoxedMap { + @Nullable Object getData(); } - public static final class AnyofComplexTypes1BoxedVoid extends AnyofComplexTypes1Boxed { - public final Void data; - private AnyofComplexTypes1BoxedVoid(Void data) { - this.data = data; - } + public record AnyofComplexTypes1BoxedVoid(Void data) implements AnyofComplexTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyofComplexTypes1BoxedBoolean extends AnyofComplexTypes1Boxed { - public final boolean data; - private AnyofComplexTypes1BoxedBoolean(boolean data) { - this.data = data; - } + public record AnyofComplexTypes1BoxedBoolean(boolean data) implements AnyofComplexTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyofComplexTypes1BoxedNumber extends AnyofComplexTypes1Boxed { - public final Number data; - private AnyofComplexTypes1BoxedNumber(Number data) { - this.data = data; - } + public record AnyofComplexTypes1BoxedNumber(Number data) implements AnyofComplexTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyofComplexTypes1BoxedString extends AnyofComplexTypes1Boxed { - public final String data; - private AnyofComplexTypes1BoxedString(String data) { - this.data = data; - } + public record AnyofComplexTypes1BoxedString(String data) implements AnyofComplexTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyofComplexTypes1BoxedList extends AnyofComplexTypes1Boxed { - public final FrozenList<@Nullable Object> data; - private AnyofComplexTypes1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record AnyofComplexTypes1BoxedList(FrozenList<@Nullable Object> data) implements AnyofComplexTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyofComplexTypes1BoxedMap extends AnyofComplexTypes1Boxed { - public final FrozenMap<@Nullable Object> data; - private AnyofComplexTypes1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record AnyofComplexTypes1BoxedMap(FrozenMap<@Nullable Object> data) implements AnyofComplexTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class AnyofComplexTypes1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AnyofComplexTypes1BoxedList>, MapSchemaValidator, AnyofComplexTypes1BoxedMap> { + public static class AnyofComplexTypes1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AnyofComplexTypes1BoxedList>, MapSchemaValidator, AnyofComplexTypes1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -996,11 +962,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -1031,11 +997,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1114,5 +1080,24 @@ public AnyofComplexTypes1BoxedList validateAndBox(List arg, SchemaConfigurati public AnyofComplexTypes1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyofComplexTypes1BoxedMap(validate(arg, configuration)); } + @Override + public AnyofComplexTypes1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofWithBaseSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofWithBaseSchema.java index 485bb707f91..c3885e3556d 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofWithBaseSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofWithBaseSchema.java @@ -35,78 +35,54 @@ public class AnyofWithBaseSchema { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { + @Nullable Object getData(); } - public static final class Schema0BoxedVoid extends Schema0Boxed { - public final Void data; - private Schema0BoxedVoid(Void data) { - this.data = data; - } + public record Schema0BoxedVoid(Void data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedBoolean extends Schema0Boxed { - public final boolean data; - private Schema0BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema0BoxedBoolean(boolean data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedNumber extends Schema0Boxed { - public final Number data; - private Schema0BoxedNumber(Number data) { - this.data = data; - } + public record Schema0BoxedNumber(Number data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedString extends Schema0Boxed { - public final String data; - private Schema0BoxedString(String data) { - this.data = data; - } + public record Schema0BoxedString(String data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedList extends Schema0Boxed { - public final FrozenList<@Nullable Object> data; - private Schema0BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedList(FrozenList<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedMap extends Schema0Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema0BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedMap(FrozenMap<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator, Schema0BoxedMap> { + public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator, Schema0BoxedMap> { private static @Nullable Schema0 instance = null; protected Schema0() { @@ -205,11 +181,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -240,11 +216,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -323,80 +299,75 @@ public Schema0BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema0BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema0BoxedMap(validate(arg, configuration)); } + @Override + public Schema0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { + @Nullable Object getData(); } - public static final class Schema1BoxedVoid extends Schema1Boxed { - public final Void data; - private Schema1BoxedVoid(Void data) { - this.data = data; - } + public record Schema1BoxedVoid(Void data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedBoolean extends Schema1Boxed { - public final boolean data; - private Schema1BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema1BoxedBoolean(boolean data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedNumber extends Schema1Boxed { - public final Number data; - private Schema1BoxedNumber(Number data) { - this.data = data; - } + public record Schema1BoxedNumber(Number data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedString extends Schema1Boxed { - public final String data; - private Schema1BoxedString(String data) { - this.data = data; - } + public record Schema1BoxedString(String data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedList extends Schema1Boxed { - public final FrozenList<@Nullable Object> data; - private Schema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedList(FrozenList<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedMap extends Schema1Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedMap(FrozenMap<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator, Schema1BoxedMap> { + public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator, Schema1BoxedMap> { private static @Nullable Schema1 instance = null; protected Schema1() { @@ -495,11 +466,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -530,11 +501,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -613,26 +584,41 @@ public Schema1BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema1BoxedMap(validate(arg, configuration)); } + @Override + public Schema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class AnyofWithBaseSchema1Boxed permits AnyofWithBaseSchema1BoxedString { - public abstract @Nullable Object data(); + public sealed interface AnyofWithBaseSchema1Boxed permits AnyofWithBaseSchema1BoxedString { + @Nullable Object getData(); } - public static final class AnyofWithBaseSchema1BoxedString extends AnyofWithBaseSchema1Boxed { - public final String data; - private AnyofWithBaseSchema1BoxedString(String data) { - this.data = data; - } + public record AnyofWithBaseSchema1BoxedString(String data) implements AnyofWithBaseSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class AnyofWithBaseSchema1 extends JsonSchema implements StringSchemaValidator { + public static class AnyofWithBaseSchema1 extends JsonSchema implements StringSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -689,5 +675,12 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val public AnyofWithBaseSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyofWithBaseSchema1BoxedString(validate(arg, configuration)); } + @Override + public AnyofWithBaseSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofWithOneEmptySchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofWithOneEmptySchema.java index fff47f1c4a3..8566d7392b2 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofWithOneEmptySchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofWithOneEmptySchema.java @@ -59,78 +59,54 @@ public static Schema1 getInstance() { } - public static abstract sealed class AnyofWithOneEmptySchema1Boxed permits AnyofWithOneEmptySchema1BoxedVoid, AnyofWithOneEmptySchema1BoxedBoolean, AnyofWithOneEmptySchema1BoxedNumber, AnyofWithOneEmptySchema1BoxedString, AnyofWithOneEmptySchema1BoxedList, AnyofWithOneEmptySchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AnyofWithOneEmptySchema1Boxed permits AnyofWithOneEmptySchema1BoxedVoid, AnyofWithOneEmptySchema1BoxedBoolean, AnyofWithOneEmptySchema1BoxedNumber, AnyofWithOneEmptySchema1BoxedString, AnyofWithOneEmptySchema1BoxedList, AnyofWithOneEmptySchema1BoxedMap { + @Nullable Object getData(); } - public static final class AnyofWithOneEmptySchema1BoxedVoid extends AnyofWithOneEmptySchema1Boxed { - public final Void data; - private AnyofWithOneEmptySchema1BoxedVoid(Void data) { - this.data = data; - } + public record AnyofWithOneEmptySchema1BoxedVoid(Void data) implements AnyofWithOneEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyofWithOneEmptySchema1BoxedBoolean extends AnyofWithOneEmptySchema1Boxed { - public final boolean data; - private AnyofWithOneEmptySchema1BoxedBoolean(boolean data) { - this.data = data; - } + public record AnyofWithOneEmptySchema1BoxedBoolean(boolean data) implements AnyofWithOneEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyofWithOneEmptySchema1BoxedNumber extends AnyofWithOneEmptySchema1Boxed { - public final Number data; - private AnyofWithOneEmptySchema1BoxedNumber(Number data) { - this.data = data; - } + public record AnyofWithOneEmptySchema1BoxedNumber(Number data) implements AnyofWithOneEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyofWithOneEmptySchema1BoxedString extends AnyofWithOneEmptySchema1Boxed { - public final String data; - private AnyofWithOneEmptySchema1BoxedString(String data) { - this.data = data; - } + public record AnyofWithOneEmptySchema1BoxedString(String data) implements AnyofWithOneEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyofWithOneEmptySchema1BoxedList extends AnyofWithOneEmptySchema1Boxed { - public final FrozenList<@Nullable Object> data; - private AnyofWithOneEmptySchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record AnyofWithOneEmptySchema1BoxedList(FrozenList<@Nullable Object> data) implements AnyofWithOneEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyofWithOneEmptySchema1BoxedMap extends AnyofWithOneEmptySchema1Boxed { - public final FrozenMap<@Nullable Object> data; - private AnyofWithOneEmptySchema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record AnyofWithOneEmptySchema1BoxedMap(FrozenMap<@Nullable Object> data) implements AnyofWithOneEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class AnyofWithOneEmptySchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AnyofWithOneEmptySchema1BoxedList>, MapSchemaValidator, AnyofWithOneEmptySchema1BoxedMap> { + public static class AnyofWithOneEmptySchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AnyofWithOneEmptySchema1BoxedList>, MapSchemaValidator, AnyofWithOneEmptySchema1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -238,11 +214,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -273,11 +249,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -356,5 +332,24 @@ public AnyofWithOneEmptySchema1BoxedList validateAndBox(List arg, SchemaConfi public AnyofWithOneEmptySchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyofWithOneEmptySchema1BoxedMap(validate(arg, configuration)); } + @Override + public AnyofWithOneEmptySchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ByInt.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ByInt.java index 7c73de0f7d5..ebcbb032fc3 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ByInt.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ByInt.java @@ -36,78 +36,54 @@ public class ByInt { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class ByInt1Boxed permits ByInt1BoxedVoid, ByInt1BoxedBoolean, ByInt1BoxedNumber, ByInt1BoxedString, ByInt1BoxedList, ByInt1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface ByInt1Boxed permits ByInt1BoxedVoid, ByInt1BoxedBoolean, ByInt1BoxedNumber, ByInt1BoxedString, ByInt1BoxedList, ByInt1BoxedMap { + @Nullable Object getData(); } - public static final class ByInt1BoxedVoid extends ByInt1Boxed { - public final Void data; - private ByInt1BoxedVoid(Void data) { - this.data = data; - } + public record ByInt1BoxedVoid(Void data) implements ByInt1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ByInt1BoxedBoolean extends ByInt1Boxed { - public final boolean data; - private ByInt1BoxedBoolean(boolean data) { - this.data = data; - } + public record ByInt1BoxedBoolean(boolean data) implements ByInt1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ByInt1BoxedNumber extends ByInt1Boxed { - public final Number data; - private ByInt1BoxedNumber(Number data) { - this.data = data; - } + public record ByInt1BoxedNumber(Number data) implements ByInt1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ByInt1BoxedString extends ByInt1Boxed { - public final String data; - private ByInt1BoxedString(String data) { - this.data = data; - } + public record ByInt1BoxedString(String data) implements ByInt1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ByInt1BoxedList extends ByInt1Boxed { - public final FrozenList<@Nullable Object> data; - private ByInt1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ByInt1BoxedList(FrozenList<@Nullable Object> data) implements ByInt1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ByInt1BoxedMap extends ByInt1Boxed { - public final FrozenMap<@Nullable Object> data; - private ByInt1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ByInt1BoxedMap(FrozenMap<@Nullable Object> data) implements ByInt1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class ByInt1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ByInt1BoxedList>, MapSchemaValidator, ByInt1BoxedMap> { + public static class ByInt1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ByInt1BoxedList>, MapSchemaValidator, ByInt1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -212,11 +188,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -247,11 +223,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -330,5 +306,24 @@ public ByInt1BoxedList validateAndBox(List arg, SchemaConfiguration configura public ByInt1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ByInt1BoxedMap(validate(arg, configuration)); } + @Override + public ByInt1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ByNumber.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ByNumber.java index 2827c47bd81..828c756720c 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ByNumber.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ByNumber.java @@ -36,78 +36,54 @@ public class ByNumber { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class ByNumber1Boxed permits ByNumber1BoxedVoid, ByNumber1BoxedBoolean, ByNumber1BoxedNumber, ByNumber1BoxedString, ByNumber1BoxedList, ByNumber1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface ByNumber1Boxed permits ByNumber1BoxedVoid, ByNumber1BoxedBoolean, ByNumber1BoxedNumber, ByNumber1BoxedString, ByNumber1BoxedList, ByNumber1BoxedMap { + @Nullable Object getData(); } - public static final class ByNumber1BoxedVoid extends ByNumber1Boxed { - public final Void data; - private ByNumber1BoxedVoid(Void data) { - this.data = data; - } + public record ByNumber1BoxedVoid(Void data) implements ByNumber1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ByNumber1BoxedBoolean extends ByNumber1Boxed { - public final boolean data; - private ByNumber1BoxedBoolean(boolean data) { - this.data = data; - } + public record ByNumber1BoxedBoolean(boolean data) implements ByNumber1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ByNumber1BoxedNumber extends ByNumber1Boxed { - public final Number data; - private ByNumber1BoxedNumber(Number data) { - this.data = data; - } + public record ByNumber1BoxedNumber(Number data) implements ByNumber1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ByNumber1BoxedString extends ByNumber1Boxed { - public final String data; - private ByNumber1BoxedString(String data) { - this.data = data; - } + public record ByNumber1BoxedString(String data) implements ByNumber1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ByNumber1BoxedList extends ByNumber1Boxed { - public final FrozenList<@Nullable Object> data; - private ByNumber1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ByNumber1BoxedList(FrozenList<@Nullable Object> data) implements ByNumber1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ByNumber1BoxedMap extends ByNumber1Boxed { - public final FrozenMap<@Nullable Object> data; - private ByNumber1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ByNumber1BoxedMap(FrozenMap<@Nullable Object> data) implements ByNumber1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class ByNumber1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ByNumber1BoxedList>, MapSchemaValidator, ByNumber1BoxedMap> { + public static class ByNumber1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ByNumber1BoxedList>, MapSchemaValidator, ByNumber1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -212,11 +188,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -247,11 +223,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -330,5 +306,24 @@ public ByNumber1BoxedList validateAndBox(List arg, SchemaConfiguration config public ByNumber1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ByNumber1BoxedMap(validate(arg, configuration)); } + @Override + public ByNumber1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/BySmallNumber.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/BySmallNumber.java index 2a0c8430099..c91371daa4a 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/BySmallNumber.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/BySmallNumber.java @@ -36,78 +36,54 @@ public class BySmallNumber { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class BySmallNumber1Boxed permits BySmallNumber1BoxedVoid, BySmallNumber1BoxedBoolean, BySmallNumber1BoxedNumber, BySmallNumber1BoxedString, BySmallNumber1BoxedList, BySmallNumber1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface BySmallNumber1Boxed permits BySmallNumber1BoxedVoid, BySmallNumber1BoxedBoolean, BySmallNumber1BoxedNumber, BySmallNumber1BoxedString, BySmallNumber1BoxedList, BySmallNumber1BoxedMap { + @Nullable Object getData(); } - public static final class BySmallNumber1BoxedVoid extends BySmallNumber1Boxed { - public final Void data; - private BySmallNumber1BoxedVoid(Void data) { - this.data = data; - } + public record BySmallNumber1BoxedVoid(Void data) implements BySmallNumber1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class BySmallNumber1BoxedBoolean extends BySmallNumber1Boxed { - public final boolean data; - private BySmallNumber1BoxedBoolean(boolean data) { - this.data = data; - } + public record BySmallNumber1BoxedBoolean(boolean data) implements BySmallNumber1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class BySmallNumber1BoxedNumber extends BySmallNumber1Boxed { - public final Number data; - private BySmallNumber1BoxedNumber(Number data) { - this.data = data; - } + public record BySmallNumber1BoxedNumber(Number data) implements BySmallNumber1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class BySmallNumber1BoxedString extends BySmallNumber1Boxed { - public final String data; - private BySmallNumber1BoxedString(String data) { - this.data = data; - } + public record BySmallNumber1BoxedString(String data) implements BySmallNumber1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class BySmallNumber1BoxedList extends BySmallNumber1Boxed { - public final FrozenList<@Nullable Object> data; - private BySmallNumber1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record BySmallNumber1BoxedList(FrozenList<@Nullable Object> data) implements BySmallNumber1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class BySmallNumber1BoxedMap extends BySmallNumber1Boxed { - public final FrozenMap<@Nullable Object> data; - private BySmallNumber1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record BySmallNumber1BoxedMap(FrozenMap<@Nullable Object> data) implements BySmallNumber1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class BySmallNumber1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, BySmallNumber1BoxedList>, MapSchemaValidator, BySmallNumber1BoxedMap> { + public static class BySmallNumber1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, BySmallNumber1BoxedList>, MapSchemaValidator, BySmallNumber1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -212,11 +188,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -247,11 +223,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -330,5 +306,24 @@ public BySmallNumber1BoxedList validateAndBox(List arg, SchemaConfiguration c public BySmallNumber1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new BySmallNumber1BoxedMap(validate(arg, configuration)); } + @Override + public BySmallNumber1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ConstNulCharactersInStrings.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ConstNulCharactersInStrings.java index 21e231a89b0..a0830962bc1 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ConstNulCharactersInStrings.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ConstNulCharactersInStrings.java @@ -49,78 +49,54 @@ public String value() { } - public static abstract sealed class ConstNulCharactersInStrings1Boxed permits ConstNulCharactersInStrings1BoxedVoid, ConstNulCharactersInStrings1BoxedBoolean, ConstNulCharactersInStrings1BoxedNumber, ConstNulCharactersInStrings1BoxedString, ConstNulCharactersInStrings1BoxedList, ConstNulCharactersInStrings1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface ConstNulCharactersInStrings1Boxed permits ConstNulCharactersInStrings1BoxedVoid, ConstNulCharactersInStrings1BoxedBoolean, ConstNulCharactersInStrings1BoxedNumber, ConstNulCharactersInStrings1BoxedString, ConstNulCharactersInStrings1BoxedList, ConstNulCharactersInStrings1BoxedMap { + @Nullable Object getData(); } - public static final class ConstNulCharactersInStrings1BoxedVoid extends ConstNulCharactersInStrings1Boxed { - public final Void data; - private ConstNulCharactersInStrings1BoxedVoid(Void data) { - this.data = data; - } + public record ConstNulCharactersInStrings1BoxedVoid(Void data) implements ConstNulCharactersInStrings1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ConstNulCharactersInStrings1BoxedBoolean extends ConstNulCharactersInStrings1Boxed { - public final boolean data; - private ConstNulCharactersInStrings1BoxedBoolean(boolean data) { - this.data = data; - } + public record ConstNulCharactersInStrings1BoxedBoolean(boolean data) implements ConstNulCharactersInStrings1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ConstNulCharactersInStrings1BoxedNumber extends ConstNulCharactersInStrings1Boxed { - public final Number data; - private ConstNulCharactersInStrings1BoxedNumber(Number data) { - this.data = data; - } + public record ConstNulCharactersInStrings1BoxedNumber(Number data) implements ConstNulCharactersInStrings1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ConstNulCharactersInStrings1BoxedString extends ConstNulCharactersInStrings1Boxed { - public final String data; - private ConstNulCharactersInStrings1BoxedString(String data) { - this.data = data; - } + public record ConstNulCharactersInStrings1BoxedString(String data) implements ConstNulCharactersInStrings1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ConstNulCharactersInStrings1BoxedList extends ConstNulCharactersInStrings1Boxed { - public final FrozenList<@Nullable Object> data; - private ConstNulCharactersInStrings1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ConstNulCharactersInStrings1BoxedList(FrozenList<@Nullable Object> data) implements ConstNulCharactersInStrings1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ConstNulCharactersInStrings1BoxedMap extends ConstNulCharactersInStrings1Boxed { - public final FrozenMap<@Nullable Object> data; - private ConstNulCharactersInStrings1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ConstNulCharactersInStrings1BoxedMap(FrozenMap<@Nullable Object> data) implements ConstNulCharactersInStrings1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class ConstNulCharactersInStrings1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ConstNulCharactersInStrings1BoxedList>, MapSchemaValidator, ConstNulCharactersInStrings1BoxedMap> { + public static class ConstNulCharactersInStrings1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ConstNulCharactersInStrings1BoxedList>, MapSchemaValidator, ConstNulCharactersInStrings1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -225,11 +201,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -260,11 +236,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -343,5 +319,24 @@ public ConstNulCharactersInStrings1BoxedList validateAndBox(List arg, SchemaC public ConstNulCharactersInStrings1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ConstNulCharactersInStrings1BoxedMap(validate(arg, configuration)); } + @Override + public ConstNulCharactersInStrings1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ContainsKeywordValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ContainsKeywordValidation.java index 5ff964d32c4..b01a97a19a3 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ContainsKeywordValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ContainsKeywordValidation.java @@ -35,78 +35,54 @@ public class ContainsKeywordValidation { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class ContainsBoxed permits ContainsBoxedVoid, ContainsBoxedBoolean, ContainsBoxedNumber, ContainsBoxedString, ContainsBoxedList, ContainsBoxedMap { - public abstract @Nullable Object data(); + public sealed interface ContainsBoxed permits ContainsBoxedVoid, ContainsBoxedBoolean, ContainsBoxedNumber, ContainsBoxedString, ContainsBoxedList, ContainsBoxedMap { + @Nullable Object getData(); } - public static final class ContainsBoxedVoid extends ContainsBoxed { - public final Void data; - private ContainsBoxedVoid(Void data) { - this.data = data; - } + public record ContainsBoxedVoid(Void data) implements ContainsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ContainsBoxedBoolean extends ContainsBoxed { - public final boolean data; - private ContainsBoxedBoolean(boolean data) { - this.data = data; - } + public record ContainsBoxedBoolean(boolean data) implements ContainsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ContainsBoxedNumber extends ContainsBoxed { - public final Number data; - private ContainsBoxedNumber(Number data) { - this.data = data; - } + public record ContainsBoxedNumber(Number data) implements ContainsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ContainsBoxedString extends ContainsBoxed { - public final String data; - private ContainsBoxedString(String data) { - this.data = data; - } + public record ContainsBoxedString(String data) implements ContainsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ContainsBoxedList extends ContainsBoxed { - public final FrozenList<@Nullable Object> data; - private ContainsBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ContainsBoxedList(FrozenList<@Nullable Object> data) implements ContainsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ContainsBoxedMap extends ContainsBoxed { - public final FrozenMap<@Nullable Object> data; - private ContainsBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ContainsBoxedMap(FrozenMap<@Nullable Object> data) implements ContainsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Contains extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ContainsBoxedList>, MapSchemaValidator, ContainsBoxedMap> { + public static class Contains extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ContainsBoxedList>, MapSchemaValidator, ContainsBoxedMap> { private static @Nullable Contains instance = null; protected Contains() { @@ -205,11 +181,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -240,11 +216,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -323,80 +299,75 @@ public ContainsBoxedList validateAndBox(List arg, SchemaConfiguration configu public ContainsBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ContainsBoxedMap(validate(arg, configuration)); } + @Override + public ContainsBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class ContainsKeywordValidation1Boxed permits ContainsKeywordValidation1BoxedVoid, ContainsKeywordValidation1BoxedBoolean, ContainsKeywordValidation1BoxedNumber, ContainsKeywordValidation1BoxedString, ContainsKeywordValidation1BoxedList, ContainsKeywordValidation1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface ContainsKeywordValidation1Boxed permits ContainsKeywordValidation1BoxedVoid, ContainsKeywordValidation1BoxedBoolean, ContainsKeywordValidation1BoxedNumber, ContainsKeywordValidation1BoxedString, ContainsKeywordValidation1BoxedList, ContainsKeywordValidation1BoxedMap { + @Nullable Object getData(); } - public static final class ContainsKeywordValidation1BoxedVoid extends ContainsKeywordValidation1Boxed { - public final Void data; - private ContainsKeywordValidation1BoxedVoid(Void data) { - this.data = data; - } + public record ContainsKeywordValidation1BoxedVoid(Void data) implements ContainsKeywordValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ContainsKeywordValidation1BoxedBoolean extends ContainsKeywordValidation1Boxed { - public final boolean data; - private ContainsKeywordValidation1BoxedBoolean(boolean data) { - this.data = data; - } + public record ContainsKeywordValidation1BoxedBoolean(boolean data) implements ContainsKeywordValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ContainsKeywordValidation1BoxedNumber extends ContainsKeywordValidation1Boxed { - public final Number data; - private ContainsKeywordValidation1BoxedNumber(Number data) { - this.data = data; - } + public record ContainsKeywordValidation1BoxedNumber(Number data) implements ContainsKeywordValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ContainsKeywordValidation1BoxedString extends ContainsKeywordValidation1Boxed { - public final String data; - private ContainsKeywordValidation1BoxedString(String data) { - this.data = data; - } + public record ContainsKeywordValidation1BoxedString(String data) implements ContainsKeywordValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ContainsKeywordValidation1BoxedList extends ContainsKeywordValidation1Boxed { - public final FrozenList<@Nullable Object> data; - private ContainsKeywordValidation1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ContainsKeywordValidation1BoxedList(FrozenList<@Nullable Object> data) implements ContainsKeywordValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ContainsKeywordValidation1BoxedMap extends ContainsKeywordValidation1Boxed { - public final FrozenMap<@Nullable Object> data; - private ContainsKeywordValidation1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ContainsKeywordValidation1BoxedMap(FrozenMap<@Nullable Object> data) implements ContainsKeywordValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class ContainsKeywordValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ContainsKeywordValidation1BoxedList>, MapSchemaValidator, ContainsKeywordValidation1BoxedMap> { + public static class ContainsKeywordValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ContainsKeywordValidation1BoxedList>, MapSchemaValidator, ContainsKeywordValidation1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -501,11 +472,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -536,11 +507,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -619,5 +590,24 @@ public ContainsKeywordValidation1BoxedList validateAndBox(List arg, SchemaCon public ContainsKeywordValidation1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ContainsKeywordValidation1BoxedMap(validate(arg, configuration)); } + @Override + public ContainsKeywordValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ContainsWithNullInstanceElements.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ContainsWithNullInstanceElements.java index 6d6f4de6d01..ba2b387ffe4 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ContainsWithNullInstanceElements.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ContainsWithNullInstanceElements.java @@ -47,78 +47,54 @@ public static Contains getInstance() { } - public static abstract sealed class ContainsWithNullInstanceElements1Boxed permits ContainsWithNullInstanceElements1BoxedVoid, ContainsWithNullInstanceElements1BoxedBoolean, ContainsWithNullInstanceElements1BoxedNumber, ContainsWithNullInstanceElements1BoxedString, ContainsWithNullInstanceElements1BoxedList, ContainsWithNullInstanceElements1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface ContainsWithNullInstanceElements1Boxed permits ContainsWithNullInstanceElements1BoxedVoid, ContainsWithNullInstanceElements1BoxedBoolean, ContainsWithNullInstanceElements1BoxedNumber, ContainsWithNullInstanceElements1BoxedString, ContainsWithNullInstanceElements1BoxedList, ContainsWithNullInstanceElements1BoxedMap { + @Nullable Object getData(); } - public static final class ContainsWithNullInstanceElements1BoxedVoid extends ContainsWithNullInstanceElements1Boxed { - public final Void data; - private ContainsWithNullInstanceElements1BoxedVoid(Void data) { - this.data = data; - } + public record ContainsWithNullInstanceElements1BoxedVoid(Void data) implements ContainsWithNullInstanceElements1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ContainsWithNullInstanceElements1BoxedBoolean extends ContainsWithNullInstanceElements1Boxed { - public final boolean data; - private ContainsWithNullInstanceElements1BoxedBoolean(boolean data) { - this.data = data; - } + public record ContainsWithNullInstanceElements1BoxedBoolean(boolean data) implements ContainsWithNullInstanceElements1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ContainsWithNullInstanceElements1BoxedNumber extends ContainsWithNullInstanceElements1Boxed { - public final Number data; - private ContainsWithNullInstanceElements1BoxedNumber(Number data) { - this.data = data; - } + public record ContainsWithNullInstanceElements1BoxedNumber(Number data) implements ContainsWithNullInstanceElements1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ContainsWithNullInstanceElements1BoxedString extends ContainsWithNullInstanceElements1Boxed { - public final String data; - private ContainsWithNullInstanceElements1BoxedString(String data) { - this.data = data; - } + public record ContainsWithNullInstanceElements1BoxedString(String data) implements ContainsWithNullInstanceElements1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ContainsWithNullInstanceElements1BoxedList extends ContainsWithNullInstanceElements1Boxed { - public final FrozenList<@Nullable Object> data; - private ContainsWithNullInstanceElements1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ContainsWithNullInstanceElements1BoxedList(FrozenList<@Nullable Object> data) implements ContainsWithNullInstanceElements1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ContainsWithNullInstanceElements1BoxedMap extends ContainsWithNullInstanceElements1Boxed { - public final FrozenMap<@Nullable Object> data; - private ContainsWithNullInstanceElements1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ContainsWithNullInstanceElements1BoxedMap(FrozenMap<@Nullable Object> data) implements ContainsWithNullInstanceElements1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class ContainsWithNullInstanceElements1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ContainsWithNullInstanceElements1BoxedList>, MapSchemaValidator, ContainsWithNullInstanceElements1BoxedMap> { + public static class ContainsWithNullInstanceElements1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ContainsWithNullInstanceElements1BoxedList>, MapSchemaValidator, ContainsWithNullInstanceElements1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -223,11 +199,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -258,11 +234,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -341,5 +317,24 @@ public ContainsWithNullInstanceElements1BoxedList validateAndBox(List arg, Sc public ContainsWithNullInstanceElements1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ContainsWithNullInstanceElements1BoxedMap(validate(arg, configuration)); } + @Override + public ContainsWithNullInstanceElements1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateFormat.java index 53c0c2527eb..06354a2929a 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateFormat.java @@ -35,78 +35,54 @@ public class DateFormat { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class DateFormat1Boxed permits DateFormat1BoxedVoid, DateFormat1BoxedBoolean, DateFormat1BoxedNumber, DateFormat1BoxedString, DateFormat1BoxedList, DateFormat1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface DateFormat1Boxed permits DateFormat1BoxedVoid, DateFormat1BoxedBoolean, DateFormat1BoxedNumber, DateFormat1BoxedString, DateFormat1BoxedList, DateFormat1BoxedMap { + @Nullable Object getData(); } - public static final class DateFormat1BoxedVoid extends DateFormat1Boxed { - public final Void data; - private DateFormat1BoxedVoid(Void data) { - this.data = data; - } + public record DateFormat1BoxedVoid(Void data) implements DateFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DateFormat1BoxedBoolean extends DateFormat1Boxed { - public final boolean data; - private DateFormat1BoxedBoolean(boolean data) { - this.data = data; - } + public record DateFormat1BoxedBoolean(boolean data) implements DateFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DateFormat1BoxedNumber extends DateFormat1Boxed { - public final Number data; - private DateFormat1BoxedNumber(Number data) { - this.data = data; - } + public record DateFormat1BoxedNumber(Number data) implements DateFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DateFormat1BoxedString extends DateFormat1Boxed { - public final String data; - private DateFormat1BoxedString(String data) { - this.data = data; - } + public record DateFormat1BoxedString(String data) implements DateFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DateFormat1BoxedList extends DateFormat1Boxed { - public final FrozenList<@Nullable Object> data; - private DateFormat1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record DateFormat1BoxedList(FrozenList<@Nullable Object> data) implements DateFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DateFormat1BoxedMap extends DateFormat1Boxed { - public final FrozenMap<@Nullable Object> data; - private DateFormat1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record DateFormat1BoxedMap(FrozenMap<@Nullable Object> data) implements DateFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class DateFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, DateFormat1BoxedList>, MapSchemaValidator, DateFormat1BoxedMap> { + public static class DateFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, DateFormat1BoxedList>, MapSchemaValidator, DateFormat1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public DateFormat1BoxedList validateAndBox(List arg, SchemaConfiguration conf public DateFormat1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DateFormat1BoxedMap(validate(arg, configuration)); } + @Override + public DateFormat1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeFormat.java index 5eeb37ac76c..fd3953683af 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeFormat.java @@ -35,78 +35,54 @@ public class DateTimeFormat { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class DateTimeFormat1Boxed permits DateTimeFormat1BoxedVoid, DateTimeFormat1BoxedBoolean, DateTimeFormat1BoxedNumber, DateTimeFormat1BoxedString, DateTimeFormat1BoxedList, DateTimeFormat1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface DateTimeFormat1Boxed permits DateTimeFormat1BoxedVoid, DateTimeFormat1BoxedBoolean, DateTimeFormat1BoxedNumber, DateTimeFormat1BoxedString, DateTimeFormat1BoxedList, DateTimeFormat1BoxedMap { + @Nullable Object getData(); } - public static final class DateTimeFormat1BoxedVoid extends DateTimeFormat1Boxed { - public final Void data; - private DateTimeFormat1BoxedVoid(Void data) { - this.data = data; - } + public record DateTimeFormat1BoxedVoid(Void data) implements DateTimeFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DateTimeFormat1BoxedBoolean extends DateTimeFormat1Boxed { - public final boolean data; - private DateTimeFormat1BoxedBoolean(boolean data) { - this.data = data; - } + public record DateTimeFormat1BoxedBoolean(boolean data) implements DateTimeFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DateTimeFormat1BoxedNumber extends DateTimeFormat1Boxed { - public final Number data; - private DateTimeFormat1BoxedNumber(Number data) { - this.data = data; - } + public record DateTimeFormat1BoxedNumber(Number data) implements DateTimeFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DateTimeFormat1BoxedString extends DateTimeFormat1Boxed { - public final String data; - private DateTimeFormat1BoxedString(String data) { - this.data = data; - } + public record DateTimeFormat1BoxedString(String data) implements DateTimeFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DateTimeFormat1BoxedList extends DateTimeFormat1Boxed { - public final FrozenList<@Nullable Object> data; - private DateTimeFormat1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record DateTimeFormat1BoxedList(FrozenList<@Nullable Object> data) implements DateTimeFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DateTimeFormat1BoxedMap extends DateTimeFormat1Boxed { - public final FrozenMap<@Nullable Object> data; - private DateTimeFormat1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record DateTimeFormat1BoxedMap(FrozenMap<@Nullable Object> data) implements DateTimeFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class DateTimeFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, DateTimeFormat1BoxedList>, MapSchemaValidator, DateTimeFormat1BoxedMap> { + public static class DateTimeFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, DateTimeFormat1BoxedList>, MapSchemaValidator, DateTimeFormat1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public DateTimeFormat1BoxedList validateAndBox(List arg, SchemaConfiguration public DateTimeFormat1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DateTimeFormat1BoxedMap(validate(arg, configuration)); } + @Override + public DateTimeFormat1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DependentSchemasDependenciesWithEscapedCharacters.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DependentSchemasDependenciesWithEscapedCharacters.java index 9040bd8f581..ade713923cb 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DependentSchemasDependenciesWithEscapedCharacters.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DependentSchemasDependenciesWithEscapedCharacters.java @@ -37,78 +37,54 @@ public class DependentSchemasDependenciesWithEscapedCharacters { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class FootbarBoxed permits FootbarBoxedVoid, FootbarBoxedBoolean, FootbarBoxedNumber, FootbarBoxedString, FootbarBoxedList, FootbarBoxedMap { - public abstract @Nullable Object data(); + public sealed interface FootbarBoxed permits FootbarBoxedVoid, FootbarBoxedBoolean, FootbarBoxedNumber, FootbarBoxedString, FootbarBoxedList, FootbarBoxedMap { + @Nullable Object getData(); } - public static final class FootbarBoxedVoid extends FootbarBoxed { - public final Void data; - private FootbarBoxedVoid(Void data) { - this.data = data; - } + public record FootbarBoxedVoid(Void data) implements FootbarBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class FootbarBoxedBoolean extends FootbarBoxed { - public final boolean data; - private FootbarBoxedBoolean(boolean data) { - this.data = data; - } + public record FootbarBoxedBoolean(boolean data) implements FootbarBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class FootbarBoxedNumber extends FootbarBoxed { - public final Number data; - private FootbarBoxedNumber(Number data) { - this.data = data; - } + public record FootbarBoxedNumber(Number data) implements FootbarBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class FootbarBoxedString extends FootbarBoxed { - public final String data; - private FootbarBoxedString(String data) { - this.data = data; - } + public record FootbarBoxedString(String data) implements FootbarBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class FootbarBoxedList extends FootbarBoxed { - public final FrozenList<@Nullable Object> data; - private FootbarBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record FootbarBoxedList(FrozenList<@Nullable Object> data) implements FootbarBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class FootbarBoxedMap extends FootbarBoxed { - public final FrozenMap<@Nullable Object> data; - private FootbarBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record FootbarBoxedMap(FrozenMap<@Nullable Object> data) implements FootbarBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Footbar extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, FootbarBoxedList>, MapSchemaValidator, FootbarBoxedMap> { + public static class Footbar extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, FootbarBoxedList>, MapSchemaValidator, FootbarBoxedMap> { private static @Nullable Footbar instance = null; protected Footbar() { @@ -207,11 +183,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -242,11 +218,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -325,6 +301,25 @@ public FootbarBoxedList validateAndBox(List arg, SchemaConfiguration configur public FootbarBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new FootbarBoxedMap(validate(arg, configuration)); } + @Override + public FootbarBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class FoobarMap extends FrozenMap<@Nullable Object> { @@ -441,78 +436,54 @@ public FoobarMap0Builder getBuilderAfterFoobar1(Map in } - public static abstract sealed class FoobarBoxed permits FoobarBoxedVoid, FoobarBoxedBoolean, FoobarBoxedNumber, FoobarBoxedString, FoobarBoxedList, FoobarBoxedMap { - public abstract @Nullable Object data(); + public sealed interface FoobarBoxed permits FoobarBoxedVoid, FoobarBoxedBoolean, FoobarBoxedNumber, FoobarBoxedString, FoobarBoxedList, FoobarBoxedMap { + @Nullable Object getData(); } - public static final class FoobarBoxedVoid extends FoobarBoxed { - public final Void data; - private FoobarBoxedVoid(Void data) { - this.data = data; - } + public record FoobarBoxedVoid(Void data) implements FoobarBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class FoobarBoxedBoolean extends FoobarBoxed { - public final boolean data; - private FoobarBoxedBoolean(boolean data) { - this.data = data; - } + public record FoobarBoxedBoolean(boolean data) implements FoobarBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class FoobarBoxedNumber extends FoobarBoxed { - public final Number data; - private FoobarBoxedNumber(Number data) { - this.data = data; - } + public record FoobarBoxedNumber(Number data) implements FoobarBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class FoobarBoxedString extends FoobarBoxed { - public final String data; - private FoobarBoxedString(String data) { - this.data = data; - } + public record FoobarBoxedString(String data) implements FoobarBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class FoobarBoxedList extends FoobarBoxed { - public final FrozenList<@Nullable Object> data; - private FoobarBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record FoobarBoxedList(FrozenList<@Nullable Object> data) implements FoobarBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class FoobarBoxedMap extends FoobarBoxed { - public final FoobarMap data; - private FoobarBoxedMap(FoobarMap data) { - this.data = data; - } + public record FoobarBoxedMap(FoobarMap data) implements FoobarBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Foobar extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, FoobarBoxedList>, MapSchemaValidator { + public static class Foobar extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, FoobarBoxedList>, MapSchemaValidator { private static @Nullable Foobar instance = null; protected Foobar() { @@ -613,11 +584,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -648,11 +619,11 @@ public FoobarMap getNewInstance(Map arg, List pathToItem, PathToSc List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -731,80 +702,75 @@ public FoobarBoxedList validateAndBox(List arg, SchemaConfiguration configura public FoobarBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new FoobarBoxedMap(validate(arg, configuration)); } + @Override + public FoobarBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class DependentSchemasDependenciesWithEscapedCharacters1Boxed permits DependentSchemasDependenciesWithEscapedCharacters1BoxedVoid, DependentSchemasDependenciesWithEscapedCharacters1BoxedBoolean, DependentSchemasDependenciesWithEscapedCharacters1BoxedNumber, DependentSchemasDependenciesWithEscapedCharacters1BoxedString, DependentSchemasDependenciesWithEscapedCharacters1BoxedList, DependentSchemasDependenciesWithEscapedCharacters1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface DependentSchemasDependenciesWithEscapedCharacters1Boxed permits DependentSchemasDependenciesWithEscapedCharacters1BoxedVoid, DependentSchemasDependenciesWithEscapedCharacters1BoxedBoolean, DependentSchemasDependenciesWithEscapedCharacters1BoxedNumber, DependentSchemasDependenciesWithEscapedCharacters1BoxedString, DependentSchemasDependenciesWithEscapedCharacters1BoxedList, DependentSchemasDependenciesWithEscapedCharacters1BoxedMap { + @Nullable Object getData(); } - public static final class DependentSchemasDependenciesWithEscapedCharacters1BoxedVoid extends DependentSchemasDependenciesWithEscapedCharacters1Boxed { - public final Void data; - private DependentSchemasDependenciesWithEscapedCharacters1BoxedVoid(Void data) { - this.data = data; - } + public record DependentSchemasDependenciesWithEscapedCharacters1BoxedVoid(Void data) implements DependentSchemasDependenciesWithEscapedCharacters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DependentSchemasDependenciesWithEscapedCharacters1BoxedBoolean extends DependentSchemasDependenciesWithEscapedCharacters1Boxed { - public final boolean data; - private DependentSchemasDependenciesWithEscapedCharacters1BoxedBoolean(boolean data) { - this.data = data; - } + public record DependentSchemasDependenciesWithEscapedCharacters1BoxedBoolean(boolean data) implements DependentSchemasDependenciesWithEscapedCharacters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DependentSchemasDependenciesWithEscapedCharacters1BoxedNumber extends DependentSchemasDependenciesWithEscapedCharacters1Boxed { - public final Number data; - private DependentSchemasDependenciesWithEscapedCharacters1BoxedNumber(Number data) { - this.data = data; - } + public record DependentSchemasDependenciesWithEscapedCharacters1BoxedNumber(Number data) implements DependentSchemasDependenciesWithEscapedCharacters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DependentSchemasDependenciesWithEscapedCharacters1BoxedString extends DependentSchemasDependenciesWithEscapedCharacters1Boxed { - public final String data; - private DependentSchemasDependenciesWithEscapedCharacters1BoxedString(String data) { - this.data = data; - } + public record DependentSchemasDependenciesWithEscapedCharacters1BoxedString(String data) implements DependentSchemasDependenciesWithEscapedCharacters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DependentSchemasDependenciesWithEscapedCharacters1BoxedList extends DependentSchemasDependenciesWithEscapedCharacters1Boxed { - public final FrozenList<@Nullable Object> data; - private DependentSchemasDependenciesWithEscapedCharacters1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record DependentSchemasDependenciesWithEscapedCharacters1BoxedList(FrozenList<@Nullable Object> data) implements DependentSchemasDependenciesWithEscapedCharacters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DependentSchemasDependenciesWithEscapedCharacters1BoxedMap extends DependentSchemasDependenciesWithEscapedCharacters1Boxed { - public final FrozenMap<@Nullable Object> data; - private DependentSchemasDependenciesWithEscapedCharacters1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record DependentSchemasDependenciesWithEscapedCharacters1BoxedMap(FrozenMap<@Nullable Object> data) implements DependentSchemasDependenciesWithEscapedCharacters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class DependentSchemasDependenciesWithEscapedCharacters1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, DependentSchemasDependenciesWithEscapedCharacters1BoxedList>, MapSchemaValidator, DependentSchemasDependenciesWithEscapedCharacters1BoxedMap> { + public static class DependentSchemasDependenciesWithEscapedCharacters1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, DependentSchemasDependenciesWithEscapedCharacters1BoxedList>, MapSchemaValidator, DependentSchemasDependenciesWithEscapedCharacters1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -912,11 +878,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -947,11 +913,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1030,5 +996,24 @@ public DependentSchemasDependenciesWithEscapedCharacters1BoxedList validateAndBo public DependentSchemasDependenciesWithEscapedCharacters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DependentSchemasDependenciesWithEscapedCharacters1BoxedMap(validate(arg, configuration)); } + @Override + public DependentSchemasDependenciesWithEscapedCharacters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DependentSchemasDependentSubschemaIncompatibleWithRoot.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DependentSchemasDependentSubschemaIncompatibleWithRoot.java index b2af3070d01..83c040554bf 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DependentSchemasDependentSubschemaIncompatibleWithRoot.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DependentSchemasDependentSubschemaIncompatibleWithRoot.java @@ -162,23 +162,19 @@ public FooMapBuilder1 getBuilderAfterBar(Map instance) } - public static abstract sealed class Foo1Boxed permits Foo1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Foo1Boxed permits Foo1BoxedMap { + @Nullable Object getData(); } - public static final class Foo1BoxedMap extends Foo1Boxed { - public final FooMap data; - private Foo1BoxedMap(FooMap data) { - this.data = data; - } + public record Foo1BoxedMap(FooMap data) implements Foo1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Foo1 extends JsonSchema implements MapSchemaValidator { + public static class Foo1 extends JsonSchema implements MapSchemaValidator { private static @Nullable Foo1 instance = null; protected Foo1() { @@ -209,11 +205,11 @@ public FooMap getNewInstance(Map arg, List pathToItem, PathToSchem List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -250,6 +246,13 @@ public FooMap validate(Map arg, SchemaConfiguration configuration) throws public Foo1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Foo1BoxedMap(validate(arg, configuration)); } + @Override + public Foo1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } @@ -372,78 +375,54 @@ public DependentSchemasDependentSubschemaIncompatibleWithRootMapBuilder getBuild } - public static abstract sealed class DependentSchemasDependentSubschemaIncompatibleWithRoot1Boxed permits DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedVoid, DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedBoolean, DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedNumber, DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedString, DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedList, DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface DependentSchemasDependentSubschemaIncompatibleWithRoot1Boxed permits DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedVoid, DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedBoolean, DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedNumber, DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedString, DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedList, DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedMap { + @Nullable Object getData(); } - public static final class DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedVoid extends DependentSchemasDependentSubschemaIncompatibleWithRoot1Boxed { - public final Void data; - private DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedVoid(Void data) { - this.data = data; - } + public record DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedVoid(Void data) implements DependentSchemasDependentSubschemaIncompatibleWithRoot1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedBoolean extends DependentSchemasDependentSubschemaIncompatibleWithRoot1Boxed { - public final boolean data; - private DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedBoolean(boolean data) { - this.data = data; - } + public record DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedBoolean(boolean data) implements DependentSchemasDependentSubschemaIncompatibleWithRoot1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedNumber extends DependentSchemasDependentSubschemaIncompatibleWithRoot1Boxed { - public final Number data; - private DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedNumber(Number data) { - this.data = data; - } + public record DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedNumber(Number data) implements DependentSchemasDependentSubschemaIncompatibleWithRoot1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedString extends DependentSchemasDependentSubschemaIncompatibleWithRoot1Boxed { - public final String data; - private DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedString(String data) { - this.data = data; - } + public record DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedString(String data) implements DependentSchemasDependentSubschemaIncompatibleWithRoot1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedList extends DependentSchemasDependentSubschemaIncompatibleWithRoot1Boxed { - public final FrozenList<@Nullable Object> data; - private DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedList(FrozenList<@Nullable Object> data) implements DependentSchemasDependentSubschemaIncompatibleWithRoot1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedMap extends DependentSchemasDependentSubschemaIncompatibleWithRoot1Boxed { - public final DependentSchemasDependentSubschemaIncompatibleWithRootMap data; - private DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedMap(DependentSchemasDependentSubschemaIncompatibleWithRootMap data) { - this.data = data; - } + public record DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedMap(DependentSchemasDependentSubschemaIncompatibleWithRootMap data) implements DependentSchemasDependentSubschemaIncompatibleWithRoot1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class DependentSchemasDependentSubschemaIncompatibleWithRoot1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedList>, MapSchemaValidator { + public static class DependentSchemasDependentSubschemaIncompatibleWithRoot1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -553,11 +532,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -588,11 +567,11 @@ public DependentSchemasDependentSubschemaIncompatibleWithRootMap getNewInstance( List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -671,5 +650,24 @@ public DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedList validate public DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DependentSchemasDependentSubschemaIncompatibleWithRoot1BoxedMap(validate(arg, configuration)); } + @Override + public DependentSchemasDependentSubschemaIncompatibleWithRoot1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DependentSchemasSingleDependency.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DependentSchemasSingleDependency.java index 2456e34ff54..8ba4171811e 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DependentSchemasSingleDependency.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DependentSchemasSingleDependency.java @@ -188,78 +188,54 @@ public BarMapBuilder1 getBuilderAfterAdditionalProperty(Map data; - private BarBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record BarBoxedList(FrozenList<@Nullable Object> data) implements BarBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class BarBoxedMap extends BarBoxed { - public final BarMap data; - private BarBoxedMap(BarMap data) { - this.data = data; - } + public record BarBoxedMap(BarMap data) implements BarBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Bar extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, BarBoxedList>, MapSchemaValidator { + public static class Bar extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, BarBoxedList>, MapSchemaValidator { private static @Nullable Bar instance = null; protected Bar() { @@ -361,11 +337,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -396,11 +372,11 @@ public BarMap getNewInstance(Map arg, List pathToItem, PathToSchem List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -479,80 +455,75 @@ public BarBoxedList validateAndBox(List arg, SchemaConfiguration configuratio public BarBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new BarBoxedMap(validate(arg, configuration)); } + @Override + public BarBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class DependentSchemasSingleDependency1Boxed permits DependentSchemasSingleDependency1BoxedVoid, DependentSchemasSingleDependency1BoxedBoolean, DependentSchemasSingleDependency1BoxedNumber, DependentSchemasSingleDependency1BoxedString, DependentSchemasSingleDependency1BoxedList, DependentSchemasSingleDependency1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface DependentSchemasSingleDependency1Boxed permits DependentSchemasSingleDependency1BoxedVoid, DependentSchemasSingleDependency1BoxedBoolean, DependentSchemasSingleDependency1BoxedNumber, DependentSchemasSingleDependency1BoxedString, DependentSchemasSingleDependency1BoxedList, DependentSchemasSingleDependency1BoxedMap { + @Nullable Object getData(); } - public static final class DependentSchemasSingleDependency1BoxedVoid extends DependentSchemasSingleDependency1Boxed { - public final Void data; - private DependentSchemasSingleDependency1BoxedVoid(Void data) { - this.data = data; - } + public record DependentSchemasSingleDependency1BoxedVoid(Void data) implements DependentSchemasSingleDependency1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DependentSchemasSingleDependency1BoxedBoolean extends DependentSchemasSingleDependency1Boxed { - public final boolean data; - private DependentSchemasSingleDependency1BoxedBoolean(boolean data) { - this.data = data; - } + public record DependentSchemasSingleDependency1BoxedBoolean(boolean data) implements DependentSchemasSingleDependency1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DependentSchemasSingleDependency1BoxedNumber extends DependentSchemasSingleDependency1Boxed { - public final Number data; - private DependentSchemasSingleDependency1BoxedNumber(Number data) { - this.data = data; - } + public record DependentSchemasSingleDependency1BoxedNumber(Number data) implements DependentSchemasSingleDependency1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DependentSchemasSingleDependency1BoxedString extends DependentSchemasSingleDependency1Boxed { - public final String data; - private DependentSchemasSingleDependency1BoxedString(String data) { - this.data = data; - } + public record DependentSchemasSingleDependency1BoxedString(String data) implements DependentSchemasSingleDependency1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DependentSchemasSingleDependency1BoxedList extends DependentSchemasSingleDependency1Boxed { - public final FrozenList<@Nullable Object> data; - private DependentSchemasSingleDependency1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record DependentSchemasSingleDependency1BoxedList(FrozenList<@Nullable Object> data) implements DependentSchemasSingleDependency1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DependentSchemasSingleDependency1BoxedMap extends DependentSchemasSingleDependency1Boxed { - public final FrozenMap<@Nullable Object> data; - private DependentSchemasSingleDependency1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record DependentSchemasSingleDependency1BoxedMap(FrozenMap<@Nullable Object> data) implements DependentSchemasSingleDependency1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class DependentSchemasSingleDependency1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, DependentSchemasSingleDependency1BoxedList>, MapSchemaValidator, DependentSchemasSingleDependency1BoxedMap> { + public static class DependentSchemasSingleDependency1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, DependentSchemasSingleDependency1BoxedList>, MapSchemaValidator, DependentSchemasSingleDependency1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -659,11 +630,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -694,11 +665,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -777,5 +748,24 @@ public DependentSchemasSingleDependency1BoxedList validateAndBox(List arg, Sc public DependentSchemasSingleDependency1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DependentSchemasSingleDependency1BoxedMap(validate(arg, configuration)); } + @Override + public DependentSchemasSingleDependency1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DurationFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DurationFormat.java index 79247c5b0c7..6cbb99d9a8c 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DurationFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DurationFormat.java @@ -35,78 +35,54 @@ public class DurationFormat { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class DurationFormat1Boxed permits DurationFormat1BoxedVoid, DurationFormat1BoxedBoolean, DurationFormat1BoxedNumber, DurationFormat1BoxedString, DurationFormat1BoxedList, DurationFormat1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface DurationFormat1Boxed permits DurationFormat1BoxedVoid, DurationFormat1BoxedBoolean, DurationFormat1BoxedNumber, DurationFormat1BoxedString, DurationFormat1BoxedList, DurationFormat1BoxedMap { + @Nullable Object getData(); } - public static final class DurationFormat1BoxedVoid extends DurationFormat1Boxed { - public final Void data; - private DurationFormat1BoxedVoid(Void data) { - this.data = data; - } + public record DurationFormat1BoxedVoid(Void data) implements DurationFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DurationFormat1BoxedBoolean extends DurationFormat1Boxed { - public final boolean data; - private DurationFormat1BoxedBoolean(boolean data) { - this.data = data; - } + public record DurationFormat1BoxedBoolean(boolean data) implements DurationFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DurationFormat1BoxedNumber extends DurationFormat1Boxed { - public final Number data; - private DurationFormat1BoxedNumber(Number data) { - this.data = data; - } + public record DurationFormat1BoxedNumber(Number data) implements DurationFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DurationFormat1BoxedString extends DurationFormat1Boxed { - public final String data; - private DurationFormat1BoxedString(String data) { - this.data = data; - } + public record DurationFormat1BoxedString(String data) implements DurationFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DurationFormat1BoxedList extends DurationFormat1Boxed { - public final FrozenList<@Nullable Object> data; - private DurationFormat1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record DurationFormat1BoxedList(FrozenList<@Nullable Object> data) implements DurationFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class DurationFormat1BoxedMap extends DurationFormat1Boxed { - public final FrozenMap<@Nullable Object> data; - private DurationFormat1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record DurationFormat1BoxedMap(FrozenMap<@Nullable Object> data) implements DurationFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class DurationFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, DurationFormat1BoxedList>, MapSchemaValidator, DurationFormat1BoxedMap> { + public static class DurationFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, DurationFormat1BoxedList>, MapSchemaValidator, DurationFormat1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public DurationFormat1BoxedList validateAndBox(List arg, SchemaConfiguration public DurationFormat1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DurationFormat1BoxedMap(validate(arg, configuration)); } + @Override + public DurationFormat1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EmailFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EmailFormat.java index c2b5bddb5d4..97090800803 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EmailFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EmailFormat.java @@ -35,78 +35,54 @@ public class EmailFormat { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class EmailFormat1Boxed permits EmailFormat1BoxedVoid, EmailFormat1BoxedBoolean, EmailFormat1BoxedNumber, EmailFormat1BoxedString, EmailFormat1BoxedList, EmailFormat1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface EmailFormat1Boxed permits EmailFormat1BoxedVoid, EmailFormat1BoxedBoolean, EmailFormat1BoxedNumber, EmailFormat1BoxedString, EmailFormat1BoxedList, EmailFormat1BoxedMap { + @Nullable Object getData(); } - public static final class EmailFormat1BoxedVoid extends EmailFormat1Boxed { - public final Void data; - private EmailFormat1BoxedVoid(Void data) { - this.data = data; - } + public record EmailFormat1BoxedVoid(Void data) implements EmailFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class EmailFormat1BoxedBoolean extends EmailFormat1Boxed { - public final boolean data; - private EmailFormat1BoxedBoolean(boolean data) { - this.data = data; - } + public record EmailFormat1BoxedBoolean(boolean data) implements EmailFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class EmailFormat1BoxedNumber extends EmailFormat1Boxed { - public final Number data; - private EmailFormat1BoxedNumber(Number data) { - this.data = data; - } + public record EmailFormat1BoxedNumber(Number data) implements EmailFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class EmailFormat1BoxedString extends EmailFormat1Boxed { - public final String data; - private EmailFormat1BoxedString(String data) { - this.data = data; - } + public record EmailFormat1BoxedString(String data) implements EmailFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class EmailFormat1BoxedList extends EmailFormat1Boxed { - public final FrozenList<@Nullable Object> data; - private EmailFormat1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record EmailFormat1BoxedList(FrozenList<@Nullable Object> data) implements EmailFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class EmailFormat1BoxedMap extends EmailFormat1Boxed { - public final FrozenMap<@Nullable Object> data; - private EmailFormat1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record EmailFormat1BoxedMap(FrozenMap<@Nullable Object> data) implements EmailFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class EmailFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, EmailFormat1BoxedList>, MapSchemaValidator, EmailFormat1BoxedMap> { + public static class EmailFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, EmailFormat1BoxedList>, MapSchemaValidator, EmailFormat1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public EmailFormat1BoxedList validateAndBox(List arg, SchemaConfiguration con public EmailFormat1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new EmailFormat1BoxedMap(validate(arg, configuration)); } + @Override + public EmailFormat1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EmptyDependents.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EmptyDependents.java index efebb02cd78..8ab187d5d7d 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EmptyDependents.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EmptyDependents.java @@ -38,78 +38,54 @@ public class EmptyDependents { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class EmptyDependents1Boxed permits EmptyDependents1BoxedVoid, EmptyDependents1BoxedBoolean, EmptyDependents1BoxedNumber, EmptyDependents1BoxedString, EmptyDependents1BoxedList, EmptyDependents1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface EmptyDependents1Boxed permits EmptyDependents1BoxedVoid, EmptyDependents1BoxedBoolean, EmptyDependents1BoxedNumber, EmptyDependents1BoxedString, EmptyDependents1BoxedList, EmptyDependents1BoxedMap { + @Nullable Object getData(); } - public static final class EmptyDependents1BoxedVoid extends EmptyDependents1Boxed { - public final Void data; - private EmptyDependents1BoxedVoid(Void data) { - this.data = data; - } + public record EmptyDependents1BoxedVoid(Void data) implements EmptyDependents1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class EmptyDependents1BoxedBoolean extends EmptyDependents1Boxed { - public final boolean data; - private EmptyDependents1BoxedBoolean(boolean data) { - this.data = data; - } + public record EmptyDependents1BoxedBoolean(boolean data) implements EmptyDependents1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class EmptyDependents1BoxedNumber extends EmptyDependents1Boxed { - public final Number data; - private EmptyDependents1BoxedNumber(Number data) { - this.data = data; - } + public record EmptyDependents1BoxedNumber(Number data) implements EmptyDependents1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class EmptyDependents1BoxedString extends EmptyDependents1Boxed { - public final String data; - private EmptyDependents1BoxedString(String data) { - this.data = data; - } + public record EmptyDependents1BoxedString(String data) implements EmptyDependents1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class EmptyDependents1BoxedList extends EmptyDependents1Boxed { - public final FrozenList<@Nullable Object> data; - private EmptyDependents1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record EmptyDependents1BoxedList(FrozenList<@Nullable Object> data) implements EmptyDependents1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class EmptyDependents1BoxedMap extends EmptyDependents1Boxed { - public final FrozenMap<@Nullable Object> data; - private EmptyDependents1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record EmptyDependents1BoxedMap(FrozenMap<@Nullable Object> data) implements EmptyDependents1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class EmptyDependents1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, EmptyDependents1BoxedList>, MapSchemaValidator, EmptyDependents1BoxedMap> { + public static class EmptyDependents1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, EmptyDependents1BoxedList>, MapSchemaValidator, EmptyDependents1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -220,11 +196,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -255,11 +231,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -338,5 +314,24 @@ public EmptyDependents1BoxedList validateAndBox(List arg, SchemaConfiguration public EmptyDependents1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new EmptyDependents1BoxedMap(validate(arg, configuration)); } + @Override + public EmptyDependents1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWith0DoesNotMatchFalse.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWith0DoesNotMatchFalse.java index 4038bd2e7ed..925c8e678d9 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWith0DoesNotMatchFalse.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWith0DoesNotMatchFalse.java @@ -77,24 +77,20 @@ public double value() { } - public static abstract sealed class EnumWith0DoesNotMatchFalse1Boxed permits EnumWith0DoesNotMatchFalse1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface EnumWith0DoesNotMatchFalse1Boxed permits EnumWith0DoesNotMatchFalse1BoxedNumber { + @Nullable Object getData(); } - public static final class EnumWith0DoesNotMatchFalse1BoxedNumber extends EnumWith0DoesNotMatchFalse1Boxed { - public final Number data; - private EnumWith0DoesNotMatchFalse1BoxedNumber(Number data) { - this.data = data; - } + public record EnumWith0DoesNotMatchFalse1BoxedNumber(Number data) implements EnumWith0DoesNotMatchFalse1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class EnumWith0DoesNotMatchFalse1 extends JsonSchema implements IntegerEnumValidator, LongEnumValidator, FloatEnumValidator, DoubleEnumValidator, NumberSchemaValidator { + public static class EnumWith0DoesNotMatchFalse1 extends JsonSchema implements IntegerEnumValidator, LongEnumValidator, FloatEnumValidator, DoubleEnumValidator, NumberSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -189,5 +185,12 @@ public double validate(DoubleEnumWith0DoesNotMatchFalseEnums arg,SchemaConfigura public EnumWith0DoesNotMatchFalse1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new EnumWith0DoesNotMatchFalse1BoxedNumber(validate(arg, configuration)); } + @Override + public EnumWith0DoesNotMatchFalse1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWith1DoesNotMatchTrue.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWith1DoesNotMatchTrue.java index caa23849d46..3fc1f77d7d0 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWith1DoesNotMatchTrue.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWith1DoesNotMatchTrue.java @@ -77,24 +77,20 @@ public double value() { } - public static abstract sealed class EnumWith1DoesNotMatchTrue1Boxed permits EnumWith1DoesNotMatchTrue1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface EnumWith1DoesNotMatchTrue1Boxed permits EnumWith1DoesNotMatchTrue1BoxedNumber { + @Nullable Object getData(); } - public static final class EnumWith1DoesNotMatchTrue1BoxedNumber extends EnumWith1DoesNotMatchTrue1Boxed { - public final Number data; - private EnumWith1DoesNotMatchTrue1BoxedNumber(Number data) { - this.data = data; - } + public record EnumWith1DoesNotMatchTrue1BoxedNumber(Number data) implements EnumWith1DoesNotMatchTrue1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class EnumWith1DoesNotMatchTrue1 extends JsonSchema implements IntegerEnumValidator, LongEnumValidator, FloatEnumValidator, DoubleEnumValidator, NumberSchemaValidator { + public static class EnumWith1DoesNotMatchTrue1 extends JsonSchema implements IntegerEnumValidator, LongEnumValidator, FloatEnumValidator, DoubleEnumValidator, NumberSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -189,5 +185,12 @@ public double validate(DoubleEnumWith1DoesNotMatchTrueEnums arg,SchemaConfigurat public EnumWith1DoesNotMatchTrue1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new EnumWith1DoesNotMatchTrue1BoxedNumber(validate(arg, configuration)); } + @Override + public EnumWith1DoesNotMatchTrue1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithEscapedCharacters.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithEscapedCharacters.java index f10f7b3118b..d5dab170d98 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithEscapedCharacters.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithEscapedCharacters.java @@ -35,24 +35,20 @@ public String value() { } - public static abstract sealed class EnumWithEscapedCharacters1Boxed permits EnumWithEscapedCharacters1BoxedString { - public abstract @Nullable Object data(); + public sealed interface EnumWithEscapedCharacters1Boxed permits EnumWithEscapedCharacters1BoxedString { + @Nullable Object getData(); } - public static final class EnumWithEscapedCharacters1BoxedString extends EnumWithEscapedCharacters1Boxed { - public final String data; - private EnumWithEscapedCharacters1BoxedString(String data) { - this.data = data; - } + public record EnumWithEscapedCharacters1BoxedString(String data) implements EnumWithEscapedCharacters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class EnumWithEscapedCharacters1 extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class EnumWithEscapedCharacters1 extends JsonSchema implements StringSchemaValidator, StringEnumValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -114,5 +110,12 @@ public String validate(StringEnumWithEscapedCharactersEnums arg,SchemaConfigurat public EnumWithEscapedCharacters1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new EnumWithEscapedCharacters1BoxedString(validate(arg, configuration)); } + @Override + public EnumWithEscapedCharacters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithFalseDoesNotMatch0.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithFalseDoesNotMatch0.java index 2562191b685..bfc0223b2f7 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithFalseDoesNotMatch0.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithFalseDoesNotMatch0.java @@ -34,24 +34,20 @@ public boolean value() { } - public static abstract sealed class EnumWithFalseDoesNotMatch01Boxed permits EnumWithFalseDoesNotMatch01BoxedBoolean { - public abstract @Nullable Object data(); + public sealed interface EnumWithFalseDoesNotMatch01Boxed permits EnumWithFalseDoesNotMatch01BoxedBoolean { + @Nullable Object getData(); } - public static final class EnumWithFalseDoesNotMatch01BoxedBoolean extends EnumWithFalseDoesNotMatch01Boxed { - public final boolean data; - private EnumWithFalseDoesNotMatch01BoxedBoolean(boolean data) { - this.data = data; - } + public record EnumWithFalseDoesNotMatch01BoxedBoolean(boolean data) implements EnumWithFalseDoesNotMatch01Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class EnumWithFalseDoesNotMatch01 extends JsonSchema implements BooleanSchemaValidator, BooleanEnumValidator { + public static class EnumWithFalseDoesNotMatch01 extends JsonSchema implements BooleanSchemaValidator, BooleanEnumValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -112,5 +108,13 @@ public boolean validate(BooleanEnumWithFalseDoesNotMatch0Enums arg,SchemaConfigu public EnumWithFalseDoesNotMatch01BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new EnumWithFalseDoesNotMatch01BoxedBoolean(validate(arg, configuration)); } + @Override + public EnumWithFalseDoesNotMatch01Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithTrueDoesNotMatch1.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithTrueDoesNotMatch1.java index 1f5b945b758..4581de4b395 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithTrueDoesNotMatch1.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithTrueDoesNotMatch1.java @@ -34,24 +34,20 @@ public boolean value() { } - public static abstract sealed class EnumWithTrueDoesNotMatch11Boxed permits EnumWithTrueDoesNotMatch11BoxedBoolean { - public abstract @Nullable Object data(); + public sealed interface EnumWithTrueDoesNotMatch11Boxed permits EnumWithTrueDoesNotMatch11BoxedBoolean { + @Nullable Object getData(); } - public static final class EnumWithTrueDoesNotMatch11BoxedBoolean extends EnumWithTrueDoesNotMatch11Boxed { - public final boolean data; - private EnumWithTrueDoesNotMatch11BoxedBoolean(boolean data) { - this.data = data; - } + public record EnumWithTrueDoesNotMatch11BoxedBoolean(boolean data) implements EnumWithTrueDoesNotMatch11Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class EnumWithTrueDoesNotMatch11 extends JsonSchema implements BooleanSchemaValidator, BooleanEnumValidator { + public static class EnumWithTrueDoesNotMatch11 extends JsonSchema implements BooleanSchemaValidator, BooleanEnumValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -112,5 +108,13 @@ public boolean validate(BooleanEnumWithTrueDoesNotMatch1Enums arg,SchemaConfigur public EnumWithTrueDoesNotMatch11BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new EnumWithTrueDoesNotMatch11BoxedBoolean(validate(arg, configuration)); } + @Override + public EnumWithTrueDoesNotMatch11Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumsInProperties.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumsInProperties.java index a34b3eb5bd4..3822c82493e 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumsInProperties.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumsInProperties.java @@ -44,24 +44,20 @@ public String value() { } - public static abstract sealed class FooBoxed permits FooBoxedString { - public abstract @Nullable Object data(); + public sealed interface FooBoxed permits FooBoxedString { + @Nullable Object getData(); } - public static final class FooBoxedString extends FooBoxed { - public final String data; - private FooBoxedString(String data) { - this.data = data; - } + public record FooBoxedString(String data) implements FooBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Foo extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class Foo extends JsonSchema implements StringSchemaValidator, StringEnumValidator { private static @Nullable Foo instance = null; protected Foo() { @@ -116,6 +112,13 @@ public String validate(StringFooEnums arg,SchemaConfiguration configuration) thr public FooBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new FooBoxedString(validate(arg, configuration)); } + @Override + public FooBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public enum StringBarEnums implements StringValueMethod { BAR("bar"); @@ -130,24 +133,20 @@ public String value() { } - public static abstract sealed class BarBoxed permits BarBoxedString { - public abstract @Nullable Object data(); + public sealed interface BarBoxed permits BarBoxedString { + @Nullable Object getData(); } - public static final class BarBoxedString extends BarBoxed { - public final String data; - private BarBoxedString(String data) { - this.data = data; - } + public record BarBoxedString(String data) implements BarBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Bar extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class Bar extends JsonSchema implements StringSchemaValidator, StringEnumValidator { private static @Nullable Bar instance = null; protected Bar() { @@ -202,6 +201,13 @@ public String validate(StringBarEnums arg,SchemaConfiguration configuration) thr public BarBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new BarBoxedString(validate(arg, configuration)); } + @Override + public BarBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class EnumsInPropertiesMap extends FrozenMap<@Nullable Object> { @@ -317,23 +323,19 @@ public EnumsInPropertiesMap0Builder getBuilderAfterBar(Map { + public static class EnumsInProperties1 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 @@ -373,11 +375,11 @@ public EnumsInPropertiesMap getNewInstance(Map arg, List pathToIte List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -414,6 +416,13 @@ public EnumsInPropertiesMap validate(Map arg, SchemaConfiguration configur public EnumsInProperties1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new EnumsInProperties1BoxedMap(validate(arg, configuration)); } + @Override + public EnumsInProperties1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ExclusivemaximumValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ExclusivemaximumValidation.java index 19c7a72b11f..d4454126242 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ExclusivemaximumValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ExclusivemaximumValidation.java @@ -35,78 +35,54 @@ public class ExclusivemaximumValidation { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class ExclusivemaximumValidation1Boxed permits ExclusivemaximumValidation1BoxedVoid, ExclusivemaximumValidation1BoxedBoolean, ExclusivemaximumValidation1BoxedNumber, ExclusivemaximumValidation1BoxedString, ExclusivemaximumValidation1BoxedList, ExclusivemaximumValidation1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface ExclusivemaximumValidation1Boxed permits ExclusivemaximumValidation1BoxedVoid, ExclusivemaximumValidation1BoxedBoolean, ExclusivemaximumValidation1BoxedNumber, ExclusivemaximumValidation1BoxedString, ExclusivemaximumValidation1BoxedList, ExclusivemaximumValidation1BoxedMap { + @Nullable Object getData(); } - public static final class ExclusivemaximumValidation1BoxedVoid extends ExclusivemaximumValidation1Boxed { - public final Void data; - private ExclusivemaximumValidation1BoxedVoid(Void data) { - this.data = data; - } + public record ExclusivemaximumValidation1BoxedVoid(Void data) implements ExclusivemaximumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ExclusivemaximumValidation1BoxedBoolean extends ExclusivemaximumValidation1Boxed { - public final boolean data; - private ExclusivemaximumValidation1BoxedBoolean(boolean data) { - this.data = data; - } + public record ExclusivemaximumValidation1BoxedBoolean(boolean data) implements ExclusivemaximumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ExclusivemaximumValidation1BoxedNumber extends ExclusivemaximumValidation1Boxed { - public final Number data; - private ExclusivemaximumValidation1BoxedNumber(Number data) { - this.data = data; - } + public record ExclusivemaximumValidation1BoxedNumber(Number data) implements ExclusivemaximumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ExclusivemaximumValidation1BoxedString extends ExclusivemaximumValidation1Boxed { - public final String data; - private ExclusivemaximumValidation1BoxedString(String data) { - this.data = data; - } + public record ExclusivemaximumValidation1BoxedString(String data) implements ExclusivemaximumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ExclusivemaximumValidation1BoxedList extends ExclusivemaximumValidation1Boxed { - public final FrozenList<@Nullable Object> data; - private ExclusivemaximumValidation1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ExclusivemaximumValidation1BoxedList(FrozenList<@Nullable Object> data) implements ExclusivemaximumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ExclusivemaximumValidation1BoxedMap extends ExclusivemaximumValidation1Boxed { - public final FrozenMap<@Nullable Object> data; - private ExclusivemaximumValidation1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ExclusivemaximumValidation1BoxedMap(FrozenMap<@Nullable Object> data) implements ExclusivemaximumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class ExclusivemaximumValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ExclusivemaximumValidation1BoxedList>, MapSchemaValidator, ExclusivemaximumValidation1BoxedMap> { + public static class ExclusivemaximumValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ExclusivemaximumValidation1BoxedList>, MapSchemaValidator, ExclusivemaximumValidation1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public ExclusivemaximumValidation1BoxedList validateAndBox(List arg, SchemaCo public ExclusivemaximumValidation1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ExclusivemaximumValidation1BoxedMap(validate(arg, configuration)); } + @Override + public ExclusivemaximumValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ExclusiveminimumValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ExclusiveminimumValidation.java index 6d4e3c2d69d..1da2ea949b2 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ExclusiveminimumValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ExclusiveminimumValidation.java @@ -35,78 +35,54 @@ public class ExclusiveminimumValidation { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class ExclusiveminimumValidation1Boxed permits ExclusiveminimumValidation1BoxedVoid, ExclusiveminimumValidation1BoxedBoolean, ExclusiveminimumValidation1BoxedNumber, ExclusiveminimumValidation1BoxedString, ExclusiveminimumValidation1BoxedList, ExclusiveminimumValidation1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface ExclusiveminimumValidation1Boxed permits ExclusiveminimumValidation1BoxedVoid, ExclusiveminimumValidation1BoxedBoolean, ExclusiveminimumValidation1BoxedNumber, ExclusiveminimumValidation1BoxedString, ExclusiveminimumValidation1BoxedList, ExclusiveminimumValidation1BoxedMap { + @Nullable Object getData(); } - public static final class ExclusiveminimumValidation1BoxedVoid extends ExclusiveminimumValidation1Boxed { - public final Void data; - private ExclusiveminimumValidation1BoxedVoid(Void data) { - this.data = data; - } + public record ExclusiveminimumValidation1BoxedVoid(Void data) implements ExclusiveminimumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ExclusiveminimumValidation1BoxedBoolean extends ExclusiveminimumValidation1Boxed { - public final boolean data; - private ExclusiveminimumValidation1BoxedBoolean(boolean data) { - this.data = data; - } + public record ExclusiveminimumValidation1BoxedBoolean(boolean data) implements ExclusiveminimumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ExclusiveminimumValidation1BoxedNumber extends ExclusiveminimumValidation1Boxed { - public final Number data; - private ExclusiveminimumValidation1BoxedNumber(Number data) { - this.data = data; - } + public record ExclusiveminimumValidation1BoxedNumber(Number data) implements ExclusiveminimumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ExclusiveminimumValidation1BoxedString extends ExclusiveminimumValidation1Boxed { - public final String data; - private ExclusiveminimumValidation1BoxedString(String data) { - this.data = data; - } + public record ExclusiveminimumValidation1BoxedString(String data) implements ExclusiveminimumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ExclusiveminimumValidation1BoxedList extends ExclusiveminimumValidation1Boxed { - public final FrozenList<@Nullable Object> data; - private ExclusiveminimumValidation1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ExclusiveminimumValidation1BoxedList(FrozenList<@Nullable Object> data) implements ExclusiveminimumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ExclusiveminimumValidation1BoxedMap extends ExclusiveminimumValidation1Boxed { - public final FrozenMap<@Nullable Object> data; - private ExclusiveminimumValidation1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ExclusiveminimumValidation1BoxedMap(FrozenMap<@Nullable Object> data) implements ExclusiveminimumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class ExclusiveminimumValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ExclusiveminimumValidation1BoxedList>, MapSchemaValidator, ExclusiveminimumValidation1BoxedMap> { + public static class ExclusiveminimumValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ExclusiveminimumValidation1BoxedList>, MapSchemaValidator, ExclusiveminimumValidation1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public ExclusiveminimumValidation1BoxedList validateAndBox(List arg, SchemaCo public ExclusiveminimumValidation1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ExclusiveminimumValidation1BoxedMap(validate(arg, configuration)); } + @Override + public ExclusiveminimumValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/FloatDivisionInf.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/FloatDivisionInf.java index e47d9a9d507..5b46639e358 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/FloatDivisionInf.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/FloatDivisionInf.java @@ -20,24 +20,20 @@ public class FloatDivisionInf { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class FloatDivisionInf1Boxed permits FloatDivisionInf1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface FloatDivisionInf1Boxed permits FloatDivisionInf1BoxedNumber { + @Nullable Object getData(); } - public static final class FloatDivisionInf1BoxedNumber extends FloatDivisionInf1Boxed { - public final Number data; - private FloatDivisionInf1BoxedNumber(Number data) { - this.data = data; - } + public record FloatDivisionInf1BoxedNumber(Number data) implements FloatDivisionInf1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class FloatDivisionInf1 extends JsonSchema implements NumberSchemaValidator { + public static class FloatDivisionInf1 extends JsonSchema implements NumberSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -111,5 +107,12 @@ public double validate(double arg, SchemaConfiguration configuration) throws Val public FloatDivisionInf1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new FloatDivisionInf1BoxedNumber(validate(arg, configuration)); } + @Override + public FloatDivisionInf1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ForbiddenProperty.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ForbiddenProperty.java index fe290cc3b81..203112478de 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ForbiddenProperty.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ForbiddenProperty.java @@ -49,78 +49,54 @@ public static Not getInstance() { } - public static abstract sealed class FooBoxed permits FooBoxedVoid, FooBoxedBoolean, FooBoxedNumber, FooBoxedString, FooBoxedList, FooBoxedMap { - public abstract @Nullable Object data(); + public sealed interface FooBoxed permits FooBoxedVoid, FooBoxedBoolean, FooBoxedNumber, FooBoxedString, FooBoxedList, FooBoxedMap { + @Nullable Object getData(); } - public static final class FooBoxedVoid extends FooBoxed { - public final Void data; - private FooBoxedVoid(Void data) { - this.data = data; - } + public record FooBoxedVoid(Void data) implements FooBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class FooBoxedBoolean extends FooBoxed { - public final boolean data; - private FooBoxedBoolean(boolean data) { - this.data = data; - } + public record FooBoxedBoolean(boolean data) implements FooBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class FooBoxedNumber extends FooBoxed { - public final Number data; - private FooBoxedNumber(Number data) { - this.data = data; - } + public record FooBoxedNumber(Number data) implements FooBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class FooBoxedString extends FooBoxed { - public final String data; - private FooBoxedString(String data) { - this.data = data; - } + public record FooBoxedString(String data) implements FooBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class FooBoxedList extends FooBoxed { - public final FrozenList<@Nullable Object> data; - private FooBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record FooBoxedList(FrozenList<@Nullable Object> data) implements FooBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class FooBoxedMap extends FooBoxed { - public final FrozenMap<@Nullable Object> data; - private FooBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record FooBoxedMap(FrozenMap<@Nullable Object> data) implements FooBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Foo extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, FooBoxedList>, MapSchemaValidator, FooBoxedMap> { + public static class Foo extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, FooBoxedList>, MapSchemaValidator, FooBoxedMap> { private static @Nullable Foo instance = null; protected Foo() { @@ -219,11 +195,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -254,11 +230,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -337,6 +313,25 @@ public FooBoxedList validateAndBox(List arg, SchemaConfiguration configuratio public FooBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new FooBoxedMap(validate(arg, configuration)); } + @Override + public FooBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class ForbiddenPropertyMap extends FrozenMap<@Nullable Object> { @@ -447,78 +442,54 @@ public ForbiddenPropertyMapBuilder getBuilderAfterAdditionalProperty(Map data; - private ForbiddenProperty1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ForbiddenProperty1BoxedList(FrozenList<@Nullable Object> data) implements ForbiddenProperty1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ForbiddenProperty1BoxedMap extends ForbiddenProperty1Boxed { - public final ForbiddenPropertyMap data; - private ForbiddenProperty1BoxedMap(ForbiddenPropertyMap data) { - this.data = data; - } + public record ForbiddenProperty1BoxedMap(ForbiddenPropertyMap data) implements ForbiddenProperty1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class ForbiddenProperty1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ForbiddenProperty1BoxedList>, MapSchemaValidator { + public static class ForbiddenProperty1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ForbiddenProperty1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -625,11 +596,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -660,11 +631,11 @@ public ForbiddenPropertyMap getNewInstance(Map arg, List pathToIte List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -743,5 +714,24 @@ public ForbiddenProperty1BoxedList validateAndBox(List arg, SchemaConfigurati public ForbiddenProperty1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ForbiddenProperty1BoxedMap(validate(arg, configuration)); } + @Override + public ForbiddenProperty1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/HostnameFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/HostnameFormat.java index 6ec1cc93896..da84ef4c6ed 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/HostnameFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/HostnameFormat.java @@ -35,78 +35,54 @@ public class HostnameFormat { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class HostnameFormat1Boxed permits HostnameFormat1BoxedVoid, HostnameFormat1BoxedBoolean, HostnameFormat1BoxedNumber, HostnameFormat1BoxedString, HostnameFormat1BoxedList, HostnameFormat1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface HostnameFormat1Boxed permits HostnameFormat1BoxedVoid, HostnameFormat1BoxedBoolean, HostnameFormat1BoxedNumber, HostnameFormat1BoxedString, HostnameFormat1BoxedList, HostnameFormat1BoxedMap { + @Nullable Object getData(); } - public static final class HostnameFormat1BoxedVoid extends HostnameFormat1Boxed { - public final Void data; - private HostnameFormat1BoxedVoid(Void data) { - this.data = data; - } + public record HostnameFormat1BoxedVoid(Void data) implements HostnameFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class HostnameFormat1BoxedBoolean extends HostnameFormat1Boxed { - public final boolean data; - private HostnameFormat1BoxedBoolean(boolean data) { - this.data = data; - } + public record HostnameFormat1BoxedBoolean(boolean data) implements HostnameFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class HostnameFormat1BoxedNumber extends HostnameFormat1Boxed { - public final Number data; - private HostnameFormat1BoxedNumber(Number data) { - this.data = data; - } + public record HostnameFormat1BoxedNumber(Number data) implements HostnameFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class HostnameFormat1BoxedString extends HostnameFormat1Boxed { - public final String data; - private HostnameFormat1BoxedString(String data) { - this.data = data; - } + public record HostnameFormat1BoxedString(String data) implements HostnameFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class HostnameFormat1BoxedList extends HostnameFormat1Boxed { - public final FrozenList<@Nullable Object> data; - private HostnameFormat1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record HostnameFormat1BoxedList(FrozenList<@Nullable Object> data) implements HostnameFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class HostnameFormat1BoxedMap extends HostnameFormat1Boxed { - public final FrozenMap<@Nullable Object> data; - private HostnameFormat1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record HostnameFormat1BoxedMap(FrozenMap<@Nullable Object> data) implements HostnameFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class HostnameFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, HostnameFormat1BoxedList>, MapSchemaValidator, HostnameFormat1BoxedMap> { + public static class HostnameFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, HostnameFormat1BoxedList>, MapSchemaValidator, HostnameFormat1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public HostnameFormat1BoxedList validateAndBox(List arg, SchemaConfiguration public HostnameFormat1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new HostnameFormat1BoxedMap(validate(arg, configuration)); } + @Override + public HostnameFormat1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IdnEmailFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IdnEmailFormat.java index 235707ac583..1264c17e8a3 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IdnEmailFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IdnEmailFormat.java @@ -35,78 +35,54 @@ public class IdnEmailFormat { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class IdnEmailFormat1Boxed permits IdnEmailFormat1BoxedVoid, IdnEmailFormat1BoxedBoolean, IdnEmailFormat1BoxedNumber, IdnEmailFormat1BoxedString, IdnEmailFormat1BoxedList, IdnEmailFormat1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface IdnEmailFormat1Boxed permits IdnEmailFormat1BoxedVoid, IdnEmailFormat1BoxedBoolean, IdnEmailFormat1BoxedNumber, IdnEmailFormat1BoxedString, IdnEmailFormat1BoxedList, IdnEmailFormat1BoxedMap { + @Nullable Object getData(); } - public static final class IdnEmailFormat1BoxedVoid extends IdnEmailFormat1Boxed { - public final Void data; - private IdnEmailFormat1BoxedVoid(Void data) { - this.data = data; - } + public record IdnEmailFormat1BoxedVoid(Void data) implements IdnEmailFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IdnEmailFormat1BoxedBoolean extends IdnEmailFormat1Boxed { - public final boolean data; - private IdnEmailFormat1BoxedBoolean(boolean data) { - this.data = data; - } + public record IdnEmailFormat1BoxedBoolean(boolean data) implements IdnEmailFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IdnEmailFormat1BoxedNumber extends IdnEmailFormat1Boxed { - public final Number data; - private IdnEmailFormat1BoxedNumber(Number data) { - this.data = data; - } + public record IdnEmailFormat1BoxedNumber(Number data) implements IdnEmailFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IdnEmailFormat1BoxedString extends IdnEmailFormat1Boxed { - public final String data; - private IdnEmailFormat1BoxedString(String data) { - this.data = data; - } + public record IdnEmailFormat1BoxedString(String data) implements IdnEmailFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IdnEmailFormat1BoxedList extends IdnEmailFormat1Boxed { - public final FrozenList<@Nullable Object> data; - private IdnEmailFormat1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record IdnEmailFormat1BoxedList(FrozenList<@Nullable Object> data) implements IdnEmailFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IdnEmailFormat1BoxedMap extends IdnEmailFormat1Boxed { - public final FrozenMap<@Nullable Object> data; - private IdnEmailFormat1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record IdnEmailFormat1BoxedMap(FrozenMap<@Nullable Object> data) implements IdnEmailFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class IdnEmailFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IdnEmailFormat1BoxedList>, MapSchemaValidator, IdnEmailFormat1BoxedMap> { + public static class IdnEmailFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IdnEmailFormat1BoxedList>, MapSchemaValidator, IdnEmailFormat1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public IdnEmailFormat1BoxedList validateAndBox(List arg, SchemaConfiguration public IdnEmailFormat1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new IdnEmailFormat1BoxedMap(validate(arg, configuration)); } + @Override + public IdnEmailFormat1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IdnHostnameFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IdnHostnameFormat.java index 96390573a45..54319cb6f3a 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IdnHostnameFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IdnHostnameFormat.java @@ -35,78 +35,54 @@ public class IdnHostnameFormat { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class IdnHostnameFormat1Boxed permits IdnHostnameFormat1BoxedVoid, IdnHostnameFormat1BoxedBoolean, IdnHostnameFormat1BoxedNumber, IdnHostnameFormat1BoxedString, IdnHostnameFormat1BoxedList, IdnHostnameFormat1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface IdnHostnameFormat1Boxed permits IdnHostnameFormat1BoxedVoid, IdnHostnameFormat1BoxedBoolean, IdnHostnameFormat1BoxedNumber, IdnHostnameFormat1BoxedString, IdnHostnameFormat1BoxedList, IdnHostnameFormat1BoxedMap { + @Nullable Object getData(); } - public static final class IdnHostnameFormat1BoxedVoid extends IdnHostnameFormat1Boxed { - public final Void data; - private IdnHostnameFormat1BoxedVoid(Void data) { - this.data = data; - } + public record IdnHostnameFormat1BoxedVoid(Void data) implements IdnHostnameFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IdnHostnameFormat1BoxedBoolean extends IdnHostnameFormat1Boxed { - public final boolean data; - private IdnHostnameFormat1BoxedBoolean(boolean data) { - this.data = data; - } + public record IdnHostnameFormat1BoxedBoolean(boolean data) implements IdnHostnameFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IdnHostnameFormat1BoxedNumber extends IdnHostnameFormat1Boxed { - public final Number data; - private IdnHostnameFormat1BoxedNumber(Number data) { - this.data = data; - } + public record IdnHostnameFormat1BoxedNumber(Number data) implements IdnHostnameFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IdnHostnameFormat1BoxedString extends IdnHostnameFormat1Boxed { - public final String data; - private IdnHostnameFormat1BoxedString(String data) { - this.data = data; - } + public record IdnHostnameFormat1BoxedString(String data) implements IdnHostnameFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IdnHostnameFormat1BoxedList extends IdnHostnameFormat1Boxed { - public final FrozenList<@Nullable Object> data; - private IdnHostnameFormat1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record IdnHostnameFormat1BoxedList(FrozenList<@Nullable Object> data) implements IdnHostnameFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IdnHostnameFormat1BoxedMap extends IdnHostnameFormat1Boxed { - public final FrozenMap<@Nullable Object> data; - private IdnHostnameFormat1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record IdnHostnameFormat1BoxedMap(FrozenMap<@Nullable Object> data) implements IdnHostnameFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class IdnHostnameFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IdnHostnameFormat1BoxedList>, MapSchemaValidator, IdnHostnameFormat1BoxedMap> { + public static class IdnHostnameFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IdnHostnameFormat1BoxedList>, MapSchemaValidator, IdnHostnameFormat1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public IdnHostnameFormat1BoxedList validateAndBox(List arg, SchemaConfigurati public IdnHostnameFormat1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new IdnHostnameFormat1BoxedMap(validate(arg, configuration)); } + @Override + public IdnHostnameFormat1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IfAndElseWithoutThen.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IfAndElseWithoutThen.java index a884ea2b6bb..9c02b645f10 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IfAndElseWithoutThen.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IfAndElseWithoutThen.java @@ -36,78 +36,54 @@ public class IfAndElseWithoutThen { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class ElseSchemaBoxed permits ElseSchemaBoxedVoid, ElseSchemaBoxedBoolean, ElseSchemaBoxedNumber, ElseSchemaBoxedString, ElseSchemaBoxedList, ElseSchemaBoxedMap { - public abstract @Nullable Object data(); + public sealed interface ElseSchemaBoxed permits ElseSchemaBoxedVoid, ElseSchemaBoxedBoolean, ElseSchemaBoxedNumber, ElseSchemaBoxedString, ElseSchemaBoxedList, ElseSchemaBoxedMap { + @Nullable Object getData(); } - public static final class ElseSchemaBoxedVoid extends ElseSchemaBoxed { - public final Void data; - private ElseSchemaBoxedVoid(Void data) { - this.data = data; - } + public record ElseSchemaBoxedVoid(Void data) implements ElseSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ElseSchemaBoxedBoolean extends ElseSchemaBoxed { - public final boolean data; - private ElseSchemaBoxedBoolean(boolean data) { - this.data = data; - } + public record ElseSchemaBoxedBoolean(boolean data) implements ElseSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ElseSchemaBoxedNumber extends ElseSchemaBoxed { - public final Number data; - private ElseSchemaBoxedNumber(Number data) { - this.data = data; - } + public record ElseSchemaBoxedNumber(Number data) implements ElseSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ElseSchemaBoxedString extends ElseSchemaBoxed { - public final String data; - private ElseSchemaBoxedString(String data) { - this.data = data; - } + public record ElseSchemaBoxedString(String data) implements ElseSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ElseSchemaBoxedList extends ElseSchemaBoxed { - public final FrozenList<@Nullable Object> data; - private ElseSchemaBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ElseSchemaBoxedList(FrozenList<@Nullable Object> data) implements ElseSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ElseSchemaBoxedMap extends ElseSchemaBoxed { - public final FrozenMap<@Nullable Object> data; - private ElseSchemaBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ElseSchemaBoxedMap(FrozenMap<@Nullable Object> data) implements ElseSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class ElseSchema extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ElseSchemaBoxedList>, MapSchemaValidator, ElseSchemaBoxedMap> { + public static class ElseSchema extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ElseSchemaBoxedList>, MapSchemaValidator, ElseSchemaBoxedMap> { private static @Nullable ElseSchema instance = null; protected ElseSchema() { @@ -206,11 +182,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -241,11 +217,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -324,80 +300,75 @@ public ElseSchemaBoxedList validateAndBox(List arg, SchemaConfiguration confi public ElseSchemaBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ElseSchemaBoxedMap(validate(arg, configuration)); } + @Override + public ElseSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class IfSchemaBoxed permits IfSchemaBoxedVoid, IfSchemaBoxedBoolean, IfSchemaBoxedNumber, IfSchemaBoxedString, IfSchemaBoxedList, IfSchemaBoxedMap { - public abstract @Nullable Object data(); + public sealed interface IfSchemaBoxed permits IfSchemaBoxedVoid, IfSchemaBoxedBoolean, IfSchemaBoxedNumber, IfSchemaBoxedString, IfSchemaBoxedList, IfSchemaBoxedMap { + @Nullable Object getData(); } - public static final class IfSchemaBoxedVoid extends IfSchemaBoxed { - public final Void data; - private IfSchemaBoxedVoid(Void data) { - this.data = data; - } + public record IfSchemaBoxedVoid(Void data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfSchemaBoxedBoolean extends IfSchemaBoxed { - public final boolean data; - private IfSchemaBoxedBoolean(boolean data) { - this.data = data; - } + public record IfSchemaBoxedBoolean(boolean data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfSchemaBoxedNumber extends IfSchemaBoxed { - public final Number data; - private IfSchemaBoxedNumber(Number data) { - this.data = data; - } + public record IfSchemaBoxedNumber(Number data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfSchemaBoxedString extends IfSchemaBoxed { - public final String data; - private IfSchemaBoxedString(String data) { - this.data = data; - } + public record IfSchemaBoxedString(String data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfSchemaBoxedList extends IfSchemaBoxed { - public final FrozenList<@Nullable Object> data; - private IfSchemaBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record IfSchemaBoxedList(FrozenList<@Nullable Object> data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfSchemaBoxedMap extends IfSchemaBoxed { - public final FrozenMap<@Nullable Object> data; - private IfSchemaBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record IfSchemaBoxedMap(FrozenMap<@Nullable Object> data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class IfSchema extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IfSchemaBoxedList>, MapSchemaValidator, IfSchemaBoxedMap> { + public static class IfSchema extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IfSchemaBoxedList>, MapSchemaValidator, IfSchemaBoxedMap> { private static @Nullable IfSchema instance = null; protected IfSchema() { @@ -496,11 +467,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -531,11 +502,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -614,80 +585,75 @@ public IfSchemaBoxedList validateAndBox(List arg, SchemaConfiguration configu public IfSchemaBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new IfSchemaBoxedMap(validate(arg, configuration)); } + @Override + public IfSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class IfAndElseWithoutThen1Boxed permits IfAndElseWithoutThen1BoxedVoid, IfAndElseWithoutThen1BoxedBoolean, IfAndElseWithoutThen1BoxedNumber, IfAndElseWithoutThen1BoxedString, IfAndElseWithoutThen1BoxedList, IfAndElseWithoutThen1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface IfAndElseWithoutThen1Boxed permits IfAndElseWithoutThen1BoxedVoid, IfAndElseWithoutThen1BoxedBoolean, IfAndElseWithoutThen1BoxedNumber, IfAndElseWithoutThen1BoxedString, IfAndElseWithoutThen1BoxedList, IfAndElseWithoutThen1BoxedMap { + @Nullable Object getData(); } - public static final class IfAndElseWithoutThen1BoxedVoid extends IfAndElseWithoutThen1Boxed { - public final Void data; - private IfAndElseWithoutThen1BoxedVoid(Void data) { - this.data = data; - } + public record IfAndElseWithoutThen1BoxedVoid(Void data) implements IfAndElseWithoutThen1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfAndElseWithoutThen1BoxedBoolean extends IfAndElseWithoutThen1Boxed { - public final boolean data; - private IfAndElseWithoutThen1BoxedBoolean(boolean data) { - this.data = data; - } + public record IfAndElseWithoutThen1BoxedBoolean(boolean data) implements IfAndElseWithoutThen1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfAndElseWithoutThen1BoxedNumber extends IfAndElseWithoutThen1Boxed { - public final Number data; - private IfAndElseWithoutThen1BoxedNumber(Number data) { - this.data = data; - } + public record IfAndElseWithoutThen1BoxedNumber(Number data) implements IfAndElseWithoutThen1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfAndElseWithoutThen1BoxedString extends IfAndElseWithoutThen1Boxed { - public final String data; - private IfAndElseWithoutThen1BoxedString(String data) { - this.data = data; - } + public record IfAndElseWithoutThen1BoxedString(String data) implements IfAndElseWithoutThen1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfAndElseWithoutThen1BoxedList extends IfAndElseWithoutThen1Boxed { - public final FrozenList<@Nullable Object> data; - private IfAndElseWithoutThen1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record IfAndElseWithoutThen1BoxedList(FrozenList<@Nullable Object> data) implements IfAndElseWithoutThen1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfAndElseWithoutThen1BoxedMap extends IfAndElseWithoutThen1Boxed { - public final FrozenMap<@Nullable Object> data; - private IfAndElseWithoutThen1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record IfAndElseWithoutThen1BoxedMap(FrozenMap<@Nullable Object> data) implements IfAndElseWithoutThen1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class IfAndElseWithoutThen1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IfAndElseWithoutThen1BoxedList>, MapSchemaValidator, IfAndElseWithoutThen1BoxedMap> { + public static class IfAndElseWithoutThen1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IfAndElseWithoutThen1BoxedList>, MapSchemaValidator, IfAndElseWithoutThen1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -793,11 +759,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -828,11 +794,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -911,5 +877,24 @@ public IfAndElseWithoutThen1BoxedList validateAndBox(List arg, SchemaConfigur public IfAndElseWithoutThen1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new IfAndElseWithoutThen1BoxedMap(validate(arg, configuration)); } + @Override + public IfAndElseWithoutThen1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IfAndThenWithoutElse.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IfAndThenWithoutElse.java index 3e2b1d25634..c46a8099bd1 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IfAndThenWithoutElse.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IfAndThenWithoutElse.java @@ -35,78 +35,54 @@ public class IfAndThenWithoutElse { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class IfSchemaBoxed permits IfSchemaBoxedVoid, IfSchemaBoxedBoolean, IfSchemaBoxedNumber, IfSchemaBoxedString, IfSchemaBoxedList, IfSchemaBoxedMap { - public abstract @Nullable Object data(); + public sealed interface IfSchemaBoxed permits IfSchemaBoxedVoid, IfSchemaBoxedBoolean, IfSchemaBoxedNumber, IfSchemaBoxedString, IfSchemaBoxedList, IfSchemaBoxedMap { + @Nullable Object getData(); } - public static final class IfSchemaBoxedVoid extends IfSchemaBoxed { - public final Void data; - private IfSchemaBoxedVoid(Void data) { - this.data = data; - } + public record IfSchemaBoxedVoid(Void data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfSchemaBoxedBoolean extends IfSchemaBoxed { - public final boolean data; - private IfSchemaBoxedBoolean(boolean data) { - this.data = data; - } + public record IfSchemaBoxedBoolean(boolean data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfSchemaBoxedNumber extends IfSchemaBoxed { - public final Number data; - private IfSchemaBoxedNumber(Number data) { - this.data = data; - } + public record IfSchemaBoxedNumber(Number data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfSchemaBoxedString extends IfSchemaBoxed { - public final String data; - private IfSchemaBoxedString(String data) { - this.data = data; - } + public record IfSchemaBoxedString(String data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfSchemaBoxedList extends IfSchemaBoxed { - public final FrozenList<@Nullable Object> data; - private IfSchemaBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record IfSchemaBoxedList(FrozenList<@Nullable Object> data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfSchemaBoxedMap extends IfSchemaBoxed { - public final FrozenMap<@Nullable Object> data; - private IfSchemaBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record IfSchemaBoxedMap(FrozenMap<@Nullable Object> data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class IfSchema extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IfSchemaBoxedList>, MapSchemaValidator, IfSchemaBoxedMap> { + public static class IfSchema extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IfSchemaBoxedList>, MapSchemaValidator, IfSchemaBoxedMap> { private static @Nullable IfSchema instance = null; protected IfSchema() { @@ -205,11 +181,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -240,11 +216,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -323,80 +299,75 @@ public IfSchemaBoxedList validateAndBox(List arg, SchemaConfiguration configu public IfSchemaBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new IfSchemaBoxedMap(validate(arg, configuration)); } + @Override + public IfSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class ThenBoxed permits ThenBoxedVoid, ThenBoxedBoolean, ThenBoxedNumber, ThenBoxedString, ThenBoxedList, ThenBoxedMap { - public abstract @Nullable Object data(); + public sealed interface ThenBoxed permits ThenBoxedVoid, ThenBoxedBoolean, ThenBoxedNumber, ThenBoxedString, ThenBoxedList, ThenBoxedMap { + @Nullable Object getData(); } - public static final class ThenBoxedVoid extends ThenBoxed { - public final Void data; - private ThenBoxedVoid(Void data) { - this.data = data; - } + public record ThenBoxedVoid(Void data) implements ThenBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ThenBoxedBoolean extends ThenBoxed { - public final boolean data; - private ThenBoxedBoolean(boolean data) { - this.data = data; - } + public record ThenBoxedBoolean(boolean data) implements ThenBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ThenBoxedNumber extends ThenBoxed { - public final Number data; - private ThenBoxedNumber(Number data) { - this.data = data; - } + public record ThenBoxedNumber(Number data) implements ThenBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ThenBoxedString extends ThenBoxed { - public final String data; - private ThenBoxedString(String data) { - this.data = data; - } + public record ThenBoxedString(String data) implements ThenBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ThenBoxedList extends ThenBoxed { - public final FrozenList<@Nullable Object> data; - private ThenBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ThenBoxedList(FrozenList<@Nullable Object> data) implements ThenBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ThenBoxedMap extends ThenBoxed { - public final FrozenMap<@Nullable Object> data; - private ThenBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ThenBoxedMap(FrozenMap<@Nullable Object> data) implements ThenBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Then extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ThenBoxedList>, MapSchemaValidator, ThenBoxedMap> { + public static class Then extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ThenBoxedList>, MapSchemaValidator, ThenBoxedMap> { private static @Nullable Then instance = null; protected Then() { @@ -495,11 +466,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -530,11 +501,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -613,80 +584,75 @@ public ThenBoxedList validateAndBox(List arg, SchemaConfiguration configurati public ThenBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ThenBoxedMap(validate(arg, configuration)); } + @Override + public ThenBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class IfAndThenWithoutElse1Boxed permits IfAndThenWithoutElse1BoxedVoid, IfAndThenWithoutElse1BoxedBoolean, IfAndThenWithoutElse1BoxedNumber, IfAndThenWithoutElse1BoxedString, IfAndThenWithoutElse1BoxedList, IfAndThenWithoutElse1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface IfAndThenWithoutElse1Boxed permits IfAndThenWithoutElse1BoxedVoid, IfAndThenWithoutElse1BoxedBoolean, IfAndThenWithoutElse1BoxedNumber, IfAndThenWithoutElse1BoxedString, IfAndThenWithoutElse1BoxedList, IfAndThenWithoutElse1BoxedMap { + @Nullable Object getData(); } - public static final class IfAndThenWithoutElse1BoxedVoid extends IfAndThenWithoutElse1Boxed { - public final Void data; - private IfAndThenWithoutElse1BoxedVoid(Void data) { - this.data = data; - } + public record IfAndThenWithoutElse1BoxedVoid(Void data) implements IfAndThenWithoutElse1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfAndThenWithoutElse1BoxedBoolean extends IfAndThenWithoutElse1Boxed { - public final boolean data; - private IfAndThenWithoutElse1BoxedBoolean(boolean data) { - this.data = data; - } + public record IfAndThenWithoutElse1BoxedBoolean(boolean data) implements IfAndThenWithoutElse1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfAndThenWithoutElse1BoxedNumber extends IfAndThenWithoutElse1Boxed { - public final Number data; - private IfAndThenWithoutElse1BoxedNumber(Number data) { - this.data = data; - } + public record IfAndThenWithoutElse1BoxedNumber(Number data) implements IfAndThenWithoutElse1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfAndThenWithoutElse1BoxedString extends IfAndThenWithoutElse1Boxed { - public final String data; - private IfAndThenWithoutElse1BoxedString(String data) { - this.data = data; - } + public record IfAndThenWithoutElse1BoxedString(String data) implements IfAndThenWithoutElse1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfAndThenWithoutElse1BoxedList extends IfAndThenWithoutElse1Boxed { - public final FrozenList<@Nullable Object> data; - private IfAndThenWithoutElse1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record IfAndThenWithoutElse1BoxedList(FrozenList<@Nullable Object> data) implements IfAndThenWithoutElse1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfAndThenWithoutElse1BoxedMap extends IfAndThenWithoutElse1Boxed { - public final FrozenMap<@Nullable Object> data; - private IfAndThenWithoutElse1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record IfAndThenWithoutElse1BoxedMap(FrozenMap<@Nullable Object> data) implements IfAndThenWithoutElse1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class IfAndThenWithoutElse1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IfAndThenWithoutElse1BoxedList>, MapSchemaValidator, IfAndThenWithoutElse1BoxedMap> { + public static class IfAndThenWithoutElse1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IfAndThenWithoutElse1BoxedList>, MapSchemaValidator, IfAndThenWithoutElse1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -792,11 +758,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -827,11 +793,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -910,5 +876,24 @@ public IfAndThenWithoutElse1BoxedList validateAndBox(List arg, SchemaConfigur public IfAndThenWithoutElse1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new IfAndThenWithoutElse1BoxedMap(validate(arg, configuration)); } + @Override + public IfAndThenWithoutElse1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.java index ece6ac65a5a..301de72323d 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.java @@ -49,78 +49,54 @@ public String value() { } - public static abstract sealed class ElseSchemaBoxed permits ElseSchemaBoxedVoid, ElseSchemaBoxedBoolean, ElseSchemaBoxedNumber, ElseSchemaBoxedString, ElseSchemaBoxedList, ElseSchemaBoxedMap { - public abstract @Nullable Object data(); + public sealed interface ElseSchemaBoxed permits ElseSchemaBoxedVoid, ElseSchemaBoxedBoolean, ElseSchemaBoxedNumber, ElseSchemaBoxedString, ElseSchemaBoxedList, ElseSchemaBoxedMap { + @Nullable Object getData(); } - public static final class ElseSchemaBoxedVoid extends ElseSchemaBoxed { - public final Void data; - private ElseSchemaBoxedVoid(Void data) { - this.data = data; - } + public record ElseSchemaBoxedVoid(Void data) implements ElseSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ElseSchemaBoxedBoolean extends ElseSchemaBoxed { - public final boolean data; - private ElseSchemaBoxedBoolean(boolean data) { - this.data = data; - } + public record ElseSchemaBoxedBoolean(boolean data) implements ElseSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ElseSchemaBoxedNumber extends ElseSchemaBoxed { - public final Number data; - private ElseSchemaBoxedNumber(Number data) { - this.data = data; - } + public record ElseSchemaBoxedNumber(Number data) implements ElseSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ElseSchemaBoxedString extends ElseSchemaBoxed { - public final String data; - private ElseSchemaBoxedString(String data) { - this.data = data; - } + public record ElseSchemaBoxedString(String data) implements ElseSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ElseSchemaBoxedList extends ElseSchemaBoxed { - public final FrozenList<@Nullable Object> data; - private ElseSchemaBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ElseSchemaBoxedList(FrozenList<@Nullable Object> data) implements ElseSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ElseSchemaBoxedMap extends ElseSchemaBoxed { - public final FrozenMap<@Nullable Object> data; - private ElseSchemaBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ElseSchemaBoxedMap(FrozenMap<@Nullable Object> data) implements ElseSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class ElseSchema extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ElseSchemaBoxedList>, MapSchemaValidator, ElseSchemaBoxedMap> { + public static class ElseSchema extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ElseSchemaBoxedList>, MapSchemaValidator, ElseSchemaBoxedMap> { private static @Nullable ElseSchema instance = null; protected ElseSchema() { @@ -219,11 +195,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -254,11 +230,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -337,80 +313,75 @@ public ElseSchemaBoxedList validateAndBox(List arg, SchemaConfiguration confi public ElseSchemaBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ElseSchemaBoxedMap(validate(arg, configuration)); } + @Override + public ElseSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class IfSchemaBoxed permits IfSchemaBoxedVoid, IfSchemaBoxedBoolean, IfSchemaBoxedNumber, IfSchemaBoxedString, IfSchemaBoxedList, IfSchemaBoxedMap { - public abstract @Nullable Object data(); + public sealed interface IfSchemaBoxed permits IfSchemaBoxedVoid, IfSchemaBoxedBoolean, IfSchemaBoxedNumber, IfSchemaBoxedString, IfSchemaBoxedList, IfSchemaBoxedMap { + @Nullable Object getData(); } - public static final class IfSchemaBoxedVoid extends IfSchemaBoxed { - public final Void data; - private IfSchemaBoxedVoid(Void data) { - this.data = data; - } + public record IfSchemaBoxedVoid(Void data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfSchemaBoxedBoolean extends IfSchemaBoxed { - public final boolean data; - private IfSchemaBoxedBoolean(boolean data) { - this.data = data; - } + public record IfSchemaBoxedBoolean(boolean data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfSchemaBoxedNumber extends IfSchemaBoxed { - public final Number data; - private IfSchemaBoxedNumber(Number data) { - this.data = data; - } + public record IfSchemaBoxedNumber(Number data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfSchemaBoxedString extends IfSchemaBoxed { - public final String data; - private IfSchemaBoxedString(String data) { - this.data = data; - } + public record IfSchemaBoxedString(String data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfSchemaBoxedList extends IfSchemaBoxed { - public final FrozenList<@Nullable Object> data; - private IfSchemaBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record IfSchemaBoxedList(FrozenList<@Nullable Object> data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfSchemaBoxedMap extends IfSchemaBoxed { - public final FrozenMap<@Nullable Object> data; - private IfSchemaBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record IfSchemaBoxedMap(FrozenMap<@Nullable Object> data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class IfSchema extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IfSchemaBoxedList>, MapSchemaValidator, IfSchemaBoxedMap> { + public static class IfSchema extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IfSchemaBoxedList>, MapSchemaValidator, IfSchemaBoxedMap> { private static @Nullable IfSchema instance = null; protected IfSchema() { @@ -509,11 +480,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -544,11 +515,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -627,6 +598,25 @@ public IfSchemaBoxedList validateAndBox(List arg, SchemaConfiguration configu public IfSchemaBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new IfSchemaBoxedMap(validate(arg, configuration)); } + @Override + public IfSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public enum StringThenConst implements StringValueMethod { YES("yes"); @@ -641,78 +631,54 @@ public String value() { } - public static abstract sealed class ThenBoxed permits ThenBoxedVoid, ThenBoxedBoolean, ThenBoxedNumber, ThenBoxedString, ThenBoxedList, ThenBoxedMap { - public abstract @Nullable Object data(); + public sealed interface ThenBoxed permits ThenBoxedVoid, ThenBoxedBoolean, ThenBoxedNumber, ThenBoxedString, ThenBoxedList, ThenBoxedMap { + @Nullable Object getData(); } - public static final class ThenBoxedVoid extends ThenBoxed { - public final Void data; - private ThenBoxedVoid(Void data) { - this.data = data; - } + public record ThenBoxedVoid(Void data) implements ThenBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ThenBoxedBoolean extends ThenBoxed { - public final boolean data; - private ThenBoxedBoolean(boolean data) { - this.data = data; - } + public record ThenBoxedBoolean(boolean data) implements ThenBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ThenBoxedNumber extends ThenBoxed { - public final Number data; - private ThenBoxedNumber(Number data) { - this.data = data; - } + public record ThenBoxedNumber(Number data) implements ThenBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ThenBoxedString extends ThenBoxed { - public final String data; - private ThenBoxedString(String data) { - this.data = data; - } + public record ThenBoxedString(String data) implements ThenBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ThenBoxedList extends ThenBoxed { - public final FrozenList<@Nullable Object> data; - private ThenBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ThenBoxedList(FrozenList<@Nullable Object> data) implements ThenBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ThenBoxedMap extends ThenBoxed { - public final FrozenMap<@Nullable Object> data; - private ThenBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ThenBoxedMap(FrozenMap<@Nullable Object> data) implements ThenBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Then extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ThenBoxedList>, MapSchemaValidator, ThenBoxedMap> { + public static class Then extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ThenBoxedList>, MapSchemaValidator, ThenBoxedMap> { private static @Nullable Then instance = null; protected Then() { @@ -811,11 +777,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -846,11 +812,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -929,80 +895,75 @@ public ThenBoxedList validateAndBox(List arg, SchemaConfiguration configurati public ThenBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ThenBoxedMap(validate(arg, configuration)); } + @Override + public ThenBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1Boxed permits IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedVoid, IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedBoolean, IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedNumber, IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedString, IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedList, IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1Boxed permits IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedVoid, IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedBoolean, IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedNumber, IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedString, IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedList, IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedMap { + @Nullable Object getData(); } - public static final class IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedVoid extends IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1Boxed { - public final Void data; - private IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedVoid(Void data) { - this.data = data; - } + public record IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedVoid(Void data) implements IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedBoolean extends IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1Boxed { - public final boolean data; - private IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedBoolean(boolean data) { - this.data = data; - } + public record IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedBoolean(boolean data) implements IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedNumber extends IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1Boxed { - public final Number data; - private IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedNumber(Number data) { - this.data = data; - } + public record IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedNumber(Number data) implements IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedString extends IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1Boxed { - public final String data; - private IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedString(String data) { - this.data = data; - } + public record IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedString(String data) implements IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedList extends IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1Boxed { - public final FrozenList<@Nullable Object> data; - private IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedList(FrozenList<@Nullable Object> data) implements IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedMap extends IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1Boxed { - public final FrozenMap<@Nullable Object> data; - private IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedMap(FrozenMap<@Nullable Object> data) implements IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedList>, MapSchemaValidator, IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedMap> { + public static class IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedList>, MapSchemaValidator, IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -1109,11 +1070,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -1144,11 +1105,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1227,5 +1188,24 @@ public IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedList valida public IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1BoxedMap(validate(arg, configuration)); } + @Override + public IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IgnoreElseWithoutIf.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IgnoreElseWithoutIf.java index 3eb0a723452..0cbc81ef544 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IgnoreElseWithoutIf.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IgnoreElseWithoutIf.java @@ -49,78 +49,54 @@ public String value() { } - public static abstract sealed class ElseSchemaBoxed permits ElseSchemaBoxedVoid, ElseSchemaBoxedBoolean, ElseSchemaBoxedNumber, ElseSchemaBoxedString, ElseSchemaBoxedList, ElseSchemaBoxedMap { - public abstract @Nullable Object data(); + public sealed interface ElseSchemaBoxed permits ElseSchemaBoxedVoid, ElseSchemaBoxedBoolean, ElseSchemaBoxedNumber, ElseSchemaBoxedString, ElseSchemaBoxedList, ElseSchemaBoxedMap { + @Nullable Object getData(); } - public static final class ElseSchemaBoxedVoid extends ElseSchemaBoxed { - public final Void data; - private ElseSchemaBoxedVoid(Void data) { - this.data = data; - } + public record ElseSchemaBoxedVoid(Void data) implements ElseSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ElseSchemaBoxedBoolean extends ElseSchemaBoxed { - public final boolean data; - private ElseSchemaBoxedBoolean(boolean data) { - this.data = data; - } + public record ElseSchemaBoxedBoolean(boolean data) implements ElseSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ElseSchemaBoxedNumber extends ElseSchemaBoxed { - public final Number data; - private ElseSchemaBoxedNumber(Number data) { - this.data = data; - } + public record ElseSchemaBoxedNumber(Number data) implements ElseSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ElseSchemaBoxedString extends ElseSchemaBoxed { - public final String data; - private ElseSchemaBoxedString(String data) { - this.data = data; - } + public record ElseSchemaBoxedString(String data) implements ElseSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ElseSchemaBoxedList extends ElseSchemaBoxed { - public final FrozenList<@Nullable Object> data; - private ElseSchemaBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ElseSchemaBoxedList(FrozenList<@Nullable Object> data) implements ElseSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ElseSchemaBoxedMap extends ElseSchemaBoxed { - public final FrozenMap<@Nullable Object> data; - private ElseSchemaBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ElseSchemaBoxedMap(FrozenMap<@Nullable Object> data) implements ElseSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class ElseSchema extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ElseSchemaBoxedList>, MapSchemaValidator, ElseSchemaBoxedMap> { + public static class ElseSchema extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ElseSchemaBoxedList>, MapSchemaValidator, ElseSchemaBoxedMap> { private static @Nullable ElseSchema instance = null; protected ElseSchema() { @@ -219,11 +195,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -254,11 +230,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -337,80 +313,75 @@ public ElseSchemaBoxedList validateAndBox(List arg, SchemaConfiguration confi public ElseSchemaBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ElseSchemaBoxedMap(validate(arg, configuration)); } + @Override + public ElseSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class IgnoreElseWithoutIf1Boxed permits IgnoreElseWithoutIf1BoxedVoid, IgnoreElseWithoutIf1BoxedBoolean, IgnoreElseWithoutIf1BoxedNumber, IgnoreElseWithoutIf1BoxedString, IgnoreElseWithoutIf1BoxedList, IgnoreElseWithoutIf1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface IgnoreElseWithoutIf1Boxed permits IgnoreElseWithoutIf1BoxedVoid, IgnoreElseWithoutIf1BoxedBoolean, IgnoreElseWithoutIf1BoxedNumber, IgnoreElseWithoutIf1BoxedString, IgnoreElseWithoutIf1BoxedList, IgnoreElseWithoutIf1BoxedMap { + @Nullable Object getData(); } - public static final class IgnoreElseWithoutIf1BoxedVoid extends IgnoreElseWithoutIf1Boxed { - public final Void data; - private IgnoreElseWithoutIf1BoxedVoid(Void data) { - this.data = data; - } + public record IgnoreElseWithoutIf1BoxedVoid(Void data) implements IgnoreElseWithoutIf1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IgnoreElseWithoutIf1BoxedBoolean extends IgnoreElseWithoutIf1Boxed { - public final boolean data; - private IgnoreElseWithoutIf1BoxedBoolean(boolean data) { - this.data = data; - } + public record IgnoreElseWithoutIf1BoxedBoolean(boolean data) implements IgnoreElseWithoutIf1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IgnoreElseWithoutIf1BoxedNumber extends IgnoreElseWithoutIf1Boxed { - public final Number data; - private IgnoreElseWithoutIf1BoxedNumber(Number data) { - this.data = data; - } + public record IgnoreElseWithoutIf1BoxedNumber(Number data) implements IgnoreElseWithoutIf1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IgnoreElseWithoutIf1BoxedString extends IgnoreElseWithoutIf1Boxed { - public final String data; - private IgnoreElseWithoutIf1BoxedString(String data) { - this.data = data; - } + public record IgnoreElseWithoutIf1BoxedString(String data) implements IgnoreElseWithoutIf1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IgnoreElseWithoutIf1BoxedList extends IgnoreElseWithoutIf1Boxed { - public final FrozenList<@Nullable Object> data; - private IgnoreElseWithoutIf1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record IgnoreElseWithoutIf1BoxedList(FrozenList<@Nullable Object> data) implements IgnoreElseWithoutIf1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IgnoreElseWithoutIf1BoxedMap extends IgnoreElseWithoutIf1Boxed { - public final FrozenMap<@Nullable Object> data; - private IgnoreElseWithoutIf1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record IgnoreElseWithoutIf1BoxedMap(FrozenMap<@Nullable Object> data) implements IgnoreElseWithoutIf1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class IgnoreElseWithoutIf1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IgnoreElseWithoutIf1BoxedList>, MapSchemaValidator, IgnoreElseWithoutIf1BoxedMap> { + public static class IgnoreElseWithoutIf1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IgnoreElseWithoutIf1BoxedList>, MapSchemaValidator, IgnoreElseWithoutIf1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -515,11 +486,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -550,11 +521,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -633,5 +604,24 @@ public IgnoreElseWithoutIf1BoxedList validateAndBox(List arg, SchemaConfigura public IgnoreElseWithoutIf1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new IgnoreElseWithoutIf1BoxedMap(validate(arg, configuration)); } + @Override + public IgnoreElseWithoutIf1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IgnoreIfWithoutThenOrElse.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IgnoreIfWithoutThenOrElse.java index 3d76e4f54c9..6bbdcfddf62 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IgnoreIfWithoutThenOrElse.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IgnoreIfWithoutThenOrElse.java @@ -49,78 +49,54 @@ public String value() { } - public static abstract sealed class IfSchemaBoxed permits IfSchemaBoxedVoid, IfSchemaBoxedBoolean, IfSchemaBoxedNumber, IfSchemaBoxedString, IfSchemaBoxedList, IfSchemaBoxedMap { - public abstract @Nullable Object data(); + public sealed interface IfSchemaBoxed permits IfSchemaBoxedVoid, IfSchemaBoxedBoolean, IfSchemaBoxedNumber, IfSchemaBoxedString, IfSchemaBoxedList, IfSchemaBoxedMap { + @Nullable Object getData(); } - public static final class IfSchemaBoxedVoid extends IfSchemaBoxed { - public final Void data; - private IfSchemaBoxedVoid(Void data) { - this.data = data; - } + public record IfSchemaBoxedVoid(Void data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfSchemaBoxedBoolean extends IfSchemaBoxed { - public final boolean data; - private IfSchemaBoxedBoolean(boolean data) { - this.data = data; - } + public record IfSchemaBoxedBoolean(boolean data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfSchemaBoxedNumber extends IfSchemaBoxed { - public final Number data; - private IfSchemaBoxedNumber(Number data) { - this.data = data; - } + public record IfSchemaBoxedNumber(Number data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfSchemaBoxedString extends IfSchemaBoxed { - public final String data; - private IfSchemaBoxedString(String data) { - this.data = data; - } + public record IfSchemaBoxedString(String data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfSchemaBoxedList extends IfSchemaBoxed { - public final FrozenList<@Nullable Object> data; - private IfSchemaBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record IfSchemaBoxedList(FrozenList<@Nullable Object> data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfSchemaBoxedMap extends IfSchemaBoxed { - public final FrozenMap<@Nullable Object> data; - private IfSchemaBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record IfSchemaBoxedMap(FrozenMap<@Nullable Object> data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class IfSchema extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IfSchemaBoxedList>, MapSchemaValidator, IfSchemaBoxedMap> { + public static class IfSchema extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IfSchemaBoxedList>, MapSchemaValidator, IfSchemaBoxedMap> { private static @Nullable IfSchema instance = null; protected IfSchema() { @@ -219,11 +195,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -254,11 +230,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -337,80 +313,75 @@ public IfSchemaBoxedList validateAndBox(List arg, SchemaConfiguration configu public IfSchemaBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new IfSchemaBoxedMap(validate(arg, configuration)); } + @Override + public IfSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class IgnoreIfWithoutThenOrElse1Boxed permits IgnoreIfWithoutThenOrElse1BoxedVoid, IgnoreIfWithoutThenOrElse1BoxedBoolean, IgnoreIfWithoutThenOrElse1BoxedNumber, IgnoreIfWithoutThenOrElse1BoxedString, IgnoreIfWithoutThenOrElse1BoxedList, IgnoreIfWithoutThenOrElse1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface IgnoreIfWithoutThenOrElse1Boxed permits IgnoreIfWithoutThenOrElse1BoxedVoid, IgnoreIfWithoutThenOrElse1BoxedBoolean, IgnoreIfWithoutThenOrElse1BoxedNumber, IgnoreIfWithoutThenOrElse1BoxedString, IgnoreIfWithoutThenOrElse1BoxedList, IgnoreIfWithoutThenOrElse1BoxedMap { + @Nullable Object getData(); } - public static final class IgnoreIfWithoutThenOrElse1BoxedVoid extends IgnoreIfWithoutThenOrElse1Boxed { - public final Void data; - private IgnoreIfWithoutThenOrElse1BoxedVoid(Void data) { - this.data = data; - } + public record IgnoreIfWithoutThenOrElse1BoxedVoid(Void data) implements IgnoreIfWithoutThenOrElse1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IgnoreIfWithoutThenOrElse1BoxedBoolean extends IgnoreIfWithoutThenOrElse1Boxed { - public final boolean data; - private IgnoreIfWithoutThenOrElse1BoxedBoolean(boolean data) { - this.data = data; - } + public record IgnoreIfWithoutThenOrElse1BoxedBoolean(boolean data) implements IgnoreIfWithoutThenOrElse1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IgnoreIfWithoutThenOrElse1BoxedNumber extends IgnoreIfWithoutThenOrElse1Boxed { - public final Number data; - private IgnoreIfWithoutThenOrElse1BoxedNumber(Number data) { - this.data = data; - } + public record IgnoreIfWithoutThenOrElse1BoxedNumber(Number data) implements IgnoreIfWithoutThenOrElse1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IgnoreIfWithoutThenOrElse1BoxedString extends IgnoreIfWithoutThenOrElse1Boxed { - public final String data; - private IgnoreIfWithoutThenOrElse1BoxedString(String data) { - this.data = data; - } + public record IgnoreIfWithoutThenOrElse1BoxedString(String data) implements IgnoreIfWithoutThenOrElse1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IgnoreIfWithoutThenOrElse1BoxedList extends IgnoreIfWithoutThenOrElse1Boxed { - public final FrozenList<@Nullable Object> data; - private IgnoreIfWithoutThenOrElse1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record IgnoreIfWithoutThenOrElse1BoxedList(FrozenList<@Nullable Object> data) implements IgnoreIfWithoutThenOrElse1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IgnoreIfWithoutThenOrElse1BoxedMap extends IgnoreIfWithoutThenOrElse1Boxed { - public final FrozenMap<@Nullable Object> data; - private IgnoreIfWithoutThenOrElse1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record IgnoreIfWithoutThenOrElse1BoxedMap(FrozenMap<@Nullable Object> data) implements IgnoreIfWithoutThenOrElse1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class IgnoreIfWithoutThenOrElse1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IgnoreIfWithoutThenOrElse1BoxedList>, MapSchemaValidator, IgnoreIfWithoutThenOrElse1BoxedMap> { + public static class IgnoreIfWithoutThenOrElse1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IgnoreIfWithoutThenOrElse1BoxedList>, MapSchemaValidator, IgnoreIfWithoutThenOrElse1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -515,11 +486,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -550,11 +521,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -633,5 +604,24 @@ public IgnoreIfWithoutThenOrElse1BoxedList validateAndBox(List arg, SchemaCon public IgnoreIfWithoutThenOrElse1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new IgnoreIfWithoutThenOrElse1BoxedMap(validate(arg, configuration)); } + @Override + public IgnoreIfWithoutThenOrElse1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IgnoreThenWithoutIf.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IgnoreThenWithoutIf.java index d0f255a67f4..abcecbb52ff 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IgnoreThenWithoutIf.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IgnoreThenWithoutIf.java @@ -49,78 +49,54 @@ public String value() { } - public static abstract sealed class ThenBoxed permits ThenBoxedVoid, ThenBoxedBoolean, ThenBoxedNumber, ThenBoxedString, ThenBoxedList, ThenBoxedMap { - public abstract @Nullable Object data(); + public sealed interface ThenBoxed permits ThenBoxedVoid, ThenBoxedBoolean, ThenBoxedNumber, ThenBoxedString, ThenBoxedList, ThenBoxedMap { + @Nullable Object getData(); } - public static final class ThenBoxedVoid extends ThenBoxed { - public final Void data; - private ThenBoxedVoid(Void data) { - this.data = data; - } + public record ThenBoxedVoid(Void data) implements ThenBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ThenBoxedBoolean extends ThenBoxed { - public final boolean data; - private ThenBoxedBoolean(boolean data) { - this.data = data; - } + public record ThenBoxedBoolean(boolean data) implements ThenBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ThenBoxedNumber extends ThenBoxed { - public final Number data; - private ThenBoxedNumber(Number data) { - this.data = data; - } + public record ThenBoxedNumber(Number data) implements ThenBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ThenBoxedString extends ThenBoxed { - public final String data; - private ThenBoxedString(String data) { - this.data = data; - } + public record ThenBoxedString(String data) implements ThenBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ThenBoxedList extends ThenBoxed { - public final FrozenList<@Nullable Object> data; - private ThenBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ThenBoxedList(FrozenList<@Nullable Object> data) implements ThenBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ThenBoxedMap extends ThenBoxed { - public final FrozenMap<@Nullable Object> data; - private ThenBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ThenBoxedMap(FrozenMap<@Nullable Object> data) implements ThenBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Then extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ThenBoxedList>, MapSchemaValidator, ThenBoxedMap> { + public static class Then extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ThenBoxedList>, MapSchemaValidator, ThenBoxedMap> { private static @Nullable Then instance = null; protected Then() { @@ -219,11 +195,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -254,11 +230,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -337,80 +313,75 @@ public ThenBoxedList validateAndBox(List arg, SchemaConfiguration configurati public ThenBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ThenBoxedMap(validate(arg, configuration)); } + @Override + public ThenBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class IgnoreThenWithoutIf1Boxed permits IgnoreThenWithoutIf1BoxedVoid, IgnoreThenWithoutIf1BoxedBoolean, IgnoreThenWithoutIf1BoxedNumber, IgnoreThenWithoutIf1BoxedString, IgnoreThenWithoutIf1BoxedList, IgnoreThenWithoutIf1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface IgnoreThenWithoutIf1Boxed permits IgnoreThenWithoutIf1BoxedVoid, IgnoreThenWithoutIf1BoxedBoolean, IgnoreThenWithoutIf1BoxedNumber, IgnoreThenWithoutIf1BoxedString, IgnoreThenWithoutIf1BoxedList, IgnoreThenWithoutIf1BoxedMap { + @Nullable Object getData(); } - public static final class IgnoreThenWithoutIf1BoxedVoid extends IgnoreThenWithoutIf1Boxed { - public final Void data; - private IgnoreThenWithoutIf1BoxedVoid(Void data) { - this.data = data; - } + public record IgnoreThenWithoutIf1BoxedVoid(Void data) implements IgnoreThenWithoutIf1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IgnoreThenWithoutIf1BoxedBoolean extends IgnoreThenWithoutIf1Boxed { - public final boolean data; - private IgnoreThenWithoutIf1BoxedBoolean(boolean data) { - this.data = data; - } + public record IgnoreThenWithoutIf1BoxedBoolean(boolean data) implements IgnoreThenWithoutIf1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IgnoreThenWithoutIf1BoxedNumber extends IgnoreThenWithoutIf1Boxed { - public final Number data; - private IgnoreThenWithoutIf1BoxedNumber(Number data) { - this.data = data; - } + public record IgnoreThenWithoutIf1BoxedNumber(Number data) implements IgnoreThenWithoutIf1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IgnoreThenWithoutIf1BoxedString extends IgnoreThenWithoutIf1Boxed { - public final String data; - private IgnoreThenWithoutIf1BoxedString(String data) { - this.data = data; - } + public record IgnoreThenWithoutIf1BoxedString(String data) implements IgnoreThenWithoutIf1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IgnoreThenWithoutIf1BoxedList extends IgnoreThenWithoutIf1Boxed { - public final FrozenList<@Nullable Object> data; - private IgnoreThenWithoutIf1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record IgnoreThenWithoutIf1BoxedList(FrozenList<@Nullable Object> data) implements IgnoreThenWithoutIf1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IgnoreThenWithoutIf1BoxedMap extends IgnoreThenWithoutIf1Boxed { - public final FrozenMap<@Nullable Object> data; - private IgnoreThenWithoutIf1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record IgnoreThenWithoutIf1BoxedMap(FrozenMap<@Nullable Object> data) implements IgnoreThenWithoutIf1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class IgnoreThenWithoutIf1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IgnoreThenWithoutIf1BoxedList>, MapSchemaValidator, IgnoreThenWithoutIf1BoxedMap> { + public static class IgnoreThenWithoutIf1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IgnoreThenWithoutIf1BoxedList>, MapSchemaValidator, IgnoreThenWithoutIf1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -515,11 +486,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -550,11 +521,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -633,5 +604,24 @@ public IgnoreThenWithoutIf1BoxedList validateAndBox(List arg, SchemaConfigura public IgnoreThenWithoutIf1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new IgnoreThenWithoutIf1BoxedMap(validate(arg, configuration)); } + @Override + public IgnoreThenWithoutIf1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Ipv4Format.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Ipv4Format.java index d891e096c49..9db27444b5d 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Ipv4Format.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Ipv4Format.java @@ -35,78 +35,54 @@ public class Ipv4Format { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class Ipv4Format1Boxed permits Ipv4Format1BoxedVoid, Ipv4Format1BoxedBoolean, Ipv4Format1BoxedNumber, Ipv4Format1BoxedString, Ipv4Format1BoxedList, Ipv4Format1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Ipv4Format1Boxed permits Ipv4Format1BoxedVoid, Ipv4Format1BoxedBoolean, Ipv4Format1BoxedNumber, Ipv4Format1BoxedString, Ipv4Format1BoxedList, Ipv4Format1BoxedMap { + @Nullable Object getData(); } - public static final class Ipv4Format1BoxedVoid extends Ipv4Format1Boxed { - public final Void data; - private Ipv4Format1BoxedVoid(Void data) { - this.data = data; - } + public record Ipv4Format1BoxedVoid(Void data) implements Ipv4Format1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Ipv4Format1BoxedBoolean extends Ipv4Format1Boxed { - public final boolean data; - private Ipv4Format1BoxedBoolean(boolean data) { - this.data = data; - } + public record Ipv4Format1BoxedBoolean(boolean data) implements Ipv4Format1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Ipv4Format1BoxedNumber extends Ipv4Format1Boxed { - public final Number data; - private Ipv4Format1BoxedNumber(Number data) { - this.data = data; - } + public record Ipv4Format1BoxedNumber(Number data) implements Ipv4Format1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Ipv4Format1BoxedString extends Ipv4Format1Boxed { - public final String data; - private Ipv4Format1BoxedString(String data) { - this.data = data; - } + public record Ipv4Format1BoxedString(String data) implements Ipv4Format1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Ipv4Format1BoxedList extends Ipv4Format1Boxed { - public final FrozenList<@Nullable Object> data; - private Ipv4Format1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Ipv4Format1BoxedList(FrozenList<@Nullable Object> data) implements Ipv4Format1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Ipv4Format1BoxedMap extends Ipv4Format1Boxed { - public final FrozenMap<@Nullable Object> data; - private Ipv4Format1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Ipv4Format1BoxedMap(FrozenMap<@Nullable Object> data) implements Ipv4Format1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Ipv4Format1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Ipv4Format1BoxedList>, MapSchemaValidator, Ipv4Format1BoxedMap> { + public static class Ipv4Format1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Ipv4Format1BoxedList>, MapSchemaValidator, Ipv4Format1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public Ipv4Format1BoxedList validateAndBox(List arg, SchemaConfiguration conf public Ipv4Format1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Ipv4Format1BoxedMap(validate(arg, configuration)); } + @Override + public Ipv4Format1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Ipv6Format.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Ipv6Format.java index a951cba8480..f52011acf83 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Ipv6Format.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Ipv6Format.java @@ -35,78 +35,54 @@ public class Ipv6Format { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class Ipv6Format1Boxed permits Ipv6Format1BoxedVoid, Ipv6Format1BoxedBoolean, Ipv6Format1BoxedNumber, Ipv6Format1BoxedString, Ipv6Format1BoxedList, Ipv6Format1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Ipv6Format1Boxed permits Ipv6Format1BoxedVoid, Ipv6Format1BoxedBoolean, Ipv6Format1BoxedNumber, Ipv6Format1BoxedString, Ipv6Format1BoxedList, Ipv6Format1BoxedMap { + @Nullable Object getData(); } - public static final class Ipv6Format1BoxedVoid extends Ipv6Format1Boxed { - public final Void data; - private Ipv6Format1BoxedVoid(Void data) { - this.data = data; - } + public record Ipv6Format1BoxedVoid(Void data) implements Ipv6Format1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Ipv6Format1BoxedBoolean extends Ipv6Format1Boxed { - public final boolean data; - private Ipv6Format1BoxedBoolean(boolean data) { - this.data = data; - } + public record Ipv6Format1BoxedBoolean(boolean data) implements Ipv6Format1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Ipv6Format1BoxedNumber extends Ipv6Format1Boxed { - public final Number data; - private Ipv6Format1BoxedNumber(Number data) { - this.data = data; - } + public record Ipv6Format1BoxedNumber(Number data) implements Ipv6Format1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Ipv6Format1BoxedString extends Ipv6Format1Boxed { - public final String data; - private Ipv6Format1BoxedString(String data) { - this.data = data; - } + public record Ipv6Format1BoxedString(String data) implements Ipv6Format1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Ipv6Format1BoxedList extends Ipv6Format1Boxed { - public final FrozenList<@Nullable Object> data; - private Ipv6Format1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Ipv6Format1BoxedList(FrozenList<@Nullable Object> data) implements Ipv6Format1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Ipv6Format1BoxedMap extends Ipv6Format1Boxed { - public final FrozenMap<@Nullable Object> data; - private Ipv6Format1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Ipv6Format1BoxedMap(FrozenMap<@Nullable Object> data) implements Ipv6Format1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Ipv6Format1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Ipv6Format1BoxedList>, MapSchemaValidator, Ipv6Format1BoxedMap> { + public static class Ipv6Format1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Ipv6Format1BoxedList>, MapSchemaValidator, Ipv6Format1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public Ipv6Format1BoxedList validateAndBox(List arg, SchemaConfiguration conf public Ipv6Format1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Ipv6Format1BoxedMap(validate(arg, configuration)); } + @Override + public Ipv6Format1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IriFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IriFormat.java index 84213229cb7..b1482c09cfd 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IriFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IriFormat.java @@ -35,78 +35,54 @@ public class IriFormat { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class IriFormat1Boxed permits IriFormat1BoxedVoid, IriFormat1BoxedBoolean, IriFormat1BoxedNumber, IriFormat1BoxedString, IriFormat1BoxedList, IriFormat1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface IriFormat1Boxed permits IriFormat1BoxedVoid, IriFormat1BoxedBoolean, IriFormat1BoxedNumber, IriFormat1BoxedString, IriFormat1BoxedList, IriFormat1BoxedMap { + @Nullable Object getData(); } - public static final class IriFormat1BoxedVoid extends IriFormat1Boxed { - public final Void data; - private IriFormat1BoxedVoid(Void data) { - this.data = data; - } + public record IriFormat1BoxedVoid(Void data) implements IriFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IriFormat1BoxedBoolean extends IriFormat1Boxed { - public final boolean data; - private IriFormat1BoxedBoolean(boolean data) { - this.data = data; - } + public record IriFormat1BoxedBoolean(boolean data) implements IriFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IriFormat1BoxedNumber extends IriFormat1Boxed { - public final Number data; - private IriFormat1BoxedNumber(Number data) { - this.data = data; - } + public record IriFormat1BoxedNumber(Number data) implements IriFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IriFormat1BoxedString extends IriFormat1Boxed { - public final String data; - private IriFormat1BoxedString(String data) { - this.data = data; - } + public record IriFormat1BoxedString(String data) implements IriFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IriFormat1BoxedList extends IriFormat1Boxed { - public final FrozenList<@Nullable Object> data; - private IriFormat1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record IriFormat1BoxedList(FrozenList<@Nullable Object> data) implements IriFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IriFormat1BoxedMap extends IriFormat1Boxed { - public final FrozenMap<@Nullable Object> data; - private IriFormat1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record IriFormat1BoxedMap(FrozenMap<@Nullable Object> data) implements IriFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class IriFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IriFormat1BoxedList>, MapSchemaValidator, IriFormat1BoxedMap> { + public static class IriFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IriFormat1BoxedList>, MapSchemaValidator, IriFormat1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public IriFormat1BoxedList validateAndBox(List arg, SchemaConfiguration confi public IriFormat1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new IriFormat1BoxedMap(validate(arg, configuration)); } + @Override + public IriFormat1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IriReferenceFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IriReferenceFormat.java index 4af8f299df4..121084c5602 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IriReferenceFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IriReferenceFormat.java @@ -35,78 +35,54 @@ public class IriReferenceFormat { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class IriReferenceFormat1Boxed permits IriReferenceFormat1BoxedVoid, IriReferenceFormat1BoxedBoolean, IriReferenceFormat1BoxedNumber, IriReferenceFormat1BoxedString, IriReferenceFormat1BoxedList, IriReferenceFormat1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface IriReferenceFormat1Boxed permits IriReferenceFormat1BoxedVoid, IriReferenceFormat1BoxedBoolean, IriReferenceFormat1BoxedNumber, IriReferenceFormat1BoxedString, IriReferenceFormat1BoxedList, IriReferenceFormat1BoxedMap { + @Nullable Object getData(); } - public static final class IriReferenceFormat1BoxedVoid extends IriReferenceFormat1Boxed { - public final Void data; - private IriReferenceFormat1BoxedVoid(Void data) { - this.data = data; - } + public record IriReferenceFormat1BoxedVoid(Void data) implements IriReferenceFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IriReferenceFormat1BoxedBoolean extends IriReferenceFormat1Boxed { - public final boolean data; - private IriReferenceFormat1BoxedBoolean(boolean data) { - this.data = data; - } + public record IriReferenceFormat1BoxedBoolean(boolean data) implements IriReferenceFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IriReferenceFormat1BoxedNumber extends IriReferenceFormat1Boxed { - public final Number data; - private IriReferenceFormat1BoxedNumber(Number data) { - this.data = data; - } + public record IriReferenceFormat1BoxedNumber(Number data) implements IriReferenceFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IriReferenceFormat1BoxedString extends IriReferenceFormat1Boxed { - public final String data; - private IriReferenceFormat1BoxedString(String data) { - this.data = data; - } + public record IriReferenceFormat1BoxedString(String data) implements IriReferenceFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IriReferenceFormat1BoxedList extends IriReferenceFormat1Boxed { - public final FrozenList<@Nullable Object> data; - private IriReferenceFormat1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record IriReferenceFormat1BoxedList(FrozenList<@Nullable Object> data) implements IriReferenceFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IriReferenceFormat1BoxedMap extends IriReferenceFormat1Boxed { - public final FrozenMap<@Nullable Object> data; - private IriReferenceFormat1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record IriReferenceFormat1BoxedMap(FrozenMap<@Nullable Object> data) implements IriReferenceFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class IriReferenceFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IriReferenceFormat1BoxedList>, MapSchemaValidator, IriReferenceFormat1BoxedMap> { + public static class IriReferenceFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IriReferenceFormat1BoxedList>, MapSchemaValidator, IriReferenceFormat1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public IriReferenceFormat1BoxedList validateAndBox(List arg, SchemaConfigurat public IriReferenceFormat1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new IriReferenceFormat1BoxedMap(validate(arg, configuration)); } + @Override + public IriReferenceFormat1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ItemsContains.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ItemsContains.java index bb03a69bebe..e385e5dd4c0 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ItemsContains.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ItemsContains.java @@ -36,78 +36,54 @@ public class ItemsContains { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class ContainsBoxed permits ContainsBoxedVoid, ContainsBoxedBoolean, ContainsBoxedNumber, ContainsBoxedString, ContainsBoxedList, ContainsBoxedMap { - public abstract @Nullable Object data(); + public sealed interface ContainsBoxed permits ContainsBoxedVoid, ContainsBoxedBoolean, ContainsBoxedNumber, ContainsBoxedString, ContainsBoxedList, ContainsBoxedMap { + @Nullable Object getData(); } - public static final class ContainsBoxedVoid extends ContainsBoxed { - public final Void data; - private ContainsBoxedVoid(Void data) { - this.data = data; - } + public record ContainsBoxedVoid(Void data) implements ContainsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ContainsBoxedBoolean extends ContainsBoxed { - public final boolean data; - private ContainsBoxedBoolean(boolean data) { - this.data = data; - } + public record ContainsBoxedBoolean(boolean data) implements ContainsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ContainsBoxedNumber extends ContainsBoxed { - public final Number data; - private ContainsBoxedNumber(Number data) { - this.data = data; - } + public record ContainsBoxedNumber(Number data) implements ContainsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ContainsBoxedString extends ContainsBoxed { - public final String data; - private ContainsBoxedString(String data) { - this.data = data; - } + public record ContainsBoxedString(String data) implements ContainsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ContainsBoxedList extends ContainsBoxed { - public final FrozenList<@Nullable Object> data; - private ContainsBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ContainsBoxedList(FrozenList<@Nullable Object> data) implements ContainsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ContainsBoxedMap extends ContainsBoxed { - public final FrozenMap<@Nullable Object> data; - private ContainsBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ContainsBoxedMap(FrozenMap<@Nullable Object> data) implements ContainsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Contains extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ContainsBoxedList>, MapSchemaValidator, ContainsBoxedMap> { + public static class Contains extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ContainsBoxedList>, MapSchemaValidator, ContainsBoxedMap> { private static @Nullable Contains instance = null; protected Contains() { @@ -206,11 +182,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -241,11 +217,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -324,80 +300,75 @@ public ContainsBoxedList validateAndBox(List arg, SchemaConfiguration configu public ContainsBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ContainsBoxedMap(validate(arg, configuration)); } + @Override + public ContainsBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class ItemsBoxed permits ItemsBoxedVoid, ItemsBoxedBoolean, ItemsBoxedNumber, ItemsBoxedString, ItemsBoxedList, ItemsBoxedMap { - public abstract @Nullable Object data(); + public sealed interface ItemsBoxed permits ItemsBoxedVoid, ItemsBoxedBoolean, ItemsBoxedNumber, ItemsBoxedString, ItemsBoxedList, ItemsBoxedMap { + @Nullable Object getData(); } - public static final class ItemsBoxedVoid extends ItemsBoxed { - public final Void data; - private ItemsBoxedVoid(Void data) { - this.data = data; - } + public record ItemsBoxedVoid(Void data) implements ItemsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ItemsBoxedBoolean extends ItemsBoxed { - public final boolean data; - private ItemsBoxedBoolean(boolean data) { - this.data = data; - } + public record ItemsBoxedBoolean(boolean data) implements ItemsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ItemsBoxedNumber extends ItemsBoxed { - public final Number data; - private ItemsBoxedNumber(Number data) { - this.data = data; - } + public record ItemsBoxedNumber(Number data) implements ItemsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ItemsBoxedString extends ItemsBoxed { - public final String data; - private ItemsBoxedString(String data) { - this.data = data; - } + public record ItemsBoxedString(String data) implements ItemsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ItemsBoxedList extends ItemsBoxed { - public final FrozenList<@Nullable Object> data; - private ItemsBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ItemsBoxedList(FrozenList<@Nullable Object> data) implements ItemsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ItemsBoxedMap extends ItemsBoxed { - public final FrozenMap<@Nullable Object> data; - private ItemsBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ItemsBoxedMap(FrozenMap<@Nullable Object> data) implements ItemsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Items extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ItemsBoxedList>, MapSchemaValidator, ItemsBoxedMap> { + public static class Items extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ItemsBoxedList>, MapSchemaValidator, ItemsBoxedMap> { private static @Nullable Items instance = null; protected Items() { @@ -496,11 +467,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -531,11 +502,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -614,6 +585,25 @@ public ItemsBoxedList validateAndBox(List arg, SchemaConfiguration configurat public ItemsBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ItemsBoxedMap(validate(arg, configuration)); } + @Override + public ItemsBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class ItemsContainsList extends FrozenList<@Nullable Object> { @@ -688,24 +678,20 @@ public ItemsContainsListBuilder add(Map item) { } - public static abstract sealed class ItemsContains1Boxed permits ItemsContains1BoxedList { - public abstract @Nullable Object data(); + public sealed interface ItemsContains1Boxed permits ItemsContains1BoxedList { + @Nullable Object getData(); } - public static final class ItemsContains1BoxedList extends ItemsContains1Boxed { - public final ItemsContainsList data; - private ItemsContains1BoxedList(ItemsContainsList data) { - this.data = data; - } + public record ItemsContains1BoxedList(ItemsContainsList data) implements ItemsContains1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class ItemsContains1 extends JsonSchema implements ListSchemaValidator { + public static class ItemsContains1 extends JsonSchema implements ListSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -736,11 +722,11 @@ public ItemsContainsList getNewInstance(List arg, List pathToItem, Pa for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -777,5 +763,12 @@ public ItemsContainsList validate(List arg, SchemaConfiguration configuration public ItemsContains1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ItemsContains1BoxedList(validate(arg, configuration)); } + @Override + public ItemsContains1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ItemsDoesNotLookInApplicatorsValidCase.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ItemsDoesNotLookInApplicatorsValidCase.java index 1004bdddb55..f5abd8a53f1 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ItemsDoesNotLookInApplicatorsValidCase.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ItemsDoesNotLookInApplicatorsValidCase.java @@ -35,78 +35,54 @@ public class ItemsDoesNotLookInApplicatorsValidCase { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class ItemsBoxed permits ItemsBoxedVoid, ItemsBoxedBoolean, ItemsBoxedNumber, ItemsBoxedString, ItemsBoxedList, ItemsBoxedMap { - public abstract @Nullable Object data(); + public sealed interface ItemsBoxed permits ItemsBoxedVoid, ItemsBoxedBoolean, ItemsBoxedNumber, ItemsBoxedString, ItemsBoxedList, ItemsBoxedMap { + @Nullable Object getData(); } - public static final class ItemsBoxedVoid extends ItemsBoxed { - public final Void data; - private ItemsBoxedVoid(Void data) { - this.data = data; - } + public record ItemsBoxedVoid(Void data) implements ItemsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ItemsBoxedBoolean extends ItemsBoxed { - public final boolean data; - private ItemsBoxedBoolean(boolean data) { - this.data = data; - } + public record ItemsBoxedBoolean(boolean data) implements ItemsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ItemsBoxedNumber extends ItemsBoxed { - public final Number data; - private ItemsBoxedNumber(Number data) { - this.data = data; - } + public record ItemsBoxedNumber(Number data) implements ItemsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ItemsBoxedString extends ItemsBoxed { - public final String data; - private ItemsBoxedString(String data) { - this.data = data; - } + public record ItemsBoxedString(String data) implements ItemsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ItemsBoxedList extends ItemsBoxed { - public final FrozenList<@Nullable Object> data; - private ItemsBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ItemsBoxedList(FrozenList<@Nullable Object> data) implements ItemsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ItemsBoxedMap extends ItemsBoxed { - public final FrozenMap<@Nullable Object> data; - private ItemsBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ItemsBoxedMap(FrozenMap<@Nullable Object> data) implements ItemsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Items extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ItemsBoxedList>, MapSchemaValidator, ItemsBoxedMap> { + public static class Items extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ItemsBoxedList>, MapSchemaValidator, ItemsBoxedMap> { private static @Nullable Items instance = null; protected Items() { @@ -205,11 +181,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -240,11 +216,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -323,6 +299,25 @@ public ItemsBoxedList validateAndBox(List arg, SchemaConfiguration configurat public ItemsBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ItemsBoxedMap(validate(arg, configuration)); } + @Override + public ItemsBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class ItemsDoesNotLookInApplicatorsValidCaseList extends FrozenList<@Nullable Object> { @@ -397,24 +392,20 @@ public ItemsDoesNotLookInApplicatorsValidCaseListBuilder add(Map item } - public static abstract sealed class ItemsDoesNotLookInApplicatorsValidCase1Boxed permits ItemsDoesNotLookInApplicatorsValidCase1BoxedList { - public abstract @Nullable Object data(); + public sealed interface ItemsDoesNotLookInApplicatorsValidCase1Boxed permits ItemsDoesNotLookInApplicatorsValidCase1BoxedList { + @Nullable Object getData(); } - public static final class ItemsDoesNotLookInApplicatorsValidCase1BoxedList extends ItemsDoesNotLookInApplicatorsValidCase1Boxed { - public final ItemsDoesNotLookInApplicatorsValidCaseList data; - private ItemsDoesNotLookInApplicatorsValidCase1BoxedList(ItemsDoesNotLookInApplicatorsValidCaseList data) { - this.data = data; - } + public record ItemsDoesNotLookInApplicatorsValidCase1BoxedList(ItemsDoesNotLookInApplicatorsValidCaseList data) implements ItemsDoesNotLookInApplicatorsValidCase1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class ItemsDoesNotLookInApplicatorsValidCase1 extends JsonSchema implements ListSchemaValidator { + public static class ItemsDoesNotLookInApplicatorsValidCase1 extends JsonSchema implements ListSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -444,11 +435,11 @@ public ItemsDoesNotLookInApplicatorsValidCaseList getNewInstance(List arg, Li for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -485,5 +476,12 @@ public ItemsDoesNotLookInApplicatorsValidCaseList validate(List arg, SchemaCo public ItemsDoesNotLookInApplicatorsValidCase1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ItemsDoesNotLookInApplicatorsValidCase1BoxedList(validate(arg, configuration)); } + @Override + public ItemsDoesNotLookInApplicatorsValidCase1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ItemsWithNullInstanceElements.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ItemsWithNullInstanceElements.java index 8421fe70827..7803e3e960a 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ItemsWithNullInstanceElements.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ItemsWithNullInstanceElements.java @@ -66,24 +66,20 @@ public List build() { } - public static abstract sealed class ItemsWithNullInstanceElements1Boxed permits ItemsWithNullInstanceElements1BoxedList { - public abstract @Nullable Object data(); + public sealed interface ItemsWithNullInstanceElements1Boxed permits ItemsWithNullInstanceElements1BoxedList { + @Nullable Object getData(); } - public static final class ItemsWithNullInstanceElements1BoxedList extends ItemsWithNullInstanceElements1Boxed { - public final ItemsWithNullInstanceElementsList data; - private ItemsWithNullInstanceElements1BoxedList(ItemsWithNullInstanceElementsList data) { - this.data = data; - } + public record ItemsWithNullInstanceElements1BoxedList(ItemsWithNullInstanceElementsList data) implements ItemsWithNullInstanceElements1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class ItemsWithNullInstanceElements1 extends JsonSchema implements ListSchemaValidator { + public static class ItemsWithNullInstanceElements1 extends JsonSchema implements ListSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -113,11 +109,11 @@ public ItemsWithNullInstanceElementsList getNewInstance(List arg, List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance == null || itemInstance instanceof Void)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -157,5 +153,12 @@ public ItemsWithNullInstanceElementsList validate(List arg, SchemaConfigurati public ItemsWithNullInstanceElements1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ItemsWithNullInstanceElements1BoxedList(validate(arg, configuration)); } + @Override + public ItemsWithNullInstanceElements1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/JsonPointerFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/JsonPointerFormat.java index 2699ff60012..fce4b261f1d 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/JsonPointerFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/JsonPointerFormat.java @@ -35,78 +35,54 @@ public class JsonPointerFormat { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class JsonPointerFormat1Boxed permits JsonPointerFormat1BoxedVoid, JsonPointerFormat1BoxedBoolean, JsonPointerFormat1BoxedNumber, JsonPointerFormat1BoxedString, JsonPointerFormat1BoxedList, JsonPointerFormat1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface JsonPointerFormat1Boxed permits JsonPointerFormat1BoxedVoid, JsonPointerFormat1BoxedBoolean, JsonPointerFormat1BoxedNumber, JsonPointerFormat1BoxedString, JsonPointerFormat1BoxedList, JsonPointerFormat1BoxedMap { + @Nullable Object getData(); } - public static final class JsonPointerFormat1BoxedVoid extends JsonPointerFormat1Boxed { - public final Void data; - private JsonPointerFormat1BoxedVoid(Void data) { - this.data = data; - } + public record JsonPointerFormat1BoxedVoid(Void data) implements JsonPointerFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class JsonPointerFormat1BoxedBoolean extends JsonPointerFormat1Boxed { - public final boolean data; - private JsonPointerFormat1BoxedBoolean(boolean data) { - this.data = data; - } + public record JsonPointerFormat1BoxedBoolean(boolean data) implements JsonPointerFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class JsonPointerFormat1BoxedNumber extends JsonPointerFormat1Boxed { - public final Number data; - private JsonPointerFormat1BoxedNumber(Number data) { - this.data = data; - } + public record JsonPointerFormat1BoxedNumber(Number data) implements JsonPointerFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class JsonPointerFormat1BoxedString extends JsonPointerFormat1Boxed { - public final String data; - private JsonPointerFormat1BoxedString(String data) { - this.data = data; - } + public record JsonPointerFormat1BoxedString(String data) implements JsonPointerFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class JsonPointerFormat1BoxedList extends JsonPointerFormat1Boxed { - public final FrozenList<@Nullable Object> data; - private JsonPointerFormat1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record JsonPointerFormat1BoxedList(FrozenList<@Nullable Object> data) implements JsonPointerFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class JsonPointerFormat1BoxedMap extends JsonPointerFormat1Boxed { - public final FrozenMap<@Nullable Object> data; - private JsonPointerFormat1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record JsonPointerFormat1BoxedMap(FrozenMap<@Nullable Object> data) implements JsonPointerFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class JsonPointerFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, JsonPointerFormat1BoxedList>, MapSchemaValidator, JsonPointerFormat1BoxedMap> { + public static class JsonPointerFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, JsonPointerFormat1BoxedList>, MapSchemaValidator, JsonPointerFormat1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public JsonPointerFormat1BoxedList validateAndBox(List arg, SchemaConfigurati public JsonPointerFormat1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new JsonPointerFormat1BoxedMap(validate(arg, configuration)); } + @Override + public JsonPointerFormat1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxcontainsWithoutContainsIsIgnored.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxcontainsWithoutContainsIsIgnored.java index 14adc065248..a3da96fbffa 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxcontainsWithoutContainsIsIgnored.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxcontainsWithoutContainsIsIgnored.java @@ -35,78 +35,54 @@ public class MaxcontainsWithoutContainsIsIgnored { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class MaxcontainsWithoutContainsIsIgnored1Boxed permits MaxcontainsWithoutContainsIsIgnored1BoxedVoid, MaxcontainsWithoutContainsIsIgnored1BoxedBoolean, MaxcontainsWithoutContainsIsIgnored1BoxedNumber, MaxcontainsWithoutContainsIsIgnored1BoxedString, MaxcontainsWithoutContainsIsIgnored1BoxedList, MaxcontainsWithoutContainsIsIgnored1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface MaxcontainsWithoutContainsIsIgnored1Boxed permits MaxcontainsWithoutContainsIsIgnored1BoxedVoid, MaxcontainsWithoutContainsIsIgnored1BoxedBoolean, MaxcontainsWithoutContainsIsIgnored1BoxedNumber, MaxcontainsWithoutContainsIsIgnored1BoxedString, MaxcontainsWithoutContainsIsIgnored1BoxedList, MaxcontainsWithoutContainsIsIgnored1BoxedMap { + @Nullable Object getData(); } - public static final class MaxcontainsWithoutContainsIsIgnored1BoxedVoid extends MaxcontainsWithoutContainsIsIgnored1Boxed { - public final Void data; - private MaxcontainsWithoutContainsIsIgnored1BoxedVoid(Void data) { - this.data = data; - } + public record MaxcontainsWithoutContainsIsIgnored1BoxedVoid(Void data) implements MaxcontainsWithoutContainsIsIgnored1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxcontainsWithoutContainsIsIgnored1BoxedBoolean extends MaxcontainsWithoutContainsIsIgnored1Boxed { - public final boolean data; - private MaxcontainsWithoutContainsIsIgnored1BoxedBoolean(boolean data) { - this.data = data; - } + public record MaxcontainsWithoutContainsIsIgnored1BoxedBoolean(boolean data) implements MaxcontainsWithoutContainsIsIgnored1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxcontainsWithoutContainsIsIgnored1BoxedNumber extends MaxcontainsWithoutContainsIsIgnored1Boxed { - public final Number data; - private MaxcontainsWithoutContainsIsIgnored1BoxedNumber(Number data) { - this.data = data; - } + public record MaxcontainsWithoutContainsIsIgnored1BoxedNumber(Number data) implements MaxcontainsWithoutContainsIsIgnored1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxcontainsWithoutContainsIsIgnored1BoxedString extends MaxcontainsWithoutContainsIsIgnored1Boxed { - public final String data; - private MaxcontainsWithoutContainsIsIgnored1BoxedString(String data) { - this.data = data; - } + public record MaxcontainsWithoutContainsIsIgnored1BoxedString(String data) implements MaxcontainsWithoutContainsIsIgnored1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxcontainsWithoutContainsIsIgnored1BoxedList extends MaxcontainsWithoutContainsIsIgnored1Boxed { - public final FrozenList<@Nullable Object> data; - private MaxcontainsWithoutContainsIsIgnored1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record MaxcontainsWithoutContainsIsIgnored1BoxedList(FrozenList<@Nullable Object> data) implements MaxcontainsWithoutContainsIsIgnored1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxcontainsWithoutContainsIsIgnored1BoxedMap extends MaxcontainsWithoutContainsIsIgnored1Boxed { - public final FrozenMap<@Nullable Object> data; - private MaxcontainsWithoutContainsIsIgnored1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record MaxcontainsWithoutContainsIsIgnored1BoxedMap(FrozenMap<@Nullable Object> data) implements MaxcontainsWithoutContainsIsIgnored1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class MaxcontainsWithoutContainsIsIgnored1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MaxcontainsWithoutContainsIsIgnored1BoxedList>, MapSchemaValidator, MaxcontainsWithoutContainsIsIgnored1BoxedMap> { + public static class MaxcontainsWithoutContainsIsIgnored1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MaxcontainsWithoutContainsIsIgnored1BoxedList>, MapSchemaValidator, MaxcontainsWithoutContainsIsIgnored1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public MaxcontainsWithoutContainsIsIgnored1BoxedList validateAndBox(List arg, public MaxcontainsWithoutContainsIsIgnored1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MaxcontainsWithoutContainsIsIgnored1BoxedMap(validate(arg, configuration)); } + @Override + public MaxcontainsWithoutContainsIsIgnored1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaximumValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaximumValidation.java index 7c10873848d..ff2f9aec232 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaximumValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaximumValidation.java @@ -35,78 +35,54 @@ public class MaximumValidation { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class MaximumValidation1Boxed permits MaximumValidation1BoxedVoid, MaximumValidation1BoxedBoolean, MaximumValidation1BoxedNumber, MaximumValidation1BoxedString, MaximumValidation1BoxedList, MaximumValidation1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface MaximumValidation1Boxed permits MaximumValidation1BoxedVoid, MaximumValidation1BoxedBoolean, MaximumValidation1BoxedNumber, MaximumValidation1BoxedString, MaximumValidation1BoxedList, MaximumValidation1BoxedMap { + @Nullable Object getData(); } - public static final class MaximumValidation1BoxedVoid extends MaximumValidation1Boxed { - public final Void data; - private MaximumValidation1BoxedVoid(Void data) { - this.data = data; - } + public record MaximumValidation1BoxedVoid(Void data) implements MaximumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaximumValidation1BoxedBoolean extends MaximumValidation1Boxed { - public final boolean data; - private MaximumValidation1BoxedBoolean(boolean data) { - this.data = data; - } + public record MaximumValidation1BoxedBoolean(boolean data) implements MaximumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaximumValidation1BoxedNumber extends MaximumValidation1Boxed { - public final Number data; - private MaximumValidation1BoxedNumber(Number data) { - this.data = data; - } + public record MaximumValidation1BoxedNumber(Number data) implements MaximumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaximumValidation1BoxedString extends MaximumValidation1Boxed { - public final String data; - private MaximumValidation1BoxedString(String data) { - this.data = data; - } + public record MaximumValidation1BoxedString(String data) implements MaximumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaximumValidation1BoxedList extends MaximumValidation1Boxed { - public final FrozenList<@Nullable Object> data; - private MaximumValidation1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record MaximumValidation1BoxedList(FrozenList<@Nullable Object> data) implements MaximumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaximumValidation1BoxedMap extends MaximumValidation1Boxed { - public final FrozenMap<@Nullable Object> data; - private MaximumValidation1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record MaximumValidation1BoxedMap(FrozenMap<@Nullable Object> data) implements MaximumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class MaximumValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MaximumValidation1BoxedList>, MapSchemaValidator, MaximumValidation1BoxedMap> { + public static class MaximumValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MaximumValidation1BoxedList>, MapSchemaValidator, MaximumValidation1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public MaximumValidation1BoxedList validateAndBox(List arg, SchemaConfigurati public MaximumValidation1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MaximumValidation1BoxedMap(validate(arg, configuration)); } + @Override + public MaximumValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaximumValidationWithUnsignedInteger.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaximumValidationWithUnsignedInteger.java index 0eebe36727c..9f2eefdd7cd 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaximumValidationWithUnsignedInteger.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaximumValidationWithUnsignedInteger.java @@ -35,78 +35,54 @@ public class MaximumValidationWithUnsignedInteger { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class MaximumValidationWithUnsignedInteger1Boxed permits MaximumValidationWithUnsignedInteger1BoxedVoid, MaximumValidationWithUnsignedInteger1BoxedBoolean, MaximumValidationWithUnsignedInteger1BoxedNumber, MaximumValidationWithUnsignedInteger1BoxedString, MaximumValidationWithUnsignedInteger1BoxedList, MaximumValidationWithUnsignedInteger1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface MaximumValidationWithUnsignedInteger1Boxed permits MaximumValidationWithUnsignedInteger1BoxedVoid, MaximumValidationWithUnsignedInteger1BoxedBoolean, MaximumValidationWithUnsignedInteger1BoxedNumber, MaximumValidationWithUnsignedInteger1BoxedString, MaximumValidationWithUnsignedInteger1BoxedList, MaximumValidationWithUnsignedInteger1BoxedMap { + @Nullable Object getData(); } - public static final class MaximumValidationWithUnsignedInteger1BoxedVoid extends MaximumValidationWithUnsignedInteger1Boxed { - public final Void data; - private MaximumValidationWithUnsignedInteger1BoxedVoid(Void data) { - this.data = data; - } + public record MaximumValidationWithUnsignedInteger1BoxedVoid(Void data) implements MaximumValidationWithUnsignedInteger1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaximumValidationWithUnsignedInteger1BoxedBoolean extends MaximumValidationWithUnsignedInteger1Boxed { - public final boolean data; - private MaximumValidationWithUnsignedInteger1BoxedBoolean(boolean data) { - this.data = data; - } + public record MaximumValidationWithUnsignedInteger1BoxedBoolean(boolean data) implements MaximumValidationWithUnsignedInteger1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaximumValidationWithUnsignedInteger1BoxedNumber extends MaximumValidationWithUnsignedInteger1Boxed { - public final Number data; - private MaximumValidationWithUnsignedInteger1BoxedNumber(Number data) { - this.data = data; - } + public record MaximumValidationWithUnsignedInteger1BoxedNumber(Number data) implements MaximumValidationWithUnsignedInteger1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaximumValidationWithUnsignedInteger1BoxedString extends MaximumValidationWithUnsignedInteger1Boxed { - public final String data; - private MaximumValidationWithUnsignedInteger1BoxedString(String data) { - this.data = data; - } + public record MaximumValidationWithUnsignedInteger1BoxedString(String data) implements MaximumValidationWithUnsignedInteger1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaximumValidationWithUnsignedInteger1BoxedList extends MaximumValidationWithUnsignedInteger1Boxed { - public final FrozenList<@Nullable Object> data; - private MaximumValidationWithUnsignedInteger1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record MaximumValidationWithUnsignedInteger1BoxedList(FrozenList<@Nullable Object> data) implements MaximumValidationWithUnsignedInteger1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaximumValidationWithUnsignedInteger1BoxedMap extends MaximumValidationWithUnsignedInteger1Boxed { - public final FrozenMap<@Nullable Object> data; - private MaximumValidationWithUnsignedInteger1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record MaximumValidationWithUnsignedInteger1BoxedMap(FrozenMap<@Nullable Object> data) implements MaximumValidationWithUnsignedInteger1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class MaximumValidationWithUnsignedInteger1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MaximumValidationWithUnsignedInteger1BoxedList>, MapSchemaValidator, MaximumValidationWithUnsignedInteger1BoxedMap> { + public static class MaximumValidationWithUnsignedInteger1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MaximumValidationWithUnsignedInteger1BoxedList>, MapSchemaValidator, MaximumValidationWithUnsignedInteger1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public MaximumValidationWithUnsignedInteger1BoxedList validateAndBox(List arg public MaximumValidationWithUnsignedInteger1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MaximumValidationWithUnsignedInteger1BoxedMap(validate(arg, configuration)); } + @Override + public MaximumValidationWithUnsignedInteger1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxitemsValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxitemsValidation.java index 3cfd11b3d5e..dfbadbb5e68 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxitemsValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxitemsValidation.java @@ -35,78 +35,54 @@ public class MaxitemsValidation { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class MaxitemsValidation1Boxed permits MaxitemsValidation1BoxedVoid, MaxitemsValidation1BoxedBoolean, MaxitemsValidation1BoxedNumber, MaxitemsValidation1BoxedString, MaxitemsValidation1BoxedList, MaxitemsValidation1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface MaxitemsValidation1Boxed permits MaxitemsValidation1BoxedVoid, MaxitemsValidation1BoxedBoolean, MaxitemsValidation1BoxedNumber, MaxitemsValidation1BoxedString, MaxitemsValidation1BoxedList, MaxitemsValidation1BoxedMap { + @Nullable Object getData(); } - public static final class MaxitemsValidation1BoxedVoid extends MaxitemsValidation1Boxed { - public final Void data; - private MaxitemsValidation1BoxedVoid(Void data) { - this.data = data; - } + public record MaxitemsValidation1BoxedVoid(Void data) implements MaxitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxitemsValidation1BoxedBoolean extends MaxitemsValidation1Boxed { - public final boolean data; - private MaxitemsValidation1BoxedBoolean(boolean data) { - this.data = data; - } + public record MaxitemsValidation1BoxedBoolean(boolean data) implements MaxitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxitemsValidation1BoxedNumber extends MaxitemsValidation1Boxed { - public final Number data; - private MaxitemsValidation1BoxedNumber(Number data) { - this.data = data; - } + public record MaxitemsValidation1BoxedNumber(Number data) implements MaxitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxitemsValidation1BoxedString extends MaxitemsValidation1Boxed { - public final String data; - private MaxitemsValidation1BoxedString(String data) { - this.data = data; - } + public record MaxitemsValidation1BoxedString(String data) implements MaxitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxitemsValidation1BoxedList extends MaxitemsValidation1Boxed { - public final FrozenList<@Nullable Object> data; - private MaxitemsValidation1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record MaxitemsValidation1BoxedList(FrozenList<@Nullable Object> data) implements MaxitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxitemsValidation1BoxedMap extends MaxitemsValidation1Boxed { - public final FrozenMap<@Nullable Object> data; - private MaxitemsValidation1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record MaxitemsValidation1BoxedMap(FrozenMap<@Nullable Object> data) implements MaxitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class MaxitemsValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MaxitemsValidation1BoxedList>, MapSchemaValidator, MaxitemsValidation1BoxedMap> { + public static class MaxitemsValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MaxitemsValidation1BoxedList>, MapSchemaValidator, MaxitemsValidation1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public MaxitemsValidation1BoxedList validateAndBox(List arg, SchemaConfigurat public MaxitemsValidation1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MaxitemsValidation1BoxedMap(validate(arg, configuration)); } + @Override + public MaxitemsValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxlengthValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxlengthValidation.java index 31119d1840d..02d41b936b7 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxlengthValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxlengthValidation.java @@ -35,78 +35,54 @@ public class MaxlengthValidation { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class MaxlengthValidation1Boxed permits MaxlengthValidation1BoxedVoid, MaxlengthValidation1BoxedBoolean, MaxlengthValidation1BoxedNumber, MaxlengthValidation1BoxedString, MaxlengthValidation1BoxedList, MaxlengthValidation1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface MaxlengthValidation1Boxed permits MaxlengthValidation1BoxedVoid, MaxlengthValidation1BoxedBoolean, MaxlengthValidation1BoxedNumber, MaxlengthValidation1BoxedString, MaxlengthValidation1BoxedList, MaxlengthValidation1BoxedMap { + @Nullable Object getData(); } - public static final class MaxlengthValidation1BoxedVoid extends MaxlengthValidation1Boxed { - public final Void data; - private MaxlengthValidation1BoxedVoid(Void data) { - this.data = data; - } + public record MaxlengthValidation1BoxedVoid(Void data) implements MaxlengthValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxlengthValidation1BoxedBoolean extends MaxlengthValidation1Boxed { - public final boolean data; - private MaxlengthValidation1BoxedBoolean(boolean data) { - this.data = data; - } + public record MaxlengthValidation1BoxedBoolean(boolean data) implements MaxlengthValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxlengthValidation1BoxedNumber extends MaxlengthValidation1Boxed { - public final Number data; - private MaxlengthValidation1BoxedNumber(Number data) { - this.data = data; - } + public record MaxlengthValidation1BoxedNumber(Number data) implements MaxlengthValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxlengthValidation1BoxedString extends MaxlengthValidation1Boxed { - public final String data; - private MaxlengthValidation1BoxedString(String data) { - this.data = data; - } + public record MaxlengthValidation1BoxedString(String data) implements MaxlengthValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxlengthValidation1BoxedList extends MaxlengthValidation1Boxed { - public final FrozenList<@Nullable Object> data; - private MaxlengthValidation1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record MaxlengthValidation1BoxedList(FrozenList<@Nullable Object> data) implements MaxlengthValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxlengthValidation1BoxedMap extends MaxlengthValidation1Boxed { - public final FrozenMap<@Nullable Object> data; - private MaxlengthValidation1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record MaxlengthValidation1BoxedMap(FrozenMap<@Nullable Object> data) implements MaxlengthValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class MaxlengthValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MaxlengthValidation1BoxedList>, MapSchemaValidator, MaxlengthValidation1BoxedMap> { + public static class MaxlengthValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MaxlengthValidation1BoxedList>, MapSchemaValidator, MaxlengthValidation1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public MaxlengthValidation1BoxedList validateAndBox(List arg, SchemaConfigura public MaxlengthValidation1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MaxlengthValidation1BoxedMap(validate(arg, configuration)); } + @Override + public MaxlengthValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Maxproperties0MeansTheObjectIsEmpty.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Maxproperties0MeansTheObjectIsEmpty.java index 7f83ee503d6..c71474bd82f 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Maxproperties0MeansTheObjectIsEmpty.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Maxproperties0MeansTheObjectIsEmpty.java @@ -35,78 +35,54 @@ public class Maxproperties0MeansTheObjectIsEmpty { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class Maxproperties0MeansTheObjectIsEmpty1Boxed permits Maxproperties0MeansTheObjectIsEmpty1BoxedVoid, Maxproperties0MeansTheObjectIsEmpty1BoxedBoolean, Maxproperties0MeansTheObjectIsEmpty1BoxedNumber, Maxproperties0MeansTheObjectIsEmpty1BoxedString, Maxproperties0MeansTheObjectIsEmpty1BoxedList, Maxproperties0MeansTheObjectIsEmpty1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Maxproperties0MeansTheObjectIsEmpty1Boxed permits Maxproperties0MeansTheObjectIsEmpty1BoxedVoid, Maxproperties0MeansTheObjectIsEmpty1BoxedBoolean, Maxproperties0MeansTheObjectIsEmpty1BoxedNumber, Maxproperties0MeansTheObjectIsEmpty1BoxedString, Maxproperties0MeansTheObjectIsEmpty1BoxedList, Maxproperties0MeansTheObjectIsEmpty1BoxedMap { + @Nullable Object getData(); } - public static final class Maxproperties0MeansTheObjectIsEmpty1BoxedVoid extends Maxproperties0MeansTheObjectIsEmpty1Boxed { - public final Void data; - private Maxproperties0MeansTheObjectIsEmpty1BoxedVoid(Void data) { - this.data = data; - } + public record Maxproperties0MeansTheObjectIsEmpty1BoxedVoid(Void data) implements Maxproperties0MeansTheObjectIsEmpty1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Maxproperties0MeansTheObjectIsEmpty1BoxedBoolean extends Maxproperties0MeansTheObjectIsEmpty1Boxed { - public final boolean data; - private Maxproperties0MeansTheObjectIsEmpty1BoxedBoolean(boolean data) { - this.data = data; - } + public record Maxproperties0MeansTheObjectIsEmpty1BoxedBoolean(boolean data) implements Maxproperties0MeansTheObjectIsEmpty1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Maxproperties0MeansTheObjectIsEmpty1BoxedNumber extends Maxproperties0MeansTheObjectIsEmpty1Boxed { - public final Number data; - private Maxproperties0MeansTheObjectIsEmpty1BoxedNumber(Number data) { - this.data = data; - } + public record Maxproperties0MeansTheObjectIsEmpty1BoxedNumber(Number data) implements Maxproperties0MeansTheObjectIsEmpty1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Maxproperties0MeansTheObjectIsEmpty1BoxedString extends Maxproperties0MeansTheObjectIsEmpty1Boxed { - public final String data; - private Maxproperties0MeansTheObjectIsEmpty1BoxedString(String data) { - this.data = data; - } + public record Maxproperties0MeansTheObjectIsEmpty1BoxedString(String data) implements Maxproperties0MeansTheObjectIsEmpty1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Maxproperties0MeansTheObjectIsEmpty1BoxedList extends Maxproperties0MeansTheObjectIsEmpty1Boxed { - public final FrozenList<@Nullable Object> data; - private Maxproperties0MeansTheObjectIsEmpty1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Maxproperties0MeansTheObjectIsEmpty1BoxedList(FrozenList<@Nullable Object> data) implements Maxproperties0MeansTheObjectIsEmpty1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Maxproperties0MeansTheObjectIsEmpty1BoxedMap extends Maxproperties0MeansTheObjectIsEmpty1Boxed { - public final FrozenMap<@Nullable Object> data; - private Maxproperties0MeansTheObjectIsEmpty1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Maxproperties0MeansTheObjectIsEmpty1BoxedMap(FrozenMap<@Nullable Object> data) implements Maxproperties0MeansTheObjectIsEmpty1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Maxproperties0MeansTheObjectIsEmpty1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Maxproperties0MeansTheObjectIsEmpty1BoxedList>, MapSchemaValidator, Maxproperties0MeansTheObjectIsEmpty1BoxedMap> { + public static class Maxproperties0MeansTheObjectIsEmpty1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Maxproperties0MeansTheObjectIsEmpty1BoxedList>, MapSchemaValidator, Maxproperties0MeansTheObjectIsEmpty1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public Maxproperties0MeansTheObjectIsEmpty1BoxedList validateAndBox(List arg, public Maxproperties0MeansTheObjectIsEmpty1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Maxproperties0MeansTheObjectIsEmpty1BoxedMap(validate(arg, configuration)); } + @Override + public Maxproperties0MeansTheObjectIsEmpty1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxpropertiesValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxpropertiesValidation.java index c70a020af26..5386164471a 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxpropertiesValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxpropertiesValidation.java @@ -35,78 +35,54 @@ public class MaxpropertiesValidation { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class MaxpropertiesValidation1Boxed permits MaxpropertiesValidation1BoxedVoid, MaxpropertiesValidation1BoxedBoolean, MaxpropertiesValidation1BoxedNumber, MaxpropertiesValidation1BoxedString, MaxpropertiesValidation1BoxedList, MaxpropertiesValidation1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface MaxpropertiesValidation1Boxed permits MaxpropertiesValidation1BoxedVoid, MaxpropertiesValidation1BoxedBoolean, MaxpropertiesValidation1BoxedNumber, MaxpropertiesValidation1BoxedString, MaxpropertiesValidation1BoxedList, MaxpropertiesValidation1BoxedMap { + @Nullable Object getData(); } - public static final class MaxpropertiesValidation1BoxedVoid extends MaxpropertiesValidation1Boxed { - public final Void data; - private MaxpropertiesValidation1BoxedVoid(Void data) { - this.data = data; - } + public record MaxpropertiesValidation1BoxedVoid(Void data) implements MaxpropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxpropertiesValidation1BoxedBoolean extends MaxpropertiesValidation1Boxed { - public final boolean data; - private MaxpropertiesValidation1BoxedBoolean(boolean data) { - this.data = data; - } + public record MaxpropertiesValidation1BoxedBoolean(boolean data) implements MaxpropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxpropertiesValidation1BoxedNumber extends MaxpropertiesValidation1Boxed { - public final Number data; - private MaxpropertiesValidation1BoxedNumber(Number data) { - this.data = data; - } + public record MaxpropertiesValidation1BoxedNumber(Number data) implements MaxpropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxpropertiesValidation1BoxedString extends MaxpropertiesValidation1Boxed { - public final String data; - private MaxpropertiesValidation1BoxedString(String data) { - this.data = data; - } + public record MaxpropertiesValidation1BoxedString(String data) implements MaxpropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxpropertiesValidation1BoxedList extends MaxpropertiesValidation1Boxed { - public final FrozenList<@Nullable Object> data; - private MaxpropertiesValidation1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record MaxpropertiesValidation1BoxedList(FrozenList<@Nullable Object> data) implements MaxpropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MaxpropertiesValidation1BoxedMap extends MaxpropertiesValidation1Boxed { - public final FrozenMap<@Nullable Object> data; - private MaxpropertiesValidation1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record MaxpropertiesValidation1BoxedMap(FrozenMap<@Nullable Object> data) implements MaxpropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class MaxpropertiesValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MaxpropertiesValidation1BoxedList>, MapSchemaValidator, MaxpropertiesValidation1BoxedMap> { + public static class MaxpropertiesValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MaxpropertiesValidation1BoxedList>, MapSchemaValidator, MaxpropertiesValidation1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public MaxpropertiesValidation1BoxedList validateAndBox(List arg, SchemaConfi public MaxpropertiesValidation1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MaxpropertiesValidation1BoxedMap(validate(arg, configuration)); } + @Override + public MaxpropertiesValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MincontainsWithoutContainsIsIgnored.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MincontainsWithoutContainsIsIgnored.java index d0ac8197835..a7fe9ba9db4 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MincontainsWithoutContainsIsIgnored.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MincontainsWithoutContainsIsIgnored.java @@ -35,78 +35,54 @@ public class MincontainsWithoutContainsIsIgnored { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class MincontainsWithoutContainsIsIgnored1Boxed permits MincontainsWithoutContainsIsIgnored1BoxedVoid, MincontainsWithoutContainsIsIgnored1BoxedBoolean, MincontainsWithoutContainsIsIgnored1BoxedNumber, MincontainsWithoutContainsIsIgnored1BoxedString, MincontainsWithoutContainsIsIgnored1BoxedList, MincontainsWithoutContainsIsIgnored1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface MincontainsWithoutContainsIsIgnored1Boxed permits MincontainsWithoutContainsIsIgnored1BoxedVoid, MincontainsWithoutContainsIsIgnored1BoxedBoolean, MincontainsWithoutContainsIsIgnored1BoxedNumber, MincontainsWithoutContainsIsIgnored1BoxedString, MincontainsWithoutContainsIsIgnored1BoxedList, MincontainsWithoutContainsIsIgnored1BoxedMap { + @Nullable Object getData(); } - public static final class MincontainsWithoutContainsIsIgnored1BoxedVoid extends MincontainsWithoutContainsIsIgnored1Boxed { - public final Void data; - private MincontainsWithoutContainsIsIgnored1BoxedVoid(Void data) { - this.data = data; - } + public record MincontainsWithoutContainsIsIgnored1BoxedVoid(Void data) implements MincontainsWithoutContainsIsIgnored1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MincontainsWithoutContainsIsIgnored1BoxedBoolean extends MincontainsWithoutContainsIsIgnored1Boxed { - public final boolean data; - private MincontainsWithoutContainsIsIgnored1BoxedBoolean(boolean data) { - this.data = data; - } + public record MincontainsWithoutContainsIsIgnored1BoxedBoolean(boolean data) implements MincontainsWithoutContainsIsIgnored1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MincontainsWithoutContainsIsIgnored1BoxedNumber extends MincontainsWithoutContainsIsIgnored1Boxed { - public final Number data; - private MincontainsWithoutContainsIsIgnored1BoxedNumber(Number data) { - this.data = data; - } + public record MincontainsWithoutContainsIsIgnored1BoxedNumber(Number data) implements MincontainsWithoutContainsIsIgnored1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MincontainsWithoutContainsIsIgnored1BoxedString extends MincontainsWithoutContainsIsIgnored1Boxed { - public final String data; - private MincontainsWithoutContainsIsIgnored1BoxedString(String data) { - this.data = data; - } + public record MincontainsWithoutContainsIsIgnored1BoxedString(String data) implements MincontainsWithoutContainsIsIgnored1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MincontainsWithoutContainsIsIgnored1BoxedList extends MincontainsWithoutContainsIsIgnored1Boxed { - public final FrozenList<@Nullable Object> data; - private MincontainsWithoutContainsIsIgnored1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record MincontainsWithoutContainsIsIgnored1BoxedList(FrozenList<@Nullable Object> data) implements MincontainsWithoutContainsIsIgnored1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MincontainsWithoutContainsIsIgnored1BoxedMap extends MincontainsWithoutContainsIsIgnored1Boxed { - public final FrozenMap<@Nullable Object> data; - private MincontainsWithoutContainsIsIgnored1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record MincontainsWithoutContainsIsIgnored1BoxedMap(FrozenMap<@Nullable Object> data) implements MincontainsWithoutContainsIsIgnored1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class MincontainsWithoutContainsIsIgnored1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MincontainsWithoutContainsIsIgnored1BoxedList>, MapSchemaValidator, MincontainsWithoutContainsIsIgnored1BoxedMap> { + public static class MincontainsWithoutContainsIsIgnored1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MincontainsWithoutContainsIsIgnored1BoxedList>, MapSchemaValidator, MincontainsWithoutContainsIsIgnored1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public MincontainsWithoutContainsIsIgnored1BoxedList validateAndBox(List arg, public MincontainsWithoutContainsIsIgnored1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MincontainsWithoutContainsIsIgnored1BoxedMap(validate(arg, configuration)); } + @Override + public MincontainsWithoutContainsIsIgnored1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinimumValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinimumValidation.java index b27eb1b8c5c..29325be0f63 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinimumValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinimumValidation.java @@ -35,78 +35,54 @@ public class MinimumValidation { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class MinimumValidation1Boxed permits MinimumValidation1BoxedVoid, MinimumValidation1BoxedBoolean, MinimumValidation1BoxedNumber, MinimumValidation1BoxedString, MinimumValidation1BoxedList, MinimumValidation1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface MinimumValidation1Boxed permits MinimumValidation1BoxedVoid, MinimumValidation1BoxedBoolean, MinimumValidation1BoxedNumber, MinimumValidation1BoxedString, MinimumValidation1BoxedList, MinimumValidation1BoxedMap { + @Nullable Object getData(); } - public static final class MinimumValidation1BoxedVoid extends MinimumValidation1Boxed { - public final Void data; - private MinimumValidation1BoxedVoid(Void data) { - this.data = data; - } + public record MinimumValidation1BoxedVoid(Void data) implements MinimumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinimumValidation1BoxedBoolean extends MinimumValidation1Boxed { - public final boolean data; - private MinimumValidation1BoxedBoolean(boolean data) { - this.data = data; - } + public record MinimumValidation1BoxedBoolean(boolean data) implements MinimumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinimumValidation1BoxedNumber extends MinimumValidation1Boxed { - public final Number data; - private MinimumValidation1BoxedNumber(Number data) { - this.data = data; - } + public record MinimumValidation1BoxedNumber(Number data) implements MinimumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinimumValidation1BoxedString extends MinimumValidation1Boxed { - public final String data; - private MinimumValidation1BoxedString(String data) { - this.data = data; - } + public record MinimumValidation1BoxedString(String data) implements MinimumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinimumValidation1BoxedList extends MinimumValidation1Boxed { - public final FrozenList<@Nullable Object> data; - private MinimumValidation1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record MinimumValidation1BoxedList(FrozenList<@Nullable Object> data) implements MinimumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinimumValidation1BoxedMap extends MinimumValidation1Boxed { - public final FrozenMap<@Nullable Object> data; - private MinimumValidation1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record MinimumValidation1BoxedMap(FrozenMap<@Nullable Object> data) implements MinimumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class MinimumValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MinimumValidation1BoxedList>, MapSchemaValidator, MinimumValidation1BoxedMap> { + public static class MinimumValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MinimumValidation1BoxedList>, MapSchemaValidator, MinimumValidation1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public MinimumValidation1BoxedList validateAndBox(List arg, SchemaConfigurati public MinimumValidation1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MinimumValidation1BoxedMap(validate(arg, configuration)); } + @Override + public MinimumValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinimumValidationWithSignedInteger.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinimumValidationWithSignedInteger.java index e22e2b223a8..531298768ff 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinimumValidationWithSignedInteger.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinimumValidationWithSignedInteger.java @@ -35,78 +35,54 @@ public class MinimumValidationWithSignedInteger { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class MinimumValidationWithSignedInteger1Boxed permits MinimumValidationWithSignedInteger1BoxedVoid, MinimumValidationWithSignedInteger1BoxedBoolean, MinimumValidationWithSignedInteger1BoxedNumber, MinimumValidationWithSignedInteger1BoxedString, MinimumValidationWithSignedInteger1BoxedList, MinimumValidationWithSignedInteger1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface MinimumValidationWithSignedInteger1Boxed permits MinimumValidationWithSignedInteger1BoxedVoid, MinimumValidationWithSignedInteger1BoxedBoolean, MinimumValidationWithSignedInteger1BoxedNumber, MinimumValidationWithSignedInteger1BoxedString, MinimumValidationWithSignedInteger1BoxedList, MinimumValidationWithSignedInteger1BoxedMap { + @Nullable Object getData(); } - public static final class MinimumValidationWithSignedInteger1BoxedVoid extends MinimumValidationWithSignedInteger1Boxed { - public final Void data; - private MinimumValidationWithSignedInteger1BoxedVoid(Void data) { - this.data = data; - } + public record MinimumValidationWithSignedInteger1BoxedVoid(Void data) implements MinimumValidationWithSignedInteger1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinimumValidationWithSignedInteger1BoxedBoolean extends MinimumValidationWithSignedInteger1Boxed { - public final boolean data; - private MinimumValidationWithSignedInteger1BoxedBoolean(boolean data) { - this.data = data; - } + public record MinimumValidationWithSignedInteger1BoxedBoolean(boolean data) implements MinimumValidationWithSignedInteger1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinimumValidationWithSignedInteger1BoxedNumber extends MinimumValidationWithSignedInteger1Boxed { - public final Number data; - private MinimumValidationWithSignedInteger1BoxedNumber(Number data) { - this.data = data; - } + public record MinimumValidationWithSignedInteger1BoxedNumber(Number data) implements MinimumValidationWithSignedInteger1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinimumValidationWithSignedInteger1BoxedString extends MinimumValidationWithSignedInteger1Boxed { - public final String data; - private MinimumValidationWithSignedInteger1BoxedString(String data) { - this.data = data; - } + public record MinimumValidationWithSignedInteger1BoxedString(String data) implements MinimumValidationWithSignedInteger1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinimumValidationWithSignedInteger1BoxedList extends MinimumValidationWithSignedInteger1Boxed { - public final FrozenList<@Nullable Object> data; - private MinimumValidationWithSignedInteger1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record MinimumValidationWithSignedInteger1BoxedList(FrozenList<@Nullable Object> data) implements MinimumValidationWithSignedInteger1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinimumValidationWithSignedInteger1BoxedMap extends MinimumValidationWithSignedInteger1Boxed { - public final FrozenMap<@Nullable Object> data; - private MinimumValidationWithSignedInteger1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record MinimumValidationWithSignedInteger1BoxedMap(FrozenMap<@Nullable Object> data) implements MinimumValidationWithSignedInteger1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class MinimumValidationWithSignedInteger1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MinimumValidationWithSignedInteger1BoxedList>, MapSchemaValidator, MinimumValidationWithSignedInteger1BoxedMap> { + public static class MinimumValidationWithSignedInteger1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MinimumValidationWithSignedInteger1BoxedList>, MapSchemaValidator, MinimumValidationWithSignedInteger1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public MinimumValidationWithSignedInteger1BoxedList validateAndBox(List arg, public MinimumValidationWithSignedInteger1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MinimumValidationWithSignedInteger1BoxedMap(validate(arg, configuration)); } + @Override + public MinimumValidationWithSignedInteger1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinitemsValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinitemsValidation.java index c936275b7b5..13a669101d6 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinitemsValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinitemsValidation.java @@ -35,78 +35,54 @@ public class MinitemsValidation { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class MinitemsValidation1Boxed permits MinitemsValidation1BoxedVoid, MinitemsValidation1BoxedBoolean, MinitemsValidation1BoxedNumber, MinitemsValidation1BoxedString, MinitemsValidation1BoxedList, MinitemsValidation1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface MinitemsValidation1Boxed permits MinitemsValidation1BoxedVoid, MinitemsValidation1BoxedBoolean, MinitemsValidation1BoxedNumber, MinitemsValidation1BoxedString, MinitemsValidation1BoxedList, MinitemsValidation1BoxedMap { + @Nullable Object getData(); } - public static final class MinitemsValidation1BoxedVoid extends MinitemsValidation1Boxed { - public final Void data; - private MinitemsValidation1BoxedVoid(Void data) { - this.data = data; - } + public record MinitemsValidation1BoxedVoid(Void data) implements MinitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinitemsValidation1BoxedBoolean extends MinitemsValidation1Boxed { - public final boolean data; - private MinitemsValidation1BoxedBoolean(boolean data) { - this.data = data; - } + public record MinitemsValidation1BoxedBoolean(boolean data) implements MinitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinitemsValidation1BoxedNumber extends MinitemsValidation1Boxed { - public final Number data; - private MinitemsValidation1BoxedNumber(Number data) { - this.data = data; - } + public record MinitemsValidation1BoxedNumber(Number data) implements MinitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinitemsValidation1BoxedString extends MinitemsValidation1Boxed { - public final String data; - private MinitemsValidation1BoxedString(String data) { - this.data = data; - } + public record MinitemsValidation1BoxedString(String data) implements MinitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinitemsValidation1BoxedList extends MinitemsValidation1Boxed { - public final FrozenList<@Nullable Object> data; - private MinitemsValidation1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record MinitemsValidation1BoxedList(FrozenList<@Nullable Object> data) implements MinitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinitemsValidation1BoxedMap extends MinitemsValidation1Boxed { - public final FrozenMap<@Nullable Object> data; - private MinitemsValidation1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record MinitemsValidation1BoxedMap(FrozenMap<@Nullable Object> data) implements MinitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class MinitemsValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MinitemsValidation1BoxedList>, MapSchemaValidator, MinitemsValidation1BoxedMap> { + public static class MinitemsValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MinitemsValidation1BoxedList>, MapSchemaValidator, MinitemsValidation1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public MinitemsValidation1BoxedList validateAndBox(List arg, SchemaConfigurat public MinitemsValidation1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MinitemsValidation1BoxedMap(validate(arg, configuration)); } + @Override + public MinitemsValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinlengthValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinlengthValidation.java index 2ab8aacdd70..835bdc24f37 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinlengthValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinlengthValidation.java @@ -35,78 +35,54 @@ public class MinlengthValidation { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class MinlengthValidation1Boxed permits MinlengthValidation1BoxedVoid, MinlengthValidation1BoxedBoolean, MinlengthValidation1BoxedNumber, MinlengthValidation1BoxedString, MinlengthValidation1BoxedList, MinlengthValidation1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface MinlengthValidation1Boxed permits MinlengthValidation1BoxedVoid, MinlengthValidation1BoxedBoolean, MinlengthValidation1BoxedNumber, MinlengthValidation1BoxedString, MinlengthValidation1BoxedList, MinlengthValidation1BoxedMap { + @Nullable Object getData(); } - public static final class MinlengthValidation1BoxedVoid extends MinlengthValidation1Boxed { - public final Void data; - private MinlengthValidation1BoxedVoid(Void data) { - this.data = data; - } + public record MinlengthValidation1BoxedVoid(Void data) implements MinlengthValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinlengthValidation1BoxedBoolean extends MinlengthValidation1Boxed { - public final boolean data; - private MinlengthValidation1BoxedBoolean(boolean data) { - this.data = data; - } + public record MinlengthValidation1BoxedBoolean(boolean data) implements MinlengthValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinlengthValidation1BoxedNumber extends MinlengthValidation1Boxed { - public final Number data; - private MinlengthValidation1BoxedNumber(Number data) { - this.data = data; - } + public record MinlengthValidation1BoxedNumber(Number data) implements MinlengthValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinlengthValidation1BoxedString extends MinlengthValidation1Boxed { - public final String data; - private MinlengthValidation1BoxedString(String data) { - this.data = data; - } + public record MinlengthValidation1BoxedString(String data) implements MinlengthValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinlengthValidation1BoxedList extends MinlengthValidation1Boxed { - public final FrozenList<@Nullable Object> data; - private MinlengthValidation1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record MinlengthValidation1BoxedList(FrozenList<@Nullable Object> data) implements MinlengthValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinlengthValidation1BoxedMap extends MinlengthValidation1Boxed { - public final FrozenMap<@Nullable Object> data; - private MinlengthValidation1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record MinlengthValidation1BoxedMap(FrozenMap<@Nullable Object> data) implements MinlengthValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class MinlengthValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MinlengthValidation1BoxedList>, MapSchemaValidator, MinlengthValidation1BoxedMap> { + public static class MinlengthValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MinlengthValidation1BoxedList>, MapSchemaValidator, MinlengthValidation1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public MinlengthValidation1BoxedList validateAndBox(List arg, SchemaConfigura public MinlengthValidation1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MinlengthValidation1BoxedMap(validate(arg, configuration)); } + @Override + public MinlengthValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinpropertiesValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinpropertiesValidation.java index 23d772b6a6a..1802917d267 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinpropertiesValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinpropertiesValidation.java @@ -35,78 +35,54 @@ public class MinpropertiesValidation { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class MinpropertiesValidation1Boxed permits MinpropertiesValidation1BoxedVoid, MinpropertiesValidation1BoxedBoolean, MinpropertiesValidation1BoxedNumber, MinpropertiesValidation1BoxedString, MinpropertiesValidation1BoxedList, MinpropertiesValidation1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface MinpropertiesValidation1Boxed permits MinpropertiesValidation1BoxedVoid, MinpropertiesValidation1BoxedBoolean, MinpropertiesValidation1BoxedNumber, MinpropertiesValidation1BoxedString, MinpropertiesValidation1BoxedList, MinpropertiesValidation1BoxedMap { + @Nullable Object getData(); } - public static final class MinpropertiesValidation1BoxedVoid extends MinpropertiesValidation1Boxed { - public final Void data; - private MinpropertiesValidation1BoxedVoid(Void data) { - this.data = data; - } + public record MinpropertiesValidation1BoxedVoid(Void data) implements MinpropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinpropertiesValidation1BoxedBoolean extends MinpropertiesValidation1Boxed { - public final boolean data; - private MinpropertiesValidation1BoxedBoolean(boolean data) { - this.data = data; - } + public record MinpropertiesValidation1BoxedBoolean(boolean data) implements MinpropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinpropertiesValidation1BoxedNumber extends MinpropertiesValidation1Boxed { - public final Number data; - private MinpropertiesValidation1BoxedNumber(Number data) { - this.data = data; - } + public record MinpropertiesValidation1BoxedNumber(Number data) implements MinpropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinpropertiesValidation1BoxedString extends MinpropertiesValidation1Boxed { - public final String data; - private MinpropertiesValidation1BoxedString(String data) { - this.data = data; - } + public record MinpropertiesValidation1BoxedString(String data) implements MinpropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinpropertiesValidation1BoxedList extends MinpropertiesValidation1Boxed { - public final FrozenList<@Nullable Object> data; - private MinpropertiesValidation1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record MinpropertiesValidation1BoxedList(FrozenList<@Nullable Object> data) implements MinpropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MinpropertiesValidation1BoxedMap extends MinpropertiesValidation1Boxed { - public final FrozenMap<@Nullable Object> data; - private MinpropertiesValidation1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record MinpropertiesValidation1BoxedMap(FrozenMap<@Nullable Object> data) implements MinpropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class MinpropertiesValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MinpropertiesValidation1BoxedList>, MapSchemaValidator, MinpropertiesValidation1BoxedMap> { + public static class MinpropertiesValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MinpropertiesValidation1BoxedList>, MapSchemaValidator, MinpropertiesValidation1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public MinpropertiesValidation1BoxedList validateAndBox(List arg, SchemaConfi public MinpropertiesValidation1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MinpropertiesValidation1BoxedMap(validate(arg, configuration)); } + @Override + public MinpropertiesValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MultipleDependentsRequired.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MultipleDependentsRequired.java index 7a76fe1b06a..8f0ecd29ca8 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MultipleDependentsRequired.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MultipleDependentsRequired.java @@ -38,78 +38,54 @@ public class MultipleDependentsRequired { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class MultipleDependentsRequired1Boxed permits MultipleDependentsRequired1BoxedVoid, MultipleDependentsRequired1BoxedBoolean, MultipleDependentsRequired1BoxedNumber, MultipleDependentsRequired1BoxedString, MultipleDependentsRequired1BoxedList, MultipleDependentsRequired1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface MultipleDependentsRequired1Boxed permits MultipleDependentsRequired1BoxedVoid, MultipleDependentsRequired1BoxedBoolean, MultipleDependentsRequired1BoxedNumber, MultipleDependentsRequired1BoxedString, MultipleDependentsRequired1BoxedList, MultipleDependentsRequired1BoxedMap { + @Nullable Object getData(); } - public static final class MultipleDependentsRequired1BoxedVoid extends MultipleDependentsRequired1Boxed { - public final Void data; - private MultipleDependentsRequired1BoxedVoid(Void data) { - this.data = data; - } + public record MultipleDependentsRequired1BoxedVoid(Void data) implements MultipleDependentsRequired1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MultipleDependentsRequired1BoxedBoolean extends MultipleDependentsRequired1Boxed { - public final boolean data; - private MultipleDependentsRequired1BoxedBoolean(boolean data) { - this.data = data; - } + public record MultipleDependentsRequired1BoxedBoolean(boolean data) implements MultipleDependentsRequired1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MultipleDependentsRequired1BoxedNumber extends MultipleDependentsRequired1Boxed { - public final Number data; - private MultipleDependentsRequired1BoxedNumber(Number data) { - this.data = data; - } + public record MultipleDependentsRequired1BoxedNumber(Number data) implements MultipleDependentsRequired1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MultipleDependentsRequired1BoxedString extends MultipleDependentsRequired1Boxed { - public final String data; - private MultipleDependentsRequired1BoxedString(String data) { - this.data = data; - } + public record MultipleDependentsRequired1BoxedString(String data) implements MultipleDependentsRequired1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MultipleDependentsRequired1BoxedList extends MultipleDependentsRequired1Boxed { - public final FrozenList<@Nullable Object> data; - private MultipleDependentsRequired1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record MultipleDependentsRequired1BoxedList(FrozenList<@Nullable Object> data) implements MultipleDependentsRequired1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MultipleDependentsRequired1BoxedMap extends MultipleDependentsRequired1Boxed { - public final FrozenMap<@Nullable Object> data; - private MultipleDependentsRequired1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record MultipleDependentsRequired1BoxedMap(FrozenMap<@Nullable Object> data) implements MultipleDependentsRequired1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class MultipleDependentsRequired1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MultipleDependentsRequired1BoxedList>, MapSchemaValidator, MultipleDependentsRequired1BoxedMap> { + public static class MultipleDependentsRequired1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MultipleDependentsRequired1BoxedList>, MapSchemaValidator, MultipleDependentsRequired1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -222,11 +198,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -257,11 +233,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -340,5 +316,24 @@ public MultipleDependentsRequired1BoxedList validateAndBox(List arg, SchemaCo public MultipleDependentsRequired1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MultipleDependentsRequired1BoxedMap(validate(arg, configuration)); } + @Override + public MultipleDependentsRequired1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MultipleSimultaneousPatternpropertiesAreValidated.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MultipleSimultaneousPatternpropertiesAreValidated.java index eced97b84a1..4214bb19e2d 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MultipleSimultaneousPatternpropertiesAreValidated.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MultipleSimultaneousPatternpropertiesAreValidated.java @@ -49,78 +49,54 @@ public static A getInstance() { } - public static abstract sealed class AaaBoxed permits AaaBoxedVoid, AaaBoxedBoolean, AaaBoxedNumber, AaaBoxedString, AaaBoxedList, AaaBoxedMap { - public abstract @Nullable Object data(); + public sealed interface AaaBoxed permits AaaBoxedVoid, AaaBoxedBoolean, AaaBoxedNumber, AaaBoxedString, AaaBoxedList, AaaBoxedMap { + @Nullable Object getData(); } - public static final class AaaBoxedVoid extends AaaBoxed { - public final Void data; - private AaaBoxedVoid(Void data) { - this.data = data; - } + public record AaaBoxedVoid(Void data) implements AaaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AaaBoxedBoolean extends AaaBoxed { - public final boolean data; - private AaaBoxedBoolean(boolean data) { - this.data = data; - } + public record AaaBoxedBoolean(boolean data) implements AaaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AaaBoxedNumber extends AaaBoxed { - public final Number data; - private AaaBoxedNumber(Number data) { - this.data = data; - } + public record AaaBoxedNumber(Number data) implements AaaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AaaBoxedString extends AaaBoxed { - public final String data; - private AaaBoxedString(String data) { - this.data = data; - } + public record AaaBoxedString(String data) implements AaaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AaaBoxedList extends AaaBoxed { - public final FrozenList<@Nullable Object> data; - private AaaBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record AaaBoxedList(FrozenList<@Nullable Object> data) implements AaaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AaaBoxedMap extends AaaBoxed { - public final FrozenMap<@Nullable Object> data; - private AaaBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record AaaBoxedMap(FrozenMap<@Nullable Object> data) implements AaaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Aaa extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AaaBoxedList>, MapSchemaValidator, AaaBoxedMap> { + public static class Aaa extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AaaBoxedList>, MapSchemaValidator, AaaBoxedMap> { private static @Nullable Aaa instance = null; protected Aaa() { @@ -219,11 +195,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -254,11 +230,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -337,80 +313,75 @@ public AaaBoxedList validateAndBox(List arg, SchemaConfiguration configuratio public AaaBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AaaBoxedMap(validate(arg, configuration)); } + @Override + public AaaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class MultipleSimultaneousPatternpropertiesAreValidated1Boxed permits MultipleSimultaneousPatternpropertiesAreValidated1BoxedVoid, MultipleSimultaneousPatternpropertiesAreValidated1BoxedBoolean, MultipleSimultaneousPatternpropertiesAreValidated1BoxedNumber, MultipleSimultaneousPatternpropertiesAreValidated1BoxedString, MultipleSimultaneousPatternpropertiesAreValidated1BoxedList, MultipleSimultaneousPatternpropertiesAreValidated1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface MultipleSimultaneousPatternpropertiesAreValidated1Boxed permits MultipleSimultaneousPatternpropertiesAreValidated1BoxedVoid, MultipleSimultaneousPatternpropertiesAreValidated1BoxedBoolean, MultipleSimultaneousPatternpropertiesAreValidated1BoxedNumber, MultipleSimultaneousPatternpropertiesAreValidated1BoxedString, MultipleSimultaneousPatternpropertiesAreValidated1BoxedList, MultipleSimultaneousPatternpropertiesAreValidated1BoxedMap { + @Nullable Object getData(); } - public static final class MultipleSimultaneousPatternpropertiesAreValidated1BoxedVoid extends MultipleSimultaneousPatternpropertiesAreValidated1Boxed { - public final Void data; - private MultipleSimultaneousPatternpropertiesAreValidated1BoxedVoid(Void data) { - this.data = data; - } + public record MultipleSimultaneousPatternpropertiesAreValidated1BoxedVoid(Void data) implements MultipleSimultaneousPatternpropertiesAreValidated1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MultipleSimultaneousPatternpropertiesAreValidated1BoxedBoolean extends MultipleSimultaneousPatternpropertiesAreValidated1Boxed { - public final boolean data; - private MultipleSimultaneousPatternpropertiesAreValidated1BoxedBoolean(boolean data) { - this.data = data; - } + public record MultipleSimultaneousPatternpropertiesAreValidated1BoxedBoolean(boolean data) implements MultipleSimultaneousPatternpropertiesAreValidated1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MultipleSimultaneousPatternpropertiesAreValidated1BoxedNumber extends MultipleSimultaneousPatternpropertiesAreValidated1Boxed { - public final Number data; - private MultipleSimultaneousPatternpropertiesAreValidated1BoxedNumber(Number data) { - this.data = data; - } + public record MultipleSimultaneousPatternpropertiesAreValidated1BoxedNumber(Number data) implements MultipleSimultaneousPatternpropertiesAreValidated1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MultipleSimultaneousPatternpropertiesAreValidated1BoxedString extends MultipleSimultaneousPatternpropertiesAreValidated1Boxed { - public final String data; - private MultipleSimultaneousPatternpropertiesAreValidated1BoxedString(String data) { - this.data = data; - } + public record MultipleSimultaneousPatternpropertiesAreValidated1BoxedString(String data) implements MultipleSimultaneousPatternpropertiesAreValidated1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MultipleSimultaneousPatternpropertiesAreValidated1BoxedList extends MultipleSimultaneousPatternpropertiesAreValidated1Boxed { - public final FrozenList<@Nullable Object> data; - private MultipleSimultaneousPatternpropertiesAreValidated1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record MultipleSimultaneousPatternpropertiesAreValidated1BoxedList(FrozenList<@Nullable Object> data) implements MultipleSimultaneousPatternpropertiesAreValidated1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MultipleSimultaneousPatternpropertiesAreValidated1BoxedMap extends MultipleSimultaneousPatternpropertiesAreValidated1Boxed { - public final FrozenMap<@Nullable Object> data; - private MultipleSimultaneousPatternpropertiesAreValidated1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record MultipleSimultaneousPatternpropertiesAreValidated1BoxedMap(FrozenMap<@Nullable Object> data) implements MultipleSimultaneousPatternpropertiesAreValidated1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class MultipleSimultaneousPatternpropertiesAreValidated1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MultipleSimultaneousPatternpropertiesAreValidated1BoxedList>, MapSchemaValidator, MultipleSimultaneousPatternpropertiesAreValidated1BoxedMap> { + public static class MultipleSimultaneousPatternpropertiesAreValidated1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MultipleSimultaneousPatternpropertiesAreValidated1BoxedList>, MapSchemaValidator, MultipleSimultaneousPatternpropertiesAreValidated1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -518,11 +489,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -553,11 +524,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -636,5 +607,24 @@ public MultipleSimultaneousPatternpropertiesAreValidated1BoxedList validateAndBo public MultipleSimultaneousPatternpropertiesAreValidated1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MultipleSimultaneousPatternpropertiesAreValidated1BoxedMap(validate(arg, configuration)); } + @Override + public MultipleSimultaneousPatternpropertiesAreValidated1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MultipleTypesCanBeSpecifiedInAnArray.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MultipleTypesCanBeSpecifiedInAnArray.java index 9a40ec9183e..9a4a8a513ee 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MultipleTypesCanBeSpecifiedInAnArray.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MultipleTypesCanBeSpecifiedInAnArray.java @@ -21,35 +21,27 @@ public class MultipleTypesCanBeSpecifiedInAnArray { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class MultipleTypesCanBeSpecifiedInAnArray1Boxed permits MultipleTypesCanBeSpecifiedInAnArray1BoxedNumber, MultipleTypesCanBeSpecifiedInAnArray1BoxedString { - public abstract @Nullable Object data(); + public sealed interface MultipleTypesCanBeSpecifiedInAnArray1Boxed permits MultipleTypesCanBeSpecifiedInAnArray1BoxedNumber, MultipleTypesCanBeSpecifiedInAnArray1BoxedString { + @Nullable Object getData(); } - public static final class MultipleTypesCanBeSpecifiedInAnArray1BoxedNumber extends MultipleTypesCanBeSpecifiedInAnArray1Boxed { - public final Number data; - private MultipleTypesCanBeSpecifiedInAnArray1BoxedNumber(Number data) { - this.data = data; - } + public record MultipleTypesCanBeSpecifiedInAnArray1BoxedNumber(Number data) implements MultipleTypesCanBeSpecifiedInAnArray1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class MultipleTypesCanBeSpecifiedInAnArray1BoxedString extends MultipleTypesCanBeSpecifiedInAnArray1Boxed { - public final String data; - private MultipleTypesCanBeSpecifiedInAnArray1BoxedString(String data) { - this.data = data; - } + public record MultipleTypesCanBeSpecifiedInAnArray1BoxedString(String data) implements MultipleTypesCanBeSpecifiedInAnArray1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class MultipleTypesCanBeSpecifiedInAnArray1 extends JsonSchema implements NumberSchemaValidator, StringSchemaValidator { + public static class MultipleTypesCanBeSpecifiedInAnArray1 extends JsonSchema implements NumberSchemaValidator, StringSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -142,5 +134,14 @@ public MultipleTypesCanBeSpecifiedInAnArray1BoxedNumber validateAndBox(Number ar public MultipleTypesCanBeSpecifiedInAnArray1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MultipleTypesCanBeSpecifiedInAnArray1BoxedString(validate(arg, configuration)); } + @Override + public MultipleTypesCanBeSpecifiedInAnArray1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedAllofToCheckValidationSemantics.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedAllofToCheckValidationSemantics.java index 87939b8db33..b7648383ba2 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedAllofToCheckValidationSemantics.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedAllofToCheckValidationSemantics.java @@ -47,78 +47,54 @@ public static Schema01 getInstance() { } - public static abstract sealed class Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { + @Nullable Object getData(); } - public static final class Schema0BoxedVoid extends Schema0Boxed { - public final Void data; - private Schema0BoxedVoid(Void data) { - this.data = data; - } + public record Schema0BoxedVoid(Void data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedBoolean extends Schema0Boxed { - public final boolean data; - private Schema0BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema0BoxedBoolean(boolean data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedNumber extends Schema0Boxed { - public final Number data; - private Schema0BoxedNumber(Number data) { - this.data = data; - } + public record Schema0BoxedNumber(Number data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedString extends Schema0Boxed { - public final String data; - private Schema0BoxedString(String data) { - this.data = data; - } + public record Schema0BoxedString(String data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedList extends Schema0Boxed { - public final FrozenList<@Nullable Object> data; - private Schema0BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedList(FrozenList<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedMap extends Schema0Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema0BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedMap(FrozenMap<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator, Schema0BoxedMap> { + public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator, Schema0BoxedMap> { private static @Nullable Schema0 instance = null; protected Schema0() { @@ -219,11 +195,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -254,11 +230,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -337,80 +313,75 @@ public Schema0BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema0BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema0BoxedMap(validate(arg, configuration)); } + @Override + public Schema0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class NestedAllofToCheckValidationSemantics1Boxed permits NestedAllofToCheckValidationSemantics1BoxedVoid, NestedAllofToCheckValidationSemantics1BoxedBoolean, NestedAllofToCheckValidationSemantics1BoxedNumber, NestedAllofToCheckValidationSemantics1BoxedString, NestedAllofToCheckValidationSemantics1BoxedList, NestedAllofToCheckValidationSemantics1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface NestedAllofToCheckValidationSemantics1Boxed permits NestedAllofToCheckValidationSemantics1BoxedVoid, NestedAllofToCheckValidationSemantics1BoxedBoolean, NestedAllofToCheckValidationSemantics1BoxedNumber, NestedAllofToCheckValidationSemantics1BoxedString, NestedAllofToCheckValidationSemantics1BoxedList, NestedAllofToCheckValidationSemantics1BoxedMap { + @Nullable Object getData(); } - public static final class NestedAllofToCheckValidationSemantics1BoxedVoid extends NestedAllofToCheckValidationSemantics1Boxed { - public final Void data; - private NestedAllofToCheckValidationSemantics1BoxedVoid(Void data) { - this.data = data; - } + public record NestedAllofToCheckValidationSemantics1BoxedVoid(Void data) implements NestedAllofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NestedAllofToCheckValidationSemantics1BoxedBoolean extends NestedAllofToCheckValidationSemantics1Boxed { - public final boolean data; - private NestedAllofToCheckValidationSemantics1BoxedBoolean(boolean data) { - this.data = data; - } + public record NestedAllofToCheckValidationSemantics1BoxedBoolean(boolean data) implements NestedAllofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NestedAllofToCheckValidationSemantics1BoxedNumber extends NestedAllofToCheckValidationSemantics1Boxed { - public final Number data; - private NestedAllofToCheckValidationSemantics1BoxedNumber(Number data) { - this.data = data; - } + public record NestedAllofToCheckValidationSemantics1BoxedNumber(Number data) implements NestedAllofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NestedAllofToCheckValidationSemantics1BoxedString extends NestedAllofToCheckValidationSemantics1Boxed { - public final String data; - private NestedAllofToCheckValidationSemantics1BoxedString(String data) { - this.data = data; - } + public record NestedAllofToCheckValidationSemantics1BoxedString(String data) implements NestedAllofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NestedAllofToCheckValidationSemantics1BoxedList extends NestedAllofToCheckValidationSemantics1Boxed { - public final FrozenList<@Nullable Object> data; - private NestedAllofToCheckValidationSemantics1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record NestedAllofToCheckValidationSemantics1BoxedList(FrozenList<@Nullable Object> data) implements NestedAllofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NestedAllofToCheckValidationSemantics1BoxedMap extends NestedAllofToCheckValidationSemantics1Boxed { - public final FrozenMap<@Nullable Object> data; - private NestedAllofToCheckValidationSemantics1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record NestedAllofToCheckValidationSemantics1BoxedMap(FrozenMap<@Nullable Object> data) implements NestedAllofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class NestedAllofToCheckValidationSemantics1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, NestedAllofToCheckValidationSemantics1BoxedList>, MapSchemaValidator, NestedAllofToCheckValidationSemantics1BoxedMap> { + public static class NestedAllofToCheckValidationSemantics1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, NestedAllofToCheckValidationSemantics1BoxedList>, MapSchemaValidator, NestedAllofToCheckValidationSemantics1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -517,11 +488,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -552,11 +523,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -635,5 +606,24 @@ public NestedAllofToCheckValidationSemantics1BoxedList validateAndBox(List ar public NestedAllofToCheckValidationSemantics1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NestedAllofToCheckValidationSemantics1BoxedMap(validate(arg, configuration)); } + @Override + public NestedAllofToCheckValidationSemantics1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedAnyofToCheckValidationSemantics.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedAnyofToCheckValidationSemantics.java index aae4e9d3cf6..7709bbbf75c 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedAnyofToCheckValidationSemantics.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedAnyofToCheckValidationSemantics.java @@ -47,78 +47,54 @@ public static Schema01 getInstance() { } - public static abstract sealed class Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { + @Nullable Object getData(); } - public static final class Schema0BoxedVoid extends Schema0Boxed { - public final Void data; - private Schema0BoxedVoid(Void data) { - this.data = data; - } + public record Schema0BoxedVoid(Void data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedBoolean extends Schema0Boxed { - public final boolean data; - private Schema0BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema0BoxedBoolean(boolean data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedNumber extends Schema0Boxed { - public final Number data; - private Schema0BoxedNumber(Number data) { - this.data = data; - } + public record Schema0BoxedNumber(Number data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedString extends Schema0Boxed { - public final String data; - private Schema0BoxedString(String data) { - this.data = data; - } + public record Schema0BoxedString(String data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedList extends Schema0Boxed { - public final FrozenList<@Nullable Object> data; - private Schema0BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedList(FrozenList<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedMap extends Schema0Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema0BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedMap(FrozenMap<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator, Schema0BoxedMap> { + public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator, Schema0BoxedMap> { private static @Nullable Schema0 instance = null; protected Schema0() { @@ -219,11 +195,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -254,11 +230,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -337,80 +313,75 @@ public Schema0BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema0BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema0BoxedMap(validate(arg, configuration)); } + @Override + public Schema0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class NestedAnyofToCheckValidationSemantics1Boxed permits NestedAnyofToCheckValidationSemantics1BoxedVoid, NestedAnyofToCheckValidationSemantics1BoxedBoolean, NestedAnyofToCheckValidationSemantics1BoxedNumber, NestedAnyofToCheckValidationSemantics1BoxedString, NestedAnyofToCheckValidationSemantics1BoxedList, NestedAnyofToCheckValidationSemantics1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface NestedAnyofToCheckValidationSemantics1Boxed permits NestedAnyofToCheckValidationSemantics1BoxedVoid, NestedAnyofToCheckValidationSemantics1BoxedBoolean, NestedAnyofToCheckValidationSemantics1BoxedNumber, NestedAnyofToCheckValidationSemantics1BoxedString, NestedAnyofToCheckValidationSemantics1BoxedList, NestedAnyofToCheckValidationSemantics1BoxedMap { + @Nullable Object getData(); } - public static final class NestedAnyofToCheckValidationSemantics1BoxedVoid extends NestedAnyofToCheckValidationSemantics1Boxed { - public final Void data; - private NestedAnyofToCheckValidationSemantics1BoxedVoid(Void data) { - this.data = data; - } + public record NestedAnyofToCheckValidationSemantics1BoxedVoid(Void data) implements NestedAnyofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NestedAnyofToCheckValidationSemantics1BoxedBoolean extends NestedAnyofToCheckValidationSemantics1Boxed { - public final boolean data; - private NestedAnyofToCheckValidationSemantics1BoxedBoolean(boolean data) { - this.data = data; - } + public record NestedAnyofToCheckValidationSemantics1BoxedBoolean(boolean data) implements NestedAnyofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NestedAnyofToCheckValidationSemantics1BoxedNumber extends NestedAnyofToCheckValidationSemantics1Boxed { - public final Number data; - private NestedAnyofToCheckValidationSemantics1BoxedNumber(Number data) { - this.data = data; - } + public record NestedAnyofToCheckValidationSemantics1BoxedNumber(Number data) implements NestedAnyofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NestedAnyofToCheckValidationSemantics1BoxedString extends NestedAnyofToCheckValidationSemantics1Boxed { - public final String data; - private NestedAnyofToCheckValidationSemantics1BoxedString(String data) { - this.data = data; - } + public record NestedAnyofToCheckValidationSemantics1BoxedString(String data) implements NestedAnyofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NestedAnyofToCheckValidationSemantics1BoxedList extends NestedAnyofToCheckValidationSemantics1Boxed { - public final FrozenList<@Nullable Object> data; - private NestedAnyofToCheckValidationSemantics1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record NestedAnyofToCheckValidationSemantics1BoxedList(FrozenList<@Nullable Object> data) implements NestedAnyofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NestedAnyofToCheckValidationSemantics1BoxedMap extends NestedAnyofToCheckValidationSemantics1Boxed { - public final FrozenMap<@Nullable Object> data; - private NestedAnyofToCheckValidationSemantics1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record NestedAnyofToCheckValidationSemantics1BoxedMap(FrozenMap<@Nullable Object> data) implements NestedAnyofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class NestedAnyofToCheckValidationSemantics1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, NestedAnyofToCheckValidationSemantics1BoxedList>, MapSchemaValidator, NestedAnyofToCheckValidationSemantics1BoxedMap> { + public static class NestedAnyofToCheckValidationSemantics1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, NestedAnyofToCheckValidationSemantics1BoxedList>, MapSchemaValidator, NestedAnyofToCheckValidationSemantics1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -517,11 +488,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -552,11 +523,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -635,5 +606,24 @@ public NestedAnyofToCheckValidationSemantics1BoxedList validateAndBox(List ar public NestedAnyofToCheckValidationSemantics1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NestedAnyofToCheckValidationSemantics1BoxedMap(validate(arg, configuration)); } + @Override + public NestedAnyofToCheckValidationSemantics1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedItems.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedItems.java index 0219796a2e7..9e6928c1b4c 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedItems.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedItems.java @@ -81,24 +81,20 @@ public List build() { } - public static abstract sealed class Items2Boxed permits Items2BoxedList { - public abstract @Nullable Object data(); + public sealed interface Items2Boxed permits Items2BoxedList { + @Nullable Object getData(); } - public static final class Items2BoxedList extends Items2Boxed { - public final ItemsList data; - private Items2BoxedList(ItemsList data) { - this.data = data; - } + public record Items2BoxedList(ItemsList data) implements Items2Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Items2 extends JsonSchema implements ListSchemaValidator { + public static class Items2 extends JsonSchema implements ListSchemaValidator { private static @Nullable Items2 instance = null; protected Items2() { @@ -122,11 +118,11 @@ public ItemsList getNewInstance(List arg, List pathToItem, PathToSche for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof Number)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -166,6 +162,13 @@ public ItemsList validate(List arg, SchemaConfiguration configuration) throws public Items2BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Items2BoxedList(validate(arg, configuration)); } + @Override + public Items2Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class ItemsList1 extends FrozenList { @@ -200,24 +203,20 @@ public List> build() { } - public static abstract sealed class Items1Boxed permits Items1BoxedList { - public abstract @Nullable Object data(); + public sealed interface Items1Boxed permits Items1BoxedList { + @Nullable Object getData(); } - public static final class Items1BoxedList extends Items1Boxed { - public final ItemsList1 data; - private Items1BoxedList(ItemsList1 data) { - this.data = data; - } + public record Items1BoxedList(ItemsList1 data) implements Items1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Items1 extends JsonSchema implements ListSchemaValidator { + public static class Items1 extends JsonSchema implements ListSchemaValidator { private static @Nullable Items1 instance = null; protected Items1() { @@ -241,11 +240,11 @@ public ItemsList1 getNewInstance(List arg, List pathToItem, PathToSch for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof ItemsList)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -285,6 +284,13 @@ public ItemsList1 validate(List arg, SchemaConfiguration configuration) throw public Items1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Items1BoxedList(validate(arg, configuration)); } + @Override + public Items1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class ItemsList2 extends FrozenList { @@ -319,24 +325,20 @@ public List>> build() { } - public static abstract sealed class ItemsBoxed permits ItemsBoxedList { - public abstract @Nullable Object data(); + public sealed interface ItemsBoxed permits ItemsBoxedList { + @Nullable Object getData(); } - public static final class ItemsBoxedList extends ItemsBoxed { - public final ItemsList2 data; - private ItemsBoxedList(ItemsList2 data) { - this.data = data; - } + public record ItemsBoxedList(ItemsList2 data) implements ItemsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Items extends JsonSchema implements ListSchemaValidator { + public static class Items extends JsonSchema implements ListSchemaValidator { private static @Nullable Items instance = null; protected Items() { @@ -360,11 +362,11 @@ public ItemsList2 getNewInstance(List arg, List pathToItem, PathToSch for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof ItemsList1)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -404,6 +406,13 @@ public ItemsList2 validate(List arg, SchemaConfiguration configuration) throw public ItemsBoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ItemsBoxedList(validate(arg, configuration)); } + @Override + public ItemsBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class NestedItemsList extends FrozenList { @@ -438,24 +447,20 @@ public List>>> build() { } - public static abstract sealed class NestedItems1Boxed permits NestedItems1BoxedList { - public abstract @Nullable Object data(); + public sealed interface NestedItems1Boxed permits NestedItems1BoxedList { + @Nullable Object getData(); } - public static final class NestedItems1BoxedList extends NestedItems1Boxed { - public final NestedItemsList data; - private NestedItems1BoxedList(NestedItemsList data) { - this.data = data; - } + public record NestedItems1BoxedList(NestedItemsList data) implements NestedItems1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class NestedItems1 extends JsonSchema implements ListSchemaValidator { + public static class NestedItems1 extends JsonSchema implements ListSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -485,11 +490,11 @@ public NestedItemsList getNewInstance(List arg, List pathToItem, Path for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof ItemsList2)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -529,5 +534,12 @@ public NestedItemsList validate(List arg, SchemaConfiguration configuration) public NestedItems1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NestedItems1BoxedList(validate(arg, configuration)); } + @Override + public NestedItems1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedOneofToCheckValidationSemantics.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedOneofToCheckValidationSemantics.java index b4e576c997f..e75084fe04d 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedOneofToCheckValidationSemantics.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedOneofToCheckValidationSemantics.java @@ -47,78 +47,54 @@ public static Schema01 getInstance() { } - public static abstract sealed class Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { + @Nullable Object getData(); } - public static final class Schema0BoxedVoid extends Schema0Boxed { - public final Void data; - private Schema0BoxedVoid(Void data) { - this.data = data; - } + public record Schema0BoxedVoid(Void data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedBoolean extends Schema0Boxed { - public final boolean data; - private Schema0BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema0BoxedBoolean(boolean data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedNumber extends Schema0Boxed { - public final Number data; - private Schema0BoxedNumber(Number data) { - this.data = data; - } + public record Schema0BoxedNumber(Number data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedString extends Schema0Boxed { - public final String data; - private Schema0BoxedString(String data) { - this.data = data; - } + public record Schema0BoxedString(String data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedList extends Schema0Boxed { - public final FrozenList<@Nullable Object> data; - private Schema0BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedList(FrozenList<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedMap extends Schema0Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema0BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedMap(FrozenMap<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator, Schema0BoxedMap> { + public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator, Schema0BoxedMap> { private static @Nullable Schema0 instance = null; protected Schema0() { @@ -219,11 +195,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -254,11 +230,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -337,80 +313,75 @@ public Schema0BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema0BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema0BoxedMap(validate(arg, configuration)); } + @Override + public Schema0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class NestedOneofToCheckValidationSemantics1Boxed permits NestedOneofToCheckValidationSemantics1BoxedVoid, NestedOneofToCheckValidationSemantics1BoxedBoolean, NestedOneofToCheckValidationSemantics1BoxedNumber, NestedOneofToCheckValidationSemantics1BoxedString, NestedOneofToCheckValidationSemantics1BoxedList, NestedOneofToCheckValidationSemantics1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface NestedOneofToCheckValidationSemantics1Boxed permits NestedOneofToCheckValidationSemantics1BoxedVoid, NestedOneofToCheckValidationSemantics1BoxedBoolean, NestedOneofToCheckValidationSemantics1BoxedNumber, NestedOneofToCheckValidationSemantics1BoxedString, NestedOneofToCheckValidationSemantics1BoxedList, NestedOneofToCheckValidationSemantics1BoxedMap { + @Nullable Object getData(); } - public static final class NestedOneofToCheckValidationSemantics1BoxedVoid extends NestedOneofToCheckValidationSemantics1Boxed { - public final Void data; - private NestedOneofToCheckValidationSemantics1BoxedVoid(Void data) { - this.data = data; - } + public record NestedOneofToCheckValidationSemantics1BoxedVoid(Void data) implements NestedOneofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NestedOneofToCheckValidationSemantics1BoxedBoolean extends NestedOneofToCheckValidationSemantics1Boxed { - public final boolean data; - private NestedOneofToCheckValidationSemantics1BoxedBoolean(boolean data) { - this.data = data; - } + public record NestedOneofToCheckValidationSemantics1BoxedBoolean(boolean data) implements NestedOneofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NestedOneofToCheckValidationSemantics1BoxedNumber extends NestedOneofToCheckValidationSemantics1Boxed { - public final Number data; - private NestedOneofToCheckValidationSemantics1BoxedNumber(Number data) { - this.data = data; - } + public record NestedOneofToCheckValidationSemantics1BoxedNumber(Number data) implements NestedOneofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NestedOneofToCheckValidationSemantics1BoxedString extends NestedOneofToCheckValidationSemantics1Boxed { - public final String data; - private NestedOneofToCheckValidationSemantics1BoxedString(String data) { - this.data = data; - } + public record NestedOneofToCheckValidationSemantics1BoxedString(String data) implements NestedOneofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NestedOneofToCheckValidationSemantics1BoxedList extends NestedOneofToCheckValidationSemantics1Boxed { - public final FrozenList<@Nullable Object> data; - private NestedOneofToCheckValidationSemantics1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record NestedOneofToCheckValidationSemantics1BoxedList(FrozenList<@Nullable Object> data) implements NestedOneofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NestedOneofToCheckValidationSemantics1BoxedMap extends NestedOneofToCheckValidationSemantics1Boxed { - public final FrozenMap<@Nullable Object> data; - private NestedOneofToCheckValidationSemantics1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record NestedOneofToCheckValidationSemantics1BoxedMap(FrozenMap<@Nullable Object> data) implements NestedOneofToCheckValidationSemantics1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class NestedOneofToCheckValidationSemantics1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, NestedOneofToCheckValidationSemantics1BoxedList>, MapSchemaValidator, NestedOneofToCheckValidationSemantics1BoxedMap> { + public static class NestedOneofToCheckValidationSemantics1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, NestedOneofToCheckValidationSemantics1BoxedList>, MapSchemaValidator, NestedOneofToCheckValidationSemantics1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -517,11 +488,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -552,11 +523,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -635,5 +606,24 @@ public NestedOneofToCheckValidationSemantics1BoxedList validateAndBox(List ar public NestedOneofToCheckValidationSemantics1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NestedOneofToCheckValidationSemantics1BoxedMap(validate(arg, configuration)); } + @Override + public NestedOneofToCheckValidationSemantics1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NonAsciiPatternWithAdditionalproperties.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NonAsciiPatternWithAdditionalproperties.java index ef222f143e2..0a3b69df087 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NonAsciiPatternWithAdditionalproperties.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NonAsciiPatternWithAdditionalproperties.java @@ -79,23 +79,19 @@ public NonAsciiPatternWithAdditionalpropertiesMapBuilder() { } - public static abstract sealed class NonAsciiPatternWithAdditionalproperties1Boxed permits NonAsciiPatternWithAdditionalproperties1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface NonAsciiPatternWithAdditionalproperties1Boxed permits NonAsciiPatternWithAdditionalproperties1BoxedMap { + @Nullable Object getData(); } - public static final class NonAsciiPatternWithAdditionalproperties1BoxedMap extends NonAsciiPatternWithAdditionalproperties1Boxed { - public final NonAsciiPatternWithAdditionalpropertiesMap data; - private NonAsciiPatternWithAdditionalproperties1BoxedMap(NonAsciiPatternWithAdditionalpropertiesMap data) { - this.data = data; - } + public record NonAsciiPatternWithAdditionalproperties1BoxedMap(NonAsciiPatternWithAdditionalpropertiesMap data) implements NonAsciiPatternWithAdditionalproperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class NonAsciiPatternWithAdditionalproperties1 extends JsonSchema implements MapSchemaValidator { + public static class NonAsciiPatternWithAdditionalproperties1 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 @@ -132,11 +128,11 @@ public NonAsciiPatternWithAdditionalpropertiesMap getNewInstance(Map arg, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -173,6 +169,13 @@ public NonAsciiPatternWithAdditionalpropertiesMap validate(Map arg, Schema public NonAsciiPatternWithAdditionalproperties1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NonAsciiPatternWithAdditionalproperties1BoxedMap(validate(arg, configuration)); } + @Override + public NonAsciiPatternWithAdditionalproperties1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NonInterferenceAcrossCombinedSchemas.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NonInterferenceAcrossCombinedSchemas.java index 02652d270b4..d106e1a35cc 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NonInterferenceAcrossCombinedSchemas.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NonInterferenceAcrossCombinedSchemas.java @@ -36,78 +36,54 @@ public class NonInterferenceAcrossCombinedSchemas { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class IfSchemaBoxed permits IfSchemaBoxedVoid, IfSchemaBoxedBoolean, IfSchemaBoxedNumber, IfSchemaBoxedString, IfSchemaBoxedList, IfSchemaBoxedMap { - public abstract @Nullable Object data(); + public sealed interface IfSchemaBoxed permits IfSchemaBoxedVoid, IfSchemaBoxedBoolean, IfSchemaBoxedNumber, IfSchemaBoxedString, IfSchemaBoxedList, IfSchemaBoxedMap { + @Nullable Object getData(); } - public static final class IfSchemaBoxedVoid extends IfSchemaBoxed { - public final Void data; - private IfSchemaBoxedVoid(Void data) { - this.data = data; - } + public record IfSchemaBoxedVoid(Void data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfSchemaBoxedBoolean extends IfSchemaBoxed { - public final boolean data; - private IfSchemaBoxedBoolean(boolean data) { - this.data = data; - } + public record IfSchemaBoxedBoolean(boolean data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfSchemaBoxedNumber extends IfSchemaBoxed { - public final Number data; - private IfSchemaBoxedNumber(Number data) { - this.data = data; - } + public record IfSchemaBoxedNumber(Number data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfSchemaBoxedString extends IfSchemaBoxed { - public final String data; - private IfSchemaBoxedString(String data) { - this.data = data; - } + public record IfSchemaBoxedString(String data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfSchemaBoxedList extends IfSchemaBoxed { - public final FrozenList<@Nullable Object> data; - private IfSchemaBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record IfSchemaBoxedList(FrozenList<@Nullable Object> data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfSchemaBoxedMap extends IfSchemaBoxed { - public final FrozenMap<@Nullable Object> data; - private IfSchemaBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record IfSchemaBoxedMap(FrozenMap<@Nullable Object> data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class IfSchema extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IfSchemaBoxedList>, MapSchemaValidator, IfSchemaBoxedMap> { + public static class IfSchema extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IfSchemaBoxedList>, MapSchemaValidator, IfSchemaBoxedMap> { private static @Nullable IfSchema instance = null; protected IfSchema() { @@ -206,11 +182,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -241,11 +217,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -324,80 +300,75 @@ public IfSchemaBoxedList validateAndBox(List arg, SchemaConfiguration configu public IfSchemaBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new IfSchemaBoxedMap(validate(arg, configuration)); } + @Override + public IfSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { + @Nullable Object getData(); } - public static final class Schema0BoxedVoid extends Schema0Boxed { - public final Void data; - private Schema0BoxedVoid(Void data) { - this.data = data; - } + public record Schema0BoxedVoid(Void data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedBoolean extends Schema0Boxed { - public final boolean data; - private Schema0BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema0BoxedBoolean(boolean data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedNumber extends Schema0Boxed { - public final Number data; - private Schema0BoxedNumber(Number data) { - this.data = data; - } + public record Schema0BoxedNumber(Number data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedString extends Schema0Boxed { - public final String data; - private Schema0BoxedString(String data) { - this.data = data; - } + public record Schema0BoxedString(String data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedList extends Schema0Boxed { - public final FrozenList<@Nullable Object> data; - private Schema0BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedList(FrozenList<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedMap extends Schema0Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema0BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedMap(FrozenMap<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator, Schema0BoxedMap> { + public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator, Schema0BoxedMap> { private static @Nullable Schema0 instance = null; protected Schema0() { @@ -496,11 +467,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -531,11 +502,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -614,80 +585,75 @@ public Schema0BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema0BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema0BoxedMap(validate(arg, configuration)); } + @Override + public Schema0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class ThenBoxed permits ThenBoxedVoid, ThenBoxedBoolean, ThenBoxedNumber, ThenBoxedString, ThenBoxedList, ThenBoxedMap { - public abstract @Nullable Object data(); + public sealed interface ThenBoxed permits ThenBoxedVoid, ThenBoxedBoolean, ThenBoxedNumber, ThenBoxedString, ThenBoxedList, ThenBoxedMap { + @Nullable Object getData(); } - public static final class ThenBoxedVoid extends ThenBoxed { - public final Void data; - private ThenBoxedVoid(Void data) { - this.data = data; - } + public record ThenBoxedVoid(Void data) implements ThenBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ThenBoxedBoolean extends ThenBoxed { - public final boolean data; - private ThenBoxedBoolean(boolean data) { - this.data = data; - } + public record ThenBoxedBoolean(boolean data) implements ThenBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ThenBoxedNumber extends ThenBoxed { - public final Number data; - private ThenBoxedNumber(Number data) { - this.data = data; - } + public record ThenBoxedNumber(Number data) implements ThenBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ThenBoxedString extends ThenBoxed { - public final String data; - private ThenBoxedString(String data) { - this.data = data; - } + public record ThenBoxedString(String data) implements ThenBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ThenBoxedList extends ThenBoxed { - public final FrozenList<@Nullable Object> data; - private ThenBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ThenBoxedList(FrozenList<@Nullable Object> data) implements ThenBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ThenBoxedMap extends ThenBoxed { - public final FrozenMap<@Nullable Object> data; - private ThenBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ThenBoxedMap(FrozenMap<@Nullable Object> data) implements ThenBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Then extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ThenBoxedList>, MapSchemaValidator, ThenBoxedMap> { + public static class Then extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ThenBoxedList>, MapSchemaValidator, ThenBoxedMap> { private static @Nullable Then instance = null; protected Then() { @@ -786,11 +752,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -821,11 +787,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -904,80 +870,75 @@ public ThenBoxedList validateAndBox(List arg, SchemaConfiguration configurati public ThenBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ThenBoxedMap(validate(arg, configuration)); } + @Override + public ThenBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { + @Nullable Object getData(); } - public static final class Schema1BoxedVoid extends Schema1Boxed { - public final Void data; - private Schema1BoxedVoid(Void data) { - this.data = data; - } + public record Schema1BoxedVoid(Void data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedBoolean extends Schema1Boxed { - public final boolean data; - private Schema1BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema1BoxedBoolean(boolean data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedNumber extends Schema1Boxed { - public final Number data; - private Schema1BoxedNumber(Number data) { - this.data = data; - } + public record Schema1BoxedNumber(Number data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedString extends Schema1Boxed { - public final String data; - private Schema1BoxedString(String data) { - this.data = data; - } + public record Schema1BoxedString(String data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedList extends Schema1Boxed { - public final FrozenList<@Nullable Object> data; - private Schema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedList(FrozenList<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedMap extends Schema1Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedMap(FrozenMap<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator, Schema1BoxedMap> { + public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator, Schema1BoxedMap> { private static @Nullable Schema1 instance = null; protected Schema1() { @@ -1076,11 +1037,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -1111,11 +1072,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1194,80 +1155,75 @@ public Schema1BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema1BoxedMap(validate(arg, configuration)); } + @Override + public Schema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class ElseSchemaBoxed permits ElseSchemaBoxedVoid, ElseSchemaBoxedBoolean, ElseSchemaBoxedNumber, ElseSchemaBoxedString, ElseSchemaBoxedList, ElseSchemaBoxedMap { - public abstract @Nullable Object data(); + public sealed interface ElseSchemaBoxed permits ElseSchemaBoxedVoid, ElseSchemaBoxedBoolean, ElseSchemaBoxedNumber, ElseSchemaBoxedString, ElseSchemaBoxedList, ElseSchemaBoxedMap { + @Nullable Object getData(); } - public static final class ElseSchemaBoxedVoid extends ElseSchemaBoxed { - public final Void data; - private ElseSchemaBoxedVoid(Void data) { - this.data = data; - } + public record ElseSchemaBoxedVoid(Void data) implements ElseSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ElseSchemaBoxedBoolean extends ElseSchemaBoxed { - public final boolean data; - private ElseSchemaBoxedBoolean(boolean data) { - this.data = data; - } + public record ElseSchemaBoxedBoolean(boolean data) implements ElseSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ElseSchemaBoxedNumber extends ElseSchemaBoxed { - public final Number data; - private ElseSchemaBoxedNumber(Number data) { - this.data = data; - } + public record ElseSchemaBoxedNumber(Number data) implements ElseSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ElseSchemaBoxedString extends ElseSchemaBoxed { - public final String data; - private ElseSchemaBoxedString(String data) { - this.data = data; - } + public record ElseSchemaBoxedString(String data) implements ElseSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ElseSchemaBoxedList extends ElseSchemaBoxed { - public final FrozenList<@Nullable Object> data; - private ElseSchemaBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ElseSchemaBoxedList(FrozenList<@Nullable Object> data) implements ElseSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ElseSchemaBoxedMap extends ElseSchemaBoxed { - public final FrozenMap<@Nullable Object> data; - private ElseSchemaBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ElseSchemaBoxedMap(FrozenMap<@Nullable Object> data) implements ElseSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class ElseSchema extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ElseSchemaBoxedList>, MapSchemaValidator, ElseSchemaBoxedMap> { + public static class ElseSchema extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ElseSchemaBoxedList>, MapSchemaValidator, ElseSchemaBoxedMap> { private static @Nullable ElseSchema instance = null; protected ElseSchema() { @@ -1366,11 +1322,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -1401,11 +1357,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1484,80 +1440,75 @@ public ElseSchemaBoxedList validateAndBox(List arg, SchemaConfiguration confi public ElseSchemaBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ElseSchemaBoxedMap(validate(arg, configuration)); } + @Override + public ElseSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class Schema2Boxed permits Schema2BoxedVoid, Schema2BoxedBoolean, Schema2BoxedNumber, Schema2BoxedString, Schema2BoxedList, Schema2BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema2Boxed permits Schema2BoxedVoid, Schema2BoxedBoolean, Schema2BoxedNumber, Schema2BoxedString, Schema2BoxedList, Schema2BoxedMap { + @Nullable Object getData(); } - public static final class Schema2BoxedVoid extends Schema2Boxed { - public final Void data; - private Schema2BoxedVoid(Void data) { - this.data = data; - } + public record Schema2BoxedVoid(Void data) implements Schema2Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema2BoxedBoolean extends Schema2Boxed { - public final boolean data; - private Schema2BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema2BoxedBoolean(boolean data) implements Schema2Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema2BoxedNumber extends Schema2Boxed { - public final Number data; - private Schema2BoxedNumber(Number data) { - this.data = data; - } + public record Schema2BoxedNumber(Number data) implements Schema2Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema2BoxedString extends Schema2Boxed { - public final String data; - private Schema2BoxedString(String data) { - this.data = data; - } + public record Schema2BoxedString(String data) implements Schema2Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema2BoxedList extends Schema2Boxed { - public final FrozenList<@Nullable Object> data; - private Schema2BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema2BoxedList(FrozenList<@Nullable Object> data) implements Schema2Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema2BoxedMap extends Schema2Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema2BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema2BoxedMap(FrozenMap<@Nullable Object> data) implements Schema2Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema2 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema2BoxedList>, MapSchemaValidator, Schema2BoxedMap> { + public static class Schema2 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema2BoxedList>, MapSchemaValidator, Schema2BoxedMap> { private static @Nullable Schema2 instance = null; protected Schema2() { @@ -1656,11 +1607,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -1691,11 +1642,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1774,80 +1725,75 @@ public Schema2BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema2BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema2BoxedMap(validate(arg, configuration)); } + @Override + public Schema2Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class NonInterferenceAcrossCombinedSchemas1Boxed permits NonInterferenceAcrossCombinedSchemas1BoxedVoid, NonInterferenceAcrossCombinedSchemas1BoxedBoolean, NonInterferenceAcrossCombinedSchemas1BoxedNumber, NonInterferenceAcrossCombinedSchemas1BoxedString, NonInterferenceAcrossCombinedSchemas1BoxedList, NonInterferenceAcrossCombinedSchemas1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface NonInterferenceAcrossCombinedSchemas1Boxed permits NonInterferenceAcrossCombinedSchemas1BoxedVoid, NonInterferenceAcrossCombinedSchemas1BoxedBoolean, NonInterferenceAcrossCombinedSchemas1BoxedNumber, NonInterferenceAcrossCombinedSchemas1BoxedString, NonInterferenceAcrossCombinedSchemas1BoxedList, NonInterferenceAcrossCombinedSchemas1BoxedMap { + @Nullable Object getData(); } - public static final class NonInterferenceAcrossCombinedSchemas1BoxedVoid extends NonInterferenceAcrossCombinedSchemas1Boxed { - public final Void data; - private NonInterferenceAcrossCombinedSchemas1BoxedVoid(Void data) { - this.data = data; - } + public record NonInterferenceAcrossCombinedSchemas1BoxedVoid(Void data) implements NonInterferenceAcrossCombinedSchemas1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NonInterferenceAcrossCombinedSchemas1BoxedBoolean extends NonInterferenceAcrossCombinedSchemas1Boxed { - public final boolean data; - private NonInterferenceAcrossCombinedSchemas1BoxedBoolean(boolean data) { - this.data = data; - } + public record NonInterferenceAcrossCombinedSchemas1BoxedBoolean(boolean data) implements NonInterferenceAcrossCombinedSchemas1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NonInterferenceAcrossCombinedSchemas1BoxedNumber extends NonInterferenceAcrossCombinedSchemas1Boxed { - public final Number data; - private NonInterferenceAcrossCombinedSchemas1BoxedNumber(Number data) { - this.data = data; - } + public record NonInterferenceAcrossCombinedSchemas1BoxedNumber(Number data) implements NonInterferenceAcrossCombinedSchemas1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NonInterferenceAcrossCombinedSchemas1BoxedString extends NonInterferenceAcrossCombinedSchemas1Boxed { - public final String data; - private NonInterferenceAcrossCombinedSchemas1BoxedString(String data) { - this.data = data; - } + public record NonInterferenceAcrossCombinedSchemas1BoxedString(String data) implements NonInterferenceAcrossCombinedSchemas1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NonInterferenceAcrossCombinedSchemas1BoxedList extends NonInterferenceAcrossCombinedSchemas1Boxed { - public final FrozenList<@Nullable Object> data; - private NonInterferenceAcrossCombinedSchemas1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record NonInterferenceAcrossCombinedSchemas1BoxedList(FrozenList<@Nullable Object> data) implements NonInterferenceAcrossCombinedSchemas1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NonInterferenceAcrossCombinedSchemas1BoxedMap extends NonInterferenceAcrossCombinedSchemas1Boxed { - public final FrozenMap<@Nullable Object> data; - private NonInterferenceAcrossCombinedSchemas1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record NonInterferenceAcrossCombinedSchemas1BoxedMap(FrozenMap<@Nullable Object> data) implements NonInterferenceAcrossCombinedSchemas1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class NonInterferenceAcrossCombinedSchemas1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, NonInterferenceAcrossCombinedSchemas1BoxedList>, MapSchemaValidator, NonInterferenceAcrossCombinedSchemas1BoxedMap> { + public static class NonInterferenceAcrossCombinedSchemas1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, NonInterferenceAcrossCombinedSchemas1BoxedList>, MapSchemaValidator, NonInterferenceAcrossCombinedSchemas1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -1956,11 +1902,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -1991,11 +1937,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -2074,5 +2020,24 @@ public NonInterferenceAcrossCombinedSchemas1BoxedList validateAndBox(List arg public NonInterferenceAcrossCombinedSchemas1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NonInterferenceAcrossCombinedSchemas1BoxedMap(validate(arg, configuration)); } + @Override + public NonInterferenceAcrossCombinedSchemas1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Not.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Not.java index ea255f3c1e1..98514e1cbff 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Not.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Not.java @@ -47,78 +47,54 @@ public static Not2 getInstance() { } - public static abstract sealed class Not1Boxed permits Not1BoxedVoid, Not1BoxedBoolean, Not1BoxedNumber, Not1BoxedString, Not1BoxedList, Not1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Not1Boxed permits Not1BoxedVoid, Not1BoxedBoolean, Not1BoxedNumber, Not1BoxedString, Not1BoxedList, Not1BoxedMap { + @Nullable Object getData(); } - public static final class Not1BoxedVoid extends Not1Boxed { - public final Void data; - private Not1BoxedVoid(Void data) { - this.data = data; - } + public record Not1BoxedVoid(Void data) implements Not1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Not1BoxedBoolean extends Not1Boxed { - public final boolean data; - private Not1BoxedBoolean(boolean data) { - this.data = data; - } + public record Not1BoxedBoolean(boolean data) implements Not1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Not1BoxedNumber extends Not1Boxed { - public final Number data; - private Not1BoxedNumber(Number data) { - this.data = data; - } + public record Not1BoxedNumber(Number data) implements Not1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Not1BoxedString extends Not1Boxed { - public final String data; - private Not1BoxedString(String data) { - this.data = data; - } + public record Not1BoxedString(String data) implements Not1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Not1BoxedList extends Not1Boxed { - public final FrozenList<@Nullable Object> data; - private Not1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Not1BoxedList(FrozenList<@Nullable Object> data) implements Not1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Not1BoxedMap extends Not1Boxed { - public final FrozenMap<@Nullable Object> data; - private Not1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Not1BoxedMap(FrozenMap<@Nullable Object> data) implements Not1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Not1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Not1BoxedList>, MapSchemaValidator, Not1BoxedMap> { + public static class Not1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Not1BoxedList>, MapSchemaValidator, Not1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -223,11 +199,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -258,11 +234,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -341,5 +317,24 @@ public Not1BoxedList validateAndBox(List arg, SchemaConfiguration configurati public Not1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Not1BoxedMap(validate(arg, configuration)); } + @Override + public Not1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NotMoreComplexSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NotMoreComplexSchema.java index 245812f4415..0e92dc9eac8 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NotMoreComplexSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NotMoreComplexSchema.java @@ -115,23 +115,19 @@ public NotMapBuilder getBuilderAfterAdditionalProperty(Map { + public static class Not extends JsonSchema implements MapSchemaValidator { private static @Nullable Not instance = null; protected Not() { @@ -161,11 +157,11 @@ public NotMap getNewInstance(Map arg, List pathToItem, PathToSchem List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -202,81 +198,64 @@ public NotMap validate(Map arg, SchemaConfiguration configuration) throws public NotBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NotBoxedMap(validate(arg, configuration)); } + @Override + public NotBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class NotMoreComplexSchema1Boxed permits NotMoreComplexSchema1BoxedVoid, NotMoreComplexSchema1BoxedBoolean, NotMoreComplexSchema1BoxedNumber, NotMoreComplexSchema1BoxedString, NotMoreComplexSchema1BoxedList, NotMoreComplexSchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface NotMoreComplexSchema1Boxed permits NotMoreComplexSchema1BoxedVoid, NotMoreComplexSchema1BoxedBoolean, NotMoreComplexSchema1BoxedNumber, NotMoreComplexSchema1BoxedString, NotMoreComplexSchema1BoxedList, NotMoreComplexSchema1BoxedMap { + @Nullable Object getData(); } - public static final class NotMoreComplexSchema1BoxedVoid extends NotMoreComplexSchema1Boxed { - public final Void data; - private NotMoreComplexSchema1BoxedVoid(Void data) { - this.data = data; - } + public record NotMoreComplexSchema1BoxedVoid(Void data) implements NotMoreComplexSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotMoreComplexSchema1BoxedBoolean extends NotMoreComplexSchema1Boxed { - public final boolean data; - private NotMoreComplexSchema1BoxedBoolean(boolean data) { - this.data = data; - } + public record NotMoreComplexSchema1BoxedBoolean(boolean data) implements NotMoreComplexSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotMoreComplexSchema1BoxedNumber extends NotMoreComplexSchema1Boxed { - public final Number data; - private NotMoreComplexSchema1BoxedNumber(Number data) { - this.data = data; - } + public record NotMoreComplexSchema1BoxedNumber(Number data) implements NotMoreComplexSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotMoreComplexSchema1BoxedString extends NotMoreComplexSchema1Boxed { - public final String data; - private NotMoreComplexSchema1BoxedString(String data) { - this.data = data; - } + public record NotMoreComplexSchema1BoxedString(String data) implements NotMoreComplexSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotMoreComplexSchema1BoxedList extends NotMoreComplexSchema1Boxed { - public final FrozenList<@Nullable Object> data; - private NotMoreComplexSchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record NotMoreComplexSchema1BoxedList(FrozenList<@Nullable Object> data) implements NotMoreComplexSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotMoreComplexSchema1BoxedMap extends NotMoreComplexSchema1Boxed { - public final FrozenMap<@Nullable Object> data; - private NotMoreComplexSchema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record NotMoreComplexSchema1BoxedMap(FrozenMap<@Nullable Object> data) implements NotMoreComplexSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class NotMoreComplexSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, NotMoreComplexSchema1BoxedList>, MapSchemaValidator, NotMoreComplexSchema1BoxedMap> { + public static class NotMoreComplexSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, NotMoreComplexSchema1BoxedList>, MapSchemaValidator, NotMoreComplexSchema1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -381,11 +360,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -416,11 +395,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -499,5 +478,24 @@ public NotMoreComplexSchema1BoxedList validateAndBox(List arg, SchemaConfigur public NotMoreComplexSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NotMoreComplexSchema1BoxedMap(validate(arg, configuration)); } + @Override + public NotMoreComplexSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NotMultipleTypes.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NotMultipleTypes.java index 81edb3e7bdc..04424f0d255 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NotMultipleTypes.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NotMultipleTypes.java @@ -35,35 +35,27 @@ public class NotMultipleTypes { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class NotBoxed permits NotBoxedNumber, NotBoxedBoolean { - public abstract @Nullable Object data(); + public sealed interface NotBoxed permits NotBoxedNumber, NotBoxedBoolean { + @Nullable Object getData(); } - public static final class NotBoxedNumber extends NotBoxed { - public final Number data; - private NotBoxedNumber(Number data) { - this.data = data; - } + public record NotBoxedNumber(Number data) implements NotBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotBoxedBoolean extends NotBoxed { - public final boolean data; - private NotBoxedBoolean(boolean data) { - this.data = data; - } + public record NotBoxedBoolean(boolean data) implements NotBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Not extends JsonSchema implements NumberSchemaValidator, BooleanSchemaValidator { + public static class Not extends JsonSchema implements NumberSchemaValidator, BooleanSchemaValidator { private static @Nullable Not instance = null; protected Not() { @@ -152,80 +144,66 @@ public NotBoxedNumber validateAndBox(Number arg, SchemaConfiguration configurati public NotBoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NotBoxedBoolean(validate(arg, configuration)); } + @Override + public NotBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class NotMultipleTypes1Boxed permits NotMultipleTypes1BoxedVoid, NotMultipleTypes1BoxedBoolean, NotMultipleTypes1BoxedNumber, NotMultipleTypes1BoxedString, NotMultipleTypes1BoxedList, NotMultipleTypes1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface NotMultipleTypes1Boxed permits NotMultipleTypes1BoxedVoid, NotMultipleTypes1BoxedBoolean, NotMultipleTypes1BoxedNumber, NotMultipleTypes1BoxedString, NotMultipleTypes1BoxedList, NotMultipleTypes1BoxedMap { + @Nullable Object getData(); } - public static final class NotMultipleTypes1BoxedVoid extends NotMultipleTypes1Boxed { - public final Void data; - private NotMultipleTypes1BoxedVoid(Void data) { - this.data = data; - } + public record NotMultipleTypes1BoxedVoid(Void data) implements NotMultipleTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotMultipleTypes1BoxedBoolean extends NotMultipleTypes1Boxed { - public final boolean data; - private NotMultipleTypes1BoxedBoolean(boolean data) { - this.data = data; - } + public record NotMultipleTypes1BoxedBoolean(boolean data) implements NotMultipleTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotMultipleTypes1BoxedNumber extends NotMultipleTypes1Boxed { - public final Number data; - private NotMultipleTypes1BoxedNumber(Number data) { - this.data = data; - } + public record NotMultipleTypes1BoxedNumber(Number data) implements NotMultipleTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotMultipleTypes1BoxedString extends NotMultipleTypes1Boxed { - public final String data; - private NotMultipleTypes1BoxedString(String data) { - this.data = data; - } + public record NotMultipleTypes1BoxedString(String data) implements NotMultipleTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotMultipleTypes1BoxedList extends NotMultipleTypes1Boxed { - public final FrozenList<@Nullable Object> data; - private NotMultipleTypes1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record NotMultipleTypes1BoxedList(FrozenList<@Nullable Object> data) implements NotMultipleTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotMultipleTypes1BoxedMap extends NotMultipleTypes1Boxed { - public final FrozenMap<@Nullable Object> data; - private NotMultipleTypes1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record NotMultipleTypes1BoxedMap(FrozenMap<@Nullable Object> data) implements NotMultipleTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class NotMultipleTypes1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, NotMultipleTypes1BoxedList>, MapSchemaValidator, NotMultipleTypes1BoxedMap> { + public static class NotMultipleTypes1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, NotMultipleTypes1BoxedList>, MapSchemaValidator, NotMultipleTypes1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -330,11 +308,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -365,11 +343,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -448,5 +426,24 @@ public NotMultipleTypes1BoxedList validateAndBox(List arg, SchemaConfiguratio public NotMultipleTypes1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NotMultipleTypes1BoxedMap(validate(arg, configuration)); } + @Override + public NotMultipleTypes1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NulCharactersInStrings.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NulCharactersInStrings.java index 488e5aa4a93..cccbac4a8ff 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NulCharactersInStrings.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NulCharactersInStrings.java @@ -34,24 +34,20 @@ public String value() { } - public static abstract sealed class NulCharactersInStrings1Boxed permits NulCharactersInStrings1BoxedString { - public abstract @Nullable Object data(); + public sealed interface NulCharactersInStrings1Boxed permits NulCharactersInStrings1BoxedString { + @Nullable Object getData(); } - public static final class NulCharactersInStrings1BoxedString extends NulCharactersInStrings1Boxed { - public final String data; - private NulCharactersInStrings1BoxedString(String data) { - this.data = data; - } + public record NulCharactersInStrings1BoxedString(String data) implements NulCharactersInStrings1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class NulCharactersInStrings1 extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + public static class NulCharactersInStrings1 extends JsonSchema implements StringSchemaValidator, StringEnumValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -112,5 +108,12 @@ public String validate(StringNulCharactersInStringsEnums arg,SchemaConfiguration public NulCharactersInStrings1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NulCharactersInStrings1BoxedString(validate(arg, configuration)); } + @Override + public NulCharactersInStrings1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectPropertiesValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectPropertiesValidation.java index 9637bde1419..01f7f868c52 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectPropertiesValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectPropertiesValidation.java @@ -171,78 +171,54 @@ public ObjectPropertiesValidationMapBuilder getBuilderAfterAdditionalProperty(Ma } - public static abstract sealed class ObjectPropertiesValidation1Boxed permits ObjectPropertiesValidation1BoxedVoid, ObjectPropertiesValidation1BoxedBoolean, ObjectPropertiesValidation1BoxedNumber, ObjectPropertiesValidation1BoxedString, ObjectPropertiesValidation1BoxedList, ObjectPropertiesValidation1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface ObjectPropertiesValidation1Boxed permits ObjectPropertiesValidation1BoxedVoid, ObjectPropertiesValidation1BoxedBoolean, ObjectPropertiesValidation1BoxedNumber, ObjectPropertiesValidation1BoxedString, ObjectPropertiesValidation1BoxedList, ObjectPropertiesValidation1BoxedMap { + @Nullable Object getData(); } - public static final class ObjectPropertiesValidation1BoxedVoid extends ObjectPropertiesValidation1Boxed { - public final Void data; - private ObjectPropertiesValidation1BoxedVoid(Void data) { - this.data = data; - } + public record ObjectPropertiesValidation1BoxedVoid(Void data) implements ObjectPropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ObjectPropertiesValidation1BoxedBoolean extends ObjectPropertiesValidation1Boxed { - public final boolean data; - private ObjectPropertiesValidation1BoxedBoolean(boolean data) { - this.data = data; - } + public record ObjectPropertiesValidation1BoxedBoolean(boolean data) implements ObjectPropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ObjectPropertiesValidation1BoxedNumber extends ObjectPropertiesValidation1Boxed { - public final Number data; - private ObjectPropertiesValidation1BoxedNumber(Number data) { - this.data = data; - } + public record ObjectPropertiesValidation1BoxedNumber(Number data) implements ObjectPropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ObjectPropertiesValidation1BoxedString extends ObjectPropertiesValidation1Boxed { - public final String data; - private ObjectPropertiesValidation1BoxedString(String data) { - this.data = data; - } + public record ObjectPropertiesValidation1BoxedString(String data) implements ObjectPropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ObjectPropertiesValidation1BoxedList extends ObjectPropertiesValidation1Boxed { - public final FrozenList<@Nullable Object> data; - private ObjectPropertiesValidation1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ObjectPropertiesValidation1BoxedList(FrozenList<@Nullable Object> data) implements ObjectPropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ObjectPropertiesValidation1BoxedMap extends ObjectPropertiesValidation1Boxed { - public final ObjectPropertiesValidationMap data; - private ObjectPropertiesValidation1BoxedMap(ObjectPropertiesValidationMap data) { - this.data = data; - } + public record ObjectPropertiesValidation1BoxedMap(ObjectPropertiesValidationMap data) implements ObjectPropertiesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class ObjectPropertiesValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ObjectPropertiesValidation1BoxedList>, MapSchemaValidator { + public static class ObjectPropertiesValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ObjectPropertiesValidation1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -350,11 +326,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -385,11 +361,11 @@ public ObjectPropertiesValidationMap getNewInstance(Map arg, List List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -468,5 +444,24 @@ public ObjectPropertiesValidation1BoxedList validateAndBox(List arg, SchemaCo public ObjectPropertiesValidation1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ObjectPropertiesValidation1BoxedMap(validate(arg, configuration)); } + @Override + public ObjectPropertiesValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Oneof.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Oneof.java index 3fb43ed1107..86951cf5e63 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Oneof.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Oneof.java @@ -47,78 +47,54 @@ public static Schema0 getInstance() { } - public static abstract sealed class Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { + @Nullable Object getData(); } - public static final class Schema1BoxedVoid extends Schema1Boxed { - public final Void data; - private Schema1BoxedVoid(Void data) { - this.data = data; - } + public record Schema1BoxedVoid(Void data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedBoolean extends Schema1Boxed { - public final boolean data; - private Schema1BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema1BoxedBoolean(boolean data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedNumber extends Schema1Boxed { - public final Number data; - private Schema1BoxedNumber(Number data) { - this.data = data; - } + public record Schema1BoxedNumber(Number data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedString extends Schema1Boxed { - public final String data; - private Schema1BoxedString(String data) { - this.data = data; - } + public record Schema1BoxedString(String data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedList extends Schema1Boxed { - public final FrozenList<@Nullable Object> data; - private Schema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedList(FrozenList<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedMap extends Schema1Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedMap(FrozenMap<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator, Schema1BoxedMap> { + public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator, Schema1BoxedMap> { private static @Nullable Schema1 instance = null; protected Schema1() { @@ -217,11 +193,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -252,11 +228,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -335,80 +311,75 @@ public Schema1BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema1BoxedMap(validate(arg, configuration)); } + @Override + public Schema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class Oneof1Boxed permits Oneof1BoxedVoid, Oneof1BoxedBoolean, Oneof1BoxedNumber, Oneof1BoxedString, Oneof1BoxedList, Oneof1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Oneof1Boxed permits Oneof1BoxedVoid, Oneof1BoxedBoolean, Oneof1BoxedNumber, Oneof1BoxedString, Oneof1BoxedList, Oneof1BoxedMap { + @Nullable Object getData(); } - public static final class Oneof1BoxedVoid extends Oneof1Boxed { - public final Void data; - private Oneof1BoxedVoid(Void data) { - this.data = data; - } + public record Oneof1BoxedVoid(Void data) implements Oneof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Oneof1BoxedBoolean extends Oneof1Boxed { - public final boolean data; - private Oneof1BoxedBoolean(boolean data) { - this.data = data; - } + public record Oneof1BoxedBoolean(boolean data) implements Oneof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Oneof1BoxedNumber extends Oneof1Boxed { - public final Number data; - private Oneof1BoxedNumber(Number data) { - this.data = data; - } + public record Oneof1BoxedNumber(Number data) implements Oneof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Oneof1BoxedString extends Oneof1Boxed { - public final String data; - private Oneof1BoxedString(String data) { - this.data = data; - } + public record Oneof1BoxedString(String data) implements Oneof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Oneof1BoxedList extends Oneof1Boxed { - public final FrozenList<@Nullable Object> data; - private Oneof1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Oneof1BoxedList(FrozenList<@Nullable Object> data) implements Oneof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Oneof1BoxedMap extends Oneof1Boxed { - public final FrozenMap<@Nullable Object> data; - private Oneof1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Oneof1BoxedMap(FrozenMap<@Nullable Object> data) implements Oneof1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Oneof1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Oneof1BoxedList>, MapSchemaValidator, Oneof1BoxedMap> { + public static class Oneof1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Oneof1BoxedList>, MapSchemaValidator, Oneof1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -516,11 +487,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -551,11 +522,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -634,5 +605,24 @@ public Oneof1BoxedList validateAndBox(List arg, SchemaConfiguration configura public Oneof1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Oneof1BoxedMap(validate(arg, configuration)); } + @Override + public Oneof1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofComplexTypes.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofComplexTypes.java index 84d62dcd36a..ee1966faee0 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofComplexTypes.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofComplexTypes.java @@ -142,78 +142,54 @@ public Schema0Map0Builder getBuilderAfterBar(Map insta } - public static abstract sealed class Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { + @Nullable Object getData(); } - public static final class Schema0BoxedVoid extends Schema0Boxed { - public final Void data; - private Schema0BoxedVoid(Void data) { - this.data = data; - } + public record Schema0BoxedVoid(Void data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedBoolean extends Schema0Boxed { - public final boolean data; - private Schema0BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema0BoxedBoolean(boolean data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedNumber extends Schema0Boxed { - public final Number data; - private Schema0BoxedNumber(Number data) { - this.data = data; - } + public record Schema0BoxedNumber(Number data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedString extends Schema0Boxed { - public final String data; - private Schema0BoxedString(String data) { - this.data = data; - } + public record Schema0BoxedString(String data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedList extends Schema0Boxed { - public final FrozenList<@Nullable Object> data; - private Schema0BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedList(FrozenList<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedMap extends Schema0Boxed { - public final Schema0Map data; - private Schema0BoxedMap(Schema0Map data) { - this.data = data; - } + public record Schema0BoxedMap(Schema0Map data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator { + public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator { private static @Nullable Schema0 instance = null; protected Schema0() { @@ -317,11 +293,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -352,11 +328,11 @@ public Schema0Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -435,6 +411,25 @@ public Schema0BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema0BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema0BoxedMap(validate(arg, configuration)); } + @Override + public Schema0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class Foo extends StringJsonSchema.StringJsonSchema1 { @@ -522,78 +517,54 @@ public Schema1Map0Builder getBuilderAfterFoo(Map insta } - public static abstract sealed class Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { + @Nullable Object getData(); } - public static final class Schema1BoxedVoid extends Schema1Boxed { - public final Void data; - private Schema1BoxedVoid(Void data) { - this.data = data; - } + public record Schema1BoxedVoid(Void data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedBoolean extends Schema1Boxed { - public final boolean data; - private Schema1BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema1BoxedBoolean(boolean data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedNumber extends Schema1Boxed { - public final Number data; - private Schema1BoxedNumber(Number data) { - this.data = data; - } + public record Schema1BoxedNumber(Number data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedString extends Schema1Boxed { - public final String data; - private Schema1BoxedString(String data) { - this.data = data; - } + public record Schema1BoxedString(String data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedList extends Schema1Boxed { - public final FrozenList<@Nullable Object> data; - private Schema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedList(FrozenList<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedMap extends Schema1Boxed { - public final Schema1Map data; - private Schema1BoxedMap(Schema1Map data) { - this.data = data; - } + public record Schema1BoxedMap(Schema1Map data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator { + public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator { private static @Nullable Schema1 instance = null; protected Schema1() { @@ -697,11 +668,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -732,11 +703,11 @@ public Schema1Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -815,80 +786,75 @@ public Schema1BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema1BoxedMap(validate(arg, configuration)); } + @Override + public Schema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class OneofComplexTypes1Boxed permits OneofComplexTypes1BoxedVoid, OneofComplexTypes1BoxedBoolean, OneofComplexTypes1BoxedNumber, OneofComplexTypes1BoxedString, OneofComplexTypes1BoxedList, OneofComplexTypes1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface OneofComplexTypes1Boxed permits OneofComplexTypes1BoxedVoid, OneofComplexTypes1BoxedBoolean, OneofComplexTypes1BoxedNumber, OneofComplexTypes1BoxedString, OneofComplexTypes1BoxedList, OneofComplexTypes1BoxedMap { + @Nullable Object getData(); } - public static final class OneofComplexTypes1BoxedVoid extends OneofComplexTypes1Boxed { - public final Void data; - private OneofComplexTypes1BoxedVoid(Void data) { - this.data = data; - } + public record OneofComplexTypes1BoxedVoid(Void data) implements OneofComplexTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class OneofComplexTypes1BoxedBoolean extends OneofComplexTypes1Boxed { - public final boolean data; - private OneofComplexTypes1BoxedBoolean(boolean data) { - this.data = data; - } + public record OneofComplexTypes1BoxedBoolean(boolean data) implements OneofComplexTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class OneofComplexTypes1BoxedNumber extends OneofComplexTypes1Boxed { - public final Number data; - private OneofComplexTypes1BoxedNumber(Number data) { - this.data = data; - } + public record OneofComplexTypes1BoxedNumber(Number data) implements OneofComplexTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class OneofComplexTypes1BoxedString extends OneofComplexTypes1Boxed { - public final String data; - private OneofComplexTypes1BoxedString(String data) { - this.data = data; - } + public record OneofComplexTypes1BoxedString(String data) implements OneofComplexTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class OneofComplexTypes1BoxedList extends OneofComplexTypes1Boxed { - public final FrozenList<@Nullable Object> data; - private OneofComplexTypes1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record OneofComplexTypes1BoxedList(FrozenList<@Nullable Object> data) implements OneofComplexTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class OneofComplexTypes1BoxedMap extends OneofComplexTypes1Boxed { - public final FrozenMap<@Nullable Object> data; - private OneofComplexTypes1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record OneofComplexTypes1BoxedMap(FrozenMap<@Nullable Object> data) implements OneofComplexTypes1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class OneofComplexTypes1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, OneofComplexTypes1BoxedList>, MapSchemaValidator, OneofComplexTypes1BoxedMap> { + public static class OneofComplexTypes1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, OneofComplexTypes1BoxedList>, MapSchemaValidator, OneofComplexTypes1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -996,11 +962,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -1031,11 +997,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1114,5 +1080,24 @@ public OneofComplexTypes1BoxedList validateAndBox(List arg, SchemaConfigurati public OneofComplexTypes1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new OneofComplexTypes1BoxedMap(validate(arg, configuration)); } + @Override + public OneofComplexTypes1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithBaseSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithBaseSchema.java index 6fdab1d7d35..e9d3f27028e 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithBaseSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithBaseSchema.java @@ -35,78 +35,54 @@ public class OneofWithBaseSchema { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { + @Nullable Object getData(); } - public static final class Schema0BoxedVoid extends Schema0Boxed { - public final Void data; - private Schema0BoxedVoid(Void data) { - this.data = data; - } + public record Schema0BoxedVoid(Void data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedBoolean extends Schema0Boxed { - public final boolean data; - private Schema0BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema0BoxedBoolean(boolean data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedNumber extends Schema0Boxed { - public final Number data; - private Schema0BoxedNumber(Number data) { - this.data = data; - } + public record Schema0BoxedNumber(Number data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedString extends Schema0Boxed { - public final String data; - private Schema0BoxedString(String data) { - this.data = data; - } + public record Schema0BoxedString(String data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedList extends Schema0Boxed { - public final FrozenList<@Nullable Object> data; - private Schema0BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedList(FrozenList<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedMap extends Schema0Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema0BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedMap(FrozenMap<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator, Schema0BoxedMap> { + public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator, Schema0BoxedMap> { private static @Nullable Schema0 instance = null; protected Schema0() { @@ -205,11 +181,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -240,11 +216,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -323,80 +299,75 @@ public Schema0BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema0BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema0BoxedMap(validate(arg, configuration)); } + @Override + public Schema0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { + @Nullable Object getData(); } - public static final class Schema1BoxedVoid extends Schema1Boxed { - public final Void data; - private Schema1BoxedVoid(Void data) { - this.data = data; - } + public record Schema1BoxedVoid(Void data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedBoolean extends Schema1Boxed { - public final boolean data; - private Schema1BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema1BoxedBoolean(boolean data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedNumber extends Schema1Boxed { - public final Number data; - private Schema1BoxedNumber(Number data) { - this.data = data; - } + public record Schema1BoxedNumber(Number data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedString extends Schema1Boxed { - public final String data; - private Schema1BoxedString(String data) { - this.data = data; - } + public record Schema1BoxedString(String data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedList extends Schema1Boxed { - public final FrozenList<@Nullable Object> data; - private Schema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedList(FrozenList<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedMap extends Schema1Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedMap(FrozenMap<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator, Schema1BoxedMap> { + public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator, Schema1BoxedMap> { private static @Nullable Schema1 instance = null; protected Schema1() { @@ -495,11 +466,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -530,11 +501,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -613,26 +584,41 @@ public Schema1BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema1BoxedMap(validate(arg, configuration)); } + @Override + public Schema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class OneofWithBaseSchema1Boxed permits OneofWithBaseSchema1BoxedString { - public abstract @Nullable Object data(); + public sealed interface OneofWithBaseSchema1Boxed permits OneofWithBaseSchema1BoxedString { + @Nullable Object getData(); } - public static final class OneofWithBaseSchema1BoxedString extends OneofWithBaseSchema1Boxed { - public final String data; - private OneofWithBaseSchema1BoxedString(String data) { - this.data = data; - } + public record OneofWithBaseSchema1BoxedString(String data) implements OneofWithBaseSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class OneofWithBaseSchema1 extends JsonSchema implements StringSchemaValidator { + public static class OneofWithBaseSchema1 extends JsonSchema implements StringSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -689,5 +675,12 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val public OneofWithBaseSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new OneofWithBaseSchema1BoxedString(validate(arg, configuration)); } + @Override + public OneofWithBaseSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithEmptySchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithEmptySchema.java index 14094b8e686..96c4c68034b 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithEmptySchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithEmptySchema.java @@ -59,78 +59,54 @@ public static Schema1 getInstance() { } - public static abstract sealed class OneofWithEmptySchema1Boxed permits OneofWithEmptySchema1BoxedVoid, OneofWithEmptySchema1BoxedBoolean, OneofWithEmptySchema1BoxedNumber, OneofWithEmptySchema1BoxedString, OneofWithEmptySchema1BoxedList, OneofWithEmptySchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface OneofWithEmptySchema1Boxed permits OneofWithEmptySchema1BoxedVoid, OneofWithEmptySchema1BoxedBoolean, OneofWithEmptySchema1BoxedNumber, OneofWithEmptySchema1BoxedString, OneofWithEmptySchema1BoxedList, OneofWithEmptySchema1BoxedMap { + @Nullable Object getData(); } - public static final class OneofWithEmptySchema1BoxedVoid extends OneofWithEmptySchema1Boxed { - public final Void data; - private OneofWithEmptySchema1BoxedVoid(Void data) { - this.data = data; - } + public record OneofWithEmptySchema1BoxedVoid(Void data) implements OneofWithEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class OneofWithEmptySchema1BoxedBoolean extends OneofWithEmptySchema1Boxed { - public final boolean data; - private OneofWithEmptySchema1BoxedBoolean(boolean data) { - this.data = data; - } + public record OneofWithEmptySchema1BoxedBoolean(boolean data) implements OneofWithEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class OneofWithEmptySchema1BoxedNumber extends OneofWithEmptySchema1Boxed { - public final Number data; - private OneofWithEmptySchema1BoxedNumber(Number data) { - this.data = data; - } + public record OneofWithEmptySchema1BoxedNumber(Number data) implements OneofWithEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class OneofWithEmptySchema1BoxedString extends OneofWithEmptySchema1Boxed { - public final String data; - private OneofWithEmptySchema1BoxedString(String data) { - this.data = data; - } + public record OneofWithEmptySchema1BoxedString(String data) implements OneofWithEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class OneofWithEmptySchema1BoxedList extends OneofWithEmptySchema1Boxed { - public final FrozenList<@Nullable Object> data; - private OneofWithEmptySchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record OneofWithEmptySchema1BoxedList(FrozenList<@Nullable Object> data) implements OneofWithEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class OneofWithEmptySchema1BoxedMap extends OneofWithEmptySchema1Boxed { - public final FrozenMap<@Nullable Object> data; - private OneofWithEmptySchema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record OneofWithEmptySchema1BoxedMap(FrozenMap<@Nullable Object> data) implements OneofWithEmptySchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class OneofWithEmptySchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, OneofWithEmptySchema1BoxedList>, MapSchemaValidator, OneofWithEmptySchema1BoxedMap> { + public static class OneofWithEmptySchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, OneofWithEmptySchema1BoxedList>, MapSchemaValidator, OneofWithEmptySchema1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -238,11 +214,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -273,11 +249,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -356,5 +332,24 @@ public OneofWithEmptySchema1BoxedList validateAndBox(List arg, SchemaConfigur public OneofWithEmptySchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new OneofWithEmptySchema1BoxedMap(validate(arg, configuration)); } + @Override + public OneofWithEmptySchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithRequired.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithRequired.java index 98c0decd936..b62dc7bf97e 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithRequired.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithRequired.java @@ -248,78 +248,54 @@ public Schema0Map10Builder getBuilderAfterFoo(Map inst } - public static abstract sealed class Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { + @Nullable Object getData(); } - public static final class Schema0BoxedVoid extends Schema0Boxed { - public final Void data; - private Schema0BoxedVoid(Void data) { - this.data = data; - } + public record Schema0BoxedVoid(Void data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedBoolean extends Schema0Boxed { - public final boolean data; - private Schema0BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema0BoxedBoolean(boolean data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedNumber extends Schema0Boxed { - public final Number data; - private Schema0BoxedNumber(Number data) { - this.data = data; - } + public record Schema0BoxedNumber(Number data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedString extends Schema0Boxed { - public final String data; - private Schema0BoxedString(String data) { - this.data = data; - } + public record Schema0BoxedString(String data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedList extends Schema0Boxed { - public final FrozenList<@Nullable Object> data; - private Schema0BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedList(FrozenList<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedMap extends Schema0Boxed { - public final Schema0Map data; - private Schema0BoxedMap(Schema0Map data) { - this.data = data; - } + public record Schema0BoxedMap(Schema0Map data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator { + public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator { private static @Nullable Schema0 instance = null; protected Schema0() { @@ -421,11 +397,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -456,11 +432,11 @@ public Schema0Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -539,6 +515,25 @@ public Schema0BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema0BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema0BoxedMap(validate(arg, configuration)); } + @Override + public Schema0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class Schema1Map extends FrozenMap<@Nullable Object> { @@ -753,78 +748,54 @@ public Schema1Map10Builder getBuilderAfterFoo1(Map ins } - public static abstract sealed class Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { + @Nullable Object getData(); } - public static final class Schema1BoxedVoid extends Schema1Boxed { - public final Void data; - private Schema1BoxedVoid(Void data) { - this.data = data; - } + public record Schema1BoxedVoid(Void data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedBoolean extends Schema1Boxed { - public final boolean data; - private Schema1BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema1BoxedBoolean(boolean data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedNumber extends Schema1Boxed { - public final Number data; - private Schema1BoxedNumber(Number data) { - this.data = data; - } + public record Schema1BoxedNumber(Number data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedString extends Schema1Boxed { - public final String data; - private Schema1BoxedString(String data) { - this.data = data; - } + public record Schema1BoxedString(String data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedList extends Schema1Boxed { - public final FrozenList<@Nullable Object> data; - private Schema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedList(FrozenList<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedMap extends Schema1Boxed { - public final Schema1Map data; - private Schema1BoxedMap(Schema1Map data) { - this.data = data; - } + public record Schema1BoxedMap(Schema1Map data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator { + public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator { private static @Nullable Schema1 instance = null; protected Schema1() { @@ -926,11 +897,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -961,11 +932,11 @@ public Schema1Map getNewInstance(Map arg, List pathToItem, PathToS List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1044,25 +1015,40 @@ public Schema1BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema1BoxedMap(validate(arg, configuration)); } + @Override + public Schema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class OneofWithRequired1Boxed permits OneofWithRequired1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface OneofWithRequired1Boxed permits OneofWithRequired1BoxedMap { + @Nullable Object getData(); } - public static final class OneofWithRequired1BoxedMap extends OneofWithRequired1Boxed { - public final FrozenMap<@Nullable Object> data; - private OneofWithRequired1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record OneofWithRequired1BoxedMap(FrozenMap<@Nullable Object> data) implements OneofWithRequired1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class OneofWithRequired1 extends JsonSchema implements MapSchemaValidator, OneofWithRequired1BoxedMap> { + public static class OneofWithRequired1 extends JsonSchema implements MapSchemaValidator, OneofWithRequired1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -1099,11 +1085,11 @@ public static OneofWithRequired1 getInstance() { List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1140,6 +1126,13 @@ public static OneofWithRequired1 getInstance() { public OneofWithRequired1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new OneofWithRequired1BoxedMap(validate(arg, configuration)); } + @Override + public OneofWithRequired1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternIsNotAnchored.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternIsNotAnchored.java index 01e0392657e..49d4017ae06 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternIsNotAnchored.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternIsNotAnchored.java @@ -36,78 +36,54 @@ public class PatternIsNotAnchored { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class PatternIsNotAnchored1Boxed permits PatternIsNotAnchored1BoxedVoid, PatternIsNotAnchored1BoxedBoolean, PatternIsNotAnchored1BoxedNumber, PatternIsNotAnchored1BoxedString, PatternIsNotAnchored1BoxedList, PatternIsNotAnchored1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface PatternIsNotAnchored1Boxed permits PatternIsNotAnchored1BoxedVoid, PatternIsNotAnchored1BoxedBoolean, PatternIsNotAnchored1BoxedNumber, PatternIsNotAnchored1BoxedString, PatternIsNotAnchored1BoxedList, PatternIsNotAnchored1BoxedMap { + @Nullable Object getData(); } - public static final class PatternIsNotAnchored1BoxedVoid extends PatternIsNotAnchored1Boxed { - public final Void data; - private PatternIsNotAnchored1BoxedVoid(Void data) { - this.data = data; - } + public record PatternIsNotAnchored1BoxedVoid(Void data) implements PatternIsNotAnchored1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PatternIsNotAnchored1BoxedBoolean extends PatternIsNotAnchored1Boxed { - public final boolean data; - private PatternIsNotAnchored1BoxedBoolean(boolean data) { - this.data = data; - } + public record PatternIsNotAnchored1BoxedBoolean(boolean data) implements PatternIsNotAnchored1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PatternIsNotAnchored1BoxedNumber extends PatternIsNotAnchored1Boxed { - public final Number data; - private PatternIsNotAnchored1BoxedNumber(Number data) { - this.data = data; - } + public record PatternIsNotAnchored1BoxedNumber(Number data) implements PatternIsNotAnchored1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PatternIsNotAnchored1BoxedString extends PatternIsNotAnchored1Boxed { - public final String data; - private PatternIsNotAnchored1BoxedString(String data) { - this.data = data; - } + public record PatternIsNotAnchored1BoxedString(String data) implements PatternIsNotAnchored1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PatternIsNotAnchored1BoxedList extends PatternIsNotAnchored1Boxed { - public final FrozenList<@Nullable Object> data; - private PatternIsNotAnchored1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record PatternIsNotAnchored1BoxedList(FrozenList<@Nullable Object> data) implements PatternIsNotAnchored1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PatternIsNotAnchored1BoxedMap extends PatternIsNotAnchored1Boxed { - public final FrozenMap<@Nullable Object> data; - private PatternIsNotAnchored1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record PatternIsNotAnchored1BoxedMap(FrozenMap<@Nullable Object> data) implements PatternIsNotAnchored1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class PatternIsNotAnchored1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, PatternIsNotAnchored1BoxedList>, MapSchemaValidator, PatternIsNotAnchored1BoxedMap> { + public static class PatternIsNotAnchored1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, PatternIsNotAnchored1BoxedList>, MapSchemaValidator, PatternIsNotAnchored1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -214,11 +190,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -249,11 +225,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -332,5 +308,24 @@ public PatternIsNotAnchored1BoxedList validateAndBox(List arg, SchemaConfigur public PatternIsNotAnchored1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PatternIsNotAnchored1BoxedMap(validate(arg, configuration)); } + @Override + public PatternIsNotAnchored1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternValidation.java index 1493b20852c..7e0ffabd596 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternValidation.java @@ -36,78 +36,54 @@ public class PatternValidation { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class PatternValidation1Boxed permits PatternValidation1BoxedVoid, PatternValidation1BoxedBoolean, PatternValidation1BoxedNumber, PatternValidation1BoxedString, PatternValidation1BoxedList, PatternValidation1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface PatternValidation1Boxed permits PatternValidation1BoxedVoid, PatternValidation1BoxedBoolean, PatternValidation1BoxedNumber, PatternValidation1BoxedString, PatternValidation1BoxedList, PatternValidation1BoxedMap { + @Nullable Object getData(); } - public static final class PatternValidation1BoxedVoid extends PatternValidation1Boxed { - public final Void data; - private PatternValidation1BoxedVoid(Void data) { - this.data = data; - } + public record PatternValidation1BoxedVoid(Void data) implements PatternValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PatternValidation1BoxedBoolean extends PatternValidation1Boxed { - public final boolean data; - private PatternValidation1BoxedBoolean(boolean data) { - this.data = data; - } + public record PatternValidation1BoxedBoolean(boolean data) implements PatternValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PatternValidation1BoxedNumber extends PatternValidation1Boxed { - public final Number data; - private PatternValidation1BoxedNumber(Number data) { - this.data = data; - } + public record PatternValidation1BoxedNumber(Number data) implements PatternValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PatternValidation1BoxedString extends PatternValidation1Boxed { - public final String data; - private PatternValidation1BoxedString(String data) { - this.data = data; - } + public record PatternValidation1BoxedString(String data) implements PatternValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PatternValidation1BoxedList extends PatternValidation1Boxed { - public final FrozenList<@Nullable Object> data; - private PatternValidation1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record PatternValidation1BoxedList(FrozenList<@Nullable Object> data) implements PatternValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PatternValidation1BoxedMap extends PatternValidation1Boxed { - public final FrozenMap<@Nullable Object> data; - private PatternValidation1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record PatternValidation1BoxedMap(FrozenMap<@Nullable Object> data) implements PatternValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class PatternValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, PatternValidation1BoxedList>, MapSchemaValidator, PatternValidation1BoxedMap> { + public static class PatternValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, PatternValidation1BoxedList>, MapSchemaValidator, PatternValidation1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -214,11 +190,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -249,11 +225,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -332,5 +308,24 @@ public PatternValidation1BoxedList validateAndBox(List arg, SchemaConfigurati public PatternValidation1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PatternValidation1BoxedMap(validate(arg, configuration)); } + @Override + public PatternValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternpropertiesValidatesPropertiesMatchingARegex.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternpropertiesValidatesPropertiesMatchingARegex.java index c27817f84a7..50e1a0e927b 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternpropertiesValidatesPropertiesMatchingARegex.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternpropertiesValidatesPropertiesMatchingARegex.java @@ -49,78 +49,54 @@ public static Fo getInstance() { } - public static abstract sealed class PatternpropertiesValidatesPropertiesMatchingARegex1Boxed permits PatternpropertiesValidatesPropertiesMatchingARegex1BoxedVoid, PatternpropertiesValidatesPropertiesMatchingARegex1BoxedBoolean, PatternpropertiesValidatesPropertiesMatchingARegex1BoxedNumber, PatternpropertiesValidatesPropertiesMatchingARegex1BoxedString, PatternpropertiesValidatesPropertiesMatchingARegex1BoxedList, PatternpropertiesValidatesPropertiesMatchingARegex1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface PatternpropertiesValidatesPropertiesMatchingARegex1Boxed permits PatternpropertiesValidatesPropertiesMatchingARegex1BoxedVoid, PatternpropertiesValidatesPropertiesMatchingARegex1BoxedBoolean, PatternpropertiesValidatesPropertiesMatchingARegex1BoxedNumber, PatternpropertiesValidatesPropertiesMatchingARegex1BoxedString, PatternpropertiesValidatesPropertiesMatchingARegex1BoxedList, PatternpropertiesValidatesPropertiesMatchingARegex1BoxedMap { + @Nullable Object getData(); } - public static final class PatternpropertiesValidatesPropertiesMatchingARegex1BoxedVoid extends PatternpropertiesValidatesPropertiesMatchingARegex1Boxed { - public final Void data; - private PatternpropertiesValidatesPropertiesMatchingARegex1BoxedVoid(Void data) { - this.data = data; - } + public record PatternpropertiesValidatesPropertiesMatchingARegex1BoxedVoid(Void data) implements PatternpropertiesValidatesPropertiesMatchingARegex1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PatternpropertiesValidatesPropertiesMatchingARegex1BoxedBoolean extends PatternpropertiesValidatesPropertiesMatchingARegex1Boxed { - public final boolean data; - private PatternpropertiesValidatesPropertiesMatchingARegex1BoxedBoolean(boolean data) { - this.data = data; - } + public record PatternpropertiesValidatesPropertiesMatchingARegex1BoxedBoolean(boolean data) implements PatternpropertiesValidatesPropertiesMatchingARegex1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PatternpropertiesValidatesPropertiesMatchingARegex1BoxedNumber extends PatternpropertiesValidatesPropertiesMatchingARegex1Boxed { - public final Number data; - private PatternpropertiesValidatesPropertiesMatchingARegex1BoxedNumber(Number data) { - this.data = data; - } + public record PatternpropertiesValidatesPropertiesMatchingARegex1BoxedNumber(Number data) implements PatternpropertiesValidatesPropertiesMatchingARegex1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PatternpropertiesValidatesPropertiesMatchingARegex1BoxedString extends PatternpropertiesValidatesPropertiesMatchingARegex1Boxed { - public final String data; - private PatternpropertiesValidatesPropertiesMatchingARegex1BoxedString(String data) { - this.data = data; - } + public record PatternpropertiesValidatesPropertiesMatchingARegex1BoxedString(String data) implements PatternpropertiesValidatesPropertiesMatchingARegex1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PatternpropertiesValidatesPropertiesMatchingARegex1BoxedList extends PatternpropertiesValidatesPropertiesMatchingARegex1Boxed { - public final FrozenList<@Nullable Object> data; - private PatternpropertiesValidatesPropertiesMatchingARegex1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record PatternpropertiesValidatesPropertiesMatchingARegex1BoxedList(FrozenList<@Nullable Object> data) implements PatternpropertiesValidatesPropertiesMatchingARegex1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PatternpropertiesValidatesPropertiesMatchingARegex1BoxedMap extends PatternpropertiesValidatesPropertiesMatchingARegex1Boxed { - public final FrozenMap<@Nullable Object> data; - private PatternpropertiesValidatesPropertiesMatchingARegex1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record PatternpropertiesValidatesPropertiesMatchingARegex1BoxedMap(FrozenMap<@Nullable Object> data) implements PatternpropertiesValidatesPropertiesMatchingARegex1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class PatternpropertiesValidatesPropertiesMatchingARegex1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, PatternpropertiesValidatesPropertiesMatchingARegex1BoxedList>, MapSchemaValidator, PatternpropertiesValidatesPropertiesMatchingARegex1BoxedMap> { + public static class PatternpropertiesValidatesPropertiesMatchingARegex1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, PatternpropertiesValidatesPropertiesMatchingARegex1BoxedList>, MapSchemaValidator, PatternpropertiesValidatesPropertiesMatchingARegex1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -227,11 +203,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -262,11 +238,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -345,5 +321,24 @@ public PatternpropertiesValidatesPropertiesMatchingARegex1BoxedList validateAndB public PatternpropertiesValidatesPropertiesMatchingARegex1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PatternpropertiesValidatesPropertiesMatchingARegex1BoxedMap(validate(arg, configuration)); } + @Override + public PatternpropertiesValidatesPropertiesMatchingARegex1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternpropertiesWithNullValuedInstanceProperties.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternpropertiesWithNullValuedInstanceProperties.java index 1f4e7679b56..03c1bff09ce 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternpropertiesWithNullValuedInstanceProperties.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternpropertiesWithNullValuedInstanceProperties.java @@ -49,78 +49,54 @@ public static Bar getInstance() { } - public static abstract sealed class PatternpropertiesWithNullValuedInstanceProperties1Boxed permits PatternpropertiesWithNullValuedInstanceProperties1BoxedVoid, PatternpropertiesWithNullValuedInstanceProperties1BoxedBoolean, PatternpropertiesWithNullValuedInstanceProperties1BoxedNumber, PatternpropertiesWithNullValuedInstanceProperties1BoxedString, PatternpropertiesWithNullValuedInstanceProperties1BoxedList, PatternpropertiesWithNullValuedInstanceProperties1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface PatternpropertiesWithNullValuedInstanceProperties1Boxed permits PatternpropertiesWithNullValuedInstanceProperties1BoxedVoid, PatternpropertiesWithNullValuedInstanceProperties1BoxedBoolean, PatternpropertiesWithNullValuedInstanceProperties1BoxedNumber, PatternpropertiesWithNullValuedInstanceProperties1BoxedString, PatternpropertiesWithNullValuedInstanceProperties1BoxedList, PatternpropertiesWithNullValuedInstanceProperties1BoxedMap { + @Nullable Object getData(); } - public static final class PatternpropertiesWithNullValuedInstanceProperties1BoxedVoid extends PatternpropertiesWithNullValuedInstanceProperties1Boxed { - public final Void data; - private PatternpropertiesWithNullValuedInstanceProperties1BoxedVoid(Void data) { - this.data = data; - } + public record PatternpropertiesWithNullValuedInstanceProperties1BoxedVoid(Void data) implements PatternpropertiesWithNullValuedInstanceProperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PatternpropertiesWithNullValuedInstanceProperties1BoxedBoolean extends PatternpropertiesWithNullValuedInstanceProperties1Boxed { - public final boolean data; - private PatternpropertiesWithNullValuedInstanceProperties1BoxedBoolean(boolean data) { - this.data = data; - } + public record PatternpropertiesWithNullValuedInstanceProperties1BoxedBoolean(boolean data) implements PatternpropertiesWithNullValuedInstanceProperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PatternpropertiesWithNullValuedInstanceProperties1BoxedNumber extends PatternpropertiesWithNullValuedInstanceProperties1Boxed { - public final Number data; - private PatternpropertiesWithNullValuedInstanceProperties1BoxedNumber(Number data) { - this.data = data; - } + public record PatternpropertiesWithNullValuedInstanceProperties1BoxedNumber(Number data) implements PatternpropertiesWithNullValuedInstanceProperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PatternpropertiesWithNullValuedInstanceProperties1BoxedString extends PatternpropertiesWithNullValuedInstanceProperties1Boxed { - public final String data; - private PatternpropertiesWithNullValuedInstanceProperties1BoxedString(String data) { - this.data = data; - } + public record PatternpropertiesWithNullValuedInstanceProperties1BoxedString(String data) implements PatternpropertiesWithNullValuedInstanceProperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PatternpropertiesWithNullValuedInstanceProperties1BoxedList extends PatternpropertiesWithNullValuedInstanceProperties1Boxed { - public final FrozenList<@Nullable Object> data; - private PatternpropertiesWithNullValuedInstanceProperties1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record PatternpropertiesWithNullValuedInstanceProperties1BoxedList(FrozenList<@Nullable Object> data) implements PatternpropertiesWithNullValuedInstanceProperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PatternpropertiesWithNullValuedInstanceProperties1BoxedMap extends PatternpropertiesWithNullValuedInstanceProperties1Boxed { - public final FrozenMap<@Nullable Object> data; - private PatternpropertiesWithNullValuedInstanceProperties1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record PatternpropertiesWithNullValuedInstanceProperties1BoxedMap(FrozenMap<@Nullable Object> data) implements PatternpropertiesWithNullValuedInstanceProperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class PatternpropertiesWithNullValuedInstanceProperties1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, PatternpropertiesWithNullValuedInstanceProperties1BoxedList>, MapSchemaValidator, PatternpropertiesWithNullValuedInstanceProperties1BoxedMap> { + public static class PatternpropertiesWithNullValuedInstanceProperties1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, PatternpropertiesWithNullValuedInstanceProperties1BoxedList>, MapSchemaValidator, PatternpropertiesWithNullValuedInstanceProperties1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -227,11 +203,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -262,11 +238,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -345,5 +321,24 @@ public PatternpropertiesWithNullValuedInstanceProperties1BoxedList validateAndBo public PatternpropertiesWithNullValuedInstanceProperties1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PatternpropertiesWithNullValuedInstanceProperties1BoxedMap(validate(arg, configuration)); } + @Override + public PatternpropertiesWithNullValuedInstanceProperties1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PrefixitemsValidationAdjustsTheStartingIndexForItems.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PrefixitemsValidationAdjustsTheStartingIndexForItems.java index 9ad65a7f402..c7574319af8 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PrefixitemsValidationAdjustsTheStartingIndexForItems.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PrefixitemsValidationAdjustsTheStartingIndexForItems.java @@ -98,24 +98,20 @@ public static Schema0 getInstance() { } - public static abstract sealed class PrefixitemsValidationAdjustsTheStartingIndexForItems1Boxed permits PrefixitemsValidationAdjustsTheStartingIndexForItems1BoxedList { - public abstract @Nullable Object data(); + public sealed interface PrefixitemsValidationAdjustsTheStartingIndexForItems1Boxed permits PrefixitemsValidationAdjustsTheStartingIndexForItems1BoxedList { + @Nullable Object getData(); } - public static final class PrefixitemsValidationAdjustsTheStartingIndexForItems1BoxedList extends PrefixitemsValidationAdjustsTheStartingIndexForItems1Boxed { - public final PrefixitemsValidationAdjustsTheStartingIndexForItemsList data; - private PrefixitemsValidationAdjustsTheStartingIndexForItems1BoxedList(PrefixitemsValidationAdjustsTheStartingIndexForItemsList data) { - this.data = data; - } + public record PrefixitemsValidationAdjustsTheStartingIndexForItems1BoxedList(PrefixitemsValidationAdjustsTheStartingIndexForItemsList data) implements PrefixitemsValidationAdjustsTheStartingIndexForItems1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class PrefixitemsValidationAdjustsTheStartingIndexForItems1 extends JsonSchema implements ListSchemaValidator { + public static class PrefixitemsValidationAdjustsTheStartingIndexForItems1 extends JsonSchema implements ListSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -148,11 +144,11 @@ public PrefixitemsValidationAdjustsTheStartingIndexForItemsList getNewInstance(L for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof Object)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -192,5 +188,12 @@ public PrefixitemsValidationAdjustsTheStartingIndexForItemsList validate(List public PrefixitemsValidationAdjustsTheStartingIndexForItems1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PrefixitemsValidationAdjustsTheStartingIndexForItems1BoxedList(validate(arg, configuration)); } + @Override + public PrefixitemsValidationAdjustsTheStartingIndexForItems1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PrefixitemsWithNullInstanceElements.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PrefixitemsWithNullInstanceElements.java index b6b8e3c665b..07000cebd05 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PrefixitemsWithNullInstanceElements.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PrefixitemsWithNullInstanceElements.java @@ -119,78 +119,54 @@ public static Schema0 getInstance() { } - public static abstract sealed class PrefixitemsWithNullInstanceElements1Boxed permits PrefixitemsWithNullInstanceElements1BoxedVoid, PrefixitemsWithNullInstanceElements1BoxedBoolean, PrefixitemsWithNullInstanceElements1BoxedNumber, PrefixitemsWithNullInstanceElements1BoxedString, PrefixitemsWithNullInstanceElements1BoxedList, PrefixitemsWithNullInstanceElements1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface PrefixitemsWithNullInstanceElements1Boxed permits PrefixitemsWithNullInstanceElements1BoxedVoid, PrefixitemsWithNullInstanceElements1BoxedBoolean, PrefixitemsWithNullInstanceElements1BoxedNumber, PrefixitemsWithNullInstanceElements1BoxedString, PrefixitemsWithNullInstanceElements1BoxedList, PrefixitemsWithNullInstanceElements1BoxedMap { + @Nullable Object getData(); } - public static final class PrefixitemsWithNullInstanceElements1BoxedVoid extends PrefixitemsWithNullInstanceElements1Boxed { - public final Void data; - private PrefixitemsWithNullInstanceElements1BoxedVoid(Void data) { - this.data = data; - } + public record PrefixitemsWithNullInstanceElements1BoxedVoid(Void data) implements PrefixitemsWithNullInstanceElements1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PrefixitemsWithNullInstanceElements1BoxedBoolean extends PrefixitemsWithNullInstanceElements1Boxed { - public final boolean data; - private PrefixitemsWithNullInstanceElements1BoxedBoolean(boolean data) { - this.data = data; - } + public record PrefixitemsWithNullInstanceElements1BoxedBoolean(boolean data) implements PrefixitemsWithNullInstanceElements1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PrefixitemsWithNullInstanceElements1BoxedNumber extends PrefixitemsWithNullInstanceElements1Boxed { - public final Number data; - private PrefixitemsWithNullInstanceElements1BoxedNumber(Number data) { - this.data = data; - } + public record PrefixitemsWithNullInstanceElements1BoxedNumber(Number data) implements PrefixitemsWithNullInstanceElements1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PrefixitemsWithNullInstanceElements1BoxedString extends PrefixitemsWithNullInstanceElements1Boxed { - public final String data; - private PrefixitemsWithNullInstanceElements1BoxedString(String data) { - this.data = data; - } + public record PrefixitemsWithNullInstanceElements1BoxedString(String data) implements PrefixitemsWithNullInstanceElements1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PrefixitemsWithNullInstanceElements1BoxedList extends PrefixitemsWithNullInstanceElements1Boxed { - public final PrefixitemsWithNullInstanceElementsList data; - private PrefixitemsWithNullInstanceElements1BoxedList(PrefixitemsWithNullInstanceElementsList data) { - this.data = data; - } + public record PrefixitemsWithNullInstanceElements1BoxedList(PrefixitemsWithNullInstanceElementsList data) implements PrefixitemsWithNullInstanceElements1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PrefixitemsWithNullInstanceElements1BoxedMap extends PrefixitemsWithNullInstanceElements1Boxed { - public final FrozenMap<@Nullable Object> data; - private PrefixitemsWithNullInstanceElements1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record PrefixitemsWithNullInstanceElements1BoxedMap(FrozenMap<@Nullable Object> data) implements PrefixitemsWithNullInstanceElements1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class PrefixitemsWithNullInstanceElements1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MapSchemaValidator, PrefixitemsWithNullInstanceElements1BoxedMap> { + public static class PrefixitemsWithNullInstanceElements1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MapSchemaValidator, PrefixitemsWithNullInstanceElements1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -297,11 +273,11 @@ public PrefixitemsWithNullInstanceElementsList getNewInstance(List arg, List< for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -332,11 +308,11 @@ public PrefixitemsWithNullInstanceElementsList validate(List arg, SchemaConfi List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -415,5 +391,24 @@ public PrefixitemsWithNullInstanceElements1BoxedList validateAndBox(List arg, public PrefixitemsWithNullInstanceElements1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PrefixitemsWithNullInstanceElements1BoxedMap(validate(arg, configuration)); } + @Override + public PrefixitemsWithNullInstanceElements1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesPatternpropertiesAdditionalpropertiesInteraction.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesPatternpropertiesAdditionalpropertiesInteraction.java index f48570ae223..503c22b688e 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesPatternpropertiesAdditionalpropertiesInteraction.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesPatternpropertiesAdditionalpropertiesInteraction.java @@ -53,78 +53,54 @@ public static AdditionalProperties getInstance() { } - public static abstract sealed class FoBoxed permits FoBoxedVoid, FoBoxedBoolean, FoBoxedNumber, FoBoxedString, FoBoxedList, FoBoxedMap { - public abstract @Nullable Object data(); + public sealed interface FoBoxed permits FoBoxedVoid, FoBoxedBoolean, FoBoxedNumber, FoBoxedString, FoBoxedList, FoBoxedMap { + @Nullable Object getData(); } - public static final class FoBoxedVoid extends FoBoxed { - public final Void data; - private FoBoxedVoid(Void data) { - this.data = data; - } + public record FoBoxedVoid(Void data) implements FoBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class FoBoxedBoolean extends FoBoxed { - public final boolean data; - private FoBoxedBoolean(boolean data) { - this.data = data; - } + public record FoBoxedBoolean(boolean data) implements FoBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class FoBoxedNumber extends FoBoxed { - public final Number data; - private FoBoxedNumber(Number data) { - this.data = data; - } + public record FoBoxedNumber(Number data) implements FoBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class FoBoxedString extends FoBoxed { - public final String data; - private FoBoxedString(String data) { - this.data = data; - } + public record FoBoxedString(String data) implements FoBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class FoBoxedList extends FoBoxed { - public final FrozenList<@Nullable Object> data; - private FoBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record FoBoxedList(FrozenList<@Nullable Object> data) implements FoBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class FoBoxedMap extends FoBoxed { - public final FrozenMap<@Nullable Object> data; - private FoBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record FoBoxedMap(FrozenMap<@Nullable Object> data) implements FoBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Fo extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, FoBoxedList>, MapSchemaValidator, FoBoxedMap> { + public static class Fo extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, FoBoxedList>, MapSchemaValidator, FoBoxedMap> { private static @Nullable Fo instance = null; protected Fo() { @@ -223,11 +199,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -258,11 +234,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -341,26 +317,41 @@ public FoBoxedList validateAndBox(List arg, SchemaConfiguration configuration public FoBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new FoBoxedMap(validate(arg, configuration)); } + @Override + public FoBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class FooBoxed permits FooBoxedList { - public abstract @Nullable Object data(); + public sealed interface FooBoxed permits FooBoxedList { + @Nullable Object getData(); } - public static final class FooBoxedList extends FooBoxed { - public final FrozenList<@Nullable Object> data; - private FooBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record FooBoxedList(FrozenList<@Nullable Object> data) implements FooBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Foo extends JsonSchema implements ListSchemaValidator, FooBoxedList> { + public static class Foo extends JsonSchema implements ListSchemaValidator, FooBoxedList> { private static @Nullable Foo instance = null; protected Foo() { @@ -384,11 +375,11 @@ public static Foo getInstance() { for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -425,6 +416,13 @@ public static Foo getInstance() { public FooBoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new FooBoxedList(validate(arg, configuration)); } + @Override + public FooBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class Bar extends ListJsonSchema.ListJsonSchema1 { @@ -567,23 +565,19 @@ public PropertiesPatternpropertiesAdditionalpropertiesInteractionMapBuilder getB } - public static abstract sealed class PropertiesPatternpropertiesAdditionalpropertiesInteraction1Boxed permits PropertiesPatternpropertiesAdditionalpropertiesInteraction1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface PropertiesPatternpropertiesAdditionalpropertiesInteraction1Boxed permits PropertiesPatternpropertiesAdditionalpropertiesInteraction1BoxedMap { + @Nullable Object getData(); } - public static final class PropertiesPatternpropertiesAdditionalpropertiesInteraction1BoxedMap extends PropertiesPatternpropertiesAdditionalpropertiesInteraction1Boxed { - public final PropertiesPatternpropertiesAdditionalpropertiesInteractionMap data; - private PropertiesPatternpropertiesAdditionalpropertiesInteraction1BoxedMap(PropertiesPatternpropertiesAdditionalpropertiesInteractionMap data) { - this.data = data; - } + public record PropertiesPatternpropertiesAdditionalpropertiesInteraction1BoxedMap(PropertiesPatternpropertiesAdditionalpropertiesInteractionMap data) implements PropertiesPatternpropertiesAdditionalpropertiesInteraction1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class PropertiesPatternpropertiesAdditionalpropertiesInteraction1 extends JsonSchema implements MapSchemaValidator { + public static class PropertiesPatternpropertiesAdditionalpropertiesInteraction1 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 @@ -624,11 +618,11 @@ public PropertiesPatternpropertiesAdditionalpropertiesInteractionMap getNewInsta List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(propertyInstance instanceof Object)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -668,6 +662,13 @@ public PropertiesPatternpropertiesAdditionalpropertiesInteractionMap validate(Ma public PropertiesPatternpropertiesAdditionalpropertiesInteraction1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PropertiesPatternpropertiesAdditionalpropertiesInteraction1BoxedMap(validate(arg, configuration)); } + @Override + public PropertiesPatternpropertiesAdditionalpropertiesInteraction1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesWhoseNamesAreJavascriptObjectPropertyNames.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesWhoseNamesAreJavascriptObjectPropertyNames.java index 23ac2a5bd3f..f727766a051 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesWhoseNamesAreJavascriptObjectPropertyNames.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesWhoseNamesAreJavascriptObjectPropertyNames.java @@ -127,78 +127,54 @@ public ToStringMapBuilder getBuilderAfterAdditionalProperty(Map data; - private ToStringSchemaBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ToStringSchemaBoxedList(FrozenList<@Nullable Object> data) implements ToStringSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ToStringSchemaBoxedMap extends ToStringSchemaBoxed { - public final ToStringMap data; - private ToStringSchemaBoxedMap(ToStringMap data) { - this.data = data; - } + public record ToStringSchemaBoxedMap(ToStringMap data) implements ToStringSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class ToStringSchema extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ToStringSchemaBoxedList>, MapSchemaValidator { + public static class ToStringSchema extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ToStringSchemaBoxedList>, MapSchemaValidator { private static @Nullable ToStringSchema instance = null; protected ToStringSchema() { @@ -299,11 +275,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -334,11 +310,11 @@ public ToStringMap getNewInstance(Map arg, List pathToItem, PathTo List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -417,6 +393,25 @@ public ToStringSchemaBoxedList validateAndBox(List arg, SchemaConfiguration c public ToStringSchemaBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ToStringSchemaBoxedMap(validate(arg, configuration)); } + @Override + public ToStringSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class Constructor extends NumberJsonSchema.NumberJsonSchema1 { @@ -612,78 +607,54 @@ public PropertiesWhoseNamesAreJavascriptObjectPropertyNamesMapBuilder getBuilder } - public static abstract sealed class PropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed permits PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedVoid, PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedBoolean, PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedNumber, PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedString, PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedList, PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface PropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed permits PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedVoid, PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedBoolean, PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedNumber, PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedString, PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedList, PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedMap { + @Nullable Object getData(); } - public static final class PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedVoid extends PropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed { - public final Void data; - private PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedVoid(Void data) { - this.data = data; - } + public record PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedVoid(Void data) implements PropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedBoolean extends PropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed { - public final boolean data; - private PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedBoolean(boolean data) { - this.data = data; - } + public record PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedBoolean(boolean data) implements PropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedNumber extends PropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed { - public final Number data; - private PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedNumber(Number data) { - this.data = data; - } + public record PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedNumber(Number data) implements PropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedString extends PropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed { - public final String data; - private PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedString(String data) { - this.data = data; - } + public record PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedString(String data) implements PropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedList extends PropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed { - public final FrozenList<@Nullable Object> data; - private PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedList(FrozenList<@Nullable Object> data) implements PropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedMap extends PropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed { - public final PropertiesWhoseNamesAreJavascriptObjectPropertyNamesMap data; - private PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedMap(PropertiesWhoseNamesAreJavascriptObjectPropertyNamesMap data) { - this.data = data; - } + public record PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedMap(PropertiesWhoseNamesAreJavascriptObjectPropertyNamesMap data) implements PropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class PropertiesWhoseNamesAreJavascriptObjectPropertyNames1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedList>, MapSchemaValidator { + public static class PropertiesWhoseNamesAreJavascriptObjectPropertyNames1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -792,11 +763,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -827,11 +798,11 @@ public PropertiesWhoseNamesAreJavascriptObjectPropertyNamesMap getNewInstance(Ma List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -910,5 +881,24 @@ public PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedList validateAn public PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedMap(validate(arg, configuration)); } + @Override + public PropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesWithEscapedCharacters.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesWithEscapedCharacters.java index 5c68c3db422..9fec0c66360 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesWithEscapedCharacters.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesWithEscapedCharacters.java @@ -348,78 +348,54 @@ public PropertiesWithEscapedCharactersMapBuilder getBuilderAfterAdditionalProper } - public static abstract sealed class PropertiesWithEscapedCharacters1Boxed permits PropertiesWithEscapedCharacters1BoxedVoid, PropertiesWithEscapedCharacters1BoxedBoolean, PropertiesWithEscapedCharacters1BoxedNumber, PropertiesWithEscapedCharacters1BoxedString, PropertiesWithEscapedCharacters1BoxedList, PropertiesWithEscapedCharacters1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface PropertiesWithEscapedCharacters1Boxed permits PropertiesWithEscapedCharacters1BoxedVoid, PropertiesWithEscapedCharacters1BoxedBoolean, PropertiesWithEscapedCharacters1BoxedNumber, PropertiesWithEscapedCharacters1BoxedString, PropertiesWithEscapedCharacters1BoxedList, PropertiesWithEscapedCharacters1BoxedMap { + @Nullable Object getData(); } - public static final class PropertiesWithEscapedCharacters1BoxedVoid extends PropertiesWithEscapedCharacters1Boxed { - public final Void data; - private PropertiesWithEscapedCharacters1BoxedVoid(Void data) { - this.data = data; - } + public record PropertiesWithEscapedCharacters1BoxedVoid(Void data) implements PropertiesWithEscapedCharacters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertiesWithEscapedCharacters1BoxedBoolean extends PropertiesWithEscapedCharacters1Boxed { - public final boolean data; - private PropertiesWithEscapedCharacters1BoxedBoolean(boolean data) { - this.data = data; - } + public record PropertiesWithEscapedCharacters1BoxedBoolean(boolean data) implements PropertiesWithEscapedCharacters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertiesWithEscapedCharacters1BoxedNumber extends PropertiesWithEscapedCharacters1Boxed { - public final Number data; - private PropertiesWithEscapedCharacters1BoxedNumber(Number data) { - this.data = data; - } + public record PropertiesWithEscapedCharacters1BoxedNumber(Number data) implements PropertiesWithEscapedCharacters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertiesWithEscapedCharacters1BoxedString extends PropertiesWithEscapedCharacters1Boxed { - public final String data; - private PropertiesWithEscapedCharacters1BoxedString(String data) { - this.data = data; - } + public record PropertiesWithEscapedCharacters1BoxedString(String data) implements PropertiesWithEscapedCharacters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertiesWithEscapedCharacters1BoxedList extends PropertiesWithEscapedCharacters1Boxed { - public final FrozenList<@Nullable Object> data; - private PropertiesWithEscapedCharacters1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record PropertiesWithEscapedCharacters1BoxedList(FrozenList<@Nullable Object> data) implements PropertiesWithEscapedCharacters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertiesWithEscapedCharacters1BoxedMap extends PropertiesWithEscapedCharacters1Boxed { - public final PropertiesWithEscapedCharactersMap data; - private PropertiesWithEscapedCharacters1BoxedMap(PropertiesWithEscapedCharactersMap data) { - this.data = data; - } + public record PropertiesWithEscapedCharacters1BoxedMap(PropertiesWithEscapedCharactersMap data) implements PropertiesWithEscapedCharacters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class PropertiesWithEscapedCharacters1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, PropertiesWithEscapedCharacters1BoxedList>, MapSchemaValidator { + public static class PropertiesWithEscapedCharacters1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, PropertiesWithEscapedCharacters1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -531,11 +507,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -566,11 +542,11 @@ public PropertiesWithEscapedCharactersMap getNewInstance(Map arg, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -649,5 +625,24 @@ public PropertiesWithEscapedCharacters1BoxedList validateAndBox(List arg, Sch public PropertiesWithEscapedCharacters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PropertiesWithEscapedCharacters1BoxedMap(validate(arg, configuration)); } + @Override + public PropertiesWithEscapedCharacters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesWithNullValuedInstanceProperties.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesWithNullValuedInstanceProperties.java index 0fcbec119fe..4ebca7f490d 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesWithNullValuedInstanceProperties.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesWithNullValuedInstanceProperties.java @@ -115,78 +115,54 @@ public PropertiesWithNullValuedInstancePropertiesMapBuilder getBuilderAfterAddit } - public static abstract sealed class PropertiesWithNullValuedInstanceProperties1Boxed permits PropertiesWithNullValuedInstanceProperties1BoxedVoid, PropertiesWithNullValuedInstanceProperties1BoxedBoolean, PropertiesWithNullValuedInstanceProperties1BoxedNumber, PropertiesWithNullValuedInstanceProperties1BoxedString, PropertiesWithNullValuedInstanceProperties1BoxedList, PropertiesWithNullValuedInstanceProperties1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface PropertiesWithNullValuedInstanceProperties1Boxed permits PropertiesWithNullValuedInstanceProperties1BoxedVoid, PropertiesWithNullValuedInstanceProperties1BoxedBoolean, PropertiesWithNullValuedInstanceProperties1BoxedNumber, PropertiesWithNullValuedInstanceProperties1BoxedString, PropertiesWithNullValuedInstanceProperties1BoxedList, PropertiesWithNullValuedInstanceProperties1BoxedMap { + @Nullable Object getData(); } - public static final class PropertiesWithNullValuedInstanceProperties1BoxedVoid extends PropertiesWithNullValuedInstanceProperties1Boxed { - public final Void data; - private PropertiesWithNullValuedInstanceProperties1BoxedVoid(Void data) { - this.data = data; - } + public record PropertiesWithNullValuedInstanceProperties1BoxedVoid(Void data) implements PropertiesWithNullValuedInstanceProperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertiesWithNullValuedInstanceProperties1BoxedBoolean extends PropertiesWithNullValuedInstanceProperties1Boxed { - public final boolean data; - private PropertiesWithNullValuedInstanceProperties1BoxedBoolean(boolean data) { - this.data = data; - } + public record PropertiesWithNullValuedInstanceProperties1BoxedBoolean(boolean data) implements PropertiesWithNullValuedInstanceProperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertiesWithNullValuedInstanceProperties1BoxedNumber extends PropertiesWithNullValuedInstanceProperties1Boxed { - public final Number data; - private PropertiesWithNullValuedInstanceProperties1BoxedNumber(Number data) { - this.data = data; - } + public record PropertiesWithNullValuedInstanceProperties1BoxedNumber(Number data) implements PropertiesWithNullValuedInstanceProperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertiesWithNullValuedInstanceProperties1BoxedString extends PropertiesWithNullValuedInstanceProperties1Boxed { - public final String data; - private PropertiesWithNullValuedInstanceProperties1BoxedString(String data) { - this.data = data; - } + public record PropertiesWithNullValuedInstanceProperties1BoxedString(String data) implements PropertiesWithNullValuedInstanceProperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertiesWithNullValuedInstanceProperties1BoxedList extends PropertiesWithNullValuedInstanceProperties1Boxed { - public final FrozenList<@Nullable Object> data; - private PropertiesWithNullValuedInstanceProperties1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record PropertiesWithNullValuedInstanceProperties1BoxedList(FrozenList<@Nullable Object> data) implements PropertiesWithNullValuedInstanceProperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertiesWithNullValuedInstanceProperties1BoxedMap extends PropertiesWithNullValuedInstanceProperties1Boxed { - public final PropertiesWithNullValuedInstancePropertiesMap data; - private PropertiesWithNullValuedInstanceProperties1BoxedMap(PropertiesWithNullValuedInstancePropertiesMap data) { - this.data = data; - } + public record PropertiesWithNullValuedInstanceProperties1BoxedMap(PropertiesWithNullValuedInstancePropertiesMap data) implements PropertiesWithNullValuedInstanceProperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class PropertiesWithNullValuedInstanceProperties1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, PropertiesWithNullValuedInstanceProperties1BoxedList>, MapSchemaValidator { + public static class PropertiesWithNullValuedInstanceProperties1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, PropertiesWithNullValuedInstanceProperties1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -293,11 +269,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -328,11 +304,11 @@ public PropertiesWithNullValuedInstancePropertiesMap getNewInstance(Map ar List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -411,5 +387,24 @@ public PropertiesWithNullValuedInstanceProperties1BoxedList validateAndBox(List< public PropertiesWithNullValuedInstanceProperties1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PropertiesWithNullValuedInstanceProperties1BoxedMap(validate(arg, configuration)); } + @Override + public PropertiesWithNullValuedInstanceProperties1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertyNamedRefThatIsNotAReference.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertyNamedRefThatIsNotAReference.java index 4f5b39e6deb..559e0f4fe6f 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertyNamedRefThatIsNotAReference.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertyNamedRefThatIsNotAReference.java @@ -105,78 +105,54 @@ public PropertyNamedRefThatIsNotAReferenceMapBuilder getBuilderAfterAdditionalPr } - public static abstract sealed class PropertyNamedRefThatIsNotAReference1Boxed permits PropertyNamedRefThatIsNotAReference1BoxedVoid, PropertyNamedRefThatIsNotAReference1BoxedBoolean, PropertyNamedRefThatIsNotAReference1BoxedNumber, PropertyNamedRefThatIsNotAReference1BoxedString, PropertyNamedRefThatIsNotAReference1BoxedList, PropertyNamedRefThatIsNotAReference1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface PropertyNamedRefThatIsNotAReference1Boxed permits PropertyNamedRefThatIsNotAReference1BoxedVoid, PropertyNamedRefThatIsNotAReference1BoxedBoolean, PropertyNamedRefThatIsNotAReference1BoxedNumber, PropertyNamedRefThatIsNotAReference1BoxedString, PropertyNamedRefThatIsNotAReference1BoxedList, PropertyNamedRefThatIsNotAReference1BoxedMap { + @Nullable Object getData(); } - public static final class PropertyNamedRefThatIsNotAReference1BoxedVoid extends PropertyNamedRefThatIsNotAReference1Boxed { - public final Void data; - private PropertyNamedRefThatIsNotAReference1BoxedVoid(Void data) { - this.data = data; - } + public record PropertyNamedRefThatIsNotAReference1BoxedVoid(Void data) implements PropertyNamedRefThatIsNotAReference1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertyNamedRefThatIsNotAReference1BoxedBoolean extends PropertyNamedRefThatIsNotAReference1Boxed { - public final boolean data; - private PropertyNamedRefThatIsNotAReference1BoxedBoolean(boolean data) { - this.data = data; - } + public record PropertyNamedRefThatIsNotAReference1BoxedBoolean(boolean data) implements PropertyNamedRefThatIsNotAReference1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertyNamedRefThatIsNotAReference1BoxedNumber extends PropertyNamedRefThatIsNotAReference1Boxed { - public final Number data; - private PropertyNamedRefThatIsNotAReference1BoxedNumber(Number data) { - this.data = data; - } + public record PropertyNamedRefThatIsNotAReference1BoxedNumber(Number data) implements PropertyNamedRefThatIsNotAReference1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertyNamedRefThatIsNotAReference1BoxedString extends PropertyNamedRefThatIsNotAReference1Boxed { - public final String data; - private PropertyNamedRefThatIsNotAReference1BoxedString(String data) { - this.data = data; - } + public record PropertyNamedRefThatIsNotAReference1BoxedString(String data) implements PropertyNamedRefThatIsNotAReference1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertyNamedRefThatIsNotAReference1BoxedList extends PropertyNamedRefThatIsNotAReference1Boxed { - public final FrozenList<@Nullable Object> data; - private PropertyNamedRefThatIsNotAReference1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record PropertyNamedRefThatIsNotAReference1BoxedList(FrozenList<@Nullable Object> data) implements PropertyNamedRefThatIsNotAReference1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertyNamedRefThatIsNotAReference1BoxedMap extends PropertyNamedRefThatIsNotAReference1Boxed { - public final PropertyNamedRefThatIsNotAReferenceMap data; - private PropertyNamedRefThatIsNotAReference1BoxedMap(PropertyNamedRefThatIsNotAReferenceMap data) { - this.data = data; - } + public record PropertyNamedRefThatIsNotAReference1BoxedMap(PropertyNamedRefThatIsNotAReferenceMap data) implements PropertyNamedRefThatIsNotAReference1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class PropertyNamedRefThatIsNotAReference1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, PropertyNamedRefThatIsNotAReference1BoxedList>, MapSchemaValidator { + public static class PropertyNamedRefThatIsNotAReference1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, PropertyNamedRefThatIsNotAReference1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -283,11 +259,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -318,11 +294,11 @@ public PropertyNamedRefThatIsNotAReferenceMap getNewInstance(Map arg, List List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -401,5 +377,24 @@ public PropertyNamedRefThatIsNotAReference1BoxedList validateAndBox(List arg, public PropertyNamedRefThatIsNotAReference1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PropertyNamedRefThatIsNotAReference1BoxedMap(validate(arg, configuration)); } + @Override + public PropertyNamedRefThatIsNotAReference1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertynamesValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertynamesValidation.java index 7f243d22802..15cb89341c1 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertynamesValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertynamesValidation.java @@ -35,24 +35,20 @@ public class PropertynamesValidation { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class PropertyNamesBoxed permits PropertyNamesBoxedString { - public abstract @Nullable Object data(); + public sealed interface PropertyNamesBoxed permits PropertyNamesBoxedString { + @Nullable Object getData(); } - public static final class PropertyNamesBoxedString extends PropertyNamesBoxed { - public final String data; - private PropertyNamesBoxedString(String data) { - this.data = data; - } + public record PropertyNamesBoxedString(String data) implements PropertyNamesBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class PropertyNames extends JsonSchema implements StringSchemaValidator { + public static class PropertyNames extends JsonSchema implements StringSchemaValidator { private static @Nullable PropertyNames instance = null; protected PropertyNames() { @@ -100,80 +96,63 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val public PropertyNamesBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PropertyNamesBoxedString(validate(arg, configuration)); } + @Override + public PropertyNamesBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class PropertynamesValidation1Boxed permits PropertynamesValidation1BoxedVoid, PropertynamesValidation1BoxedBoolean, PropertynamesValidation1BoxedNumber, PropertynamesValidation1BoxedString, PropertynamesValidation1BoxedList, PropertynamesValidation1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface PropertynamesValidation1Boxed permits PropertynamesValidation1BoxedVoid, PropertynamesValidation1BoxedBoolean, PropertynamesValidation1BoxedNumber, PropertynamesValidation1BoxedString, PropertynamesValidation1BoxedList, PropertynamesValidation1BoxedMap { + @Nullable Object getData(); } - public static final class PropertynamesValidation1BoxedVoid extends PropertynamesValidation1Boxed { - public final Void data; - private PropertynamesValidation1BoxedVoid(Void data) { - this.data = data; - } + public record PropertynamesValidation1BoxedVoid(Void data) implements PropertynamesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertynamesValidation1BoxedBoolean extends PropertynamesValidation1Boxed { - public final boolean data; - private PropertynamesValidation1BoxedBoolean(boolean data) { - this.data = data; - } + public record PropertynamesValidation1BoxedBoolean(boolean data) implements PropertynamesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertynamesValidation1BoxedNumber extends PropertynamesValidation1Boxed { - public final Number data; - private PropertynamesValidation1BoxedNumber(Number data) { - this.data = data; - } + public record PropertynamesValidation1BoxedNumber(Number data) implements PropertynamesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertynamesValidation1BoxedString extends PropertynamesValidation1Boxed { - public final String data; - private PropertynamesValidation1BoxedString(String data) { - this.data = data; - } + public record PropertynamesValidation1BoxedString(String data) implements PropertynamesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertynamesValidation1BoxedList extends PropertynamesValidation1Boxed { - public final FrozenList<@Nullable Object> data; - private PropertynamesValidation1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record PropertynamesValidation1BoxedList(FrozenList<@Nullable Object> data) implements PropertynamesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class PropertynamesValidation1BoxedMap extends PropertynamesValidation1Boxed { - public final FrozenMap<@Nullable Object> data; - private PropertynamesValidation1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record PropertynamesValidation1BoxedMap(FrozenMap<@Nullable Object> data) implements PropertynamesValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class PropertynamesValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, PropertynamesValidation1BoxedList>, MapSchemaValidator, PropertynamesValidation1BoxedMap> { + public static class PropertynamesValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, PropertynamesValidation1BoxedList>, MapSchemaValidator, PropertynamesValidation1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -278,11 +257,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -313,11 +292,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -396,5 +375,24 @@ public PropertynamesValidation1BoxedList validateAndBox(List arg, SchemaConfi public PropertynamesValidation1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PropertynamesValidation1BoxedMap(validate(arg, configuration)); } + @Override + public PropertynamesValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RegexFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RegexFormat.java index c015ccc8d17..cd8b8320ee6 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RegexFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RegexFormat.java @@ -35,78 +35,54 @@ public class RegexFormat { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class RegexFormat1Boxed permits RegexFormat1BoxedVoid, RegexFormat1BoxedBoolean, RegexFormat1BoxedNumber, RegexFormat1BoxedString, RegexFormat1BoxedList, RegexFormat1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface RegexFormat1Boxed permits RegexFormat1BoxedVoid, RegexFormat1BoxedBoolean, RegexFormat1BoxedNumber, RegexFormat1BoxedString, RegexFormat1BoxedList, RegexFormat1BoxedMap { + @Nullable Object getData(); } - public static final class RegexFormat1BoxedVoid extends RegexFormat1Boxed { - public final Void data; - private RegexFormat1BoxedVoid(Void data) { - this.data = data; - } + public record RegexFormat1BoxedVoid(Void data) implements RegexFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RegexFormat1BoxedBoolean extends RegexFormat1Boxed { - public final boolean data; - private RegexFormat1BoxedBoolean(boolean data) { - this.data = data; - } + public record RegexFormat1BoxedBoolean(boolean data) implements RegexFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RegexFormat1BoxedNumber extends RegexFormat1Boxed { - public final Number data; - private RegexFormat1BoxedNumber(Number data) { - this.data = data; - } + public record RegexFormat1BoxedNumber(Number data) implements RegexFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RegexFormat1BoxedString extends RegexFormat1Boxed { - public final String data; - private RegexFormat1BoxedString(String data) { - this.data = data; - } + public record RegexFormat1BoxedString(String data) implements RegexFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RegexFormat1BoxedList extends RegexFormat1Boxed { - public final FrozenList<@Nullable Object> data; - private RegexFormat1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record RegexFormat1BoxedList(FrozenList<@Nullable Object> data) implements RegexFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RegexFormat1BoxedMap extends RegexFormat1Boxed { - public final FrozenMap<@Nullable Object> data; - private RegexFormat1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record RegexFormat1BoxedMap(FrozenMap<@Nullable Object> data) implements RegexFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class RegexFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RegexFormat1BoxedList>, MapSchemaValidator, RegexFormat1BoxedMap> { + public static class RegexFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RegexFormat1BoxedList>, MapSchemaValidator, RegexFormat1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public RegexFormat1BoxedList validateAndBox(List arg, SchemaConfiguration con public RegexFormat1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new RegexFormat1BoxedMap(validate(arg, configuration)); } + @Override + public RegexFormat1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.java index c990b4994b3..a8f1b0e7078 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.java @@ -61,78 +61,54 @@ public static X getInstance() { } - public static abstract sealed class RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1Boxed permits RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedVoid, RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedBoolean, RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedNumber, RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedString, RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedList, RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1Boxed permits RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedVoid, RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedBoolean, RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedNumber, RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedString, RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedList, RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedMap { + @Nullable Object getData(); } - public static final class RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedVoid extends RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1Boxed { - public final Void data; - private RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedVoid(Void data) { - this.data = data; - } + public record RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedVoid(Void data) implements RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedBoolean extends RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1Boxed { - public final boolean data; - private RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedBoolean(boolean data) { - this.data = data; - } + public record RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedBoolean(boolean data) implements RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedNumber extends RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1Boxed { - public final Number data; - private RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedNumber(Number data) { - this.data = data; - } + public record RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedNumber(Number data) implements RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedString extends RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1Boxed { - public final String data; - private RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedString(String data) { - this.data = data; - } + public record RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedString(String data) implements RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedList extends RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1Boxed { - public final FrozenList<@Nullable Object> data; - private RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedList(FrozenList<@Nullable Object> data) implements RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedMap extends RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1Boxed { - public final FrozenMap<@Nullable Object> data; - private RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedMap(FrozenMap<@Nullable Object> data) implements RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedList>, MapSchemaValidator, RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedMap> { + public static class RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedList>, MapSchemaValidator, RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -240,11 +216,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -275,11 +251,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -358,5 +334,24 @@ public RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedList validateAndBo public RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1BoxedMap(validate(arg, configuration)); } + @Override + public RegexesAreNotAnchoredByDefaultAndAreCaseSensitive1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RelativeJsonPointerFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RelativeJsonPointerFormat.java index 35892ce241a..f919b948fe2 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RelativeJsonPointerFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RelativeJsonPointerFormat.java @@ -35,78 +35,54 @@ public class RelativeJsonPointerFormat { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class RelativeJsonPointerFormat1Boxed permits RelativeJsonPointerFormat1BoxedVoid, RelativeJsonPointerFormat1BoxedBoolean, RelativeJsonPointerFormat1BoxedNumber, RelativeJsonPointerFormat1BoxedString, RelativeJsonPointerFormat1BoxedList, RelativeJsonPointerFormat1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface RelativeJsonPointerFormat1Boxed permits RelativeJsonPointerFormat1BoxedVoid, RelativeJsonPointerFormat1BoxedBoolean, RelativeJsonPointerFormat1BoxedNumber, RelativeJsonPointerFormat1BoxedString, RelativeJsonPointerFormat1BoxedList, RelativeJsonPointerFormat1BoxedMap { + @Nullable Object getData(); } - public static final class RelativeJsonPointerFormat1BoxedVoid extends RelativeJsonPointerFormat1Boxed { - public final Void data; - private RelativeJsonPointerFormat1BoxedVoid(Void data) { - this.data = data; - } + public record RelativeJsonPointerFormat1BoxedVoid(Void data) implements RelativeJsonPointerFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RelativeJsonPointerFormat1BoxedBoolean extends RelativeJsonPointerFormat1Boxed { - public final boolean data; - private RelativeJsonPointerFormat1BoxedBoolean(boolean data) { - this.data = data; - } + public record RelativeJsonPointerFormat1BoxedBoolean(boolean data) implements RelativeJsonPointerFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RelativeJsonPointerFormat1BoxedNumber extends RelativeJsonPointerFormat1Boxed { - public final Number data; - private RelativeJsonPointerFormat1BoxedNumber(Number data) { - this.data = data; - } + public record RelativeJsonPointerFormat1BoxedNumber(Number data) implements RelativeJsonPointerFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RelativeJsonPointerFormat1BoxedString extends RelativeJsonPointerFormat1Boxed { - public final String data; - private RelativeJsonPointerFormat1BoxedString(String data) { - this.data = data; - } + public record RelativeJsonPointerFormat1BoxedString(String data) implements RelativeJsonPointerFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RelativeJsonPointerFormat1BoxedList extends RelativeJsonPointerFormat1Boxed { - public final FrozenList<@Nullable Object> data; - private RelativeJsonPointerFormat1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record RelativeJsonPointerFormat1BoxedList(FrozenList<@Nullable Object> data) implements RelativeJsonPointerFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RelativeJsonPointerFormat1BoxedMap extends RelativeJsonPointerFormat1Boxed { - public final FrozenMap<@Nullable Object> data; - private RelativeJsonPointerFormat1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record RelativeJsonPointerFormat1BoxedMap(FrozenMap<@Nullable Object> data) implements RelativeJsonPointerFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class RelativeJsonPointerFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RelativeJsonPointerFormat1BoxedList>, MapSchemaValidator, RelativeJsonPointerFormat1BoxedMap> { + public static class RelativeJsonPointerFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RelativeJsonPointerFormat1BoxedList>, MapSchemaValidator, RelativeJsonPointerFormat1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public RelativeJsonPointerFormat1BoxedList validateAndBox(List arg, SchemaCon public RelativeJsonPointerFormat1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new RelativeJsonPointerFormat1BoxedMap(validate(arg, configuration)); } + @Override + public RelativeJsonPointerFormat1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredDefaultValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredDefaultValidation.java index 3ec1cb0e025..8be0cb10a2a 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredDefaultValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredDefaultValidation.java @@ -157,78 +157,54 @@ public RequiredDefaultValidationMapBuilder getBuilderAfterAdditionalProperty(Map } - public static abstract sealed class RequiredDefaultValidation1Boxed permits RequiredDefaultValidation1BoxedVoid, RequiredDefaultValidation1BoxedBoolean, RequiredDefaultValidation1BoxedNumber, RequiredDefaultValidation1BoxedString, RequiredDefaultValidation1BoxedList, RequiredDefaultValidation1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface RequiredDefaultValidation1Boxed permits RequiredDefaultValidation1BoxedVoid, RequiredDefaultValidation1BoxedBoolean, RequiredDefaultValidation1BoxedNumber, RequiredDefaultValidation1BoxedString, RequiredDefaultValidation1BoxedList, RequiredDefaultValidation1BoxedMap { + @Nullable Object getData(); } - public static final class RequiredDefaultValidation1BoxedVoid extends RequiredDefaultValidation1Boxed { - public final Void data; - private RequiredDefaultValidation1BoxedVoid(Void data) { - this.data = data; - } + public record RequiredDefaultValidation1BoxedVoid(Void data) implements RequiredDefaultValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RequiredDefaultValidation1BoxedBoolean extends RequiredDefaultValidation1Boxed { - public final boolean data; - private RequiredDefaultValidation1BoxedBoolean(boolean data) { - this.data = data; - } + public record RequiredDefaultValidation1BoxedBoolean(boolean data) implements RequiredDefaultValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RequiredDefaultValidation1BoxedNumber extends RequiredDefaultValidation1Boxed { - public final Number data; - private RequiredDefaultValidation1BoxedNumber(Number data) { - this.data = data; - } + public record RequiredDefaultValidation1BoxedNumber(Number data) implements RequiredDefaultValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RequiredDefaultValidation1BoxedString extends RequiredDefaultValidation1Boxed { - public final String data; - private RequiredDefaultValidation1BoxedString(String data) { - this.data = data; - } + public record RequiredDefaultValidation1BoxedString(String data) implements RequiredDefaultValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RequiredDefaultValidation1BoxedList extends RequiredDefaultValidation1Boxed { - public final FrozenList<@Nullable Object> data; - private RequiredDefaultValidation1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record RequiredDefaultValidation1BoxedList(FrozenList<@Nullable Object> data) implements RequiredDefaultValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RequiredDefaultValidation1BoxedMap extends RequiredDefaultValidation1Boxed { - public final RequiredDefaultValidationMap data; - private RequiredDefaultValidation1BoxedMap(RequiredDefaultValidationMap data) { - this.data = data; - } + public record RequiredDefaultValidation1BoxedMap(RequiredDefaultValidationMap data) implements RequiredDefaultValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class RequiredDefaultValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RequiredDefaultValidation1BoxedList>, MapSchemaValidator { + public static class RequiredDefaultValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RequiredDefaultValidation1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -335,11 +311,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -370,11 +346,11 @@ public RequiredDefaultValidationMap getNewInstance(Map arg, List p List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -453,5 +429,24 @@ public RequiredDefaultValidation1BoxedList validateAndBox(List arg, SchemaCon public RequiredDefaultValidation1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new RequiredDefaultValidation1BoxedMap(validate(arg, configuration)); } + @Override + public RequiredDefaultValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames.java index 2ae49db2d06..cba00121cd8 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames.java @@ -369,78 +369,54 @@ public RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesMap110Builder } - public static abstract sealed class RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed permits RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedVoid, RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedBoolean, RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedNumber, RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedString, RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedList, RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed permits RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedVoid, RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedBoolean, RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedNumber, RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedString, RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedList, RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedMap { + @Nullable Object getData(); } - public static final class RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedVoid extends RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed { - public final Void data; - private RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedVoid(Void data) { - this.data = data; - } + public record RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedVoid(Void data) implements RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedBoolean extends RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed { - public final boolean data; - private RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedBoolean(boolean data) { - this.data = data; - } + public record RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedBoolean(boolean data) implements RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedNumber extends RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed { - public final Number data; - private RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedNumber(Number data) { - this.data = data; - } + public record RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedNumber(Number data) implements RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedString extends RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed { - public final String data; - private RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedString(String data) { - this.data = data; - } + public record RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedString(String data) implements RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedList extends RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed { - public final FrozenList<@Nullable Object> data; - private RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedList(FrozenList<@Nullable Object> data) implements RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedMap extends RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed { - public final RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesMap data; - private RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedMap(RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesMap data) { - this.data = data; - } + public record RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedMap(RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesMap data) implements RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedList>, MapSchemaValidator { + public static class RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -549,11 +525,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -584,11 +560,11 @@ public RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesMap getNewIns List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -667,5 +643,24 @@ public RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedList va public RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1BoxedMap(validate(arg, configuration)); } + @Override + public RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredValidation.java index f2fcafbdf13..aeaff53e4dd 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredValidation.java @@ -247,78 +247,54 @@ public RequiredValidationMap0Builder getBuilderAfterFoo(Map data; - private RequiredValidation1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record RequiredValidation1BoxedList(FrozenList<@Nullable Object> data) implements RequiredValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RequiredValidation1BoxedMap extends RequiredValidation1Boxed { - public final RequiredValidationMap data; - private RequiredValidation1BoxedMap(RequiredValidationMap data) { - this.data = data; - } + public record RequiredValidation1BoxedMap(RequiredValidationMap data) implements RequiredValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class RequiredValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RequiredValidation1BoxedList>, MapSchemaValidator { + public static class RequiredValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RequiredValidation1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -429,11 +405,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -464,11 +440,11 @@ public RequiredValidationMap getNewInstance(Map arg, List pathToIt List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -547,5 +523,24 @@ public RequiredValidation1BoxedList validateAndBox(List arg, SchemaConfigurat public RequiredValidation1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new RequiredValidation1BoxedMap(validate(arg, configuration)); } + @Override + public RequiredValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredWithEmptyArray.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredWithEmptyArray.java index 65683b78a83..8f3fb5dbb03 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredWithEmptyArray.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredWithEmptyArray.java @@ -157,78 +157,54 @@ public RequiredWithEmptyArrayMapBuilder getBuilderAfterAdditionalProperty(Map data; - private RequiredWithEmptyArray1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record RequiredWithEmptyArray1BoxedList(FrozenList<@Nullable Object> data) implements RequiredWithEmptyArray1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RequiredWithEmptyArray1BoxedMap extends RequiredWithEmptyArray1Boxed { - public final RequiredWithEmptyArrayMap data; - private RequiredWithEmptyArray1BoxedMap(RequiredWithEmptyArrayMap data) { - this.data = data; - } + public record RequiredWithEmptyArray1BoxedMap(RequiredWithEmptyArrayMap data) implements RequiredWithEmptyArray1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class RequiredWithEmptyArray1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RequiredWithEmptyArray1BoxedList>, MapSchemaValidator { + public static class RequiredWithEmptyArray1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RequiredWithEmptyArray1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -335,11 +311,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -370,11 +346,11 @@ public RequiredWithEmptyArrayMap getNewInstance(Map arg, List path List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -453,5 +429,24 @@ public RequiredWithEmptyArray1BoxedList validateAndBox(List arg, SchemaConfig public RequiredWithEmptyArray1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new RequiredWithEmptyArray1BoxedMap(validate(arg, configuration)); } + @Override + public RequiredWithEmptyArray1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredWithEscapedCharacters.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredWithEscapedCharacters.java index aa00cfb41ab..d6afadd7b34 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredWithEscapedCharacters.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredWithEscapedCharacters.java @@ -1648,78 +1648,54 @@ public RequiredWithEscapedCharactersMap111110Builder getBuilderAfterFoobar1(Map< } - public static abstract sealed class RequiredWithEscapedCharacters1Boxed permits RequiredWithEscapedCharacters1BoxedVoid, RequiredWithEscapedCharacters1BoxedBoolean, RequiredWithEscapedCharacters1BoxedNumber, RequiredWithEscapedCharacters1BoxedString, RequiredWithEscapedCharacters1BoxedList, RequiredWithEscapedCharacters1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface RequiredWithEscapedCharacters1Boxed permits RequiredWithEscapedCharacters1BoxedVoid, RequiredWithEscapedCharacters1BoxedBoolean, RequiredWithEscapedCharacters1BoxedNumber, RequiredWithEscapedCharacters1BoxedString, RequiredWithEscapedCharacters1BoxedList, RequiredWithEscapedCharacters1BoxedMap { + @Nullable Object getData(); } - public static final class RequiredWithEscapedCharacters1BoxedVoid extends RequiredWithEscapedCharacters1Boxed { - public final Void data; - private RequiredWithEscapedCharacters1BoxedVoid(Void data) { - this.data = data; - } + public record RequiredWithEscapedCharacters1BoxedVoid(Void data) implements RequiredWithEscapedCharacters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RequiredWithEscapedCharacters1BoxedBoolean extends RequiredWithEscapedCharacters1Boxed { - public final boolean data; - private RequiredWithEscapedCharacters1BoxedBoolean(boolean data) { - this.data = data; - } + public record RequiredWithEscapedCharacters1BoxedBoolean(boolean data) implements RequiredWithEscapedCharacters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RequiredWithEscapedCharacters1BoxedNumber extends RequiredWithEscapedCharacters1Boxed { - public final Number data; - private RequiredWithEscapedCharacters1BoxedNumber(Number data) { - this.data = data; - } + public record RequiredWithEscapedCharacters1BoxedNumber(Number data) implements RequiredWithEscapedCharacters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RequiredWithEscapedCharacters1BoxedString extends RequiredWithEscapedCharacters1Boxed { - public final String data; - private RequiredWithEscapedCharacters1BoxedString(String data) { - this.data = data; - } + public record RequiredWithEscapedCharacters1BoxedString(String data) implements RequiredWithEscapedCharacters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RequiredWithEscapedCharacters1BoxedList extends RequiredWithEscapedCharacters1Boxed { - public final FrozenList<@Nullable Object> data; - private RequiredWithEscapedCharacters1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record RequiredWithEscapedCharacters1BoxedList(FrozenList<@Nullable Object> data) implements RequiredWithEscapedCharacters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class RequiredWithEscapedCharacters1BoxedMap extends RequiredWithEscapedCharacters1Boxed { - public final RequiredWithEscapedCharactersMap data; - private RequiredWithEscapedCharacters1BoxedMap(RequiredWithEscapedCharactersMap data) { - this.data = data; - } + public record RequiredWithEscapedCharacters1BoxedMap(RequiredWithEscapedCharactersMap data) implements RequiredWithEscapedCharacters1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class RequiredWithEscapedCharacters1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RequiredWithEscapedCharacters1BoxedList>, MapSchemaValidator { + public static class RequiredWithEscapedCharacters1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, RequiredWithEscapedCharacters1BoxedList>, MapSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -1831,11 +1807,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -1866,11 +1842,11 @@ public RequiredWithEscapedCharactersMap getNewInstance(Map arg, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1949,5 +1925,24 @@ public RequiredWithEscapedCharacters1BoxedList validateAndBox(List arg, Schem public RequiredWithEscapedCharacters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new RequiredWithEscapedCharacters1BoxedMap(validate(arg, configuration)); } + @Override + public RequiredWithEscapedCharacters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleEnumValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleEnumValidation.java index 1007dda3a7c..9234455603c 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleEnumValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleEnumValidation.java @@ -85,24 +85,20 @@ public double value() { } - public static abstract sealed class SimpleEnumValidation1Boxed permits SimpleEnumValidation1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface SimpleEnumValidation1Boxed permits SimpleEnumValidation1BoxedNumber { + @Nullable Object getData(); } - public static final class SimpleEnumValidation1BoxedNumber extends SimpleEnumValidation1Boxed { - public final Number data; - private SimpleEnumValidation1BoxedNumber(Number data) { - this.data = data; - } + public record SimpleEnumValidation1BoxedNumber(Number data) implements SimpleEnumValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class SimpleEnumValidation1 extends JsonSchema implements IntegerEnumValidator, LongEnumValidator, FloatEnumValidator, DoubleEnumValidator, NumberSchemaValidator { + public static class SimpleEnumValidation1 extends JsonSchema implements IntegerEnumValidator, LongEnumValidator, FloatEnumValidator, DoubleEnumValidator, NumberSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -199,5 +195,12 @@ public double validate(DoubleSimpleEnumValidationEnums arg,SchemaConfiguration c public SimpleEnumValidation1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new SimpleEnumValidation1BoxedNumber(validate(arg, configuration)); } + @Override + public SimpleEnumValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/SingleDependency.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/SingleDependency.java index 155f93e2ea3..86d60b1a92f 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/SingleDependency.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/SingleDependency.java @@ -38,78 +38,54 @@ public class SingleDependency { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class SingleDependency1Boxed permits SingleDependency1BoxedVoid, SingleDependency1BoxedBoolean, SingleDependency1BoxedNumber, SingleDependency1BoxedString, SingleDependency1BoxedList, SingleDependency1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface SingleDependency1Boxed permits SingleDependency1BoxedVoid, SingleDependency1BoxedBoolean, SingleDependency1BoxedNumber, SingleDependency1BoxedString, SingleDependency1BoxedList, SingleDependency1BoxedMap { + @Nullable Object getData(); } - public static final class SingleDependency1BoxedVoid extends SingleDependency1Boxed { - public final Void data; - private SingleDependency1BoxedVoid(Void data) { - this.data = data; - } + public record SingleDependency1BoxedVoid(Void data) implements SingleDependency1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class SingleDependency1BoxedBoolean extends SingleDependency1Boxed { - public final boolean data; - private SingleDependency1BoxedBoolean(boolean data) { - this.data = data; - } + public record SingleDependency1BoxedBoolean(boolean data) implements SingleDependency1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class SingleDependency1BoxedNumber extends SingleDependency1Boxed { - public final Number data; - private SingleDependency1BoxedNumber(Number data) { - this.data = data; - } + public record SingleDependency1BoxedNumber(Number data) implements SingleDependency1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class SingleDependency1BoxedString extends SingleDependency1Boxed { - public final String data; - private SingleDependency1BoxedString(String data) { - this.data = data; - } + public record SingleDependency1BoxedString(String data) implements SingleDependency1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class SingleDependency1BoxedList extends SingleDependency1Boxed { - public final FrozenList<@Nullable Object> data; - private SingleDependency1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record SingleDependency1BoxedList(FrozenList<@Nullable Object> data) implements SingleDependency1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class SingleDependency1BoxedMap extends SingleDependency1Boxed { - public final FrozenMap<@Nullable Object> data; - private SingleDependency1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record SingleDependency1BoxedMap(FrozenMap<@Nullable Object> data) implements SingleDependency1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class SingleDependency1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, SingleDependency1BoxedList>, MapSchemaValidator, SingleDependency1BoxedMap> { + public static class SingleDependency1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, SingleDependency1BoxedList>, MapSchemaValidator, SingleDependency1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -221,11 +197,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -256,11 +232,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -339,5 +315,24 @@ public SingleDependency1BoxedList validateAndBox(List arg, SchemaConfiguratio public SingleDependency1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new SingleDependency1BoxedMap(validate(arg, configuration)); } + @Override + public SingleDependency1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/SmallMultipleOfLargeInteger.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/SmallMultipleOfLargeInteger.java index ee2882293ad..b58e1485c35 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/SmallMultipleOfLargeInteger.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/SmallMultipleOfLargeInteger.java @@ -20,24 +20,20 @@ public class SmallMultipleOfLargeInteger { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class SmallMultipleOfLargeInteger1Boxed permits SmallMultipleOfLargeInteger1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface SmallMultipleOfLargeInteger1Boxed permits SmallMultipleOfLargeInteger1BoxedNumber { + @Nullable Object getData(); } - public static final class SmallMultipleOfLargeInteger1BoxedNumber extends SmallMultipleOfLargeInteger1Boxed { - public final Number data; - private SmallMultipleOfLargeInteger1BoxedNumber(Number data) { - this.data = data; - } + public record SmallMultipleOfLargeInteger1BoxedNumber(Number data) implements SmallMultipleOfLargeInteger1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class SmallMultipleOfLargeInteger1 extends JsonSchema implements NumberSchemaValidator { + public static class SmallMultipleOfLargeInteger1 extends JsonSchema implements NumberSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -111,5 +107,12 @@ public double validate(double arg, SchemaConfiguration configuration) throws Val public SmallMultipleOfLargeInteger1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new SmallMultipleOfLargeInteger1BoxedNumber(validate(arg, configuration)); } + @Override + public SmallMultipleOfLargeInteger1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/TimeFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/TimeFormat.java index ac561e09b5a..63242646ef3 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/TimeFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/TimeFormat.java @@ -35,78 +35,54 @@ public class TimeFormat { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class TimeFormat1Boxed permits TimeFormat1BoxedVoid, TimeFormat1BoxedBoolean, TimeFormat1BoxedNumber, TimeFormat1BoxedString, TimeFormat1BoxedList, TimeFormat1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface TimeFormat1Boxed permits TimeFormat1BoxedVoid, TimeFormat1BoxedBoolean, TimeFormat1BoxedNumber, TimeFormat1BoxedString, TimeFormat1BoxedList, TimeFormat1BoxedMap { + @Nullable Object getData(); } - public static final class TimeFormat1BoxedVoid extends TimeFormat1Boxed { - public final Void data; - private TimeFormat1BoxedVoid(Void data) { - this.data = data; - } + public record TimeFormat1BoxedVoid(Void data) implements TimeFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class TimeFormat1BoxedBoolean extends TimeFormat1Boxed { - public final boolean data; - private TimeFormat1BoxedBoolean(boolean data) { - this.data = data; - } + public record TimeFormat1BoxedBoolean(boolean data) implements TimeFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class TimeFormat1BoxedNumber extends TimeFormat1Boxed { - public final Number data; - private TimeFormat1BoxedNumber(Number data) { - this.data = data; - } + public record TimeFormat1BoxedNumber(Number data) implements TimeFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class TimeFormat1BoxedString extends TimeFormat1Boxed { - public final String data; - private TimeFormat1BoxedString(String data) { - this.data = data; - } + public record TimeFormat1BoxedString(String data) implements TimeFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class TimeFormat1BoxedList extends TimeFormat1Boxed { - public final FrozenList<@Nullable Object> data; - private TimeFormat1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record TimeFormat1BoxedList(FrozenList<@Nullable Object> data) implements TimeFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class TimeFormat1BoxedMap extends TimeFormat1Boxed { - public final FrozenMap<@Nullable Object> data; - private TimeFormat1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record TimeFormat1BoxedMap(FrozenMap<@Nullable Object> data) implements TimeFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class TimeFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, TimeFormat1BoxedList>, MapSchemaValidator, TimeFormat1BoxedMap> { + public static class TimeFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, TimeFormat1BoxedList>, MapSchemaValidator, TimeFormat1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public TimeFormat1BoxedList validateAndBox(List arg, SchemaConfiguration conf public TimeFormat1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new TimeFormat1BoxedMap(validate(arg, configuration)); } + @Override + public TimeFormat1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/TypeArrayObjectOrNull.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/TypeArrayObjectOrNull.java index f8915edede2..67c76fd1ca7 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/TypeArrayObjectOrNull.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/TypeArrayObjectOrNull.java @@ -29,45 +29,33 @@ public class TypeArrayObjectOrNull { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class TypeArrayObjectOrNull1Boxed permits TypeArrayObjectOrNull1BoxedList, TypeArrayObjectOrNull1BoxedMap, TypeArrayObjectOrNull1BoxedVoid { - public abstract @Nullable Object data(); + public sealed interface TypeArrayObjectOrNull1Boxed permits TypeArrayObjectOrNull1BoxedList, TypeArrayObjectOrNull1BoxedMap, TypeArrayObjectOrNull1BoxedVoid { + @Nullable Object getData(); } - public static final class TypeArrayObjectOrNull1BoxedList extends TypeArrayObjectOrNull1Boxed { - public final FrozenList<@Nullable Object> data; - private TypeArrayObjectOrNull1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record TypeArrayObjectOrNull1BoxedList(FrozenList<@Nullable Object> data) implements TypeArrayObjectOrNull1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class TypeArrayObjectOrNull1BoxedMap extends TypeArrayObjectOrNull1Boxed { - public final FrozenMap<@Nullable Object> data; - private TypeArrayObjectOrNull1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record TypeArrayObjectOrNull1BoxedMap(FrozenMap<@Nullable Object> data) implements TypeArrayObjectOrNull1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class TypeArrayObjectOrNull1BoxedVoid extends TypeArrayObjectOrNull1Boxed { - public final Void data; - private TypeArrayObjectOrNull1BoxedVoid(Void data) { - this.data = data; - } + public record TypeArrayObjectOrNull1BoxedVoid(Void data) implements TypeArrayObjectOrNull1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class TypeArrayObjectOrNull1 extends JsonSchema implements ListSchemaValidator, TypeArrayObjectOrNull1BoxedList>, MapSchemaValidator, TypeArrayObjectOrNull1BoxedMap>, NullSchemaValidator { + public static class TypeArrayObjectOrNull1 extends JsonSchema implements ListSchemaValidator, TypeArrayObjectOrNull1BoxedList>, MapSchemaValidator, TypeArrayObjectOrNull1BoxedMap>, NullSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -100,11 +88,11 @@ public static TypeArrayObjectOrNull1 getInstance() { for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -134,11 +122,11 @@ public static TypeArrayObjectOrNull1 getInstance() { List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -202,5 +190,17 @@ public TypeArrayObjectOrNull1BoxedMap validateAndBox(Map arg, SchemaConfig public TypeArrayObjectOrNull1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new TypeArrayObjectOrNull1BoxedVoid(validate(arg, configuration)); } + @Override + public TypeArrayObjectOrNull1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } else if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/TypeArrayOrObject.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/TypeArrayOrObject.java index 34b35d5020d..257deb56122 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/TypeArrayOrObject.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/TypeArrayOrObject.java @@ -28,34 +28,26 @@ public class TypeArrayOrObject { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class TypeArrayOrObject1Boxed permits TypeArrayOrObject1BoxedList, TypeArrayOrObject1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface TypeArrayOrObject1Boxed permits TypeArrayOrObject1BoxedList, TypeArrayOrObject1BoxedMap { + @Nullable Object getData(); } - public static final class TypeArrayOrObject1BoxedList extends TypeArrayOrObject1Boxed { - public final FrozenList<@Nullable Object> data; - private TypeArrayOrObject1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record TypeArrayOrObject1BoxedList(FrozenList<@Nullable Object> data) implements TypeArrayOrObject1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class TypeArrayOrObject1BoxedMap extends TypeArrayOrObject1Boxed { - public final FrozenMap<@Nullable Object> data; - private TypeArrayOrObject1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record TypeArrayOrObject1BoxedMap(FrozenMap<@Nullable Object> data) implements TypeArrayOrObject1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class TypeArrayOrObject1 extends JsonSchema implements ListSchemaValidator, TypeArrayOrObject1BoxedList>, MapSchemaValidator, TypeArrayOrObject1BoxedMap> { + public static class TypeArrayOrObject1 extends JsonSchema implements ListSchemaValidator, TypeArrayOrObject1BoxedList>, MapSchemaValidator, TypeArrayOrObject1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -87,11 +79,11 @@ public static TypeArrayOrObject1 getInstance() { for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -121,11 +113,11 @@ public static TypeArrayOrObject1 getInstance() { List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -170,5 +162,14 @@ public TypeArrayOrObject1BoxedList validateAndBox(List arg, SchemaConfigurati public TypeArrayOrObject1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new TypeArrayOrObject1BoxedMap(validate(arg, configuration)); } + @Override + public TypeArrayOrObject1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsAsSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsAsSchema.java index d5a5ae23cb2..da598e74bd5 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsAsSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsAsSchema.java @@ -47,78 +47,54 @@ public static UnevaluatedItems getInstance() { } - public static abstract sealed class UnevaluateditemsAsSchema1Boxed permits UnevaluateditemsAsSchema1BoxedVoid, UnevaluateditemsAsSchema1BoxedBoolean, UnevaluateditemsAsSchema1BoxedNumber, UnevaluateditemsAsSchema1BoxedString, UnevaluateditemsAsSchema1BoxedList, UnevaluateditemsAsSchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface UnevaluateditemsAsSchema1Boxed permits UnevaluateditemsAsSchema1BoxedVoid, UnevaluateditemsAsSchema1BoxedBoolean, UnevaluateditemsAsSchema1BoxedNumber, UnevaluateditemsAsSchema1BoxedString, UnevaluateditemsAsSchema1BoxedList, UnevaluateditemsAsSchema1BoxedMap { + @Nullable Object getData(); } - public static final class UnevaluateditemsAsSchema1BoxedVoid extends UnevaluateditemsAsSchema1Boxed { - public final Void data; - private UnevaluateditemsAsSchema1BoxedVoid(Void data) { - this.data = data; - } + public record UnevaluateditemsAsSchema1BoxedVoid(Void data) implements UnevaluateditemsAsSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnevaluateditemsAsSchema1BoxedBoolean extends UnevaluateditemsAsSchema1Boxed { - public final boolean data; - private UnevaluateditemsAsSchema1BoxedBoolean(boolean data) { - this.data = data; - } + public record UnevaluateditemsAsSchema1BoxedBoolean(boolean data) implements UnevaluateditemsAsSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnevaluateditemsAsSchema1BoxedNumber extends UnevaluateditemsAsSchema1Boxed { - public final Number data; - private UnevaluateditemsAsSchema1BoxedNumber(Number data) { - this.data = data; - } + public record UnevaluateditemsAsSchema1BoxedNumber(Number data) implements UnevaluateditemsAsSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnevaluateditemsAsSchema1BoxedString extends UnevaluateditemsAsSchema1Boxed { - public final String data; - private UnevaluateditemsAsSchema1BoxedString(String data) { - this.data = data; - } + public record UnevaluateditemsAsSchema1BoxedString(String data) implements UnevaluateditemsAsSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnevaluateditemsAsSchema1BoxedList extends UnevaluateditemsAsSchema1Boxed { - public final FrozenList<@Nullable Object> data; - private UnevaluateditemsAsSchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record UnevaluateditemsAsSchema1BoxedList(FrozenList<@Nullable Object> data) implements UnevaluateditemsAsSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnevaluateditemsAsSchema1BoxedMap extends UnevaluateditemsAsSchema1Boxed { - public final FrozenMap<@Nullable Object> data; - private UnevaluateditemsAsSchema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record UnevaluateditemsAsSchema1BoxedMap(FrozenMap<@Nullable Object> data) implements UnevaluateditemsAsSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class UnevaluateditemsAsSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UnevaluateditemsAsSchema1BoxedList>, MapSchemaValidator, UnevaluateditemsAsSchema1BoxedMap> { + public static class UnevaluateditemsAsSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UnevaluateditemsAsSchema1BoxedList>, MapSchemaValidator, UnevaluateditemsAsSchema1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -223,11 +199,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -258,11 +234,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -341,5 +317,24 @@ public UnevaluateditemsAsSchema1BoxedList validateAndBox(List arg, SchemaConf public UnevaluateditemsAsSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnevaluateditemsAsSchema1BoxedMap(validate(arg, configuration)); } + @Override + public UnevaluateditemsAsSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsDependsOnMultipleNestedContains.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsDependsOnMultipleNestedContains.java index ba2e06ba6f3..c217d3c4b19 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsDependsOnMultipleNestedContains.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsDependsOnMultipleNestedContains.java @@ -36,78 +36,54 @@ public class UnevaluateditemsDependsOnMultipleNestedContains { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class ContainsBoxed permits ContainsBoxedVoid, ContainsBoxedBoolean, ContainsBoxedNumber, ContainsBoxedString, ContainsBoxedList, ContainsBoxedMap { - public abstract @Nullable Object data(); + public sealed interface ContainsBoxed permits ContainsBoxedVoid, ContainsBoxedBoolean, ContainsBoxedNumber, ContainsBoxedString, ContainsBoxedList, ContainsBoxedMap { + @Nullable Object getData(); } - public static final class ContainsBoxedVoid extends ContainsBoxed { - public final Void data; - private ContainsBoxedVoid(Void data) { - this.data = data; - } + public record ContainsBoxedVoid(Void data) implements ContainsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ContainsBoxedBoolean extends ContainsBoxed { - public final boolean data; - private ContainsBoxedBoolean(boolean data) { - this.data = data; - } + public record ContainsBoxedBoolean(boolean data) implements ContainsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ContainsBoxedNumber extends ContainsBoxed { - public final Number data; - private ContainsBoxedNumber(Number data) { - this.data = data; - } + public record ContainsBoxedNumber(Number data) implements ContainsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ContainsBoxedString extends ContainsBoxed { - public final String data; - private ContainsBoxedString(String data) { - this.data = data; - } + public record ContainsBoxedString(String data) implements ContainsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ContainsBoxedList extends ContainsBoxed { - public final FrozenList<@Nullable Object> data; - private ContainsBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ContainsBoxedList(FrozenList<@Nullable Object> data) implements ContainsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ContainsBoxedMap extends ContainsBoxed { - public final FrozenMap<@Nullable Object> data; - private ContainsBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ContainsBoxedMap(FrozenMap<@Nullable Object> data) implements ContainsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Contains extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ContainsBoxedList>, MapSchemaValidator, ContainsBoxedMap> { + public static class Contains extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ContainsBoxedList>, MapSchemaValidator, ContainsBoxedMap> { private static @Nullable Contains instance = null; protected Contains() { @@ -206,11 +182,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -241,11 +217,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -324,80 +300,75 @@ public ContainsBoxedList validateAndBox(List arg, SchemaConfiguration configu public ContainsBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ContainsBoxedMap(validate(arg, configuration)); } + @Override + public ContainsBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema0Boxed permits Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap { + @Nullable Object getData(); } - public static final class Schema0BoxedVoid extends Schema0Boxed { - public final Void data; - private Schema0BoxedVoid(Void data) { - this.data = data; - } + public record Schema0BoxedVoid(Void data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedBoolean extends Schema0Boxed { - public final boolean data; - private Schema0BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema0BoxedBoolean(boolean data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedNumber extends Schema0Boxed { - public final Number data; - private Schema0BoxedNumber(Number data) { - this.data = data; - } + public record Schema0BoxedNumber(Number data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedString extends Schema0Boxed { - public final String data; - private Schema0BoxedString(String data) { - this.data = data; - } + public record Schema0BoxedString(String data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedList extends Schema0Boxed { - public final FrozenList<@Nullable Object> data; - private Schema0BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedList(FrozenList<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema0BoxedMap extends Schema0Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema0BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema0BoxedMap(FrozenMap<@Nullable Object> data) implements Schema0Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator, Schema0BoxedMap> { + public static class Schema0 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema0BoxedList>, MapSchemaValidator, Schema0BoxedMap> { private static @Nullable Schema0 instance = null; protected Schema0() { @@ -496,11 +467,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -531,11 +502,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -614,80 +585,75 @@ public Schema0BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema0BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema0BoxedMap(validate(arg, configuration)); } + @Override + public Schema0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class Contains1Boxed permits Contains1BoxedVoid, Contains1BoxedBoolean, Contains1BoxedNumber, Contains1BoxedString, Contains1BoxedList, Contains1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Contains1Boxed permits Contains1BoxedVoid, Contains1BoxedBoolean, Contains1BoxedNumber, Contains1BoxedString, Contains1BoxedList, Contains1BoxedMap { + @Nullable Object getData(); } - public static final class Contains1BoxedVoid extends Contains1Boxed { - public final Void data; - private Contains1BoxedVoid(Void data) { - this.data = data; - } + public record Contains1BoxedVoid(Void data) implements Contains1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Contains1BoxedBoolean extends Contains1Boxed { - public final boolean data; - private Contains1BoxedBoolean(boolean data) { - this.data = data; - } + public record Contains1BoxedBoolean(boolean data) implements Contains1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Contains1BoxedNumber extends Contains1Boxed { - public final Number data; - private Contains1BoxedNumber(Number data) { - this.data = data; - } + public record Contains1BoxedNumber(Number data) implements Contains1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Contains1BoxedString extends Contains1Boxed { - public final String data; - private Contains1BoxedString(String data) { - this.data = data; - } + public record Contains1BoxedString(String data) implements Contains1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Contains1BoxedList extends Contains1Boxed { - public final FrozenList<@Nullable Object> data; - private Contains1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Contains1BoxedList(FrozenList<@Nullable Object> data) implements Contains1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Contains1BoxedMap extends Contains1Boxed { - public final FrozenMap<@Nullable Object> data; - private Contains1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Contains1BoxedMap(FrozenMap<@Nullable Object> data) implements Contains1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Contains1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Contains1BoxedList>, MapSchemaValidator, Contains1BoxedMap> { + public static class Contains1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Contains1BoxedList>, MapSchemaValidator, Contains1BoxedMap> { private static @Nullable Contains1 instance = null; protected Contains1() { @@ -786,11 +752,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -821,11 +787,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -904,80 +870,75 @@ public Contains1BoxedList validateAndBox(List arg, SchemaConfiguration config public Contains1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Contains1BoxedMap(validate(arg, configuration)); } + @Override + public Contains1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface Schema1Boxed permits Schema1BoxedVoid, Schema1BoxedBoolean, Schema1BoxedNumber, Schema1BoxedString, Schema1BoxedList, Schema1BoxedMap { + @Nullable Object getData(); } - public static final class Schema1BoxedVoid extends Schema1Boxed { - public final Void data; - private Schema1BoxedVoid(Void data) { - this.data = data; - } + public record Schema1BoxedVoid(Void data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedBoolean extends Schema1Boxed { - public final boolean data; - private Schema1BoxedBoolean(boolean data) { - this.data = data; - } + public record Schema1BoxedBoolean(boolean data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedNumber extends Schema1Boxed { - public final Number data; - private Schema1BoxedNumber(Number data) { - this.data = data; - } + public record Schema1BoxedNumber(Number data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedString extends Schema1Boxed { - public final String data; - private Schema1BoxedString(String data) { - this.data = data; - } + public record Schema1BoxedString(String data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedList extends Schema1Boxed { - public final FrozenList<@Nullable Object> data; - private Schema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedList(FrozenList<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class Schema1BoxedMap extends Schema1Boxed { - public final FrozenMap<@Nullable Object> data; - private Schema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record Schema1BoxedMap(FrozenMap<@Nullable Object> data) implements Schema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator, Schema1BoxedMap> { + public static class Schema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema1BoxedList>, MapSchemaValidator, Schema1BoxedMap> { private static @Nullable Schema1 instance = null; protected Schema1() { @@ -1076,11 +1037,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -1111,11 +1072,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1194,80 +1155,75 @@ public Schema1BoxedList validateAndBox(List arg, SchemaConfiguration configur public Schema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Schema1BoxedMap(validate(arg, configuration)); } + @Override + public Schema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class UnevaluatedItemsBoxed permits UnevaluatedItemsBoxedVoid, UnevaluatedItemsBoxedBoolean, UnevaluatedItemsBoxedNumber, UnevaluatedItemsBoxedString, UnevaluatedItemsBoxedList, UnevaluatedItemsBoxedMap { - public abstract @Nullable Object data(); + public sealed interface UnevaluatedItemsBoxed permits UnevaluatedItemsBoxedVoid, UnevaluatedItemsBoxedBoolean, UnevaluatedItemsBoxedNumber, UnevaluatedItemsBoxedString, UnevaluatedItemsBoxedList, UnevaluatedItemsBoxedMap { + @Nullable Object getData(); } - public static final class UnevaluatedItemsBoxedVoid extends UnevaluatedItemsBoxed { - public final Void data; - private UnevaluatedItemsBoxedVoid(Void data) { - this.data = data; - } + public record UnevaluatedItemsBoxedVoid(Void data) implements UnevaluatedItemsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnevaluatedItemsBoxedBoolean extends UnevaluatedItemsBoxed { - public final boolean data; - private UnevaluatedItemsBoxedBoolean(boolean data) { - this.data = data; - } + public record UnevaluatedItemsBoxedBoolean(boolean data) implements UnevaluatedItemsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnevaluatedItemsBoxedNumber extends UnevaluatedItemsBoxed { - public final Number data; - private UnevaluatedItemsBoxedNumber(Number data) { - this.data = data; - } + public record UnevaluatedItemsBoxedNumber(Number data) implements UnevaluatedItemsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnevaluatedItemsBoxedString extends UnevaluatedItemsBoxed { - public final String data; - private UnevaluatedItemsBoxedString(String data) { - this.data = data; - } + public record UnevaluatedItemsBoxedString(String data) implements UnevaluatedItemsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnevaluatedItemsBoxedList extends UnevaluatedItemsBoxed { - public final FrozenList<@Nullable Object> data; - private UnevaluatedItemsBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record UnevaluatedItemsBoxedList(FrozenList<@Nullable Object> data) implements UnevaluatedItemsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnevaluatedItemsBoxedMap extends UnevaluatedItemsBoxed { - public final FrozenMap<@Nullable Object> data; - private UnevaluatedItemsBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record UnevaluatedItemsBoxedMap(FrozenMap<@Nullable Object> data) implements UnevaluatedItemsBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class UnevaluatedItems extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UnevaluatedItemsBoxedList>, MapSchemaValidator, UnevaluatedItemsBoxedMap> { + public static class UnevaluatedItems extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UnevaluatedItemsBoxedList>, MapSchemaValidator, UnevaluatedItemsBoxedMap> { private static @Nullable UnevaluatedItems instance = null; protected UnevaluatedItems() { @@ -1366,11 +1322,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -1401,11 +1357,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1484,80 +1440,75 @@ public UnevaluatedItemsBoxedList validateAndBox(List arg, SchemaConfiguration public UnevaluatedItemsBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnevaluatedItemsBoxedMap(validate(arg, configuration)); } + @Override + public UnevaluatedItemsBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class UnevaluateditemsDependsOnMultipleNestedContains1Boxed permits UnevaluateditemsDependsOnMultipleNestedContains1BoxedVoid, UnevaluateditemsDependsOnMultipleNestedContains1BoxedBoolean, UnevaluateditemsDependsOnMultipleNestedContains1BoxedNumber, UnevaluateditemsDependsOnMultipleNestedContains1BoxedString, UnevaluateditemsDependsOnMultipleNestedContains1BoxedList, UnevaluateditemsDependsOnMultipleNestedContains1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface UnevaluateditemsDependsOnMultipleNestedContains1Boxed permits UnevaluateditemsDependsOnMultipleNestedContains1BoxedVoid, UnevaluateditemsDependsOnMultipleNestedContains1BoxedBoolean, UnevaluateditemsDependsOnMultipleNestedContains1BoxedNumber, UnevaluateditemsDependsOnMultipleNestedContains1BoxedString, UnevaluateditemsDependsOnMultipleNestedContains1BoxedList, UnevaluateditemsDependsOnMultipleNestedContains1BoxedMap { + @Nullable Object getData(); } - public static final class UnevaluateditemsDependsOnMultipleNestedContains1BoxedVoid extends UnevaluateditemsDependsOnMultipleNestedContains1Boxed { - public final Void data; - private UnevaluateditemsDependsOnMultipleNestedContains1BoxedVoid(Void data) { - this.data = data; - } + public record UnevaluateditemsDependsOnMultipleNestedContains1BoxedVoid(Void data) implements UnevaluateditemsDependsOnMultipleNestedContains1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnevaluateditemsDependsOnMultipleNestedContains1BoxedBoolean extends UnevaluateditemsDependsOnMultipleNestedContains1Boxed { - public final boolean data; - private UnevaluateditemsDependsOnMultipleNestedContains1BoxedBoolean(boolean data) { - this.data = data; - } + public record UnevaluateditemsDependsOnMultipleNestedContains1BoxedBoolean(boolean data) implements UnevaluateditemsDependsOnMultipleNestedContains1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnevaluateditemsDependsOnMultipleNestedContains1BoxedNumber extends UnevaluateditemsDependsOnMultipleNestedContains1Boxed { - public final Number data; - private UnevaluateditemsDependsOnMultipleNestedContains1BoxedNumber(Number data) { - this.data = data; - } + public record UnevaluateditemsDependsOnMultipleNestedContains1BoxedNumber(Number data) implements UnevaluateditemsDependsOnMultipleNestedContains1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnevaluateditemsDependsOnMultipleNestedContains1BoxedString extends UnevaluateditemsDependsOnMultipleNestedContains1Boxed { - public final String data; - private UnevaluateditemsDependsOnMultipleNestedContains1BoxedString(String data) { - this.data = data; - } + public record UnevaluateditemsDependsOnMultipleNestedContains1BoxedString(String data) implements UnevaluateditemsDependsOnMultipleNestedContains1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnevaluateditemsDependsOnMultipleNestedContains1BoxedList extends UnevaluateditemsDependsOnMultipleNestedContains1Boxed { - public final FrozenList<@Nullable Object> data; - private UnevaluateditemsDependsOnMultipleNestedContains1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record UnevaluateditemsDependsOnMultipleNestedContains1BoxedList(FrozenList<@Nullable Object> data) implements UnevaluateditemsDependsOnMultipleNestedContains1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnevaluateditemsDependsOnMultipleNestedContains1BoxedMap extends UnevaluateditemsDependsOnMultipleNestedContains1Boxed { - public final FrozenMap<@Nullable Object> data; - private UnevaluateditemsDependsOnMultipleNestedContains1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record UnevaluateditemsDependsOnMultipleNestedContains1BoxedMap(FrozenMap<@Nullable Object> data) implements UnevaluateditemsDependsOnMultipleNestedContains1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class UnevaluateditemsDependsOnMultipleNestedContains1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UnevaluateditemsDependsOnMultipleNestedContains1BoxedList>, MapSchemaValidator, UnevaluateditemsDependsOnMultipleNestedContains1BoxedMap> { + public static class UnevaluateditemsDependsOnMultipleNestedContains1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UnevaluateditemsDependsOnMultipleNestedContains1BoxedList>, MapSchemaValidator, UnevaluateditemsDependsOnMultipleNestedContains1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -1666,11 +1617,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -1701,11 +1652,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1784,5 +1735,24 @@ public UnevaluateditemsDependsOnMultipleNestedContains1BoxedList validateAndBox( public UnevaluateditemsDependsOnMultipleNestedContains1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnevaluateditemsDependsOnMultipleNestedContains1BoxedMap(validate(arg, configuration)); } + @Override + public UnevaluateditemsDependsOnMultipleNestedContains1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsWithItems.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsWithItems.java index 481c6e51fca..99d330e3bd4 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsWithItems.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsWithItems.java @@ -93,24 +93,20 @@ public static UnevaluatedItems getInstance() { } - public static abstract sealed class UnevaluateditemsWithItems1Boxed permits UnevaluateditemsWithItems1BoxedList { - public abstract @Nullable Object data(); + public sealed interface UnevaluateditemsWithItems1Boxed permits UnevaluateditemsWithItems1BoxedList { + @Nullable Object getData(); } - public static final class UnevaluateditemsWithItems1BoxedList extends UnevaluateditemsWithItems1Boxed { - public final UnevaluateditemsWithItemsList data; - private UnevaluateditemsWithItems1BoxedList(UnevaluateditemsWithItemsList data) { - this.data = data; - } + public record UnevaluateditemsWithItems1BoxedList(UnevaluateditemsWithItemsList data) implements UnevaluateditemsWithItems1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class UnevaluateditemsWithItems1 extends JsonSchema implements ListSchemaValidator { + public static class UnevaluateditemsWithItems1 extends JsonSchema implements ListSchemaValidator { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -141,11 +137,11 @@ public UnevaluateditemsWithItemsList getNewInstance(List arg, List pa for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(itemInstance instanceof Number)) { throw new InvalidTypeException("Invalid instantiated value"); @@ -185,5 +181,12 @@ public UnevaluateditemsWithItemsList validate(List arg, SchemaConfiguration c public UnevaluateditemsWithItems1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnevaluateditemsWithItems1BoxedList(validate(arg, configuration)); } + @Override + public UnevaluateditemsWithItems1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsWithNullInstanceElements.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsWithNullInstanceElements.java index 71a5b33cf78..9956b7ba3b4 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsWithNullInstanceElements.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsWithNullInstanceElements.java @@ -47,78 +47,54 @@ public static UnevaluatedItems getInstance() { } - public static abstract sealed class UnevaluateditemsWithNullInstanceElements1Boxed permits UnevaluateditemsWithNullInstanceElements1BoxedVoid, UnevaluateditemsWithNullInstanceElements1BoxedBoolean, UnevaluateditemsWithNullInstanceElements1BoxedNumber, UnevaluateditemsWithNullInstanceElements1BoxedString, UnevaluateditemsWithNullInstanceElements1BoxedList, UnevaluateditemsWithNullInstanceElements1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface UnevaluateditemsWithNullInstanceElements1Boxed permits UnevaluateditemsWithNullInstanceElements1BoxedVoid, UnevaluateditemsWithNullInstanceElements1BoxedBoolean, UnevaluateditemsWithNullInstanceElements1BoxedNumber, UnevaluateditemsWithNullInstanceElements1BoxedString, UnevaluateditemsWithNullInstanceElements1BoxedList, UnevaluateditemsWithNullInstanceElements1BoxedMap { + @Nullable Object getData(); } - public static final class UnevaluateditemsWithNullInstanceElements1BoxedVoid extends UnevaluateditemsWithNullInstanceElements1Boxed { - public final Void data; - private UnevaluateditemsWithNullInstanceElements1BoxedVoid(Void data) { - this.data = data; - } + public record UnevaluateditemsWithNullInstanceElements1BoxedVoid(Void data) implements UnevaluateditemsWithNullInstanceElements1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnevaluateditemsWithNullInstanceElements1BoxedBoolean extends UnevaluateditemsWithNullInstanceElements1Boxed { - public final boolean data; - private UnevaluateditemsWithNullInstanceElements1BoxedBoolean(boolean data) { - this.data = data; - } + public record UnevaluateditemsWithNullInstanceElements1BoxedBoolean(boolean data) implements UnevaluateditemsWithNullInstanceElements1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnevaluateditemsWithNullInstanceElements1BoxedNumber extends UnevaluateditemsWithNullInstanceElements1Boxed { - public final Number data; - private UnevaluateditemsWithNullInstanceElements1BoxedNumber(Number data) { - this.data = data; - } + public record UnevaluateditemsWithNullInstanceElements1BoxedNumber(Number data) implements UnevaluateditemsWithNullInstanceElements1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnevaluateditemsWithNullInstanceElements1BoxedString extends UnevaluateditemsWithNullInstanceElements1Boxed { - public final String data; - private UnevaluateditemsWithNullInstanceElements1BoxedString(String data) { - this.data = data; - } + public record UnevaluateditemsWithNullInstanceElements1BoxedString(String data) implements UnevaluateditemsWithNullInstanceElements1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnevaluateditemsWithNullInstanceElements1BoxedList extends UnevaluateditemsWithNullInstanceElements1Boxed { - public final FrozenList<@Nullable Object> data; - private UnevaluateditemsWithNullInstanceElements1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record UnevaluateditemsWithNullInstanceElements1BoxedList(FrozenList<@Nullable Object> data) implements UnevaluateditemsWithNullInstanceElements1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnevaluateditemsWithNullInstanceElements1BoxedMap extends UnevaluateditemsWithNullInstanceElements1Boxed { - public final FrozenMap<@Nullable Object> data; - private UnevaluateditemsWithNullInstanceElements1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record UnevaluateditemsWithNullInstanceElements1BoxedMap(FrozenMap<@Nullable Object> data) implements UnevaluateditemsWithNullInstanceElements1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class UnevaluateditemsWithNullInstanceElements1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UnevaluateditemsWithNullInstanceElements1BoxedList>, MapSchemaValidator, UnevaluateditemsWithNullInstanceElements1BoxedMap> { + public static class UnevaluateditemsWithNullInstanceElements1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UnevaluateditemsWithNullInstanceElements1BoxedList>, MapSchemaValidator, UnevaluateditemsWithNullInstanceElements1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -223,11 +199,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -258,11 +234,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -341,5 +317,24 @@ public UnevaluateditemsWithNullInstanceElements1BoxedList validateAndBox(List public UnevaluateditemsWithNullInstanceElements1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnevaluateditemsWithNullInstanceElements1BoxedMap(validate(arg, configuration)); } + @Override + public UnevaluateditemsWithNullInstanceElements1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesNotAffectedByPropertynames.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesNotAffectedByPropertynames.java index d8304fee8fc..bda17631ee9 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesNotAffectedByPropertynames.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesNotAffectedByPropertynames.java @@ -36,24 +36,20 @@ public class UnevaluatedpropertiesNotAffectedByPropertynames { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class PropertyNamesBoxed permits PropertyNamesBoxedString { - public abstract @Nullable Object data(); + public sealed interface PropertyNamesBoxed permits PropertyNamesBoxedString { + @Nullable Object getData(); } - public static final class PropertyNamesBoxedString extends PropertyNamesBoxed { - public final String data; - private PropertyNamesBoxedString(String data) { - this.data = data; - } + public record PropertyNamesBoxedString(String data) implements PropertyNamesBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class PropertyNames extends JsonSchema implements StringSchemaValidator { + public static class PropertyNames extends JsonSchema implements StringSchemaValidator { private static @Nullable PropertyNames instance = null; protected PropertyNames() { @@ -101,6 +97,13 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val public PropertyNamesBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new PropertyNamesBoxedString(validate(arg, configuration)); } + @Override + public PropertyNamesBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class UnevaluatedProperties extends NumberJsonSchema.NumberJsonSchema1 { @@ -114,78 +117,54 @@ public static UnevaluatedProperties getInstance() { } - public static abstract sealed class UnevaluatedpropertiesNotAffectedByPropertynames1Boxed permits UnevaluatedpropertiesNotAffectedByPropertynames1BoxedVoid, UnevaluatedpropertiesNotAffectedByPropertynames1BoxedBoolean, UnevaluatedpropertiesNotAffectedByPropertynames1BoxedNumber, UnevaluatedpropertiesNotAffectedByPropertynames1BoxedString, UnevaluatedpropertiesNotAffectedByPropertynames1BoxedList, UnevaluatedpropertiesNotAffectedByPropertynames1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface UnevaluatedpropertiesNotAffectedByPropertynames1Boxed permits UnevaluatedpropertiesNotAffectedByPropertynames1BoxedVoid, UnevaluatedpropertiesNotAffectedByPropertynames1BoxedBoolean, UnevaluatedpropertiesNotAffectedByPropertynames1BoxedNumber, UnevaluatedpropertiesNotAffectedByPropertynames1BoxedString, UnevaluatedpropertiesNotAffectedByPropertynames1BoxedList, UnevaluatedpropertiesNotAffectedByPropertynames1BoxedMap { + @Nullable Object getData(); } - public static final class UnevaluatedpropertiesNotAffectedByPropertynames1BoxedVoid extends UnevaluatedpropertiesNotAffectedByPropertynames1Boxed { - public final Void data; - private UnevaluatedpropertiesNotAffectedByPropertynames1BoxedVoid(Void data) { - this.data = data; - } + public record UnevaluatedpropertiesNotAffectedByPropertynames1BoxedVoid(Void data) implements UnevaluatedpropertiesNotAffectedByPropertynames1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnevaluatedpropertiesNotAffectedByPropertynames1BoxedBoolean extends UnevaluatedpropertiesNotAffectedByPropertynames1Boxed { - public final boolean data; - private UnevaluatedpropertiesNotAffectedByPropertynames1BoxedBoolean(boolean data) { - this.data = data; - } + public record UnevaluatedpropertiesNotAffectedByPropertynames1BoxedBoolean(boolean data) implements UnevaluatedpropertiesNotAffectedByPropertynames1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnevaluatedpropertiesNotAffectedByPropertynames1BoxedNumber extends UnevaluatedpropertiesNotAffectedByPropertynames1Boxed { - public final Number data; - private UnevaluatedpropertiesNotAffectedByPropertynames1BoxedNumber(Number data) { - this.data = data; - } + public record UnevaluatedpropertiesNotAffectedByPropertynames1BoxedNumber(Number data) implements UnevaluatedpropertiesNotAffectedByPropertynames1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnevaluatedpropertiesNotAffectedByPropertynames1BoxedString extends UnevaluatedpropertiesNotAffectedByPropertynames1Boxed { - public final String data; - private UnevaluatedpropertiesNotAffectedByPropertynames1BoxedString(String data) { - this.data = data; - } + public record UnevaluatedpropertiesNotAffectedByPropertynames1BoxedString(String data) implements UnevaluatedpropertiesNotAffectedByPropertynames1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnevaluatedpropertiesNotAffectedByPropertynames1BoxedList extends UnevaluatedpropertiesNotAffectedByPropertynames1Boxed { - public final FrozenList<@Nullable Object> data; - private UnevaluatedpropertiesNotAffectedByPropertynames1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record UnevaluatedpropertiesNotAffectedByPropertynames1BoxedList(FrozenList<@Nullable Object> data) implements UnevaluatedpropertiesNotAffectedByPropertynames1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnevaluatedpropertiesNotAffectedByPropertynames1BoxedMap extends UnevaluatedpropertiesNotAffectedByPropertynames1Boxed { - public final FrozenMap<@Nullable Object> data; - private UnevaluatedpropertiesNotAffectedByPropertynames1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record UnevaluatedpropertiesNotAffectedByPropertynames1BoxedMap(FrozenMap<@Nullable Object> data) implements UnevaluatedpropertiesNotAffectedByPropertynames1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class UnevaluatedpropertiesNotAffectedByPropertynames1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UnevaluatedpropertiesNotAffectedByPropertynames1BoxedList>, MapSchemaValidator, UnevaluatedpropertiesNotAffectedByPropertynames1BoxedMap> { + public static class UnevaluatedpropertiesNotAffectedByPropertynames1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UnevaluatedpropertiesNotAffectedByPropertynames1BoxedList>, MapSchemaValidator, UnevaluatedpropertiesNotAffectedByPropertynames1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -291,11 +270,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -326,11 +305,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -409,5 +388,24 @@ public UnevaluatedpropertiesNotAffectedByPropertynames1BoxedList validateAndBox( public UnevaluatedpropertiesNotAffectedByPropertynames1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnevaluatedpropertiesNotAffectedByPropertynames1BoxedMap(validate(arg, configuration)); } + @Override + public UnevaluatedpropertiesNotAffectedByPropertynames1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesSchema.java index 3a354b43d6a..548aeba1138 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesSchema.java @@ -27,24 +27,20 @@ public class UnevaluatedpropertiesSchema { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class UnevaluatedPropertiesBoxed permits UnevaluatedPropertiesBoxedString { - public abstract @Nullable Object data(); + public sealed interface UnevaluatedPropertiesBoxed permits UnevaluatedPropertiesBoxedString { + @Nullable Object getData(); } - public static final class UnevaluatedPropertiesBoxedString extends UnevaluatedPropertiesBoxed { - public final String data; - private UnevaluatedPropertiesBoxedString(String data) { - this.data = data; - } + public record UnevaluatedPropertiesBoxedString(String data) implements UnevaluatedPropertiesBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class UnevaluatedProperties extends JsonSchema implements StringSchemaValidator { + public static class UnevaluatedProperties extends JsonSchema implements StringSchemaValidator { private static @Nullable UnevaluatedProperties instance = null; protected UnevaluatedProperties() { @@ -92,25 +88,28 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val public UnevaluatedPropertiesBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnevaluatedPropertiesBoxedString(validate(arg, configuration)); } + @Override + public UnevaluatedPropertiesBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class UnevaluatedpropertiesSchema1Boxed permits UnevaluatedpropertiesSchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface UnevaluatedpropertiesSchema1Boxed permits UnevaluatedpropertiesSchema1BoxedMap { + @Nullable Object getData(); } - public static final class UnevaluatedpropertiesSchema1BoxedMap extends UnevaluatedpropertiesSchema1Boxed { - public final FrozenMap<@Nullable Object> data; - private UnevaluatedpropertiesSchema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record UnevaluatedpropertiesSchema1BoxedMap(FrozenMap<@Nullable Object> data) implements UnevaluatedpropertiesSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class UnevaluatedpropertiesSchema1 extends JsonSchema implements MapSchemaValidator, UnevaluatedpropertiesSchema1BoxedMap> { + public static class UnevaluatedpropertiesSchema1 extends JsonSchema implements MapSchemaValidator, UnevaluatedpropertiesSchema1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -144,11 +143,11 @@ public static UnevaluatedpropertiesSchema1 getInstance() { List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -185,6 +184,13 @@ public static UnevaluatedpropertiesSchema1 getInstance() { public UnevaluatedpropertiesSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnevaluatedpropertiesSchema1BoxedMap(validate(arg, configuration)); } + @Override + public UnevaluatedpropertiesSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesWithAdjacentAdditionalproperties.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesWithAdjacentAdditionalproperties.java index 38bab810da2..31ec85272ba 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesWithAdjacentAdditionalproperties.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesWithAdjacentAdditionalproperties.java @@ -199,23 +199,19 @@ public static UnevaluatedProperties getInstance() { } - public static abstract sealed class UnevaluatedpropertiesWithAdjacentAdditionalproperties1Boxed permits UnevaluatedpropertiesWithAdjacentAdditionalproperties1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface UnevaluatedpropertiesWithAdjacentAdditionalproperties1Boxed permits UnevaluatedpropertiesWithAdjacentAdditionalproperties1BoxedMap { + @Nullable Object getData(); } - public static final class UnevaluatedpropertiesWithAdjacentAdditionalproperties1BoxedMap extends UnevaluatedpropertiesWithAdjacentAdditionalproperties1Boxed { - public final UnevaluatedpropertiesWithAdjacentAdditionalpropertiesMap data; - private UnevaluatedpropertiesWithAdjacentAdditionalproperties1BoxedMap(UnevaluatedpropertiesWithAdjacentAdditionalpropertiesMap data) { - this.data = data; - } + public record UnevaluatedpropertiesWithAdjacentAdditionalproperties1BoxedMap(UnevaluatedpropertiesWithAdjacentAdditionalpropertiesMap data) implements UnevaluatedpropertiesWithAdjacentAdditionalproperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class UnevaluatedpropertiesWithAdjacentAdditionalproperties1 extends JsonSchema implements MapSchemaValidator { + public static class UnevaluatedpropertiesWithAdjacentAdditionalproperties1 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 @@ -253,11 +249,11 @@ public UnevaluatedpropertiesWithAdjacentAdditionalpropertiesMap getNewInstance(M List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -294,6 +290,13 @@ public UnevaluatedpropertiesWithAdjacentAdditionalpropertiesMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnevaluatedpropertiesWithAdjacentAdditionalproperties1BoxedMap(validate(arg, configuration)); } + @Override + public UnevaluatedpropertiesWithAdjacentAdditionalproperties1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesWithNullValuedInstanceProperties.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesWithNullValuedInstanceProperties.java index b97498c8fc4..9ad1f1ae961 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesWithNullValuedInstanceProperties.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesWithNullValuedInstanceProperties.java @@ -47,78 +47,54 @@ public static UnevaluatedProperties getInstance() { } - public static abstract sealed class UnevaluatedpropertiesWithNullValuedInstanceProperties1Boxed permits UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedVoid, UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedBoolean, UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedNumber, UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedString, UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedList, UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface UnevaluatedpropertiesWithNullValuedInstanceProperties1Boxed permits UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedVoid, UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedBoolean, UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedNumber, UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedString, UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedList, UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedMap { + @Nullable Object getData(); } - public static final class UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedVoid extends UnevaluatedpropertiesWithNullValuedInstanceProperties1Boxed { - public final Void data; - private UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedVoid(Void data) { - this.data = data; - } + public record UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedVoid(Void data) implements UnevaluatedpropertiesWithNullValuedInstanceProperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedBoolean extends UnevaluatedpropertiesWithNullValuedInstanceProperties1Boxed { - public final boolean data; - private UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedBoolean(boolean data) { - this.data = data; - } + public record UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedBoolean(boolean data) implements UnevaluatedpropertiesWithNullValuedInstanceProperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedNumber extends UnevaluatedpropertiesWithNullValuedInstanceProperties1Boxed { - public final Number data; - private UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedNumber(Number data) { - this.data = data; - } + public record UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedNumber(Number data) implements UnevaluatedpropertiesWithNullValuedInstanceProperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedString extends UnevaluatedpropertiesWithNullValuedInstanceProperties1Boxed { - public final String data; - private UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedString(String data) { - this.data = data; - } + public record UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedString(String data) implements UnevaluatedpropertiesWithNullValuedInstanceProperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedList extends UnevaluatedpropertiesWithNullValuedInstanceProperties1Boxed { - public final FrozenList<@Nullable Object> data; - private UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedList(FrozenList<@Nullable Object> data) implements UnevaluatedpropertiesWithNullValuedInstanceProperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedMap extends UnevaluatedpropertiesWithNullValuedInstanceProperties1Boxed { - public final FrozenMap<@Nullable Object> data; - private UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedMap(FrozenMap<@Nullable Object> data) implements UnevaluatedpropertiesWithNullValuedInstanceProperties1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class UnevaluatedpropertiesWithNullValuedInstanceProperties1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedList>, MapSchemaValidator, UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedMap> { + public static class UnevaluatedpropertiesWithNullValuedInstanceProperties1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedList>, MapSchemaValidator, UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -223,11 +199,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -258,11 +234,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -341,5 +317,24 @@ public UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedList validateA public UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnevaluatedpropertiesWithNullValuedInstanceProperties1BoxedMap(validate(arg, configuration)); } + @Override + public UnevaluatedpropertiesWithNullValuedInstanceProperties1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseValidation.java index bfb7f909fc0..4399cec94a9 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseValidation.java @@ -35,78 +35,54 @@ public class UniqueitemsFalseValidation { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class UniqueitemsFalseValidation1Boxed permits UniqueitemsFalseValidation1BoxedVoid, UniqueitemsFalseValidation1BoxedBoolean, UniqueitemsFalseValidation1BoxedNumber, UniqueitemsFalseValidation1BoxedString, UniqueitemsFalseValidation1BoxedList, UniqueitemsFalseValidation1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface UniqueitemsFalseValidation1Boxed permits UniqueitemsFalseValidation1BoxedVoid, UniqueitemsFalseValidation1BoxedBoolean, UniqueitemsFalseValidation1BoxedNumber, UniqueitemsFalseValidation1BoxedString, UniqueitemsFalseValidation1BoxedList, UniqueitemsFalseValidation1BoxedMap { + @Nullable Object getData(); } - public static final class UniqueitemsFalseValidation1BoxedVoid extends UniqueitemsFalseValidation1Boxed { - public final Void data; - private UniqueitemsFalseValidation1BoxedVoid(Void data) { - this.data = data; - } + public record UniqueitemsFalseValidation1BoxedVoid(Void data) implements UniqueitemsFalseValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UniqueitemsFalseValidation1BoxedBoolean extends UniqueitemsFalseValidation1Boxed { - public final boolean data; - private UniqueitemsFalseValidation1BoxedBoolean(boolean data) { - this.data = data; - } + public record UniqueitemsFalseValidation1BoxedBoolean(boolean data) implements UniqueitemsFalseValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UniqueitemsFalseValidation1BoxedNumber extends UniqueitemsFalseValidation1Boxed { - public final Number data; - private UniqueitemsFalseValidation1BoxedNumber(Number data) { - this.data = data; - } + public record UniqueitemsFalseValidation1BoxedNumber(Number data) implements UniqueitemsFalseValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UniqueitemsFalseValidation1BoxedString extends UniqueitemsFalseValidation1Boxed { - public final String data; - private UniqueitemsFalseValidation1BoxedString(String data) { - this.data = data; - } + public record UniqueitemsFalseValidation1BoxedString(String data) implements UniqueitemsFalseValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UniqueitemsFalseValidation1BoxedList extends UniqueitemsFalseValidation1Boxed { - public final FrozenList<@Nullable Object> data; - private UniqueitemsFalseValidation1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record UniqueitemsFalseValidation1BoxedList(FrozenList<@Nullable Object> data) implements UniqueitemsFalseValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UniqueitemsFalseValidation1BoxedMap extends UniqueitemsFalseValidation1Boxed { - public final FrozenMap<@Nullable Object> data; - private UniqueitemsFalseValidation1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record UniqueitemsFalseValidation1BoxedMap(FrozenMap<@Nullable Object> data) implements UniqueitemsFalseValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class UniqueitemsFalseValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UniqueitemsFalseValidation1BoxedList>, MapSchemaValidator, UniqueitemsFalseValidation1BoxedMap> { + public static class UniqueitemsFalseValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UniqueitemsFalseValidation1BoxedList>, MapSchemaValidator, UniqueitemsFalseValidation1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public UniqueitemsFalseValidation1BoxedList validateAndBox(List arg, SchemaCo public UniqueitemsFalseValidation1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UniqueitemsFalseValidation1BoxedMap(validate(arg, configuration)); } + @Override + public UniqueitemsFalseValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseWithAnArrayOfItems.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseWithAnArrayOfItems.java index 35046fcd8e4..b88cfa6ce18 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseWithAnArrayOfItems.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseWithAnArrayOfItems.java @@ -130,78 +130,54 @@ public static Schema1 getInstance() { } - public static abstract sealed class UniqueitemsFalseWithAnArrayOfItems1Boxed permits UniqueitemsFalseWithAnArrayOfItems1BoxedVoid, UniqueitemsFalseWithAnArrayOfItems1BoxedBoolean, UniqueitemsFalseWithAnArrayOfItems1BoxedNumber, UniqueitemsFalseWithAnArrayOfItems1BoxedString, UniqueitemsFalseWithAnArrayOfItems1BoxedList, UniqueitemsFalseWithAnArrayOfItems1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface UniqueitemsFalseWithAnArrayOfItems1Boxed permits UniqueitemsFalseWithAnArrayOfItems1BoxedVoid, UniqueitemsFalseWithAnArrayOfItems1BoxedBoolean, UniqueitemsFalseWithAnArrayOfItems1BoxedNumber, UniqueitemsFalseWithAnArrayOfItems1BoxedString, UniqueitemsFalseWithAnArrayOfItems1BoxedList, UniqueitemsFalseWithAnArrayOfItems1BoxedMap { + @Nullable Object getData(); } - public static final class UniqueitemsFalseWithAnArrayOfItems1BoxedVoid extends UniqueitemsFalseWithAnArrayOfItems1Boxed { - public final Void data; - private UniqueitemsFalseWithAnArrayOfItems1BoxedVoid(Void data) { - this.data = data; - } + public record UniqueitemsFalseWithAnArrayOfItems1BoxedVoid(Void data) implements UniqueitemsFalseWithAnArrayOfItems1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UniqueitemsFalseWithAnArrayOfItems1BoxedBoolean extends UniqueitemsFalseWithAnArrayOfItems1Boxed { - public final boolean data; - private UniqueitemsFalseWithAnArrayOfItems1BoxedBoolean(boolean data) { - this.data = data; - } + public record UniqueitemsFalseWithAnArrayOfItems1BoxedBoolean(boolean data) implements UniqueitemsFalseWithAnArrayOfItems1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UniqueitemsFalseWithAnArrayOfItems1BoxedNumber extends UniqueitemsFalseWithAnArrayOfItems1Boxed { - public final Number data; - private UniqueitemsFalseWithAnArrayOfItems1BoxedNumber(Number data) { - this.data = data; - } + public record UniqueitemsFalseWithAnArrayOfItems1BoxedNumber(Number data) implements UniqueitemsFalseWithAnArrayOfItems1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UniqueitemsFalseWithAnArrayOfItems1BoxedString extends UniqueitemsFalseWithAnArrayOfItems1Boxed { - public final String data; - private UniqueitemsFalseWithAnArrayOfItems1BoxedString(String data) { - this.data = data; - } + public record UniqueitemsFalseWithAnArrayOfItems1BoxedString(String data) implements UniqueitemsFalseWithAnArrayOfItems1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UniqueitemsFalseWithAnArrayOfItems1BoxedList extends UniqueitemsFalseWithAnArrayOfItems1Boxed { - public final UniqueitemsFalseWithAnArrayOfItemsList data; - private UniqueitemsFalseWithAnArrayOfItems1BoxedList(UniqueitemsFalseWithAnArrayOfItemsList data) { - this.data = data; - } + public record UniqueitemsFalseWithAnArrayOfItems1BoxedList(UniqueitemsFalseWithAnArrayOfItemsList data) implements UniqueitemsFalseWithAnArrayOfItems1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UniqueitemsFalseWithAnArrayOfItems1BoxedMap extends UniqueitemsFalseWithAnArrayOfItems1Boxed { - public final FrozenMap<@Nullable Object> data; - private UniqueitemsFalseWithAnArrayOfItems1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record UniqueitemsFalseWithAnArrayOfItems1BoxedMap(FrozenMap<@Nullable Object> data) implements UniqueitemsFalseWithAnArrayOfItems1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class UniqueitemsFalseWithAnArrayOfItems1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MapSchemaValidator, UniqueitemsFalseWithAnArrayOfItems1BoxedMap> { + public static class UniqueitemsFalseWithAnArrayOfItems1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MapSchemaValidator, UniqueitemsFalseWithAnArrayOfItems1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -310,11 +286,11 @@ public UniqueitemsFalseWithAnArrayOfItemsList getNewInstance(List arg, List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -345,11 +321,11 @@ public UniqueitemsFalseWithAnArrayOfItemsList validate(List arg, SchemaConfig List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -428,5 +404,24 @@ public UniqueitemsFalseWithAnArrayOfItems1BoxedList validateAndBox(List arg, public UniqueitemsFalseWithAnArrayOfItems1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UniqueitemsFalseWithAnArrayOfItems1BoxedMap(validate(arg, configuration)); } + @Override + public UniqueitemsFalseWithAnArrayOfItems1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsValidation.java index 02694a8bd17..2433913da51 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsValidation.java @@ -35,78 +35,54 @@ public class UniqueitemsValidation { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class UniqueitemsValidation1Boxed permits UniqueitemsValidation1BoxedVoid, UniqueitemsValidation1BoxedBoolean, UniqueitemsValidation1BoxedNumber, UniqueitemsValidation1BoxedString, UniqueitemsValidation1BoxedList, UniqueitemsValidation1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface UniqueitemsValidation1Boxed permits UniqueitemsValidation1BoxedVoid, UniqueitemsValidation1BoxedBoolean, UniqueitemsValidation1BoxedNumber, UniqueitemsValidation1BoxedString, UniqueitemsValidation1BoxedList, UniqueitemsValidation1BoxedMap { + @Nullable Object getData(); } - public static final class UniqueitemsValidation1BoxedVoid extends UniqueitemsValidation1Boxed { - public final Void data; - private UniqueitemsValidation1BoxedVoid(Void data) { - this.data = data; - } + public record UniqueitemsValidation1BoxedVoid(Void data) implements UniqueitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UniqueitemsValidation1BoxedBoolean extends UniqueitemsValidation1Boxed { - public final boolean data; - private UniqueitemsValidation1BoxedBoolean(boolean data) { - this.data = data; - } + public record UniqueitemsValidation1BoxedBoolean(boolean data) implements UniqueitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UniqueitemsValidation1BoxedNumber extends UniqueitemsValidation1Boxed { - public final Number data; - private UniqueitemsValidation1BoxedNumber(Number data) { - this.data = data; - } + public record UniqueitemsValidation1BoxedNumber(Number data) implements UniqueitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UniqueitemsValidation1BoxedString extends UniqueitemsValidation1Boxed { - public final String data; - private UniqueitemsValidation1BoxedString(String data) { - this.data = data; - } + public record UniqueitemsValidation1BoxedString(String data) implements UniqueitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UniqueitemsValidation1BoxedList extends UniqueitemsValidation1Boxed { - public final FrozenList<@Nullable Object> data; - private UniqueitemsValidation1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record UniqueitemsValidation1BoxedList(FrozenList<@Nullable Object> data) implements UniqueitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UniqueitemsValidation1BoxedMap extends UniqueitemsValidation1Boxed { - public final FrozenMap<@Nullable Object> data; - private UniqueitemsValidation1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record UniqueitemsValidation1BoxedMap(FrozenMap<@Nullable Object> data) implements UniqueitemsValidation1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class UniqueitemsValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UniqueitemsValidation1BoxedList>, MapSchemaValidator, UniqueitemsValidation1BoxedMap> { + public static class UniqueitemsValidation1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UniqueitemsValidation1BoxedList>, MapSchemaValidator, UniqueitemsValidation1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public UniqueitemsValidation1BoxedList validateAndBox(List arg, SchemaConfigu public UniqueitemsValidation1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UniqueitemsValidation1BoxedMap(validate(arg, configuration)); } + @Override + public UniqueitemsValidation1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsWithAnArrayOfItems.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsWithAnArrayOfItems.java index 0cdc695f7b8..b9a6aaaf51e 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsWithAnArrayOfItems.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsWithAnArrayOfItems.java @@ -130,78 +130,54 @@ public static Schema1 getInstance() { } - public static abstract sealed class UniqueitemsWithAnArrayOfItems1Boxed permits UniqueitemsWithAnArrayOfItems1BoxedVoid, UniqueitemsWithAnArrayOfItems1BoxedBoolean, UniqueitemsWithAnArrayOfItems1BoxedNumber, UniqueitemsWithAnArrayOfItems1BoxedString, UniqueitemsWithAnArrayOfItems1BoxedList, UniqueitemsWithAnArrayOfItems1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface UniqueitemsWithAnArrayOfItems1Boxed permits UniqueitemsWithAnArrayOfItems1BoxedVoid, UniqueitemsWithAnArrayOfItems1BoxedBoolean, UniqueitemsWithAnArrayOfItems1BoxedNumber, UniqueitemsWithAnArrayOfItems1BoxedString, UniqueitemsWithAnArrayOfItems1BoxedList, UniqueitemsWithAnArrayOfItems1BoxedMap { + @Nullable Object getData(); } - public static final class UniqueitemsWithAnArrayOfItems1BoxedVoid extends UniqueitemsWithAnArrayOfItems1Boxed { - public final Void data; - private UniqueitemsWithAnArrayOfItems1BoxedVoid(Void data) { - this.data = data; - } + public record UniqueitemsWithAnArrayOfItems1BoxedVoid(Void data) implements UniqueitemsWithAnArrayOfItems1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UniqueitemsWithAnArrayOfItems1BoxedBoolean extends UniqueitemsWithAnArrayOfItems1Boxed { - public final boolean data; - private UniqueitemsWithAnArrayOfItems1BoxedBoolean(boolean data) { - this.data = data; - } + public record UniqueitemsWithAnArrayOfItems1BoxedBoolean(boolean data) implements UniqueitemsWithAnArrayOfItems1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UniqueitemsWithAnArrayOfItems1BoxedNumber extends UniqueitemsWithAnArrayOfItems1Boxed { - public final Number data; - private UniqueitemsWithAnArrayOfItems1BoxedNumber(Number data) { - this.data = data; - } + public record UniqueitemsWithAnArrayOfItems1BoxedNumber(Number data) implements UniqueitemsWithAnArrayOfItems1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UniqueitemsWithAnArrayOfItems1BoxedString extends UniqueitemsWithAnArrayOfItems1Boxed { - public final String data; - private UniqueitemsWithAnArrayOfItems1BoxedString(String data) { - this.data = data; - } + public record UniqueitemsWithAnArrayOfItems1BoxedString(String data) implements UniqueitemsWithAnArrayOfItems1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UniqueitemsWithAnArrayOfItems1BoxedList extends UniqueitemsWithAnArrayOfItems1Boxed { - public final UniqueitemsWithAnArrayOfItemsList data; - private UniqueitemsWithAnArrayOfItems1BoxedList(UniqueitemsWithAnArrayOfItemsList data) { - this.data = data; - } + public record UniqueitemsWithAnArrayOfItems1BoxedList(UniqueitemsWithAnArrayOfItemsList data) implements UniqueitemsWithAnArrayOfItems1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UniqueitemsWithAnArrayOfItems1BoxedMap extends UniqueitemsWithAnArrayOfItems1Boxed { - public final FrozenMap<@Nullable Object> data; - private UniqueitemsWithAnArrayOfItems1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record UniqueitemsWithAnArrayOfItems1BoxedMap(FrozenMap<@Nullable Object> data) implements UniqueitemsWithAnArrayOfItems1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class UniqueitemsWithAnArrayOfItems1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MapSchemaValidator, UniqueitemsWithAnArrayOfItems1BoxedMap> { + public static class UniqueitemsWithAnArrayOfItems1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MapSchemaValidator, UniqueitemsWithAnArrayOfItems1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -310,11 +286,11 @@ public UniqueitemsWithAnArrayOfItemsList getNewInstance(List arg, List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -345,11 +321,11 @@ public UniqueitemsWithAnArrayOfItemsList validate(List arg, SchemaConfigurati List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -428,5 +404,24 @@ public UniqueitemsWithAnArrayOfItems1BoxedList validateAndBox(List arg, Schem public UniqueitemsWithAnArrayOfItems1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UniqueitemsWithAnArrayOfItems1BoxedMap(validate(arg, configuration)); } + @Override + public UniqueitemsWithAnArrayOfItems1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriFormat.java index c7c3721ac5f..bc2d00b8518 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriFormat.java @@ -35,78 +35,54 @@ public class UriFormat { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class UriFormat1Boxed permits UriFormat1BoxedVoid, UriFormat1BoxedBoolean, UriFormat1BoxedNumber, UriFormat1BoxedString, UriFormat1BoxedList, UriFormat1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface UriFormat1Boxed permits UriFormat1BoxedVoid, UriFormat1BoxedBoolean, UriFormat1BoxedNumber, UriFormat1BoxedString, UriFormat1BoxedList, UriFormat1BoxedMap { + @Nullable Object getData(); } - public static final class UriFormat1BoxedVoid extends UriFormat1Boxed { - public final Void data; - private UriFormat1BoxedVoid(Void data) { - this.data = data; - } + public record UriFormat1BoxedVoid(Void data) implements UriFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UriFormat1BoxedBoolean extends UriFormat1Boxed { - public final boolean data; - private UriFormat1BoxedBoolean(boolean data) { - this.data = data; - } + public record UriFormat1BoxedBoolean(boolean data) implements UriFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UriFormat1BoxedNumber extends UriFormat1Boxed { - public final Number data; - private UriFormat1BoxedNumber(Number data) { - this.data = data; - } + public record UriFormat1BoxedNumber(Number data) implements UriFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UriFormat1BoxedString extends UriFormat1Boxed { - public final String data; - private UriFormat1BoxedString(String data) { - this.data = data; - } + public record UriFormat1BoxedString(String data) implements UriFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UriFormat1BoxedList extends UriFormat1Boxed { - public final FrozenList<@Nullable Object> data; - private UriFormat1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record UriFormat1BoxedList(FrozenList<@Nullable Object> data) implements UriFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UriFormat1BoxedMap extends UriFormat1Boxed { - public final FrozenMap<@Nullable Object> data; - private UriFormat1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record UriFormat1BoxedMap(FrozenMap<@Nullable Object> data) implements UriFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class UriFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UriFormat1BoxedList>, MapSchemaValidator, UriFormat1BoxedMap> { + public static class UriFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UriFormat1BoxedList>, MapSchemaValidator, UriFormat1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public UriFormat1BoxedList validateAndBox(List arg, SchemaConfiguration confi public UriFormat1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UriFormat1BoxedMap(validate(arg, configuration)); } + @Override + public UriFormat1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriReferenceFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriReferenceFormat.java index a6f0712c973..bee6021f6cf 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriReferenceFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriReferenceFormat.java @@ -35,78 +35,54 @@ public class UriReferenceFormat { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class UriReferenceFormat1Boxed permits UriReferenceFormat1BoxedVoid, UriReferenceFormat1BoxedBoolean, UriReferenceFormat1BoxedNumber, UriReferenceFormat1BoxedString, UriReferenceFormat1BoxedList, UriReferenceFormat1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface UriReferenceFormat1Boxed permits UriReferenceFormat1BoxedVoid, UriReferenceFormat1BoxedBoolean, UriReferenceFormat1BoxedNumber, UriReferenceFormat1BoxedString, UriReferenceFormat1BoxedList, UriReferenceFormat1BoxedMap { + @Nullable Object getData(); } - public static final class UriReferenceFormat1BoxedVoid extends UriReferenceFormat1Boxed { - public final Void data; - private UriReferenceFormat1BoxedVoid(Void data) { - this.data = data; - } + public record UriReferenceFormat1BoxedVoid(Void data) implements UriReferenceFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UriReferenceFormat1BoxedBoolean extends UriReferenceFormat1Boxed { - public final boolean data; - private UriReferenceFormat1BoxedBoolean(boolean data) { - this.data = data; - } + public record UriReferenceFormat1BoxedBoolean(boolean data) implements UriReferenceFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UriReferenceFormat1BoxedNumber extends UriReferenceFormat1Boxed { - public final Number data; - private UriReferenceFormat1BoxedNumber(Number data) { - this.data = data; - } + public record UriReferenceFormat1BoxedNumber(Number data) implements UriReferenceFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UriReferenceFormat1BoxedString extends UriReferenceFormat1Boxed { - public final String data; - private UriReferenceFormat1BoxedString(String data) { - this.data = data; - } + public record UriReferenceFormat1BoxedString(String data) implements UriReferenceFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UriReferenceFormat1BoxedList extends UriReferenceFormat1Boxed { - public final FrozenList<@Nullable Object> data; - private UriReferenceFormat1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record UriReferenceFormat1BoxedList(FrozenList<@Nullable Object> data) implements UriReferenceFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UriReferenceFormat1BoxedMap extends UriReferenceFormat1Boxed { - public final FrozenMap<@Nullable Object> data; - private UriReferenceFormat1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record UriReferenceFormat1BoxedMap(FrozenMap<@Nullable Object> data) implements UriReferenceFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class UriReferenceFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UriReferenceFormat1BoxedList>, MapSchemaValidator, UriReferenceFormat1BoxedMap> { + public static class UriReferenceFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UriReferenceFormat1BoxedList>, MapSchemaValidator, UriReferenceFormat1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public UriReferenceFormat1BoxedList validateAndBox(List arg, SchemaConfigurat public UriReferenceFormat1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UriReferenceFormat1BoxedMap(validate(arg, configuration)); } + @Override + public UriReferenceFormat1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriTemplateFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriTemplateFormat.java index 2724eebd809..16dead22e86 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriTemplateFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriTemplateFormat.java @@ -35,78 +35,54 @@ public class UriTemplateFormat { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class UriTemplateFormat1Boxed permits UriTemplateFormat1BoxedVoid, UriTemplateFormat1BoxedBoolean, UriTemplateFormat1BoxedNumber, UriTemplateFormat1BoxedString, UriTemplateFormat1BoxedList, UriTemplateFormat1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface UriTemplateFormat1Boxed permits UriTemplateFormat1BoxedVoid, UriTemplateFormat1BoxedBoolean, UriTemplateFormat1BoxedNumber, UriTemplateFormat1BoxedString, UriTemplateFormat1BoxedList, UriTemplateFormat1BoxedMap { + @Nullable Object getData(); } - public static final class UriTemplateFormat1BoxedVoid extends UriTemplateFormat1Boxed { - public final Void data; - private UriTemplateFormat1BoxedVoid(Void data) { - this.data = data; - } + public record UriTemplateFormat1BoxedVoid(Void data) implements UriTemplateFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UriTemplateFormat1BoxedBoolean extends UriTemplateFormat1Boxed { - public final boolean data; - private UriTemplateFormat1BoxedBoolean(boolean data) { - this.data = data; - } + public record UriTemplateFormat1BoxedBoolean(boolean data) implements UriTemplateFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UriTemplateFormat1BoxedNumber extends UriTemplateFormat1Boxed { - public final Number data; - private UriTemplateFormat1BoxedNumber(Number data) { - this.data = data; - } + public record UriTemplateFormat1BoxedNumber(Number data) implements UriTemplateFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UriTemplateFormat1BoxedString extends UriTemplateFormat1Boxed { - public final String data; - private UriTemplateFormat1BoxedString(String data) { - this.data = data; - } + public record UriTemplateFormat1BoxedString(String data) implements UriTemplateFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UriTemplateFormat1BoxedList extends UriTemplateFormat1Boxed { - public final FrozenList<@Nullable Object> data; - private UriTemplateFormat1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record UriTemplateFormat1BoxedList(FrozenList<@Nullable Object> data) implements UriTemplateFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UriTemplateFormat1BoxedMap extends UriTemplateFormat1Boxed { - public final FrozenMap<@Nullable Object> data; - private UriTemplateFormat1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record UriTemplateFormat1BoxedMap(FrozenMap<@Nullable Object> data) implements UriTemplateFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class UriTemplateFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UriTemplateFormat1BoxedList>, MapSchemaValidator, UriTemplateFormat1BoxedMap> { + public static class UriTemplateFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UriTemplateFormat1BoxedList>, MapSchemaValidator, UriTemplateFormat1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public UriTemplateFormat1BoxedList validateAndBox(List arg, SchemaConfigurati public UriTemplateFormat1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UriTemplateFormat1BoxedMap(validate(arg, configuration)); } + @Override + public UriTemplateFormat1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UuidFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UuidFormat.java index 45387fe6fa2..99b379ce994 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UuidFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UuidFormat.java @@ -35,78 +35,54 @@ public class UuidFormat { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class UuidFormat1Boxed permits UuidFormat1BoxedVoid, UuidFormat1BoxedBoolean, UuidFormat1BoxedNumber, UuidFormat1BoxedString, UuidFormat1BoxedList, UuidFormat1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface UuidFormat1Boxed permits UuidFormat1BoxedVoid, UuidFormat1BoxedBoolean, UuidFormat1BoxedNumber, UuidFormat1BoxedString, UuidFormat1BoxedList, UuidFormat1BoxedMap { + @Nullable Object getData(); } - public static final class UuidFormat1BoxedVoid extends UuidFormat1Boxed { - public final Void data; - private UuidFormat1BoxedVoid(Void data) { - this.data = data; - } + public record UuidFormat1BoxedVoid(Void data) implements UuidFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UuidFormat1BoxedBoolean extends UuidFormat1Boxed { - public final boolean data; - private UuidFormat1BoxedBoolean(boolean data) { - this.data = data; - } + public record UuidFormat1BoxedBoolean(boolean data) implements UuidFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UuidFormat1BoxedNumber extends UuidFormat1Boxed { - public final Number data; - private UuidFormat1BoxedNumber(Number data) { - this.data = data; - } + public record UuidFormat1BoxedNumber(Number data) implements UuidFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UuidFormat1BoxedString extends UuidFormat1Boxed { - public final String data; - private UuidFormat1BoxedString(String data) { - this.data = data; - } + public record UuidFormat1BoxedString(String data) implements UuidFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UuidFormat1BoxedList extends UuidFormat1Boxed { - public final FrozenList<@Nullable Object> data; - private UuidFormat1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record UuidFormat1BoxedList(FrozenList<@Nullable Object> data) implements UuidFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UuidFormat1BoxedMap extends UuidFormat1Boxed { - public final FrozenMap<@Nullable Object> data; - private UuidFormat1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record UuidFormat1BoxedMap(FrozenMap<@Nullable Object> data) implements UuidFormat1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class UuidFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UuidFormat1BoxedList>, MapSchemaValidator, UuidFormat1BoxedMap> { + public static class UuidFormat1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UuidFormat1BoxedList>, MapSchemaValidator, UuidFormat1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -211,11 +187,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -246,11 +222,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -329,5 +305,24 @@ public UuidFormat1BoxedList validateAndBox(List arg, SchemaConfiguration conf public UuidFormat1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UuidFormat1BoxedMap(validate(arg, configuration)); } + @Override + public UuidFormat1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ValidateAgainstCorrectBranchThenVsElse.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ValidateAgainstCorrectBranchThenVsElse.java index 948be597c9d..cacd8bf2b2d 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ValidateAgainstCorrectBranchThenVsElse.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ValidateAgainstCorrectBranchThenVsElse.java @@ -36,78 +36,54 @@ public class ValidateAgainstCorrectBranchThenVsElse { // nest classes so all schemas and input/output classes can be public - public static abstract sealed class ElseSchemaBoxed permits ElseSchemaBoxedVoid, ElseSchemaBoxedBoolean, ElseSchemaBoxedNumber, ElseSchemaBoxedString, ElseSchemaBoxedList, ElseSchemaBoxedMap { - public abstract @Nullable Object data(); + public sealed interface ElseSchemaBoxed permits ElseSchemaBoxedVoid, ElseSchemaBoxedBoolean, ElseSchemaBoxedNumber, ElseSchemaBoxedString, ElseSchemaBoxedList, ElseSchemaBoxedMap { + @Nullable Object getData(); } - public static final class ElseSchemaBoxedVoid extends ElseSchemaBoxed { - public final Void data; - private ElseSchemaBoxedVoid(Void data) { - this.data = data; - } + public record ElseSchemaBoxedVoid(Void data) implements ElseSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ElseSchemaBoxedBoolean extends ElseSchemaBoxed { - public final boolean data; - private ElseSchemaBoxedBoolean(boolean data) { - this.data = data; - } + public record ElseSchemaBoxedBoolean(boolean data) implements ElseSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ElseSchemaBoxedNumber extends ElseSchemaBoxed { - public final Number data; - private ElseSchemaBoxedNumber(Number data) { - this.data = data; - } + public record ElseSchemaBoxedNumber(Number data) implements ElseSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ElseSchemaBoxedString extends ElseSchemaBoxed { - public final String data; - private ElseSchemaBoxedString(String data) { - this.data = data; - } + public record ElseSchemaBoxedString(String data) implements ElseSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ElseSchemaBoxedList extends ElseSchemaBoxed { - public final FrozenList<@Nullable Object> data; - private ElseSchemaBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ElseSchemaBoxedList(FrozenList<@Nullable Object> data) implements ElseSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ElseSchemaBoxedMap extends ElseSchemaBoxed { - public final FrozenMap<@Nullable Object> data; - private ElseSchemaBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ElseSchemaBoxedMap(FrozenMap<@Nullable Object> data) implements ElseSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class ElseSchema extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ElseSchemaBoxedList>, MapSchemaValidator, ElseSchemaBoxedMap> { + public static class ElseSchema extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ElseSchemaBoxedList>, MapSchemaValidator, ElseSchemaBoxedMap> { private static @Nullable ElseSchema instance = null; protected ElseSchema() { @@ -206,11 +182,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -241,11 +217,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -324,80 +300,75 @@ public ElseSchemaBoxedList validateAndBox(List arg, SchemaConfiguration confi public ElseSchemaBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ElseSchemaBoxedMap(validate(arg, configuration)); } + @Override + public ElseSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class IfSchemaBoxed permits IfSchemaBoxedVoid, IfSchemaBoxedBoolean, IfSchemaBoxedNumber, IfSchemaBoxedString, IfSchemaBoxedList, IfSchemaBoxedMap { - public abstract @Nullable Object data(); + public sealed interface IfSchemaBoxed permits IfSchemaBoxedVoid, IfSchemaBoxedBoolean, IfSchemaBoxedNumber, IfSchemaBoxedString, IfSchemaBoxedList, IfSchemaBoxedMap { + @Nullable Object getData(); } - public static final class IfSchemaBoxedVoid extends IfSchemaBoxed { - public final Void data; - private IfSchemaBoxedVoid(Void data) { - this.data = data; - } + public record IfSchemaBoxedVoid(Void data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfSchemaBoxedBoolean extends IfSchemaBoxed { - public final boolean data; - private IfSchemaBoxedBoolean(boolean data) { - this.data = data; - } + public record IfSchemaBoxedBoolean(boolean data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfSchemaBoxedNumber extends IfSchemaBoxed { - public final Number data; - private IfSchemaBoxedNumber(Number data) { - this.data = data; - } + public record IfSchemaBoxedNumber(Number data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfSchemaBoxedString extends IfSchemaBoxed { - public final String data; - private IfSchemaBoxedString(String data) { - this.data = data; - } + public record IfSchemaBoxedString(String data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfSchemaBoxedList extends IfSchemaBoxed { - public final FrozenList<@Nullable Object> data; - private IfSchemaBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record IfSchemaBoxedList(FrozenList<@Nullable Object> data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class IfSchemaBoxedMap extends IfSchemaBoxed { - public final FrozenMap<@Nullable Object> data; - private IfSchemaBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record IfSchemaBoxedMap(FrozenMap<@Nullable Object> data) implements IfSchemaBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class IfSchema extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IfSchemaBoxedList>, MapSchemaValidator, IfSchemaBoxedMap> { + public static class IfSchema extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, IfSchemaBoxedList>, MapSchemaValidator, IfSchemaBoxedMap> { private static @Nullable IfSchema instance = null; protected IfSchema() { @@ -496,11 +467,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -531,11 +502,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -614,80 +585,75 @@ public IfSchemaBoxedList validateAndBox(List arg, SchemaConfiguration configu public IfSchemaBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new IfSchemaBoxedMap(validate(arg, configuration)); } + @Override + public IfSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class ThenBoxed permits ThenBoxedVoid, ThenBoxedBoolean, ThenBoxedNumber, ThenBoxedString, ThenBoxedList, ThenBoxedMap { - public abstract @Nullable Object data(); + public sealed interface ThenBoxed permits ThenBoxedVoid, ThenBoxedBoolean, ThenBoxedNumber, ThenBoxedString, ThenBoxedList, ThenBoxedMap { + @Nullable Object getData(); } - public static final class ThenBoxedVoid extends ThenBoxed { - public final Void data; - private ThenBoxedVoid(Void data) { - this.data = data; - } + public record ThenBoxedVoid(Void data) implements ThenBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ThenBoxedBoolean extends ThenBoxed { - public final boolean data; - private ThenBoxedBoolean(boolean data) { - this.data = data; - } + public record ThenBoxedBoolean(boolean data) implements ThenBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ThenBoxedNumber extends ThenBoxed { - public final Number data; - private ThenBoxedNumber(Number data) { - this.data = data; - } + public record ThenBoxedNumber(Number data) implements ThenBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ThenBoxedString extends ThenBoxed { - public final String data; - private ThenBoxedString(String data) { - this.data = data; - } + public record ThenBoxedString(String data) implements ThenBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ThenBoxedList extends ThenBoxed { - public final FrozenList<@Nullable Object> data; - private ThenBoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ThenBoxedList(FrozenList<@Nullable Object> data) implements ThenBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ThenBoxedMap extends ThenBoxed { - public final FrozenMap<@Nullable Object> data; - private ThenBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ThenBoxedMap(FrozenMap<@Nullable Object> data) implements ThenBoxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Then extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ThenBoxedList>, MapSchemaValidator, ThenBoxedMap> { + public static class Then extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ThenBoxedList>, MapSchemaValidator, ThenBoxedMap> { private static @Nullable Then instance = null; protected Then() { @@ -786,11 +752,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -821,11 +787,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -904,80 +870,75 @@ public ThenBoxedList validateAndBox(List arg, SchemaConfiguration configurati public ThenBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ThenBoxedMap(validate(arg, configuration)); } + @Override + public ThenBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class ValidateAgainstCorrectBranchThenVsElse1Boxed permits ValidateAgainstCorrectBranchThenVsElse1BoxedVoid, ValidateAgainstCorrectBranchThenVsElse1BoxedBoolean, ValidateAgainstCorrectBranchThenVsElse1BoxedNumber, ValidateAgainstCorrectBranchThenVsElse1BoxedString, ValidateAgainstCorrectBranchThenVsElse1BoxedList, ValidateAgainstCorrectBranchThenVsElse1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface ValidateAgainstCorrectBranchThenVsElse1Boxed permits ValidateAgainstCorrectBranchThenVsElse1BoxedVoid, ValidateAgainstCorrectBranchThenVsElse1BoxedBoolean, ValidateAgainstCorrectBranchThenVsElse1BoxedNumber, ValidateAgainstCorrectBranchThenVsElse1BoxedString, ValidateAgainstCorrectBranchThenVsElse1BoxedList, ValidateAgainstCorrectBranchThenVsElse1BoxedMap { + @Nullable Object getData(); } - public static final class ValidateAgainstCorrectBranchThenVsElse1BoxedVoid extends ValidateAgainstCorrectBranchThenVsElse1Boxed { - public final Void data; - private ValidateAgainstCorrectBranchThenVsElse1BoxedVoid(Void data) { - this.data = data; - } + public record ValidateAgainstCorrectBranchThenVsElse1BoxedVoid(Void data) implements ValidateAgainstCorrectBranchThenVsElse1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ValidateAgainstCorrectBranchThenVsElse1BoxedBoolean extends ValidateAgainstCorrectBranchThenVsElse1Boxed { - public final boolean data; - private ValidateAgainstCorrectBranchThenVsElse1BoxedBoolean(boolean data) { - this.data = data; - } + public record ValidateAgainstCorrectBranchThenVsElse1BoxedBoolean(boolean data) implements ValidateAgainstCorrectBranchThenVsElse1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ValidateAgainstCorrectBranchThenVsElse1BoxedNumber extends ValidateAgainstCorrectBranchThenVsElse1Boxed { - public final Number data; - private ValidateAgainstCorrectBranchThenVsElse1BoxedNumber(Number data) { - this.data = data; - } + public record ValidateAgainstCorrectBranchThenVsElse1BoxedNumber(Number data) implements ValidateAgainstCorrectBranchThenVsElse1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ValidateAgainstCorrectBranchThenVsElse1BoxedString extends ValidateAgainstCorrectBranchThenVsElse1Boxed { - public final String data; - private ValidateAgainstCorrectBranchThenVsElse1BoxedString(String data) { - this.data = data; - } + public record ValidateAgainstCorrectBranchThenVsElse1BoxedString(String data) implements ValidateAgainstCorrectBranchThenVsElse1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ValidateAgainstCorrectBranchThenVsElse1BoxedList extends ValidateAgainstCorrectBranchThenVsElse1Boxed { - public final FrozenList<@Nullable Object> data; - private ValidateAgainstCorrectBranchThenVsElse1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ValidateAgainstCorrectBranchThenVsElse1BoxedList(FrozenList<@Nullable Object> data) implements ValidateAgainstCorrectBranchThenVsElse1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class ValidateAgainstCorrectBranchThenVsElse1BoxedMap extends ValidateAgainstCorrectBranchThenVsElse1Boxed { - public final FrozenMap<@Nullable Object> data; - private ValidateAgainstCorrectBranchThenVsElse1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ValidateAgainstCorrectBranchThenVsElse1BoxedMap(FrozenMap<@Nullable Object> data) implements ValidateAgainstCorrectBranchThenVsElse1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class ValidateAgainstCorrectBranchThenVsElse1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ValidateAgainstCorrectBranchThenVsElse1BoxedList>, MapSchemaValidator, ValidateAgainstCorrectBranchThenVsElse1BoxedMap> { + public static class ValidateAgainstCorrectBranchThenVsElse1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ValidateAgainstCorrectBranchThenVsElse1BoxedList>, MapSchemaValidator, ValidateAgainstCorrectBranchThenVsElse1BoxedMap> { /* NOTE: This class is auto generated by OpenAPI JSON Schema Generator. Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator @@ -1084,11 +1045,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(itemInstance); i += 1; @@ -1119,11 +1080,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, propertyInstance); } @@ -1202,5 +1163,24 @@ public ValidateAgainstCorrectBranchThenVsElse1BoxedList validateAndBox(List a public ValidateAgainstCorrectBranchThenVsElse1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ValidateAgainstCorrectBranchThenVsElse1BoxedMap(validate(arg, configuration)); } + @Override + public ValidateAgainstCorrectBranchThenVsElse1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/mediatype/MediaType.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/mediatype/MediaType.java index 7e55f79c911..e8392d15eda 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/mediatype/MediaType.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/mediatype/MediaType.java @@ -1,11 +1,8 @@ package org.openapijsonschematools.client.mediatype; import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.checkerframework.checker.nullness.qual.Nullable; -import java.util.Map; - -public class MediaType { +public interface MediaType, U> { /* * Used to store request and response body schema information * encoding: @@ -14,16 +11,6 @@ public class MediaType { * The encoding object SHALL only apply to requestBody objects when the media type is * multipart or application/x-www-form-urlencoded. */ - public final T schema; - public final @Nullable Map encoding; - - public MediaType(T schema, @Nullable Map encoding) { - this.schema = schema; - this.encoding = encoding; - } - - public MediaType(T schema) { - this.schema = schema; - this.encoding = null; - } + T schema(); + U encoding(); } \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java index 3fdbcdbfde4..490c0e3e8a2 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java @@ -1,28 +1,32 @@ package org.openapijsonschematools.client.requestbody; -import org.openapijsonschematools.client.mediatype.MediaType; - import java.net.http.HttpRequest; import org.checkerframework.checker.nullness.qual.Nullable; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.ToNumberPolicy; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; import java.util.Map; import java.util.regex.Pattern; -public abstract class RequestBodySerializer { +public abstract class RequestBodySerializer { /* * Describes a single request body * content: contentType to MediaType schema info */ - public final Map> content; + public final Map content; public final boolean required; private static final Pattern jsonContentTypePattern = Pattern.compile( "application/[^+]*[+]?(json);?.*" ); - private static final Gson gson = new Gson(); + private static final Gson gson = new GsonBuilder() + .setObjectToNumberStrategy(ToNumberPolicy.LONG_OR_DOUBLE) + .setNumberToNumberStrategy(ToNumberPolicy.LONG_OR_DOUBLE) + .create(); private static final String textPlainContentType = "text/plain"; - public RequestBodySerializer(Map> content, boolean required) { + public RequestBodySerializer(Map content, boolean required) { this.content = content; this.required = required; } @@ -40,7 +44,7 @@ private SerializedRequestBody serializeTextPlain(String contentType, @Nullable O if (body instanceof String stringBody) { return new SerializedRequestBody(contentType, HttpRequest.BodyPublishers.ofString(stringBody)); } - throw new RuntimeException("Invalid non-string data type of "+body.getClass().getName()+" for text/plain body serialization"); + throw new RuntimeException("Invalid non-string data type of "+JsonSchema.getClass(body)+" for text/plain body serialization"); } protected SerializedRequestBody serialize(String contentType, @Nullable Object body) { diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/response/ApiResponse.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/response/ApiResponse.java new file mode 100644 index 00000000000..dab55e0f2da --- /dev/null +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/response/ApiResponse.java @@ -0,0 +1,9 @@ +package org.openapijsonschematools.client.response; + +import java.net.http.HttpResponse; + +public interface ApiResponse { + HttpResponse response(); + SealedBodyOutputClass body(); + HeaderOutputClass headers(); +} \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java new file mode 100644 index 00000000000..766af80f088 --- /dev/null +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java @@ -0,0 +1,83 @@ +package org.openapijsonschematools.client.response; + +import java.net.http.HttpHeaders; +import java.net.http.HttpResponse; +import java.nio.charset.StandardCharsets; +import java.util.Map; +import java.util.Optional; +import java.util.regex.Pattern; + +import org.checkerframework.checker.nullness.qual.Nullable; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.ToNumberPolicy; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; + +public abstract class ResponseDeserializer { + public final Map content; + public final @Nullable Map headers; // todo change the value to header + private static final Pattern jsonContentTypePattern = Pattern.compile( + "application/[^+]*[+]?(json);?.*" + ); + private static final Gson gson = new GsonBuilder() + .setObjectToNumberStrategy(ToNumberPolicy.LONG_OR_DOUBLE) + .setNumberToNumberStrategy(ToNumberPolicy.LONG_OR_DOUBLE) + .create(); + protected static final String textPlainContentType = "text/plain"; + + public ResponseDeserializer(Map content) { + this.content = content; + this.headers = null; + } + + protected abstract SealedBodyClass getBody(String contentType, byte[] body, SchemaConfiguration configuration); + protected abstract HeaderClass getHeaders(HttpHeaders headers); + + protected @Nullable Object deserializeJson(byte[] body) { + String bodyStr = new String(body, StandardCharsets.UTF_8); + return gson.fromJson(bodyStr, Object.class); + } + + protected String deserializeTextPlain(byte[] body) { + return new String(body, StandardCharsets.UTF_8); + } + + protected static boolean contentTypeIsJson(String contentType) { + return jsonContentTypePattern.matcher(contentType).find(); + } + + protected static boolean contentTypeIsTextPlain(String contentType) { + return textPlainContentType.equals(contentType); + } + + protected T deserializeBody(String contentType, byte[] body, JsonSchema schema, SchemaConfiguration configuration) { + if (contentTypeIsJson(contentType)) { + @Nullable Object bodyData = deserializeJson(body); + return schema.validateAndBox(bodyData, configuration); + } else if (contentTypeIsTextPlain(contentType)) { + String bodyData = deserializeTextPlain(body); + return schema.validateAndBox(bodyData, configuration); + } + throw new RuntimeException("Deserialization for contentType="+contentType+" has not yet been implemented."); + } + + public ApiResponse deserialize(HttpResponse response, SchemaConfiguration configuration) { + Optional contentTypeInfo = response.headers().firstValue("Content-Type"); + if (contentTypeInfo.isEmpty()) { + throw new RuntimeException("Invalid response returned, Content-Type header is missing and it must be included"); + } + String contentType = contentTypeInfo.get(); + if (content != null && !content.containsKey(contentType)) { + throw new RuntimeException( + "Invalid contentType returned. contentType="+contentType+" was returned "+ + "when only "+content.keySet()+" are defined for statusCode="+response.statusCode() + ); + } + byte[] bodyBytes = response.body(); + SealedBodyClass body = getBody(contentType, bodyBytes, configuration); + HeaderClass headers = getHeaders(response.headers()); + return new DeserializedApiResponse<>(response, body, headers); + } +} \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java index ee6800e54ad..0ffcae114bd 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java @@ -31,71 +31,47 @@ import java.util.UUID; public class AnyTypeJsonSchema { - public static abstract sealed class AnyTypeJsonSchema1Boxed permits AnyTypeJsonSchema1BoxedVoid, AnyTypeJsonSchema1BoxedBoolean, AnyTypeJsonSchema1BoxedNumber, AnyTypeJsonSchema1BoxedString, AnyTypeJsonSchema1BoxedList, AnyTypeJsonSchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface AnyTypeJsonSchema1Boxed permits AnyTypeJsonSchema1BoxedVoid, AnyTypeJsonSchema1BoxedBoolean, AnyTypeJsonSchema1BoxedNumber, AnyTypeJsonSchema1BoxedString, AnyTypeJsonSchema1BoxedList, AnyTypeJsonSchema1BoxedMap { + @Nullable Object getData(); } - public static final class AnyTypeJsonSchema1BoxedVoid extends AnyTypeJsonSchema1Boxed { - public final Void data; - private AnyTypeJsonSchema1BoxedVoid(Void data) { - this.data = data; - } + public record AnyTypeJsonSchema1BoxedVoid(Void data) implements AnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyTypeJsonSchema1BoxedBoolean extends AnyTypeJsonSchema1Boxed { - public final boolean data; - private AnyTypeJsonSchema1BoxedBoolean(boolean data) { - this.data = data; - } + public record AnyTypeJsonSchema1BoxedBoolean(boolean data) implements AnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyTypeJsonSchema1BoxedNumber extends AnyTypeJsonSchema1Boxed { - public final Number data; - private AnyTypeJsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record AnyTypeJsonSchema1BoxedNumber(Number data) implements AnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyTypeJsonSchema1BoxedString extends AnyTypeJsonSchema1Boxed { - public final String data; - private AnyTypeJsonSchema1BoxedString(String data) { - this.data = data; - } + public record AnyTypeJsonSchema1BoxedString(String data) implements AnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyTypeJsonSchema1BoxedList extends AnyTypeJsonSchema1Boxed { - public final FrozenList<@Nullable Object> data; - private AnyTypeJsonSchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record AnyTypeJsonSchema1BoxedList(FrozenList<@Nullable Object> data) implements AnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class AnyTypeJsonSchema1BoxedMap extends AnyTypeJsonSchema1Boxed { - public final FrozenMap<@Nullable Object> data; - private AnyTypeJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record AnyTypeJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) implements AnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class AnyTypeJsonSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AnyTypeJsonSchema1BoxedList>, MapSchemaValidator, AnyTypeJsonSchema1BoxedMap> { + public static class AnyTypeJsonSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, AnyTypeJsonSchema1BoxedList>, MapSchemaValidator, AnyTypeJsonSchema1BoxedMap> { private static @Nullable AnyTypeJsonSchema1 instance = null; protected AnyTypeJsonSchema1() { @@ -192,11 +168,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castItem = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(castItem); i += 1; @@ -227,11 +203,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castValue = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, castValue); } @@ -291,25 +267,50 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid public AnyTypeJsonSchema1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyTypeJsonSchema1BoxedVoid(validate(arg, configuration)); } + @Override public AnyTypeJsonSchema1BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyTypeJsonSchema1BoxedBoolean(validate(arg, configuration)); } + @Override public AnyTypeJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyTypeJsonSchema1BoxedNumber(validate(arg, configuration)); } + @Override public AnyTypeJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyTypeJsonSchema1BoxedString(validate(arg, configuration)); } + @Override public AnyTypeJsonSchema1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyTypeJsonSchema1BoxedList(validate(arg, configuration)); } + @Override public AnyTypeJsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new AnyTypeJsonSchema1BoxedMap(validate(arg, configuration)); } + + @Override + public AnyTypeJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java index 9cb93203682..2cceae9d49f 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java @@ -18,20 +18,16 @@ import java.util.Set; public class BooleanJsonSchema { - public static abstract sealed class BooleanJsonSchema1Boxed permits BooleanJsonSchema1BoxedBoolean { - public abstract @Nullable Object data(); + public sealed interface BooleanJsonSchema1Boxed permits BooleanJsonSchema1BoxedBoolean { + @Nullable Object getData(); } - public static final class BooleanJsonSchema1BoxedBoolean extends BooleanJsonSchema1Boxed { - public final boolean data; - private BooleanJsonSchema1BoxedBoolean(boolean data) { - this.data = data; - } + public record BooleanJsonSchema1BoxedBoolean(boolean data) implements BooleanJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class BooleanJsonSchema1 extends JsonSchema implements BooleanSchemaValidator { + public static class BooleanJsonSchema1 extends JsonSchema implements BooleanSchemaValidator { private static @Nullable BooleanJsonSchema1 instance = null; protected BooleanJsonSchema1() { @@ -80,5 +76,14 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V public BooleanJsonSchema1BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new BooleanJsonSchema1BoxedBoolean(validate(arg, configuration)); } + + @Override + public BooleanJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java index 48da817d9b1..15b5ca67f26 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java @@ -19,21 +19,17 @@ import java.util.Set; public class DateJsonSchema { - public static abstract sealed class DateJsonSchema1Boxed permits DateJsonSchema1BoxedString { - public abstract @Nullable Object data(); + public sealed interface DateJsonSchema1Boxed permits DateJsonSchema1BoxedString { + @Nullable Object getData(); } - public static final class DateJsonSchema1BoxedString extends DateJsonSchema1Boxed { - public final String data; - private DateJsonSchema1BoxedString(String data) { - this.data = data; - } + public record DateJsonSchema1BoxedString(String data) implements DateJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class DateJsonSchema1 extends JsonSchema implements StringSchemaValidator { + public static class DateJsonSchema1 extends JsonSchema implements StringSchemaValidator { private static @Nullable DateJsonSchema1 instance = null; protected DateJsonSchema1() { @@ -87,5 +83,13 @@ public String validate(LocalDate arg, SchemaConfiguration configuration) throws public DateJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DateJsonSchema1BoxedString(validate(arg, configuration)); } + + @Override + public DateJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java index 9e048ab2c07..e695f3c2ac9 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java @@ -19,21 +19,17 @@ import java.util.Set; public class DateTimeJsonSchema { - public static abstract sealed class DateTimeJsonSchema1Boxed permits DateTimeJsonSchema1BoxedString { - public abstract @Nullable Object data(); + public sealed interface DateTimeJsonSchema1Boxed permits DateTimeJsonSchema1BoxedString { + @Nullable Object getData(); } - public static final class DateTimeJsonSchema1BoxedString extends DateTimeJsonSchema1Boxed { - public final String data; - private DateTimeJsonSchema1BoxedString(String data) { - this.data = data; - } + public record DateTimeJsonSchema1BoxedString(String data) implements DateTimeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class DateTimeJsonSchema1 extends JsonSchema implements StringSchemaValidator { + public static class DateTimeJsonSchema1 extends JsonSchema implements StringSchemaValidator { private static @Nullable DateTimeJsonSchema1 instance = null; protected DateTimeJsonSchema1() { @@ -87,5 +83,13 @@ public String validate(ZonedDateTime arg, SchemaConfiguration configuration) thr public DateTimeJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DateTimeJsonSchema1BoxedString(validate(arg, configuration)); } + + @Override + public DateTimeJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java index af820a6b251..f961e94f802 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java @@ -18,21 +18,17 @@ import java.util.Set; public class DecimalJsonSchema { - public static abstract sealed class DecimalJsonSchema1Boxed permits DecimalJsonSchema1BoxedString { - public abstract @Nullable Object data(); + public sealed interface DecimalJsonSchema1Boxed permits DecimalJsonSchema1BoxedString { + @Nullable Object getData(); } - public static final class DecimalJsonSchema1BoxedString extends DecimalJsonSchema1Boxed { - public final String data; - private DecimalJsonSchema1BoxedString(String data) { - this.data = data; - } + public record DecimalJsonSchema1BoxedString(String data) implements DecimalJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class DecimalJsonSchema1 extends JsonSchema implements StringSchemaValidator { + public static class DecimalJsonSchema1 extends JsonSchema implements StringSchemaValidator { private static @Nullable DecimalJsonSchema1 instance = null; protected DecimalJsonSchema1() { @@ -80,5 +76,13 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val public DecimalJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DecimalJsonSchema1BoxedString(validate(arg, configuration)); } + + @Override + public DecimalJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java index 8219f3ca213..56f7894f670 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java @@ -18,21 +18,17 @@ import java.util.Set; public class DoubleJsonSchema { - public static abstract sealed class DoubleJsonSchema1Boxed permits DoubleJsonSchema1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface DoubleJsonSchema1Boxed permits DoubleJsonSchema1BoxedNumber { + @Nullable Object getData(); } - public static final class DoubleJsonSchema1BoxedNumber extends DoubleJsonSchema1Boxed { - public final Number data; - private DoubleJsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record DoubleJsonSchema1BoxedNumber(Number data) implements DoubleJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class DoubleJsonSchema1 extends JsonSchema implements NumberSchemaValidator { + public static class DoubleJsonSchema1 extends JsonSchema implements NumberSchemaValidator { private static @Nullable DoubleJsonSchema1 instance = null; protected DoubleJsonSchema1() { @@ -84,5 +80,13 @@ public double validate(double arg, SchemaConfiguration configuration) { public DoubleJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new DoubleJsonSchema1BoxedNumber(validate(arg, configuration)); } + + @Override + public DoubleJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java index 42e3806e845..65221627b46 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java @@ -18,21 +18,17 @@ import java.util.Set; public class FloatJsonSchema { - public static abstract sealed class FloatJsonSchema1Boxed permits FloatJsonSchema1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface FloatJsonSchema1Boxed permits FloatJsonSchema1BoxedNumber { + @Nullable Object getData(); } - public static final class FloatJsonSchema1BoxedNumber extends FloatJsonSchema1Boxed { - public final Number data; - private FloatJsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record FloatJsonSchema1BoxedNumber(Number data) implements FloatJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class FloatJsonSchema1 extends JsonSchema implements NumberSchemaValidator { + public static class FloatJsonSchema1 extends JsonSchema implements NumberSchemaValidator { private static @Nullable FloatJsonSchema1 instance = null; protected FloatJsonSchema1() { @@ -84,5 +80,13 @@ public float validate(float arg, SchemaConfiguration configuration) { public FloatJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new FloatJsonSchema1BoxedNumber(validate(arg, configuration)); } + + @Override + public FloatJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java index c9ae84e53f4..836fa1db724 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java @@ -18,21 +18,17 @@ import java.util.Set; public class Int32JsonSchema { - public static abstract sealed class Int32JsonSchema1Boxed permits Int32JsonSchema1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface Int32JsonSchema1Boxed permits Int32JsonSchema1BoxedNumber { + @Nullable Object getData(); } - public static final class Int32JsonSchema1BoxedNumber extends Int32JsonSchema1Boxed { - public final Number data; - private Int32JsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record Int32JsonSchema1BoxedNumber(Number data) implements Int32JsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Int32JsonSchema1 extends JsonSchema implements NumberSchemaValidator { + public static class Int32JsonSchema1 extends JsonSchema implements NumberSchemaValidator { private static @Nullable Int32JsonSchema1 instance = null; protected Int32JsonSchema1() { @@ -91,5 +87,13 @@ public float validate(float arg, SchemaConfiguration configuration) throws Valid public Int32JsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Int32JsonSchema1BoxedNumber(validate(arg, configuration)); } + + @Override + public Int32JsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java index e74999992ef..da3f9d8d5f7 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java @@ -18,21 +18,17 @@ import java.util.Set; public class Int64JsonSchema { - public static abstract sealed class Int64JsonSchema1Boxed permits Int64JsonSchema1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface Int64JsonSchema1Boxed permits Int64JsonSchema1BoxedNumber { + @Nullable Object getData(); } - public static final class Int64JsonSchema1BoxedNumber extends Int64JsonSchema1Boxed { - public final Number data; - private Int64JsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record Int64JsonSchema1BoxedNumber(Number data) implements Int64JsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class Int64JsonSchema1 extends JsonSchema implements NumberSchemaValidator { + public static class Int64JsonSchema1 extends JsonSchema implements NumberSchemaValidator { private static @Nullable Int64JsonSchema1 instance = null; protected Int64JsonSchema1() { @@ -101,5 +97,13 @@ public double validate(double arg, SchemaConfiguration configuration) throws Val public Int64JsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new Int64JsonSchema1BoxedNumber(validate(arg, configuration)); } + + @Override + public Int64JsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java index 42568a55f34..6205c5b4380 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java @@ -18,21 +18,17 @@ import java.util.Set; public class IntJsonSchema { - public static abstract sealed class IntJsonSchema1Boxed permits IntJsonSchema1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface IntJsonSchema1Boxed permits IntJsonSchema1BoxedNumber { + @Nullable Object getData(); } - public static final class IntJsonSchema1BoxedNumber extends IntJsonSchema1Boxed { - public final Number data; - private IntJsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record IntJsonSchema1BoxedNumber(Number data) implements IntJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class IntJsonSchema1 extends JsonSchema implements NumberSchemaValidator { + public static class IntJsonSchema1 extends JsonSchema implements NumberSchemaValidator { private static @Nullable IntJsonSchema1 instance = null; protected IntJsonSchema1() { @@ -101,5 +97,13 @@ public double validate(double arg, SchemaConfiguration configuration) throws Val public IntJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new IntJsonSchema1BoxedNumber(validate(arg, configuration)); } + + @Override + public IntJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java index 855e63d6573..7ebb3106467 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java @@ -21,21 +21,17 @@ import java.util.Set; public class ListJsonSchema { - public static abstract sealed class ListJsonSchema1Boxed permits ListJsonSchema1BoxedList { - public abstract @Nullable Object data(); + public sealed interface ListJsonSchema1Boxed permits ListJsonSchema1BoxedList { + @Nullable Object getData(); } - public static final class ListJsonSchema1BoxedList extends ListJsonSchema1Boxed { - public final FrozenList<@Nullable Object> data; - private ListJsonSchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record ListJsonSchema1BoxedList(FrozenList<@Nullable Object> data) implements ListJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class ListJsonSchema1 extends JsonSchema implements ListSchemaValidator, ListJsonSchema1BoxedList> { + public static class ListJsonSchema1 extends JsonSchema implements ListSchemaValidator, ListJsonSchema1BoxedList> { private static @Nullable ListJsonSchema1 instance = null; protected ListJsonSchema1() { @@ -58,11 +54,11 @@ public static ListJsonSchema1 getInstance() { for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castItem = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(castItem); i += 1; @@ -101,5 +97,13 @@ public static ListJsonSchema1 getInstance() { public ListJsonSchema1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new ListJsonSchema1BoxedList(validate(arg, configuration)); } + + @Override + public ListJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java index 568471e3c8d..47e141dac53 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java @@ -22,21 +22,17 @@ import java.util.Set; public class MapJsonSchema { - public static abstract sealed class MapJsonSchema1Boxed permits MapJsonSchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface MapJsonSchema1Boxed permits MapJsonSchema1BoxedMap { + @Nullable Object getData(); } - public static final class MapJsonSchema1BoxedMap extends MapJsonSchema1Boxed { - public final FrozenMap<@Nullable Object> data; - private MapJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record MapJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) implements MapJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class MapJsonSchema1 extends JsonSchema implements MapSchemaValidator, MapJsonSchema1BoxedMap> { + public static class MapJsonSchema1 extends JsonSchema implements MapSchemaValidator, MapJsonSchema1BoxedMap> { private static @Nullable MapJsonSchema1 instance = null; protected MapJsonSchema1() { @@ -64,11 +60,11 @@ public static MapJsonSchema1 getInstance() { List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castValue = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, castValue); } @@ -105,5 +101,13 @@ public static MapJsonSchema1 getInstance() { public MapJsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new MapJsonSchema1BoxedMap(validate(arg, configuration)); } + + @Override + public MapJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java index 705bb7aa6b9..de1ed91b0cd 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java @@ -31,71 +31,47 @@ import java.util.UUID; public class NotAnyTypeJsonSchema { - public static abstract sealed class NotAnyTypeJsonSchema1Boxed permits NotAnyTypeJsonSchema1BoxedVoid, NotAnyTypeJsonSchema1BoxedBoolean, NotAnyTypeJsonSchema1BoxedNumber, NotAnyTypeJsonSchema1BoxedString, NotAnyTypeJsonSchema1BoxedList, NotAnyTypeJsonSchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface NotAnyTypeJsonSchema1Boxed permits NotAnyTypeJsonSchema1BoxedVoid, NotAnyTypeJsonSchema1BoxedBoolean, NotAnyTypeJsonSchema1BoxedNumber, NotAnyTypeJsonSchema1BoxedString, NotAnyTypeJsonSchema1BoxedList, NotAnyTypeJsonSchema1BoxedMap { + @Nullable Object getData(); } - public static final class NotAnyTypeJsonSchema1BoxedVoid extends NotAnyTypeJsonSchema1Boxed { - public final Void data; - private NotAnyTypeJsonSchema1BoxedVoid(Void data) { - this.data = data; - } + public record NotAnyTypeJsonSchema1BoxedVoid(Void data) implements NotAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotAnyTypeJsonSchema1BoxedBoolean extends NotAnyTypeJsonSchema1Boxed { - public final boolean data; - private NotAnyTypeJsonSchema1BoxedBoolean(boolean data) { - this.data = data; - } + public record NotAnyTypeJsonSchema1BoxedBoolean(boolean data) implements NotAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotAnyTypeJsonSchema1BoxedNumber extends NotAnyTypeJsonSchema1Boxed { - public final Number data; - private NotAnyTypeJsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record NotAnyTypeJsonSchema1BoxedNumber(Number data) implements NotAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotAnyTypeJsonSchema1BoxedString extends NotAnyTypeJsonSchema1Boxed { - public final String data; - private NotAnyTypeJsonSchema1BoxedString(String data) { - this.data = data; - } + public record NotAnyTypeJsonSchema1BoxedString(String data) implements NotAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotAnyTypeJsonSchema1BoxedList extends NotAnyTypeJsonSchema1Boxed { - public final FrozenList<@Nullable Object> data; - private NotAnyTypeJsonSchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record NotAnyTypeJsonSchema1BoxedList(FrozenList<@Nullable Object> data) implements NotAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class NotAnyTypeJsonSchema1BoxedMap extends NotAnyTypeJsonSchema1Boxed { - public final FrozenMap<@Nullable Object> data; - private NotAnyTypeJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record NotAnyTypeJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) implements NotAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class NotAnyTypeJsonSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, NotAnyTypeJsonSchema1BoxedList>, MapSchemaValidator, NotAnyTypeJsonSchema1BoxedMap> { + public static class NotAnyTypeJsonSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, NotAnyTypeJsonSchema1BoxedList>, MapSchemaValidator, NotAnyTypeJsonSchema1BoxedMap> { private static @Nullable NotAnyTypeJsonSchema1 instance = null; protected NotAnyTypeJsonSchema1() { @@ -194,11 +170,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castItem = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(castItem); i += 1; @@ -229,11 +205,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castValue = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, castValue); } @@ -293,25 +269,50 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid public NotAnyTypeJsonSchema1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NotAnyTypeJsonSchema1BoxedVoid(validate(arg, configuration)); } + @Override public NotAnyTypeJsonSchema1BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NotAnyTypeJsonSchema1BoxedBoolean(validate(arg, configuration)); } + @Override public NotAnyTypeJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NotAnyTypeJsonSchema1BoxedNumber(validate(arg, configuration)); } + @Override public NotAnyTypeJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NotAnyTypeJsonSchema1BoxedString(validate(arg, configuration)); } + @Override public NotAnyTypeJsonSchema1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NotAnyTypeJsonSchema1BoxedList(validate(arg, configuration)); } + @Override public NotAnyTypeJsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NotAnyTypeJsonSchema1BoxedMap(validate(arg, configuration)); } + + @Override + public NotAnyTypeJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java index 5882a7f23e5..d028dbf295e 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java @@ -18,21 +18,17 @@ import java.util.Set; public class NullJsonSchema { - public static abstract sealed class NullJsonSchema1Boxed permits NullJsonSchema1BoxedVoid { - public abstract @Nullable Object data(); + public sealed interface NullJsonSchema1Boxed permits NullJsonSchema1BoxedVoid { + @Nullable Object getData(); } - public static final class NullJsonSchema1BoxedVoid extends NullJsonSchema1Boxed { - public final Void data; - private NullJsonSchema1BoxedVoid(Void data) { - this.data = data; - } + public record NullJsonSchema1BoxedVoid(Void data) implements NullJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class NullJsonSchema1 extends JsonSchema implements NullSchemaValidator { + public static class NullJsonSchema1 extends JsonSchema implements NullSchemaValidator { private static @Nullable NullJsonSchema1 instance = null; protected NullJsonSchema1() { @@ -79,5 +75,14 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat public NullJsonSchema1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NullJsonSchema1BoxedVoid(validate(arg, configuration)); } + + @Override + public NullJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java index 1340dcc4420..5c33b047d95 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java @@ -18,21 +18,17 @@ import java.util.Set; public class NumberJsonSchema { - public static abstract sealed class NumberJsonSchema1Boxed permits NumberJsonSchema1BoxedNumber { - public abstract @Nullable Object data(); + public sealed interface NumberJsonSchema1Boxed permits NumberJsonSchema1BoxedNumber { + @Nullable Object getData(); } - public static final class NumberJsonSchema1BoxedNumber extends NumberJsonSchema1Boxed { - public final Number data; - private NumberJsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record NumberJsonSchema1BoxedNumber(Number data) implements NumberJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class NumberJsonSchema1 extends JsonSchema implements NumberSchemaValidator { + public static class NumberJsonSchema1 extends JsonSchema implements NumberSchemaValidator { private static @Nullable NumberJsonSchema1 instance = null; protected NumberJsonSchema1() { @@ -100,5 +96,13 @@ public double validate(double arg, SchemaConfiguration configuration) { public NumberJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new NumberJsonSchema1BoxedNumber(validate(arg, configuration)); } + + @Override + public NumberJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java index 2cd0e21f94d..749f5faba63 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java @@ -21,20 +21,16 @@ import java.util.UUID; public class StringJsonSchema { - public static abstract sealed class StringJsonSchema1Boxed permits StringJsonSchema1BoxedString { - public abstract @Nullable Object data(); + public sealed interface StringJsonSchema1Boxed permits StringJsonSchema1BoxedString { + @Nullable Object getData(); } - public static final class StringJsonSchema1BoxedString extends StringJsonSchema1Boxed { - public final String data; - private StringJsonSchema1BoxedString(String data) { - this.data = data; - } + public record StringJsonSchema1BoxedString(String data) implements StringJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class StringJsonSchema1 extends JsonSchema implements StringSchemaValidator { + public static class StringJsonSchema1 extends JsonSchema implements StringSchemaValidator { private static @Nullable StringJsonSchema1 instance = null; protected StringJsonSchema1() { @@ -99,5 +95,13 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid public StringJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new StringJsonSchema1BoxedString(validate(arg, configuration)); } + + @Override + public StringJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java index 2506b53a958..c2087929db7 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java @@ -19,21 +19,17 @@ import java.util.UUID; public class UuidJsonSchema { - public static abstract sealed class UuidJsonSchema1Boxed permits UuidJsonSchema1BoxedString { - public abstract @Nullable Object data(); + public sealed interface UuidJsonSchema1Boxed permits UuidJsonSchema1BoxedString { + @Nullable Object getData(); } - public static final class UuidJsonSchema1BoxedString extends UuidJsonSchema1Boxed { - public final String data; - private UuidJsonSchema1BoxedString(String data) { - this.data = data; - } + public record UuidJsonSchema1BoxedString(String data) implements UuidJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class UuidJsonSchema1 extends JsonSchema implements StringSchemaValidator { + public static class UuidJsonSchema1 extends JsonSchema implements StringSchemaValidator { private static @Nullable UuidJsonSchema1 instance = null; protected UuidJsonSchema1() { @@ -87,5 +83,13 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid public UuidJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UuidJsonSchema1BoxedString(validate(arg, configuration)); } + + @Override + public UuidJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidator.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidator.java index 2548452a115..64d9f476798 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidator.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidator.java @@ -43,7 +43,7 @@ public class AdditionalPropertiesValidator implements KeywordValidator { data.validationMetadata().validatedPathToSchemas(), data.validationMetadata().seenClasses() ); - JsonSchema addPropsSchema = JsonSchemaFactory.getInstance(additionalProperties); + JsonSchema addPropsSchema = JsonSchemaFactory.getInstance(additionalProperties); if (propValidationMetadata.validationRanEarlier(addPropsSchema)) { // todo add_deeper_validated_schemas continue; diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AllOfValidator.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AllOfValidator.java index 583017ea6b5..eb6bcf21d4a 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AllOfValidator.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AllOfValidator.java @@ -11,8 +11,8 @@ public class AllOfValidator implements KeywordValidator { return null; } PathToSchemasMap pathToSchemas = new PathToSchemasMap(); - for(Class allOfClass: allOf) { - JsonSchema allOfSchema = JsonSchemaFactory.getInstance(allOfClass); + for(Class> allOfClass: allOf) { + JsonSchema allOfSchema = JsonSchemaFactory.getInstance(allOfClass); PathToSchemasMap otherPathToSchemas = JsonSchema.validate(allOfSchema, data.arg(), data.validationMetadata()); pathToSchemas.update(otherPathToSchemas); } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AnyOfValidator.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AnyOfValidator.java index 062fa2eecdc..d466518d3fe 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AnyOfValidator.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/AnyOfValidator.java @@ -16,8 +16,8 @@ public class AnyOfValidator implements KeywordValidator { return null; } PathToSchemasMap pathToSchemas = new PathToSchemasMap(); - List> validatedAnyOfClasses = new ArrayList<>(); - for(Class anyOfClass: anyOf) { + List>> validatedAnyOfClasses = new ArrayList<>(); + for(Class> anyOfClass: anyOf) { if (anyOfClass == data.schema().getClass()) { /* optimistically assume that schema will pass validation @@ -27,7 +27,7 @@ public class AnyOfValidator implements KeywordValidator { continue; } try { - JsonSchema anyOfSchema = JsonSchemaFactory.getInstance(anyOfClass); + JsonSchema anyOfSchema = JsonSchemaFactory.getInstance(anyOfClass); PathToSchemasMap otherPathToSchemas = JsonSchema.validate(anyOfSchema, data.arg(), data.validationMetadata()); validatedAnyOfClasses.add(anyOfClass); pathToSchemas.update(otherPathToSchemas); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/DependentSchemasValidator.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/DependentSchemasValidator.java index 940157d3b48..e329529fe8a 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/DependentSchemasValidator.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/DependentSchemasValidator.java @@ -25,13 +25,13 @@ public class DependentSchemasValidator implements KeywordValidator { presentProperties.add((String) key); } } - for(Map.Entry> entry: dependentSchemas.entrySet()) { + for(Map.Entry>> entry: dependentSchemas.entrySet()) { String propName = entry.getKey(); if (!presentProperties.contains(propName)) { continue; } - Class dependentSchemaClass = entry.getValue(); - JsonSchema dependentSchema = JsonSchemaFactory.getInstance(dependentSchemaClass); + Class> dependentSchemaClass = entry.getValue(); + JsonSchema dependentSchema = JsonSchemaFactory.getInstance(dependentSchemaClass); PathToSchemasMap otherPathToSchemas = JsonSchema.validate(dependentSchema, mapArg, data.validationMetadata()); pathToSchemas.update(otherPathToSchemas); } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ElseValidator.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ElseValidator.java index b0ba9ecbc0a..3f50d9326c4 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ElseValidator.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ElseValidator.java @@ -22,7 +22,7 @@ public class ElseValidator implements KeywordValidator { // if validation is true return null; } - JsonSchema elseSchemaInstance = JsonSchemaFactory.getInstance(elseSchema); + JsonSchema elseSchemaInstance = JsonSchemaFactory.getInstance(elseSchema); PathToSchemasMap pathToSchemas = new PathToSchemasMap(); var elsePathToSchemas = JsonSchema.validate(elseSchemaInstance, data.arg(), data.validationMetadata()); // todo capture validation error and describe it as an else error? diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ItemsValidator.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ItemsValidator.java index 5bd194d47a9..1b03c0b3094 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ItemsValidator.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ItemsValidator.java @@ -22,7 +22,7 @@ public class ItemsValidator implements KeywordValidator { } PathToSchemasMap pathToSchemas = new PathToSchemasMap(); int minIndex = data.schema().prefixItems != null ? data.schema().prefixItems.size() : 0; - JsonSchema itemsSchema = JsonSchemaFactory.getInstance(items); + JsonSchema itemsSchema = JsonSchemaFactory.getInstance(items); for(int i = minIndex; i < listArg.size(); i++) { List itemPathToItem = new ArrayList<>(data.validationMetadata().pathToItem()); itemPathToItem.add(i); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchema.java index 10d636e6b9d..beb7460b86c 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchema.java @@ -17,11 +17,11 @@ import java.util.UUID; import java.util.regex.Pattern; -public abstract class JsonSchema { +public abstract class JsonSchema { public final @Nullable Set> type; public final @Nullable String format; - public final @Nullable Class items; - public final @Nullable Map> properties; + public final @Nullable Class> items; + public final @Nullable Map>> properties; public final @Nullable Set required; public final @Nullable Number exclusiveMaximum; public final @Nullable Number exclusiveMinimum; @@ -34,11 +34,11 @@ public abstract class JsonSchema { public final @Nullable Number maximum; public final @Nullable Number minimum; public final @Nullable BigDecimal multipleOf; - public final @Nullable Class additionalProperties; - public final @Nullable List> allOf; - public final @Nullable List> anyOf; - public final @Nullable List> oneOf; - public final @Nullable Class not; + public final @Nullable Class> additionalProperties; + public final @Nullable List>> allOf; + public final @Nullable List>> anyOf; + public final @Nullable List>> oneOf; + public final @Nullable Class> not; public final @Nullable Boolean uniqueItems; public final @Nullable Set<@Nullable Object> enumValues; public final @Nullable Pattern pattern; @@ -46,19 +46,19 @@ public abstract class JsonSchema { public final boolean defaultValueSet; public final @Nullable Object constValue; public final boolean constValueSet; - public final @Nullable Class contains; + public final @Nullable Class> contains; public final @Nullable Integer maxContains; public final @Nullable Integer minContains; - public final @Nullable Class propertyNames; + public final @Nullable Class> propertyNames; public final @Nullable Map> dependentRequired; - public final @Nullable Map> dependentSchemas; - public final @Nullable Map> patternProperties; - public final @Nullable List> prefixItems; - public final @Nullable Class ifSchema; - public final @Nullable Class then; - public final @Nullable Class elseSchema; - public final @Nullable Class unevaluatedItems; - public final @Nullable Class unevaluatedProperties; + public final @Nullable Map>> dependentSchemas; + public final @Nullable Map>> patternProperties; + public final @Nullable List>> prefixItems; + public final @Nullable Class> ifSchema; + public final @Nullable Class> then; + public final @Nullable Class> elseSchema; + public final @Nullable Class> unevaluatedItems; + public final @Nullable Class> unevaluatedProperties; private final LinkedHashMap keywordToValidator; protected JsonSchema(JsonSchemaInfo jsonSchemaInfo) { @@ -223,6 +223,7 @@ protected JsonSchema(JsonSchemaInfo jsonSchemaInfo) { public abstract @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) throws InvalidTypeException; public abstract @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException; + public abstract T validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException; private List getContainsPathToSchemas( @Nullable Object arg, @@ -231,7 +232,7 @@ private List getContainsPathToSchemas( if (!(arg instanceof List listArg) || contains == null) { return new ArrayList<>(); } - JsonSchema containsSchema = JsonSchemaFactory.getInstance(contains); + JsonSchema containsSchema = JsonSchemaFactory.getInstance(contains); @Nullable List containsPathToSchemas = new ArrayList<>(); for(int i = 0; i < listArg.size(); i++) { PathToSchemasMap thesePathToSchemas = new PathToSchemasMap(); @@ -279,13 +280,13 @@ private PathToSchemasMap getPatternPropertiesPathToSchemas( validationMetadata.validatedPathToSchemas(), validationMetadata.seenClasses() ); - for (Map.Entry> patternPropEntry: patternProperties.entrySet()) { + for (Map.Entry>> patternPropEntry: patternProperties.entrySet()) { if (!patternPropEntry.getKey().matcher(key).find()) { continue; } - Class patternPropClass = patternPropEntry.getValue(); - JsonSchema patternPropSchema = JsonSchemaFactory.getInstance(patternPropClass); + Class> patternPropClass = patternPropEntry.getValue(); + JsonSchema patternPropSchema = JsonSchemaFactory.getInstance(patternPropClass); PathToSchemasMap otherPathToSchemas = JsonSchema.validate(patternPropSchema, entry.getValue(), propValidationMetadata); pathToSchemas.update(otherPathToSchemas); } @@ -300,7 +301,7 @@ private PathToSchemasMap getIfPathToSchemas( if (ifSchema == null) { return new PathToSchemasMap(); } - JsonSchema ifSchemaInstance = JsonSchemaFactory.getInstance(ifSchema); + JsonSchema ifSchemaInstance = JsonSchemaFactory.getInstance(ifSchema); PathToSchemasMap pathToSchemas = new PathToSchemasMap(); try { var otherPathToSchemas = JsonSchema.validate(ifSchemaInstance, arg, validationMetadata); @@ -310,7 +311,7 @@ private PathToSchemasMap getIfPathToSchemas( } public static PathToSchemasMap validate( - JsonSchema jsonSchema, + JsonSchema jsonSchema, @Nullable Object arg, ValidationMetadata validationMetadata ) throws ValidationException { @@ -361,7 +362,7 @@ public static PathToSchemasMap validate( if (!pathToSchemas.containsKey(pathToItem)) { pathToSchemas.put(validationMetadata.pathToItem(), new LinkedHashMap<>()); } - @Nullable LinkedHashMap schemas = pathToSchemas.get(pathToItem); + @Nullable LinkedHashMap, Void> schemas = pathToSchemas.get(pathToItem); if (schemas != null) { schemas.put(jsonSchema, null); } @@ -467,19 +468,19 @@ public String getNewInstance(String arg, List pathToItem, PathToSchemasM return arg; } - protected static PathToSchemasMap getPathToSchemas(JsonSchema jsonSchema, @Nullable Object arg, ValidationMetadata validationMetadata, Set> pathSet) { + protected static PathToSchemasMap getPathToSchemas(JsonSchema jsonSchema, @Nullable Object arg, ValidationMetadata validationMetadata, Set> pathSet) { PathToSchemasMap pathToSchemasMap = new PathToSchemasMap(); // todo add check of validationMetadata.validationRanEarlier(this) PathToSchemasMap otherPathToSchemas = validate(jsonSchema, arg, validationMetadata); pathToSchemasMap.update(otherPathToSchemas); for (var schemas: pathToSchemasMap.values()) { - JsonSchema firstSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema firstSchema = schemas.entrySet().iterator().next().getKey(); schemas.clear(); schemas.put(firstSchema, null); } pathSet.removeAll(pathToSchemasMap.keySet()); if (!pathSet.isEmpty()) { - LinkedHashMap unsetAnyTypeSchema = new LinkedHashMap<>(); + LinkedHashMap, Void> unsetAnyTypeSchema = new LinkedHashMap<>(); unsetAnyTypeSchema.put(UnsetAnyTypeJsonSchema.UnsetAnyTypeJsonSchema1.getInstance(), null); for (List pathToItem: pathSet) { pathToSchemasMap.put(pathToItem, unsetAnyTypeSchema); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaFactory.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaFactory.java index 7c9b6402f2b..24729ac172d 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaFactory.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaFactory.java @@ -10,10 +10,10 @@ public class JsonSchemaFactory { - static Map, JsonSchema> classToInstance = new HashMap<>(); + static Map>, JsonSchema> classToInstance = new HashMap<>(); - public static V getInstance(Class schemaCls) { - @Nullable JsonSchema cacheInst = classToInstance.get(schemaCls); + public static > V getInstance(Class schemaCls) { + @Nullable JsonSchema cacheInst = classToInstance.get(schemaCls); if (cacheInst != null) { assert schemaCls.isInstance(cacheInst); return schemaCls.cast(cacheInst); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaInfo.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaInfo.java index 8791c1c29ea..0a95fbbae6a 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaInfo.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaInfo.java @@ -18,13 +18,13 @@ public JsonSchemaInfo format(String format) { this.format = format; return this; } - public @Nullable Class items = null; - public JsonSchemaInfo items(Class items) { + public @Nullable Class> items = null; + public JsonSchemaInfo items(Class> items) { this.items = items; return this; } - public @Nullable Map> properties = null; - public JsonSchemaInfo properties(Map> properties) { + public @Nullable Map>> properties = null; + public JsonSchemaInfo properties(Map>> properties) { this.properties = properties; return this; } @@ -88,28 +88,28 @@ public JsonSchemaInfo multipleOf(BigDecimal multipleOf) { this.multipleOf = multipleOf; return this; } - public @Nullable Class additionalProperties; - public JsonSchemaInfo additionalProperties(Class additionalProperties) { + public @Nullable Class> additionalProperties; + public JsonSchemaInfo additionalProperties(Class> additionalProperties) { this.additionalProperties = additionalProperties; return this; } - public @Nullable List> allOf = null; - public JsonSchemaInfo allOf(List> allOf) { + public @Nullable List>> allOf = null; + public JsonSchemaInfo allOf(List>> allOf) { this.allOf = allOf; return this; } - public @Nullable List> anyOf = null; - public JsonSchemaInfo anyOf(List> anyOf) { + public @Nullable List>> anyOf = null; + public JsonSchemaInfo anyOf(List>> anyOf) { this.anyOf = anyOf; return this; } - public @Nullable List> oneOf = null; - public JsonSchemaInfo oneOf(List> oneOf) { + public @Nullable List>> oneOf = null; + public JsonSchemaInfo oneOf(List>> oneOf) { this.oneOf = oneOf; return this; } - public @Nullable Class not = null; - public JsonSchemaInfo not(Class not) { + public @Nullable Class> not = null; + public JsonSchemaInfo not(Class> not) { this.not = not; return this; } @@ -142,8 +142,8 @@ public JsonSchemaInfo constValue(@Nullable Object constValue) { this.constValueSet = true; return this; } - public @Nullable Class contains = null; - public JsonSchemaInfo contains(Class contains) { + public @Nullable Class> contains = null; + public JsonSchemaInfo contains(Class> contains) { this.contains = contains; return this; } @@ -157,8 +157,8 @@ public JsonSchemaInfo minContains(Integer minContains) { this.minContains = minContains; return this; } - public @Nullable Class propertyNames = null; - public JsonSchemaInfo propertyNames(Class propertyNames) { + public @Nullable Class> propertyNames = null; + public JsonSchemaInfo propertyNames(Class> propertyNames) { this.propertyNames = propertyNames; return this; } @@ -167,43 +167,43 @@ public JsonSchemaInfo dependentRequired(Map> dependentRequir this.dependentRequired = dependentRequired; return this; } - public @Nullable Map> dependentSchemas = null; - public JsonSchemaInfo dependentSchemas(Map> dependentSchemas) { + public @Nullable Map>> dependentSchemas = null; + public JsonSchemaInfo dependentSchemas(Map>> dependentSchemas) { this.dependentSchemas = dependentSchemas; return this; } - public @Nullable Map> patternProperties = null; - public JsonSchemaInfo patternProperties(Map> patternProperties) { + public @Nullable Map>> patternProperties = null; + public JsonSchemaInfo patternProperties(Map>> patternProperties) { this.patternProperties = patternProperties; return this; } - public @Nullable List> prefixItems = null; - public JsonSchemaInfo prefixItems(List> prefixItems) { + public @Nullable List>> prefixItems = null; + public JsonSchemaInfo prefixItems(List>> prefixItems) { this.prefixItems = prefixItems; return this; } - public @Nullable Class ifSchema = null; - public JsonSchemaInfo ifSchema(Class ifSchema) { + public @Nullable Class> ifSchema = null; + public JsonSchemaInfo ifSchema(Class> ifSchema) { this.ifSchema = ifSchema; return this; } - public @Nullable Class then = null; - public JsonSchemaInfo then(Class then) { + public @Nullable Class> then = null; + public JsonSchemaInfo then(Class> then) { this.then = then; return this; } - public @Nullable Class elseSchema = null; - public JsonSchemaInfo elseSchema(Class elseSchema) { + public @Nullable Class> elseSchema = null; + public JsonSchemaInfo elseSchema(Class> elseSchema) { this.elseSchema = elseSchema; return this; } - public @Nullable Class unevaluatedItems = null; - public JsonSchemaInfo unevaluatedItems(Class unevaluatedItems) { + public @Nullable Class> unevaluatedItems = null; + public JsonSchemaInfo unevaluatedItems(Class> unevaluatedItems) { this.unevaluatedItems = unevaluatedItems; return this; } - public @Nullable Class unevaluatedProperties = null; - public JsonSchemaInfo unevaluatedProperties(Class unevaluatedProperties) { + public @Nullable Class> unevaluatedProperties = null; + public JsonSchemaInfo unevaluatedProperties(Class> unevaluatedProperties) { this.unevaluatedProperties = unevaluatedProperties; return this; } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/NotValidator.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/NotValidator.java index aa61be1b624..b077e2056a1 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/NotValidator.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/NotValidator.java @@ -14,7 +14,7 @@ public class NotValidator implements KeywordValidator { } PathToSchemasMap pathToSchemas; try { - JsonSchema notSchema = JsonSchemaFactory.getInstance(not); + JsonSchema notSchema = JsonSchemaFactory.getInstance(not); pathToSchemas = JsonSchema.validate(notSchema, data.arg(), data.validationMetadata()); } catch (ValidationException e) { return null; diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/OneOfValidator.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/OneOfValidator.java index f84f7796a8c..3c4f4b5a085 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/OneOfValidator.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/OneOfValidator.java @@ -16,8 +16,8 @@ public class OneOfValidator implements KeywordValidator { return null; } PathToSchemasMap pathToSchemas = new PathToSchemasMap(); - List> validatedOneOfClasses = new ArrayList<>(); - for(Class oneOfClass: oneOf) { + List>> validatedOneOfClasses = new ArrayList<>(); + for(Class> oneOfClass: oneOf) { if (oneOfClass == data.schema().getClass()) { /* optimistically assume that schema will pass validation @@ -27,7 +27,7 @@ public class OneOfValidator implements KeywordValidator { continue; } try { - JsonSchema oneOfSchema = JsonSchemaFactory.getInstance(oneOfClass); + JsonSchema oneOfSchema = JsonSchemaFactory.getInstance(oneOfClass); PathToSchemasMap otherPathToSchemas = JsonSchema.validate(oneOfSchema, data.arg(), data.validationMetadata()); validatedOneOfClasses.add(oneOfClass); pathToSchemas.update(otherPathToSchemas); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PathToSchemasMap.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PathToSchemasMap.java index 6e199334d4c..a3ce89066a2 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PathToSchemasMap.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PathToSchemasMap.java @@ -5,12 +5,12 @@ import java.util.Map; @SuppressWarnings("serial") -public class PathToSchemasMap extends LinkedHashMap, LinkedHashMap> { +public class PathToSchemasMap extends LinkedHashMap, LinkedHashMap, Void>> { public void update(PathToSchemasMap other) { - for (Map.Entry, LinkedHashMap> entry: other.entrySet()) { + for (Map.Entry, LinkedHashMap, Void>> entry: other.entrySet()) { List pathToItem = entry.getKey(); - LinkedHashMap otherSchemas = entry.getValue(); + LinkedHashMap, Void> otherSchemas = entry.getValue(); if (containsKey(pathToItem)) { get(pathToItem).putAll(otherSchemas); } else { diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PrefixItemsValidator.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PrefixItemsValidator.java index 00e5b17607b..237bc250190 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PrefixItemsValidator.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PrefixItemsValidator.java @@ -31,7 +31,7 @@ public class PrefixItemsValidator implements KeywordValidator { data.validationMetadata().validatedPathToSchemas(), data.validationMetadata().seenClasses() ); - JsonSchema itemsSchema = JsonSchemaFactory.getInstance(prefixItems.get(i)); + JsonSchema itemsSchema = JsonSchemaFactory.getInstance(prefixItems.get(i)); PathToSchemasMap otherPathToSchemas = JsonSchema.validate(itemsSchema, listArg.get(i), itemValidationMetadata); pathToSchemas.update(otherPathToSchemas); } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidator.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidator.java index 17bccdd666a..b8ddd6fcb46 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidator.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidator.java @@ -27,7 +27,7 @@ public class PropertiesValidator implements KeywordValidator { presentProperties.add((String) key); } } - for(Map.Entry> entry: properties.entrySet()) { + for(Map.Entry>> entry: properties.entrySet()) { String propName = entry.getKey(); if (!presentProperties.contains(propName)) { continue; @@ -41,8 +41,8 @@ public class PropertiesValidator implements KeywordValidator { data.validationMetadata().validatedPathToSchemas(), data.validationMetadata().seenClasses() ); - Class propClass = entry.getValue(); - JsonSchema propSchema = JsonSchemaFactory.getInstance(propClass); + Class> propClass = entry.getValue(); + JsonSchema propSchema = JsonSchemaFactory.getInstance(propClass); if (propValidationMetadata.validationRanEarlier(propSchema)) { // todo add_deeper_validated_schemas continue; diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertyEntry.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertyEntry.java index aaaede643a0..8261eda6d49 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertyEntry.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertyEntry.java @@ -3,8 +3,8 @@ import java.util.AbstractMap; @SuppressWarnings("serial") -public class PropertyEntry extends AbstractMap.SimpleEntry> { - public PropertyEntry(String key, Class value) { +public class PropertyEntry extends AbstractMap.SimpleEntry>> { + public PropertyEntry(String key, Class> value) { super(key, value); } -} +} \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertyNamesValidator.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertyNamesValidator.java index 55ea80b0382..087cd308b11 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertyNamesValidator.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/PropertyNamesValidator.java @@ -18,7 +18,7 @@ public class PropertyNamesValidator implements KeywordValidator { if (!(data.arg() instanceof Map mapArg)) { return null; } - JsonSchema propertyNamesSchema = JsonSchemaFactory.getInstance(propertyNames); + JsonSchema propertyNamesSchema = JsonSchemaFactory.getInstance(propertyNames); for (Object objKey: mapArg.keySet()) { if (objKey instanceof String key) { List propPathToItem = new ArrayList<>(data.validationMetadata().pathToItem()); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ThenValidator.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ThenValidator.java index ad97e0e554e..bf599bc812f 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ThenValidator.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ThenValidator.java @@ -22,7 +22,7 @@ public class ThenValidator implements KeywordValidator { // if validation is false return null; } - JsonSchema thenSchema = JsonSchemaFactory.getInstance(then); + JsonSchema thenSchema = JsonSchemaFactory.getInstance(then); PathToSchemasMap pathToSchemas = new PathToSchemasMap(); var thenPathToSchemas = JsonSchema.validate(thenSchema, data.arg(), data.validationMetadata()); // todo capture validation error and describe it as an then error? diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnevaluatedItemsValidator.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnevaluatedItemsValidator.java index cfb88550525..8903d0b19a7 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnevaluatedItemsValidator.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnevaluatedItemsValidator.java @@ -26,7 +26,7 @@ public class UnevaluatedItemsValidator implements KeywordValidator { } PathToSchemasMap pathToSchemas = new PathToSchemasMap(); int minIndex = data.schema().prefixItems != null ? data.schema().prefixItems.size() : 0; - JsonSchema unevaluatedItemsSchema = JsonSchemaFactory.getInstance(unevaluatedItems); + JsonSchema unevaluatedItemsSchema = JsonSchemaFactory.getInstance(unevaluatedItems); for(int i = minIndex; i < listArg.size(); i++) { List itemPathToItem = new ArrayList<>(data.validationMetadata().pathToItem()); itemPathToItem.add(i); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnevaluatedPropertiesValidator.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnevaluatedPropertiesValidator.java index abc7f7e86f9..344c0cfab1b 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnevaluatedPropertiesValidator.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnevaluatedPropertiesValidator.java @@ -24,7 +24,7 @@ public class UnevaluatedPropertiesValidator implements KeywordValidator { return null; } PathToSchemasMap pathToSchemas = new PathToSchemasMap(); - JsonSchema unevaluatedPropertiesSchema = JsonSchemaFactory.getInstance(unevaluatedProperties); + JsonSchema unevaluatedPropertiesSchema = JsonSchemaFactory.getInstance(unevaluatedProperties); for(Map.Entry entry: mapArg.entrySet()) { if (!(entry.getKey() instanceof String propName)) { throw new InvalidTypeException("Map keys must be strings"); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java index 90b9e3b1870..1c23a427dd0 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java @@ -19,70 +19,46 @@ import java.util.UUID; public class UnsetAnyTypeJsonSchema { - public static abstract sealed class UnsetAnyTypeJsonSchema1Boxed permits UnsetAnyTypeJsonSchema1BoxedVoid, UnsetAnyTypeJsonSchema1BoxedBoolean, UnsetAnyTypeJsonSchema1BoxedNumber, UnsetAnyTypeJsonSchema1BoxedString, UnsetAnyTypeJsonSchema1BoxedList, UnsetAnyTypeJsonSchema1BoxedMap { - public abstract @Nullable Object data(); + public sealed interface UnsetAnyTypeJsonSchema1Boxed permits UnsetAnyTypeJsonSchema1BoxedVoid, UnsetAnyTypeJsonSchema1BoxedBoolean, UnsetAnyTypeJsonSchema1BoxedNumber, UnsetAnyTypeJsonSchema1BoxedString, UnsetAnyTypeJsonSchema1BoxedList, UnsetAnyTypeJsonSchema1BoxedMap { + @Nullable Object getData(); } - public static final class UnsetAnyTypeJsonSchema1BoxedVoid extends UnsetAnyTypeJsonSchema1Boxed { - public final Void data; - private UnsetAnyTypeJsonSchema1BoxedVoid(Void data) { - this.data = data; - } + public record UnsetAnyTypeJsonSchema1BoxedVoid(Void data) implements UnsetAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnsetAnyTypeJsonSchema1BoxedBoolean extends UnsetAnyTypeJsonSchema1Boxed { - public final boolean data; - private UnsetAnyTypeJsonSchema1BoxedBoolean(boolean data) { - this.data = data; - } + public record UnsetAnyTypeJsonSchema1BoxedBoolean(boolean data) implements UnsetAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnsetAnyTypeJsonSchema1BoxedNumber extends UnsetAnyTypeJsonSchema1Boxed { - public final Number data; - private UnsetAnyTypeJsonSchema1BoxedNumber(Number data) { - this.data = data; - } + public record UnsetAnyTypeJsonSchema1BoxedNumber(Number data) implements UnsetAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnsetAnyTypeJsonSchema1BoxedString extends UnsetAnyTypeJsonSchema1Boxed { - public final String data; - private UnsetAnyTypeJsonSchema1BoxedString(String data) { - this.data = data; - } + public record UnsetAnyTypeJsonSchema1BoxedString(String data) implements UnsetAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnsetAnyTypeJsonSchema1BoxedList extends UnsetAnyTypeJsonSchema1Boxed { - public final FrozenList<@Nullable Object> data; - private UnsetAnyTypeJsonSchema1BoxedList(FrozenList<@Nullable Object> data) { - this.data = data; - } + public record UnsetAnyTypeJsonSchema1BoxedList(FrozenList<@Nullable Object> data) implements UnsetAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static final class UnsetAnyTypeJsonSchema1BoxedMap extends UnsetAnyTypeJsonSchema1Boxed { - public final FrozenMap<@Nullable Object> data; - private UnsetAnyTypeJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record UnsetAnyTypeJsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) implements UnsetAnyTypeJsonSchema1Boxed { @Override - public @Nullable Object data() { + public @Nullable Object getData() { return data; } } - public static class UnsetAnyTypeJsonSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UnsetAnyTypeJsonSchema1BoxedList>, MapSchemaValidator, UnsetAnyTypeJsonSchema1BoxedMap> { + public static class UnsetAnyTypeJsonSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, UnsetAnyTypeJsonSchema1BoxedList>, MapSchemaValidator, UnsetAnyTypeJsonSchema1BoxedMap> { private static @Nullable UnsetAnyTypeJsonSchema1 instance = null; protected UnsetAnyTypeJsonSchema1() { @@ -179,11 +155,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castItem = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); items.add(castItem); i += 1; @@ -214,11 +190,11 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castValue = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, castValue); } @@ -278,25 +254,50 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid public UnsetAnyTypeJsonSchema1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnsetAnyTypeJsonSchema1BoxedVoid(validate(arg, configuration)); } + @Override public UnsetAnyTypeJsonSchema1BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnsetAnyTypeJsonSchema1BoxedBoolean(validate(arg, configuration)); } + @Override public UnsetAnyTypeJsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnsetAnyTypeJsonSchema1BoxedNumber(validate(arg, configuration)); } + @Override public UnsetAnyTypeJsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnsetAnyTypeJsonSchema1BoxedString(validate(arg, configuration)); } + @Override public UnsetAnyTypeJsonSchema1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnsetAnyTypeJsonSchema1BoxedList(validate(arg, configuration)); } + @Override public UnsetAnyTypeJsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { return new UnsetAnyTypeJsonSchema1BoxedMap(validate(arg, configuration)); } + + @Override + public UnsetAnyTypeJsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException, InvalidTypeException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } } \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ValidationData.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ValidationData.java index d5c4f5de75a..1563757d83a 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ValidationData.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ValidationData.java @@ -5,7 +5,7 @@ import java.util.List; public record ValidationData( - JsonSchema schema, + JsonSchema schema, @Nullable Object arg, ValidationMetadata validationMetadata, @Nullable List containsPathToSchemas, @@ -14,7 +14,7 @@ public record ValidationData( @Nullable PathToSchemasMap knownPathToSchemas ) { public ValidationData( - JsonSchema schema, + JsonSchema schema, @Nullable Object arg, ValidationMetadata validationMetadata ) { diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ValidationMetadata.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ValidationMetadata.java index 8d83f3b6207..9756257f507 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ValidationMetadata.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/ValidationMetadata.java @@ -13,8 +13,8 @@ public record ValidationMetadata( Set> seenClasses ) { - public boolean validationRanEarlier(JsonSchema schema) { - @Nullable Map validatedSchemas = validatedPathToSchemas.get(pathToItem); + public boolean validationRanEarlier(JsonSchema schema) { + @Nullable Map, Void> validatedSchemas = validatedPathToSchemas.get(pathToItem); if (validatedSchemas != null && validatedSchemas.containsKey(schema)) { return true; } diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java index 0c618ead730..250d1e0f530 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java @@ -2,7 +2,8 @@ import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.schemas.MapJsonSchema; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.StringJsonSchema; import org.checkerframework.checker.nullness.qual.Nullable; import org.junit.Assert; @@ -11,73 +12,59 @@ import java.net.http.HttpResponse; import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; +import java.util.AbstractMap; import java.util.List; import java.util.Map; import java.util.concurrent.Flow; public final class RequestBodySerializerTest { + public sealed interface SealedMediaType permits ApplicationjsonMediaType, TextplainMediaType {} + public record ApplicationjsonMediaType(AnyTypeJsonSchema.AnyTypeJsonSchema1 schema) implements SealedMediaType {} + public record TextplainMediaType(StringJsonSchema.StringJsonSchema1 schema) implements SealedMediaType {} - public static abstract sealed class SealedRequestBody permits ApplicationjsonRequestBody, TextplainRequestBody {} - public static final class ApplicationjsonRequestBody extends SealedRequestBody implements GenericRequestBody<@Nullable Object> { - private final String contentType; - private final @Nullable Object body; - public ApplicationjsonRequestBody(@Nullable Object body) { - contentType = "application/json"; - this.body = body; - } + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody, TextplainRequestBody {} + public record ApplicationjsonRequestBody(AnyTypeJsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody<@Nullable Object> { @Override public String contentType() { - return contentType; - } - - @Override - public @Nullable Object body() { - return body; + return "application/json"; } } - public static final class TextplainRequestBody extends SealedRequestBody implements GenericRequestBody<@Nullable Object> { - private final String contentType; - private final @Nullable Object body; - public TextplainRequestBody(@Nullable Object body) { - contentType = "text/plain"; - this.body = body; - } + public record TextplainRequestBody(StringJsonSchema.StringJsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody<@Nullable Object> { @Override public String contentType() { - return contentType; - } - - @Override - public @Nullable Object body() { - return body; + return "text/plain"; } } - public static class MyRequestBodySerializer extends RequestBodySerializer { + public static class MyRequestBodySerializer extends RequestBodySerializer { public MyRequestBodySerializer() { - super(Map.of(), true); + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType(AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance())), + new AbstractMap.SimpleEntry<>("text/plain", new TextplainMediaType(StringJsonSchema.StringJsonSchema1.getInstance())) + ), + true); } public SerializedRequestBody serialize(SealedRequestBody requestBody) { if (requestBody instanceof ApplicationjsonRequestBody requestBody0) { - return serialize(requestBody0.contentType(), requestBody0.body()); + return serialize(requestBody0.contentType(), requestBody0.body().getData()); } else { TextplainRequestBody requestBody1 = (TextplainRequestBody) requestBody; - return serialize(requestBody1.contentType(), requestBody1.body()); + return serialize(requestBody1.contentType(), requestBody1.body().getData()); } } } @Test public void testContentTypeIsJson() { - var serializer = new MyRequestBodySerializer(); - Assert.assertTrue(serializer.contentTypeIsJson("application/json")); - Assert.assertTrue(serializer.contentTypeIsJson("application/json; charset=UTF-8")); - Assert.assertTrue(serializer.contentTypeIsJson("application/json-patch+json")); - Assert.assertTrue(serializer.contentTypeIsJson("application/geo+json")); + Assert.assertTrue(RequestBodySerializer.contentTypeIsJson("application/json")); + Assert.assertTrue(RequestBodySerializer.contentTypeIsJson("application/json; charset=UTF-8")); + Assert.assertTrue(RequestBodySerializer.contentTypeIsJson("application/json-patch+json")); + Assert.assertTrue(RequestBodySerializer.contentTypeIsJson("application/geo+json")); - Assert.assertFalse(serializer.contentTypeIsJson("application/octet-stream")); - Assert.assertFalse(serializer.contentTypeIsJson("text/plain")); + Assert.assertFalse(RequestBodySerializer.contentTypeIsJson("application/octet-stream")); + Assert.assertFalse(RequestBodySerializer.contentTypeIsJson("text/plain")); } static final class StringSubscriber implements Flow.Subscriber { @@ -101,63 +88,91 @@ private String getJsonBody(SerializedRequestBody requestBody) { var bodySubscriber = HttpResponse.BodySubscribers.ofString(StandardCharsets.UTF_8); var flowSubscriber = new StringSubscriber(bodySubscriber); requestBody.bodyPublisher.subscribe(flowSubscriber); - return bodySubscriber.getBody().toCompletableFuture().join(); } @Test public void testSerializeApplicationJson() { + SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); var serializer = new MyRequestBodySerializer(); String jsonBody; - SerializedRequestBody requestBody = serializer.serialize(new ApplicationjsonRequestBody(1)); + SerializedRequestBody requestBody = serializer.serialize( + new ApplicationjsonRequestBody( + AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(1, configuration) + ) + ); Assert.assertEquals("application/json", requestBody.contentType); jsonBody = getJsonBody(requestBody); Assert.assertEquals(jsonBody, "1"); - requestBody = serializer.serialize(new ApplicationjsonRequestBody(3.14)); + requestBody = serializer.serialize( + new ApplicationjsonRequestBody( + AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(3.14, configuration) + ) + ); jsonBody = getJsonBody(requestBody); Assert.assertEquals(jsonBody, "3.14"); - requestBody = serializer.serialize(new ApplicationjsonRequestBody(null)); + requestBody = serializer.serialize( + new ApplicationjsonRequestBody( + AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox((Void) null, configuration) + ) + ); jsonBody = getJsonBody(requestBody); Assert.assertEquals(jsonBody, "null"); - requestBody = serializer.serialize(new ApplicationjsonRequestBody(true)); + requestBody = serializer.serialize( + new ApplicationjsonRequestBody( + AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(true, configuration) + ) + ); jsonBody = getJsonBody(requestBody); Assert.assertEquals(jsonBody, "true"); - requestBody = serializer.serialize(new ApplicationjsonRequestBody(false)); + requestBody = serializer.serialize( + new ApplicationjsonRequestBody( + AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(false, configuration) + ) + ); jsonBody = getJsonBody(requestBody); Assert.assertEquals(jsonBody, "false"); - - requestBody = serializer.serialize(new ApplicationjsonRequestBody(List.of())); + requestBody = serializer.serialize( + new ApplicationjsonRequestBody( + AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(List.of(), configuration) + ) + ); jsonBody = getJsonBody(requestBody); Assert.assertEquals(jsonBody, "[]"); - requestBody = serializer.serialize(new ApplicationjsonRequestBody(Map.of())); + requestBody = serializer.serialize( + new ApplicationjsonRequestBody( + AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(Map.of(), configuration) + ) + ); jsonBody = getJsonBody(requestBody); Assert.assertEquals(jsonBody, "{}"); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); - MapJsonSchema.MapJsonSchema1 mapJsonSchema = MapJsonSchema.MapJsonSchema1.getInstance(); - var frozenMap = mapJsonSchema.validate(Map.of("k1", "v1", "k2", "v2"), configuration); - requestBody = serializer.serialize(new ApplicationjsonRequestBody(frozenMap)); + requestBody = serializer.serialize( + new ApplicationjsonRequestBody( + AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance().validateAndBox(Map.of("k1", "v1", "k2", "v2"), configuration) + ) + ); jsonBody = getJsonBody(requestBody); Assert.assertEquals(jsonBody, "{\"k2\":\"v2\",\"k1\":\"v1\"}"); } @Test public void testSerializeTextPlain() { + SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); var serializer = new MyRequestBodySerializer(); - SerializedRequestBody requestBody = serializer.serialize(new TextplainRequestBody("a")); + SerializedRequestBody requestBody = serializer.serialize( + new TextplainRequestBody( + StringJsonSchema.StringJsonSchema1.getInstance().validateAndBox("a", configuration) + ) + ); Assert.assertEquals("text/plain", requestBody.contentType); String textBody = getJsonBody(requestBody); Assert.assertEquals(textBody, "a"); - - Assert.assertThrows( - RuntimeException.class, - () -> serializer.serialize(new TextplainRequestBody(null)) - ); } } \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java new file mode 100644 index 00000000000..23c6e53af60 --- /dev/null +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java @@ -0,0 +1,244 @@ +package org.openapijsonschematools.client.response; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.ToNumberPolicy; +import org.junit.Assert; +import org.junit.Test; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +import javax.net.ssl.SSLSession; +import java.net.URI; +import java.net.http.HttpClient; +import java.net.http.HttpHeaders; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.nio.charset.StandardCharsets; +import java.util.List; +import java.util.Map; +import java.util.Optional; +import java.util.function.BiPredicate; + +public class ResponseDeserializerTest { + private static final Gson gson = new GsonBuilder() + .setObjectToNumberStrategy(ToNumberPolicy.LONG_OR_DOUBLE) + .setNumberToNumberStrategy(ToNumberPolicy.LONG_OR_DOUBLE) + .create(); + public sealed interface SealedResponseBody permits ApplicationjsonBody, TextplainBody { } + + public record ApplicationjsonBody(AnyTypeJsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } + + public record TextplainBody(StringJsonSchema.StringJsonSchema1Boxed body) implements SealedResponseBody {} + + public sealed interface SealedMediaType permits ApplicationjsonMediatype, TextplainMediatype { } + + public record ApplicationjsonMediatype(AnyTypeJsonSchema.AnyTypeJsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediatype() { + this(AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public record TextplainMediatype(StringJsonSchema.StringJsonSchema1 schema) implements SealedMediaType, MediaType { + public TextplainMediatype() { + this(StringJsonSchema.StringJsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class MyResponseDeserializer extends ResponseDeserializer { + + public MyResponseDeserializer() { + super(Map.of("application/json", new ApplicationjsonMediatype(), "text/plain", new TextplainMediatype())); + } + + @Override + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + SealedMediaType mediaType = content.get(contentType); + if (mediaType == null) { + throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); + } + if (mediaType instanceof ApplicationjsonMediatype thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonBody(deserializedBody); + } else { + TextplainMediatype thisMediaType = (TextplainMediatype) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new TextplainBody(deserializedBody); + } + } + + @Override + protected Void getHeaders(HttpHeaders headers) { + return null; + } + } + + public static class BytesHttpResponse implements HttpResponse { + private final byte[] body; + private final HttpHeaders headers; + private final HttpRequest request; + private final URI uri; + private final HttpClient.Version version; + public BytesHttpResponse(byte[] body, String contentType) { + this.body = body; + BiPredicate headerFilter = (key, val) -> true; + headers = HttpHeaders.of(Map.of("Content-Type", List.of(contentType)), headerFilter); + uri = URI.create("https://abc.com/"); + request = HttpRequest.newBuilder().uri(uri).build(); + version = HttpClient.Version.HTTP_2; + } + + @Override + public int statusCode() { + return 202; + } + + @Override + public HttpRequest request() { + return request; + } + + @Override + public Optional> previousResponse() { + return Optional.empty(); + } + + @Override + public HttpHeaders headers() { + return headers; + } + + @Override + public byte[] body() { + return body; + } + + @Override + public Optional sslSession() { + return Optional.empty(); + } + + @Override + public URI uri() { + return uri; + } + + @Override + public HttpClient.Version version() { + return version; + } + } + + @Test + public void testDeserializeApplicationJsonNull() { + var deserializer = new MyResponseDeserializer(); + byte[] bodyBytes = gson.toJson(null).getBytes(StandardCharsets.UTF_8); + BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); + SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + ApiResponse apiResponse = deserializer.deserialize(response, configuration); + Assert.assertEquals(response, apiResponse.response()); + if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { + throw new RuntimeException("body must be type ApplicationjsonBody"); + } + if (!(jsonBody.body() instanceof AnyTypeJsonSchema.AnyTypeJsonSchema1BoxedVoid boxedVoid)) { + throw new RuntimeException("body must be type AnyTypeJsonSchema1BoxedVoid"); + } + Assert.assertNull(boxedVoid.data()); + } + + @Test + public void testDeserializeApplicationJsonTrue() { + var deserializer = new MyResponseDeserializer(); + byte[] bodyBytes = gson.toJson(true).getBytes(StandardCharsets.UTF_8); + BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); + SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + ApiResponse apiResponse = deserializer.deserialize(response, configuration); + Assert.assertEquals(response, apiResponse.response()); + if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { + throw new RuntimeException("body must be type ApplicationjsonBody"); + } + if (!(jsonBody.body() instanceof AnyTypeJsonSchema.AnyTypeJsonSchema1BoxedBoolean boxedBoolean)) { + throw new RuntimeException("body must be type AnyTypeJsonSchema1BoxedBoolean"); + } + Assert.assertTrue(boxedBoolean.data()); + } + + @Test + public void testDeserializeApplicationJsonFalse() { + var deserializer = new MyResponseDeserializer(); + byte[] bodyBytes = gson.toJson(false).getBytes(StandardCharsets.UTF_8); + BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); + SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + ApiResponse apiResponse = deserializer.deserialize(response, configuration); + Assert.assertEquals(response, apiResponse.response()); + if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { + throw new RuntimeException("body must be type ApplicationjsonBody"); + } + if (!(jsonBody.body() instanceof AnyTypeJsonSchema.AnyTypeJsonSchema1BoxedBoolean boxedBoolean)) { + throw new RuntimeException("body must be type AnyTypeJsonSchema1BoxedBoolean"); + } + Assert.assertFalse(boxedBoolean.data()); + } + + @Test + public void testDeserializeApplicationJsonInt() { + var deserializer = new MyResponseDeserializer(); + byte[] bodyBytes = gson.toJson(1).getBytes(StandardCharsets.UTF_8); + BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); + SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + ApiResponse apiResponse = deserializer.deserialize(response, configuration); + Assert.assertEquals(response, apiResponse.response()); + if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { + throw new RuntimeException("body must be type ApplicationjsonBody"); + } + if (!(jsonBody.body() instanceof AnyTypeJsonSchema.AnyTypeJsonSchema1BoxedNumber boxedNumber)) { + throw new RuntimeException("body must be type AnyTypeJsonSchema1BoxedNumber"); + } + Assert.assertEquals(boxedNumber.data(), 1L); + } + + @Test + public void testDeserializeApplicationJsonFloat() { + var deserializer = new MyResponseDeserializer(); + byte[] bodyBytes = gson.toJson(3.14).getBytes(StandardCharsets.UTF_8); + BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); + SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + ApiResponse apiResponse = deserializer.deserialize(response, configuration); + Assert.assertEquals(response, apiResponse.response()); + if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { + throw new RuntimeException("body must be type ApplicationjsonBody"); + } + if (!(jsonBody.body() instanceof AnyTypeJsonSchema.AnyTypeJsonSchema1BoxedNumber boxedNumber)) { + throw new RuntimeException("body must be type AnyTypeJsonSchema1BoxedNumber"); + } + Assert.assertEquals(boxedNumber.data(), 3.14); + } + + @Test + public void testDeserializeApplicationJsonString() { + var deserializer = new MyResponseDeserializer(); + byte[] bodyBytes = gson.toJson("a").getBytes(StandardCharsets.UTF_8); + BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); + SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + ApiResponse apiResponse = deserializer.deserialize(response, configuration); + Assert.assertEquals(response, apiResponse.response()); + if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { + throw new RuntimeException("body must be type ApplicationjsonBody"); + } + if (!(jsonBody.body() instanceof AnyTypeJsonSchema.AnyTypeJsonSchema1BoxedString boxedString)) { + throw new RuntimeException("body must be type AnyTypeJsonSchema1BoxedString"); + } + Assert.assertEquals(boxedString.data(), "a"); + } +} \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java index a5cb7cd0519..42dfcabf0d0 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java @@ -31,16 +31,12 @@ public class ArrayTypeSchemaTest { new LinkedHashSet<>() ); - public static abstract sealed class ArrayWithItemsSchemaBoxed permits ArrayWithItemsSchemaBoxedList { + public sealed interface ArrayWithItemsSchemaBoxed permits ArrayWithItemsSchemaBoxedList { } - public static final class ArrayWithItemsSchemaBoxedList extends ArrayWithItemsSchemaBoxed { - public final FrozenList data; - private ArrayWithItemsSchemaBoxedList(FrozenList data) { - this.data = data; - } + public record ArrayWithItemsSchemaBoxedList(FrozenList data) implements ArrayWithItemsSchemaBoxed { } - public static class ArrayWithItemsSchema extends JsonSchema implements ListSchemaValidator, ArrayWithItemsSchemaBoxedList> { + public static class ArrayWithItemsSchema extends JsonSchema implements ListSchemaValidator, ArrayWithItemsSchemaBoxedList> { public ArrayWithItemsSchema() { super(new JsonSchemaInfo() .type(Set.of(List.class)) @@ -55,11 +51,11 @@ public FrozenList getNewInstance(List arg, List pathToItem, P for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castItem = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(castItem instanceof String)) { throw new InvalidTypeException("Instantiated type of item is invalid"); @@ -100,6 +96,14 @@ public Object getNewInstance(@Nullable Object arg, List pathToItem, Path } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + + @Override + public ArrayWithItemsSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + if (arg instanceof List listArg) { + return new ArrayWithItemsSchemaBoxedList(validate(listArg, configuration)); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } public static class ArrayWithOutputClsSchemaList extends FrozenList { @@ -112,15 +116,11 @@ public static ArrayWithOutputClsSchemaList of(List arg, SchemaConfigurat } } - public static abstract sealed class ArrayWithOutputClsSchemaBoxed permits ArrayWithOutputClsSchemaBoxedList { + public sealed interface ArrayWithOutputClsSchemaBoxed permits ArrayWithOutputClsSchemaBoxedList { } - public static final class ArrayWithOutputClsSchemaBoxedList extends ArrayWithOutputClsSchemaBoxed { - public final ArrayWithOutputClsSchemaList data; - private ArrayWithOutputClsSchemaBoxedList(ArrayWithOutputClsSchemaList data) { - this.data = data; - } + public record ArrayWithOutputClsSchemaBoxedList(ArrayWithOutputClsSchemaList data) implements ArrayWithOutputClsSchemaBoxed { } - public static class ArrayWithOutputClsSchema extends JsonSchema implements ListSchemaValidator { + public static class ArrayWithOutputClsSchema extends JsonSchema implements ListSchemaValidator { public ArrayWithOutputClsSchema() { super(new JsonSchemaInfo() .type(Set.of(List.class)) @@ -136,11 +136,11 @@ public ArrayWithOutputClsSchemaList getNewInstance(List arg, List pat for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); itemPathToItem.add(i); - LinkedHashMap schemas = pathToSchemas.get(itemPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castItem = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); if (!(castItem instanceof String)) { throw new InvalidTypeException("Instantiated type of item is invalid"); @@ -182,6 +182,14 @@ public Object getNewInstance(@Nullable Object arg, List pathToItem, Path } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + + @Override + public ArrayWithOutputClsSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + if (arg instanceof List listArg) { + return new ArrayWithOutputClsSchemaBoxedList(validate(listArg, configuration)); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } @Test diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ObjectTypeSchemaTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ObjectTypeSchemaTest.java index acd412b00d1..02729b0f046 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ObjectTypeSchemaTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ObjectTypeSchemaTest.java @@ -33,15 +33,11 @@ public class ObjectTypeSchemaTest { new LinkedHashSet<>() ); - public static abstract sealed class ObjectWithPropsSchemaBoxed permits ObjectWithPropsSchemaBoxedMap { + public sealed interface ObjectWithPropsSchemaBoxed permits ObjectWithPropsSchemaBoxedMap { } - public static final class ObjectWithPropsSchemaBoxedMap extends ObjectWithPropsSchemaBoxed { - public final FrozenMap<@Nullable Object> data; - private ObjectWithPropsSchemaBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ObjectWithPropsSchemaBoxedMap(FrozenMap<@Nullable Object> data) implements ObjectWithPropsSchemaBoxed { } - public static class ObjectWithPropsSchema extends JsonSchema implements MapSchemaValidator, ObjectWithPropsSchemaBoxedMap> { + public static class ObjectWithPropsSchema extends JsonSchema implements MapSchemaValidator, ObjectWithPropsSchemaBoxedMap> { private static @Nullable ObjectWithPropsSchema instance = null; private ObjectWithPropsSchema() { super(new JsonSchemaInfo() @@ -72,11 +68,11 @@ public static ObjectWithPropsSchema getInstance() { List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castValue = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, castValue); } @@ -113,18 +109,22 @@ public Object getNewInstance(@Nullable Object arg, List pathToItem, Path } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + + @Override + public ObjectWithPropsSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + if (arg instanceof Map mapArg) { + return new ObjectWithPropsSchemaBoxedMap(validate(mapArg, configuration)); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } } - public static abstract sealed class ObjectWithAddpropsSchemaBoxed permits ObjectWithAddpropsSchemaBoxedMap { + public sealed interface ObjectWithAddpropsSchemaBoxed permits ObjectWithAddpropsSchemaBoxedMap { } - public static final class ObjectWithAddpropsSchemaBoxedMap extends ObjectWithAddpropsSchemaBoxed { - public final FrozenMap data; - private ObjectWithAddpropsSchemaBoxedMap(FrozenMap data) { - this.data = data; - } + public record ObjectWithAddpropsSchemaBoxedMap(FrozenMap data) implements ObjectWithAddpropsSchemaBoxed { } - public static class ObjectWithAddpropsSchema extends JsonSchema implements MapSchemaValidator, ObjectWithAddpropsSchemaBoxedMap> { + public static class ObjectWithAddpropsSchema extends JsonSchema implements MapSchemaValidator, ObjectWithAddpropsSchemaBoxedMap> { private static @Nullable ObjectWithAddpropsSchema instance = null; private ObjectWithAddpropsSchema() { super(new JsonSchemaInfo() @@ -152,11 +152,11 @@ public FrozenMap getNewInstance(Map arg, List pathToItem, List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castValue = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); if (!(castValue instanceof String)) { throw new InvalidTypeException("Invalid type for property value"); @@ -189,6 +189,14 @@ public ObjectWithAddpropsSchemaBoxedMap validateAndBox(Map arg, SchemaConf throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + @Override + public ObjectWithAddpropsSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + if (arg instanceof Map mapArg) { + return new ObjectWithAddpropsSchemaBoxedMap(validate(mapArg, configuration)); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override public Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { if (arg instanceof Map) { @@ -198,15 +206,11 @@ public Object getNewInstance(@Nullable Object arg, List pathToItem, Path } } - public static abstract sealed class ObjectWithPropsAndAddpropsSchemaBoxed permits ObjectWithPropsAndAddpropsSchemaBoxedMap { + public sealed interface ObjectWithPropsAndAddpropsSchemaBoxed permits ObjectWithPropsAndAddpropsSchemaBoxedMap { } - public static final class ObjectWithPropsAndAddpropsSchemaBoxedMap extends ObjectWithPropsAndAddpropsSchemaBoxed { - public final FrozenMap<@Nullable Object> data; - private ObjectWithPropsAndAddpropsSchemaBoxedMap(FrozenMap<@Nullable Object> data) { - this.data = data; - } + public record ObjectWithPropsAndAddpropsSchemaBoxedMap(FrozenMap<@Nullable Object> data) implements ObjectWithPropsAndAddpropsSchemaBoxed { } - public static class ObjectWithPropsAndAddpropsSchema extends JsonSchema implements MapSchemaValidator, ObjectWithPropsAndAddpropsSchemaBoxedMap> { + public static class ObjectWithPropsAndAddpropsSchema extends JsonSchema implements MapSchemaValidator, ObjectWithPropsAndAddpropsSchemaBoxedMap> { private static @Nullable ObjectWithPropsAndAddpropsSchema instance = null; private ObjectWithPropsAndAddpropsSchema() { super(new JsonSchemaInfo() @@ -237,11 +241,11 @@ public static ObjectWithPropsAndAddpropsSchema getInstance() { List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castValue = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, castValue); } @@ -271,6 +275,14 @@ public ObjectWithPropsAndAddpropsSchemaBoxedMap validateAndBox(Map arg, Sc throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + @Override + public ObjectWithPropsAndAddpropsSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + if (arg instanceof Map mapArg) { + return new ObjectWithPropsAndAddpropsSchemaBoxedMap(validate(mapArg, configuration)); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override public Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { if (arg instanceof Map) { @@ -290,15 +302,11 @@ public static ObjectWithOutputTypeSchemaMap of(Map arg, SchemaCo } } - public static abstract sealed class ObjectWithOutputTypeSchemaBoxed permits ObjectWithOutputTypeSchemaBoxedMap { + public sealed interface ObjectWithOutputTypeSchemaBoxed permits ObjectWithOutputTypeSchemaBoxedMap { } - public static final class ObjectWithOutputTypeSchemaBoxedMap extends ObjectWithOutputTypeSchemaBoxed { - public final ObjectWithOutputTypeSchemaMap data; - private ObjectWithOutputTypeSchemaBoxedMap(ObjectWithOutputTypeSchemaMap data) { - this.data = data; - } + public record ObjectWithOutputTypeSchemaBoxedMap(ObjectWithOutputTypeSchemaMap data) implements ObjectWithOutputTypeSchemaBoxed { } - public static class ObjectWithOutputTypeSchema extends JsonSchema implements MapSchemaValidator { + public static class ObjectWithOutputTypeSchema extends JsonSchema implements MapSchemaValidator { private static @Nullable ObjectWithOutputTypeSchema instance = null; public ObjectWithOutputTypeSchema() { super(new JsonSchemaInfo() @@ -328,11 +336,11 @@ public ObjectWithOutputTypeSchemaMap getNewInstance(Map arg, List List propertyPathToItem = new ArrayList<>(pathToItem); propertyPathToItem.add(propertyName); Object value = entry.getValue(); - LinkedHashMap schemas = pathToSchemas.get(propertyPathToItem); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); if (schemas == null) { throw new InvalidTypeException("Validation result is invalid, schemas must exist for a pathToItem"); } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object castValue = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); properties.put(propertyName, castValue); } @@ -362,6 +370,14 @@ public ObjectWithOutputTypeSchemaBoxedMap validateAndBox(Map arg, SchemaCo throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + @Override + public ObjectWithOutputTypeSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + if (arg instanceof Map mapArg) { + return new ObjectWithOutputTypeSchemaBoxedMap(validate(mapArg, configuration)); + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override public Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { if (arg instanceof FrozenMap) { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidatorTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidatorTest.java index 5bf7ee3b6b5..40a01c9983d 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidatorTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidatorTest.java @@ -18,7 +18,10 @@ import java.util.Set; public class AdditionalPropertiesValidatorTest { - public static class ObjectWithPropsSchema extends JsonSchema { + public sealed interface ObjectWithPropsSchemaBoxed permits ObjectWithPropsSchemaBoxedMap {} + public record ObjectWithPropsSchemaBoxedMap() implements ObjectWithPropsSchemaBoxed {} + + public static class ObjectWithPropsSchema extends JsonSchema { private static @Nullable ObjectWithPropsSchema instance = null; private ObjectWithPropsSchema() { super(new JsonSchemaInfo() @@ -53,6 +56,11 @@ public Object getNewInstance(@Nullable Object arg, List pathToItem, Path } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + + @Override + public ObjectWithPropsSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + return new ObjectWithPropsSchemaBoxedMap(); + } } @SuppressWarnings("nullness") @@ -88,7 +96,7 @@ public void testCorrectPropertySucceeds() { List expectedPathToItem = new ArrayList<>(); expectedPathToItem.add("args[0]"); expectedPathToItem.add("someAddProp"); - LinkedHashMap expectedClasses = new LinkedHashMap<>(); + LinkedHashMap, Void> expectedClasses = new LinkedHashMap<>(); StringJsonSchema.StringJsonSchema1 schema = JsonSchemaFactory.getInstance(StringJsonSchema.StringJsonSchema1.class); expectedClasses.put(schema, null); PathToSchemasMap expectedPathToSchemas = new PathToSchemasMap(); diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/ItemsValidatorTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/ItemsValidatorTest.java index f9f01dcb28a..e0e4a0c859e 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/ItemsValidatorTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/ItemsValidatorTest.java @@ -21,7 +21,10 @@ private void assertNull(@Nullable Object object) { Assert.assertNull(object); } - public static class ArrayWithItemsSchema extends JsonSchema { + public sealed interface ArrayWithItemsSchemaBoxed permits ArrayWithItemsSchemaBoxedList {} + public record ArrayWithItemsSchemaBoxedList() implements ArrayWithItemsSchemaBoxed {} + + public static class ArrayWithItemsSchema extends JsonSchema { public ArrayWithItemsSchema() { super(new JsonSchemaInfo() .type(Set.of(List.class)) @@ -44,6 +47,11 @@ public Object getNewInstance(@Nullable Object arg, List pathToItem, Path } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + + @Override + public ArrayWithItemsSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + return new ArrayWithItemsSchemaBoxedList(); + } } @Test @@ -72,7 +80,7 @@ public void testCorrectItemsSucceeds() { List expectedPathToItem = new ArrayList<>(); expectedPathToItem.add("args[0]"); expectedPathToItem.add(0); - LinkedHashMap expectedClasses = new LinkedHashMap<>(); + LinkedHashMap, Void> expectedClasses = new LinkedHashMap<>(); StringJsonSchema.StringJsonSchema1 schema = JsonSchemaFactory.getInstance(StringJsonSchema.StringJsonSchema1.class); expectedClasses.put(schema, null); PathToSchemasMap expectedPathToSchemas = new PathToSchemasMap(); diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaTest.java index 525222b9ad7..8a14df7edd6 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaTest.java @@ -13,39 +13,49 @@ import java.util.List; import java.util.Set; -class SomeSchema extends JsonSchema { - private static @Nullable SomeSchema instance = null; - protected SomeSchema() { - super(new JsonSchemaInfo() - .type(Set.of(String.class)) - ); - } +sealed interface SomeSchemaBoxed permits SomeSchemaBoxedString {} +record SomeSchemaBoxedString() implements SomeSchemaBoxed {} + +public class JsonSchemaTest { + sealed interface SomeSchemaBoxed permits SomeSchemaBoxedString {} + record SomeSchemaBoxedString() implements SomeSchemaBoxed {} - public static SomeSchema getInstance() { - if (instance == null) { - instance = new SomeSchema(); + static class SomeSchema extends JsonSchema { + private static @Nullable SomeSchema instance = null; + protected SomeSchema() { + super(new JsonSchemaInfo() + .type(Set.of(String.class)) + ); } - return instance; - } - @Override - public Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof String) { - return arg; + public static SomeSchema getInstance() { + if (instance == null) { + instance = new SomeSchema(); + } + return instance; } - throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { - if (arg instanceof String) { - return arg; + @Override + public Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof String) { + return arg; + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } - throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } -} -public class JsonSchemaTest { + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + if (arg instanceof String) { + return arg; + } + throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + + @Override + public SomeSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + return new SomeSchemaBoxedString(); + } + } @Test public void testValidateSucceeds() { @@ -63,7 +73,7 @@ public void testValidateSucceeds() { validationMetadata ); PathToSchemasMap expectedPathToSchemas = new PathToSchemasMap(); - LinkedHashMap validatedClasses = new LinkedHashMap<>(); + LinkedHashMap, Void> validatedClasses = new LinkedHashMap<>(); validatedClasses.put(schema, null); expectedPathToSchemas.put(pathToItem, validatedClasses); Assert.assertEquals(pathToSchemas, expectedPathToSchemas); diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidatorTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidatorTest.java index 5a6edbe7299..492f45af0c7 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidatorTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidatorTest.java @@ -17,7 +17,10 @@ import java.util.Set; public class PropertiesValidatorTest { - public static class ObjectWithPropsSchema extends JsonSchema { + public sealed interface ObjectWithPropsSchemaBoxed permits ObjectWithPropsSchemaBoxedMap {} + public record ObjectWithPropsSchemaBoxedMap() implements ObjectWithPropsSchemaBoxed {} + + public static class ObjectWithPropsSchema extends JsonSchema { private ObjectWithPropsSchema() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) @@ -43,6 +46,11 @@ public Object getNewInstance(@Nullable Object arg, List pathToItem, Path } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + + @Override + public ObjectWithPropsSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + return new ObjectWithPropsSchemaBoxedMap(); + } } @SuppressWarnings("nullness") @@ -76,7 +84,7 @@ public void testCorrectPropertySucceeds() { List expectedPathToItem = new ArrayList<>(); expectedPathToItem.add("args[0]"); expectedPathToItem.add("someString"); - LinkedHashMap expectedClasses = new LinkedHashMap<>(); + LinkedHashMap, Void> expectedClasses = new LinkedHashMap<>(); expectedClasses.put(JsonSchemaFactory.getInstance(StringJsonSchema.StringJsonSchema1.class), null); PathToSchemasMap expectedPathToSchemas = new PathToSchemasMap(); expectedPathToSchemas.put(expectedPathToItem, expectedClasses); diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/RequiredValidatorTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/RequiredValidatorTest.java index d2264b9a967..65ff030d74b 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/RequiredValidatorTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/RequiredValidatorTest.java @@ -15,7 +15,10 @@ import java.util.Set; public class RequiredValidatorTest { - public static class ObjectWithRequiredSchema extends JsonSchema { + public sealed interface ObjectWithRequiredSchemaBoxed permits ObjectWithRequiredSchemaBoxedMap {} + public record ObjectWithRequiredSchemaBoxedMap() implements ObjectWithRequiredSchemaBoxed {} + + public static class ObjectWithRequiredSchema extends JsonSchema { private ObjectWithRequiredSchema() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) @@ -39,6 +42,11 @@ public Object getNewInstance(@Nullable Object arg, List pathToItem, Path } throw new InvalidTypeException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } + + @Override + public ObjectWithRequiredSchemaBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws InvalidTypeException, ValidationException { + return new ObjectWithRequiredSchemaBoxedMap(); + } } @SuppressWarnings("nullness") diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post.md index e45318ad04d..40f7d7970e1 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post.md index 0fad63d5795..2b80e6cd0ee 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md index 110b85cbbe2..73c4c4d8ebb 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md index 68be6adfef7..ab6064d0c44 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post.md index 4e3acb6853b..e579b70f31c 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post.md index 25f66785846..8321f28be28 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_with_schema_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_with_schema_request_body/post.md index ca04d5c1e1e..83b0e02989f 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_with_schema_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_with_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.md index b8452c3b430..641cf4d1312 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_request_body/post.md index 4510ddebabf..5842161c5ef 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_simple_types_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_simple_types_request_body/post.md index 63ca858d926..acfc5ea1571 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_simple_types_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_simple_types_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_base_schema_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_base_schema_request_body/post.md index f474402a883..7fbad4ae69e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_base_schema_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_base_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_one_empty_schema_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_one_empty_schema_request_body/post.md index 4be8897cd29..fb6432898f6 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_one_empty_schema_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_one_empty_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.md index 4742c933e73..dec017f62ec 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.md index 8eb619a5430..404620bdc46 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.md index e72d229de81..1671e9af6cf 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_anyof_complex_types_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_anyof_complex_types_request_body/post.md index 44932e771bf..5ecf5f69c69 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_anyof_complex_types_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_anyof_complex_types_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_anyof_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_anyof_request_body/post.md index 0ab897a1cfe..8e524dc96d6 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_anyof_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_anyof_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_anyof_with_base_schema_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_anyof_with_base_schema_request_body/post.md index 9fe2943ea99..8d955c23b79 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_anyof_with_base_schema_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_anyof_with_base_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.md index 92ec911c863..aa472dc6a9c 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_array_type_matches_arrays_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_array_type_matches_arrays_request_body/post.md index e60a37b5893..bb461caea14 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_array_type_matches_arrays_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_array_type_matches_arrays_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_boolean_type_matches_booleans_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_boolean_type_matches_booleans_request_body/post.md index ca1bd14e43a..ba07e2ee409 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_boolean_type_matches_booleans_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_boolean_type_matches_booleans_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_by_int_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_by_int_request_body/post.md index 3b8eaac0855..e0c980678f7 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_by_int_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_by_int_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_by_number_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_by_number_request_body/post.md index c219dd32371..a6191dfce8d 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_by_number_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_by_number_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_by_small_number_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_by_small_number_request_body/post.md index b1dd4f60736..68c4027c7f2 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_by_small_number_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_by_small_number_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post.md index 33d7883d833..5907b77a7f0 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_contains_keyword_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_contains_keyword_validation_request_body/post.md index 9f4854cebb2..75a4813cc9e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_contains_keyword_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_contains_keyword_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post.md index d2bf595681b..07cd121a669 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_date_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_date_format_request_body/post.md index 83306cec6ad..a0b86f34dd5 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_date_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_date_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_date_time_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_date_time_format_request_body/post.md index 22f51d88ec0..dc88648fedf 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_date_time_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_date_time_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post.md index 92eedc60443..2dfae3f64dc 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post.md index 27de5f64da3..991140a464c 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_single_dependency_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_single_dependency_request_body/post.md index 7d032cfb404..dbab56835d3 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_single_dependency_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_single_dependency_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_duration_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_duration_format_request_body/post.md index 1dc639a47ec..e0738857045 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_duration_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_duration_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_email_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_email_format_request_body/post.md index 3a9f9de78cf..fe7e2984491 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_email_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_email_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_empty_dependents_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_empty_dependents_request_body/post.md index 24fe4781df7..a5997ddd2e6 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_empty_dependents_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_empty_dependents_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.md index 3e49495c679..c777a766727 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.md index 868990642c3..e7d22cf0dc6 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with_escaped_characters_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with_escaped_characters_request_body/post.md index a22db8a20af..1772b92e37e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with_escaped_characters_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with_escaped_characters_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.md index 9267427c716..d2b3f348d09 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.md index 640f172d633..17552d7ab72 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enums_in_properties_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enums_in_properties_request_body/post.md index 85217ed11a6..e91b736494b 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enums_in_properties_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enums_in_properties_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_exclusivemaximum_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_exclusivemaximum_validation_request_body/post.md index ec5cc929756..81fe7d947c4 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_exclusivemaximum_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_exclusivemaximum_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_exclusiveminimum_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_exclusiveminimum_validation_request_body/post.md index 892dc05a12f..901f250052d 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_exclusiveminimum_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_exclusiveminimum_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_float_division_inf_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_float_division_inf_request_body/post.md index d83fa579abb..6e274033fed 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_float_division_inf_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_float_division_inf_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_forbidden_property_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_forbidden_property_request_body/post.md index e2db3f67bba..e8329c3cb6c 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_forbidden_property_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_forbidden_property_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_hostname_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_hostname_format_request_body/post.md index 294cea79577..048b77a1b6f 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_hostname_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_hostname_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_idn_email_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_idn_email_format_request_body/post.md index 22e48f71922..a6a45dcd3a3 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_idn_email_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_idn_email_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_idn_hostname_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_idn_hostname_format_request_body/post.md index 08048612101..e619c38ef38 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_idn_hostname_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_idn_hostname_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_if_and_else_without_then_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_if_and_else_without_then_request_body/post.md index f3e6dd28e3a..4f4b4818634 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_if_and_else_without_then_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_if_and_else_without_then_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_if_and_then_without_else_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_if_and_then_without_else_request_body/post.md index 7da0bc3cacf..d2f9f3d3d10 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_if_and_then_without_else_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_if_and_then_without_else_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post.md index 47b59050cd5..c894d81fa0b 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ignore_else_without_if_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ignore_else_without_if_request_body/post.md index 37eedca16cd..38cf22ec4a3 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ignore_else_without_if_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ignore_else_without_if_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ignore_if_without_then_or_else_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ignore_if_without_then_or_else_request_body/post.md index de22045504f..99af5e8d301 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ignore_if_without_then_or_else_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ignore_if_without_then_or_else_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ignore_then_without_if_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ignore_then_without_if_request_body/post.md index 939377de9c9..8787dca90e9 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ignore_then_without_if_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ignore_then_without_if_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_integer_type_matches_integers_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_integer_type_matches_integers_request_body/post.md index b9d3e3d4720..42ac552a150 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_integer_type_matches_integers_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_integer_type_matches_integers_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ipv4_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ipv4_format_request_body/post.md index 9aeb9426f96..d74f463a838 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ipv4_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ipv4_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ipv6_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ipv6_format_request_body/post.md index 8050d4e38b8..37f73a30de8 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ipv6_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ipv6_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_iri_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_iri_format_request_body/post.md index e019fe92308..928ac150d6a 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_iri_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_iri_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_iri_reference_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_iri_reference_format_request_body/post.md index 7c948cd87c6..2bf0773cd41 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_iri_reference_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_iri_reference_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_items_contains_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_items_contains_request_body/post.md index 9b234eb7665..6df38c9ae73 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_items_contains_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_items_contains_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post.md index db0f9e5a8c6..4db808204cf 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_items_with_null_instance_elements_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_items_with_null_instance_elements_request_body/post.md index 0911a9da045..5f79867ed19 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_items_with_null_instance_elements_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_items_with_null_instance_elements_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_json_pointer_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_json_pointer_format_request_body/post.md index 79e97542369..0ca037d8a0e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_json_pointer_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_json_pointer_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post.md index b93aaeeb942..f3522e6d8a0 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maximum_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maximum_validation_request_body/post.md index a4cf41c5a21..8e987cce12f 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maximum_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maximum_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.md index b9192384acf..2c346814aa8 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxitems_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxitems_validation_request_body/post.md index 76b56511900..7c5add5d24a 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxitems_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxitems_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxlength_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxlength_validation_request_body/post.md index 865aa26009e..579be6e0bea 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxlength_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxlength_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.md index 1d91fa18a50..5bc772ce354 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxproperties_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxproperties_validation_request_body/post.md index 054e62200de..a9e83f1f307 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxproperties_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxproperties_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post.md index 03abb572522..43204ed9f7d 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minimum_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minimum_validation_request_body/post.md index cc80b57b977..c82df6e54b5 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minimum_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minimum_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.md index a9c04d11a5a..b24408abcac 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minitems_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minitems_validation_request_body/post.md index 9c38740da8a..3d498c01799 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minitems_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minitems_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minlength_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minlength_validation_request_body/post.md index 4c53aa747e5..a25977f56a1 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minlength_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minlength_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minproperties_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minproperties_validation_request_body/post.md index 21ec6fe1840..bfcc910cd1c 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minproperties_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minproperties_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_dependents_required_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_dependents_required_request_body/post.md index 12e1d5f3406..d695ebcebc1 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_dependents_required_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_dependents_required_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post.md index 3d7749cb427..71699009b60 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post.md index c84c845d394..2f41d9a7e37 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md index 5438484d94d..7ee25eb8d3d 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.md index a421805e866..e539a203ca7 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nested_items_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nested_items_request_body/post.md index 82909325d37..ac385ea1a82 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nested_items_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nested_items_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md index 7ecd99cc6bc..7afbc0bbf3e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post.md index 96d147c6431..78cc5432b66 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_non_interference_across_combined_schemas_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_non_interference_across_combined_schemas_request_body/post.md index 86d482027ea..b3f988dc1c9 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_non_interference_across_combined_schemas_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_non_interference_across_combined_schemas_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_not_more_complex_schema_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_not_more_complex_schema_request_body/post.md index 71bb3272c96..f67984066ae 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_not_more_complex_schema_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_not_more_complex_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_not_multiple_types_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_not_multiple_types_request_body/post.md index 60612451cd6..3c116e80d6d 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_not_multiple_types_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_not_multiple_types_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_not_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_not_request_body/post.md index 65175a1384a..889d75b70e6 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_not_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_not_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nul_characters_in_strings_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nul_characters_in_strings_request_body/post.md index 9c736950dd7..49d8b483ede 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nul_characters_in_strings_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nul_characters_in_strings_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.md index ef4fe60ec73..fe9bfe15742 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_number_type_matches_numbers_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_number_type_matches_numbers_request_body/post.md index 798cad055b4..199be4b3cdd 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_number_type_matches_numbers_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_number_type_matches_numbers_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_object_properties_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_object_properties_validation_request_body/post.md index 517f2d9f6c4..1dad82539d4 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_object_properties_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_object_properties_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_object_type_matches_objects_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_object_type_matches_objects_request_body/post.md index 592b36537d9..1b0568c13db 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_object_type_matches_objects_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_object_type_matches_objects_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_complex_types_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_complex_types_request_body/post.md index 907311b6469..c2fa5aca948 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_complex_types_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_complex_types_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_request_body/post.md index 22f845e0e62..7dbe26317f7 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_with_base_schema_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_with_base_schema_request_body/post.md index d3bc5e23ef2..86c8c40a897 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_with_base_schema_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_with_base_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_with_empty_schema_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_with_empty_schema_request_body/post.md index 2cf25497138..2ac1c0fe18d 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_with_empty_schema_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_with_empty_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_with_required_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_with_required_request_body/post.md index 3b3dac03539..da901db4671 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_with_required_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_with_required_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_pattern_is_not_anchored_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_pattern_is_not_anchored_request_body/post.md index 74eff8b32a7..202b2566f20 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_pattern_is_not_anchored_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_pattern_is_not_anchored_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_pattern_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_pattern_validation_request_body/post.md index 703f9588b6e..00c91f72879 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_pattern_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_pattern_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post.md index a3cac306b51..084a3919f01 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post.md index 0f895767a86..51f9840e9ea 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post.md index b58ccc2cddd..2652352f828 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post.md index 9ec78f25a24..e096e907c96 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post.md index fe2c13ee801..654773acd54 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post.md index 31c48bd2837..31d58c91514 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md index 6388a754811..38616b98539 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post.md index ba4fc208e72..c482c317549 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md index 9f7590ae649..6e9cc6ef89b 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_propertynames_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_propertynames_validation_request_body/post.md index 2defea3187e..e2c4626609a 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_propertynames_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_propertynames_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_regex_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_regex_format_request_body/post.md index 767647fe464..dea75b211a9 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_regex_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_regex_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post.md index e4723c8a17a..0b4b07a179f 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_relative_json_pointer_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_relative_json_pointer_format_request_body/post.md index deebacfd8eb..282248991a3 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_relative_json_pointer_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_relative_json_pointer_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_default_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_default_validation_request_body/post.md index 4f6d15db526..618244a79cc 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_default_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_default_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post.md index c336468ee30..fc5b8952cac 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_validation_request_body/post.md index f3a3d153004..8e6890f1329 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_with_empty_array_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_with_empty_array_request_body/post.md index c4781bc3162..445175d7983 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_with_empty_array_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_with_empty_array_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_with_escaped_characters_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_with_escaped_characters_request_body/post.md index 7e1362ed638..2c704a5c52c 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_with_escaped_characters_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_with_escaped_characters_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_simple_enum_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_simple_enum_validation_request_body/post.md index 60a4896e371..8e75b40458d 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_simple_enum_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_simple_enum_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_single_dependency_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_single_dependency_request_body/post.md index 78dc9f9822e..e79ff4ca485 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_single_dependency_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_single_dependency_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_small_multiple_of_large_integer_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_small_multiple_of_large_integer_request_body/post.md index 4ea1d0c6461..84e0bd2f63d 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_small_multiple_of_large_integer_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_small_multiple_of_large_integer_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_string_type_matches_strings_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_string_type_matches_strings_request_body/post.md index 492b543d00b..3d96e06a24f 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_string_type_matches_strings_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_string_type_matches_strings_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_time_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_time_format_request_body/post.md index 125127ecc4f..c08aec2e3e5 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_time_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_time_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_type_array_object_or_null_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_type_array_object_or_null_request_body/post.md index 31943f6d395..9b8c8fe7c3d 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_type_array_object_or_null_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_type_array_object_or_null_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_type_array_or_object_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_type_array_or_object_request_body/post.md index 0ea46f10b35..24d2b919ba2 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_type_array_or_object_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_type_array_or_object_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_type_as_array_with_one_item_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_type_as_array_with_one_item_request_body/post.md index 7cf7dfe2350..b1ea9cafb28 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_type_as_array_with_one_item_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_type_as_array_with_one_item_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_as_schema_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_as_schema_request_body/post.md index ee571e20b9d..98b1219a819 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_as_schema_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_as_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post.md index 10c00a9d913..186f6c8e474 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_with_items_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_with_items_request_body/post.md index c998bc10a34..f34b6c0748b 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_with_items_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_with_items_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post.md index 426bef1eb4c..e5b799d9832 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post.md index c5083d740c2..1e0ea7e0d54 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_schema_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_schema_request_body/post.md index 15431df8806..c22019be098 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_schema_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post.md index fcb33047594..51c4f787ddd 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post.md index b0a938b5e3b..e05a3084e76 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uniqueitems_false_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uniqueitems_false_validation_request_body/post.md index 73669fb75ba..f39af217f3b 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uniqueitems_false_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uniqueitems_false_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post.md index 081a042616b..b1e5b5d8472 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uniqueitems_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uniqueitems_validation_request_body/post.md index 925f59d5229..70077290391 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uniqueitems_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uniqueitems_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post.md index 8502e128274..9bda587eae2 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uri_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uri_format_request_body/post.md index 2687068ba7e..a68806ee7e1 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uri_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uri_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uri_reference_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uri_reference_format_request_body/post.md index 223b2dcbd3c..4cd1e78a4b0 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uri_reference_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uri_reference_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uri_template_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uri_template_format_request_body/post.md index f5978d8234b..e1e465cebf7 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uri_template_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uri_template_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uuid_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uuid_format_request_body/post.md index 16ab62b4cbf..0f6eca3675f 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uuid_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uuid_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post.md index 5c35d811877..b57cad7f728 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post.md index a3ae9793aa3..f15ebe57c33 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, [a_schema_given_for_prefixitems.ASchemaGivenForPrefixitemsTuple](../../components/schema/a_schema_given_for_prefixitems.md#aschemagivenforprefixitemstuple), bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, [a_schema_given_for_prefixitems.ASchemaGivenForPrefixitemsTuple](../../components/schema/a_schema_given_for_prefixitems.md#aschemagivenforprefixitemstuple), bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post.md index 8eb7d332353..5ff9a670f4b 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, [additional_items_are_allowed_by_default.AdditionalItemsAreAllowedByDefaultTuple](../../components/schema/additional_items_are_allowed_by_default.md#additionalitemsareallowedbydefaulttuple), bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, [additional_items_are_allowed_by_default.AdditionalItemsAreAllowedByDefaultTuple](../../components/schema/additional_items_are_allowed_by_default.md#additionalitemsareallowedbydefaulttuple), bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md index c6aaa6d278d..e5aaeabf353 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDict](../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDict](../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md index 9e163998999..8112ed779a2 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDict](../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdict) | | +[body](#_200-body) | [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDict](../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdict) | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post.md index 483f8195ef3..a1d18a39d66 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [additionalproperties_does_not_look_in_applicators.AdditionalpropertiesDoesNotLookInApplicatorsDict](../../components/schema/additionalproperties_does_not_look_in_applicators.md#additionalpropertiesdoesnotlookinapplicatorsdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | [additionalproperties_does_not_look_in_applicators.AdditionalpropertiesDoesNotLookInApplicatorsDict](../../components/schema/additionalproperties_does_not_look_in_applicators.md#additionalpropertiesdoesnotlookinapplicatorsdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md index 68c41553910..8fc98ed70ed 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [additionalproperties_with_null_valued_instance_properties.AdditionalpropertiesWithNullValuedInstancePropertiesDict](../../components/schema/additionalproperties_with_null_valued_instance_properties.md#additionalpropertieswithnullvaluedinstancepropertiesdict) | | +[body](#_200-body) | [additionalproperties_with_null_valued_instance_properties.AdditionalpropertiesWithNullValuedInstancePropertiesDict](../../components/schema/additionalproperties_with_null_valued_instance_properties.md#additionalpropertieswithnullvaluedinstancepropertiesdict) | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post.md index 98294abccc4..29b70104393 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [additionalproperties_with_schema.AdditionalpropertiesWithSchemaDict](../../components/schema/additionalproperties_with_schema.md#additionalpropertieswithschemadict) | | +[body](#_200-body) | [additionalproperties_with_schema.AdditionalpropertiesWithSchemaDict](../../components/schema/additionalproperties_with_schema.md#additionalpropertieswithschemadict) | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.md index 6c7a89b34d6..dfc5c071e1c 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_response_body_for_content_types/post.md index f584dc53c73..909439aa7d5 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.md index a1b9080192d..d4d88df3759 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.md index d7e7d3a4a8e..ec597db0909 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [allof_with_base_schema.AllofWithBaseSchemaDict](../../components/schema/allof_with_base_schema.md#allofwithbaseschemadict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | [allof_with_base_schema.AllofWithBaseSchemaDict](../../components/schema/allof_with_base_schema.md#allofwithbaseschemadict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.md index 3597c3367fa..2b08f38ef22 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.md index b9b156178b0..299166455c4 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.md index 73c28674a62..632e4b6f7f3 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.md index d6649f6df12..45517b3e73b 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.md index 5754f3486bb..a7d37a7b17d 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_response_body_for_content_types/post.md index 0479bfcbd11..cc95bb24c21 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.md index 1e04eb186ba..d59f707f0b9 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | str | | +[body](#_200-body) | str | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.md index d2a63827d64..dfcef7c8b09 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.md index 922b0f63795..b1a582b7816 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | tuple | | +[body](#_200-body) | tuple | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.md index 7d646f2c845..c042eddffcf 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | bool | | +[body](#_200-body) | bool | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_int_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_int_response_body_for_content_types/post.md index 317976adab6..1c2c73d9f72 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_int_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_int_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_number_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_number_response_body_for_content_types/post.md index 073c6dc750b..b75db114a1b 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_number_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_number_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md index a009d75a070..0677e75bcde 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md index d3dffbff2f7..e1c8771f0ee 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post.md index ae0a8c23a92..88193c92a36 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md index 255b55758e3..94b32b4cbbe 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_date_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_date_format_response_body_for_content_types/post.md index 7f1f68b9241..dbe0fec7b56 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_date_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_date_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md index 49058625cfd..5a3dcc08495 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post.md index 7ada09edab5..9c9c477eede 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post.md index 485f338e302..6b7c965eda3 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRootDict](../../components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md#dependentschemasdependentsubschemaincompatiblewithrootdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | [dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRootDict](../../components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md#dependentschemasdependentsubschemaincompatiblewithrootdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post.md index 134eee0b6b6..fc2640b5da8 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md index 439c7809a25..7f1aad317a1 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_email_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_email_format_response_body_for_content_types/post.md index d7d2883ec30..728a6176ead 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_email_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_email_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post.md index b6665ec9e09..52c6dd809d3 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.md index c1a7d25f65c..24a3488b6cc 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | float, int | | +[body](#_200-body) | float, int | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.md index 00e6c65ec28..c1c3e8ce6e8 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | float, int | | +[body](#_200-body) | float, int | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.md index d898842c20c..b65b4a7c355 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | typing.Literal["foo\nbar", "foo\rbar"] | | +[body](#_200-body) | typing.Literal["foo\nbar", "foo\rbar"] | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.md index 40e4d10b7c4..0ddc596fa15 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | typing.Literal[False] | | +[body](#_200-body) | typing.Literal[False] | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.md index 267af222348..834db053b39 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | typing.Literal[True] | | +[body](#_200-body) | typing.Literal[True] | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.md index 1f2bfbd863c..5da3554b005 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [enums_in_properties.EnumsInPropertiesDict](../../components/schema/enums_in_properties.md#enumsinpropertiesdict) | | +[body](#_200-body) | [enums_in_properties.EnumsInPropertiesDict](../../components/schema/enums_in_properties.md#enumsinpropertiesdict) | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post.md index 8eb83207ef4..698bf2a124e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post.md index 9fa696f3344..05205f22e85 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_float_division_inf_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_float_division_inf_response_body_for_content_types/post.md index b74c8351b31..612e28c8c14 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_float_division_inf_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_float_division_inf_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | int | | +[body](#_200-body) | int | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_forbidden_property_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_forbidden_property_response_body_for_content_types/post.md index 82dc6842ebe..c5e5e10278c 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_forbidden_property_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_forbidden_property_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [forbidden_property.ForbiddenPropertyDict](../../components/schema/forbidden_property.md#forbiddenpropertydict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | [forbidden_property.ForbiddenPropertyDict](../../components/schema/forbidden_property.md#forbiddenpropertydict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_hostname_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_hostname_format_response_body_for_content_types/post.md index 2b2088e4c8e..29e4e50f1a4 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_hostname_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_hostname_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_idn_email_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_idn_email_format_response_body_for_content_types/post.md index 018e4393714..cbc9a84d6ae 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_idn_email_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_idn_email_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post.md index f4ebb466c62..13c6183ef6e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post.md index f2b43df3795..66adb4f0214 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post.md index cfe801e35c9..ede40967658 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post.md index c8cc852f1a8..0415195d56f 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post.md index 2c01a423f65..fbbd81d18d2 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post.md index 89c0c522356..60d9224b178 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post.md index a9143162e98..6523d8a9269 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.md index 459ba2f745c..229d08d8b93 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | int | | +[body](#_200-body) | int | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ipv4_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ipv4_format_response_body_for_content_types/post.md index 7fc6454f55f..39c90fa3396 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ipv4_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ipv4_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post.md index 3dd2b61eb94..f82f7886788 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_iri_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_iri_format_response_body_for_content_types/post.md index 5980d0bbeba..d41d5fed823 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_iri_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_iri_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_iri_reference_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_iri_reference_format_response_body_for_content_types/post.md index 535cc587e90..bbf8daf0174 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_iri_reference_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_iri_reference_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_contains_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_contains_response_body_for_content_types/post.md index 819109227b4..76dd50ff807 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_contains_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_contains_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [items_contains.ItemsContainsTuple](../../components/schema/items_contains.md#itemscontainstuple) | | +[body](#_200-body) | [items_contains.ItemsContainsTuple](../../components/schema/items_contains.md#itemscontainstuple) | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post.md index 1e3f52bceba..784453116ee 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [items_does_not_look_in_applicators_valid_case.ItemsDoesNotLookInApplicatorsValidCaseTuple](../../components/schema/items_does_not_look_in_applicators_valid_case.md#itemsdoesnotlookinapplicatorsvalidcasetuple) | | +[body](#_200-body) | [items_does_not_look_in_applicators_valid_case.ItemsDoesNotLookInApplicatorsValidCaseTuple](../../components/schema/items_does_not_look_in_applicators_valid_case.md#itemsdoesnotlookinapplicatorsvalidcasetuple) | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post.md index 60e7bbf2fa3..f2d1543158b 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [items_with_null_instance_elements.ItemsWithNullInstanceElementsTuple](../../components/schema/items_with_null_instance_elements.md#itemswithnullinstanceelementstuple) | | +[body](#_200-body) | [items_with_null_instance_elements.ItemsWithNullInstanceElementsTuple](../../components/schema/items_with_null_instance_elements.md#itemswithnullinstanceelementstuple) | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md index a542232206d..8040cd1fdd4 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post.md index 6a592f78f1c..d8793fd0a74 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post.md index 948197766e9..8c135d8d786 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.md index 336adcf37e4..f54d0c67326 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.md index dad52273a43..f3c00fb972a 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.md index 495413c64b5..cbdfde99dcb 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.md index 9a8f6c2e437..c1dd163c792 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.md index 2e6666ae343..16c496580ef 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post.md index d64cb5e9ff7..1b5b0babce5 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post.md index 745fe18490e..8612bcc0acb 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.md index 20d37276e13..b622ade5bf5 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post.md index 6a5458d8a38..a93cdf1df93 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post.md index fe0cb3892e3..720a2e7aedf 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md index 612471e8abb..a9d04bab810 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post.md index cb17fdadff8..a4bea282513 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post.md index f9ab10b4ef6..817afc83d95 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post.md index 661f305de26..471149ae392 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | int, str | | +[body](#_200-body) | int, str | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.md index 5985e6c67bc..56068eec3df 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.md index 7f54ccbdc2a..9d4c09dfe53 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_items_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_items_response_body_for_content_types/post.md index 90c7777923e..9cf822a3113 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_items_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_items_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [nested_items.NestedItemsTuple](../../components/schema/nested_items.md#nesteditemstuple) | | +[body](#_200-body) | [nested_items.NestedItemsTuple](../../components/schema/nested_items.md#nesteditemstuple) | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md index 7202c7402a5..15281a36154 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post.md index 40416b76e75..713611c6b50 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalpropertiesDict](../../components/schema/non_ascii_pattern_with_additionalproperties.md#nonasciipatternwithadditionalpropertiesdict) | | +[body](#_200-body) | [non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalpropertiesDict](../../components/schema/non_ascii_pattern_with_additionalproperties.md#nonasciipatternwithadditionalpropertiesdict) | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post.md index 561d39905b1..56e1190a9bc 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md index 30770bcc8f1..0ab42d79137 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_multiple_types_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_multiple_types_response_body_for_content_types/post.md index 3c92e883433..e81e36de0d6 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_multiple_types_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_multiple_types_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_response_body_for_content_types/post.md index c514091bf50..8f5fbfbde99 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.md index da408d48628..0654aac5e67 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | typing.Literal["hello\x00there"] | | +[body](#_200-body) | typing.Literal["hello\x00there"] | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.md index 514eb011d87..19ebd6dea27 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | None | | +[body](#_200-body) | None | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.md index e8a62a6907a..40638b1b818 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | float, int | | +[body](#_200-body) | float, int | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.md index dc96db4b68a..9d71f4a56d8 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [object_properties_validation.ObjectPropertiesValidationDict](../../components/schema/object_properties_validation.md#objectpropertiesvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | [object_properties_validation.ObjectPropertiesValidationDict](../../components/schema/object_properties_validation.md#objectpropertiesvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.md index 7fb8227199e..efcb61c1e76 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict | | +[body](#_200-body) | schemas.immutabledict | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.md index 54f06b3c861..a517d2d4e26 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_response_body_for_content_types/post.md index a2c09ed9b23..1ec95398c9d 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.md index 98711704aae..c8364a0e3d0 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | str | | +[body](#_200-body) | str | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.md index 30949ce3603..09231d877c5 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.md index 970824d1bac..c324db5297a 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict | | +[body](#_200-body) | schemas.immutabledict | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.md index 99d71b0c156..6ef62a3d126 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post.md index c5eee572391..294290ed8e4 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post.md index 6ac02ace7c5..47977d0b361 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md index 91458defe8a..7b693e0c99e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post.md index a92fc23efef..b9d93f0e6f7 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [prefixitems_validation_adjusts_the_starting_index_for_items.PrefixitemsValidationAdjustsTheStartingIndexForItemsTuple](../../components/schema/prefixitems_validation_adjusts_the_starting_index_for_items.md#prefixitemsvalidationadjuststhestartingindexforitemstuple) | | +[body](#_200-body) | [prefixitems_validation_adjusts_the_starting_index_for_items.PrefixitemsValidationAdjustsTheStartingIndexForItemsTuple](../../components/schema/prefixitems_validation_adjusts_the_starting_index_for_items.md#prefixitemsvalidationadjuststhestartingindexforitemstuple) | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post.md index 856d9af61af..f644d239d94 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, [prefixitems_with_null_instance_elements.PrefixitemsWithNullInstanceElementsTuple](../../components/schema/prefixitems_with_null_instance_elements.md#prefixitemswithnullinstanceelementstuple), bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, [prefixitems_with_null_instance_elements.PrefixitemsWithNullInstanceElementsTuple](../../components/schema/prefixitems_with_null_instance_elements.md#prefixitemswithnullinstanceelementstuple), bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post.md index 45ecc6e1a24..2db4c441961 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteractionDict](../../components/schema/properties_patternproperties_additionalproperties_interaction.md#propertiespatternpropertiesadditionalpropertiesinteractiondict) | | +[body](#_200-body) | [properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteractionDict](../../components/schema/properties_patternproperties_additionalproperties_interaction.md#propertiespatternpropertiesadditionalpropertiesinteractiondict) | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md index a8bb989b3ea..7c0bc193a2c 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [properties_whose_names_are_javascript_object_property_names.PropertiesWhoseNamesAreJavascriptObjectPropertyNamesDict](../../components/schema/properties_whose_names_are_javascript_object_property_names.md#propertieswhosenamesarejavascriptobjectpropertynamesdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | [properties_whose_names_are_javascript_object_property_names.PropertiesWhoseNamesAreJavascriptObjectPropertyNamesDict](../../components/schema/properties_whose_names_are_javascript_object_property_names.md#propertieswhosenamesarejavascriptobjectpropertynamesdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md index 710926fc921..9808bb493a7 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [properties_with_escaped_characters.PropertiesWithEscapedCharactersDict](../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | [properties_with_escaped_characters.PropertiesWithEscapedCharactersDict](../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post.md index efaf213d821..3363cb87aec 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [properties_with_null_valued_instance_properties.PropertiesWithNullValuedInstancePropertiesDict](../../components/schema/properties_with_null_valued_instance_properties.md#propertieswithnullvaluedinstancepropertiesdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | [properties_with_null_valued_instance_properties.PropertiesWithNullValuedInstancePropertiesDict](../../components/schema/properties_with_null_valued_instance_properties.md#propertieswithnullvaluedinstancepropertiesdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md index 060ebe57b3b..da4e8d21b0b 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_propertynames_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_propertynames_validation_response_body_for_content_types/post.md index 2d32bfa90b4..4afe6f7ef49 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_propertynames_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_propertynames_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_regex_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_regex_format_response_body_for_content_types/post.md index a9b8453459e..8671cdcea6a 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_regex_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_regex_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post.md index 4b3dcfa6e86..c93d12b5526 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post.md index 87a68251d32..101fec77a59 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post.md index 1a6a0d020ff..e0c1d452555 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [required_default_validation.RequiredDefaultValidationDict](../../components/schema/required_default_validation.md#requireddefaultvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | [required_default_validation.RequiredDefaultValidationDict](../../components/schema/required_default_validation.md#requireddefaultvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md index 7312c752185..523d8ffb5ec 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [required_properties_whose_names_are_javascript_object_property_names.RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesDict](../../components/schema/required_properties_whose_names_are_javascript_object_property_names.md#requiredpropertieswhosenamesarejavascriptobjectpropertynamesdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | [required_properties_whose_names_are_javascript_object_property_names.RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesDict](../../components/schema/required_properties_whose_names_are_javascript_object_property_names.md#requiredpropertieswhosenamesarejavascriptobjectpropertynamesdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_validation_response_body_for_content_types/post.md index 7020c09630e..797d96d06f6 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [required_validation.RequiredValidationDict](../../components/schema/required_validation.md#requiredvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | [required_validation.RequiredValidationDict](../../components/schema/required_validation.md#requiredvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.md index 6f7a17013d1..a32a4266667 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [required_with_empty_array.RequiredWithEmptyArrayDict](../../components/schema/required_with_empty_array.md#requiredwithemptyarraydict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | [required_with_empty_array.RequiredWithEmptyArrayDict](../../components/schema/required_with_empty_array.md#requiredwithemptyarraydict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.md index bf3a00d159b..253c0791c03 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [required_with_escaped_characters.RequiredWithEscapedCharactersDict](../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | [required_with_escaped_characters.RequiredWithEscapedCharactersDict](../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.md index 678e01025d4..b370cd3f35d 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | float, int | | +[body](#_200-body) | float, int | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_single_dependency_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_single_dependency_response_body_for_content_types/post.md index 6d6a211c4ef..99c177fcfc5 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_single_dependency_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_single_dependency_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post.md index 56f4dc635bc..8f4a7ae1489 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | int | | +[body](#_200-body) | int | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.md index 32f68007c75..8e9bd8f2073 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | str | | +[body](#_200-body) | str | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_time_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_time_format_response_body_for_content_types/post.md index d6c35534716..5d920edfa61 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_time_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_time_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post.md index 3b5d7b525cd..0457ec95c76 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | tuple, schemas.immutabledict, None | | +[body](#_200-body) | tuple, schemas.immutabledict, None | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_array_or_object_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_array_or_object_response_body_for_content_types/post.md index 022ab6d91e2..e83cc7d592e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_array_or_object_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_array_or_object_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | tuple, schemas.immutabledict | | +[body](#_200-body) | tuple, schemas.immutabledict | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post.md index dadedcc48b0..f7a478f27df 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | str | | +[body](#_200-body) | str | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post.md index 23d85aba249..8256f33ff5f 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post.md index d510a55f0c3..a18080b7f47 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post.md index 1e428f2eb0e..8361f33cba1 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [unevaluateditems_with_items.UnevaluateditemsWithItemsTuple](../../components/schema/unevaluateditems_with_items.md#unevaluateditemswithitemstuple) | | +[body](#_200-body) | [unevaluateditems_with_items.UnevaluateditemsWithItemsTuple](../../components/schema/unevaluateditems_with_items.md#unevaluateditemswithitemstuple) | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post.md index 2667afffe8b..4e2bdb87a49 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post.md index e3edd145129..2b59c06fc59 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post.md index 4046920e2e4..69cef916328 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict | | +[body](#_200-body) | schemas.immutabledict | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post.md index a1c2e19810c..4c1b3a7663f 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict](../../components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md#unevaluatedpropertieswithadjacentadditionalpropertiesdict) | | +[body](#_200-body) | [unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict](../../components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md#unevaluatedpropertieswithadjacentadditionalpropertiesdict) | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md index 8a6c678b953..dfb1b404f27 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md index cc4471e9a4e..5f5c0b860f5 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post.md index ba4a54c34c4..67fb00a9ce4 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, [uniqueitems_false_with_an_array_of_items.UniqueitemsFalseWithAnArrayOfItemsTuple](../../components/schema/uniqueitems_false_with_an_array_of_items.md#uniqueitemsfalsewithanarrayofitemstuple), bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, [uniqueitems_false_with_an_array_of_items.UniqueitemsFalseWithAnArrayOfItemsTuple](../../components/schema/uniqueitems_false_with_an_array_of_items.md#uniqueitemsfalsewithanarrayofitemstuple), bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.md index 6ae609762a4..ccd5751d920 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post.md index 492e171bcd6..1e47365af75 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, [uniqueitems_with_an_array_of_items.UniqueitemsWithAnArrayOfItemsTuple](../../components/schema/uniqueitems_with_an_array_of_items.md#uniqueitemswithanarrayofitemstuple), bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, [uniqueitems_with_an_array_of_items.UniqueitemsWithAnArrayOfItemsTuple](../../components/schema/uniqueitems_with_an_array_of_items.md#uniqueitemswithanarrayofitemstuple), bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_format_response_body_for_content_types/post.md index 3f4342d4f04..266c3b216ca 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.md index 551d3b9d88a..deb286a4d65 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_template_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_template_format_response_body_for_content_types/post.md index 7e704ec48a4..f05c0b9091b 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_template_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_template_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uuid_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uuid_format_response_body_for_content_types/post.md index ba068a34552..b4f877edf4c 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uuid_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uuid_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post.md index 0b2cefec130..84df1d19c06 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) ### Body Details -#### ResponseFor200 content ApplicationJson Schema2 +#### _200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/operation.py index 6d6d380e5d0..2b8fee40c34 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/operation.py index f3b9b87acc2..02dd4cd6af6 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/operation.py index b99a1e03592..bf13d2411e3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/operation.py index 87e6d559418..faec6a439e1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post/operation.py index 9c7bc76580f..d918de80e5e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post/operation.py index 00100400f0d..8bf9ffb8a7d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_schema_request_body/post/operation.py index ab77eba6c6e..3c0d6116f9e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/operation.py index df62c6894d1..6408159e59b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/operation.py index 364453afdf2..7fa03721a4b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/operation.py index 167997e0be3..e0d327ecde0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/operation.py index 5d6e5a9417f..f18051f3357 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/operation.py index c41c7abb227..fd26607b781 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/operation.py index 7b4aa22f5c4..7d2dc22cb92 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/operation.py index 247deedb197..c5b40498d84 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/operation.py index de243529c40..808632c060c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/operation.py index c1d882fa50f..4942a16c1d4 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/operation.py index 5392be95ab2..3e23774d7ef 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/operation.py index 0b83156330d..07c4b00d549 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/operation.py index 9ec95b7ec02..62c010dc2b9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/operation.py index 72892c80af4..586517a89fd 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/operation.py index 0c4bc24658c..d2c5b4db4ec 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/operation.py index 7d82e25ebaf..1c08bf377fb 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/operation.py index 7e4d024e818..9eba1a7b61d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/operation.py index 1ebeac7c700..882b8cfb016 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/operation.py index 18369da04a2..c8cf2b39b6e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/operation.py index 830dda4b153..1ad667a7d9c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/operation.py index bd41275d157..1c4e75898b2 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_format_request_body/post/operation.py index ced4dc36099..cc72a15399f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_format_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/operation.py index 28c8dc3e083..ef1dbcb3994 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/operation.py index 5a1fb62f86d..0fc1a1c3b17 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/operation.py index c3510c8d682..b4defcf0e80 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/operation.py index 014c233f4df..daddc0aef4e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_duration_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_duration_format_request_body/post/operation.py index 8dc7821a78c..de361f668ed 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_duration_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_duration_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_duration_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_duration_format_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_duration_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_duration_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/operation.py index 8727d68b73b..72eb178acab 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/operation.py index 2be9b66a1ba..93b9f77f1c0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/operation.py index 6c2a295bdac..ad7ac47659b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/operation.py index 994f98feb69..c58995e88e6 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/operation.py index c92dedda09a..def3de025d8 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/operation.py index aff23b76309..eb96cfb1de1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/operation.py index 139fe18c966..07b33db7885 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/operation.py index ed6e7b81230..e87b81965b9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusivemaximum_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusivemaximum_validation_request_body/post/operation.py index edd599d735e..5fbcb722e0b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusivemaximum_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusivemaximum_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusivemaximum_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusivemaximum_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusivemaximum_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusivemaximum_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusiveminimum_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusiveminimum_validation_request_body/post/operation.py index 3c7a472390b..4fff036532c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusiveminimum_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusiveminimum_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusiveminimum_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusiveminimum_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusiveminimum_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusiveminimum_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_float_division_inf_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_float_division_inf_request_body/post/operation.py index 37591a2e5ac..d41f0e13b61 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_float_division_inf_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_float_division_inf_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_float_division_inf_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_float_division_inf_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_float_division_inf_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_float_division_inf_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/operation.py index 46217c66181..d4b9120e86a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/operation.py index b7d0f127816..eca8ba5d394 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_email_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_email_format_request_body/post/operation.py index 1c49301289f..d3e533ca35d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_email_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_email_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_email_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_email_format_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_email_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_email_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_hostname_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_hostname_format_request_body/post/operation.py index fe88d638d22..225321171cc 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_hostname_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_hostname_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_hostname_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_hostname_format_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_hostname_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_hostname_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_else_without_then_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_else_without_then_request_body/post/operation.py index dfdf96efd50..ba3ca500e33 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_else_without_then_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_else_without_then_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_else_without_then_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_else_without_then_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_else_without_then_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_else_without_then_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_then_without_else_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_then_without_else_request_body/post/operation.py index d25a45af6fe..de9be262021 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_then_without_else_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_then_without_else_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_then_without_else_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_then_without_else_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_then_without_else_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_then_without_else_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post/operation.py index 763a8f82c65..a533a1033e8 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_else_without_if_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_else_without_if_request_body/post/operation.py index 32189052e9a..3d5d6b371bd 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_else_without_if_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_else_without_if_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_else_without_if_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_else_without_if_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_else_without_if_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_else_without_if_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_if_without_then_or_else_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_if_without_then_or_else_request_body/post/operation.py index d7c0009ac71..5281278947c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_if_without_then_or_else_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_if_without_then_or_else_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_if_without_then_or_else_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_if_without_then_or_else_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_if_without_then_or_else_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_if_without_then_or_else_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_then_without_if_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_then_without_if_request_body/post/operation.py index 101382e7c5c..b1f00c3e396 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_then_without_if_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_then_without_if_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_then_without_if_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_then_without_if_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_then_without_if_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_then_without_if_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/operation.py index b8cd1a3b31f..f4a129fdd91 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/operation.py index 92369d23fc3..51f5f5a8f84 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/operation.py index f37ca537c41..9155ca1d212 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_format_request_body/post/operation.py index 3c0480c3d55..abc6777bd33 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_format_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_reference_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_reference_format_request_body/post/operation.py index f31a62594e8..d04f7f72c39 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_reference_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_reference_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_reference_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_reference_format_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_reference_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_reference_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/operation.py index 7692eaf1b4f..f96ea4a3160 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post/operation.py index 2b98a7cec35..91e53ef7b8c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_with_null_instance_elements_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_with_null_instance_elements_request_body/post/operation.py index e4b768d2d53..d77865ee05a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_with_null_instance_elements_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_with_null_instance_elements_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_with_null_instance_elements_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_with_null_instance_elements_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_with_null_instance_elements_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_with_null_instance_elements_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/operation.py index a0eab10a36a..23af6ca1ba1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/operation.py index de1d349aec8..e8db36350dd 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/operation.py index 898a1d303ed..048e329aa30 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/operation.py index 1c4f855e870..fec6304c585 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/operation.py index a666fb30fdb..3a0304a69d4 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/operation.py index 79d516829f0..33c091bca8b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/operation.py index f3b0af790a9..6f5c67c5022 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/operation.py index e61260a93cc..a6d27fcad7c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/operation.py index 3db6e0bea17..f97ba64d48e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/operation.py index 80bae3df4d7..4a3d627af98 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/operation.py index 1661841a2fb..374fe3be996 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/operation.py index a96c9474e2c..5bdc1cb8b48 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/operation.py index 4918b3efd30..632b1abfedc 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/operation.py index 98b26a84a6f..3ec372ee914 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/operation.py index 99969069a59..61f1e12c4d2 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/operation.py index 0917d77bbaa..8566201e296 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/operation.py index 30ea017614c..f62dae45866 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/operation.py index d1d165a59ed..e96751ba01e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/operation.py index e48324ee80c..483a6468c29 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/operation.py index faa7c7266d4..d1033364554 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/operation.py index b5ef0dca00d..dc66ca393ff 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/operation.py index ed46508e365..53b6fa63463 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_interference_across_combined_schemas_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_interference_across_combined_schemas_request_body/post/operation.py index 6689eb0806a..8238039d24c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_interference_across_combined_schemas_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_interference_across_combined_schemas_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_interference_across_combined_schemas_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_interference_across_combined_schemas_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_interference_across_combined_schemas_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_interference_across_combined_schemas_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/operation.py index 57849fc889d..3b86f14902c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/operation.py index 813d5df443b..05fee5cd54e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/operation.py index d63f15c0b8c..a20c391c436 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/operation.py index b521f8d42c5..9dfdfc0e481 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/operation.py index e4b653621a0..aa446e95b94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/operation.py index 63ca3bef84a..3c57c468072 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/operation.py index 4c48562b936..38e00a2dbea 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/operation.py index 7075dfb67dc..c886951c41b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/operation.py index ee6a59eb03b..4a26273a17c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/operation.py index 2bb830e4fdc..c77e43b1493 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/operation.py index cde0061a258..1854055de7f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/operation.py index f3611231b21..d2b93151285 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/operation.py index 45aac1b0644..1f293b49010 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/operation.py index cf6a8fc241a..32eb26efab3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/operation.py index d4d620851c1..ef6a58f4fa7 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/operation.py index 2f4da875ddd..6f8bce2d4ea 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/operation.py index 123440ad216..781e6e2a4fc 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/operation.py index 0447024ed3a..b7ec40d9f3f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/operation.py index 8d2983fa5e5..b771ee77db0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/operation.py index 98a12abbda6..aaf00dc677a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post/operation.py index 0dba4a7183f..0ab09c9ba1c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/operation.py index b48196cc896..24a2c712ac9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post/operation.py index 39f1c801651..83f2460a81b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/operation.py index ada223bdf12..c7057ac61cb 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/operation.py index 70a26dcbec1..8d2906eaa31 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regex_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regex_format_request_body/post/operation.py index 74c6c604d0c..9aac1d42528 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regex_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regex_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regex_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regex_format_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regex_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regex_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/operation.py index 1a805ba7d55..d355fc344fa 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_relative_json_pointer_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_relative_json_pointer_format_request_body/post/operation.py index eacb7bc88e0..1a3b20ac26a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_relative_json_pointer_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_relative_json_pointer_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_relative_json_pointer_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_relative_json_pointer_format_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_relative_json_pointer_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_relative_json_pointer_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/operation.py index 80c4ef28664..10caf145727 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post/operation.py index 9abb4938fce..ad050bf2b47 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/operation.py index 292ea1ac909..3eabf9cb6f5 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/operation.py index 8313bd00fd5..a65d2466a89 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/operation.py index 9f84f5d435d..b2a9503de17 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/operation.py index 0734c74a9b2..92120c5a4f6 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/operation.py index 7ec7ea3090a..dec4b04810e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_small_multiple_of_large_integer_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_small_multiple_of_large_integer_request_body/post/operation.py index 7b2ab1cc825..61bf202e7e9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_small_multiple_of_large_integer_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_small_multiple_of_large_integer_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_small_multiple_of_large_integer_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_small_multiple_of_large_integer_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_small_multiple_of_large_integer_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_small_multiple_of_large_integer_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/operation.py index 47cfc3771e9..b13a106e0d9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_time_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_time_format_request_body/post/operation.py index ae00b95534b..3debbdae655 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_time_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_time_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_time_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_time_format_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_time_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_time_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_object_or_null_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_object_or_null_request_body/post/operation.py index f792ab074b1..b825b696244 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_object_or_null_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_object_or_null_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_object_or_null_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_object_or_null_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_object_or_null_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_object_or_null_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_or_object_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_or_object_request_body/post/operation.py index 27a44a83efd..786dc22213f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_or_object_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_or_object_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_or_object_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_or_object_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_or_object_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_or_object_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_as_array_with_one_item_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_as_array_with_one_item_request_body/post/operation.py index 75e3070b9b1..e419bf52fad 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_as_array_with_one_item_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_as_array_with_one_item_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_as_array_with_one_item_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_as_array_with_one_item_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_as_array_with_one_item_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_as_array_with_one_item_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/operation.py index 72a25cff615..0e2ab72c3d8 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/operation.py index 62870819cbd..6980ea4bd3c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/operation.py index 67331407422..24dcc79692a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/operation.py index cce37becda4..954bb2e493b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/operation.py index 3efc07a77fb..6c433a5cf83 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/operation.py index ec2dfd17c42..36898f275b3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/operation.py index 0748058e43f..b323527e8dd 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/operation.py index 332b1e3f331..644acacc6a4 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py index b8ae9395c4b..288b48db033 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post/operation.py index fe8d5a5b7e4..ac10bdccbb6 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/operation.py index a3bc01d48ae..95b6297666d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post/operation.py index e2cc98e366d..c4b656a0c06 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/operation.py index ae1ef69813d..b94fe306d33 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/operation.py index 2e69c8c5e0f..8f02ee4695d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/operation.py index 17e17846bda..53ada9bb266 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uuid_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uuid_format_request_body/post/operation.py index a8d9d683a6f..bfa25e67c7e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uuid_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uuid_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uuid_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uuid_format_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uuid_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uuid_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post/operation.py index e14d8693879..f48e75ba7bb 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post/responses/response_200/__init__.py index faf4da69820..66f4f9beaca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/operation.py index 319d03afcd8..4edb7cb9600 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/operation.py index 97c0119aa1a..21a6986926a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/operation.py index 090b14d82de..71c38714118 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py index 30fdcbd90c7..1d58b54edb9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/__init__.py index d97b1d45dc6..eaef20fef6b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post/operation.py index 1805e4ef1b5..677ac043ea6 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py index 64af8229144..078ea05f32d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py index 857ab1749c9..3ede0b7acd8 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post/operation.py index ded000f1660..3cea4644c33 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post/responses/response_200/__init__.py index c829cef057a..1f70c00aac8 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/operation.py index 01e96ea5a8d..3ce56131d8a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/operation.py index 7dc48ea05b5..d33eca98c34 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/operation.py index da0d46d7ad9..6af48eb9854 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/operation.py index 95e82a9b74d..3004ced93b0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/operation.py index 6246cf73da7..c37ac9b5e9c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/operation.py index 9d0d84c8b83..ecd9641bebb 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/operation.py index 07440623ae1..37451119733 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/operation.py index 5ddd8aba6cc..4c5ac2eb47a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/operation.py index 564492657b6..2059516c061 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/operation.py index 99431cc5f3b..f5e6430d9d7 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/operation.py index 5a9ce6a0b52..4a541430f6b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 3cf51f1225b..64ba836c19f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/operation.py index 2238c21de72..1ff2c37e6fc 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/operation.py index e72819e1ddb..278ffdb5e78 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/__init__.py index 4226a7c1a81..efad0343827 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/operation.py index a6705e72cab..e000804dec3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/__init__.py index 8750f0a1711..635883f32f3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/operation.py index 097f09a881f..125a33d7438 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/operation.py index d40fd29a04e..2e2d2d3e5a3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/operation.py index 49e765acc99..3d30b071217 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/operation.py index 82b09a8caeb..104a1059884 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/operation.py index 566cf9d7feb..eddd4a471ca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/operation.py index e79c3d855bd..a108e3cd66c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_format_response_body_for_content_types/post/operation.py index c50910e73b7..fe9520b640e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/operation.py index 20ade10b80a..e20695fc635 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/operation.py index c79175c1d7b..71e2ba358ed 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/operation.py index 42cd9b0021f..bf4623aedc3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/operation.py index db90565fec6..6f774da613e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_duration_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_duration_format_response_body_for_content_types/post/operation.py index 107fa16baea..bebdfba9a27 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_duration_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_duration_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_duration_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_duration_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_duration_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_duration_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/operation.py index 112a8424a30..e3cfc5b56e8 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/operation.py index e2279c23b6f..c5354b09d12 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/operation.py index 7534d1d4fdd..63ed47782c1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/__init__.py index 16243857094..dfd2fbbad90 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/operation.py index 3d89df03917..f3aee3de47b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py index 16243857094..dfd2fbbad90 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/operation.py index b8ff055d10c..eee05cd6095 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py index aafc74c83ab..c3672e9a210 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/operation.py index 916c091d348..15da93cddd1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/__init__.py index c1a84db233d..4dbf68a81a8 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/operation.py index eab55cb3656..652074c6d05 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/__init__.py index ff97af6059c..dcc7be25719 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/operation.py index 63dbc1d7b53..aa8a25a357b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/__init__.py index a0e1d0cfda2..606e8933ac2 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post/operation.py index e180f838792..24ad932abf2 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post/operation.py index f2d769d7c58..cf529489b19 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_float_division_inf_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_float_division_inf_response_body_for_content_types/post/operation.py index e7320988b0e..8d306bc7825 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_float_division_inf_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_float_division_inf_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_float_division_inf_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_float_division_inf_response_body_for_content_types/post/responses/response_200/__init__.py index 8b47abaef1f..51e9a1c97d6 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_float_division_inf_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_float_division_inf_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/operation.py index 564fa742323..5db275d0432 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/operation.py index 99ade598795..6acfcb141ea 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_email_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_email_format_response_body_for_content_types/post/operation.py index 2c0b9fb7c22..79db68d6350 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_email_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_email_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_email_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_email_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_email_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_email_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post/operation.py index c34feba14de..236eb0d6bc7 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post/operation.py index 8f61bfcf481..e3e4a478e27 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post/operation.py index d7fddf5533d..175fbbff811 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post/operation.py index dbb83b0f6a7..e4267eb1ecc 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post/operation.py index 0fbf7dc2eac..248bcbeb8d7 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post/operation.py index fec7112fad0..83aa57fdf6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post/operation.py index 51232349393..3bfb8e1c428 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/operation.py index 93b66401eae..49abccb576f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/__init__.py index 8b47abaef1f..51e9a1c97d6 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/operation.py index da231a84141..ab38df59a84 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/operation.py index fb8dfd0b363..bdf72453000 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_format_response_body_for_content_types/post/operation.py index 9d8a10b0675..9175dbb02f8 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_reference_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_reference_format_response_body_for_content_types/post/operation.py index 912dddc48e4..eee4a8e7528 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_reference_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_reference_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/operation.py index 9f632e99a65..e204867b76f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/__init__.py index 42765dde680..abb2bb42e96 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post/operation.py index 130e5fad600..18e865f3777 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post/responses/response_200/__init__.py index 7bc46125060..24cc7f0440e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post/operation.py index bd75ca993af..2cd09037ccc 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py index c5084b0a702..4cb91b56747 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/operation.py index 55cd085b6b5..33c16d5cd55 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py index 19511a03fd5..045c4bed0d0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/operation.py index fb63d32b1cc..b1e303fd649 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/operation.py index d5a88e876d0..200d7f5c945 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/operation.py index c080de1ae09..2900371c651 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/operation.py index 94fec2d28c4..791ac5148a5 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/operation.py index d2a9ba4469e..c5d5a367a45 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/operation.py index d67cb2110ae..10d254ab861 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py index c0091e979c5..ab072d5f591 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/operation.py index e2806d1a61d..1ee8afeee03 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/operation.py index c830d5678bf..de3b2cc64ad 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/operation.py index 15946ad6450..f3e121b2262 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/operation.py index c7464c7b38f..b213659359e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/operation.py index 95226b68f3d..487368e6d59 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/operation.py index be22504c7f3..2a050206e23 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/operation.py index 73e89eca01b..ee067bee913 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/operation.py index dfd72785ae9..79e02e500e9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/responses/response_200/__init__.py index ad5551d8a16..3c7395b2202 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/responses/response_200/__init__.py @@ -18,7 +18,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/operation.py index 578d2167c2e..023ed79ebb5 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/operation.py index b68edd3471b..4236775aec8 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/operation.py index e6fc6c285c9..e777a2b294a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/__init__.py index d3bd11681d3..8582b2edc39 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/operation.py index aa684fa8db6..8e42322b09c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/operation.py index 208bee80b1d..96e13d74b2a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py index d9a0c61ba01..63bca47cb47 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post/operation.py index 178c1eda5f8..5041b1bd61d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/operation.py index 6ae647ad6f0..063e7b0636b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/operation.py index a85a9f51f05..7437d788b5a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/operation.py index 0a73512a8b7..83459b5c299 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/operation.py index d1545d7dc02..2722bfe7b13 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py index 35d5954110c..7496fe09d24 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/operation.py index 5c40e450c0f..08725b56311 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/__init__.py index 045f0a42898..fbce7309e02 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/operation.py index 907a62f5004..837f925fd74 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/__init__.py index 16243857094..dfd2fbbad90 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/operation.py index d28a04439db..ffb5ddcab79 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/operation.py index 08e97aa21b7..f97eec3b1ae 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/__init__.py index 6d2bcdf9e1a..9d285a6ec3c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/operation.py index fc443417cde..231922b3580 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/operation.py index 085a08a618e..d22332a89f6 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/operation.py index 1fae0ff470d..71722cfa325 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 3cf51f1225b..64ba836c19f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/operation.py index 0f147a7dca7..a8b04efec6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/operation.py index a04bd8b8243..62550a997d7 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/__init__.py index 6d2bcdf9e1a..9d285a6ec3c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/operation.py index e4d865cd63e..d1033d404ff 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/operation.py index f271f994e3f..193dddb2f2e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/operation.py index 6956b643f85..bd3fe0fe051 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py index aa07d6c6835..5e16c1e8752 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/operation.py index dc7e4baee86..9df83da8677 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/responses/response_200/__init__.py index 6d332b0a9a0..0ae5bae1dce 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/operation.py index 65c5db69ce6..897602a2fb7 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/operation.py index 724e8380844..881bf464a6f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/__init__.py index 30ab52c1eed..f8535234951 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/operation.py index 371cc9b476a..53ed54e4574 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/operation.py index 74d601d6ca6..aa637285008 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py index c6bddfea3ee..cd0fa51a4cc 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/operation.py index 222ecd2bd65..bcc069b06c5 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/operation.py index 34b7f8a85b8..0c6f5ec113b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regex_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regex_format_response_body_for_content_types/post/operation.py index 81266b05535..062d33e0500 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regex_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regex_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regex_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regex_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regex_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regex_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/operation.py index 8ca593f1ec9..927f3bf83a1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post/operation.py index 3379e135512..8a020b6fb27 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/operation.py index f0905a65506..812fe2c0064 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/operation.py index c09510aad65..f58c763ae56 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/operation.py index a4ce81f6b8b..cdc6f7f5375 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/operation.py index 78ca7737667..6c0cbe71a78 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/operation.py index 7e1bd517f1b..e50007df51a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/operation.py index 0f0f1c9b902..77aaf54b1d8 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 16243857094..dfd2fbbad90 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/operation.py index 787bdad21e3..fec47ea2af7 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post/operation.py index 36a9c192879..3d741343282 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post/responses/response_200/__init__.py index 8b47abaef1f..51e9a1c97d6 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/operation.py index 102cea8c432..98efe38d144 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/__init__.py index 3cf51f1225b..64ba836c19f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_time_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_time_format_response_body_for_content_types/post/operation.py index 79f07712bd3..c7a6d364146 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_time_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_time_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_time_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_time_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_time_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_time_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post/operation.py index d7ba053d548..9f5fe8e8d74 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post/responses/response_200/__init__.py index b422df60b99..e4e1e51511f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post/responses/response_200/__init__.py @@ -19,7 +19,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_or_object_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_or_object_response_body_for_content_types/post/operation.py index e1c63ea3d78..7d2b605e01e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_or_object_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_or_object_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_or_object_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_or_object_response_body_for_content_types/post/responses/response_200/__init__.py index d7b4f85c9fd..4d8e3b9c280 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_or_object_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_or_object_response_body_for_content_types/post/responses/response_200/__init__.py @@ -18,7 +18,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post/operation.py index 363d297a19f..43b0583bba0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post/responses/response_200/__init__.py index 3cf51f1225b..64ba836c19f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/operation.py index 871a18a9998..4b14e79d839 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/operation.py index 66e931b6c94..45e124d6d6b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/operation.py index 8b98ff6d03b..8c91025ac74 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/__init__.py index 38b2ee299ca..dc7a87f393c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/operation.py index d81235a3899..82edc435d55 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/operation.py index a764edcd841..71fc36db9e9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/operation.py index 67f2012e30b..b8df0d0c9f9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 6d2bcdf9e1a..9d285a6ec3c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/operation.py index 19b2e351702..cbe5e00b0de 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py index fae63f156f2..2cb3a16ddea 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py index 53c3cc7a89c..1a17d0ef0ea 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py index d8c291ec290..60145d32e1b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post/operation.py index ab2f9d01e07..70daeb8c2ce 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/operation.py index 85ab539389c..57be20ce4fb 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post/operation.py index 04c9e6f9f85..b592946b73c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/operation.py index 2e78f3fc368..9ef0b5fdf24 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/operation.py index ce243405e0e..d90d3bde189 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/operation.py index 94aa199b34a..bd98a5bd661 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uuid_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uuid_format_response_body_for_content_types/post/operation.py index 90c0a364934..4a49db1c13b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uuid_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uuid_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uuid_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uuid_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uuid_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uuid_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post/operation.py index 744418d82c9..7f9170f4515 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..866cb54d412 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/paths/operators/post.md b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/paths/operators/post.md index ffee73202fe..91b7d6fdfc2 100644 --- a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/paths/operators/post.md +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/paths/operators/post.md @@ -54,14 +54,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | OK +200 | [_200.ApiResponse](#_200-apiresponse) | OK -## ResponseFor200 +## _200 ### Description OK -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/operation.py b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/operation.py index e104cae96a0..2c0b42b291b 100644 --- a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/operation.py +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/responses/response_200/__init__.py b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/responses/response_200/__init__.py index ac0527321a2..00994f520b5 100644 --- a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/responses/response_200/__init__.py +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/openapi_features/security/python/docs/paths/path_with_no_explicit_security/get.md b/samples/client/openapi_features/security/python/docs/paths/path_with_no_explicit_security/get.md index 63d1b549db8..95064923c05 100644 --- a/samples/client/openapi_features/security/python/docs/paths/path_with_no_explicit_security/get.md +++ b/samples/client/openapi_features/security/python/docs/paths/path_with_no_explicit_security/get.md @@ -35,14 +35,14 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | OK +200 | [_200.ApiResponse](#_200-apiresponse) | OK -## ResponseFor200 +## _200 ### Description OK -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/openapi_features/security/python/docs/paths/path_with_one_explicit_security/get.md b/samples/client/openapi_features/security/python/docs/paths/path_with_one_explicit_security/get.md index c52ddcbb129..60193c0f8cc 100644 --- a/samples/client/openapi_features/security/python/docs/paths/path_with_one_explicit_security/get.md +++ b/samples/client/openapi_features/security/python/docs/paths/path_with_one_explicit_security/get.md @@ -37,14 +37,14 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | OK +200 | [_200.ApiResponse](#_200-apiresponse) | OK -## ResponseFor200 +## _200 ### Description OK -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/openapi_features/security/python/docs/paths/path_with_security_from_root/get.md b/samples/client/openapi_features/security/python/docs/paths/path_with_security_from_root/get.md index dafacaace26..67482d675ff 100644 --- a/samples/client/openapi_features/security/python/docs/paths/path_with_security_from_root/get.md +++ b/samples/client/openapi_features/security/python/docs/paths/path_with_security_from_root/get.md @@ -37,14 +37,14 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | OK +200 | [_200.ApiResponse](#_200-apiresponse) | OK -## ResponseFor200 +## _200 ### Description OK -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/openapi_features/security/python/docs/paths/path_with_two_explicit_security/get.md b/samples/client/openapi_features/security/python/docs/paths/path_with_two_explicit_security/get.md index 4690217ed7d..a768da1ded5 100644 --- a/samples/client/openapi_features/security/python/docs/paths/path_with_two_explicit_security/get.md +++ b/samples/client/openapi_features/security/python/docs/paths/path_with_two_explicit_security/get.md @@ -37,14 +37,14 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | OK +200 | [_200.ApiResponse](#_200-apiresponse) | OK -## ResponseFor200 +## _200 ### Description OK -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_no_explicit_security/get/operation.py b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_no_explicit_security/get/operation.py index e5b06b7f0bb..45e4785b85f 100644 --- a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_no_explicit_security/get/operation.py +++ b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_no_explicit_security/get/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_no_explicit_security/get/responses/response_200/__init__.py b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_no_explicit_security/get/responses/response_200/__init__.py index ac0527321a2..00994f520b5 100644 --- a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_no_explicit_security/get/responses/response_200/__init__.py +++ b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_no_explicit_security/get/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_one_explicit_security/get/operation.py b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_one_explicit_security/get/operation.py index ab6869f2a45..d18c428a944 100644 --- a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_one_explicit_security/get/operation.py +++ b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_one_explicit_security/get/operation.py @@ -19,11 +19,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_one_explicit_security/get/responses/response_200/__init__.py b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_one_explicit_security/get/responses/response_200/__init__.py index ac0527321a2..00994f520b5 100644 --- a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_one_explicit_security/get/responses/response_200/__init__.py +++ b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_one_explicit_security/get/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_security_from_root/get/operation.py b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_security_from_root/get/operation.py index 677e4d34b58..0fb1a8da52f 100644 --- a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_security_from_root/get/operation.py +++ b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_security_from_root/get/operation.py @@ -27,11 +27,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_security_from_root/get/responses/response_200/__init__.py b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_security_from_root/get/responses/response_200/__init__.py index ac0527321a2..00994f520b5 100644 --- a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_security_from_root/get/responses/response_200/__init__.py +++ b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_security_from_root/get/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/operation.py b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/operation.py index f0ff8df1e9e..31c04969d4c 100644 --- a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/operation.py +++ b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/operation.py @@ -23,11 +23,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/responses/response_200/__init__.py b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/responses/response_200/__init__.py index ac0527321a2..00994f520b5 100644 --- a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/responses/response_200/__init__.py +++ b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/java/docs/components/headers/int32jsoncontenttypeheader/content/applicationjson/Int32JsonContentTypeHeaderSchema.md b/samples/client/petstore/java/docs/components/headers/int32jsoncontenttypeheader/content/applicationjson/Int32JsonContentTypeHeaderSchema.md index 0bfb1bc74f2..de1f0ba7c0b 100644 --- a/samples/client/petstore/java/docs/components/headers/int32jsoncontenttypeheader/content/applicationjson/Int32JsonContentTypeHeaderSchema.md +++ b/samples/client/petstore/java/docs/components/headers/int32jsoncontenttypeheader/content/applicationjson/Int32JsonContentTypeHeaderSchema.md @@ -3,13 +3,13 @@ public class Int32JsonContentTypeHeaderSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Int32JsonContentTypeHeaderSchema.Int32JsonContentTypeHeaderSchema1Boxed](#int32jsoncontenttypeheaderschema1boxed)
abstract sealed validated payload class | +| sealed interface | [Int32JsonContentTypeHeaderSchema.Int32JsonContentTypeHeaderSchema1Boxed](#int32jsoncontenttypeheaderschema1boxed)
sealed interface for validated payloads | | record | [Int32JsonContentTypeHeaderSchema.Int32JsonContentTypeHeaderSchema1BoxedNumber](#int32jsoncontenttypeheaderschema1boxednumber)
boxed class to store validated Number payloads | | static class | [Int32JsonContentTypeHeaderSchema.Int32JsonContentTypeHeaderSchema1](#int32jsoncontenttypeheaderschema1)
schema class | diff --git a/samples/client/petstore/java/docs/components/headers/numberheader/NumberHeaderSchema.md b/samples/client/petstore/java/docs/components/headers/numberheader/NumberHeaderSchema.md index fdb2b89ae35..95b3751f87b 100644 --- a/samples/client/petstore/java/docs/components/headers/numberheader/NumberHeaderSchema.md +++ b/samples/client/petstore/java/docs/components/headers/numberheader/NumberHeaderSchema.md @@ -3,13 +3,13 @@ public class NumberHeaderSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [NumberHeaderSchema.NumberHeaderSchema1Boxed](#numberheaderschema1boxed)
abstract sealed validated payload class | +| sealed interface | [NumberHeaderSchema.NumberHeaderSchema1Boxed](#numberheaderschema1boxed)
sealed interface for validated payloads | | record | [NumberHeaderSchema.NumberHeaderSchema1BoxedString](#numberheaderschema1boxedstring)
boxed class to store validated String payloads | | static class | [NumberHeaderSchema.NumberHeaderSchema1](#numberheaderschema1)
schema class | diff --git a/samples/client/petstore/java/docs/components/headers/refcontentschemaheader/content/applicationjson/RefContentSchemaHeaderSchema.md b/samples/client/petstore/java/docs/components/headers/refcontentschemaheader/content/applicationjson/RefContentSchemaHeaderSchema.md index be731d333f4..eda54180919 100644 --- a/samples/client/petstore/java/docs/components/headers/refcontentschemaheader/content/applicationjson/RefContentSchemaHeaderSchema.md +++ b/samples/client/petstore/java/docs/components/headers/refcontentschemaheader/content/applicationjson/RefContentSchemaHeaderSchema.md @@ -4,7 +4,7 @@ extends [StringWithValidation1](../../../../../../components/schemas/StringWithV A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/components/headers/refschemaheader/RefSchemaHeaderSchema.md b/samples/client/petstore/java/docs/components/headers/refschemaheader/RefSchemaHeaderSchema.md index 3cbb1ed09ba..d73c936d9b6 100644 --- a/samples/client/petstore/java/docs/components/headers/refschemaheader/RefSchemaHeaderSchema.md +++ b/samples/client/petstore/java/docs/components/headers/refschemaheader/RefSchemaHeaderSchema.md @@ -4,7 +4,7 @@ extends [StringWithValidation1](../../../components/schemas/StringWithValidation A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/components/headers/stringheader/StringHeaderSchema.md b/samples/client/petstore/java/docs/components/headers/stringheader/StringHeaderSchema.md index 4be97b9b267..a62142869f9 100644 --- a/samples/client/petstore/java/docs/components/headers/stringheader/StringHeaderSchema.md +++ b/samples/client/petstore/java/docs/components/headers/stringheader/StringHeaderSchema.md @@ -3,13 +3,13 @@ public class StringHeaderSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [StringHeaderSchema.StringHeaderSchema1Boxed](#stringheaderschema1boxed)
abstract sealed validated payload class | +| sealed interface | [StringHeaderSchema.StringHeaderSchema1Boxed](#stringheaderschema1boxed)
sealed interface for validated payloads | | record | [StringHeaderSchema.StringHeaderSchema1BoxedString](#stringheaderschema1boxedstring)
boxed class to store validated String payloads | | static class | [StringHeaderSchema.StringHeaderSchema1](#stringheaderschema1)
schema class | diff --git a/samples/client/petstore/java/docs/components/parameters/componentrefschemastringwithvalidation/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/components/parameters/componentrefschemastringwithvalidation/content/applicationjson/ApplicationjsonSchema.md index 5fa269d3ba1..3853dcd998e 100644 --- a/samples/client/petstore/java/docs/components/parameters/componentrefschemastringwithvalidation/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/components/parameters/componentrefschemastringwithvalidation/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [StringWithValidation1](../../../../../../components/schemas/StringWithV A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/components/parameters/pathusername/Schema.md b/samples/client/petstore/java/docs/components/parameters/pathusername/Schema.md index c0205e89829..07b8e07c3a7 100644 --- a/samples/client/petstore/java/docs/components/parameters/pathusername/Schema.md +++ b/samples/client/petstore/java/docs/components/parameters/pathusername/Schema.md @@ -3,13 +3,13 @@ public class Schema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | +| sealed interface | [Schema.Schema1Boxed](#schema1boxed)
sealed interface for validated payloads | | record | [Schema.Schema1BoxedString](#schema1boxedstring)
boxed class to store validated String payloads | | static class | [Schema.Schema1](#schema1)
schema class | diff --git a/samples/client/petstore/java/docs/components/parameters/refschemastringwithvalidation/Schema.md b/samples/client/petstore/java/docs/components/parameters/refschemastringwithvalidation/Schema.md index 293e7550897..29a01b850e9 100644 --- a/samples/client/petstore/java/docs/components/parameters/refschemastringwithvalidation/Schema.md +++ b/samples/client/petstore/java/docs/components/parameters/refschemastringwithvalidation/Schema.md @@ -4,7 +4,7 @@ extends [StringWithValidation1](../../../components/schemas/StringWithValidation A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/components/requestbodies/client/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/components/requestbodies/client/content/applicationjson/ApplicationjsonSchema.md index 7301a74f469..5a8221e0efb 100644 --- a/samples/client/petstore/java/docs/components/requestbodies/client/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/components/requestbodies/client/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [Client1](../../../../../components/schemas/Client.md#client) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/components/requestbodies/pet/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/components/requestbodies/pet/content/applicationjson/ApplicationjsonSchema.md index 43f082243b3..33800a35ef7 100644 --- a/samples/client/petstore/java/docs/components/requestbodies/pet/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/components/requestbodies/pet/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [Pet1](../../../../../components/schemas/Pet.md#pet) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/components/requestbodies/pet/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/components/requestbodies/pet/content/applicationxml/ApplicationxmlSchema.md index 81670226f97..87b9e69e465 100644 --- a/samples/client/petstore/java/docs/components/requestbodies/pet/content/applicationxml/ApplicationxmlSchema.md +++ b/samples/client/petstore/java/docs/components/requestbodies/pet/content/applicationxml/ApplicationxmlSchema.md @@ -4,7 +4,7 @@ extends [RefPet1](../../../../../components/schemas/RefPet.md#refpet) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.md index b4def376bbf..1c136590bb9 100644 --- a/samples/client/petstore/java/docs/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.md @@ -3,7 +3,7 @@ public class ApplicationjsonSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -11,7 +11,7 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | | static class | [ApplicationjsonSchema.ApplicationjsonSchemaListBuilder](#applicationjsonschemalistbuilder)
builder for List payloads | diff --git a/samples/client/petstore/java/docs/components/responses/headerswithnobody/headers/location/LocationSchema.md b/samples/client/petstore/java/docs/components/responses/headerswithnobody/headers/location/LocationSchema.md index 09d320716f4..82bd0c2a14f 100644 --- a/samples/client/petstore/java/docs/components/responses/headerswithnobody/headers/location/LocationSchema.md +++ b/samples/client/petstore/java/docs/components/responses/headerswithnobody/headers/location/LocationSchema.md @@ -3,13 +3,13 @@ public class LocationSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [LocationSchema.LocationSchema1Boxed](#locationschema1boxed)
abstract sealed validated payload class | +| sealed interface | [LocationSchema.LocationSchema1Boxed](#locationschema1boxed)
sealed interface for validated payloads | | record | [LocationSchema.LocationSchema1BoxedString](#locationschema1boxedstring)
boxed class to store validated String payloads | | static class | [LocationSchema.LocationSchema1](#locationschema1)
schema class | diff --git a/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.md index de72ab3812d..630e488a953 100644 --- a/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.md @@ -3,7 +3,7 @@ public class ApplicationjsonSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -11,7 +11,7 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | | static class | [ApplicationjsonSchema.ApplicationjsonSchemaListBuilder](#applicationjsonschemalistbuilder)
builder for List payloads | diff --git a/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.md index 0f246551af2..0519c5f3b6f 100644 --- a/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.md +++ b/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.md @@ -3,7 +3,7 @@ public class ApplicationxmlSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -11,7 +11,7 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ApplicationxmlSchema.ApplicationxmlSchema1Boxed](#applicationxmlschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationxmlSchema.ApplicationxmlSchema1Boxed](#applicationxmlschema1boxed)
sealed interface for validated payloads | | record | [ApplicationxmlSchema.ApplicationxmlSchema1BoxedList](#applicationxmlschema1boxedlist)
boxed class to store validated List payloads | | static class | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | | static class | [ApplicationxmlSchema.ApplicationxmlSchemaListBuilder](#applicationxmlschemalistbuilder)
builder for List payloads | diff --git a/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.md index 315414063ec..4c66fb9c3a2 100644 --- a/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.md @@ -3,7 +3,7 @@ public class ApplicationjsonSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -11,12 +11,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | | static class | [ApplicationjsonSchema.ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder)
builder for Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchemaMap](#applicationjsonschemamap)
output class for Map payloads | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonAdditionalPropertiesBoxed](#applicationjsonadditionalpropertiesboxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonAdditionalPropertiesBoxed](#applicationjsonadditionalpropertiesboxed)
sealed interface for validated payloads | | record | [ApplicationjsonSchema.ApplicationjsonAdditionalPropertiesBoxedNumber](#applicationjsonadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | | static class | [ApplicationjsonSchema.ApplicationjsonAdditionalProperties](#applicationjsonadditionalproperties)
schema class | diff --git a/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/headers/someheader/SomeHeaderSchema.md b/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/headers/someheader/SomeHeaderSchema.md index 57bec3d8d1f..752e31ffc15 100644 --- a/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/headers/someheader/SomeHeaderSchema.md +++ b/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/headers/someheader/SomeHeaderSchema.md @@ -3,13 +3,13 @@ public class SomeHeaderSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [SomeHeaderSchema.SomeHeaderSchema1Boxed](#someheaderschema1boxed)
abstract sealed validated payload class | +| sealed interface | [SomeHeaderSchema.SomeHeaderSchema1Boxed](#someheaderschema1boxed)
sealed interface for validated payloads | | record | [SomeHeaderSchema.SomeHeaderSchema1BoxedString](#someheaderschema1boxedstring)
boxed class to store validated String payloads | | static class | [SomeHeaderSchema.SomeHeaderSchema1](#someheaderschema1)
schema class | diff --git a/samples/client/petstore/java/docs/components/responses/successwithjsonapiresponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/components/responses/successwithjsonapiresponse/content/applicationjson/ApplicationjsonSchema.md index a5ef9cdabb9..5220d8f5ade 100644 --- a/samples/client/petstore/java/docs/components/responses/successwithjsonapiresponse/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/components/responses/successwithjsonapiresponse/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [ApiResponseSchema1](../../../../../../components/schemas/ApiResponseSch A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/components/schemas/AbstractStepMessage.md b/samples/client/petstore/java/docs/components/schemas/AbstractStepMessage.md index 9a9efcc36b6..e908b99ca3a 100644 --- a/samples/client/petstore/java/docs/components/schemas/AbstractStepMessage.md +++ b/samples/client/petstore/java/docs/components/schemas/AbstractStepMessage.md @@ -4,7 +4,7 @@ public class AbstractStepMessage
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,12 +12,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [AbstractStepMessage.AbstractStepMessage1Boxed](#abstractstepmessage1boxed)
abstract sealed validated payload class | +| sealed interface | [AbstractStepMessage.AbstractStepMessage1Boxed](#abstractstepmessage1boxed)
sealed interface for validated payloads | | record | [AbstractStepMessage.AbstractStepMessage1BoxedMap](#abstractstepmessage1boxedmap)
boxed class to store validated Map payloads | | static class | [AbstractStepMessage.AbstractStepMessage1](#abstractstepmessage1)
schema class | | static class | [AbstractStepMessage.AbstractStepMessageMapBuilder](#abstractstepmessagemapbuilder)
builder for Map payloads | | static class | [AbstractStepMessage.AbstractStepMessageMap](#abstractstepmessagemap)
output class for Map payloads | -| sealed interface | [AbstractStepMessage.DiscriminatorBoxed](#discriminatorboxed)
abstract sealed validated payload class | +| sealed interface | [AbstractStepMessage.DiscriminatorBoxed](#discriminatorboxed)
sealed interface for validated payloads | | record | [AbstractStepMessage.DiscriminatorBoxedString](#discriminatorboxedstring)
boxed class to store validated String payloads | | static class | [AbstractStepMessage.Discriminator](#discriminator)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesClass.md b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesClass.md index bf356f1f040..f316710c8bb 100644 --- a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesClass.md +++ b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesClass.md @@ -4,7 +4,7 @@ public class AdditionalPropertiesClass
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [AdditionalPropertiesClass.AdditionalPropertiesClass1Boxed](#additionalpropertiesclass1boxed)
abstract sealed validated payload class | +| sealed interface | [AdditionalPropertiesClass.AdditionalPropertiesClass1Boxed](#additionalpropertiesclass1boxed)
sealed interface for validated payloads | | record | [AdditionalPropertiesClass.AdditionalPropertiesClass1BoxedMap](#additionalpropertiesclass1boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesClass.AdditionalPropertiesClass1](#additionalpropertiesclass1)
schema class | | static class | [AdditionalPropertiesClass.AdditionalPropertiesClassMapBuilder](#additionalpropertiesclassmapbuilder)
builder for Map payloads | | static class | [AdditionalPropertiesClass.AdditionalPropertiesClassMap](#additionalpropertiesclassmap)
output class for Map payloads | -| sealed interface | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesStringBoxed](#mapwithundeclaredpropertiesstringboxed)
abstract sealed validated payload class | +| sealed interface | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesStringBoxed](#mapwithundeclaredpropertiesstringboxed)
sealed interface for validated payloads | | record | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesStringBoxedMap](#mapwithundeclaredpropertiesstringboxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesString](#mapwithundeclaredpropertiesstring)
schema class | | static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesStringMapBuilder](#mapwithundeclaredpropertiesstringmapbuilder)
builder for Map payloads | | static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesStringMap](#mapwithundeclaredpropertiesstringmap)
output class for Map payloads | -| sealed interface | [AdditionalPropertiesClass.AdditionalProperties5Boxed](#additionalproperties5boxed)
abstract sealed validated payload class | +| sealed interface | [AdditionalPropertiesClass.AdditionalProperties5Boxed](#additionalproperties5boxed)
sealed interface for validated payloads | | record | [AdditionalPropertiesClass.AdditionalProperties5BoxedString](#additionalproperties5boxedstring)
boxed class to store validated String payloads | | static class | [AdditionalPropertiesClass.AdditionalProperties5](#additionalproperties5)
schema class | -| sealed interface | [AdditionalPropertiesClass.EmptyMapBoxed](#emptymapboxed)
abstract sealed validated payload class | +| sealed interface | [AdditionalPropertiesClass.EmptyMapBoxed](#emptymapboxed)
sealed interface for validated payloads | | record | [AdditionalPropertiesClass.EmptyMapBoxedMap](#emptymapboxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesClass.EmptyMap](#emptymap)
schema class | | static class | [AdditionalPropertiesClass.EmptyMapMapBuilder](#emptymapmapbuilder)
builder for Map payloads | | static class | [AdditionalPropertiesClass.EmptyMapMap](#emptymapmap)
output class for Map payloads | -| sealed interface | [AdditionalPropertiesClass.AdditionalProperties4Boxed](#additionalproperties4boxed)
abstract sealed validated payload class | +| sealed interface | [AdditionalPropertiesClass.AdditionalProperties4Boxed](#additionalproperties4boxed)
sealed interface for validated payloads | | record | [AdditionalPropertiesClass.AdditionalProperties4BoxedVoid](#additionalproperties4boxedvoid)
boxed class to store validated null payloads | | record | [AdditionalPropertiesClass.AdditionalProperties4BoxedBoolean](#additionalproperties4boxedboolean)
boxed class to store validated boolean payloads | | record | [AdditionalPropertiesClass.AdditionalProperties4BoxedNumber](#additionalproperties4boxednumber)
boxed class to store validated Number payloads | @@ -38,12 +38,12 @@ A class that contains necessary nested | record | [AdditionalPropertiesClass.AdditionalProperties4BoxedList](#additionalproperties4boxedlist)
boxed class to store validated List payloads | | record | [AdditionalPropertiesClass.AdditionalProperties4BoxedMap](#additionalproperties4boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesClass.AdditionalProperties4](#additionalproperties4)
schema class | -| sealed interface | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype3Boxed](#mapwithundeclaredpropertiesanytype3boxed)
abstract sealed validated payload class | +| sealed interface | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype3Boxed](#mapwithundeclaredpropertiesanytype3boxed)
sealed interface for validated payloads | | record | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype3BoxedMap](#mapwithundeclaredpropertiesanytype3boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype3](#mapwithundeclaredpropertiesanytype3)
schema class | | static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype3MapBuilder](#mapwithundeclaredpropertiesanytype3mapbuilder)
builder for Map payloads | | static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype3Map](#mapwithundeclaredpropertiesanytype3map)
output class for Map payloads | -| sealed interface | [AdditionalPropertiesClass.AdditionalProperties3Boxed](#additionalproperties3boxed)
abstract sealed validated payload class | +| sealed interface | [AdditionalPropertiesClass.AdditionalProperties3Boxed](#additionalproperties3boxed)
sealed interface for validated payloads | | record | [AdditionalPropertiesClass.AdditionalProperties3BoxedVoid](#additionalproperties3boxedvoid)
boxed class to store validated null payloads | | record | [AdditionalPropertiesClass.AdditionalProperties3BoxedBoolean](#additionalproperties3boxedboolean)
boxed class to store validated boolean payloads | | record | [AdditionalPropertiesClass.AdditionalProperties3BoxedNumber](#additionalproperties3boxednumber)
boxed class to store validated Number payloads | @@ -51,13 +51,13 @@ A class that contains necessary nested | record | [AdditionalPropertiesClass.AdditionalProperties3BoxedList](#additionalproperties3boxedlist)
boxed class to store validated List payloads | | record | [AdditionalPropertiesClass.AdditionalProperties3BoxedMap](#additionalproperties3boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesClass.AdditionalProperties3](#additionalproperties3)
schema class | -| sealed interface | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype2Boxed](#mapwithundeclaredpropertiesanytype2boxed)
abstract sealed validated payload class | +| sealed interface | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype2Boxed](#mapwithundeclaredpropertiesanytype2boxed)
sealed interface for validated payloads | | record | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype2BoxedMap](#mapwithundeclaredpropertiesanytype2boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype2](#mapwithundeclaredpropertiesanytype2)
schema class | -| sealed interface | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype1Boxed](#mapwithundeclaredpropertiesanytype1boxed)
abstract sealed validated payload class | +| sealed interface | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype1Boxed](#mapwithundeclaredpropertiesanytype1boxed)
sealed interface for validated payloads | | record | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype1BoxedMap](#mapwithundeclaredpropertiesanytype1boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype1](#mapwithundeclaredpropertiesanytype1)
schema class | -| sealed interface | [AdditionalPropertiesClass.Anytype1Boxed](#anytype1boxed)
abstract sealed validated payload class | +| sealed interface | [AdditionalPropertiesClass.Anytype1Boxed](#anytype1boxed)
sealed interface for validated payloads | | record | [AdditionalPropertiesClass.Anytype1BoxedVoid](#anytype1boxedvoid)
boxed class to store validated null payloads | | record | [AdditionalPropertiesClass.Anytype1BoxedBoolean](#anytype1boxedboolean)
boxed class to store validated boolean payloads | | record | [AdditionalPropertiesClass.Anytype1BoxedNumber](#anytype1boxednumber)
boxed class to store validated Number payloads | @@ -65,25 +65,25 @@ A class that contains necessary nested | record | [AdditionalPropertiesClass.Anytype1BoxedList](#anytype1boxedlist)
boxed class to store validated List payloads | | record | [AdditionalPropertiesClass.Anytype1BoxedMap](#anytype1boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesClass.Anytype1](#anytype1)
schema class | -| sealed interface | [AdditionalPropertiesClass.MapOfMapPropertyBoxed](#mapofmappropertyboxed)
abstract sealed validated payload class | +| sealed interface | [AdditionalPropertiesClass.MapOfMapPropertyBoxed](#mapofmappropertyboxed)
sealed interface for validated payloads | | record | [AdditionalPropertiesClass.MapOfMapPropertyBoxedMap](#mapofmappropertyboxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesClass.MapOfMapProperty](#mapofmapproperty)
schema class | | static class | [AdditionalPropertiesClass.MapOfMapPropertyMapBuilder](#mapofmappropertymapbuilder)
builder for Map payloads | | static class | [AdditionalPropertiesClass.MapOfMapPropertyMap](#mapofmappropertymap)
output class for Map payloads | -| sealed interface | [AdditionalPropertiesClass.AdditionalProperties1Boxed](#additionalproperties1boxed)
abstract sealed validated payload class | +| sealed interface | [AdditionalPropertiesClass.AdditionalProperties1Boxed](#additionalproperties1boxed)
sealed interface for validated payloads | | record | [AdditionalPropertiesClass.AdditionalProperties1BoxedMap](#additionalproperties1boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesClass.AdditionalProperties1](#additionalproperties1)
schema class | | static class | [AdditionalPropertiesClass.AdditionalPropertiesMapBuilder2](#additionalpropertiesmapbuilder2)
builder for Map payloads | | static class | [AdditionalPropertiesClass.AdditionalPropertiesMap](#additionalpropertiesmap)
output class for Map payloads | -| sealed interface | [AdditionalPropertiesClass.AdditionalProperties2Boxed](#additionalproperties2boxed)
abstract sealed validated payload class | +| sealed interface | [AdditionalPropertiesClass.AdditionalProperties2Boxed](#additionalproperties2boxed)
sealed interface for validated payloads | | record | [AdditionalPropertiesClass.AdditionalProperties2BoxedString](#additionalproperties2boxedstring)
boxed class to store validated String payloads | | static class | [AdditionalPropertiesClass.AdditionalProperties2](#additionalproperties2)
schema class | -| sealed interface | [AdditionalPropertiesClass.MapPropertyBoxed](#mappropertyboxed)
abstract sealed validated payload class | +| sealed interface | [AdditionalPropertiesClass.MapPropertyBoxed](#mappropertyboxed)
sealed interface for validated payloads | | record | [AdditionalPropertiesClass.MapPropertyBoxedMap](#mappropertyboxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesClass.MapProperty](#mapproperty)
schema class | | static class | [AdditionalPropertiesClass.MapPropertyMapBuilder](#mappropertymapbuilder)
builder for Map payloads | | static class | [AdditionalPropertiesClass.MapPropertyMap](#mappropertymap)
output class for Map payloads | -| sealed interface | [AdditionalPropertiesClass.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| sealed interface | [AdditionalPropertiesClass.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | | record | [AdditionalPropertiesClass.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | | static class | [AdditionalPropertiesClass.AdditionalProperties](#additionalproperties)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesSchema.md b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesSchema.md index 5598285cc49..bf4ef48b838 100644 --- a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesSchema.md @@ -4,7 +4,7 @@ public class AdditionalPropertiesSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,15 +12,15 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [AdditionalPropertiesSchema.AdditionalPropertiesSchema1Boxed](#additionalpropertiesschema1boxed)
abstract sealed validated payload class | +| sealed interface | [AdditionalPropertiesSchema.AdditionalPropertiesSchema1Boxed](#additionalpropertiesschema1boxed)
sealed interface for validated payloads | | record | [AdditionalPropertiesSchema.AdditionalPropertiesSchema1BoxedMap](#additionalpropertiesschema1boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesSchema.AdditionalPropertiesSchema1](#additionalpropertiesschema1)
schema class | -| sealed interface | [AdditionalPropertiesSchema.Schema2Boxed](#schema2boxed)
abstract sealed validated payload class | +| sealed interface | [AdditionalPropertiesSchema.Schema2Boxed](#schema2boxed)
sealed interface for validated payloads | | record | [AdditionalPropertiesSchema.Schema2BoxedMap](#schema2boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesSchema.Schema2](#schema2)
schema class | | static class | [AdditionalPropertiesSchema.Schema2MapBuilder](#schema2mapbuilder)
builder for Map payloads | | static class | [AdditionalPropertiesSchema.Schema2Map](#schema2map)
output class for Map payloads | -| sealed interface | [AdditionalPropertiesSchema.AdditionalProperties2Boxed](#additionalproperties2boxed)
abstract sealed validated payload class | +| sealed interface | [AdditionalPropertiesSchema.AdditionalProperties2Boxed](#additionalproperties2boxed)
sealed interface for validated payloads | | record | [AdditionalPropertiesSchema.AdditionalProperties2BoxedVoid](#additionalproperties2boxedvoid)
boxed class to store validated null payloads | | record | [AdditionalPropertiesSchema.AdditionalProperties2BoxedBoolean](#additionalproperties2boxedboolean)
boxed class to store validated boolean payloads | | record | [AdditionalPropertiesSchema.AdditionalProperties2BoxedNumber](#additionalproperties2boxednumber)
boxed class to store validated Number payloads | @@ -28,12 +28,12 @@ A class that contains necessary nested | record | [AdditionalPropertiesSchema.AdditionalProperties2BoxedList](#additionalproperties2boxedlist)
boxed class to store validated List payloads | | record | [AdditionalPropertiesSchema.AdditionalProperties2BoxedMap](#additionalproperties2boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesSchema.AdditionalProperties2](#additionalproperties2)
schema class | -| sealed interface | [AdditionalPropertiesSchema.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | +| sealed interface | [AdditionalPropertiesSchema.Schema1Boxed](#schema1boxed)
sealed interface for validated payloads | | record | [AdditionalPropertiesSchema.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesSchema.Schema1](#schema1)
schema class | | static class | [AdditionalPropertiesSchema.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [AdditionalPropertiesSchema.Schema1Map](#schema1map)
output class for Map payloads | -| sealed interface | [AdditionalPropertiesSchema.AdditionalProperties1Boxed](#additionalproperties1boxed)
abstract sealed validated payload class | +| sealed interface | [AdditionalPropertiesSchema.AdditionalProperties1Boxed](#additionalproperties1boxed)
sealed interface for validated payloads | | record | [AdditionalPropertiesSchema.AdditionalProperties1BoxedVoid](#additionalproperties1boxedvoid)
boxed class to store validated null payloads | | record | [AdditionalPropertiesSchema.AdditionalProperties1BoxedBoolean](#additionalproperties1boxedboolean)
boxed class to store validated boolean payloads | | record | [AdditionalPropertiesSchema.AdditionalProperties1BoxedNumber](#additionalproperties1boxednumber)
boxed class to store validated Number payloads | @@ -41,12 +41,12 @@ A class that contains necessary nested | record | [AdditionalPropertiesSchema.AdditionalProperties1BoxedList](#additionalproperties1boxedlist)
boxed class to store validated List payloads | | record | [AdditionalPropertiesSchema.AdditionalProperties1BoxedMap](#additionalproperties1boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesSchema.AdditionalProperties1](#additionalproperties1)
schema class | -| sealed interface | [AdditionalPropertiesSchema.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | +| sealed interface | [AdditionalPropertiesSchema.Schema0Boxed](#schema0boxed)
sealed interface for validated payloads | | record | [AdditionalPropertiesSchema.Schema0BoxedMap](#schema0boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesSchema.Schema0](#schema0)
schema class | | static class | [AdditionalPropertiesSchema.Schema0MapBuilder](#schema0mapbuilder)
builder for Map payloads | | static class | [AdditionalPropertiesSchema.Schema0Map](#schema0map)
output class for Map payloads | -| sealed interface | [AdditionalPropertiesSchema.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| sealed interface | [AdditionalPropertiesSchema.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | | record | [AdditionalPropertiesSchema.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | | record | [AdditionalPropertiesSchema.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | | record | [AdditionalPropertiesSchema.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesWithArrayOfEnums.md b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesWithArrayOfEnums.md index f130f73d340..ab31b7a2537 100644 --- a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesWithArrayOfEnums.md +++ b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesWithArrayOfEnums.md @@ -4,7 +4,7 @@ public class AdditionalPropertiesWithArrayOfEnums
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -14,12 +14,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesWithArrayOfEnums1Boxed](#additionalpropertieswitharrayofenums1boxed)
abstract sealed validated payload class | +| sealed interface | [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesWithArrayOfEnums1Boxed](#additionalpropertieswitharrayofenums1boxed)
sealed interface for validated payloads | | record | [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesWithArrayOfEnums1BoxedMap](#additionalpropertieswitharrayofenums1boxedmap)
boxed class to store validated Map payloads | | static class | [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesWithArrayOfEnums1](#additionalpropertieswitharrayofenums1)
schema class | | static class | [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesWithArrayOfEnumsMapBuilder](#additionalpropertieswitharrayofenumsmapbuilder)
builder for Map payloads | | static class | [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesWithArrayOfEnumsMap](#additionalpropertieswitharrayofenumsmap)
output class for Map payloads | -| sealed interface | [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| sealed interface | [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | | record | [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | | static class | [AdditionalPropertiesWithArrayOfEnums.AdditionalProperties](#additionalproperties)
schema class | | static class | [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesListBuilder](#additionalpropertieslistbuilder)
builder for List payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/Address.md b/samples/client/petstore/java/docs/components/schemas/Address.md index 70514eeeaa2..d24784427f9 100644 --- a/samples/client/petstore/java/docs/components/schemas/Address.md +++ b/samples/client/petstore/java/docs/components/schemas/Address.md @@ -4,7 +4,7 @@ public class Address
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,12 +12,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Address.Address1Boxed](#address1boxed)
abstract sealed validated payload class | +| sealed interface | [Address.Address1Boxed](#address1boxed)
sealed interface for validated payloads | | record | [Address.Address1BoxedMap](#address1boxedmap)
boxed class to store validated Map payloads | | static class | [Address.Address1](#address1)
schema class | | static class | [Address.AddressMapBuilder](#addressmapbuilder)
builder for Map payloads | | static class | [Address.AddressMap](#addressmap)
output class for Map payloads | -| sealed interface | [Address.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| sealed interface | [Address.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | | record | [Address.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | | static class | [Address.AdditionalProperties](#additionalproperties)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/Animal.md b/samples/client/petstore/java/docs/components/schemas/Animal.md index 02bdf510280..f82bb6edb77 100644 --- a/samples/client/petstore/java/docs/components/schemas/Animal.md +++ b/samples/client/petstore/java/docs/components/schemas/Animal.md @@ -4,7 +4,7 @@ public class Animal
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,15 +12,15 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Animal.Animal1Boxed](#animal1boxed)
abstract sealed validated payload class | +| sealed interface | [Animal.Animal1Boxed](#animal1boxed)
sealed interface for validated payloads | | record | [Animal.Animal1BoxedMap](#animal1boxedmap)
boxed class to store validated Map payloads | | static class | [Animal.Animal1](#animal1)
schema class | | static class | [Animal.AnimalMapBuilder](#animalmapbuilder)
builder for Map payloads | | static class | [Animal.AnimalMap](#animalmap)
output class for Map payloads | -| sealed interface | [Animal.ColorBoxed](#colorboxed)
abstract sealed validated payload class | +| sealed interface | [Animal.ColorBoxed](#colorboxed)
sealed interface for validated payloads | | record | [Animal.ColorBoxedString](#colorboxedstring)
boxed class to store validated String payloads | | static class | [Animal.Color](#color)
schema class | -| sealed interface | [Animal.ClassNameBoxed](#classnameboxed)
abstract sealed validated payload class | +| sealed interface | [Animal.ClassNameBoxed](#classnameboxed)
sealed interface for validated payloads | | record | [Animal.ClassNameBoxedString](#classnameboxedstring)
boxed class to store validated String payloads | | static class | [Animal.ClassName](#classname)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/AnimalFarm.md b/samples/client/petstore/java/docs/components/schemas/AnimalFarm.md index e9c512b9977..7c6055d3722 100644 --- a/samples/client/petstore/java/docs/components/schemas/AnimalFarm.md +++ b/samples/client/petstore/java/docs/components/schemas/AnimalFarm.md @@ -4,7 +4,7 @@ public class AnimalFarm
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,7 +12,7 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [AnimalFarm.AnimalFarm1Boxed](#animalfarm1boxed)
abstract sealed validated payload class | +| sealed interface | [AnimalFarm.AnimalFarm1Boxed](#animalfarm1boxed)
sealed interface for validated payloads | | record | [AnimalFarm.AnimalFarm1BoxedList](#animalfarm1boxedlist)
boxed class to store validated List payloads | | static class | [AnimalFarm.AnimalFarm1](#animalfarm1)
schema class | | static class | [AnimalFarm.AnimalFarmListBuilder](#animalfarmlistbuilder)
builder for List payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/AnyTypeAndFormat.md b/samples/client/petstore/java/docs/components/schemas/AnyTypeAndFormat.md index a48aff6cea5..8b435c339b6 100644 --- a/samples/client/petstore/java/docs/components/schemas/AnyTypeAndFormat.md +++ b/samples/client/petstore/java/docs/components/schemas/AnyTypeAndFormat.md @@ -4,7 +4,7 @@ public class AnyTypeAndFormat
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,12 +12,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [AnyTypeAndFormat.AnyTypeAndFormat1Boxed](#anytypeandformat1boxed)
abstract sealed validated payload class | +| sealed interface | [AnyTypeAndFormat.AnyTypeAndFormat1Boxed](#anytypeandformat1boxed)
sealed interface for validated payloads | | record | [AnyTypeAndFormat.AnyTypeAndFormat1BoxedMap](#anytypeandformat1boxedmap)
boxed class to store validated Map payloads | | static class | [AnyTypeAndFormat.AnyTypeAndFormat1](#anytypeandformat1)
schema class | | static class | [AnyTypeAndFormat.AnyTypeAndFormatMapBuilder](#anytypeandformatmapbuilder)
builder for Map payloads | | static class | [AnyTypeAndFormat.AnyTypeAndFormatMap](#anytypeandformatmap)
output class for Map payloads | -| sealed interface | [AnyTypeAndFormat.FloatSchemaBoxed](#floatschemaboxed)
abstract sealed validated payload class | +| sealed interface | [AnyTypeAndFormat.FloatSchemaBoxed](#floatschemaboxed)
sealed interface for validated payloads | | record | [AnyTypeAndFormat.FloatSchemaBoxedVoid](#floatschemaboxedvoid)
boxed class to store validated null payloads | | record | [AnyTypeAndFormat.FloatSchemaBoxedBoolean](#floatschemaboxedboolean)
boxed class to store validated boolean payloads | | record | [AnyTypeAndFormat.FloatSchemaBoxedNumber](#floatschemaboxednumber)
boxed class to store validated Number payloads | @@ -25,7 +25,7 @@ A class that contains necessary nested | record | [AnyTypeAndFormat.FloatSchemaBoxedList](#floatschemaboxedlist)
boxed class to store validated List payloads | | record | [AnyTypeAndFormat.FloatSchemaBoxedMap](#floatschemaboxedmap)
boxed class to store validated Map payloads | | static class | [AnyTypeAndFormat.FloatSchema](#floatschema)
schema class | -| sealed interface | [AnyTypeAndFormat.DoubleSchemaBoxed](#doubleschemaboxed)
abstract sealed validated payload class | +| sealed interface | [AnyTypeAndFormat.DoubleSchemaBoxed](#doubleschemaboxed)
sealed interface for validated payloads | | record | [AnyTypeAndFormat.DoubleSchemaBoxedVoid](#doubleschemaboxedvoid)
boxed class to store validated null payloads | | record | [AnyTypeAndFormat.DoubleSchemaBoxedBoolean](#doubleschemaboxedboolean)
boxed class to store validated boolean payloads | | record | [AnyTypeAndFormat.DoubleSchemaBoxedNumber](#doubleschemaboxednumber)
boxed class to store validated Number payloads | @@ -33,7 +33,7 @@ A class that contains necessary nested | record | [AnyTypeAndFormat.DoubleSchemaBoxedList](#doubleschemaboxedlist)
boxed class to store validated List payloads | | record | [AnyTypeAndFormat.DoubleSchemaBoxedMap](#doubleschemaboxedmap)
boxed class to store validated Map payloads | | static class | [AnyTypeAndFormat.DoubleSchema](#doubleschema)
schema class | -| sealed interface | [AnyTypeAndFormat.Int64Boxed](#int64boxed)
abstract sealed validated payload class | +| sealed interface | [AnyTypeAndFormat.Int64Boxed](#int64boxed)
sealed interface for validated payloads | | record | [AnyTypeAndFormat.Int64BoxedVoid](#int64boxedvoid)
boxed class to store validated null payloads | | record | [AnyTypeAndFormat.Int64BoxedBoolean](#int64boxedboolean)
boxed class to store validated boolean payloads | | record | [AnyTypeAndFormat.Int64BoxedNumber](#int64boxednumber)
boxed class to store validated Number payloads | @@ -41,7 +41,7 @@ A class that contains necessary nested | record | [AnyTypeAndFormat.Int64BoxedList](#int64boxedlist)
boxed class to store validated List payloads | | record | [AnyTypeAndFormat.Int64BoxedMap](#int64boxedmap)
boxed class to store validated Map payloads | | static class | [AnyTypeAndFormat.Int64](#int64)
schema class | -| sealed interface | [AnyTypeAndFormat.Int32Boxed](#int32boxed)
abstract sealed validated payload class | +| sealed interface | [AnyTypeAndFormat.Int32Boxed](#int32boxed)
sealed interface for validated payloads | | record | [AnyTypeAndFormat.Int32BoxedVoid](#int32boxedvoid)
boxed class to store validated null payloads | | record | [AnyTypeAndFormat.Int32BoxedBoolean](#int32boxedboolean)
boxed class to store validated boolean payloads | | record | [AnyTypeAndFormat.Int32BoxedNumber](#int32boxednumber)
boxed class to store validated Number payloads | @@ -49,7 +49,7 @@ A class that contains necessary nested | record | [AnyTypeAndFormat.Int32BoxedList](#int32boxedlist)
boxed class to store validated List payloads | | record | [AnyTypeAndFormat.Int32BoxedMap](#int32boxedmap)
boxed class to store validated Map payloads | | static class | [AnyTypeAndFormat.Int32](#int32)
schema class | -| sealed interface | [AnyTypeAndFormat.BinaryBoxed](#binaryboxed)
abstract sealed validated payload class | +| sealed interface | [AnyTypeAndFormat.BinaryBoxed](#binaryboxed)
sealed interface for validated payloads | | record | [AnyTypeAndFormat.BinaryBoxedVoid](#binaryboxedvoid)
boxed class to store validated null payloads | | record | [AnyTypeAndFormat.BinaryBoxedBoolean](#binaryboxedboolean)
boxed class to store validated boolean payloads | | record | [AnyTypeAndFormat.BinaryBoxedNumber](#binaryboxednumber)
boxed class to store validated Number payloads | @@ -57,7 +57,7 @@ A class that contains necessary nested | record | [AnyTypeAndFormat.BinaryBoxedList](#binaryboxedlist)
boxed class to store validated List payloads | | record | [AnyTypeAndFormat.BinaryBoxedMap](#binaryboxedmap)
boxed class to store validated Map payloads | | static class | [AnyTypeAndFormat.Binary](#binary)
schema class | -| sealed interface | [AnyTypeAndFormat.NumberSchemaBoxed](#numberschemaboxed)
abstract sealed validated payload class | +| sealed interface | [AnyTypeAndFormat.NumberSchemaBoxed](#numberschemaboxed)
sealed interface for validated payloads | | record | [AnyTypeAndFormat.NumberSchemaBoxedVoid](#numberschemaboxedvoid)
boxed class to store validated null payloads | | record | [AnyTypeAndFormat.NumberSchemaBoxedBoolean](#numberschemaboxedboolean)
boxed class to store validated boolean payloads | | record | [AnyTypeAndFormat.NumberSchemaBoxedNumber](#numberschemaboxednumber)
boxed class to store validated Number payloads | @@ -65,7 +65,7 @@ A class that contains necessary nested | record | [AnyTypeAndFormat.NumberSchemaBoxedList](#numberschemaboxedlist)
boxed class to store validated List payloads | | record | [AnyTypeAndFormat.NumberSchemaBoxedMap](#numberschemaboxedmap)
boxed class to store validated Map payloads | | static class | [AnyTypeAndFormat.NumberSchema](#numberschema)
schema class | -| sealed interface | [AnyTypeAndFormat.DatetimeBoxed](#datetimeboxed)
abstract sealed validated payload class | +| sealed interface | [AnyTypeAndFormat.DatetimeBoxed](#datetimeboxed)
sealed interface for validated payloads | | record | [AnyTypeAndFormat.DatetimeBoxedVoid](#datetimeboxedvoid)
boxed class to store validated null payloads | | record | [AnyTypeAndFormat.DatetimeBoxedBoolean](#datetimeboxedboolean)
boxed class to store validated boolean payloads | | record | [AnyTypeAndFormat.DatetimeBoxedNumber](#datetimeboxednumber)
boxed class to store validated Number payloads | @@ -73,7 +73,7 @@ A class that contains necessary nested | record | [AnyTypeAndFormat.DatetimeBoxedList](#datetimeboxedlist)
boxed class to store validated List payloads | | record | [AnyTypeAndFormat.DatetimeBoxedMap](#datetimeboxedmap)
boxed class to store validated Map payloads | | static class | [AnyTypeAndFormat.Datetime](#datetime)
schema class | -| sealed interface | [AnyTypeAndFormat.DateBoxed](#dateboxed)
abstract sealed validated payload class | +| sealed interface | [AnyTypeAndFormat.DateBoxed](#dateboxed)
sealed interface for validated payloads | | record | [AnyTypeAndFormat.DateBoxedVoid](#dateboxedvoid)
boxed class to store validated null payloads | | record | [AnyTypeAndFormat.DateBoxedBoolean](#dateboxedboolean)
boxed class to store validated boolean payloads | | record | [AnyTypeAndFormat.DateBoxedNumber](#dateboxednumber)
boxed class to store validated Number payloads | @@ -81,7 +81,7 @@ A class that contains necessary nested | record | [AnyTypeAndFormat.DateBoxedList](#dateboxedlist)
boxed class to store validated List payloads | | record | [AnyTypeAndFormat.DateBoxedMap](#dateboxedmap)
boxed class to store validated Map payloads | | static class | [AnyTypeAndFormat.Date](#date)
schema class | -| sealed interface | [AnyTypeAndFormat.UuidSchemaBoxed](#uuidschemaboxed)
abstract sealed validated payload class | +| sealed interface | [AnyTypeAndFormat.UuidSchemaBoxed](#uuidschemaboxed)
sealed interface for validated payloads | | record | [AnyTypeAndFormat.UuidSchemaBoxedVoid](#uuidschemaboxedvoid)
boxed class to store validated null payloads | | record | [AnyTypeAndFormat.UuidSchemaBoxedBoolean](#uuidschemaboxedboolean)
boxed class to store validated boolean payloads | | record | [AnyTypeAndFormat.UuidSchemaBoxedNumber](#uuidschemaboxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/AnyTypeNotString.md b/samples/client/petstore/java/docs/components/schemas/AnyTypeNotString.md index e73820abe1d..7e555611498 100644 --- a/samples/client/petstore/java/docs/components/schemas/AnyTypeNotString.md +++ b/samples/client/petstore/java/docs/components/schemas/AnyTypeNotString.md @@ -4,13 +4,13 @@ public class AnyTypeNotString
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [AnyTypeNotString.AnyTypeNotString1Boxed](#anytypenotstring1boxed)
abstract sealed validated payload class | +| sealed interface | [AnyTypeNotString.AnyTypeNotString1Boxed](#anytypenotstring1boxed)
sealed interface for validated payloads | | record | [AnyTypeNotString.AnyTypeNotString1BoxedVoid](#anytypenotstring1boxedvoid)
boxed class to store validated null payloads | | record | [AnyTypeNotString.AnyTypeNotString1BoxedBoolean](#anytypenotstring1boxedboolean)
boxed class to store validated boolean payloads | | record | [AnyTypeNotString.AnyTypeNotString1BoxedNumber](#anytypenotstring1boxednumber)
boxed class to store validated Number payloads | @@ -18,7 +18,7 @@ A class that contains necessary nested | record | [AnyTypeNotString.AnyTypeNotString1BoxedList](#anytypenotstring1boxedlist)
boxed class to store validated List payloads | | record | [AnyTypeNotString.AnyTypeNotString1BoxedMap](#anytypenotstring1boxedmap)
boxed class to store validated Map payloads | | static class | [AnyTypeNotString.AnyTypeNotString1](#anytypenotstring1)
schema class | -| sealed interface | [AnyTypeNotString.NotBoxed](#notboxed)
abstract sealed validated payload class | +| sealed interface | [AnyTypeNotString.NotBoxed](#notboxed)
sealed interface for validated payloads | | record | [AnyTypeNotString.NotBoxedString](#notboxedstring)
boxed class to store validated String payloads | | static class | [AnyTypeNotString.Not](#not)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/ApiResponseSchema.md b/samples/client/petstore/java/docs/components/schemas/ApiResponseSchema.md index 6873d9f1082..757a8d34850 100644 --- a/samples/client/petstore/java/docs/components/schemas/ApiResponseSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/ApiResponseSchema.md @@ -4,7 +4,7 @@ public class ApiResponseSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,18 +12,18 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ApiResponseSchema.ApiResponseSchema1Boxed](#apiresponseschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApiResponseSchema.ApiResponseSchema1Boxed](#apiresponseschema1boxed)
sealed interface for validated payloads | | record | [ApiResponseSchema.ApiResponseSchema1BoxedMap](#apiresponseschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApiResponseSchema.ApiResponseSchema1](#apiresponseschema1)
schema class | | static class | [ApiResponseSchema.ApiResponseMapBuilder](#apiresponsemapbuilder)
builder for Map payloads | | static class | [ApiResponseSchema.ApiResponseMap](#apiresponsemap)
output class for Map payloads | -| sealed interface | [ApiResponseSchema.MessageBoxed](#messageboxed)
abstract sealed validated payload class | +| sealed interface | [ApiResponseSchema.MessageBoxed](#messageboxed)
sealed interface for validated payloads | | record | [ApiResponseSchema.MessageBoxedString](#messageboxedstring)
boxed class to store validated String payloads | | static class | [ApiResponseSchema.Message](#message)
schema class | -| sealed interface | [ApiResponseSchema.TypeBoxed](#typeboxed)
abstract sealed validated payload class | +| sealed interface | [ApiResponseSchema.TypeBoxed](#typeboxed)
sealed interface for validated payloads | | record | [ApiResponseSchema.TypeBoxedString](#typeboxedstring)
boxed class to store validated String payloads | | static class | [ApiResponseSchema.Type](#type)
schema class | -| sealed interface | [ApiResponseSchema.CodeBoxed](#codeboxed)
abstract sealed validated payload class | +| sealed interface | [ApiResponseSchema.CodeBoxed](#codeboxed)
sealed interface for validated payloads | | record | [ApiResponseSchema.CodeBoxedNumber](#codeboxednumber)
boxed class to store validated Number payloads | | static class | [ApiResponseSchema.Code](#code)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/Apple.md b/samples/client/petstore/java/docs/components/schemas/Apple.md index 7b95725e168..816b9167ddb 100644 --- a/samples/client/petstore/java/docs/components/schemas/Apple.md +++ b/samples/client/petstore/java/docs/components/schemas/Apple.md @@ -4,7 +4,7 @@ public class Apple
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,16 +12,16 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Apple.Apple1Boxed](#apple1boxed)
abstract sealed validated payload class | +| sealed interface | [Apple.Apple1Boxed](#apple1boxed)
sealed interface for validated payloads | | record | [Apple.Apple1BoxedVoid](#apple1boxedvoid)
boxed class to store validated null payloads | | record | [Apple.Apple1BoxedMap](#apple1boxedmap)
boxed class to store validated Map payloads | | static class | [Apple.Apple1](#apple1)
schema class | | static class | [Apple.AppleMapBuilder](#applemapbuilder)
builder for Map payloads | | static class | [Apple.AppleMap](#applemap)
output class for Map payloads | -| sealed interface | [Apple.OriginBoxed](#originboxed)
abstract sealed validated payload class | +| sealed interface | [Apple.OriginBoxed](#originboxed)
sealed interface for validated payloads | | record | [Apple.OriginBoxedString](#originboxedstring)
boxed class to store validated String payloads | | static class | [Apple.Origin](#origin)
schema class | -| sealed interface | [Apple.CultivarBoxed](#cultivarboxed)
abstract sealed validated payload class | +| sealed interface | [Apple.CultivarBoxed](#cultivarboxed)
sealed interface for validated payloads | | record | [Apple.CultivarBoxedString](#cultivarboxedstring)
boxed class to store validated String payloads | | static class | [Apple.Cultivar](#cultivar)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/AppleReq.md b/samples/client/petstore/java/docs/components/schemas/AppleReq.md index 96a1b06bf30..f344a8900bd 100644 --- a/samples/client/petstore/java/docs/components/schemas/AppleReq.md +++ b/samples/client/petstore/java/docs/components/schemas/AppleReq.md @@ -4,7 +4,7 @@ public class AppleReq
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,18 +12,18 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [AppleReq.AppleReq1Boxed](#applereq1boxed)
abstract sealed validated payload class | +| sealed interface | [AppleReq.AppleReq1Boxed](#applereq1boxed)
sealed interface for validated payloads | | record | [AppleReq.AppleReq1BoxedMap](#applereq1boxedmap)
boxed class to store validated Map payloads | | static class | [AppleReq.AppleReq1](#applereq1)
schema class | | static class | [AppleReq.AppleReqMapBuilder](#applereqmapbuilder)
builder for Map payloads | | static class | [AppleReq.AppleReqMap](#applereqmap)
output class for Map payloads | -| sealed interface | [AppleReq.MealyBoxed](#mealyboxed)
abstract sealed validated payload class | +| sealed interface | [AppleReq.MealyBoxed](#mealyboxed)
sealed interface for validated payloads | | record | [AppleReq.MealyBoxedBoolean](#mealyboxedboolean)
boxed class to store validated boolean payloads | | static class | [AppleReq.Mealy](#mealy)
schema class | -| sealed interface | [AppleReq.CultivarBoxed](#cultivarboxed)
abstract sealed validated payload class | +| sealed interface | [AppleReq.CultivarBoxed](#cultivarboxed)
sealed interface for validated payloads | | record | [AppleReq.CultivarBoxedString](#cultivarboxedstring)
boxed class to store validated String payloads | | static class | [AppleReq.Cultivar](#cultivar)
schema class | -| sealed interface | [AppleReq.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| sealed interface | [AppleReq.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | | record | [AppleReq.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | | record | [AppleReq.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | | record | [AppleReq.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayHoldingAnyType.md b/samples/client/petstore/java/docs/components/schemas/ArrayHoldingAnyType.md index da9526a643c..245063e8cea 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayHoldingAnyType.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayHoldingAnyType.md @@ -4,7 +4,7 @@ public class ArrayHoldingAnyType
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,12 +12,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ArrayHoldingAnyType.ArrayHoldingAnyType1Boxed](#arrayholdinganytype1boxed)
abstract sealed validated payload class | +| sealed interface | [ArrayHoldingAnyType.ArrayHoldingAnyType1Boxed](#arrayholdinganytype1boxed)
sealed interface for validated payloads | | record | [ArrayHoldingAnyType.ArrayHoldingAnyType1BoxedList](#arrayholdinganytype1boxedlist)
boxed class to store validated List payloads | | static class | [ArrayHoldingAnyType.ArrayHoldingAnyType1](#arrayholdinganytype1)
schema class | | static class | [ArrayHoldingAnyType.ArrayHoldingAnyTypeListBuilder](#arrayholdinganytypelistbuilder)
builder for List payloads | | static class | [ArrayHoldingAnyType.ArrayHoldingAnyTypeList](#arrayholdinganytypelist)
output class for List payloads | -| sealed interface | [ArrayHoldingAnyType.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | +| sealed interface | [ArrayHoldingAnyType.ItemsBoxed](#itemsboxed)
sealed interface for validated payloads | | record | [ArrayHoldingAnyType.ItemsBoxedVoid](#itemsboxedvoid)
boxed class to store validated null payloads | | record | [ArrayHoldingAnyType.ItemsBoxedBoolean](#itemsboxedboolean)
boxed class to store validated boolean payloads | | record | [ArrayHoldingAnyType.ItemsBoxedNumber](#itemsboxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/java/docs/components/schemas/ArrayOfArrayOfNumberOnly.md index 1aef3911c3c..fdc459ad3af 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayOfArrayOfNumberOnly.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayOfArrayOfNumberOnly.md @@ -4,7 +4,7 @@ public class ArrayOfArrayOfNumberOnly
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -14,22 +14,22 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ArrayOfArrayOfNumberOnly.ArrayOfArrayOfNumberOnly1Boxed](#arrayofarrayofnumberonly1boxed)
abstract sealed validated payload class | +| sealed interface | [ArrayOfArrayOfNumberOnly.ArrayOfArrayOfNumberOnly1Boxed](#arrayofarrayofnumberonly1boxed)
sealed interface for validated payloads | | record | [ArrayOfArrayOfNumberOnly.ArrayOfArrayOfNumberOnly1BoxedMap](#arrayofarrayofnumberonly1boxedmap)
boxed class to store validated Map payloads | | static class | [ArrayOfArrayOfNumberOnly.ArrayOfArrayOfNumberOnly1](#arrayofarrayofnumberonly1)
schema class | | static class | [ArrayOfArrayOfNumberOnly.ArrayOfArrayOfNumberOnlyMapBuilder](#arrayofarrayofnumberonlymapbuilder)
builder for Map payloads | | static class | [ArrayOfArrayOfNumberOnly.ArrayOfArrayOfNumberOnlyMap](#arrayofarrayofnumberonlymap)
output class for Map payloads | -| sealed interface | [ArrayOfArrayOfNumberOnly.ArrayArrayNumberBoxed](#arrayarraynumberboxed)
abstract sealed validated payload class | +| sealed interface | [ArrayOfArrayOfNumberOnly.ArrayArrayNumberBoxed](#arrayarraynumberboxed)
sealed interface for validated payloads | | record | [ArrayOfArrayOfNumberOnly.ArrayArrayNumberBoxedList](#arrayarraynumberboxedlist)
boxed class to store validated List payloads | | static class | [ArrayOfArrayOfNumberOnly.ArrayArrayNumber](#arrayarraynumber)
schema class | | static class | [ArrayOfArrayOfNumberOnly.ArrayArrayNumberListBuilder](#arrayarraynumberlistbuilder)
builder for List payloads | | static class | [ArrayOfArrayOfNumberOnly.ArrayArrayNumberList](#arrayarraynumberlist)
output class for List payloads | -| sealed interface | [ArrayOfArrayOfNumberOnly.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | +| sealed interface | [ArrayOfArrayOfNumberOnly.ItemsBoxed](#itemsboxed)
sealed interface for validated payloads | | record | [ArrayOfArrayOfNumberOnly.ItemsBoxedList](#itemsboxedlist)
boxed class to store validated List payloads | | static class | [ArrayOfArrayOfNumberOnly.Items](#items)
schema class | | static class | [ArrayOfArrayOfNumberOnly.ItemsListBuilder](#itemslistbuilder)
builder for List payloads | | static class | [ArrayOfArrayOfNumberOnly.ItemsList](#itemslist)
output class for List payloads | -| sealed interface | [ArrayOfArrayOfNumberOnly.Items1Boxed](#items1boxed)
abstract sealed validated payload class | +| sealed interface | [ArrayOfArrayOfNumberOnly.Items1Boxed](#items1boxed)
sealed interface for validated payloads | | record | [ArrayOfArrayOfNumberOnly.Items1BoxedNumber](#items1boxednumber)
boxed class to store validated Number payloads | | static class | [ArrayOfArrayOfNumberOnly.Items1](#items1)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayOfEnums.md b/samples/client/petstore/java/docs/components/schemas/ArrayOfEnums.md index 7b7f05fe2f0..5733c845c7c 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayOfEnums.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayOfEnums.md @@ -4,7 +4,7 @@ public class ArrayOfEnums
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,7 +12,7 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ArrayOfEnums.ArrayOfEnums1Boxed](#arrayofenums1boxed)
abstract sealed validated payload class | +| sealed interface | [ArrayOfEnums.ArrayOfEnums1Boxed](#arrayofenums1boxed)
sealed interface for validated payloads | | record | [ArrayOfEnums.ArrayOfEnums1BoxedList](#arrayofenums1boxedlist)
boxed class to store validated List payloads | | static class | [ArrayOfEnums.ArrayOfEnums1](#arrayofenums1)
schema class | | static class | [ArrayOfEnums.ArrayOfEnumsListBuilder](#arrayofenumslistbuilder)
builder for List payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayOfNumberOnly.md b/samples/client/petstore/java/docs/components/schemas/ArrayOfNumberOnly.md index fd7acf98bd9..a7aa98b9795 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayOfNumberOnly.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayOfNumberOnly.md @@ -4,7 +4,7 @@ public class ArrayOfNumberOnly
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -14,17 +14,17 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ArrayOfNumberOnly.ArrayOfNumberOnly1Boxed](#arrayofnumberonly1boxed)
abstract sealed validated payload class | +| sealed interface | [ArrayOfNumberOnly.ArrayOfNumberOnly1Boxed](#arrayofnumberonly1boxed)
sealed interface for validated payloads | | record | [ArrayOfNumberOnly.ArrayOfNumberOnly1BoxedMap](#arrayofnumberonly1boxedmap)
boxed class to store validated Map payloads | | static class | [ArrayOfNumberOnly.ArrayOfNumberOnly1](#arrayofnumberonly1)
schema class | | static class | [ArrayOfNumberOnly.ArrayOfNumberOnlyMapBuilder](#arrayofnumberonlymapbuilder)
builder for Map payloads | | static class | [ArrayOfNumberOnly.ArrayOfNumberOnlyMap](#arrayofnumberonlymap)
output class for Map payloads | -| sealed interface | [ArrayOfNumberOnly.ArrayNumberBoxed](#arraynumberboxed)
abstract sealed validated payload class | +| sealed interface | [ArrayOfNumberOnly.ArrayNumberBoxed](#arraynumberboxed)
sealed interface for validated payloads | | record | [ArrayOfNumberOnly.ArrayNumberBoxedList](#arraynumberboxedlist)
boxed class to store validated List payloads | | static class | [ArrayOfNumberOnly.ArrayNumber](#arraynumber)
schema class | | static class | [ArrayOfNumberOnly.ArrayNumberListBuilder](#arraynumberlistbuilder)
builder for List payloads | | static class | [ArrayOfNumberOnly.ArrayNumberList](#arraynumberlist)
output class for List payloads | -| sealed interface | [ArrayOfNumberOnly.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | +| sealed interface | [ArrayOfNumberOnly.ItemsBoxed](#itemsboxed)
sealed interface for validated payloads | | record | [ArrayOfNumberOnly.ItemsBoxedNumber](#itemsboxednumber)
boxed class to store validated Number payloads | | static class | [ArrayOfNumberOnly.Items](#items)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayTest.md b/samples/client/petstore/java/docs/components/schemas/ArrayTest.md index c8d90781b5a..0dfe25e98df 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayTest.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayTest.md @@ -4,7 +4,7 @@ public class ArrayTest
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -14,40 +14,40 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ArrayTest.ArrayTest1Boxed](#arraytest1boxed)
abstract sealed validated payload class | +| sealed interface | [ArrayTest.ArrayTest1Boxed](#arraytest1boxed)
sealed interface for validated payloads | | record | [ArrayTest.ArrayTest1BoxedMap](#arraytest1boxedmap)
boxed class to store validated Map payloads | | static class | [ArrayTest.ArrayTest1](#arraytest1)
schema class | | static class | [ArrayTest.ArrayTestMapBuilder](#arraytestmapbuilder)
builder for Map payloads | | static class | [ArrayTest.ArrayTestMap](#arraytestmap)
output class for Map payloads | -| sealed interface | [ArrayTest.ArrayArrayOfModelBoxed](#arrayarrayofmodelboxed)
abstract sealed validated payload class | +| sealed interface | [ArrayTest.ArrayArrayOfModelBoxed](#arrayarrayofmodelboxed)
sealed interface for validated payloads | | record | [ArrayTest.ArrayArrayOfModelBoxedList](#arrayarrayofmodelboxedlist)
boxed class to store validated List payloads | | static class | [ArrayTest.ArrayArrayOfModel](#arrayarrayofmodel)
schema class | | static class | [ArrayTest.ArrayArrayOfModelListBuilder](#arrayarrayofmodellistbuilder)
builder for List payloads | | static class | [ArrayTest.ArrayArrayOfModelList](#arrayarrayofmodellist)
output class for List payloads | -| sealed interface | [ArrayTest.Items3Boxed](#items3boxed)
abstract sealed validated payload class | +| sealed interface | [ArrayTest.Items3Boxed](#items3boxed)
sealed interface for validated payloads | | record | [ArrayTest.Items3BoxedList](#items3boxedlist)
boxed class to store validated List payloads | | static class | [ArrayTest.Items3](#items3)
schema class | | static class | [ArrayTest.ItemsListBuilder1](#itemslistbuilder1)
builder for List payloads | | static class | [ArrayTest.ItemsList1](#itemslist1)
output class for List payloads | -| sealed interface | [ArrayTest.ArrayArrayOfIntegerBoxed](#arrayarrayofintegerboxed)
abstract sealed validated payload class | +| sealed interface | [ArrayTest.ArrayArrayOfIntegerBoxed](#arrayarrayofintegerboxed)
sealed interface for validated payloads | | record | [ArrayTest.ArrayArrayOfIntegerBoxedList](#arrayarrayofintegerboxedlist)
boxed class to store validated List payloads | | static class | [ArrayTest.ArrayArrayOfInteger](#arrayarrayofinteger)
schema class | | static class | [ArrayTest.ArrayArrayOfIntegerListBuilder](#arrayarrayofintegerlistbuilder)
builder for List payloads | | static class | [ArrayTest.ArrayArrayOfIntegerList](#arrayarrayofintegerlist)
output class for List payloads | -| sealed interface | [ArrayTest.Items1Boxed](#items1boxed)
abstract sealed validated payload class | +| sealed interface | [ArrayTest.Items1Boxed](#items1boxed)
sealed interface for validated payloads | | record | [ArrayTest.Items1BoxedList](#items1boxedlist)
boxed class to store validated List payloads | | static class | [ArrayTest.Items1](#items1)
schema class | | static class | [ArrayTest.ItemsListBuilder](#itemslistbuilder)
builder for List payloads | | static class | [ArrayTest.ItemsList](#itemslist)
output class for List payloads | -| sealed interface | [ArrayTest.Items2Boxed](#items2boxed)
abstract sealed validated payload class | +| sealed interface | [ArrayTest.Items2Boxed](#items2boxed)
sealed interface for validated payloads | | record | [ArrayTest.Items2BoxedNumber](#items2boxednumber)
boxed class to store validated Number payloads | | static class | [ArrayTest.Items2](#items2)
schema class | -| sealed interface | [ArrayTest.ArrayOfStringBoxed](#arrayofstringboxed)
abstract sealed validated payload class | +| sealed interface | [ArrayTest.ArrayOfStringBoxed](#arrayofstringboxed)
sealed interface for validated payloads | | record | [ArrayTest.ArrayOfStringBoxedList](#arrayofstringboxedlist)
boxed class to store validated List payloads | | static class | [ArrayTest.ArrayOfString](#arrayofstring)
schema class | | static class | [ArrayTest.ArrayOfStringListBuilder](#arrayofstringlistbuilder)
builder for List payloads | | static class | [ArrayTest.ArrayOfStringList](#arrayofstringlist)
output class for List payloads | -| sealed interface | [ArrayTest.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | +| sealed interface | [ArrayTest.ItemsBoxed](#itemsboxed)
sealed interface for validated payloads | | record | [ArrayTest.ItemsBoxedString](#itemsboxedstring)
boxed class to store validated String payloads | | static class | [ArrayTest.Items](#items)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayWithValidationsInItems.md b/samples/client/petstore/java/docs/components/schemas/ArrayWithValidationsInItems.md index aecaa52f816..a994ab30d1e 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayWithValidationsInItems.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayWithValidationsInItems.md @@ -4,7 +4,7 @@ public class ArrayWithValidationsInItems
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,12 +12,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ArrayWithValidationsInItems.ArrayWithValidationsInItems1Boxed](#arraywithvalidationsinitems1boxed)
abstract sealed validated payload class | +| sealed interface | [ArrayWithValidationsInItems.ArrayWithValidationsInItems1Boxed](#arraywithvalidationsinitems1boxed)
sealed interface for validated payloads | | record | [ArrayWithValidationsInItems.ArrayWithValidationsInItems1BoxedList](#arraywithvalidationsinitems1boxedlist)
boxed class to store validated List payloads | | static class | [ArrayWithValidationsInItems.ArrayWithValidationsInItems1](#arraywithvalidationsinitems1)
schema class | | static class | [ArrayWithValidationsInItems.ArrayWithValidationsInItemsListBuilder](#arraywithvalidationsinitemslistbuilder)
builder for List payloads | | static class | [ArrayWithValidationsInItems.ArrayWithValidationsInItemsList](#arraywithvalidationsinitemslist)
output class for List payloads | -| sealed interface | [ArrayWithValidationsInItems.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | +| sealed interface | [ArrayWithValidationsInItems.ItemsBoxed](#itemsboxed)
sealed interface for validated payloads | | record | [ArrayWithValidationsInItems.ItemsBoxedNumber](#itemsboxednumber)
boxed class to store validated Number payloads | | static class | [ArrayWithValidationsInItems.Items](#items)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/Banana.md b/samples/client/petstore/java/docs/components/schemas/Banana.md index f3e45d2b1c8..61ceba9b47b 100644 --- a/samples/client/petstore/java/docs/components/schemas/Banana.md +++ b/samples/client/petstore/java/docs/components/schemas/Banana.md @@ -4,7 +4,7 @@ public class Banana
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,12 +12,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Banana.Banana1Boxed](#banana1boxed)
abstract sealed validated payload class | +| sealed interface | [Banana.Banana1Boxed](#banana1boxed)
sealed interface for validated payloads | | record | [Banana.Banana1BoxedMap](#banana1boxedmap)
boxed class to store validated Map payloads | | static class | [Banana.Banana1](#banana1)
schema class | | static class | [Banana.BananaMapBuilder](#bananamapbuilder)
builder for Map payloads | | static class | [Banana.BananaMap](#bananamap)
output class for Map payloads | -| sealed interface | [Banana.LengthCmBoxed](#lengthcmboxed)
abstract sealed validated payload class | +| sealed interface | [Banana.LengthCmBoxed](#lengthcmboxed)
sealed interface for validated payloads | | record | [Banana.LengthCmBoxedNumber](#lengthcmboxednumber)
boxed class to store validated Number payloads | | static class | [Banana.LengthCm](#lengthcm)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/BananaReq.md b/samples/client/petstore/java/docs/components/schemas/BananaReq.md index 022532b4750..09f1c1c038a 100644 --- a/samples/client/petstore/java/docs/components/schemas/BananaReq.md +++ b/samples/client/petstore/java/docs/components/schemas/BananaReq.md @@ -4,7 +4,7 @@ public class BananaReq
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,18 +12,18 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [BananaReq.BananaReq1Boxed](#bananareq1boxed)
abstract sealed validated payload class | +| sealed interface | [BananaReq.BananaReq1Boxed](#bananareq1boxed)
sealed interface for validated payloads | | record | [BananaReq.BananaReq1BoxedMap](#bananareq1boxedmap)
boxed class to store validated Map payloads | | static class | [BananaReq.BananaReq1](#bananareq1)
schema class | | static class | [BananaReq.BananaReqMapBuilder](#bananareqmapbuilder)
builder for Map payloads | | static class | [BananaReq.BananaReqMap](#bananareqmap)
output class for Map payloads | -| sealed interface | [BananaReq.SweetBoxed](#sweetboxed)
abstract sealed validated payload class | +| sealed interface | [BananaReq.SweetBoxed](#sweetboxed)
sealed interface for validated payloads | | record | [BananaReq.SweetBoxedBoolean](#sweetboxedboolean)
boxed class to store validated boolean payloads | | static class | [BananaReq.Sweet](#sweet)
schema class | -| sealed interface | [BananaReq.LengthCmBoxed](#lengthcmboxed)
abstract sealed validated payload class | +| sealed interface | [BananaReq.LengthCmBoxed](#lengthcmboxed)
sealed interface for validated payloads | | record | [BananaReq.LengthCmBoxedNumber](#lengthcmboxednumber)
boxed class to store validated Number payloads | | static class | [BananaReq.LengthCm](#lengthcm)
schema class | -| sealed interface | [BananaReq.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| sealed interface | [BananaReq.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | | record | [BananaReq.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | | record | [BananaReq.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | | record | [BananaReq.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/Bar.md b/samples/client/petstore/java/docs/components/schemas/Bar.md index 6c9a6ede38d..e633918622c 100644 --- a/samples/client/petstore/java/docs/components/schemas/Bar.md +++ b/samples/client/petstore/java/docs/components/schemas/Bar.md @@ -4,13 +4,13 @@ public class Bar
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Bar.Bar1Boxed](#bar1boxed)
abstract sealed validated payload class | +| sealed interface | [Bar.Bar1Boxed](#bar1boxed)
sealed interface for validated payloads | | record | [Bar.Bar1BoxedString](#bar1boxedstring)
boxed class to store validated String payloads | | static class | [Bar.Bar1](#bar1)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/BasquePig.md b/samples/client/petstore/java/docs/components/schemas/BasquePig.md index 6078752c421..a57816c8266 100644 --- a/samples/client/petstore/java/docs/components/schemas/BasquePig.md +++ b/samples/client/petstore/java/docs/components/schemas/BasquePig.md @@ -4,7 +4,7 @@ public class BasquePig
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,12 +13,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [BasquePig.BasquePig1Boxed](#basquepig1boxed)
abstract sealed validated payload class | +| sealed interface | [BasquePig.BasquePig1Boxed](#basquepig1boxed)
sealed interface for validated payloads | | record | [BasquePig.BasquePig1BoxedMap](#basquepig1boxedmap)
boxed class to store validated Map payloads | | static class | [BasquePig.BasquePig1](#basquepig1)
schema class | | static class | [BasquePig.BasquePigMapBuilder](#basquepigmapbuilder)
builder for Map payloads | | static class | [BasquePig.BasquePigMap](#basquepigmap)
output class for Map payloads | -| sealed interface | [BasquePig.ClassNameBoxed](#classnameboxed)
abstract sealed validated payload class | +| sealed interface | [BasquePig.ClassNameBoxed](#classnameboxed)
sealed interface for validated payloads | | record | [BasquePig.ClassNameBoxedString](#classnameboxedstring)
boxed class to store validated String payloads | | static class | [BasquePig.ClassName](#classname)
schema class | | enum | [BasquePig.StringClassNameEnums](#stringclassnameenums)
String enum | diff --git a/samples/client/petstore/java/docs/components/schemas/BooleanEnum.md b/samples/client/petstore/java/docs/components/schemas/BooleanEnum.md index ef2be166b28..15ce8e00873 100644 --- a/samples/client/petstore/java/docs/components/schemas/BooleanEnum.md +++ b/samples/client/petstore/java/docs/components/schemas/BooleanEnum.md @@ -4,14 +4,14 @@ public class BooleanEnum
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [BooleanEnum.BooleanEnum1Boxed](#booleanenum1boxed)
abstract sealed validated payload class | +| sealed interface | [BooleanEnum.BooleanEnum1Boxed](#booleanenum1boxed)
sealed interface for validated payloads | | record | [BooleanEnum.BooleanEnum1BoxedBoolean](#booleanenum1boxedboolean)
boxed class to store validated boolean payloads | | static class | [BooleanEnum.BooleanEnum1](#booleanenum1)
schema class | | enum | [BooleanEnum.BooleanBooleanEnumEnums](#booleanbooleanenumenums)
boolean enum | diff --git a/samples/client/petstore/java/docs/components/schemas/BooleanSchema.md b/samples/client/petstore/java/docs/components/schemas/BooleanSchema.md index 6ab7ba6f4a9..5f8d3d2fb27 100644 --- a/samples/client/petstore/java/docs/components/schemas/BooleanSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/BooleanSchema.md @@ -4,13 +4,13 @@ public class BooleanSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [BooleanSchema.BooleanSchema1Boxed](#booleanschema1boxed)
abstract sealed validated payload class | +| sealed interface | [BooleanSchema.BooleanSchema1Boxed](#booleanschema1boxed)
sealed interface for validated payloads | | record | [BooleanSchema.BooleanSchema1BoxedBoolean](#booleanschema1boxedboolean)
boxed class to store validated boolean payloads | | static class | [BooleanSchema.BooleanSchema1](#booleanschema1)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/Capitalization.md b/samples/client/petstore/java/docs/components/schemas/Capitalization.md index 1973864c8f1..75d4d175545 100644 --- a/samples/client/petstore/java/docs/components/schemas/Capitalization.md +++ b/samples/client/petstore/java/docs/components/schemas/Capitalization.md @@ -4,7 +4,7 @@ public class Capitalization
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Capitalization.Capitalization1Boxed](#capitalization1boxed)
abstract sealed validated payload class | +| sealed interface | [Capitalization.Capitalization1Boxed](#capitalization1boxed)
sealed interface for validated payloads | | record | [Capitalization.Capitalization1BoxedMap](#capitalization1boxedmap)
boxed class to store validated Map payloads | | static class | [Capitalization.Capitalization1](#capitalization1)
schema class | | static class | [Capitalization.CapitalizationMapBuilder](#capitalizationmapbuilder)
builder for Map payloads | | static class | [Capitalization.CapitalizationMap](#capitalizationmap)
output class for Map payloads | -| sealed interface | [Capitalization.ATTNAMEBoxed](#attnameboxed)
abstract sealed validated payload class | +| sealed interface | [Capitalization.ATTNAMEBoxed](#attnameboxed)
sealed interface for validated payloads | | record | [Capitalization.ATTNAMEBoxedString](#attnameboxedstring)
boxed class to store validated String payloads | | static class | [Capitalization.ATTNAME](#attname)
schema class | -| sealed interface | [Capitalization.SCAETHFlowPointsBoxed](#scaethflowpointsboxed)
abstract sealed validated payload class | +| sealed interface | [Capitalization.SCAETHFlowPointsBoxed](#scaethflowpointsboxed)
sealed interface for validated payloads | | record | [Capitalization.SCAETHFlowPointsBoxedString](#scaethflowpointsboxedstring)
boxed class to store validated String payloads | | static class | [Capitalization.SCAETHFlowPoints](#scaethflowpoints)
schema class | -| sealed interface | [Capitalization.CapitalSnakeBoxed](#capitalsnakeboxed)
abstract sealed validated payload class | +| sealed interface | [Capitalization.CapitalSnakeBoxed](#capitalsnakeboxed)
sealed interface for validated payloads | | record | [Capitalization.CapitalSnakeBoxedString](#capitalsnakeboxedstring)
boxed class to store validated String payloads | | static class | [Capitalization.CapitalSnake](#capitalsnake)
schema class | -| sealed interface | [Capitalization.SmallSnakeBoxed](#smallsnakeboxed)
abstract sealed validated payload class | +| sealed interface | [Capitalization.SmallSnakeBoxed](#smallsnakeboxed)
sealed interface for validated payloads | | record | [Capitalization.SmallSnakeBoxedString](#smallsnakeboxedstring)
boxed class to store validated String payloads | | static class | [Capitalization.SmallSnake](#smallsnake)
schema class | -| sealed interface | [Capitalization.CapitalCamelBoxed](#capitalcamelboxed)
abstract sealed validated payload class | +| sealed interface | [Capitalization.CapitalCamelBoxed](#capitalcamelboxed)
sealed interface for validated payloads | | record | [Capitalization.CapitalCamelBoxedString](#capitalcamelboxedstring)
boxed class to store validated String payloads | | static class | [Capitalization.CapitalCamel](#capitalcamel)
schema class | -| sealed interface | [Capitalization.SmallCamelBoxed](#smallcamelboxed)
abstract sealed validated payload class | +| sealed interface | [Capitalization.SmallCamelBoxed](#smallcamelboxed)
sealed interface for validated payloads | | record | [Capitalization.SmallCamelBoxedString](#smallcamelboxedstring)
boxed class to store validated String payloads | | static class | [Capitalization.SmallCamel](#smallcamel)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/Cat.md b/samples/client/petstore/java/docs/components/schemas/Cat.md index 58c78e399b3..0b45115c0a9 100644 --- a/samples/client/petstore/java/docs/components/schemas/Cat.md +++ b/samples/client/petstore/java/docs/components/schemas/Cat.md @@ -4,7 +4,7 @@ public class Cat
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,7 +12,7 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Cat.Cat1Boxed](#cat1boxed)
abstract sealed validated payload class | +| sealed interface | [Cat.Cat1Boxed](#cat1boxed)
sealed interface for validated payloads | | record | [Cat.Cat1BoxedVoid](#cat1boxedvoid)
boxed class to store validated null payloads | | record | [Cat.Cat1BoxedBoolean](#cat1boxedboolean)
boxed class to store validated boolean payloads | | record | [Cat.Cat1BoxedNumber](#cat1boxednumber)
boxed class to store validated Number payloads | @@ -20,12 +20,12 @@ A class that contains necessary nested | record | [Cat.Cat1BoxedList](#cat1boxedlist)
boxed class to store validated List payloads | | record | [Cat.Cat1BoxedMap](#cat1boxedmap)
boxed class to store validated Map payloads | | static class | [Cat.Cat1](#cat1)
schema class | -| sealed interface | [Cat.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | +| sealed interface | [Cat.Schema1Boxed](#schema1boxed)
sealed interface for validated payloads | | record | [Cat.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | | static class | [Cat.Schema1](#schema1)
schema class | | static class | [Cat.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [Cat.Schema1Map](#schema1map)
output class for Map payloads | -| sealed interface | [Cat.DeclawedBoxed](#declawedboxed)
abstract sealed validated payload class | +| sealed interface | [Cat.DeclawedBoxed](#declawedboxed)
sealed interface for validated payloads | | record | [Cat.DeclawedBoxedBoolean](#declawedboxedboolean)
boxed class to store validated boolean payloads | | static class | [Cat.Declawed](#declawed)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/Category.md b/samples/client/petstore/java/docs/components/schemas/Category.md index 7dabeb4d722..a1f484ded12 100644 --- a/samples/client/petstore/java/docs/components/schemas/Category.md +++ b/samples/client/petstore/java/docs/components/schemas/Category.md @@ -4,7 +4,7 @@ public class Category
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,15 +12,15 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Category.Category1Boxed](#category1boxed)
abstract sealed validated payload class | +| sealed interface | [Category.Category1Boxed](#category1boxed)
sealed interface for validated payloads | | record | [Category.Category1BoxedMap](#category1boxedmap)
boxed class to store validated Map payloads | | static class | [Category.Category1](#category1)
schema class | | static class | [Category.CategoryMapBuilder](#categorymapbuilder)
builder for Map payloads | | static class | [Category.CategoryMap](#categorymap)
output class for Map payloads | -| sealed interface | [Category.NameBoxed](#nameboxed)
abstract sealed validated payload class | +| sealed interface | [Category.NameBoxed](#nameboxed)
sealed interface for validated payloads | | record | [Category.NameBoxedString](#nameboxedstring)
boxed class to store validated String payloads | | static class | [Category.Name](#name)
schema class | -| sealed interface | [Category.IdBoxed](#idboxed)
abstract sealed validated payload class | +| sealed interface | [Category.IdBoxed](#idboxed)
sealed interface for validated payloads | | record | [Category.IdBoxedNumber](#idboxednumber)
boxed class to store validated Number payloads | | static class | [Category.Id](#id)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/ChildCat.md b/samples/client/petstore/java/docs/components/schemas/ChildCat.md index 8ce7dc884ad..bbaacacaf67 100644 --- a/samples/client/petstore/java/docs/components/schemas/ChildCat.md +++ b/samples/client/petstore/java/docs/components/schemas/ChildCat.md @@ -4,7 +4,7 @@ public class ChildCat
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,7 +12,7 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ChildCat.ChildCat1Boxed](#childcat1boxed)
abstract sealed validated payload class | +| sealed interface | [ChildCat.ChildCat1Boxed](#childcat1boxed)
sealed interface for validated payloads | | record | [ChildCat.ChildCat1BoxedVoid](#childcat1boxedvoid)
boxed class to store validated null payloads | | record | [ChildCat.ChildCat1BoxedBoolean](#childcat1boxedboolean)
boxed class to store validated boolean payloads | | record | [ChildCat.ChildCat1BoxedNumber](#childcat1boxednumber)
boxed class to store validated Number payloads | @@ -20,12 +20,12 @@ A class that contains necessary nested | record | [ChildCat.ChildCat1BoxedList](#childcat1boxedlist)
boxed class to store validated List payloads | | record | [ChildCat.ChildCat1BoxedMap](#childcat1boxedmap)
boxed class to store validated Map payloads | | static class | [ChildCat.ChildCat1](#childcat1)
schema class | -| sealed interface | [ChildCat.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | +| sealed interface | [ChildCat.Schema1Boxed](#schema1boxed)
sealed interface for validated payloads | | record | [ChildCat.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | | static class | [ChildCat.Schema1](#schema1)
schema class | | static class | [ChildCat.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [ChildCat.Schema1Map](#schema1map)
output class for Map payloads | -| sealed interface | [ChildCat.NameBoxed](#nameboxed)
abstract sealed validated payload class | +| sealed interface | [ChildCat.NameBoxed](#nameboxed)
sealed interface for validated payloads | | record | [ChildCat.NameBoxedString](#nameboxedstring)
boxed class to store validated String payloads | | static class | [ChildCat.Name](#name)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/ClassModel.md b/samples/client/petstore/java/docs/components/schemas/ClassModel.md index acb96ab31f4..1d7f1150a3b 100644 --- a/samples/client/petstore/java/docs/components/schemas/ClassModel.md +++ b/samples/client/petstore/java/docs/components/schemas/ClassModel.md @@ -4,7 +4,7 @@ public class ClassModel
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,7 +12,7 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ClassModel.ClassModel1Boxed](#classmodel1boxed)
abstract sealed validated payload class | +| sealed interface | [ClassModel.ClassModel1Boxed](#classmodel1boxed)
sealed interface for validated payloads | | record | [ClassModel.ClassModel1BoxedVoid](#classmodel1boxedvoid)
boxed class to store validated null payloads | | record | [ClassModel.ClassModel1BoxedBoolean](#classmodel1boxedboolean)
boxed class to store validated boolean payloads | | record | [ClassModel.ClassModel1BoxedNumber](#classmodel1boxednumber)
boxed class to store validated Number payloads | @@ -22,7 +22,7 @@ A class that contains necessary nested | static class | [ClassModel.ClassModel1](#classmodel1)
schema class | | static class | [ClassModel.ClassModelMapBuilder](#classmodelmapbuilder)
builder for Map payloads | | static class | [ClassModel.ClassModelMap](#classmodelmap)
output class for Map payloads | -| sealed interface | [ClassModel.ClassSchemaBoxed](#classschemaboxed)
abstract sealed validated payload class | +| sealed interface | [ClassModel.ClassSchemaBoxed](#classschemaboxed)
sealed interface for validated payloads | | record | [ClassModel.ClassSchemaBoxedString](#classschemaboxedstring)
boxed class to store validated String payloads | | static class | [ClassModel.ClassSchema](#classschema)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/Client.md b/samples/client/petstore/java/docs/components/schemas/Client.md index 47f0f34cdaf..e0afb353ac7 100644 --- a/samples/client/petstore/java/docs/components/schemas/Client.md +++ b/samples/client/petstore/java/docs/components/schemas/Client.md @@ -4,7 +4,7 @@ public class Client
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,12 +12,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Client.Client1Boxed](#client1boxed)
abstract sealed validated payload class | +| sealed interface | [Client.Client1Boxed](#client1boxed)
sealed interface for validated payloads | | record | [Client.Client1BoxedMap](#client1boxedmap)
boxed class to store validated Map payloads | | static class | [Client.Client1](#client1)
schema class | | static class | [Client.ClientMapBuilder1](#clientmapbuilder1)
builder for Map payloads | | static class | [Client.ClientMap](#clientmap)
output class for Map payloads | -| sealed interface | [Client.Client2Boxed](#client2boxed)
abstract sealed validated payload class | +| sealed interface | [Client.Client2Boxed](#client2boxed)
sealed interface for validated payloads | | record | [Client.Client2BoxedString](#client2boxedstring)
boxed class to store validated String payloads | | static class | [Client.Client2](#client2)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/ComplexQuadrilateral.md b/samples/client/petstore/java/docs/components/schemas/ComplexQuadrilateral.md index fb98477fcd9..465e8c9cb90 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComplexQuadrilateral.md +++ b/samples/client/petstore/java/docs/components/schemas/ComplexQuadrilateral.md @@ -4,7 +4,7 @@ public class ComplexQuadrilateral
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,7 +13,7 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ComplexQuadrilateral.ComplexQuadrilateral1Boxed](#complexquadrilateral1boxed)
abstract sealed validated payload class | +| sealed interface | [ComplexQuadrilateral.ComplexQuadrilateral1Boxed](#complexquadrilateral1boxed)
sealed interface for validated payloads | | record | [ComplexQuadrilateral.ComplexQuadrilateral1BoxedVoid](#complexquadrilateral1boxedvoid)
boxed class to store validated null payloads | | record | [ComplexQuadrilateral.ComplexQuadrilateral1BoxedBoolean](#complexquadrilateral1boxedboolean)
boxed class to store validated boolean payloads | | record | [ComplexQuadrilateral.ComplexQuadrilateral1BoxedNumber](#complexquadrilateral1boxednumber)
boxed class to store validated Number payloads | @@ -21,12 +21,12 @@ A class that contains necessary nested | record | [ComplexQuadrilateral.ComplexQuadrilateral1BoxedList](#complexquadrilateral1boxedlist)
boxed class to store validated List payloads | | record | [ComplexQuadrilateral.ComplexQuadrilateral1BoxedMap](#complexquadrilateral1boxedmap)
boxed class to store validated Map payloads | | static class | [ComplexQuadrilateral.ComplexQuadrilateral1](#complexquadrilateral1)
schema class | -| sealed interface | [ComplexQuadrilateral.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | +| sealed interface | [ComplexQuadrilateral.Schema1Boxed](#schema1boxed)
sealed interface for validated payloads | | record | [ComplexQuadrilateral.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | | static class | [ComplexQuadrilateral.Schema1](#schema1)
schema class | | static class | [ComplexQuadrilateral.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [ComplexQuadrilateral.Schema1Map](#schema1map)
output class for Map payloads | -| sealed interface | [ComplexQuadrilateral.QuadrilateralTypeBoxed](#quadrilateraltypeboxed)
abstract sealed validated payload class | +| sealed interface | [ComplexQuadrilateral.QuadrilateralTypeBoxed](#quadrilateraltypeboxed)
sealed interface for validated payloads | | record | [ComplexQuadrilateral.QuadrilateralTypeBoxedString](#quadrilateraltypeboxedstring)
boxed class to store validated String payloads | | static class | [ComplexQuadrilateral.QuadrilateralType](#quadrilateraltype)
schema class | | enum | [ComplexQuadrilateral.StringQuadrilateralTypeEnums](#stringquadrilateraltypeenums)
String enum | diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedAnyOfDifferentTypesNoValidations.md b/samples/client/petstore/java/docs/components/schemas/ComposedAnyOfDifferentTypesNoValidations.md index 0a0d049840e..85443a9923c 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedAnyOfDifferentTypesNoValidations.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedAnyOfDifferentTypesNoValidations.md @@ -4,7 +4,7 @@ public class ComposedAnyOfDifferentTypesNoValidations
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,7 +12,7 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.ComposedAnyOfDifferentTypesNoValidations1Boxed](#composedanyofdifferenttypesnovalidations1boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.ComposedAnyOfDifferentTypesNoValidations1Boxed](#composedanyofdifferenttypesnovalidations1boxed)
sealed interface for validated payloads | | record | [ComposedAnyOfDifferentTypesNoValidations.ComposedAnyOfDifferentTypesNoValidations1BoxedVoid](#composedanyofdifferenttypesnovalidations1boxedvoid)
boxed class to store validated null payloads | | record | [ComposedAnyOfDifferentTypesNoValidations.ComposedAnyOfDifferentTypesNoValidations1BoxedBoolean](#composedanyofdifferenttypesnovalidations1boxedboolean)
boxed class to store validated boolean payloads | | record | [ComposedAnyOfDifferentTypesNoValidations.ComposedAnyOfDifferentTypesNoValidations1BoxedNumber](#composedanyofdifferenttypesnovalidations1boxednumber)
boxed class to store validated Number payloads | @@ -20,30 +20,30 @@ A class that contains necessary nested | record | [ComposedAnyOfDifferentTypesNoValidations.ComposedAnyOfDifferentTypesNoValidations1BoxedList](#composedanyofdifferenttypesnovalidations1boxedlist)
boxed class to store validated List payloads | | record | [ComposedAnyOfDifferentTypesNoValidations.ComposedAnyOfDifferentTypesNoValidations1BoxedMap](#composedanyofdifferenttypesnovalidations1boxedmap)
boxed class to store validated Map payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.ComposedAnyOfDifferentTypesNoValidations1](#composedanyofdifferenttypesnovalidations1)
schema class | -| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema15Boxed](#schema15boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema15Boxed](#schema15boxed)
sealed interface for validated payloads | | record | [ComposedAnyOfDifferentTypesNoValidations.Schema15BoxedNumber](#schema15boxednumber)
boxed class to store validated Number payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema15](#schema15)
schema class | -| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema14Boxed](#schema14boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema14Boxed](#schema14boxed)
sealed interface for validated payloads | | record | [ComposedAnyOfDifferentTypesNoValidations.Schema14BoxedNumber](#schema14boxednumber)
boxed class to store validated Number payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema14](#schema14)
schema class | -| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema13Boxed](#schema13boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema13Boxed](#schema13boxed)
sealed interface for validated payloads | | record | [ComposedAnyOfDifferentTypesNoValidations.Schema13BoxedNumber](#schema13boxednumber)
boxed class to store validated Number payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema13](#schema13)
schema class | -| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema12Boxed](#schema12boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema12Boxed](#schema12boxed)
sealed interface for validated payloads | | record | [ComposedAnyOfDifferentTypesNoValidations.Schema12BoxedNumber](#schema12boxednumber)
boxed class to store validated Number payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema12](#schema12)
schema class | -| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema11Boxed](#schema11boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema11Boxed](#schema11boxed)
sealed interface for validated payloads | | record | [ComposedAnyOfDifferentTypesNoValidations.Schema11BoxedNumber](#schema11boxednumber)
boxed class to store validated Number payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema11](#schema11)
schema class | -| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema10Boxed](#schema10boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema10Boxed](#schema10boxed)
sealed interface for validated payloads | | record | [ComposedAnyOfDifferentTypesNoValidations.Schema10BoxedNumber](#schema10boxednumber)
boxed class to store validated Number payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema10](#schema10)
schema class | -| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema9Boxed](#schema9boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema9Boxed](#schema9boxed)
sealed interface for validated payloads | | record | [ComposedAnyOfDifferentTypesNoValidations.Schema9BoxedList](#schema9boxedlist)
boxed class to store validated List payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema9](#schema9)
schema class | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema9ListBuilder](#schema9listbuilder)
builder for List payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema9List](#schema9list)
output class for List payloads | -| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.ItemsBoxed](#itemsboxed)
sealed interface for validated payloads | | record | [ComposedAnyOfDifferentTypesNoValidations.ItemsBoxedVoid](#itemsboxedvoid)
boxed class to store validated null payloads | | record | [ComposedAnyOfDifferentTypesNoValidations.ItemsBoxedBoolean](#itemsboxedboolean)
boxed class to store validated boolean payloads | | record | [ComposedAnyOfDifferentTypesNoValidations.ItemsBoxedNumber](#itemsboxednumber)
boxed class to store validated Number payloads | @@ -51,30 +51,30 @@ A class that contains necessary nested | record | [ComposedAnyOfDifferentTypesNoValidations.ItemsBoxedList](#itemsboxedlist)
boxed class to store validated List payloads | | record | [ComposedAnyOfDifferentTypesNoValidations.ItemsBoxedMap](#itemsboxedmap)
boxed class to store validated Map payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Items](#items)
schema class | -| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema8Boxed](#schema8boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema8Boxed](#schema8boxed)
sealed interface for validated payloads | | record | [ComposedAnyOfDifferentTypesNoValidations.Schema8BoxedVoid](#schema8boxedvoid)
boxed class to store validated null payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema8](#schema8)
schema class | -| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema7Boxed](#schema7boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema7Boxed](#schema7boxed)
sealed interface for validated payloads | | record | [ComposedAnyOfDifferentTypesNoValidations.Schema7BoxedBoolean](#schema7boxedboolean)
boxed class to store validated boolean payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema7](#schema7)
schema class | -| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema6Boxed](#schema6boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema6Boxed](#schema6boxed)
sealed interface for validated payloads | | record | [ComposedAnyOfDifferentTypesNoValidations.Schema6BoxedMap](#schema6boxedmap)
boxed class to store validated Map payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema6](#schema6)
schema class | -| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema5Boxed](#schema5boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema5Boxed](#schema5boxed)
sealed interface for validated payloads | | record | [ComposedAnyOfDifferentTypesNoValidations.Schema5BoxedString](#schema5boxedstring)
boxed class to store validated String payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema5](#schema5)
schema class | -| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema4Boxed](#schema4boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema4Boxed](#schema4boxed)
sealed interface for validated payloads | | record | [ComposedAnyOfDifferentTypesNoValidations.Schema4BoxedString](#schema4boxedstring)
boxed class to store validated String payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema4](#schema4)
schema class | -| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema3Boxed](#schema3boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema3Boxed](#schema3boxed)
sealed interface for validated payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema3](#schema3)
schema class | -| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema2Boxed](#schema2boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema2Boxed](#schema2boxed)
sealed interface for validated payloads | | record | [ComposedAnyOfDifferentTypesNoValidations.Schema2BoxedString](#schema2boxedstring)
boxed class to store validated String payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema2](#schema2)
schema class | -| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema1Boxed](#schema1boxed)
sealed interface for validated payloads | | record | [ComposedAnyOfDifferentTypesNoValidations.Schema1BoxedString](#schema1boxedstring)
boxed class to store validated String payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema1](#schema1)
schema class | -| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedAnyOfDifferentTypesNoValidations.Schema0Boxed](#schema0boxed)
sealed interface for validated payloads | | record | [ComposedAnyOfDifferentTypesNoValidations.Schema0BoxedMap](#schema0boxedmap)
boxed class to store validated Map payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema0](#schema0)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedArray.md b/samples/client/petstore/java/docs/components/schemas/ComposedArray.md index 83d40e55d04..9a84895f7a7 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedArray.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedArray.md @@ -4,7 +4,7 @@ public class ComposedArray
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,12 +12,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ComposedArray.ComposedArray1Boxed](#composedarray1boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedArray.ComposedArray1Boxed](#composedarray1boxed)
sealed interface for validated payloads | | record | [ComposedArray.ComposedArray1BoxedList](#composedarray1boxedlist)
boxed class to store validated List payloads | | static class | [ComposedArray.ComposedArray1](#composedarray1)
schema class | | static class | [ComposedArray.ComposedArrayListBuilder](#composedarraylistbuilder)
builder for List payloads | | static class | [ComposedArray.ComposedArrayList](#composedarraylist)
output class for List payloads | -| sealed interface | [ComposedArray.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | +| sealed interface | [ComposedArray.ItemsBoxed](#itemsboxed)
sealed interface for validated payloads | | record | [ComposedArray.ItemsBoxedVoid](#itemsboxedvoid)
boxed class to store validated null payloads | | record | [ComposedArray.ItemsBoxedBoolean](#itemsboxedboolean)
boxed class to store validated boolean payloads | | record | [ComposedArray.ItemsBoxedNumber](#itemsboxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedBool.md b/samples/client/petstore/java/docs/components/schemas/ComposedBool.md index 8e5fdf228db..2927f63f5fe 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedBool.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedBool.md @@ -4,16 +4,16 @@ public class ComposedBool
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [ComposedBool.ComposedBool1Boxed](#composedbool1boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedBool.ComposedBool1Boxed](#composedbool1boxed)
sealed interface for validated payloads | | record | [ComposedBool.ComposedBool1BoxedBoolean](#composedbool1boxedboolean)
boxed class to store validated boolean payloads | | static class | [ComposedBool.ComposedBool1](#composedbool1)
schema class | -| sealed interface | [ComposedBool.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedBool.Schema0Boxed](#schema0boxed)
sealed interface for validated payloads | | record | [ComposedBool.Schema0BoxedVoid](#schema0boxedvoid)
boxed class to store validated null payloads | | record | [ComposedBool.Schema0BoxedBoolean](#schema0boxedboolean)
boxed class to store validated boolean payloads | | record | [ComposedBool.Schema0BoxedNumber](#schema0boxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedNone.md b/samples/client/petstore/java/docs/components/schemas/ComposedNone.md index 7d9c51873de..5ff4b6db8c2 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedNone.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedNone.md @@ -4,16 +4,16 @@ public class ComposedNone
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [ComposedNone.ComposedNone1Boxed](#composednone1boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedNone.ComposedNone1Boxed](#composednone1boxed)
sealed interface for validated payloads | | record | [ComposedNone.ComposedNone1BoxedVoid](#composednone1boxedvoid)
boxed class to store validated null payloads | | static class | [ComposedNone.ComposedNone1](#composednone1)
schema class | -| sealed interface | [ComposedNone.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedNone.Schema0Boxed](#schema0boxed)
sealed interface for validated payloads | | record | [ComposedNone.Schema0BoxedVoid](#schema0boxedvoid)
boxed class to store validated null payloads | | record | [ComposedNone.Schema0BoxedBoolean](#schema0boxedboolean)
boxed class to store validated boolean payloads | | record | [ComposedNone.Schema0BoxedNumber](#schema0boxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedNumber.md b/samples/client/petstore/java/docs/components/schemas/ComposedNumber.md index 2cc89cfad30..443863d0d15 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedNumber.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedNumber.md @@ -4,16 +4,16 @@ public class ComposedNumber
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [ComposedNumber.ComposedNumber1Boxed](#composednumber1boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedNumber.ComposedNumber1Boxed](#composednumber1boxed)
sealed interface for validated payloads | | record | [ComposedNumber.ComposedNumber1BoxedNumber](#composednumber1boxednumber)
boxed class to store validated Number payloads | | static class | [ComposedNumber.ComposedNumber1](#composednumber1)
schema class | -| sealed interface | [ComposedNumber.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedNumber.Schema0Boxed](#schema0boxed)
sealed interface for validated payloads | | record | [ComposedNumber.Schema0BoxedVoid](#schema0boxedvoid)
boxed class to store validated null payloads | | record | [ComposedNumber.Schema0BoxedBoolean](#schema0boxedboolean)
boxed class to store validated boolean payloads | | record | [ComposedNumber.Schema0BoxedNumber](#schema0boxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedObject.md b/samples/client/petstore/java/docs/components/schemas/ComposedObject.md index efb80aa7b09..a17050d34fa 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedObject.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedObject.md @@ -4,16 +4,16 @@ public class ComposedObject
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [ComposedObject.ComposedObject1Boxed](#composedobject1boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedObject.ComposedObject1Boxed](#composedobject1boxed)
sealed interface for validated payloads | | record | [ComposedObject.ComposedObject1BoxedMap](#composedobject1boxedmap)
boxed class to store validated Map payloads | | static class | [ComposedObject.ComposedObject1](#composedobject1)
schema class | -| sealed interface | [ComposedObject.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedObject.Schema0Boxed](#schema0boxed)
sealed interface for validated payloads | | record | [ComposedObject.Schema0BoxedVoid](#schema0boxedvoid)
boxed class to store validated null payloads | | record | [ComposedObject.Schema0BoxedBoolean](#schema0boxedboolean)
boxed class to store validated boolean payloads | | record | [ComposedObject.Schema0BoxedNumber](#schema0boxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedOneOfDifferentTypes.md b/samples/client/petstore/java/docs/components/schemas/ComposedOneOfDifferentTypes.md index e87093851e0..d67d8e3085b 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedOneOfDifferentTypes.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedOneOfDifferentTypes.md @@ -4,7 +4,7 @@ public class ComposedOneOfDifferentTypes
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,7 +12,7 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1Boxed](#composedoneofdifferenttypes1boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1Boxed](#composedoneofdifferenttypes1boxed)
sealed interface for validated payloads | | record | [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1BoxedVoid](#composedoneofdifferenttypes1boxedvoid)
boxed class to store validated null payloads | | record | [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1BoxedBoolean](#composedoneofdifferenttypes1boxedboolean)
boxed class to store validated boolean payloads | | record | [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1BoxedNumber](#composedoneofdifferenttypes1boxednumber)
boxed class to store validated Number payloads | @@ -20,15 +20,15 @@ A class that contains necessary nested | record | [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1BoxedList](#composedoneofdifferenttypes1boxedlist)
boxed class to store validated List payloads | | record | [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1BoxedMap](#composedoneofdifferenttypes1boxedmap)
boxed class to store validated Map payloads | | static class | [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1](#composedoneofdifferenttypes1)
schema class | -| sealed interface | [ComposedOneOfDifferentTypes.Schema6Boxed](#schema6boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedOneOfDifferentTypes.Schema6Boxed](#schema6boxed)
sealed interface for validated payloads | | record | [ComposedOneOfDifferentTypes.Schema6BoxedString](#schema6boxedstring)
boxed class to store validated String payloads | | static class | [ComposedOneOfDifferentTypes.Schema6](#schema6)
schema class | -| sealed interface | [ComposedOneOfDifferentTypes.Schema5Boxed](#schema5boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedOneOfDifferentTypes.Schema5Boxed](#schema5boxed)
sealed interface for validated payloads | | record | [ComposedOneOfDifferentTypes.Schema5BoxedList](#schema5boxedlist)
boxed class to store validated List payloads | | static class | [ComposedOneOfDifferentTypes.Schema5](#schema5)
schema class | | static class | [ComposedOneOfDifferentTypes.Schema5ListBuilder](#schema5listbuilder)
builder for List payloads | | static class | [ComposedOneOfDifferentTypes.Schema5List](#schema5list)
output class for List payloads | -| sealed interface | [ComposedOneOfDifferentTypes.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | +| sealed interface | [ComposedOneOfDifferentTypes.ItemsBoxed](#itemsboxed)
sealed interface for validated payloads | | record | [ComposedOneOfDifferentTypes.ItemsBoxedVoid](#itemsboxedvoid)
boxed class to store validated null payloads | | record | [ComposedOneOfDifferentTypes.ItemsBoxedBoolean](#itemsboxedboolean)
boxed class to store validated boolean payloads | | record | [ComposedOneOfDifferentTypes.ItemsBoxedNumber](#itemsboxednumber)
boxed class to store validated Number payloads | @@ -36,13 +36,13 @@ A class that contains necessary nested | record | [ComposedOneOfDifferentTypes.ItemsBoxedList](#itemsboxedlist)
boxed class to store validated List payloads | | record | [ComposedOneOfDifferentTypes.ItemsBoxedMap](#itemsboxedmap)
boxed class to store validated Map payloads | | static class | [ComposedOneOfDifferentTypes.Items](#items)
schema class | -| sealed interface | [ComposedOneOfDifferentTypes.Schema4Boxed](#schema4boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedOneOfDifferentTypes.Schema4Boxed](#schema4boxed)
sealed interface for validated payloads | | record | [ComposedOneOfDifferentTypes.Schema4BoxedMap](#schema4boxedmap)
boxed class to store validated Map payloads | | static class | [ComposedOneOfDifferentTypes.Schema4](#schema4)
schema class | -| sealed interface | [ComposedOneOfDifferentTypes.Schema3Boxed](#schema3boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedOneOfDifferentTypes.Schema3Boxed](#schema3boxed)
sealed interface for validated payloads | | record | [ComposedOneOfDifferentTypes.Schema3BoxedString](#schema3boxedstring)
boxed class to store validated String payloads | | static class | [ComposedOneOfDifferentTypes.Schema3](#schema3)
schema class | -| sealed interface | [ComposedOneOfDifferentTypes.Schema2Boxed](#schema2boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedOneOfDifferentTypes.Schema2Boxed](#schema2boxed)
sealed interface for validated payloads | | record | [ComposedOneOfDifferentTypes.Schema2BoxedVoid](#schema2boxedvoid)
boxed class to store validated null payloads | | static class | [ComposedOneOfDifferentTypes.Schema2](#schema2)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedString.md b/samples/client/petstore/java/docs/components/schemas/ComposedString.md index 0a8b1c7999b..06da6e61df4 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedString.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedString.md @@ -4,16 +4,16 @@ public class ComposedString
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [ComposedString.ComposedString1Boxed](#composedstring1boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedString.ComposedString1Boxed](#composedstring1boxed)
sealed interface for validated payloads | | record | [ComposedString.ComposedString1BoxedString](#composedstring1boxedstring)
boxed class to store validated String payloads | | static class | [ComposedString.ComposedString1](#composedstring1)
schema class | -| sealed interface | [ComposedString.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | +| sealed interface | [ComposedString.Schema0Boxed](#schema0boxed)
sealed interface for validated payloads | | record | [ComposedString.Schema0BoxedVoid](#schema0boxedvoid)
boxed class to store validated null payloads | | record | [ComposedString.Schema0BoxedBoolean](#schema0boxedboolean)
boxed class to store validated boolean payloads | | record | [ComposedString.Schema0BoxedNumber](#schema0boxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/Currency.md b/samples/client/petstore/java/docs/components/schemas/Currency.md index 209918caddb..06de2075157 100644 --- a/samples/client/petstore/java/docs/components/schemas/Currency.md +++ b/samples/client/petstore/java/docs/components/schemas/Currency.md @@ -4,14 +4,14 @@ public class Currency
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Currency.Currency1Boxed](#currency1boxed)
abstract sealed validated payload class | +| sealed interface | [Currency.Currency1Boxed](#currency1boxed)
sealed interface for validated payloads | | record | [Currency.Currency1BoxedString](#currency1boxedstring)
boxed class to store validated String payloads | | static class | [Currency.Currency1](#currency1)
schema class | | enum | [Currency.StringCurrencyEnums](#stringcurrencyenums)
String enum | diff --git a/samples/client/petstore/java/docs/components/schemas/DanishPig.md b/samples/client/petstore/java/docs/components/schemas/DanishPig.md index 1e25f21a4e7..6d05b4d9f54 100644 --- a/samples/client/petstore/java/docs/components/schemas/DanishPig.md +++ b/samples/client/petstore/java/docs/components/schemas/DanishPig.md @@ -4,7 +4,7 @@ public class DanishPig
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,12 +13,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [DanishPig.DanishPig1Boxed](#danishpig1boxed)
abstract sealed validated payload class | +| sealed interface | [DanishPig.DanishPig1Boxed](#danishpig1boxed)
sealed interface for validated payloads | | record | [DanishPig.DanishPig1BoxedMap](#danishpig1boxedmap)
boxed class to store validated Map payloads | | static class | [DanishPig.DanishPig1](#danishpig1)
schema class | | static class | [DanishPig.DanishPigMapBuilder](#danishpigmapbuilder)
builder for Map payloads | | static class | [DanishPig.DanishPigMap](#danishpigmap)
output class for Map payloads | -| sealed interface | [DanishPig.ClassNameBoxed](#classnameboxed)
abstract sealed validated payload class | +| sealed interface | [DanishPig.ClassNameBoxed](#classnameboxed)
sealed interface for validated payloads | | record | [DanishPig.ClassNameBoxedString](#classnameboxedstring)
boxed class to store validated String payloads | | static class | [DanishPig.ClassName](#classname)
schema class | | enum | [DanishPig.StringClassNameEnums](#stringclassnameenums)
String enum | diff --git a/samples/client/petstore/java/docs/components/schemas/DateTimeTest.md b/samples/client/petstore/java/docs/components/schemas/DateTimeTest.md index 272fb361bc1..2568f381200 100644 --- a/samples/client/petstore/java/docs/components/schemas/DateTimeTest.md +++ b/samples/client/petstore/java/docs/components/schemas/DateTimeTest.md @@ -4,13 +4,13 @@ public class DateTimeTest
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [DateTimeTest.DateTimeTest1Boxed](#datetimetest1boxed)
abstract sealed validated payload class | +| sealed interface | [DateTimeTest.DateTimeTest1Boxed](#datetimetest1boxed)
sealed interface for validated payloads | | record | [DateTimeTest.DateTimeTest1BoxedString](#datetimetest1boxedstring)
boxed class to store validated String payloads | | static class | [DateTimeTest.DateTimeTest1](#datetimetest1)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/DateTimeWithValidations.md b/samples/client/petstore/java/docs/components/schemas/DateTimeWithValidations.md index 952c0e3b46b..643e407374b 100644 --- a/samples/client/petstore/java/docs/components/schemas/DateTimeWithValidations.md +++ b/samples/client/petstore/java/docs/components/schemas/DateTimeWithValidations.md @@ -4,13 +4,13 @@ public class DateTimeWithValidations
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [DateTimeWithValidations.DateTimeWithValidations1Boxed](#datetimewithvalidations1boxed)
abstract sealed validated payload class | +| sealed interface | [DateTimeWithValidations.DateTimeWithValidations1Boxed](#datetimewithvalidations1boxed)
sealed interface for validated payloads | | record | [DateTimeWithValidations.DateTimeWithValidations1BoxedString](#datetimewithvalidations1boxedstring)
boxed class to store validated String payloads | | static class | [DateTimeWithValidations.DateTimeWithValidations1](#datetimewithvalidations1)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/DateWithValidations.md b/samples/client/petstore/java/docs/components/schemas/DateWithValidations.md index 2e47b97d7d6..67f5bf50f85 100644 --- a/samples/client/petstore/java/docs/components/schemas/DateWithValidations.md +++ b/samples/client/petstore/java/docs/components/schemas/DateWithValidations.md @@ -4,13 +4,13 @@ public class DateWithValidations
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [DateWithValidations.DateWithValidations1Boxed](#datewithvalidations1boxed)
abstract sealed validated payload class | +| sealed interface | [DateWithValidations.DateWithValidations1Boxed](#datewithvalidations1boxed)
sealed interface for validated payloads | | record | [DateWithValidations.DateWithValidations1BoxedString](#datewithvalidations1boxedstring)
boxed class to store validated String payloads | | static class | [DateWithValidations.DateWithValidations1](#datewithvalidations1)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/DecimalPayload.md b/samples/client/petstore/java/docs/components/schemas/DecimalPayload.md index d497a446ea0..d9431cd5451 100644 --- a/samples/client/petstore/java/docs/components/schemas/DecimalPayload.md +++ b/samples/client/petstore/java/docs/components/schemas/DecimalPayload.md @@ -4,13 +4,13 @@ public class DecimalPayload
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [DecimalPayload.DecimalPayload1Boxed](#decimalpayload1boxed)
abstract sealed validated payload class | +| sealed interface | [DecimalPayload.DecimalPayload1Boxed](#decimalpayload1boxed)
sealed interface for validated payloads | | record | [DecimalPayload.DecimalPayload1BoxedString](#decimalpayload1boxedstring)
boxed class to store validated String payloads | | static class | [DecimalPayload.DecimalPayload1](#decimalpayload1)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/Dog.md b/samples/client/petstore/java/docs/components/schemas/Dog.md index fe37a0ad086..2b2d367c0d5 100644 --- a/samples/client/petstore/java/docs/components/schemas/Dog.md +++ b/samples/client/petstore/java/docs/components/schemas/Dog.md @@ -4,7 +4,7 @@ public class Dog
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,7 +12,7 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Dog.Dog1Boxed](#dog1boxed)
abstract sealed validated payload class | +| sealed interface | [Dog.Dog1Boxed](#dog1boxed)
sealed interface for validated payloads | | record | [Dog.Dog1BoxedVoid](#dog1boxedvoid)
boxed class to store validated null payloads | | record | [Dog.Dog1BoxedBoolean](#dog1boxedboolean)
boxed class to store validated boolean payloads | | record | [Dog.Dog1BoxedNumber](#dog1boxednumber)
boxed class to store validated Number payloads | @@ -20,12 +20,12 @@ A class that contains necessary nested | record | [Dog.Dog1BoxedList](#dog1boxedlist)
boxed class to store validated List payloads | | record | [Dog.Dog1BoxedMap](#dog1boxedmap)
boxed class to store validated Map payloads | | static class | [Dog.Dog1](#dog1)
schema class | -| sealed interface | [Dog.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | +| sealed interface | [Dog.Schema1Boxed](#schema1boxed)
sealed interface for validated payloads | | record | [Dog.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | | static class | [Dog.Schema1](#schema1)
schema class | | static class | [Dog.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [Dog.Schema1Map](#schema1map)
output class for Map payloads | -| sealed interface | [Dog.BreedBoxed](#breedboxed)
abstract sealed validated payload class | +| sealed interface | [Dog.BreedBoxed](#breedboxed)
sealed interface for validated payloads | | record | [Dog.BreedBoxedString](#breedboxedstring)
boxed class to store validated String payloads | | static class | [Dog.Breed](#breed)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/Drawing.md b/samples/client/petstore/java/docs/components/schemas/Drawing.md index 7af4d3730c1..f931c66c569 100644 --- a/samples/client/petstore/java/docs/components/schemas/Drawing.md +++ b/samples/client/petstore/java/docs/components/schemas/Drawing.md @@ -4,7 +4,7 @@ public class Drawing
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -14,12 +14,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Drawing.Drawing1Boxed](#drawing1boxed)
abstract sealed validated payload class | +| sealed interface | [Drawing.Drawing1Boxed](#drawing1boxed)
sealed interface for validated payloads | | record | [Drawing.Drawing1BoxedMap](#drawing1boxedmap)
boxed class to store validated Map payloads | | static class | [Drawing.Drawing1](#drawing1)
schema class | | static class | [Drawing.DrawingMapBuilder](#drawingmapbuilder)
builder for Map payloads | | static class | [Drawing.DrawingMap](#drawingmap)
output class for Map payloads | -| sealed interface | [Drawing.ShapesBoxed](#shapesboxed)
abstract sealed validated payload class | +| sealed interface | [Drawing.ShapesBoxed](#shapesboxed)
sealed interface for validated payloads | | record | [Drawing.ShapesBoxedList](#shapesboxedlist)
boxed class to store validated List payloads | | static class | [Drawing.Shapes](#shapes)
schema class | | static class | [Drawing.ShapesListBuilder](#shapeslistbuilder)
builder for List payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/EnumArrays.md b/samples/client/petstore/java/docs/components/schemas/EnumArrays.md index 8e2fd2a5f66..60e55b10c9b 100644 --- a/samples/client/petstore/java/docs/components/schemas/EnumArrays.md +++ b/samples/client/petstore/java/docs/components/schemas/EnumArrays.md @@ -4,7 +4,7 @@ public class EnumArrays
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -15,21 +15,21 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [EnumArrays.EnumArrays1Boxed](#enumarrays1boxed)
abstract sealed validated payload class | +| sealed interface | [EnumArrays.EnumArrays1Boxed](#enumarrays1boxed)
sealed interface for validated payloads | | record | [EnumArrays.EnumArrays1BoxedMap](#enumarrays1boxedmap)
boxed class to store validated Map payloads | | static class | [EnumArrays.EnumArrays1](#enumarrays1)
schema class | | static class | [EnumArrays.EnumArraysMapBuilder](#enumarraysmapbuilder)
builder for Map payloads | | static class | [EnumArrays.EnumArraysMap](#enumarraysmap)
output class for Map payloads | -| sealed interface | [EnumArrays.ArrayEnumBoxed](#arrayenumboxed)
abstract sealed validated payload class | +| sealed interface | [EnumArrays.ArrayEnumBoxed](#arrayenumboxed)
sealed interface for validated payloads | | record | [EnumArrays.ArrayEnumBoxedList](#arrayenumboxedlist)
boxed class to store validated List payloads | | static class | [EnumArrays.ArrayEnum](#arrayenum)
schema class | | static class | [EnumArrays.ArrayEnumListBuilder](#arrayenumlistbuilder)
builder for List payloads | | static class | [EnumArrays.ArrayEnumList](#arrayenumlist)
output class for List payloads | -| sealed interface | [EnumArrays.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | +| sealed interface | [EnumArrays.ItemsBoxed](#itemsboxed)
sealed interface for validated payloads | | record | [EnumArrays.ItemsBoxedString](#itemsboxedstring)
boxed class to store validated String payloads | | static class | [EnumArrays.Items](#items)
schema class | | enum | [EnumArrays.StringItemsEnums](#stringitemsenums)
String enum | -| sealed interface | [EnumArrays.JustSymbolBoxed](#justsymbolboxed)
abstract sealed validated payload class | +| sealed interface | [EnumArrays.JustSymbolBoxed](#justsymbolboxed)
sealed interface for validated payloads | | record | [EnumArrays.JustSymbolBoxedString](#justsymbolboxedstring)
boxed class to store validated String payloads | | static class | [EnumArrays.JustSymbol](#justsymbol)
schema class | | enum | [EnumArrays.StringJustSymbolEnums](#stringjustsymbolenums)
String enum | diff --git a/samples/client/petstore/java/docs/components/schemas/EnumClass.md b/samples/client/petstore/java/docs/components/schemas/EnumClass.md index 1d88aaf4766..3dfb17ec91e 100644 --- a/samples/client/petstore/java/docs/components/schemas/EnumClass.md +++ b/samples/client/petstore/java/docs/components/schemas/EnumClass.md @@ -4,14 +4,14 @@ public class EnumClass
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [EnumClass.EnumClass1Boxed](#enumclass1boxed)
abstract sealed validated payload class | +| sealed interface | [EnumClass.EnumClass1Boxed](#enumclass1boxed)
sealed interface for validated payloads | | record | [EnumClass.EnumClass1BoxedString](#enumclass1boxedstring)
boxed class to store validated String payloads | | static class | [EnumClass.EnumClass1](#enumclass1)
schema class | | enum | [EnumClass.StringEnumClassEnums](#stringenumclassenums)
String enum | diff --git a/samples/client/petstore/java/docs/components/schemas/EnumTest.md b/samples/client/petstore/java/docs/components/schemas/EnumTest.md index a1fbe6a00dd..a69890dbfc1 100644 --- a/samples/client/petstore/java/docs/components/schemas/EnumTest.md +++ b/samples/client/petstore/java/docs/components/schemas/EnumTest.md @@ -4,7 +4,7 @@ public class EnumTest
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,28 +13,28 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [EnumTest.EnumTest1Boxed](#enumtest1boxed)
abstract sealed validated payload class | +| sealed interface | [EnumTest.EnumTest1Boxed](#enumtest1boxed)
sealed interface for validated payloads | | record | [EnumTest.EnumTest1BoxedMap](#enumtest1boxedmap)
boxed class to store validated Map payloads | | static class | [EnumTest.EnumTest1](#enumtest1)
schema class | | static class | [EnumTest.EnumTestMapBuilder](#enumtestmapbuilder)
builder for Map payloads | | static class | [EnumTest.EnumTestMap](#enumtestmap)
output class for Map payloads | -| sealed interface | [EnumTest.EnumNumberBoxed](#enumnumberboxed)
abstract sealed validated payload class | +| sealed interface | [EnumTest.EnumNumberBoxed](#enumnumberboxed)
sealed interface for validated payloads | | record | [EnumTest.EnumNumberBoxedNumber](#enumnumberboxednumber)
boxed class to store validated Number payloads | | static class | [EnumTest.EnumNumber](#enumnumber)
schema class | | enum | [EnumTest.DoubleEnumNumberEnums](#doubleenumnumberenums)
Double enum | | enum | [EnumTest.FloatEnumNumberEnums](#floatenumnumberenums)
Float enum | -| sealed interface | [EnumTest.EnumIntegerBoxed](#enumintegerboxed)
abstract sealed validated payload class | +| sealed interface | [EnumTest.EnumIntegerBoxed](#enumintegerboxed)
sealed interface for validated payloads | | record | [EnumTest.EnumIntegerBoxedNumber](#enumintegerboxednumber)
boxed class to store validated Number payloads | | static class | [EnumTest.EnumInteger](#enuminteger)
schema class | | enum | [EnumTest.IntegerEnumIntegerEnums](#integerenumintegerenums)
Integer enum | | enum | [EnumTest.LongEnumIntegerEnums](#longenumintegerenums)
Long enum | | enum | [EnumTest.FloatEnumIntegerEnums](#floatenumintegerenums)
Float enum | | enum | [EnumTest.DoubleEnumIntegerEnums](#doubleenumintegerenums)
Double enum | -| sealed interface | [EnumTest.EnumStringRequiredBoxed](#enumstringrequiredboxed)
abstract sealed validated payload class | +| sealed interface | [EnumTest.EnumStringRequiredBoxed](#enumstringrequiredboxed)
sealed interface for validated payloads | | record | [EnumTest.EnumStringRequiredBoxedString](#enumstringrequiredboxedstring)
boxed class to store validated String payloads | | static class | [EnumTest.EnumStringRequired](#enumstringrequired)
schema class | | enum | [EnumTest.StringEnumStringRequiredEnums](#stringenumstringrequiredenums)
String enum | -| sealed interface | [EnumTest.EnumStringBoxed](#enumstringboxed)
abstract sealed validated payload class | +| sealed interface | [EnumTest.EnumStringBoxed](#enumstringboxed)
sealed interface for validated payloads | | record | [EnumTest.EnumStringBoxedString](#enumstringboxedstring)
boxed class to store validated String payloads | | static class | [EnumTest.EnumString](#enumstring)
schema class | | enum | [EnumTest.StringEnumStringEnums](#stringenumstringenums)
String enum | diff --git a/samples/client/petstore/java/docs/components/schemas/EquilateralTriangle.md b/samples/client/petstore/java/docs/components/schemas/EquilateralTriangle.md index 9f8c668e07d..23acc88f5c6 100644 --- a/samples/client/petstore/java/docs/components/schemas/EquilateralTriangle.md +++ b/samples/client/petstore/java/docs/components/schemas/EquilateralTriangle.md @@ -4,7 +4,7 @@ public class EquilateralTriangle
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,7 +13,7 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [EquilateralTriangle.EquilateralTriangle1Boxed](#equilateraltriangle1boxed)
abstract sealed validated payload class | +| sealed interface | [EquilateralTriangle.EquilateralTriangle1Boxed](#equilateraltriangle1boxed)
sealed interface for validated payloads | | record | [EquilateralTriangle.EquilateralTriangle1BoxedVoid](#equilateraltriangle1boxedvoid)
boxed class to store validated null payloads | | record | [EquilateralTriangle.EquilateralTriangle1BoxedBoolean](#equilateraltriangle1boxedboolean)
boxed class to store validated boolean payloads | | record | [EquilateralTriangle.EquilateralTriangle1BoxedNumber](#equilateraltriangle1boxednumber)
boxed class to store validated Number payloads | @@ -21,12 +21,12 @@ A class that contains necessary nested | record | [EquilateralTriangle.EquilateralTriangle1BoxedList](#equilateraltriangle1boxedlist)
boxed class to store validated List payloads | | record | [EquilateralTriangle.EquilateralTriangle1BoxedMap](#equilateraltriangle1boxedmap)
boxed class to store validated Map payloads | | static class | [EquilateralTriangle.EquilateralTriangle1](#equilateraltriangle1)
schema class | -| sealed interface | [EquilateralTriangle.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | +| sealed interface | [EquilateralTriangle.Schema1Boxed](#schema1boxed)
sealed interface for validated payloads | | record | [EquilateralTriangle.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | | static class | [EquilateralTriangle.Schema1](#schema1)
schema class | | static class | [EquilateralTriangle.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [EquilateralTriangle.Schema1Map](#schema1map)
output class for Map payloads | -| sealed interface | [EquilateralTriangle.TriangleTypeBoxed](#triangletypeboxed)
abstract sealed validated payload class | +| sealed interface | [EquilateralTriangle.TriangleTypeBoxed](#triangletypeboxed)
sealed interface for validated payloads | | record | [EquilateralTriangle.TriangleTypeBoxedString](#triangletypeboxedstring)
boxed class to store validated String payloads | | static class | [EquilateralTriangle.TriangleType](#triangletype)
schema class | | enum | [EquilateralTriangle.StringTriangleTypeEnums](#stringtriangletypeenums)
String enum | diff --git a/samples/client/petstore/java/docs/components/schemas/File.md b/samples/client/petstore/java/docs/components/schemas/File.md index a3e94ffd2bd..f0cf7f6e0c4 100644 --- a/samples/client/petstore/java/docs/components/schemas/File.md +++ b/samples/client/petstore/java/docs/components/schemas/File.md @@ -4,7 +4,7 @@ public class File
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,12 +12,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [File.File1Boxed](#file1boxed)
abstract sealed validated payload class | +| sealed interface | [File.File1Boxed](#file1boxed)
sealed interface for validated payloads | | record | [File.File1BoxedMap](#file1boxedmap)
boxed class to store validated Map payloads | | static class | [File.File1](#file1)
schema class | | static class | [File.FileMapBuilder](#filemapbuilder)
builder for Map payloads | | static class | [File.FileMap](#filemap)
output class for Map payloads | -| sealed interface | [File.SourceURIBoxed](#sourceuriboxed)
abstract sealed validated payload class | +| sealed interface | [File.SourceURIBoxed](#sourceuriboxed)
sealed interface for validated payloads | | record | [File.SourceURIBoxedString](#sourceuriboxedstring)
boxed class to store validated String payloads | | static class | [File.SourceURI](#sourceuri)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/FileSchemaTestClass.md b/samples/client/petstore/java/docs/components/schemas/FileSchemaTestClass.md index 2e0e62a5cf6..b1234e96acf 100644 --- a/samples/client/petstore/java/docs/components/schemas/FileSchemaTestClass.md +++ b/samples/client/petstore/java/docs/components/schemas/FileSchemaTestClass.md @@ -4,7 +4,7 @@ public class FileSchemaTestClass
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -14,12 +14,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [FileSchemaTestClass.FileSchemaTestClass1Boxed](#fileschematestclass1boxed)
abstract sealed validated payload class | +| sealed interface | [FileSchemaTestClass.FileSchemaTestClass1Boxed](#fileschematestclass1boxed)
sealed interface for validated payloads | | record | [FileSchemaTestClass.FileSchemaTestClass1BoxedMap](#fileschematestclass1boxedmap)
boxed class to store validated Map payloads | | static class | [FileSchemaTestClass.FileSchemaTestClass1](#fileschematestclass1)
schema class | | static class | [FileSchemaTestClass.FileSchemaTestClassMapBuilder](#fileschematestclassmapbuilder)
builder for Map payloads | | static class | [FileSchemaTestClass.FileSchemaTestClassMap](#fileschematestclassmap)
output class for Map payloads | -| sealed interface | [FileSchemaTestClass.FilesBoxed](#filesboxed)
abstract sealed validated payload class | +| sealed interface | [FileSchemaTestClass.FilesBoxed](#filesboxed)
sealed interface for validated payloads | | record | [FileSchemaTestClass.FilesBoxedList](#filesboxedlist)
boxed class to store validated List payloads | | static class | [FileSchemaTestClass.Files](#files)
schema class | | static class | [FileSchemaTestClass.FilesListBuilder](#fileslistbuilder)
builder for List payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/Foo.md b/samples/client/petstore/java/docs/components/schemas/Foo.md index 51774175f7e..7b0137b56fd 100644 --- a/samples/client/petstore/java/docs/components/schemas/Foo.md +++ b/samples/client/petstore/java/docs/components/schemas/Foo.md @@ -4,7 +4,7 @@ public class Foo
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,7 +12,7 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Foo.Foo1Boxed](#foo1boxed)
abstract sealed validated payload class | +| sealed interface | [Foo.Foo1Boxed](#foo1boxed)
sealed interface for validated payloads | | record | [Foo.Foo1BoxedMap](#foo1boxedmap)
boxed class to store validated Map payloads | | static class | [Foo.Foo1](#foo1)
schema class | | static class | [Foo.FooMapBuilder](#foomapbuilder)
builder for Map payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/FormatTest.md b/samples/client/petstore/java/docs/components/schemas/FormatTest.md index 6e16a0824a6..61c6c189038 100644 --- a/samples/client/petstore/java/docs/components/schemas/FormatTest.md +++ b/samples/client/petstore/java/docs/components/schemas/FormatTest.md @@ -4,7 +4,7 @@ public class FormatTest
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -14,76 +14,76 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [FormatTest.FormatTest1Boxed](#formattest1boxed)
abstract sealed validated payload class | +| sealed interface | [FormatTest.FormatTest1Boxed](#formattest1boxed)
sealed interface for validated payloads | | record | [FormatTest.FormatTest1BoxedMap](#formattest1boxedmap)
boxed class to store validated Map payloads | | static class | [FormatTest.FormatTest1](#formattest1)
schema class | | static class | [FormatTest.FormatTestMapBuilder](#formattestmapbuilder)
builder for Map payloads | | static class | [FormatTest.FormatTestMap](#formattestmap)
output class for Map payloads | -| sealed interface | [FormatTest.NonePropBoxed](#nonepropboxed)
abstract sealed validated payload class | +| sealed interface | [FormatTest.NonePropBoxed](#nonepropboxed)
sealed interface for validated payloads | | record | [FormatTest.NonePropBoxedVoid](#nonepropboxedvoid)
boxed class to store validated null payloads | | static class | [FormatTest.NoneProp](#noneprop)
schema class | -| sealed interface | [FormatTest.PatternWithDigitsAndDelimiterBoxed](#patternwithdigitsanddelimiterboxed)
abstract sealed validated payload class | +| sealed interface | [FormatTest.PatternWithDigitsAndDelimiterBoxed](#patternwithdigitsanddelimiterboxed)
sealed interface for validated payloads | | record | [FormatTest.PatternWithDigitsAndDelimiterBoxedString](#patternwithdigitsanddelimiterboxedstring)
boxed class to store validated String payloads | | static class | [FormatTest.PatternWithDigitsAndDelimiter](#patternwithdigitsanddelimiter)
schema class | -| sealed interface | [FormatTest.PatternWithDigitsBoxed](#patternwithdigitsboxed)
abstract sealed validated payload class | +| sealed interface | [FormatTest.PatternWithDigitsBoxed](#patternwithdigitsboxed)
sealed interface for validated payloads | | record | [FormatTest.PatternWithDigitsBoxedString](#patternwithdigitsboxedstring)
boxed class to store validated String payloads | | static class | [FormatTest.PatternWithDigits](#patternwithdigits)
schema class | -| sealed interface | [FormatTest.PasswordBoxed](#passwordboxed)
abstract sealed validated payload class | +| sealed interface | [FormatTest.PasswordBoxed](#passwordboxed)
sealed interface for validated payloads | | record | [FormatTest.PasswordBoxedString](#passwordboxedstring)
boxed class to store validated String payloads | | static class | [FormatTest.Password](#password)
schema class | -| sealed interface | [FormatTest.UuidNoExampleBoxed](#uuidnoexampleboxed)
abstract sealed validated payload class | +| sealed interface | [FormatTest.UuidNoExampleBoxed](#uuidnoexampleboxed)
sealed interface for validated payloads | | record | [FormatTest.UuidNoExampleBoxedString](#uuidnoexampleboxedstring)
boxed class to store validated String payloads | | static class | [FormatTest.UuidNoExample](#uuidnoexample)
schema class | -| sealed interface | [FormatTest.UuidSchemaBoxed](#uuidschemaboxed)
abstract sealed validated payload class | +| sealed interface | [FormatTest.UuidSchemaBoxed](#uuidschemaboxed)
sealed interface for validated payloads | | record | [FormatTest.UuidSchemaBoxedString](#uuidschemaboxedstring)
boxed class to store validated String payloads | | static class | [FormatTest.UuidSchema](#uuidschema)
schema class | -| sealed interface | [FormatTest.DateTimeBoxed](#datetimeboxed)
abstract sealed validated payload class | +| sealed interface | [FormatTest.DateTimeBoxed](#datetimeboxed)
sealed interface for validated payloads | | record | [FormatTest.DateTimeBoxedString](#datetimeboxedstring)
boxed class to store validated String payloads | | static class | [FormatTest.DateTime](#datetime)
schema class | -| sealed interface | [FormatTest.DateBoxed](#dateboxed)
abstract sealed validated payload class | +| sealed interface | [FormatTest.DateBoxed](#dateboxed)
sealed interface for validated payloads | | record | [FormatTest.DateBoxedString](#dateboxedstring)
boxed class to store validated String payloads | | static class | [FormatTest.Date](#date)
schema class | -| sealed interface | [FormatTest.BinaryBoxed](#binaryboxed)
abstract sealed validated payload class | +| sealed interface | [FormatTest.BinaryBoxed](#binaryboxed)
sealed interface for validated payloads | | static class | [FormatTest.Binary](#binary)
schema class | -| sealed interface | [FormatTest.ByteSchemaBoxed](#byteschemaboxed)
abstract sealed validated payload class | +| sealed interface | [FormatTest.ByteSchemaBoxed](#byteschemaboxed)
sealed interface for validated payloads | | record | [FormatTest.ByteSchemaBoxedString](#byteschemaboxedstring)
boxed class to store validated String payloads | | static class | [FormatTest.ByteSchema](#byteschema)
schema class | -| sealed interface | [FormatTest.StringSchemaBoxed](#stringschemaboxed)
abstract sealed validated payload class | +| sealed interface | [FormatTest.StringSchemaBoxed](#stringschemaboxed)
sealed interface for validated payloads | | record | [FormatTest.StringSchemaBoxedString](#stringschemaboxedstring)
boxed class to store validated String payloads | | static class | [FormatTest.StringSchema](#stringschema)
schema class | -| sealed interface | [FormatTest.ArrayWithUniqueItemsBoxed](#arraywithuniqueitemsboxed)
abstract sealed validated payload class | +| sealed interface | [FormatTest.ArrayWithUniqueItemsBoxed](#arraywithuniqueitemsboxed)
sealed interface for validated payloads | | record | [FormatTest.ArrayWithUniqueItemsBoxedList](#arraywithuniqueitemsboxedlist)
boxed class to store validated List payloads | | static class | [FormatTest.ArrayWithUniqueItems](#arraywithuniqueitems)
schema class | | static class | [FormatTest.ArrayWithUniqueItemsListBuilder](#arraywithuniqueitemslistbuilder)
builder for List payloads | | static class | [FormatTest.ArrayWithUniqueItemsList](#arraywithuniqueitemslist)
output class for List payloads | -| sealed interface | [FormatTest.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | +| sealed interface | [FormatTest.ItemsBoxed](#itemsboxed)
sealed interface for validated payloads | | record | [FormatTest.ItemsBoxedNumber](#itemsboxednumber)
boxed class to store validated Number payloads | | static class | [FormatTest.Items](#items)
schema class | -| sealed interface | [FormatTest.Float64Boxed](#float64boxed)
abstract sealed validated payload class | +| sealed interface | [FormatTest.Float64Boxed](#float64boxed)
sealed interface for validated payloads | | record | [FormatTest.Float64BoxedNumber](#float64boxednumber)
boxed class to store validated Number payloads | | static class | [FormatTest.Float64](#float64)
schema class | -| sealed interface | [FormatTest.DoubleSchemaBoxed](#doubleschemaboxed)
abstract sealed validated payload class | +| sealed interface | [FormatTest.DoubleSchemaBoxed](#doubleschemaboxed)
sealed interface for validated payloads | | record | [FormatTest.DoubleSchemaBoxedNumber](#doubleschemaboxednumber)
boxed class to store validated Number payloads | | static class | [FormatTest.DoubleSchema](#doubleschema)
schema class | -| sealed interface | [FormatTest.Float32Boxed](#float32boxed)
abstract sealed validated payload class | +| sealed interface | [FormatTest.Float32Boxed](#float32boxed)
sealed interface for validated payloads | | record | [FormatTest.Float32BoxedNumber](#float32boxednumber)
boxed class to store validated Number payloads | | static class | [FormatTest.Float32](#float32)
schema class | -| sealed interface | [FormatTest.FloatSchemaBoxed](#floatschemaboxed)
abstract sealed validated payload class | +| sealed interface | [FormatTest.FloatSchemaBoxed](#floatschemaboxed)
sealed interface for validated payloads | | record | [FormatTest.FloatSchemaBoxedNumber](#floatschemaboxednumber)
boxed class to store validated Number payloads | | static class | [FormatTest.FloatSchema](#floatschema)
schema class | -| sealed interface | [FormatTest.NumberSchemaBoxed](#numberschemaboxed)
abstract sealed validated payload class | +| sealed interface | [FormatTest.NumberSchemaBoxed](#numberschemaboxed)
sealed interface for validated payloads | | record | [FormatTest.NumberSchemaBoxedNumber](#numberschemaboxednumber)
boxed class to store validated Number payloads | | static class | [FormatTest.NumberSchema](#numberschema)
schema class | -| sealed interface | [FormatTest.Int64Boxed](#int64boxed)
abstract sealed validated payload class | +| sealed interface | [FormatTest.Int64Boxed](#int64boxed)
sealed interface for validated payloads | | record | [FormatTest.Int64BoxedNumber](#int64boxednumber)
boxed class to store validated Number payloads | | static class | [FormatTest.Int64](#int64)
schema class | -| sealed interface | [FormatTest.Int32withValidationsBoxed](#int32withvalidationsboxed)
abstract sealed validated payload class | +| sealed interface | [FormatTest.Int32withValidationsBoxed](#int32withvalidationsboxed)
sealed interface for validated payloads | | record | [FormatTest.Int32withValidationsBoxedNumber](#int32withvalidationsboxednumber)
boxed class to store validated Number payloads | | static class | [FormatTest.Int32withValidations](#int32withvalidations)
schema class | -| sealed interface | [FormatTest.Int32Boxed](#int32boxed)
abstract sealed validated payload class | +| sealed interface | [FormatTest.Int32Boxed](#int32boxed)
sealed interface for validated payloads | | record | [FormatTest.Int32BoxedNumber](#int32boxednumber)
boxed class to store validated Number payloads | | static class | [FormatTest.Int32](#int32)
schema class | -| sealed interface | [FormatTest.IntegerSchemaBoxed](#integerschemaboxed)
abstract sealed validated payload class | +| sealed interface | [FormatTest.IntegerSchemaBoxed](#integerschemaboxed)
sealed interface for validated payloads | | record | [FormatTest.IntegerSchemaBoxedNumber](#integerschemaboxednumber)
boxed class to store validated Number payloads | | static class | [FormatTest.IntegerSchema](#integerschema)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/FromSchema.md b/samples/client/petstore/java/docs/components/schemas/FromSchema.md index d04d0807b8e..e6be61ce494 100644 --- a/samples/client/petstore/java/docs/components/schemas/FromSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/FromSchema.md @@ -4,7 +4,7 @@ public class FromSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,15 +12,15 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [FromSchema.FromSchema1Boxed](#fromschema1boxed)
abstract sealed validated payload class | +| sealed interface | [FromSchema.FromSchema1Boxed](#fromschema1boxed)
sealed interface for validated payloads | | record | [FromSchema.FromSchema1BoxedMap](#fromschema1boxedmap)
boxed class to store validated Map payloads | | static class | [FromSchema.FromSchema1](#fromschema1)
schema class | | static class | [FromSchema.FromSchemaMapBuilder](#fromschemamapbuilder)
builder for Map payloads | | static class | [FromSchema.FromSchemaMap](#fromschemamap)
output class for Map payloads | -| sealed interface | [FromSchema.IdBoxed](#idboxed)
abstract sealed validated payload class | +| sealed interface | [FromSchema.IdBoxed](#idboxed)
sealed interface for validated payloads | | record | [FromSchema.IdBoxedNumber](#idboxednumber)
boxed class to store validated Number payloads | | static class | [FromSchema.Id](#id)
schema class | -| sealed interface | [FromSchema.DataBoxed](#databoxed)
abstract sealed validated payload class | +| sealed interface | [FromSchema.DataBoxed](#databoxed)
sealed interface for validated payloads | | record | [FromSchema.DataBoxedString](#databoxedstring)
boxed class to store validated String payloads | | static class | [FromSchema.Data](#data)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/Fruit.md b/samples/client/petstore/java/docs/components/schemas/Fruit.md index edd57484e22..b360a78c165 100644 --- a/samples/client/petstore/java/docs/components/schemas/Fruit.md +++ b/samples/client/petstore/java/docs/components/schemas/Fruit.md @@ -4,7 +4,7 @@ public class Fruit
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,7 +12,7 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Fruit.Fruit1Boxed](#fruit1boxed)
abstract sealed validated payload class | +| sealed interface | [Fruit.Fruit1Boxed](#fruit1boxed)
sealed interface for validated payloads | | record | [Fruit.Fruit1BoxedVoid](#fruit1boxedvoid)
boxed class to store validated null payloads | | record | [Fruit.Fruit1BoxedBoolean](#fruit1boxedboolean)
boxed class to store validated boolean payloads | | record | [Fruit.Fruit1BoxedNumber](#fruit1boxednumber)
boxed class to store validated Number payloads | @@ -22,7 +22,7 @@ A class that contains necessary nested | static class | [Fruit.Fruit1](#fruit1)
schema class | | static class | [Fruit.FruitMapBuilder](#fruitmapbuilder)
builder for Map payloads | | static class | [Fruit.FruitMap](#fruitmap)
output class for Map payloads | -| sealed interface | [Fruit.ColorBoxed](#colorboxed)
abstract sealed validated payload class | +| sealed interface | [Fruit.ColorBoxed](#colorboxed)
sealed interface for validated payloads | | record | [Fruit.ColorBoxedString](#colorboxedstring)
boxed class to store validated String payloads | | static class | [Fruit.Color](#color)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/FruitReq.md b/samples/client/petstore/java/docs/components/schemas/FruitReq.md index 375ce724a48..c99ad7f6113 100644 --- a/samples/client/petstore/java/docs/components/schemas/FruitReq.md +++ b/samples/client/petstore/java/docs/components/schemas/FruitReq.md @@ -4,13 +4,13 @@ public class FruitReq
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [FruitReq.FruitReq1Boxed](#fruitreq1boxed)
abstract sealed validated payload class | +| sealed interface | [FruitReq.FruitReq1Boxed](#fruitreq1boxed)
sealed interface for validated payloads | | record | [FruitReq.FruitReq1BoxedVoid](#fruitreq1boxedvoid)
boxed class to store validated null payloads | | record | [FruitReq.FruitReq1BoxedBoolean](#fruitreq1boxedboolean)
boxed class to store validated boolean payloads | | record | [FruitReq.FruitReq1BoxedNumber](#fruitreq1boxednumber)
boxed class to store validated Number payloads | @@ -18,7 +18,7 @@ A class that contains necessary nested | record | [FruitReq.FruitReq1BoxedList](#fruitreq1boxedlist)
boxed class to store validated List payloads | | record | [FruitReq.FruitReq1BoxedMap](#fruitreq1boxedmap)
boxed class to store validated Map payloads | | static class | [FruitReq.FruitReq1](#fruitreq1)
schema class | -| sealed interface | [FruitReq.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | +| sealed interface | [FruitReq.Schema0Boxed](#schema0boxed)
sealed interface for validated payloads | | record | [FruitReq.Schema0BoxedVoid](#schema0boxedvoid)
boxed class to store validated null payloads | | static class | [FruitReq.Schema0](#schema0)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/GmFruit.md b/samples/client/petstore/java/docs/components/schemas/GmFruit.md index 8d0c281b057..1a164719714 100644 --- a/samples/client/petstore/java/docs/components/schemas/GmFruit.md +++ b/samples/client/petstore/java/docs/components/schemas/GmFruit.md @@ -4,7 +4,7 @@ public class GmFruit
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,7 +12,7 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [GmFruit.GmFruit1Boxed](#gmfruit1boxed)
abstract sealed validated payload class | +| sealed interface | [GmFruit.GmFruit1Boxed](#gmfruit1boxed)
sealed interface for validated payloads | | record | [GmFruit.GmFruit1BoxedVoid](#gmfruit1boxedvoid)
boxed class to store validated null payloads | | record | [GmFruit.GmFruit1BoxedBoolean](#gmfruit1boxedboolean)
boxed class to store validated boolean payloads | | record | [GmFruit.GmFruit1BoxedNumber](#gmfruit1boxednumber)
boxed class to store validated Number payloads | @@ -22,7 +22,7 @@ A class that contains necessary nested | static class | [GmFruit.GmFruit1](#gmfruit1)
schema class | | static class | [GmFruit.GmFruitMapBuilder](#gmfruitmapbuilder)
builder for Map payloads | | static class | [GmFruit.GmFruitMap](#gmfruitmap)
output class for Map payloads | -| sealed interface | [GmFruit.ColorBoxed](#colorboxed)
abstract sealed validated payload class | +| sealed interface | [GmFruit.ColorBoxed](#colorboxed)
sealed interface for validated payloads | | record | [GmFruit.ColorBoxedString](#colorboxedstring)
boxed class to store validated String payloads | | static class | [GmFruit.Color](#color)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/GrandparentAnimal.md b/samples/client/petstore/java/docs/components/schemas/GrandparentAnimal.md index 1e8d97ab036..9e6701c2180 100644 --- a/samples/client/petstore/java/docs/components/schemas/GrandparentAnimal.md +++ b/samples/client/petstore/java/docs/components/schemas/GrandparentAnimal.md @@ -4,7 +4,7 @@ public class GrandparentAnimal
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,12 +12,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [GrandparentAnimal.GrandparentAnimal1Boxed](#grandparentanimal1boxed)
abstract sealed validated payload class | +| sealed interface | [GrandparentAnimal.GrandparentAnimal1Boxed](#grandparentanimal1boxed)
sealed interface for validated payloads | | record | [GrandparentAnimal.GrandparentAnimal1BoxedMap](#grandparentanimal1boxedmap)
boxed class to store validated Map payloads | | static class | [GrandparentAnimal.GrandparentAnimal1](#grandparentanimal1)
schema class | | static class | [GrandparentAnimal.GrandparentAnimalMapBuilder](#grandparentanimalmapbuilder)
builder for Map payloads | | static class | [GrandparentAnimal.GrandparentAnimalMap](#grandparentanimalmap)
output class for Map payloads | -| sealed interface | [GrandparentAnimal.PetTypeBoxed](#pettypeboxed)
abstract sealed validated payload class | +| sealed interface | [GrandparentAnimal.PetTypeBoxed](#pettypeboxed)
sealed interface for validated payloads | | record | [GrandparentAnimal.PetTypeBoxedString](#pettypeboxedstring)
boxed class to store validated String payloads | | static class | [GrandparentAnimal.PetType](#pettype)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/HasOnlyReadOnly.md b/samples/client/petstore/java/docs/components/schemas/HasOnlyReadOnly.md index 3bba1492506..252bc0f7629 100644 --- a/samples/client/petstore/java/docs/components/schemas/HasOnlyReadOnly.md +++ b/samples/client/petstore/java/docs/components/schemas/HasOnlyReadOnly.md @@ -4,7 +4,7 @@ public class HasOnlyReadOnly
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,15 +12,15 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [HasOnlyReadOnly.HasOnlyReadOnly1Boxed](#hasonlyreadonly1boxed)
abstract sealed validated payload class | +| sealed interface | [HasOnlyReadOnly.HasOnlyReadOnly1Boxed](#hasonlyreadonly1boxed)
sealed interface for validated payloads | | record | [HasOnlyReadOnly.HasOnlyReadOnly1BoxedMap](#hasonlyreadonly1boxedmap)
boxed class to store validated Map payloads | | static class | [HasOnlyReadOnly.HasOnlyReadOnly1](#hasonlyreadonly1)
schema class | | static class | [HasOnlyReadOnly.HasOnlyReadOnlyMapBuilder](#hasonlyreadonlymapbuilder)
builder for Map payloads | | static class | [HasOnlyReadOnly.HasOnlyReadOnlyMap](#hasonlyreadonlymap)
output class for Map payloads | -| sealed interface | [HasOnlyReadOnly.FooBoxed](#fooboxed)
abstract sealed validated payload class | +| sealed interface | [HasOnlyReadOnly.FooBoxed](#fooboxed)
sealed interface for validated payloads | | record | [HasOnlyReadOnly.FooBoxedString](#fooboxedstring)
boxed class to store validated String payloads | | static class | [HasOnlyReadOnly.Foo](#foo)
schema class | -| sealed interface | [HasOnlyReadOnly.BarBoxed](#barboxed)
abstract sealed validated payload class | +| sealed interface | [HasOnlyReadOnly.BarBoxed](#barboxed)
sealed interface for validated payloads | | record | [HasOnlyReadOnly.BarBoxedString](#barboxedstring)
boxed class to store validated String payloads | | static class | [HasOnlyReadOnly.Bar](#bar)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/HealthCheckResult.md b/samples/client/petstore/java/docs/components/schemas/HealthCheckResult.md index 5090d19179d..a61f82783c7 100644 --- a/samples/client/petstore/java/docs/components/schemas/HealthCheckResult.md +++ b/samples/client/petstore/java/docs/components/schemas/HealthCheckResult.md @@ -4,7 +4,7 @@ public class HealthCheckResult
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,12 +12,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [HealthCheckResult.HealthCheckResult1Boxed](#healthcheckresult1boxed)
abstract sealed validated payload class | +| sealed interface | [HealthCheckResult.HealthCheckResult1Boxed](#healthcheckresult1boxed)
sealed interface for validated payloads | | record | [HealthCheckResult.HealthCheckResult1BoxedMap](#healthcheckresult1boxedmap)
boxed class to store validated Map payloads | | static class | [HealthCheckResult.HealthCheckResult1](#healthcheckresult1)
schema class | | static class | [HealthCheckResult.HealthCheckResultMapBuilder](#healthcheckresultmapbuilder)
builder for Map payloads | | static class | [HealthCheckResult.HealthCheckResultMap](#healthcheckresultmap)
output class for Map payloads | -| sealed interface | [HealthCheckResult.NullableMessageBoxed](#nullablemessageboxed)
abstract sealed validated payload class | +| sealed interface | [HealthCheckResult.NullableMessageBoxed](#nullablemessageboxed)
sealed interface for validated payloads | | record | [HealthCheckResult.NullableMessageBoxedVoid](#nullablemessageboxedvoid)
boxed class to store validated null payloads | | record | [HealthCheckResult.NullableMessageBoxedString](#nullablemessageboxedstring)
boxed class to store validated String payloads | | static class | [HealthCheckResult.NullableMessage](#nullablemessage)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/IntegerEnum.md b/samples/client/petstore/java/docs/components/schemas/IntegerEnum.md index 392e28ead60..888d394e7b7 100644 --- a/samples/client/petstore/java/docs/components/schemas/IntegerEnum.md +++ b/samples/client/petstore/java/docs/components/schemas/IntegerEnum.md @@ -4,14 +4,14 @@ public class IntegerEnum
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [IntegerEnum.IntegerEnum1Boxed](#integerenum1boxed)
abstract sealed validated payload class | +| sealed interface | [IntegerEnum.IntegerEnum1Boxed](#integerenum1boxed)
sealed interface for validated payloads | | record | [IntegerEnum.IntegerEnum1BoxedNumber](#integerenum1boxednumber)
boxed class to store validated Number payloads | | static class | [IntegerEnum.IntegerEnum1](#integerenum1)
schema class | | enum | [IntegerEnum.IntegerIntegerEnumEnums](#integerintegerenumenums)
Integer enum | diff --git a/samples/client/petstore/java/docs/components/schemas/IntegerEnumBig.md b/samples/client/petstore/java/docs/components/schemas/IntegerEnumBig.md index 9ede44a7c40..058b350ebd3 100644 --- a/samples/client/petstore/java/docs/components/schemas/IntegerEnumBig.md +++ b/samples/client/petstore/java/docs/components/schemas/IntegerEnumBig.md @@ -4,14 +4,14 @@ public class IntegerEnumBig
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [IntegerEnumBig.IntegerEnumBig1Boxed](#integerenumbig1boxed)
abstract sealed validated payload class | +| sealed interface | [IntegerEnumBig.IntegerEnumBig1Boxed](#integerenumbig1boxed)
sealed interface for validated payloads | | record | [IntegerEnumBig.IntegerEnumBig1BoxedNumber](#integerenumbig1boxednumber)
boxed class to store validated Number payloads | | static class | [IntegerEnumBig.IntegerEnumBig1](#integerenumbig1)
schema class | | enum | [IntegerEnumBig.IntegerIntegerEnumBigEnums](#integerintegerenumbigenums)
Integer enum | diff --git a/samples/client/petstore/java/docs/components/schemas/IntegerEnumOneValue.md b/samples/client/petstore/java/docs/components/schemas/IntegerEnumOneValue.md index 13c3414d3ba..15dbdcd914a 100644 --- a/samples/client/petstore/java/docs/components/schemas/IntegerEnumOneValue.md +++ b/samples/client/petstore/java/docs/components/schemas/IntegerEnumOneValue.md @@ -4,14 +4,14 @@ public class IntegerEnumOneValue
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [IntegerEnumOneValue.IntegerEnumOneValue1Boxed](#integerenumonevalue1boxed)
abstract sealed validated payload class | +| sealed interface | [IntegerEnumOneValue.IntegerEnumOneValue1Boxed](#integerenumonevalue1boxed)
sealed interface for validated payloads | | record | [IntegerEnumOneValue.IntegerEnumOneValue1BoxedNumber](#integerenumonevalue1boxednumber)
boxed class to store validated Number payloads | | static class | [IntegerEnumOneValue.IntegerEnumOneValue1](#integerenumonevalue1)
schema class | | enum | [IntegerEnumOneValue.IntegerIntegerEnumOneValueEnums](#integerintegerenumonevalueenums)
Integer enum | diff --git a/samples/client/petstore/java/docs/components/schemas/IntegerEnumWithDefaultValue.md b/samples/client/petstore/java/docs/components/schemas/IntegerEnumWithDefaultValue.md index 90a37f7717e..f26a7573a3b 100644 --- a/samples/client/petstore/java/docs/components/schemas/IntegerEnumWithDefaultValue.md +++ b/samples/client/petstore/java/docs/components/schemas/IntegerEnumWithDefaultValue.md @@ -4,14 +4,14 @@ public class IntegerEnumWithDefaultValue
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [IntegerEnumWithDefaultValue.IntegerEnumWithDefaultValue1Boxed](#integerenumwithdefaultvalue1boxed)
abstract sealed validated payload class | +| sealed interface | [IntegerEnumWithDefaultValue.IntegerEnumWithDefaultValue1Boxed](#integerenumwithdefaultvalue1boxed)
sealed interface for validated payloads | | record | [IntegerEnumWithDefaultValue.IntegerEnumWithDefaultValue1BoxedNumber](#integerenumwithdefaultvalue1boxednumber)
boxed class to store validated Number payloads | | static class | [IntegerEnumWithDefaultValue.IntegerEnumWithDefaultValue1](#integerenumwithdefaultvalue1)
schema class | | enum | [IntegerEnumWithDefaultValue.IntegerIntegerEnumWithDefaultValueEnums](#integerintegerenumwithdefaultvalueenums)
Integer enum | diff --git a/samples/client/petstore/java/docs/components/schemas/IntegerMax10.md b/samples/client/petstore/java/docs/components/schemas/IntegerMax10.md index 8bac5e2d19b..808d7df25b6 100644 --- a/samples/client/petstore/java/docs/components/schemas/IntegerMax10.md +++ b/samples/client/petstore/java/docs/components/schemas/IntegerMax10.md @@ -4,13 +4,13 @@ public class IntegerMax10
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [IntegerMax10.IntegerMax101Boxed](#integermax101boxed)
abstract sealed validated payload class | +| sealed interface | [IntegerMax10.IntegerMax101Boxed](#integermax101boxed)
sealed interface for validated payloads | | record | [IntegerMax10.IntegerMax101BoxedNumber](#integermax101boxednumber)
boxed class to store validated Number payloads | | static class | [IntegerMax10.IntegerMax101](#integermax101)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/IntegerMin15.md b/samples/client/petstore/java/docs/components/schemas/IntegerMin15.md index 0a8e244ad4a..2576aa21b9d 100644 --- a/samples/client/petstore/java/docs/components/schemas/IntegerMin15.md +++ b/samples/client/petstore/java/docs/components/schemas/IntegerMin15.md @@ -4,13 +4,13 @@ public class IntegerMin15
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [IntegerMin15.IntegerMin151Boxed](#integermin151boxed)
abstract sealed validated payload class | +| sealed interface | [IntegerMin15.IntegerMin151Boxed](#integermin151boxed)
sealed interface for validated payloads | | record | [IntegerMin15.IntegerMin151BoxedNumber](#integermin151boxednumber)
boxed class to store validated Number payloads | | static class | [IntegerMin15.IntegerMin151](#integermin151)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/IsoscelesTriangle.md b/samples/client/petstore/java/docs/components/schemas/IsoscelesTriangle.md index 3f562c5ff83..5719763bd79 100644 --- a/samples/client/petstore/java/docs/components/schemas/IsoscelesTriangle.md +++ b/samples/client/petstore/java/docs/components/schemas/IsoscelesTriangle.md @@ -4,7 +4,7 @@ public class IsoscelesTriangle
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,7 +13,7 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [IsoscelesTriangle.IsoscelesTriangle1Boxed](#isoscelestriangle1boxed)
abstract sealed validated payload class | +| sealed interface | [IsoscelesTriangle.IsoscelesTriangle1Boxed](#isoscelestriangle1boxed)
sealed interface for validated payloads | | record | [IsoscelesTriangle.IsoscelesTriangle1BoxedVoid](#isoscelestriangle1boxedvoid)
boxed class to store validated null payloads | | record | [IsoscelesTriangle.IsoscelesTriangle1BoxedBoolean](#isoscelestriangle1boxedboolean)
boxed class to store validated boolean payloads | | record | [IsoscelesTriangle.IsoscelesTriangle1BoxedNumber](#isoscelestriangle1boxednumber)
boxed class to store validated Number payloads | @@ -21,12 +21,12 @@ A class that contains necessary nested | record | [IsoscelesTriangle.IsoscelesTriangle1BoxedList](#isoscelestriangle1boxedlist)
boxed class to store validated List payloads | | record | [IsoscelesTriangle.IsoscelesTriangle1BoxedMap](#isoscelestriangle1boxedmap)
boxed class to store validated Map payloads | | static class | [IsoscelesTriangle.IsoscelesTriangle1](#isoscelestriangle1)
schema class | -| sealed interface | [IsoscelesTriangle.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | +| sealed interface | [IsoscelesTriangle.Schema1Boxed](#schema1boxed)
sealed interface for validated payloads | | record | [IsoscelesTriangle.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | | static class | [IsoscelesTriangle.Schema1](#schema1)
schema class | | static class | [IsoscelesTriangle.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [IsoscelesTriangle.Schema1Map](#schema1map)
output class for Map payloads | -| sealed interface | [IsoscelesTriangle.TriangleTypeBoxed](#triangletypeboxed)
abstract sealed validated payload class | +| sealed interface | [IsoscelesTriangle.TriangleTypeBoxed](#triangletypeboxed)
sealed interface for validated payloads | | record | [IsoscelesTriangle.TriangleTypeBoxedString](#triangletypeboxedstring)
boxed class to store validated String payloads | | static class | [IsoscelesTriangle.TriangleType](#triangletype)
schema class | | enum | [IsoscelesTriangle.StringTriangleTypeEnums](#stringtriangletypeenums)
String enum | diff --git a/samples/client/petstore/java/docs/components/schemas/Items.md b/samples/client/petstore/java/docs/components/schemas/Items.md index 4abf9164df7..195123915d3 100644 --- a/samples/client/petstore/java/docs/components/schemas/Items.md +++ b/samples/client/petstore/java/docs/components/schemas/Items.md @@ -4,7 +4,7 @@ public class Items
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,12 +12,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Items.Items1Boxed](#items1boxed)
abstract sealed validated payload class | +| sealed interface | [Items.Items1Boxed](#items1boxed)
sealed interface for validated payloads | | record | [Items.Items1BoxedList](#items1boxedlist)
boxed class to store validated List payloads | | static class | [Items.Items1](#items1)
schema class | | static class | [Items.ItemsListBuilder](#itemslistbuilder)
builder for List payloads | | static class | [Items.ItemsList](#itemslist)
output class for List payloads | -| sealed interface | [Items.Items2Boxed](#items2boxed)
abstract sealed validated payload class | +| sealed interface | [Items.Items2Boxed](#items2boxed)
sealed interface for validated payloads | | record | [Items.Items2BoxedMap](#items2boxedmap)
boxed class to store validated Map payloads | | static class | [Items.Items2](#items2)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequest.md b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequest.md index 1c204634b40..9f5b99e6121 100644 --- a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequest.md +++ b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequest.md @@ -4,7 +4,7 @@ public class JSONPatchRequest
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,12 +12,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [JSONPatchRequest.JSONPatchRequest1Boxed](#jsonpatchrequest1boxed)
abstract sealed validated payload class | +| sealed interface | [JSONPatchRequest.JSONPatchRequest1Boxed](#jsonpatchrequest1boxed)
sealed interface for validated payloads | | record | [JSONPatchRequest.JSONPatchRequest1BoxedList](#jsonpatchrequest1boxedlist)
boxed class to store validated List payloads | | static class | [JSONPatchRequest.JSONPatchRequest1](#jsonpatchrequest1)
schema class | | static class | [JSONPatchRequest.JSONPatchRequestListBuilder](#jsonpatchrequestlistbuilder)
builder for List payloads | | static class | [JSONPatchRequest.JSONPatchRequestList](#jsonpatchrequestlist)
output class for List payloads | -| sealed interface | [JSONPatchRequest.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | +| sealed interface | [JSONPatchRequest.ItemsBoxed](#itemsboxed)
sealed interface for validated payloads | | record | [JSONPatchRequest.ItemsBoxedVoid](#itemsboxedvoid)
boxed class to store validated null payloads | | record | [JSONPatchRequest.ItemsBoxedBoolean](#itemsboxedboolean)
boxed class to store validated boolean payloads | | record | [JSONPatchRequest.ItemsBoxedNumber](#itemsboxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestAddReplaceTest.md b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestAddReplaceTest.md index 76259ad13b4..843fc456221 100644 --- a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestAddReplaceTest.md +++ b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestAddReplaceTest.md @@ -4,7 +4,7 @@ public class JSONPatchRequestAddReplaceTest
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,16 +13,16 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [JSONPatchRequestAddReplaceTest.JSONPatchRequestAddReplaceTest1Boxed](#jsonpatchrequestaddreplacetest1boxed)
abstract sealed validated payload class | +| sealed interface | [JSONPatchRequestAddReplaceTest.JSONPatchRequestAddReplaceTest1Boxed](#jsonpatchrequestaddreplacetest1boxed)
sealed interface for validated payloads | | record | [JSONPatchRequestAddReplaceTest.JSONPatchRequestAddReplaceTest1BoxedMap](#jsonpatchrequestaddreplacetest1boxedmap)
boxed class to store validated Map payloads | | static class | [JSONPatchRequestAddReplaceTest.JSONPatchRequestAddReplaceTest1](#jsonpatchrequestaddreplacetest1)
schema class | | static class | [JSONPatchRequestAddReplaceTest.JSONPatchRequestAddReplaceTestMapBuilder](#jsonpatchrequestaddreplacetestmapbuilder)
builder for Map payloads | | static class | [JSONPatchRequestAddReplaceTest.JSONPatchRequestAddReplaceTestMap](#jsonpatchrequestaddreplacetestmap)
output class for Map payloads | -| sealed interface | [JSONPatchRequestAddReplaceTest.OpBoxed](#opboxed)
abstract sealed validated payload class | +| sealed interface | [JSONPatchRequestAddReplaceTest.OpBoxed](#opboxed)
sealed interface for validated payloads | | record | [JSONPatchRequestAddReplaceTest.OpBoxedString](#opboxedstring)
boxed class to store validated String payloads | | static class | [JSONPatchRequestAddReplaceTest.Op](#op)
schema class | | enum | [JSONPatchRequestAddReplaceTest.StringOpEnums](#stringopenums)
String enum | -| sealed interface | [JSONPatchRequestAddReplaceTest.ValueBoxed](#valueboxed)
abstract sealed validated payload class | +| sealed interface | [JSONPatchRequestAddReplaceTest.ValueBoxed](#valueboxed)
sealed interface for validated payloads | | record | [JSONPatchRequestAddReplaceTest.ValueBoxedVoid](#valueboxedvoid)
boxed class to store validated null payloads | | record | [JSONPatchRequestAddReplaceTest.ValueBoxedBoolean](#valueboxedboolean)
boxed class to store validated boolean payloads | | record | [JSONPatchRequestAddReplaceTest.ValueBoxedNumber](#valueboxednumber)
boxed class to store validated Number payloads | @@ -30,10 +30,10 @@ A class that contains necessary nested | record | [JSONPatchRequestAddReplaceTest.ValueBoxedList](#valueboxedlist)
boxed class to store validated List payloads | | record | [JSONPatchRequestAddReplaceTest.ValueBoxedMap](#valueboxedmap)
boxed class to store validated Map payloads | | static class | [JSONPatchRequestAddReplaceTest.Value](#value)
schema class | -| sealed interface | [JSONPatchRequestAddReplaceTest.PathBoxed](#pathboxed)
abstract sealed validated payload class | +| sealed interface | [JSONPatchRequestAddReplaceTest.PathBoxed](#pathboxed)
sealed interface for validated payloads | | record | [JSONPatchRequestAddReplaceTest.PathBoxedString](#pathboxedstring)
boxed class to store validated String payloads | | static class | [JSONPatchRequestAddReplaceTest.Path](#path)
schema class | -| sealed interface | [JSONPatchRequestAddReplaceTest.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| sealed interface | [JSONPatchRequestAddReplaceTest.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | | record | [JSONPatchRequestAddReplaceTest.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | | record | [JSONPatchRequestAddReplaceTest.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | | record | [JSONPatchRequestAddReplaceTest.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestMoveCopy.md b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestMoveCopy.md index 376082f90ad..2acf51d43d9 100644 --- a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestMoveCopy.md +++ b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestMoveCopy.md @@ -4,7 +4,7 @@ public class JSONPatchRequestMoveCopy
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,22 +13,22 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [JSONPatchRequestMoveCopy.JSONPatchRequestMoveCopy1Boxed](#jsonpatchrequestmovecopy1boxed)
abstract sealed validated payload class | +| sealed interface | [JSONPatchRequestMoveCopy.JSONPatchRequestMoveCopy1Boxed](#jsonpatchrequestmovecopy1boxed)
sealed interface for validated payloads | | record | [JSONPatchRequestMoveCopy.JSONPatchRequestMoveCopy1BoxedMap](#jsonpatchrequestmovecopy1boxedmap)
boxed class to store validated Map payloads | | static class | [JSONPatchRequestMoveCopy.JSONPatchRequestMoveCopy1](#jsonpatchrequestmovecopy1)
schema class | | static class | [JSONPatchRequestMoveCopy.JSONPatchRequestMoveCopyMapBuilder](#jsonpatchrequestmovecopymapbuilder)
builder for Map payloads | | static class | [JSONPatchRequestMoveCopy.JSONPatchRequestMoveCopyMap](#jsonpatchrequestmovecopymap)
output class for Map payloads | -| sealed interface | [JSONPatchRequestMoveCopy.OpBoxed](#opboxed)
abstract sealed validated payload class | +| sealed interface | [JSONPatchRequestMoveCopy.OpBoxed](#opboxed)
sealed interface for validated payloads | | record | [JSONPatchRequestMoveCopy.OpBoxedString](#opboxedstring)
boxed class to store validated String payloads | | static class | [JSONPatchRequestMoveCopy.Op](#op)
schema class | | enum | [JSONPatchRequestMoveCopy.StringOpEnums](#stringopenums)
String enum | -| sealed interface | [JSONPatchRequestMoveCopy.PathBoxed](#pathboxed)
abstract sealed validated payload class | +| sealed interface | [JSONPatchRequestMoveCopy.PathBoxed](#pathboxed)
sealed interface for validated payloads | | record | [JSONPatchRequestMoveCopy.PathBoxedString](#pathboxedstring)
boxed class to store validated String payloads | | static class | [JSONPatchRequestMoveCopy.Path](#path)
schema class | -| sealed interface | [JSONPatchRequestMoveCopy.FromBoxed](#fromboxed)
abstract sealed validated payload class | +| sealed interface | [JSONPatchRequestMoveCopy.FromBoxed](#fromboxed)
sealed interface for validated payloads | | record | [JSONPatchRequestMoveCopy.FromBoxedString](#fromboxedstring)
boxed class to store validated String payloads | | static class | [JSONPatchRequestMoveCopy.From](#from)
schema class | -| sealed interface | [JSONPatchRequestMoveCopy.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| sealed interface | [JSONPatchRequestMoveCopy.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | | record | [JSONPatchRequestMoveCopy.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | | record | [JSONPatchRequestMoveCopy.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | | record | [JSONPatchRequestMoveCopy.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestRemove.md b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestRemove.md index a2833e5bd1e..f3289e59bb6 100644 --- a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestRemove.md +++ b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestRemove.md @@ -4,7 +4,7 @@ public class JSONPatchRequestRemove
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,19 +13,19 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [JSONPatchRequestRemove.JSONPatchRequestRemove1Boxed](#jsonpatchrequestremove1boxed)
abstract sealed validated payload class | +| sealed interface | [JSONPatchRequestRemove.JSONPatchRequestRemove1Boxed](#jsonpatchrequestremove1boxed)
sealed interface for validated payloads | | record | [JSONPatchRequestRemove.JSONPatchRequestRemove1BoxedMap](#jsonpatchrequestremove1boxedmap)
boxed class to store validated Map payloads | | static class | [JSONPatchRequestRemove.JSONPatchRequestRemove1](#jsonpatchrequestremove1)
schema class | | static class | [JSONPatchRequestRemove.JSONPatchRequestRemoveMapBuilder](#jsonpatchrequestremovemapbuilder)
builder for Map payloads | | static class | [JSONPatchRequestRemove.JSONPatchRequestRemoveMap](#jsonpatchrequestremovemap)
output class for Map payloads | -| sealed interface | [JSONPatchRequestRemove.OpBoxed](#opboxed)
abstract sealed validated payload class | +| sealed interface | [JSONPatchRequestRemove.OpBoxed](#opboxed)
sealed interface for validated payloads | | record | [JSONPatchRequestRemove.OpBoxedString](#opboxedstring)
boxed class to store validated String payloads | | static class | [JSONPatchRequestRemove.Op](#op)
schema class | | enum | [JSONPatchRequestRemove.StringOpEnums](#stringopenums)
String enum | -| sealed interface | [JSONPatchRequestRemove.PathBoxed](#pathboxed)
abstract sealed validated payload class | +| sealed interface | [JSONPatchRequestRemove.PathBoxed](#pathboxed)
sealed interface for validated payloads | | record | [JSONPatchRequestRemove.PathBoxedString](#pathboxedstring)
boxed class to store validated String payloads | | static class | [JSONPatchRequestRemove.Path](#path)
schema class | -| sealed interface | [JSONPatchRequestRemove.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| sealed interface | [JSONPatchRequestRemove.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | | record | [JSONPatchRequestRemove.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | | record | [JSONPatchRequestRemove.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | | record | [JSONPatchRequestRemove.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/Mammal.md b/samples/client/petstore/java/docs/components/schemas/Mammal.md index 5623f154bda..4b5b161e041 100644 --- a/samples/client/petstore/java/docs/components/schemas/Mammal.md +++ b/samples/client/petstore/java/docs/components/schemas/Mammal.md @@ -4,13 +4,13 @@ public class Mammal
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Mammal.Mammal1Boxed](#mammal1boxed)
abstract sealed validated payload class | +| sealed interface | [Mammal.Mammal1Boxed](#mammal1boxed)
sealed interface for validated payloads | | record | [Mammal.Mammal1BoxedVoid](#mammal1boxedvoid)
boxed class to store validated null payloads | | record | [Mammal.Mammal1BoxedBoolean](#mammal1boxedboolean)
boxed class to store validated boolean payloads | | record | [Mammal.Mammal1BoxedNumber](#mammal1boxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/MapTest.md b/samples/client/petstore/java/docs/components/schemas/MapTest.md index e83c6a5a94b..ff662290d07 100644 --- a/samples/client/petstore/java/docs/components/schemas/MapTest.md +++ b/samples/client/petstore/java/docs/components/schemas/MapTest.md @@ -4,7 +4,7 @@ public class MapTest
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,39 +13,39 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [MapTest.MapTest1Boxed](#maptest1boxed)
abstract sealed validated payload class | +| sealed interface | [MapTest.MapTest1Boxed](#maptest1boxed)
sealed interface for validated payloads | | record | [MapTest.MapTest1BoxedMap](#maptest1boxedmap)
boxed class to store validated Map payloads | | static class | [MapTest.MapTest1](#maptest1)
schema class | | static class | [MapTest.MapTestMapBuilder](#maptestmapbuilder)
builder for Map payloads | | static class | [MapTest.MapTestMap](#maptestmap)
output class for Map payloads | -| sealed interface | [MapTest.DirectMapBoxed](#directmapboxed)
abstract sealed validated payload class | +| sealed interface | [MapTest.DirectMapBoxed](#directmapboxed)
sealed interface for validated payloads | | record | [MapTest.DirectMapBoxedMap](#directmapboxedmap)
boxed class to store validated Map payloads | | static class | [MapTest.DirectMap](#directmap)
schema class | | static class | [MapTest.DirectMapMapBuilder](#directmapmapbuilder)
builder for Map payloads | | static class | [MapTest.DirectMapMap](#directmapmap)
output class for Map payloads | -| sealed interface | [MapTest.AdditionalProperties3Boxed](#additionalproperties3boxed)
abstract sealed validated payload class | +| sealed interface | [MapTest.AdditionalProperties3Boxed](#additionalproperties3boxed)
sealed interface for validated payloads | | record | [MapTest.AdditionalProperties3BoxedBoolean](#additionalproperties3boxedboolean)
boxed class to store validated boolean payloads | | static class | [MapTest.AdditionalProperties3](#additionalproperties3)
schema class | -| sealed interface | [MapTest.MapOfEnumStringBoxed](#mapofenumstringboxed)
abstract sealed validated payload class | +| sealed interface | [MapTest.MapOfEnumStringBoxed](#mapofenumstringboxed)
sealed interface for validated payloads | | record | [MapTest.MapOfEnumStringBoxedMap](#mapofenumstringboxedmap)
boxed class to store validated Map payloads | | static class | [MapTest.MapOfEnumString](#mapofenumstring)
schema class | | static class | [MapTest.MapOfEnumStringMapBuilder](#mapofenumstringmapbuilder)
builder for Map payloads | | static class | [MapTest.MapOfEnumStringMap](#mapofenumstringmap)
output class for Map payloads | -| sealed interface | [MapTest.AdditionalProperties2Boxed](#additionalproperties2boxed)
abstract sealed validated payload class | +| sealed interface | [MapTest.AdditionalProperties2Boxed](#additionalproperties2boxed)
sealed interface for validated payloads | | record | [MapTest.AdditionalProperties2BoxedString](#additionalproperties2boxedstring)
boxed class to store validated String payloads | | static class | [MapTest.AdditionalProperties2](#additionalproperties2)
schema class | | enum | [MapTest.StringAdditionalPropertiesEnums](#stringadditionalpropertiesenums)
String enum | -| sealed interface | [MapTest.MapMapOfStringBoxed](#mapmapofstringboxed)
abstract sealed validated payload class | +| sealed interface | [MapTest.MapMapOfStringBoxed](#mapmapofstringboxed)
sealed interface for validated payloads | | record | [MapTest.MapMapOfStringBoxedMap](#mapmapofstringboxedmap)
boxed class to store validated Map payloads | | static class | [MapTest.MapMapOfString](#mapmapofstring)
schema class | | static class | [MapTest.MapMapOfStringMapBuilder](#mapmapofstringmapbuilder)
builder for Map payloads | | static class | [MapTest.MapMapOfStringMap](#mapmapofstringmap)
output class for Map payloads | -| sealed interface | [MapTest.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| sealed interface | [MapTest.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | | record | [MapTest.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | | static class | [MapTest.AdditionalProperties](#additionalproperties)
schema class | | static class | [MapTest.AdditionalPropertiesMapBuilder1](#additionalpropertiesmapbuilder1)
builder for Map payloads | | static class | [MapTest.AdditionalPropertiesMap](#additionalpropertiesmap)
output class for Map payloads | -| sealed interface | [MapTest.AdditionalProperties1Boxed](#additionalproperties1boxed)
abstract sealed validated payload class | +| sealed interface | [MapTest.AdditionalProperties1Boxed](#additionalproperties1boxed)
sealed interface for validated payloads | | record | [MapTest.AdditionalProperties1BoxedString](#additionalproperties1boxedstring)
boxed class to store validated String payloads | | static class | [MapTest.AdditionalProperties1](#additionalproperties1)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/java/docs/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.md index 8909d0247c6..91ff71cf3f0 100644 --- a/samples/client/petstore/java/docs/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/client/petstore/java/docs/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.md @@ -4,7 +4,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,20 +12,20 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [MixedPropertiesAndAdditionalPropertiesClass.MixedPropertiesAndAdditionalPropertiesClass1Boxed](#mixedpropertiesandadditionalpropertiesclass1boxed)
abstract sealed validated payload class | +| sealed interface | [MixedPropertiesAndAdditionalPropertiesClass.MixedPropertiesAndAdditionalPropertiesClass1Boxed](#mixedpropertiesandadditionalpropertiesclass1boxed)
sealed interface for validated payloads | | record | [MixedPropertiesAndAdditionalPropertiesClass.MixedPropertiesAndAdditionalPropertiesClass1BoxedMap](#mixedpropertiesandadditionalpropertiesclass1boxedmap)
boxed class to store validated Map payloads | | static class | [MixedPropertiesAndAdditionalPropertiesClass.MixedPropertiesAndAdditionalPropertiesClass1](#mixedpropertiesandadditionalpropertiesclass1)
schema class | | static class | [MixedPropertiesAndAdditionalPropertiesClass.MixedPropertiesAndAdditionalPropertiesClassMapBuilder](#mixedpropertiesandadditionalpropertiesclassmapbuilder)
builder for Map payloads | | static class | [MixedPropertiesAndAdditionalPropertiesClass.MixedPropertiesAndAdditionalPropertiesClassMap](#mixedpropertiesandadditionalpropertiesclassmap)
output class for Map payloads | -| sealed interface | [MixedPropertiesAndAdditionalPropertiesClass.MapSchemaBoxed](#mapschemaboxed)
abstract sealed validated payload class | +| sealed interface | [MixedPropertiesAndAdditionalPropertiesClass.MapSchemaBoxed](#mapschemaboxed)
sealed interface for validated payloads | | record | [MixedPropertiesAndAdditionalPropertiesClass.MapSchemaBoxedMap](#mapschemaboxedmap)
boxed class to store validated Map payloads | | static class | [MixedPropertiesAndAdditionalPropertiesClass.MapSchema](#mapschema)
schema class | | static class | [MixedPropertiesAndAdditionalPropertiesClass.MapMapBuilder](#mapmapbuilder)
builder for Map payloads | | static class | [MixedPropertiesAndAdditionalPropertiesClass.MapMap](#mapmap)
output class for Map payloads | -| sealed interface | [MixedPropertiesAndAdditionalPropertiesClass.DateTimeBoxed](#datetimeboxed)
abstract sealed validated payload class | +| sealed interface | [MixedPropertiesAndAdditionalPropertiesClass.DateTimeBoxed](#datetimeboxed)
sealed interface for validated payloads | | record | [MixedPropertiesAndAdditionalPropertiesClass.DateTimeBoxedString](#datetimeboxedstring)
boxed class to store validated String payloads | | static class | [MixedPropertiesAndAdditionalPropertiesClass.DateTime](#datetime)
schema class | -| sealed interface | [MixedPropertiesAndAdditionalPropertiesClass.UuidSchemaBoxed](#uuidschemaboxed)
abstract sealed validated payload class | +| sealed interface | [MixedPropertiesAndAdditionalPropertiesClass.UuidSchemaBoxed](#uuidschemaboxed)
sealed interface for validated payloads | | record | [MixedPropertiesAndAdditionalPropertiesClass.UuidSchemaBoxedString](#uuidschemaboxedstring)
boxed class to store validated String payloads | | static class | [MixedPropertiesAndAdditionalPropertiesClass.UuidSchema](#uuidschema)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/Money.md b/samples/client/petstore/java/docs/components/schemas/Money.md index 639237494ef..ca65db5c9f9 100644 --- a/samples/client/petstore/java/docs/components/schemas/Money.md +++ b/samples/client/petstore/java/docs/components/schemas/Money.md @@ -4,7 +4,7 @@ public class Money
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,15 +12,15 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Money.Money1Boxed](#money1boxed)
abstract sealed validated payload class | +| sealed interface | [Money.Money1Boxed](#money1boxed)
sealed interface for validated payloads | | record | [Money.Money1BoxedMap](#money1boxedmap)
boxed class to store validated Map payloads | | static class | [Money.Money1](#money1)
schema class | | static class | [Money.MoneyMapBuilder](#moneymapbuilder)
builder for Map payloads | | static class | [Money.MoneyMap](#moneymap)
output class for Map payloads | -| sealed interface | [Money.AmountBoxed](#amountboxed)
abstract sealed validated payload class | +| sealed interface | [Money.AmountBoxed](#amountboxed)
sealed interface for validated payloads | | record | [Money.AmountBoxedString](#amountboxedstring)
boxed class to store validated String payloads | | static class | [Money.Amount](#amount)
schema class | -| sealed interface | [Money.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| sealed interface | [Money.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | | record | [Money.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | | record | [Money.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | | record | [Money.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/MyObjectDto.md b/samples/client/petstore/java/docs/components/schemas/MyObjectDto.md index 1fb5325e0cf..ae1ecabc9e5 100644 --- a/samples/client/petstore/java/docs/components/schemas/MyObjectDto.md +++ b/samples/client/petstore/java/docs/components/schemas/MyObjectDto.md @@ -4,7 +4,7 @@ public class MyObjectDto
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,15 +12,15 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [MyObjectDto.MyObjectDto1Boxed](#myobjectdto1boxed)
abstract sealed validated payload class | +| sealed interface | [MyObjectDto.MyObjectDto1Boxed](#myobjectdto1boxed)
sealed interface for validated payloads | | record | [MyObjectDto.MyObjectDto1BoxedMap](#myobjectdto1boxedmap)
boxed class to store validated Map payloads | | static class | [MyObjectDto.MyObjectDto1](#myobjectdto1)
schema class | | static class | [MyObjectDto.MyObjectDtoMapBuilder](#myobjectdtomapbuilder)
builder for Map payloads | | static class | [MyObjectDto.MyObjectDtoMap](#myobjectdtomap)
output class for Map payloads | -| sealed interface | [MyObjectDto.IdBoxed](#idboxed)
abstract sealed validated payload class | +| sealed interface | [MyObjectDto.IdBoxed](#idboxed)
sealed interface for validated payloads | | record | [MyObjectDto.IdBoxedString](#idboxedstring)
boxed class to store validated String payloads | | static class | [MyObjectDto.Id](#id)
schema class | -| sealed interface | [MyObjectDto.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| sealed interface | [MyObjectDto.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | | record | [MyObjectDto.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | | record | [MyObjectDto.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | | record | [MyObjectDto.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/Name.md b/samples/client/petstore/java/docs/components/schemas/Name.md index 56d8c4f1a1a..2d150ddbe8a 100644 --- a/samples/client/petstore/java/docs/components/schemas/Name.md +++ b/samples/client/petstore/java/docs/components/schemas/Name.md @@ -4,7 +4,7 @@ public class Name
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,7 +12,7 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Name.Name1Boxed](#name1boxed)
abstract sealed validated payload class | +| sealed interface | [Name.Name1Boxed](#name1boxed)
sealed interface for validated payloads | | record | [Name.Name1BoxedVoid](#name1boxedvoid)
boxed class to store validated null payloads | | record | [Name.Name1BoxedBoolean](#name1boxedboolean)
boxed class to store validated boolean payloads | | record | [Name.Name1BoxedNumber](#name1boxednumber)
boxed class to store validated Number payloads | @@ -22,13 +22,13 @@ A class that contains necessary nested | static class | [Name.Name1](#name1)
schema class | | static class | [Name.NameMapBuilder1](#namemapbuilder1)
builder for Map payloads | | static class | [Name.NameMap](#namemap)
output class for Map payloads | -| sealed interface | [Name.PropertyBoxed](#propertyboxed)
abstract sealed validated payload class | +| sealed interface | [Name.PropertyBoxed](#propertyboxed)
sealed interface for validated payloads | | record | [Name.PropertyBoxedString](#propertyboxedstring)
boxed class to store validated String payloads | | static class | [Name.Property](#property)
schema class | -| sealed interface | [Name.SnakeCaseBoxed](#snakecaseboxed)
abstract sealed validated payload class | +| sealed interface | [Name.SnakeCaseBoxed](#snakecaseboxed)
sealed interface for validated payloads | | record | [Name.SnakeCaseBoxedNumber](#snakecaseboxednumber)
boxed class to store validated Number payloads | | static class | [Name.SnakeCase](#snakecase)
schema class | -| sealed interface | [Name.Name2Boxed](#name2boxed)
abstract sealed validated payload class | +| sealed interface | [Name.Name2Boxed](#name2boxed)
sealed interface for validated payloads | | record | [Name.Name2BoxedNumber](#name2boxednumber)
boxed class to store validated Number payloads | | static class | [Name.Name2](#name2)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/NoAdditionalProperties.md b/samples/client/petstore/java/docs/components/schemas/NoAdditionalProperties.md index 4e702e9ae6a..a9d60fd14e2 100644 --- a/samples/client/petstore/java/docs/components/schemas/NoAdditionalProperties.md +++ b/samples/client/petstore/java/docs/components/schemas/NoAdditionalProperties.md @@ -4,7 +4,7 @@ public class NoAdditionalProperties
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,18 +12,18 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [NoAdditionalProperties.NoAdditionalProperties1Boxed](#noadditionalproperties1boxed)
abstract sealed validated payload class | +| sealed interface | [NoAdditionalProperties.NoAdditionalProperties1Boxed](#noadditionalproperties1boxed)
sealed interface for validated payloads | | record | [NoAdditionalProperties.NoAdditionalProperties1BoxedMap](#noadditionalproperties1boxedmap)
boxed class to store validated Map payloads | | static class | [NoAdditionalProperties.NoAdditionalProperties1](#noadditionalproperties1)
schema class | | static class | [NoAdditionalProperties.NoAdditionalPropertiesMapBuilder](#noadditionalpropertiesmapbuilder)
builder for Map payloads | | static class | [NoAdditionalProperties.NoAdditionalPropertiesMap](#noadditionalpropertiesmap)
output class for Map payloads | -| sealed interface | [NoAdditionalProperties.PetIdBoxed](#petidboxed)
abstract sealed validated payload class | +| sealed interface | [NoAdditionalProperties.PetIdBoxed](#petidboxed)
sealed interface for validated payloads | | record | [NoAdditionalProperties.PetIdBoxedNumber](#petidboxednumber)
boxed class to store validated Number payloads | | static class | [NoAdditionalProperties.PetId](#petid)
schema class | -| sealed interface | [NoAdditionalProperties.IdBoxed](#idboxed)
abstract sealed validated payload class | +| sealed interface | [NoAdditionalProperties.IdBoxed](#idboxed)
sealed interface for validated payloads | | record | [NoAdditionalProperties.IdBoxedNumber](#idboxednumber)
boxed class to store validated Number payloads | | static class | [NoAdditionalProperties.Id](#id)
schema class | -| sealed interface | [NoAdditionalProperties.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| sealed interface | [NoAdditionalProperties.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | | record | [NoAdditionalProperties.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | | record | [NoAdditionalProperties.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | | record | [NoAdditionalProperties.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/NullableClass.md b/samples/client/petstore/java/docs/components/schemas/NullableClass.md index d730ba2a160..ac31e51544e 100644 --- a/samples/client/petstore/java/docs/components/schemas/NullableClass.md +++ b/samples/client/petstore/java/docs/components/schemas/NullableClass.md @@ -4,7 +4,7 @@ public class NullableClass
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -14,92 +14,92 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [NullableClass.NullableClass1Boxed](#nullableclass1boxed)
abstract sealed validated payload class | +| sealed interface | [NullableClass.NullableClass1Boxed](#nullableclass1boxed)
sealed interface for validated payloads | | record | [NullableClass.NullableClass1BoxedMap](#nullableclass1boxedmap)
boxed class to store validated Map payloads | | static class | [NullableClass.NullableClass1](#nullableclass1)
schema class | | static class | [NullableClass.NullableClassMapBuilder](#nullableclassmapbuilder)
builder for Map payloads | | static class | [NullableClass.NullableClassMap](#nullableclassmap)
output class for Map payloads | -| sealed interface | [NullableClass.ObjectItemsNullableBoxed](#objectitemsnullableboxed)
abstract sealed validated payload class | +| sealed interface | [NullableClass.ObjectItemsNullableBoxed](#objectitemsnullableboxed)
sealed interface for validated payloads | | record | [NullableClass.ObjectItemsNullableBoxedMap](#objectitemsnullableboxedmap)
boxed class to store validated Map payloads | | static class | [NullableClass.ObjectItemsNullable](#objectitemsnullable)
schema class | | static class | [NullableClass.ObjectItemsNullableMapBuilder](#objectitemsnullablemapbuilder)
builder for Map payloads | | static class | [NullableClass.ObjectItemsNullableMap](#objectitemsnullablemap)
output class for Map payloads | -| sealed interface | [NullableClass.AdditionalProperties2Boxed](#additionalproperties2boxed)
abstract sealed validated payload class | +| sealed interface | [NullableClass.AdditionalProperties2Boxed](#additionalproperties2boxed)
sealed interface for validated payloads | | record | [NullableClass.AdditionalProperties2BoxedVoid](#additionalproperties2boxedvoid)
boxed class to store validated null payloads | | record | [NullableClass.AdditionalProperties2BoxedMap](#additionalproperties2boxedmap)
boxed class to store validated Map payloads | | static class | [NullableClass.AdditionalProperties2](#additionalproperties2)
schema class | -| sealed interface | [NullableClass.ObjectAndItemsNullablePropBoxed](#objectanditemsnullablepropboxed)
abstract sealed validated payload class | +| sealed interface | [NullableClass.ObjectAndItemsNullablePropBoxed](#objectanditemsnullablepropboxed)
sealed interface for validated payloads | | record | [NullableClass.ObjectAndItemsNullablePropBoxedVoid](#objectanditemsnullablepropboxedvoid)
boxed class to store validated null payloads | | record | [NullableClass.ObjectAndItemsNullablePropBoxedMap](#objectanditemsnullablepropboxedmap)
boxed class to store validated Map payloads | | static class | [NullableClass.ObjectAndItemsNullableProp](#objectanditemsnullableprop)
schema class | | static class | [NullableClass.ObjectAndItemsNullablePropMapBuilder](#objectanditemsnullablepropmapbuilder)
builder for Map payloads | | static class | [NullableClass.ObjectAndItemsNullablePropMap](#objectanditemsnullablepropmap)
output class for Map payloads | -| sealed interface | [NullableClass.AdditionalProperties1Boxed](#additionalproperties1boxed)
abstract sealed validated payload class | +| sealed interface | [NullableClass.AdditionalProperties1Boxed](#additionalproperties1boxed)
sealed interface for validated payloads | | record | [NullableClass.AdditionalProperties1BoxedVoid](#additionalproperties1boxedvoid)
boxed class to store validated null payloads | | record | [NullableClass.AdditionalProperties1BoxedMap](#additionalproperties1boxedmap)
boxed class to store validated Map payloads | | static class | [NullableClass.AdditionalProperties1](#additionalproperties1)
schema class | -| sealed interface | [NullableClass.ObjectNullablePropBoxed](#objectnullablepropboxed)
abstract sealed validated payload class | +| sealed interface | [NullableClass.ObjectNullablePropBoxed](#objectnullablepropboxed)
sealed interface for validated payloads | | record | [NullableClass.ObjectNullablePropBoxedVoid](#objectnullablepropboxedvoid)
boxed class to store validated null payloads | | record | [NullableClass.ObjectNullablePropBoxedMap](#objectnullablepropboxedmap)
boxed class to store validated Map payloads | | static class | [NullableClass.ObjectNullableProp](#objectnullableprop)
schema class | | static class | [NullableClass.ObjectNullablePropMapBuilder](#objectnullablepropmapbuilder)
builder for Map payloads | | static class | [NullableClass.ObjectNullablePropMap](#objectnullablepropmap)
output class for Map payloads | -| sealed interface | [NullableClass.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| sealed interface | [NullableClass.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | | record | [NullableClass.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | | static class | [NullableClass.AdditionalProperties](#additionalproperties)
schema class | -| sealed interface | [NullableClass.ArrayItemsNullableBoxed](#arrayitemsnullableboxed)
abstract sealed validated payload class | +| sealed interface | [NullableClass.ArrayItemsNullableBoxed](#arrayitemsnullableboxed)
sealed interface for validated payloads | | record | [NullableClass.ArrayItemsNullableBoxedList](#arrayitemsnullableboxedlist)
boxed class to store validated List payloads | | static class | [NullableClass.ArrayItemsNullable](#arrayitemsnullable)
schema class | | static class | [NullableClass.ArrayItemsNullableListBuilder](#arrayitemsnullablelistbuilder)
builder for List payloads | | static class | [NullableClass.ArrayItemsNullableList](#arrayitemsnullablelist)
output class for List payloads | -| sealed interface | [NullableClass.Items2Boxed](#items2boxed)
abstract sealed validated payload class | +| sealed interface | [NullableClass.Items2Boxed](#items2boxed)
sealed interface for validated payloads | | record | [NullableClass.Items2BoxedVoid](#items2boxedvoid)
boxed class to store validated null payloads | | record | [NullableClass.Items2BoxedMap](#items2boxedmap)
boxed class to store validated Map payloads | | static class | [NullableClass.Items2](#items2)
schema class | -| sealed interface | [NullableClass.ArrayAndItemsNullablePropBoxed](#arrayanditemsnullablepropboxed)
abstract sealed validated payload class | +| sealed interface | [NullableClass.ArrayAndItemsNullablePropBoxed](#arrayanditemsnullablepropboxed)
sealed interface for validated payloads | | record | [NullableClass.ArrayAndItemsNullablePropBoxedVoid](#arrayanditemsnullablepropboxedvoid)
boxed class to store validated null payloads | | record | [NullableClass.ArrayAndItemsNullablePropBoxedList](#arrayanditemsnullablepropboxedlist)
boxed class to store validated List payloads | | static class | [NullableClass.ArrayAndItemsNullableProp](#arrayanditemsnullableprop)
schema class | | static class | [NullableClass.ArrayAndItemsNullablePropListBuilder](#arrayanditemsnullableproplistbuilder)
builder for List payloads | | static class | [NullableClass.ArrayAndItemsNullablePropList](#arrayanditemsnullableproplist)
output class for List payloads | -| sealed interface | [NullableClass.Items1Boxed](#items1boxed)
abstract sealed validated payload class | +| sealed interface | [NullableClass.Items1Boxed](#items1boxed)
sealed interface for validated payloads | | record | [NullableClass.Items1BoxedVoid](#items1boxedvoid)
boxed class to store validated null payloads | | record | [NullableClass.Items1BoxedMap](#items1boxedmap)
boxed class to store validated Map payloads | | static class | [NullableClass.Items1](#items1)
schema class | -| sealed interface | [NullableClass.ArrayNullablePropBoxed](#arraynullablepropboxed)
abstract sealed validated payload class | +| sealed interface | [NullableClass.ArrayNullablePropBoxed](#arraynullablepropboxed)
sealed interface for validated payloads | | record | [NullableClass.ArrayNullablePropBoxedVoid](#arraynullablepropboxedvoid)
boxed class to store validated null payloads | | record | [NullableClass.ArrayNullablePropBoxedList](#arraynullablepropboxedlist)
boxed class to store validated List payloads | | static class | [NullableClass.ArrayNullableProp](#arraynullableprop)
schema class | | static class | [NullableClass.ArrayNullablePropListBuilder](#arraynullableproplistbuilder)
builder for List payloads | | static class | [NullableClass.ArrayNullablePropList](#arraynullableproplist)
output class for List payloads | -| sealed interface | [NullableClass.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | +| sealed interface | [NullableClass.ItemsBoxed](#itemsboxed)
sealed interface for validated payloads | | record | [NullableClass.ItemsBoxedMap](#itemsboxedmap)
boxed class to store validated Map payloads | | static class | [NullableClass.Items](#items)
schema class | -| sealed interface | [NullableClass.DatetimePropBoxed](#datetimepropboxed)
abstract sealed validated payload class | +| sealed interface | [NullableClass.DatetimePropBoxed](#datetimepropboxed)
sealed interface for validated payloads | | record | [NullableClass.DatetimePropBoxedVoid](#datetimepropboxedvoid)
boxed class to store validated null payloads | | record | [NullableClass.DatetimePropBoxedString](#datetimepropboxedstring)
boxed class to store validated String payloads | | static class | [NullableClass.DatetimeProp](#datetimeprop)
schema class | -| sealed interface | [NullableClass.DatePropBoxed](#datepropboxed)
abstract sealed validated payload class | +| sealed interface | [NullableClass.DatePropBoxed](#datepropboxed)
sealed interface for validated payloads | | record | [NullableClass.DatePropBoxedVoid](#datepropboxedvoid)
boxed class to store validated null payloads | | record | [NullableClass.DatePropBoxedString](#datepropboxedstring)
boxed class to store validated String payloads | | static class | [NullableClass.DateProp](#dateprop)
schema class | -| sealed interface | [NullableClass.StringPropBoxed](#stringpropboxed)
abstract sealed validated payload class | +| sealed interface | [NullableClass.StringPropBoxed](#stringpropboxed)
sealed interface for validated payloads | | record | [NullableClass.StringPropBoxedVoid](#stringpropboxedvoid)
boxed class to store validated null payloads | | record | [NullableClass.StringPropBoxedString](#stringpropboxedstring)
boxed class to store validated String payloads | | static class | [NullableClass.StringProp](#stringprop)
schema class | -| sealed interface | [NullableClass.BooleanPropBoxed](#booleanpropboxed)
abstract sealed validated payload class | +| sealed interface | [NullableClass.BooleanPropBoxed](#booleanpropboxed)
sealed interface for validated payloads | | record | [NullableClass.BooleanPropBoxedVoid](#booleanpropboxedvoid)
boxed class to store validated null payloads | | record | [NullableClass.BooleanPropBoxedBoolean](#booleanpropboxedboolean)
boxed class to store validated boolean payloads | | static class | [NullableClass.BooleanProp](#booleanprop)
schema class | -| sealed interface | [NullableClass.NumberPropBoxed](#numberpropboxed)
abstract sealed validated payload class | +| sealed interface | [NullableClass.NumberPropBoxed](#numberpropboxed)
sealed interface for validated payloads | | record | [NullableClass.NumberPropBoxedVoid](#numberpropboxedvoid)
boxed class to store validated null payloads | | record | [NullableClass.NumberPropBoxedNumber](#numberpropboxednumber)
boxed class to store validated Number payloads | | static class | [NullableClass.NumberProp](#numberprop)
schema class | -| sealed interface | [NullableClass.IntegerPropBoxed](#integerpropboxed)
abstract sealed validated payload class | +| sealed interface | [NullableClass.IntegerPropBoxed](#integerpropboxed)
sealed interface for validated payloads | | record | [NullableClass.IntegerPropBoxedVoid](#integerpropboxedvoid)
boxed class to store validated null payloads | | record | [NullableClass.IntegerPropBoxedNumber](#integerpropboxednumber)
boxed class to store validated Number payloads | | static class | [NullableClass.IntegerProp](#integerprop)
schema class | -| sealed interface | [NullableClass.AdditionalProperties3Boxed](#additionalproperties3boxed)
abstract sealed validated payload class | +| sealed interface | [NullableClass.AdditionalProperties3Boxed](#additionalproperties3boxed)
sealed interface for validated payloads | | record | [NullableClass.AdditionalProperties3BoxedVoid](#additionalproperties3boxedvoid)
boxed class to store validated null payloads | | record | [NullableClass.AdditionalProperties3BoxedMap](#additionalproperties3boxedmap)
boxed class to store validated Map payloads | | static class | [NullableClass.AdditionalProperties3](#additionalproperties3)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/NullableShape.md b/samples/client/petstore/java/docs/components/schemas/NullableShape.md index cd9107d4559..7fce16177b0 100644 --- a/samples/client/petstore/java/docs/components/schemas/NullableShape.md +++ b/samples/client/petstore/java/docs/components/schemas/NullableShape.md @@ -4,13 +4,13 @@ public class NullableShape
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [NullableShape.NullableShape1Boxed](#nullableshape1boxed)
abstract sealed validated payload class | +| sealed interface | [NullableShape.NullableShape1Boxed](#nullableshape1boxed)
sealed interface for validated payloads | | record | [NullableShape.NullableShape1BoxedVoid](#nullableshape1boxedvoid)
boxed class to store validated null payloads | | record | [NullableShape.NullableShape1BoxedBoolean](#nullableshape1boxedboolean)
boxed class to store validated boolean payloads | | record | [NullableShape.NullableShape1BoxedNumber](#nullableshape1boxednumber)
boxed class to store validated Number payloads | @@ -18,7 +18,7 @@ A class that contains necessary nested | record | [NullableShape.NullableShape1BoxedList](#nullableshape1boxedlist)
boxed class to store validated List payloads | | record | [NullableShape.NullableShape1BoxedMap](#nullableshape1boxedmap)
boxed class to store validated Map payloads | | static class | [NullableShape.NullableShape1](#nullableshape1)
schema class | -| sealed interface | [NullableShape.Schema2Boxed](#schema2boxed)
abstract sealed validated payload class | +| sealed interface | [NullableShape.Schema2Boxed](#schema2boxed)
sealed interface for validated payloads | | record | [NullableShape.Schema2BoxedVoid](#schema2boxedvoid)
boxed class to store validated null payloads | | static class | [NullableShape.Schema2](#schema2)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/NullableString.md b/samples/client/petstore/java/docs/components/schemas/NullableString.md index 3c1547806ae..2477ee32c1a 100644 --- a/samples/client/petstore/java/docs/components/schemas/NullableString.md +++ b/samples/client/petstore/java/docs/components/schemas/NullableString.md @@ -4,13 +4,13 @@ public class NullableString
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [NullableString.NullableString1Boxed](#nullablestring1boxed)
abstract sealed validated payload class | +| sealed interface | [NullableString.NullableString1Boxed](#nullablestring1boxed)
sealed interface for validated payloads | | record | [NullableString.NullableString1BoxedVoid](#nullablestring1boxedvoid)
boxed class to store validated null payloads | | record | [NullableString.NullableString1BoxedString](#nullablestring1boxedstring)
boxed class to store validated String payloads | | static class | [NullableString.NullableString1](#nullablestring1)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/NumberOnly.md b/samples/client/petstore/java/docs/components/schemas/NumberOnly.md index 82b39269c23..911aa304bbc 100644 --- a/samples/client/petstore/java/docs/components/schemas/NumberOnly.md +++ b/samples/client/petstore/java/docs/components/schemas/NumberOnly.md @@ -4,7 +4,7 @@ public class NumberOnly
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,12 +12,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [NumberOnly.NumberOnly1Boxed](#numberonly1boxed)
abstract sealed validated payload class | +| sealed interface | [NumberOnly.NumberOnly1Boxed](#numberonly1boxed)
sealed interface for validated payloads | | record | [NumberOnly.NumberOnly1BoxedMap](#numberonly1boxedmap)
boxed class to store validated Map payloads | | static class | [NumberOnly.NumberOnly1](#numberonly1)
schema class | | static class | [NumberOnly.NumberOnlyMapBuilder](#numberonlymapbuilder)
builder for Map payloads | | static class | [NumberOnly.NumberOnlyMap](#numberonlymap)
output class for Map payloads | -| sealed interface | [NumberOnly.JustNumberBoxed](#justnumberboxed)
abstract sealed validated payload class | +| sealed interface | [NumberOnly.JustNumberBoxed](#justnumberboxed)
sealed interface for validated payloads | | record | [NumberOnly.JustNumberBoxedNumber](#justnumberboxednumber)
boxed class to store validated Number payloads | | static class | [NumberOnly.JustNumber](#justnumber)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/NumberSchema.md b/samples/client/petstore/java/docs/components/schemas/NumberSchema.md index 1a96fb09787..8ebd5d4cb08 100644 --- a/samples/client/petstore/java/docs/components/schemas/NumberSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/NumberSchema.md @@ -4,13 +4,13 @@ public class NumberSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [NumberSchema.NumberSchema1Boxed](#numberschema1boxed)
abstract sealed validated payload class | +| sealed interface | [NumberSchema.NumberSchema1Boxed](#numberschema1boxed)
sealed interface for validated payloads | | record | [NumberSchema.NumberSchema1BoxedNumber](#numberschema1boxednumber)
boxed class to store validated Number payloads | | static class | [NumberSchema.NumberSchema1](#numberschema1)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/NumberWithExclusiveMinMax.md b/samples/client/petstore/java/docs/components/schemas/NumberWithExclusiveMinMax.md index ed59f26369f..1a9a3c37885 100644 --- a/samples/client/petstore/java/docs/components/schemas/NumberWithExclusiveMinMax.md +++ b/samples/client/petstore/java/docs/components/schemas/NumberWithExclusiveMinMax.md @@ -4,13 +4,13 @@ public class NumberWithExclusiveMinMax
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [NumberWithExclusiveMinMax.NumberWithExclusiveMinMax1Boxed](#numberwithexclusiveminmax1boxed)
abstract sealed validated payload class | +| sealed interface | [NumberWithExclusiveMinMax.NumberWithExclusiveMinMax1Boxed](#numberwithexclusiveminmax1boxed)
sealed interface for validated payloads | | record | [NumberWithExclusiveMinMax.NumberWithExclusiveMinMax1BoxedNumber](#numberwithexclusiveminmax1boxednumber)
boxed class to store validated Number payloads | | static class | [NumberWithExclusiveMinMax.NumberWithExclusiveMinMax1](#numberwithexclusiveminmax1)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/NumberWithValidations.md b/samples/client/petstore/java/docs/components/schemas/NumberWithValidations.md index c786af4a749..864598184d2 100644 --- a/samples/client/petstore/java/docs/components/schemas/NumberWithValidations.md +++ b/samples/client/petstore/java/docs/components/schemas/NumberWithValidations.md @@ -4,13 +4,13 @@ public class NumberWithValidations
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [NumberWithValidations.NumberWithValidations1Boxed](#numberwithvalidations1boxed)
abstract sealed validated payload class | +| sealed interface | [NumberWithValidations.NumberWithValidations1Boxed](#numberwithvalidations1boxed)
sealed interface for validated payloads | | record | [NumberWithValidations.NumberWithValidations1BoxedNumber](#numberwithvalidations1boxednumber)
boxed class to store validated Number payloads | | static class | [NumberWithValidations.NumberWithValidations1](#numberwithvalidations1)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredProps.md b/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredProps.md index c2cee3d9c4c..63c7b82d26d 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredProps.md @@ -4,7 +4,7 @@ public class ObjWithRequiredProps
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,12 +12,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ObjWithRequiredProps.ObjWithRequiredProps1Boxed](#objwithrequiredprops1boxed)
abstract sealed validated payload class | +| sealed interface | [ObjWithRequiredProps.ObjWithRequiredProps1Boxed](#objwithrequiredprops1boxed)
sealed interface for validated payloads | | record | [ObjWithRequiredProps.ObjWithRequiredProps1BoxedMap](#objwithrequiredprops1boxedmap)
boxed class to store validated Map payloads | | static class | [ObjWithRequiredProps.ObjWithRequiredProps1](#objwithrequiredprops1)
schema class | | static class | [ObjWithRequiredProps.ObjWithRequiredPropsMapBuilder](#objwithrequiredpropsmapbuilder)
builder for Map payloads | | static class | [ObjWithRequiredProps.ObjWithRequiredPropsMap](#objwithrequiredpropsmap)
output class for Map payloads | -| sealed interface | [ObjWithRequiredProps.ABoxed](#aboxed)
abstract sealed validated payload class | +| sealed interface | [ObjWithRequiredProps.ABoxed](#aboxed)
sealed interface for validated payloads | | record | [ObjWithRequiredProps.ABoxedString](#aboxedstring)
boxed class to store validated String payloads | | static class | [ObjWithRequiredProps.A](#a)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredPropsBase.md b/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredPropsBase.md index f1306494faf..3a42f109752 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredPropsBase.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredPropsBase.md @@ -4,7 +4,7 @@ public class ObjWithRequiredPropsBase
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,12 +12,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ObjWithRequiredPropsBase.ObjWithRequiredPropsBase1Boxed](#objwithrequiredpropsbase1boxed)
abstract sealed validated payload class | +| sealed interface | [ObjWithRequiredPropsBase.ObjWithRequiredPropsBase1Boxed](#objwithrequiredpropsbase1boxed)
sealed interface for validated payloads | | record | [ObjWithRequiredPropsBase.ObjWithRequiredPropsBase1BoxedMap](#objwithrequiredpropsbase1boxedmap)
boxed class to store validated Map payloads | | static class | [ObjWithRequiredPropsBase.ObjWithRequiredPropsBase1](#objwithrequiredpropsbase1)
schema class | | static class | [ObjWithRequiredPropsBase.ObjWithRequiredPropsBaseMapBuilder](#objwithrequiredpropsbasemapbuilder)
builder for Map payloads | | static class | [ObjWithRequiredPropsBase.ObjWithRequiredPropsBaseMap](#objwithrequiredpropsbasemap)
output class for Map payloads | -| sealed interface | [ObjWithRequiredPropsBase.BBoxed](#bboxed)
abstract sealed validated payload class | +| sealed interface | [ObjWithRequiredPropsBase.BBoxed](#bboxed)
sealed interface for validated payloads | | record | [ObjWithRequiredPropsBase.BBoxedString](#bboxedstring)
boxed class to store validated String payloads | | static class | [ObjWithRequiredPropsBase.B](#b)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectInterface.md b/samples/client/petstore/java/docs/components/schemas/ObjectInterface.md index 8aeb7dcd18c..b838c721b58 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectInterface.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectInterface.md @@ -4,13 +4,13 @@ public class ObjectInterface
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [ObjectInterface.ObjectInterface1Boxed](#objectinterface1boxed)
abstract sealed validated payload class | +| sealed interface | [ObjectInterface.ObjectInterface1Boxed](#objectinterface1boxed)
sealed interface for validated payloads | | record | [ObjectInterface.ObjectInterface1BoxedMap](#objectinterface1boxedmap)
boxed class to store validated Map payloads | | static class | [ObjectInterface.ObjectInterface1](#objectinterface1)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectModelWithArgAndArgsProperties.md b/samples/client/petstore/java/docs/components/schemas/ObjectModelWithArgAndArgsProperties.md index 02da9587b85..af6dd1a1b14 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectModelWithArgAndArgsProperties.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectModelWithArgAndArgsProperties.md @@ -4,7 +4,7 @@ public class ObjectModelWithArgAndArgsProperties
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,15 +12,15 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ObjectModelWithArgAndArgsProperties.ObjectModelWithArgAndArgsProperties1Boxed](#objectmodelwithargandargsproperties1boxed)
abstract sealed validated payload class | +| sealed interface | [ObjectModelWithArgAndArgsProperties.ObjectModelWithArgAndArgsProperties1Boxed](#objectmodelwithargandargsproperties1boxed)
sealed interface for validated payloads | | record | [ObjectModelWithArgAndArgsProperties.ObjectModelWithArgAndArgsProperties1BoxedMap](#objectmodelwithargandargsproperties1boxedmap)
boxed class to store validated Map payloads | | static class | [ObjectModelWithArgAndArgsProperties.ObjectModelWithArgAndArgsProperties1](#objectmodelwithargandargsproperties1)
schema class | | static class | [ObjectModelWithArgAndArgsProperties.ObjectModelWithArgAndArgsPropertiesMapBuilder](#objectmodelwithargandargspropertiesmapbuilder)
builder for Map payloads | | static class | [ObjectModelWithArgAndArgsProperties.ObjectModelWithArgAndArgsPropertiesMap](#objectmodelwithargandargspropertiesmap)
output class for Map payloads | -| sealed interface | [ObjectModelWithArgAndArgsProperties.ArgsBoxed](#argsboxed)
abstract sealed validated payload class | +| sealed interface | [ObjectModelWithArgAndArgsProperties.ArgsBoxed](#argsboxed)
sealed interface for validated payloads | | record | [ObjectModelWithArgAndArgsProperties.ArgsBoxedString](#argsboxedstring)
boxed class to store validated String payloads | | static class | [ObjectModelWithArgAndArgsProperties.Args](#args)
schema class | -| sealed interface | [ObjectModelWithArgAndArgsProperties.ArgBoxed](#argboxed)
abstract sealed validated payload class | +| sealed interface | [ObjectModelWithArgAndArgsProperties.ArgBoxed](#argboxed)
sealed interface for validated payloads | | record | [ObjectModelWithArgAndArgsProperties.ArgBoxedString](#argboxedstring)
boxed class to store validated String payloads | | static class | [ObjectModelWithArgAndArgsProperties.Arg](#arg)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectModelWithRefProps.md b/samples/client/petstore/java/docs/components/schemas/ObjectModelWithRefProps.md index 2c72a85906c..2730512d9a6 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectModelWithRefProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectModelWithRefProps.md @@ -4,7 +4,7 @@ public class ObjectModelWithRefProps
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,7 +12,7 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ObjectModelWithRefProps.ObjectModelWithRefProps1Boxed](#objectmodelwithrefprops1boxed)
abstract sealed validated payload class | +| sealed interface | [ObjectModelWithRefProps.ObjectModelWithRefProps1Boxed](#objectmodelwithrefprops1boxed)
sealed interface for validated payloads | | record | [ObjectModelWithRefProps.ObjectModelWithRefProps1BoxedMap](#objectmodelwithrefprops1boxedmap)
boxed class to store validated Map payloads | | static class | [ObjectModelWithRefProps.ObjectModelWithRefProps1](#objectmodelwithrefprops1)
schema class | | static class | [ObjectModelWithRefProps.ObjectModelWithRefPropsMapBuilder](#objectmodelwithrefpropsmapbuilder)
builder for Map payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md index 78af30ec37d..96d88f2c453 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md @@ -4,7 +4,7 @@ public class ObjectWithAllOfWithReqTestPropFromUnsetAddProp
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,7 +12,7 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed](#objectwithallofwithreqtestpropfromunsetaddprop1boxed)
abstract sealed validated payload class | +| sealed interface | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.ObjectWithAllOfWithReqTestPropFromUnsetAddProp1Boxed](#objectwithallofwithreqtestpropfromunsetaddprop1boxed)
sealed interface for validated payloads | | record | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedVoid](#objectwithallofwithreqtestpropfromunsetaddprop1boxedvoid)
boxed class to store validated null payloads | | record | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedBoolean](#objectwithallofwithreqtestpropfromunsetaddprop1boxedboolean)
boxed class to store validated boolean payloads | | record | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedNumber](#objectwithallofwithreqtestpropfromunsetaddprop1boxednumber)
boxed class to store validated Number payloads | @@ -20,12 +20,12 @@ A class that contains necessary nested | record | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedList](#objectwithallofwithreqtestpropfromunsetaddprop1boxedlist)
boxed class to store validated List payloads | | record | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.ObjectWithAllOfWithReqTestPropFromUnsetAddProp1BoxedMap](#objectwithallofwithreqtestpropfromunsetaddprop1boxedmap)
boxed class to store validated Map payloads | | static class | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.ObjectWithAllOfWithReqTestPropFromUnsetAddProp1](#objectwithallofwithreqtestpropfromunsetaddprop1)
schema class | -| sealed interface | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | +| sealed interface | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.Schema1Boxed](#schema1boxed)
sealed interface for validated payloads | | record | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | | static class | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.Schema1](#schema1)
schema class | | static class | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.Schema1Map](#schema1map)
output class for Map payloads | -| sealed interface | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.NameBoxed](#nameboxed)
abstract sealed validated payload class | +| sealed interface | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.NameBoxed](#nameboxed)
sealed interface for validated payloads | | record | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.NameBoxedString](#nameboxedstring)
boxed class to store validated String payloads | | static class | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.Name](#name)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithCollidingProperties.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithCollidingProperties.md index 6fb1c0d90c9..dee16fb8cd6 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithCollidingProperties.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithCollidingProperties.md @@ -4,7 +4,7 @@ public class ObjectWithCollidingProperties
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,15 +12,15 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ObjectWithCollidingProperties.ObjectWithCollidingProperties1Boxed](#objectwithcollidingproperties1boxed)
abstract sealed validated payload class | +| sealed interface | [ObjectWithCollidingProperties.ObjectWithCollidingProperties1Boxed](#objectwithcollidingproperties1boxed)
sealed interface for validated payloads | | record | [ObjectWithCollidingProperties.ObjectWithCollidingProperties1BoxedMap](#objectwithcollidingproperties1boxedmap)
boxed class to store validated Map payloads | | static class | [ObjectWithCollidingProperties.ObjectWithCollidingProperties1](#objectwithcollidingproperties1)
schema class | | static class | [ObjectWithCollidingProperties.ObjectWithCollidingPropertiesMapBuilder](#objectwithcollidingpropertiesmapbuilder)
builder for Map payloads | | static class | [ObjectWithCollidingProperties.ObjectWithCollidingPropertiesMap](#objectwithcollidingpropertiesmap)
output class for Map payloads | -| sealed interface | [ObjectWithCollidingProperties.SomepropBoxed](#somepropboxed)
abstract sealed validated payload class | +| sealed interface | [ObjectWithCollidingProperties.SomepropBoxed](#somepropboxed)
sealed interface for validated payloads | | record | [ObjectWithCollidingProperties.SomepropBoxedMap](#somepropboxedmap)
boxed class to store validated Map payloads | | static class | [ObjectWithCollidingProperties.Someprop](#someprop)
schema class | -| sealed interface | [ObjectWithCollidingProperties.SomePropBoxed](#somepropboxed)
abstract sealed validated payload class | +| sealed interface | [ObjectWithCollidingProperties.SomePropBoxed](#somepropboxed)
sealed interface for validated payloads | | record | [ObjectWithCollidingProperties.SomePropBoxedMap](#somepropboxedmap)
boxed class to store validated Map payloads | | static class | [ObjectWithCollidingProperties.SomeProp](#someprop)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithDecimalProperties.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithDecimalProperties.md index 9998c556097..39bc04983cf 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithDecimalProperties.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithDecimalProperties.md @@ -4,7 +4,7 @@ public class ObjectWithDecimalProperties
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,12 +12,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ObjectWithDecimalProperties.ObjectWithDecimalProperties1Boxed](#objectwithdecimalproperties1boxed)
abstract sealed validated payload class | +| sealed interface | [ObjectWithDecimalProperties.ObjectWithDecimalProperties1Boxed](#objectwithdecimalproperties1boxed)
sealed interface for validated payloads | | record | [ObjectWithDecimalProperties.ObjectWithDecimalProperties1BoxedMap](#objectwithdecimalproperties1boxedmap)
boxed class to store validated Map payloads | | static class | [ObjectWithDecimalProperties.ObjectWithDecimalProperties1](#objectwithdecimalproperties1)
schema class | | static class | [ObjectWithDecimalProperties.ObjectWithDecimalPropertiesMapBuilder](#objectwithdecimalpropertiesmapbuilder)
builder for Map payloads | | static class | [ObjectWithDecimalProperties.ObjectWithDecimalPropertiesMap](#objectwithdecimalpropertiesmap)
output class for Map payloads | -| sealed interface | [ObjectWithDecimalProperties.WidthBoxed](#widthboxed)
abstract sealed validated payload class | +| sealed interface | [ObjectWithDecimalProperties.WidthBoxed](#widthboxed)
sealed interface for validated payloads | | record | [ObjectWithDecimalProperties.WidthBoxedString](#widthboxedstring)
boxed class to store validated String payloads | | static class | [ObjectWithDecimalProperties.Width](#width)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithDifficultlyNamedProps.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithDifficultlyNamedProps.md index 37516af58c0..7757bcdd6f5 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithDifficultlyNamedProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithDifficultlyNamedProps.md @@ -4,7 +4,7 @@ public class ObjectWithDifficultlyNamedProps
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,18 +12,18 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ObjectWithDifficultlyNamedProps.ObjectWithDifficultlyNamedProps1Boxed](#objectwithdifficultlynamedprops1boxed)
abstract sealed validated payload class | +| sealed interface | [ObjectWithDifficultlyNamedProps.ObjectWithDifficultlyNamedProps1Boxed](#objectwithdifficultlynamedprops1boxed)
sealed interface for validated payloads | | record | [ObjectWithDifficultlyNamedProps.ObjectWithDifficultlyNamedProps1BoxedMap](#objectwithdifficultlynamedprops1boxedmap)
boxed class to store validated Map payloads | | static class | [ObjectWithDifficultlyNamedProps.ObjectWithDifficultlyNamedProps1](#objectwithdifficultlynamedprops1)
schema class | | static class | [ObjectWithDifficultlyNamedProps.ObjectWithDifficultlyNamedPropsMapBuilder](#objectwithdifficultlynamedpropsmapbuilder)
builder for Map payloads | | static class | [ObjectWithDifficultlyNamedProps.ObjectWithDifficultlyNamedPropsMap](#objectwithdifficultlynamedpropsmap)
output class for Map payloads | -| sealed interface | [ObjectWithDifficultlyNamedProps.Schema123NumberBoxed](#schema123numberboxed)
abstract sealed validated payload class | +| sealed interface | [ObjectWithDifficultlyNamedProps.Schema123NumberBoxed](#schema123numberboxed)
sealed interface for validated payloads | | record | [ObjectWithDifficultlyNamedProps.Schema123NumberBoxedNumber](#schema123numberboxednumber)
boxed class to store validated Number payloads | | static class | [ObjectWithDifficultlyNamedProps.Schema123Number](#schema123number)
schema class | -| sealed interface | [ObjectWithDifficultlyNamedProps.Schema123listBoxed](#schema123listboxed)
abstract sealed validated payload class | +| sealed interface | [ObjectWithDifficultlyNamedProps.Schema123listBoxed](#schema123listboxed)
sealed interface for validated payloads | | record | [ObjectWithDifficultlyNamedProps.Schema123listBoxedString](#schema123listboxedstring)
boxed class to store validated String payloads | | static class | [ObjectWithDifficultlyNamedProps.Schema123list](#schema123list)
schema class | -| sealed interface | [ObjectWithDifficultlyNamedProps.SpecialpropertynameBoxed](#specialpropertynameboxed)
abstract sealed validated payload class | +| sealed interface | [ObjectWithDifficultlyNamedProps.SpecialpropertynameBoxed](#specialpropertynameboxed)
sealed interface for validated payloads | | record | [ObjectWithDifficultlyNamedProps.SpecialpropertynameBoxedNumber](#specialpropertynameboxednumber)
boxed class to store validated Number payloads | | static class | [ObjectWithDifficultlyNamedProps.Specialpropertyname](#specialpropertyname)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithInlineCompositionProperty.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithInlineCompositionProperty.md index 9cdb7902311..a1f3a503a18 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithInlineCompositionProperty.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithInlineCompositionProperty.md @@ -4,7 +4,7 @@ public class ObjectWithInlineCompositionProperty
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,12 +12,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ObjectWithInlineCompositionProperty.ObjectWithInlineCompositionProperty1Boxed](#objectwithinlinecompositionproperty1boxed)
abstract sealed validated payload class | +| sealed interface | [ObjectWithInlineCompositionProperty.ObjectWithInlineCompositionProperty1Boxed](#objectwithinlinecompositionproperty1boxed)
sealed interface for validated payloads | | record | [ObjectWithInlineCompositionProperty.ObjectWithInlineCompositionProperty1BoxedMap](#objectwithinlinecompositionproperty1boxedmap)
boxed class to store validated Map payloads | | static class | [ObjectWithInlineCompositionProperty.ObjectWithInlineCompositionProperty1](#objectwithinlinecompositionproperty1)
schema class | | static class | [ObjectWithInlineCompositionProperty.ObjectWithInlineCompositionPropertyMapBuilder](#objectwithinlinecompositionpropertymapbuilder)
builder for Map payloads | | static class | [ObjectWithInlineCompositionProperty.ObjectWithInlineCompositionPropertyMap](#objectwithinlinecompositionpropertymap)
output class for Map payloads | -| sealed interface | [ObjectWithInlineCompositionProperty.SomePropBoxed](#somepropboxed)
abstract sealed validated payload class | +| sealed interface | [ObjectWithInlineCompositionProperty.SomePropBoxed](#somepropboxed)
sealed interface for validated payloads | | record | [ObjectWithInlineCompositionProperty.SomePropBoxedVoid](#somepropboxedvoid)
boxed class to store validated null payloads | | record | [ObjectWithInlineCompositionProperty.SomePropBoxedBoolean](#somepropboxedboolean)
boxed class to store validated boolean payloads | | record | [ObjectWithInlineCompositionProperty.SomePropBoxedNumber](#somepropboxednumber)
boxed class to store validated Number payloads | @@ -25,7 +25,7 @@ A class that contains necessary nested | record | [ObjectWithInlineCompositionProperty.SomePropBoxedList](#somepropboxedlist)
boxed class to store validated List payloads | | record | [ObjectWithInlineCompositionProperty.SomePropBoxedMap](#somepropboxedmap)
boxed class to store validated Map payloads | | static class | [ObjectWithInlineCompositionProperty.SomeProp](#someprop)
schema class | -| sealed interface | [ObjectWithInlineCompositionProperty.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | +| sealed interface | [ObjectWithInlineCompositionProperty.Schema0Boxed](#schema0boxed)
sealed interface for validated payloads | | record | [ObjectWithInlineCompositionProperty.Schema0BoxedString](#schema0boxedstring)
boxed class to store validated String payloads | | static class | [ObjectWithInlineCompositionProperty.Schema0](#schema0)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithInvalidNamedRefedProperties.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithInvalidNamedRefedProperties.md index 74239b954bb..2781f484279 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithInvalidNamedRefedProperties.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithInvalidNamedRefedProperties.md @@ -4,7 +4,7 @@ public class ObjectWithInvalidNamedRefedProperties
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,7 +12,7 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ObjectWithInvalidNamedRefedProperties.ObjectWithInvalidNamedRefedProperties1Boxed](#objectwithinvalidnamedrefedproperties1boxed)
abstract sealed validated payload class | +| sealed interface | [ObjectWithInvalidNamedRefedProperties.ObjectWithInvalidNamedRefedProperties1Boxed](#objectwithinvalidnamedrefedproperties1boxed)
sealed interface for validated payloads | | record | [ObjectWithInvalidNamedRefedProperties.ObjectWithInvalidNamedRefedProperties1BoxedMap](#objectwithinvalidnamedrefedproperties1boxedmap)
boxed class to store validated Map payloads | | static class | [ObjectWithInvalidNamedRefedProperties.ObjectWithInvalidNamedRefedProperties1](#objectwithinvalidnamedrefedproperties1)
schema class | | static class | [ObjectWithInvalidNamedRefedProperties.ObjectWithInvalidNamedRefedPropertiesMapBuilder](#objectwithinvalidnamedrefedpropertiesmapbuilder)
builder for Map payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithNonIntersectingValues.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithNonIntersectingValues.md index 8cc1f5c2a16..8a10aef5011 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithNonIntersectingValues.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithNonIntersectingValues.md @@ -4,7 +4,7 @@ public class ObjectWithNonIntersectingValues
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,15 +12,15 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ObjectWithNonIntersectingValues.ObjectWithNonIntersectingValues1Boxed](#objectwithnonintersectingvalues1boxed)
abstract sealed validated payload class | +| sealed interface | [ObjectWithNonIntersectingValues.ObjectWithNonIntersectingValues1Boxed](#objectwithnonintersectingvalues1boxed)
sealed interface for validated payloads | | record | [ObjectWithNonIntersectingValues.ObjectWithNonIntersectingValues1BoxedMap](#objectwithnonintersectingvalues1boxedmap)
boxed class to store validated Map payloads | | static class | [ObjectWithNonIntersectingValues.ObjectWithNonIntersectingValues1](#objectwithnonintersectingvalues1)
schema class | | static class | [ObjectWithNonIntersectingValues.ObjectWithNonIntersectingValuesMapBuilder](#objectwithnonintersectingvaluesmapbuilder)
builder for Map payloads | | static class | [ObjectWithNonIntersectingValues.ObjectWithNonIntersectingValuesMap](#objectwithnonintersectingvaluesmap)
output class for Map payloads | -| sealed interface | [ObjectWithNonIntersectingValues.ABoxed](#aboxed)
abstract sealed validated payload class | +| sealed interface | [ObjectWithNonIntersectingValues.ABoxed](#aboxed)
sealed interface for validated payloads | | record | [ObjectWithNonIntersectingValues.ABoxedNumber](#aboxednumber)
boxed class to store validated Number payloads | | static class | [ObjectWithNonIntersectingValues.A](#a)
schema class | -| sealed interface | [ObjectWithNonIntersectingValues.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| sealed interface | [ObjectWithNonIntersectingValues.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | | record | [ObjectWithNonIntersectingValues.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | | static class | [ObjectWithNonIntersectingValues.AdditionalProperties](#additionalproperties)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithOnlyOptionalProps.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithOnlyOptionalProps.md index 21b898e5c1a..63728fa701c 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithOnlyOptionalProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithOnlyOptionalProps.md @@ -4,7 +4,7 @@ public class ObjectWithOnlyOptionalProps
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,18 +12,18 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ObjectWithOnlyOptionalProps.ObjectWithOnlyOptionalProps1Boxed](#objectwithonlyoptionalprops1boxed)
abstract sealed validated payload class | +| sealed interface | [ObjectWithOnlyOptionalProps.ObjectWithOnlyOptionalProps1Boxed](#objectwithonlyoptionalprops1boxed)
sealed interface for validated payloads | | record | [ObjectWithOnlyOptionalProps.ObjectWithOnlyOptionalProps1BoxedMap](#objectwithonlyoptionalprops1boxedmap)
boxed class to store validated Map payloads | | static class | [ObjectWithOnlyOptionalProps.ObjectWithOnlyOptionalProps1](#objectwithonlyoptionalprops1)
schema class | | static class | [ObjectWithOnlyOptionalProps.ObjectWithOnlyOptionalPropsMapBuilder](#objectwithonlyoptionalpropsmapbuilder)
builder for Map payloads | | static class | [ObjectWithOnlyOptionalProps.ObjectWithOnlyOptionalPropsMap](#objectwithonlyoptionalpropsmap)
output class for Map payloads | -| sealed interface | [ObjectWithOnlyOptionalProps.BBoxed](#bboxed)
abstract sealed validated payload class | +| sealed interface | [ObjectWithOnlyOptionalProps.BBoxed](#bboxed)
sealed interface for validated payloads | | record | [ObjectWithOnlyOptionalProps.BBoxedNumber](#bboxednumber)
boxed class to store validated Number payloads | | static class | [ObjectWithOnlyOptionalProps.B](#b)
schema class | -| sealed interface | [ObjectWithOnlyOptionalProps.ABoxed](#aboxed)
abstract sealed validated payload class | +| sealed interface | [ObjectWithOnlyOptionalProps.ABoxed](#aboxed)
sealed interface for validated payloads | | record | [ObjectWithOnlyOptionalProps.ABoxedString](#aboxedstring)
boxed class to store validated String payloads | | static class | [ObjectWithOnlyOptionalProps.A](#a)
schema class | -| sealed interface | [ObjectWithOnlyOptionalProps.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| sealed interface | [ObjectWithOnlyOptionalProps.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | | record | [ObjectWithOnlyOptionalProps.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | | record | [ObjectWithOnlyOptionalProps.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | | record | [ObjectWithOnlyOptionalProps.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithOptionalTestProp.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithOptionalTestProp.md index bacee601e61..664620abbd4 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithOptionalTestProp.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithOptionalTestProp.md @@ -4,7 +4,7 @@ public class ObjectWithOptionalTestProp
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,12 +12,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ObjectWithOptionalTestProp.ObjectWithOptionalTestProp1Boxed](#objectwithoptionaltestprop1boxed)
abstract sealed validated payload class | +| sealed interface | [ObjectWithOptionalTestProp.ObjectWithOptionalTestProp1Boxed](#objectwithoptionaltestprop1boxed)
sealed interface for validated payloads | | record | [ObjectWithOptionalTestProp.ObjectWithOptionalTestProp1BoxedMap](#objectwithoptionaltestprop1boxedmap)
boxed class to store validated Map payloads | | static class | [ObjectWithOptionalTestProp.ObjectWithOptionalTestProp1](#objectwithoptionaltestprop1)
schema class | | static class | [ObjectWithOptionalTestProp.ObjectWithOptionalTestPropMapBuilder](#objectwithoptionaltestpropmapbuilder)
builder for Map payloads | | static class | [ObjectWithOptionalTestProp.ObjectWithOptionalTestPropMap](#objectwithoptionaltestpropmap)
output class for Map payloads | -| sealed interface | [ObjectWithOptionalTestProp.TestBoxed](#testboxed)
abstract sealed validated payload class | +| sealed interface | [ObjectWithOptionalTestProp.TestBoxed](#testboxed)
sealed interface for validated payloads | | record | [ObjectWithOptionalTestProp.TestBoxedString](#testboxedstring)
boxed class to store validated String payloads | | static class | [ObjectWithOptionalTestProp.Test](#test)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithValidations.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithValidations.md index 0106942b3fd..755fa9edbb3 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithValidations.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithValidations.md @@ -4,13 +4,13 @@ public class ObjectWithValidations
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [ObjectWithValidations.ObjectWithValidations1Boxed](#objectwithvalidations1boxed)
abstract sealed validated payload class | +| sealed interface | [ObjectWithValidations.ObjectWithValidations1Boxed](#objectwithvalidations1boxed)
sealed interface for validated payloads | | record | [ObjectWithValidations.ObjectWithValidations1BoxedMap](#objectwithvalidations1boxedmap)
boxed class to store validated Map payloads | | static class | [ObjectWithValidations.ObjectWithValidations1](#objectwithvalidations1)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/Order.md b/samples/client/petstore/java/docs/components/schemas/Order.md index dbdae6eade6..ba179bd12f8 100644 --- a/samples/client/petstore/java/docs/components/schemas/Order.md +++ b/samples/client/petstore/java/docs/components/schemas/Order.md @@ -4,7 +4,7 @@ public class Order
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,28 +13,28 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Order.Order1Boxed](#order1boxed)
abstract sealed validated payload class | +| sealed interface | [Order.Order1Boxed](#order1boxed)
sealed interface for validated payloads | | record | [Order.Order1BoxedMap](#order1boxedmap)
boxed class to store validated Map payloads | | static class | [Order.Order1](#order1)
schema class | | static class | [Order.OrderMapBuilder](#ordermapbuilder)
builder for Map payloads | | static class | [Order.OrderMap](#ordermap)
output class for Map payloads | -| sealed interface | [Order.CompleteBoxed](#completeboxed)
abstract sealed validated payload class | +| sealed interface | [Order.CompleteBoxed](#completeboxed)
sealed interface for validated payloads | | record | [Order.CompleteBoxedBoolean](#completeboxedboolean)
boxed class to store validated boolean payloads | | static class | [Order.Complete](#complete)
schema class | -| sealed interface | [Order.StatusBoxed](#statusboxed)
abstract sealed validated payload class | +| sealed interface | [Order.StatusBoxed](#statusboxed)
sealed interface for validated payloads | | record | [Order.StatusBoxedString](#statusboxedstring)
boxed class to store validated String payloads | | static class | [Order.Status](#status)
schema class | | enum | [Order.StringStatusEnums](#stringstatusenums)
String enum | -| sealed interface | [Order.ShipDateBoxed](#shipdateboxed)
abstract sealed validated payload class | +| sealed interface | [Order.ShipDateBoxed](#shipdateboxed)
sealed interface for validated payloads | | record | [Order.ShipDateBoxedString](#shipdateboxedstring)
boxed class to store validated String payloads | | static class | [Order.ShipDate](#shipdate)
schema class | -| sealed interface | [Order.QuantityBoxed](#quantityboxed)
abstract sealed validated payload class | +| sealed interface | [Order.QuantityBoxed](#quantityboxed)
sealed interface for validated payloads | | record | [Order.QuantityBoxedNumber](#quantityboxednumber)
boxed class to store validated Number payloads | | static class | [Order.Quantity](#quantity)
schema class | -| sealed interface | [Order.PetIdBoxed](#petidboxed)
abstract sealed validated payload class | +| sealed interface | [Order.PetIdBoxed](#petidboxed)
sealed interface for validated payloads | | record | [Order.PetIdBoxedNumber](#petidboxednumber)
boxed class to store validated Number payloads | | static class | [Order.PetId](#petid)
schema class | -| sealed interface | [Order.IdBoxed](#idboxed)
abstract sealed validated payload class | +| sealed interface | [Order.IdBoxed](#idboxed)
sealed interface for validated payloads | | record | [Order.IdBoxedNumber](#idboxednumber)
boxed class to store validated Number payloads | | static class | [Order.Id](#id)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/PaginatedResultMyObjectDto.md b/samples/client/petstore/java/docs/components/schemas/PaginatedResultMyObjectDto.md index 7b0f6ff8e2f..05e38e2d26b 100644 --- a/samples/client/petstore/java/docs/components/schemas/PaginatedResultMyObjectDto.md +++ b/samples/client/petstore/java/docs/components/schemas/PaginatedResultMyObjectDto.md @@ -4,7 +4,7 @@ public class PaginatedResultMyObjectDto
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -14,20 +14,20 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [PaginatedResultMyObjectDto.PaginatedResultMyObjectDto1Boxed](#paginatedresultmyobjectdto1boxed)
abstract sealed validated payload class | +| sealed interface | [PaginatedResultMyObjectDto.PaginatedResultMyObjectDto1Boxed](#paginatedresultmyobjectdto1boxed)
sealed interface for validated payloads | | record | [PaginatedResultMyObjectDto.PaginatedResultMyObjectDto1BoxedMap](#paginatedresultmyobjectdto1boxedmap)
boxed class to store validated Map payloads | | static class | [PaginatedResultMyObjectDto.PaginatedResultMyObjectDto1](#paginatedresultmyobjectdto1)
schema class | | static class | [PaginatedResultMyObjectDto.PaginatedResultMyObjectDtoMapBuilder](#paginatedresultmyobjectdtomapbuilder)
builder for Map payloads | | static class | [PaginatedResultMyObjectDto.PaginatedResultMyObjectDtoMap](#paginatedresultmyobjectdtomap)
output class for Map payloads | -| sealed interface | [PaginatedResultMyObjectDto.ResultsBoxed](#resultsboxed)
abstract sealed validated payload class | +| sealed interface | [PaginatedResultMyObjectDto.ResultsBoxed](#resultsboxed)
sealed interface for validated payloads | | record | [PaginatedResultMyObjectDto.ResultsBoxedList](#resultsboxedlist)
boxed class to store validated List payloads | | static class | [PaginatedResultMyObjectDto.Results](#results)
schema class | | static class | [PaginatedResultMyObjectDto.ResultsListBuilder](#resultslistbuilder)
builder for List payloads | | static class | [PaginatedResultMyObjectDto.ResultsList](#resultslist)
output class for List payloads | -| sealed interface | [PaginatedResultMyObjectDto.CountBoxed](#countboxed)
abstract sealed validated payload class | +| sealed interface | [PaginatedResultMyObjectDto.CountBoxed](#countboxed)
sealed interface for validated payloads | | record | [PaginatedResultMyObjectDto.CountBoxedNumber](#countboxednumber)
boxed class to store validated Number payloads | | static class | [PaginatedResultMyObjectDto.Count](#count)
schema class | -| sealed interface | [PaginatedResultMyObjectDto.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| sealed interface | [PaginatedResultMyObjectDto.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | | record | [PaginatedResultMyObjectDto.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | | record | [PaginatedResultMyObjectDto.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | | record | [PaginatedResultMyObjectDto.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/ParentPet.md b/samples/client/petstore/java/docs/components/schemas/ParentPet.md index 40e00cda1ad..d377636a119 100644 --- a/samples/client/petstore/java/docs/components/schemas/ParentPet.md +++ b/samples/client/petstore/java/docs/components/schemas/ParentPet.md @@ -4,13 +4,13 @@ public class ParentPet
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [ParentPet.ParentPet1Boxed](#parentpet1boxed)
abstract sealed validated payload class | +| sealed interface | [ParentPet.ParentPet1Boxed](#parentpet1boxed)
sealed interface for validated payloads | | record | [ParentPet.ParentPet1BoxedMap](#parentpet1boxedmap)
boxed class to store validated Map payloads | | static class | [ParentPet.ParentPet1](#parentpet1)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/Pet.md b/samples/client/petstore/java/docs/components/schemas/Pet.md index 5182330e58b..b037c683712 100644 --- a/samples/client/petstore/java/docs/components/schemas/Pet.md +++ b/samples/client/petstore/java/docs/components/schemas/Pet.md @@ -4,7 +4,7 @@ public class Pet
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -15,32 +15,32 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Pet.Pet1Boxed](#pet1boxed)
abstract sealed validated payload class | +| sealed interface | [Pet.Pet1Boxed](#pet1boxed)
sealed interface for validated payloads | | record | [Pet.Pet1BoxedMap](#pet1boxedmap)
boxed class to store validated Map payloads | | static class | [Pet.Pet1](#pet1)
schema class | | static class | [Pet.PetMapBuilder](#petmapbuilder)
builder for Map payloads | | static class | [Pet.PetMap](#petmap)
output class for Map payloads | -| sealed interface | [Pet.TagsBoxed](#tagsboxed)
abstract sealed validated payload class | +| sealed interface | [Pet.TagsBoxed](#tagsboxed)
sealed interface for validated payloads | | record | [Pet.TagsBoxedList](#tagsboxedlist)
boxed class to store validated List payloads | | static class | [Pet.Tags](#tags)
schema class | | static class | [Pet.TagsListBuilder](#tagslistbuilder)
builder for List payloads | | static class | [Pet.TagsList](#tagslist)
output class for List payloads | -| sealed interface | [Pet.StatusBoxed](#statusboxed)
abstract sealed validated payload class | +| sealed interface | [Pet.StatusBoxed](#statusboxed)
sealed interface for validated payloads | | record | [Pet.StatusBoxedString](#statusboxedstring)
boxed class to store validated String payloads | | static class | [Pet.Status](#status)
schema class | | enum | [Pet.StringStatusEnums](#stringstatusenums)
String enum | -| sealed interface | [Pet.PhotoUrlsBoxed](#photourlsboxed)
abstract sealed validated payload class | +| sealed interface | [Pet.PhotoUrlsBoxed](#photourlsboxed)
sealed interface for validated payloads | | record | [Pet.PhotoUrlsBoxedList](#photourlsboxedlist)
boxed class to store validated List payloads | | static class | [Pet.PhotoUrls](#photourls)
schema class | | static class | [Pet.PhotoUrlsListBuilder](#photourlslistbuilder)
builder for List payloads | | static class | [Pet.PhotoUrlsList](#photourlslist)
output class for List payloads | -| sealed interface | [Pet.ItemsBoxed](#itemsboxed)
abstract sealed validated payload class | +| sealed interface | [Pet.ItemsBoxed](#itemsboxed)
sealed interface for validated payloads | | record | [Pet.ItemsBoxedString](#itemsboxedstring)
boxed class to store validated String payloads | | static class | [Pet.Items](#items)
schema class | -| sealed interface | [Pet.NameBoxed](#nameboxed)
abstract sealed validated payload class | +| sealed interface | [Pet.NameBoxed](#nameboxed)
sealed interface for validated payloads | | record | [Pet.NameBoxedString](#nameboxedstring)
boxed class to store validated String payloads | | static class | [Pet.Name](#name)
schema class | -| sealed interface | [Pet.IdBoxed](#idboxed)
abstract sealed validated payload class | +| sealed interface | [Pet.IdBoxed](#idboxed)
sealed interface for validated payloads | | record | [Pet.IdBoxedNumber](#idboxednumber)
boxed class to store validated Number payloads | | static class | [Pet.Id](#id)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/Pig.md b/samples/client/petstore/java/docs/components/schemas/Pig.md index 7d745247868..bafb15b4d36 100644 --- a/samples/client/petstore/java/docs/components/schemas/Pig.md +++ b/samples/client/petstore/java/docs/components/schemas/Pig.md @@ -4,13 +4,13 @@ public class Pig
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Pig.Pig1Boxed](#pig1boxed)
abstract sealed validated payload class | +| sealed interface | [Pig.Pig1Boxed](#pig1boxed)
sealed interface for validated payloads | | record | [Pig.Pig1BoxedVoid](#pig1boxedvoid)
boxed class to store validated null payloads | | record | [Pig.Pig1BoxedBoolean](#pig1boxedboolean)
boxed class to store validated boolean payloads | | record | [Pig.Pig1BoxedNumber](#pig1boxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/Player.md b/samples/client/petstore/java/docs/components/schemas/Player.md index 9f6f7adb7c0..b1cc1896410 100644 --- a/samples/client/petstore/java/docs/components/schemas/Player.md +++ b/samples/client/petstore/java/docs/components/schemas/Player.md @@ -4,7 +4,7 @@ public class Player
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,12 +12,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Player.Player1Boxed](#player1boxed)
abstract sealed validated payload class | +| sealed interface | [Player.Player1Boxed](#player1boxed)
sealed interface for validated payloads | | record | [Player.Player1BoxedMap](#player1boxedmap)
boxed class to store validated Map payloads | | static class | [Player.Player1](#player1)
schema class | | static class | [Player.PlayerMapBuilder](#playermapbuilder)
builder for Map payloads | | static class | [Player.PlayerMap](#playermap)
output class for Map payloads | -| sealed interface | [Player.NameBoxed](#nameboxed)
abstract sealed validated payload class | +| sealed interface | [Player.NameBoxed](#nameboxed)
sealed interface for validated payloads | | record | [Player.NameBoxedString](#nameboxedstring)
boxed class to store validated String payloads | | static class | [Player.Name](#name)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/PublicKey.md b/samples/client/petstore/java/docs/components/schemas/PublicKey.md index 55b3a8b52bf..d264945f70f 100644 --- a/samples/client/petstore/java/docs/components/schemas/PublicKey.md +++ b/samples/client/petstore/java/docs/components/schemas/PublicKey.md @@ -4,7 +4,7 @@ public class PublicKey
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,12 +12,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [PublicKey.PublicKey1Boxed](#publickey1boxed)
abstract sealed validated payload class | +| sealed interface | [PublicKey.PublicKey1Boxed](#publickey1boxed)
sealed interface for validated payloads | | record | [PublicKey.PublicKey1BoxedMap](#publickey1boxedmap)
boxed class to store validated Map payloads | | static class | [PublicKey.PublicKey1](#publickey1)
schema class | | static class | [PublicKey.PublicKeyMapBuilder](#publickeymapbuilder)
builder for Map payloads | | static class | [PublicKey.PublicKeyMap](#publickeymap)
output class for Map payloads | -| sealed interface | [PublicKey.KeyBoxed](#keyboxed)
abstract sealed validated payload class | +| sealed interface | [PublicKey.KeyBoxed](#keyboxed)
sealed interface for validated payloads | | record | [PublicKey.KeyBoxedString](#keyboxedstring)
boxed class to store validated String payloads | | static class | [PublicKey.Key](#key)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/Quadrilateral.md b/samples/client/petstore/java/docs/components/schemas/Quadrilateral.md index 801ec649997..d00c2343be1 100644 --- a/samples/client/petstore/java/docs/components/schemas/Quadrilateral.md +++ b/samples/client/petstore/java/docs/components/schemas/Quadrilateral.md @@ -4,13 +4,13 @@ public class Quadrilateral
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Quadrilateral.Quadrilateral1Boxed](#quadrilateral1boxed)
abstract sealed validated payload class | +| sealed interface | [Quadrilateral.Quadrilateral1Boxed](#quadrilateral1boxed)
sealed interface for validated payloads | | record | [Quadrilateral.Quadrilateral1BoxedVoid](#quadrilateral1boxedvoid)
boxed class to store validated null payloads | | record | [Quadrilateral.Quadrilateral1BoxedBoolean](#quadrilateral1boxedboolean)
boxed class to store validated boolean payloads | | record | [Quadrilateral.Quadrilateral1BoxedNumber](#quadrilateral1boxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/QuadrilateralInterface.md b/samples/client/petstore/java/docs/components/schemas/QuadrilateralInterface.md index 596aa135a24..d7312853756 100644 --- a/samples/client/petstore/java/docs/components/schemas/QuadrilateralInterface.md +++ b/samples/client/petstore/java/docs/components/schemas/QuadrilateralInterface.md @@ -4,7 +4,7 @@ public class QuadrilateralInterface
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,7 +13,7 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [QuadrilateralInterface.QuadrilateralInterface1Boxed](#quadrilateralinterface1boxed)
abstract sealed validated payload class | +| sealed interface | [QuadrilateralInterface.QuadrilateralInterface1Boxed](#quadrilateralinterface1boxed)
sealed interface for validated payloads | | record | [QuadrilateralInterface.QuadrilateralInterface1BoxedVoid](#quadrilateralinterface1boxedvoid)
boxed class to store validated null payloads | | record | [QuadrilateralInterface.QuadrilateralInterface1BoxedBoolean](#quadrilateralinterface1boxedboolean)
boxed class to store validated boolean payloads | | record | [QuadrilateralInterface.QuadrilateralInterface1BoxedNumber](#quadrilateralinterface1boxednumber)
boxed class to store validated Number payloads | @@ -23,10 +23,10 @@ A class that contains necessary nested | static class | [QuadrilateralInterface.QuadrilateralInterface1](#quadrilateralinterface1)
schema class | | static class | [QuadrilateralInterface.QuadrilateralInterfaceMapBuilder](#quadrilateralinterfacemapbuilder)
builder for Map payloads | | static class | [QuadrilateralInterface.QuadrilateralInterfaceMap](#quadrilateralinterfacemap)
output class for Map payloads | -| sealed interface | [QuadrilateralInterface.QuadrilateralTypeBoxed](#quadrilateraltypeboxed)
abstract sealed validated payload class | +| sealed interface | [QuadrilateralInterface.QuadrilateralTypeBoxed](#quadrilateraltypeboxed)
sealed interface for validated payloads | | record | [QuadrilateralInterface.QuadrilateralTypeBoxedString](#quadrilateraltypeboxedstring)
boxed class to store validated String payloads | | static class | [QuadrilateralInterface.QuadrilateralType](#quadrilateraltype)
schema class | -| sealed interface | [QuadrilateralInterface.ShapeTypeBoxed](#shapetypeboxed)
abstract sealed validated payload class | +| sealed interface | [QuadrilateralInterface.ShapeTypeBoxed](#shapetypeboxed)
sealed interface for validated payloads | | record | [QuadrilateralInterface.ShapeTypeBoxedString](#shapetypeboxedstring)
boxed class to store validated String payloads | | static class | [QuadrilateralInterface.ShapeType](#shapetype)
schema class | | enum | [QuadrilateralInterface.StringShapeTypeEnums](#stringshapetypeenums)
String enum | diff --git a/samples/client/petstore/java/docs/components/schemas/ReadOnlyFirst.md b/samples/client/petstore/java/docs/components/schemas/ReadOnlyFirst.md index ab772fb7e76..cd2c5b7afe9 100644 --- a/samples/client/petstore/java/docs/components/schemas/ReadOnlyFirst.md +++ b/samples/client/petstore/java/docs/components/schemas/ReadOnlyFirst.md @@ -4,7 +4,7 @@ public class ReadOnlyFirst
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,15 +12,15 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ReadOnlyFirst.ReadOnlyFirst1Boxed](#readonlyfirst1boxed)
abstract sealed validated payload class | +| sealed interface | [ReadOnlyFirst.ReadOnlyFirst1Boxed](#readonlyfirst1boxed)
sealed interface for validated payloads | | record | [ReadOnlyFirst.ReadOnlyFirst1BoxedMap](#readonlyfirst1boxedmap)
boxed class to store validated Map payloads | | static class | [ReadOnlyFirst.ReadOnlyFirst1](#readonlyfirst1)
schema class | | static class | [ReadOnlyFirst.ReadOnlyFirstMapBuilder](#readonlyfirstmapbuilder)
builder for Map payloads | | static class | [ReadOnlyFirst.ReadOnlyFirstMap](#readonlyfirstmap)
output class for Map payloads | -| sealed interface | [ReadOnlyFirst.BazBoxed](#bazboxed)
abstract sealed validated payload class | +| sealed interface | [ReadOnlyFirst.BazBoxed](#bazboxed)
sealed interface for validated payloads | | record | [ReadOnlyFirst.BazBoxedString](#bazboxedstring)
boxed class to store validated String payloads | | static class | [ReadOnlyFirst.Baz](#baz)
schema class | -| sealed interface | [ReadOnlyFirst.BarBoxed](#barboxed)
abstract sealed validated payload class | +| sealed interface | [ReadOnlyFirst.BarBoxed](#barboxed)
sealed interface for validated payloads | | record | [ReadOnlyFirst.BarBoxedString](#barboxedstring)
boxed class to store validated String payloads | | static class | [ReadOnlyFirst.Bar](#bar)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/RefPet.md b/samples/client/petstore/java/docs/components/schemas/RefPet.md index 2abbdcb47f9..73e54bfa49a 100644 --- a/samples/client/petstore/java/docs/components/schemas/RefPet.md +++ b/samples/client/petstore/java/docs/components/schemas/RefPet.md @@ -5,7 +5,7 @@ extends [Pet1](../../components/schemas/Pet.md#pet) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromExplicitAddProps.md b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromExplicitAddProps.md index 6efb4a28731..fbbfe96abb9 100644 --- a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromExplicitAddProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromExplicitAddProps.md @@ -4,7 +4,7 @@ public class ReqPropsFromExplicitAddProps
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,12 +12,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ReqPropsFromExplicitAddProps.ReqPropsFromExplicitAddProps1Boxed](#reqpropsfromexplicitaddprops1boxed)
abstract sealed validated payload class | +| sealed interface | [ReqPropsFromExplicitAddProps.ReqPropsFromExplicitAddProps1Boxed](#reqpropsfromexplicitaddprops1boxed)
sealed interface for validated payloads | | record | [ReqPropsFromExplicitAddProps.ReqPropsFromExplicitAddProps1BoxedMap](#reqpropsfromexplicitaddprops1boxedmap)
boxed class to store validated Map payloads | | static class | [ReqPropsFromExplicitAddProps.ReqPropsFromExplicitAddProps1](#reqpropsfromexplicitaddprops1)
schema class | | static class | [ReqPropsFromExplicitAddProps.ReqPropsFromExplicitAddPropsMapBuilder](#reqpropsfromexplicitaddpropsmapbuilder)
builder for Map payloads | | static class | [ReqPropsFromExplicitAddProps.ReqPropsFromExplicitAddPropsMap](#reqpropsfromexplicitaddpropsmap)
output class for Map payloads | -| sealed interface | [ReqPropsFromExplicitAddProps.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| sealed interface | [ReqPropsFromExplicitAddProps.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | | record | [ReqPropsFromExplicitAddProps.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | | static class | [ReqPropsFromExplicitAddProps.AdditionalProperties](#additionalproperties)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromTrueAddProps.md b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromTrueAddProps.md index 78a4b03b926..83d828faf0a 100644 --- a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromTrueAddProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromTrueAddProps.md @@ -4,7 +4,7 @@ public class ReqPropsFromTrueAddProps
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,12 +12,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ReqPropsFromTrueAddProps.ReqPropsFromTrueAddProps1Boxed](#reqpropsfromtrueaddprops1boxed)
abstract sealed validated payload class | +| sealed interface | [ReqPropsFromTrueAddProps.ReqPropsFromTrueAddProps1Boxed](#reqpropsfromtrueaddprops1boxed)
sealed interface for validated payloads | | record | [ReqPropsFromTrueAddProps.ReqPropsFromTrueAddProps1BoxedMap](#reqpropsfromtrueaddprops1boxedmap)
boxed class to store validated Map payloads | | static class | [ReqPropsFromTrueAddProps.ReqPropsFromTrueAddProps1](#reqpropsfromtrueaddprops1)
schema class | | static class | [ReqPropsFromTrueAddProps.ReqPropsFromTrueAddPropsMapBuilder](#reqpropsfromtrueaddpropsmapbuilder)
builder for Map payloads | | static class | [ReqPropsFromTrueAddProps.ReqPropsFromTrueAddPropsMap](#reqpropsfromtrueaddpropsmap)
output class for Map payloads | -| sealed interface | [ReqPropsFromTrueAddProps.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| sealed interface | [ReqPropsFromTrueAddProps.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | | record | [ReqPropsFromTrueAddProps.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | | record | [ReqPropsFromTrueAddProps.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | | record | [ReqPropsFromTrueAddProps.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromUnsetAddProps.md b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromUnsetAddProps.md index 760fc87ce31..cd32f212176 100644 --- a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromUnsetAddProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromUnsetAddProps.md @@ -4,7 +4,7 @@ public class ReqPropsFromUnsetAddProps
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,7 +12,7 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ReqPropsFromUnsetAddProps.ReqPropsFromUnsetAddProps1Boxed](#reqpropsfromunsetaddprops1boxed)
abstract sealed validated payload class | +| sealed interface | [ReqPropsFromUnsetAddProps.ReqPropsFromUnsetAddProps1Boxed](#reqpropsfromunsetaddprops1boxed)
sealed interface for validated payloads | | record | [ReqPropsFromUnsetAddProps.ReqPropsFromUnsetAddProps1BoxedMap](#reqpropsfromunsetaddprops1boxedmap)
boxed class to store validated Map payloads | | static class | [ReqPropsFromUnsetAddProps.ReqPropsFromUnsetAddProps1](#reqpropsfromunsetaddprops1)
schema class | | static class | [ReqPropsFromUnsetAddProps.ReqPropsFromUnsetAddPropsMapBuilder](#reqpropsfromunsetaddpropsmapbuilder)
builder for Map payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/ReturnSchema.md b/samples/client/petstore/java/docs/components/schemas/ReturnSchema.md index 906c4400134..a59d8d4dd9a 100644 --- a/samples/client/petstore/java/docs/components/schemas/ReturnSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/ReturnSchema.md @@ -4,7 +4,7 @@ public class ReturnSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,7 +12,7 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ReturnSchema.ReturnSchema1Boxed](#returnschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ReturnSchema.ReturnSchema1Boxed](#returnschema1boxed)
sealed interface for validated payloads | | record | [ReturnSchema.ReturnSchema1BoxedVoid](#returnschema1boxedvoid)
boxed class to store validated null payloads | | record | [ReturnSchema.ReturnSchema1BoxedBoolean](#returnschema1boxedboolean)
boxed class to store validated boolean payloads | | record | [ReturnSchema.ReturnSchema1BoxedNumber](#returnschema1boxednumber)
boxed class to store validated Number payloads | @@ -22,7 +22,7 @@ A class that contains necessary nested | static class | [ReturnSchema.ReturnSchema1](#returnschema1)
schema class | | static class | [ReturnSchema.ReturnMapBuilder1](#returnmapbuilder1)
builder for Map payloads | | static class | [ReturnSchema.ReturnMap](#returnmap)
output class for Map payloads | -| sealed interface | [ReturnSchema.ReturnSchema2Boxed](#returnschema2boxed)
abstract sealed validated payload class | +| sealed interface | [ReturnSchema.ReturnSchema2Boxed](#returnschema2boxed)
sealed interface for validated payloads | | record | [ReturnSchema.ReturnSchema2BoxedNumber](#returnschema2boxednumber)
boxed class to store validated Number payloads | | static class | [ReturnSchema.ReturnSchema2](#returnschema2)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/ScaleneTriangle.md b/samples/client/petstore/java/docs/components/schemas/ScaleneTriangle.md index e856a876d87..63941694f59 100644 --- a/samples/client/petstore/java/docs/components/schemas/ScaleneTriangle.md +++ b/samples/client/petstore/java/docs/components/schemas/ScaleneTriangle.md @@ -4,7 +4,7 @@ public class ScaleneTriangle
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,7 +13,7 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ScaleneTriangle.ScaleneTriangle1Boxed](#scalenetriangle1boxed)
abstract sealed validated payload class | +| sealed interface | [ScaleneTriangle.ScaleneTriangle1Boxed](#scalenetriangle1boxed)
sealed interface for validated payloads | | record | [ScaleneTriangle.ScaleneTriangle1BoxedVoid](#scalenetriangle1boxedvoid)
boxed class to store validated null payloads | | record | [ScaleneTriangle.ScaleneTriangle1BoxedBoolean](#scalenetriangle1boxedboolean)
boxed class to store validated boolean payloads | | record | [ScaleneTriangle.ScaleneTriangle1BoxedNumber](#scalenetriangle1boxednumber)
boxed class to store validated Number payloads | @@ -21,12 +21,12 @@ A class that contains necessary nested | record | [ScaleneTriangle.ScaleneTriangle1BoxedList](#scalenetriangle1boxedlist)
boxed class to store validated List payloads | | record | [ScaleneTriangle.ScaleneTriangle1BoxedMap](#scalenetriangle1boxedmap)
boxed class to store validated Map payloads | | static class | [ScaleneTriangle.ScaleneTriangle1](#scalenetriangle1)
schema class | -| sealed interface | [ScaleneTriangle.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | +| sealed interface | [ScaleneTriangle.Schema1Boxed](#schema1boxed)
sealed interface for validated payloads | | record | [ScaleneTriangle.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | | static class | [ScaleneTriangle.Schema1](#schema1)
schema class | | static class | [ScaleneTriangle.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [ScaleneTriangle.Schema1Map](#schema1map)
output class for Map payloads | -| sealed interface | [ScaleneTriangle.TriangleTypeBoxed](#triangletypeboxed)
abstract sealed validated payload class | +| sealed interface | [ScaleneTriangle.TriangleTypeBoxed](#triangletypeboxed)
sealed interface for validated payloads | | record | [ScaleneTriangle.TriangleTypeBoxedString](#triangletypeboxedstring)
boxed class to store validated String payloads | | static class | [ScaleneTriangle.TriangleType](#triangletype)
schema class | | enum | [ScaleneTriangle.StringTriangleTypeEnums](#stringtriangletypeenums)
String enum | diff --git a/samples/client/petstore/java/docs/components/schemas/Schema200Response.md b/samples/client/petstore/java/docs/components/schemas/Schema200Response.md index 3c846845f4f..e5f2df3e162 100644 --- a/samples/client/petstore/java/docs/components/schemas/Schema200Response.md +++ b/samples/client/petstore/java/docs/components/schemas/Schema200Response.md @@ -4,7 +4,7 @@ public class Schema200Response
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,7 +12,7 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Schema200Response.Schema200Response1Boxed](#schema200response1boxed)
abstract sealed validated payload class | +| sealed interface | [Schema200Response.Schema200Response1Boxed](#schema200response1boxed)
sealed interface for validated payloads | | record | [Schema200Response.Schema200Response1BoxedVoid](#schema200response1boxedvoid)
boxed class to store validated null payloads | | record | [Schema200Response.Schema200Response1BoxedBoolean](#schema200response1boxedboolean)
boxed class to store validated boolean payloads | | record | [Schema200Response.Schema200Response1BoxedNumber](#schema200response1boxednumber)
boxed class to store validated Number payloads | @@ -22,10 +22,10 @@ A class that contains necessary nested | static class | [Schema200Response.Schema200Response1](#schema200response1)
schema class | | static class | [Schema200Response.Schema200ResponseMapBuilder](#schema200responsemapbuilder)
builder for Map payloads | | static class | [Schema200Response.Schema200ResponseMap](#schema200responsemap)
output class for Map payloads | -| sealed interface | [Schema200Response.ClassSchemaBoxed](#classschemaboxed)
abstract sealed validated payload class | +| sealed interface | [Schema200Response.ClassSchemaBoxed](#classschemaboxed)
sealed interface for validated payloads | | record | [Schema200Response.ClassSchemaBoxedString](#classschemaboxedstring)
boxed class to store validated String payloads | | static class | [Schema200Response.ClassSchema](#classschema)
schema class | -| sealed interface | [Schema200Response.NameBoxed](#nameboxed)
abstract sealed validated payload class | +| sealed interface | [Schema200Response.NameBoxed](#nameboxed)
sealed interface for validated payloads | | record | [Schema200Response.NameBoxedNumber](#nameboxednumber)
boxed class to store validated Number payloads | | static class | [Schema200Response.Name](#name)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/SelfReferencingArrayModel.md b/samples/client/petstore/java/docs/components/schemas/SelfReferencingArrayModel.md index bcdc781baaa..d8ede7ede57 100644 --- a/samples/client/petstore/java/docs/components/schemas/SelfReferencingArrayModel.md +++ b/samples/client/petstore/java/docs/components/schemas/SelfReferencingArrayModel.md @@ -4,7 +4,7 @@ public class SelfReferencingArrayModel
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,7 +12,7 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [SelfReferencingArrayModel.SelfReferencingArrayModel1Boxed](#selfreferencingarraymodel1boxed)
abstract sealed validated payload class | +| sealed interface | [SelfReferencingArrayModel.SelfReferencingArrayModel1Boxed](#selfreferencingarraymodel1boxed)
sealed interface for validated payloads | | record | [SelfReferencingArrayModel.SelfReferencingArrayModel1BoxedList](#selfreferencingarraymodel1boxedlist)
boxed class to store validated List payloads | | static class | [SelfReferencingArrayModel.SelfReferencingArrayModel1](#selfreferencingarraymodel1)
schema class | | static class | [SelfReferencingArrayModel.SelfReferencingArrayModelListBuilder](#selfreferencingarraymodellistbuilder)
builder for List payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/SelfReferencingObjectModel.md b/samples/client/petstore/java/docs/components/schemas/SelfReferencingObjectModel.md index 0aa437e381a..5bce083d9bb 100644 --- a/samples/client/petstore/java/docs/components/schemas/SelfReferencingObjectModel.md +++ b/samples/client/petstore/java/docs/components/schemas/SelfReferencingObjectModel.md @@ -4,7 +4,7 @@ public class SelfReferencingObjectModel
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,7 +12,7 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [SelfReferencingObjectModel.SelfReferencingObjectModel1Boxed](#selfreferencingobjectmodel1boxed)
abstract sealed validated payload class | +| sealed interface | [SelfReferencingObjectModel.SelfReferencingObjectModel1Boxed](#selfreferencingobjectmodel1boxed)
sealed interface for validated payloads | | record | [SelfReferencingObjectModel.SelfReferencingObjectModel1BoxedMap](#selfreferencingobjectmodel1boxedmap)
boxed class to store validated Map payloads | | static class | [SelfReferencingObjectModel.SelfReferencingObjectModel1](#selfreferencingobjectmodel1)
schema class | | static class | [SelfReferencingObjectModel.SelfReferencingObjectModelMapBuilder](#selfreferencingobjectmodelmapbuilder)
builder for Map payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/Shape.md b/samples/client/petstore/java/docs/components/schemas/Shape.md index b97865734b3..6c0f79aec8d 100644 --- a/samples/client/petstore/java/docs/components/schemas/Shape.md +++ b/samples/client/petstore/java/docs/components/schemas/Shape.md @@ -4,13 +4,13 @@ public class Shape
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Shape.Shape1Boxed](#shape1boxed)
abstract sealed validated payload class | +| sealed interface | [Shape.Shape1Boxed](#shape1boxed)
sealed interface for validated payloads | | record | [Shape.Shape1BoxedVoid](#shape1boxedvoid)
boxed class to store validated null payloads | | record | [Shape.Shape1BoxedBoolean](#shape1boxedboolean)
boxed class to store validated boolean payloads | | record | [Shape.Shape1BoxedNumber](#shape1boxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/ShapeOrNull.md b/samples/client/petstore/java/docs/components/schemas/ShapeOrNull.md index 06a79940709..ae25fb658b4 100644 --- a/samples/client/petstore/java/docs/components/schemas/ShapeOrNull.md +++ b/samples/client/petstore/java/docs/components/schemas/ShapeOrNull.md @@ -4,13 +4,13 @@ public class ShapeOrNull
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [ShapeOrNull.ShapeOrNull1Boxed](#shapeornull1boxed)
abstract sealed validated payload class | +| sealed interface | [ShapeOrNull.ShapeOrNull1Boxed](#shapeornull1boxed)
sealed interface for validated payloads | | record | [ShapeOrNull.ShapeOrNull1BoxedVoid](#shapeornull1boxedvoid)
boxed class to store validated null payloads | | record | [ShapeOrNull.ShapeOrNull1BoxedBoolean](#shapeornull1boxedboolean)
boxed class to store validated boolean payloads | | record | [ShapeOrNull.ShapeOrNull1BoxedNumber](#shapeornull1boxednumber)
boxed class to store validated Number payloads | @@ -18,7 +18,7 @@ A class that contains necessary nested | record | [ShapeOrNull.ShapeOrNull1BoxedList](#shapeornull1boxedlist)
boxed class to store validated List payloads | | record | [ShapeOrNull.ShapeOrNull1BoxedMap](#shapeornull1boxedmap)
boxed class to store validated Map payloads | | static class | [ShapeOrNull.ShapeOrNull1](#shapeornull1)
schema class | -| sealed interface | [ShapeOrNull.Schema0Boxed](#schema0boxed)
abstract sealed validated payload class | +| sealed interface | [ShapeOrNull.Schema0Boxed](#schema0boxed)
sealed interface for validated payloads | | record | [ShapeOrNull.Schema0BoxedVoid](#schema0boxedvoid)
boxed class to store validated null payloads | | static class | [ShapeOrNull.Schema0](#schema0)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/SimpleQuadrilateral.md b/samples/client/petstore/java/docs/components/schemas/SimpleQuadrilateral.md index 5a56605462a..698beffa2f0 100644 --- a/samples/client/petstore/java/docs/components/schemas/SimpleQuadrilateral.md +++ b/samples/client/petstore/java/docs/components/schemas/SimpleQuadrilateral.md @@ -4,7 +4,7 @@ public class SimpleQuadrilateral
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,7 +13,7 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [SimpleQuadrilateral.SimpleQuadrilateral1Boxed](#simplequadrilateral1boxed)
abstract sealed validated payload class | +| sealed interface | [SimpleQuadrilateral.SimpleQuadrilateral1Boxed](#simplequadrilateral1boxed)
sealed interface for validated payloads | | record | [SimpleQuadrilateral.SimpleQuadrilateral1BoxedVoid](#simplequadrilateral1boxedvoid)
boxed class to store validated null payloads | | record | [SimpleQuadrilateral.SimpleQuadrilateral1BoxedBoolean](#simplequadrilateral1boxedboolean)
boxed class to store validated boolean payloads | | record | [SimpleQuadrilateral.SimpleQuadrilateral1BoxedNumber](#simplequadrilateral1boxednumber)
boxed class to store validated Number payloads | @@ -21,12 +21,12 @@ A class that contains necessary nested | record | [SimpleQuadrilateral.SimpleQuadrilateral1BoxedList](#simplequadrilateral1boxedlist)
boxed class to store validated List payloads | | record | [SimpleQuadrilateral.SimpleQuadrilateral1BoxedMap](#simplequadrilateral1boxedmap)
boxed class to store validated Map payloads | | static class | [SimpleQuadrilateral.SimpleQuadrilateral1](#simplequadrilateral1)
schema class | -| sealed interface | [SimpleQuadrilateral.Schema1Boxed](#schema1boxed)
abstract sealed validated payload class | +| sealed interface | [SimpleQuadrilateral.Schema1Boxed](#schema1boxed)
sealed interface for validated payloads | | record | [SimpleQuadrilateral.Schema1BoxedMap](#schema1boxedmap)
boxed class to store validated Map payloads | | static class | [SimpleQuadrilateral.Schema1](#schema1)
schema class | | static class | [SimpleQuadrilateral.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [SimpleQuadrilateral.Schema1Map](#schema1map)
output class for Map payloads | -| sealed interface | [SimpleQuadrilateral.QuadrilateralTypeBoxed](#quadrilateraltypeboxed)
abstract sealed validated payload class | +| sealed interface | [SimpleQuadrilateral.QuadrilateralTypeBoxed](#quadrilateraltypeboxed)
sealed interface for validated payloads | | record | [SimpleQuadrilateral.QuadrilateralTypeBoxedString](#quadrilateraltypeboxedstring)
boxed class to store validated String payloads | | static class | [SimpleQuadrilateral.QuadrilateralType](#quadrilateraltype)
schema class | | enum | [SimpleQuadrilateral.StringQuadrilateralTypeEnums](#stringquadrilateraltypeenums)
String enum | diff --git a/samples/client/petstore/java/docs/components/schemas/SomeObject.md b/samples/client/petstore/java/docs/components/schemas/SomeObject.md index 29dd04ae202..89784b7e81d 100644 --- a/samples/client/petstore/java/docs/components/schemas/SomeObject.md +++ b/samples/client/petstore/java/docs/components/schemas/SomeObject.md @@ -4,13 +4,13 @@ public class SomeObject
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [SomeObject.SomeObject1Boxed](#someobject1boxed)
abstract sealed validated payload class | +| sealed interface | [SomeObject.SomeObject1Boxed](#someobject1boxed)
sealed interface for validated payloads | | record | [SomeObject.SomeObject1BoxedVoid](#someobject1boxedvoid)
boxed class to store validated null payloads | | record | [SomeObject.SomeObject1BoxedBoolean](#someobject1boxedboolean)
boxed class to store validated boolean payloads | | record | [SomeObject.SomeObject1BoxedNumber](#someobject1boxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/SpecialModelname.md b/samples/client/petstore/java/docs/components/schemas/SpecialModelname.md index 607dff4f3b8..26d0a340d10 100644 --- a/samples/client/petstore/java/docs/components/schemas/SpecialModelname.md +++ b/samples/client/petstore/java/docs/components/schemas/SpecialModelname.md @@ -4,7 +4,7 @@ public class SpecialModelname
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,12 +12,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [SpecialModelname.SpecialModelname1Boxed](#specialmodelname1boxed)
abstract sealed validated payload class | +| sealed interface | [SpecialModelname.SpecialModelname1Boxed](#specialmodelname1boxed)
sealed interface for validated payloads | | record | [SpecialModelname.SpecialModelname1BoxedMap](#specialmodelname1boxedmap)
boxed class to store validated Map payloads | | static class | [SpecialModelname.SpecialModelname1](#specialmodelname1)
schema class | | static class | [SpecialModelname.SpecialModelnameMapBuilder](#specialmodelnamemapbuilder)
builder for Map payloads | | static class | [SpecialModelname.SpecialModelnameMap](#specialmodelnamemap)
output class for Map payloads | -| sealed interface | [SpecialModelname.ABoxed](#aboxed)
abstract sealed validated payload class | +| sealed interface | [SpecialModelname.ABoxed](#aboxed)
sealed interface for validated payloads | | record | [SpecialModelname.ABoxedString](#aboxedstring)
boxed class to store validated String payloads | | static class | [SpecialModelname.A](#a)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/StringBooleanMap.md b/samples/client/petstore/java/docs/components/schemas/StringBooleanMap.md index a0a9584d1a6..f4951685a14 100644 --- a/samples/client/petstore/java/docs/components/schemas/StringBooleanMap.md +++ b/samples/client/petstore/java/docs/components/schemas/StringBooleanMap.md @@ -4,7 +4,7 @@ public class StringBooleanMap
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,12 +12,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [StringBooleanMap.StringBooleanMap1Boxed](#stringbooleanmap1boxed)
abstract sealed validated payload class | +| sealed interface | [StringBooleanMap.StringBooleanMap1Boxed](#stringbooleanmap1boxed)
sealed interface for validated payloads | | record | [StringBooleanMap.StringBooleanMap1BoxedMap](#stringbooleanmap1boxedmap)
boxed class to store validated Map payloads | | static class | [StringBooleanMap.StringBooleanMap1](#stringbooleanmap1)
schema class | | static class | [StringBooleanMap.StringBooleanMapMapBuilder](#stringbooleanmapmapbuilder)
builder for Map payloads | | static class | [StringBooleanMap.StringBooleanMapMap](#stringbooleanmapmap)
output class for Map payloads | -| sealed interface | [StringBooleanMap.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| sealed interface | [StringBooleanMap.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | | record | [StringBooleanMap.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | | static class | [StringBooleanMap.AdditionalProperties](#additionalproperties)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/StringEnum.md b/samples/client/petstore/java/docs/components/schemas/StringEnum.md index bfbbc9dbe02..394bd6564d5 100644 --- a/samples/client/petstore/java/docs/components/schemas/StringEnum.md +++ b/samples/client/petstore/java/docs/components/schemas/StringEnum.md @@ -4,14 +4,14 @@ public class StringEnum
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [StringEnum.StringEnum1Boxed](#stringenum1boxed)
abstract sealed validated payload class | +| sealed interface | [StringEnum.StringEnum1Boxed](#stringenum1boxed)
sealed interface for validated payloads | | record | [StringEnum.StringEnum1BoxedVoid](#stringenum1boxedvoid)
boxed class to store validated null payloads | | record | [StringEnum.StringEnum1BoxedString](#stringenum1boxedstring)
boxed class to store validated String payloads | | static class | [StringEnum.StringEnum1](#stringenum1)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/StringEnumWithDefaultValue.md b/samples/client/petstore/java/docs/components/schemas/StringEnumWithDefaultValue.md index d7cf576fd29..1cbb6f57f58 100644 --- a/samples/client/petstore/java/docs/components/schemas/StringEnumWithDefaultValue.md +++ b/samples/client/petstore/java/docs/components/schemas/StringEnumWithDefaultValue.md @@ -4,14 +4,14 @@ public class StringEnumWithDefaultValue
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [StringEnumWithDefaultValue.StringEnumWithDefaultValue1Boxed](#stringenumwithdefaultvalue1boxed)
abstract sealed validated payload class | +| sealed interface | [StringEnumWithDefaultValue.StringEnumWithDefaultValue1Boxed](#stringenumwithdefaultvalue1boxed)
sealed interface for validated payloads | | record | [StringEnumWithDefaultValue.StringEnumWithDefaultValue1BoxedString](#stringenumwithdefaultvalue1boxedstring)
boxed class to store validated String payloads | | static class | [StringEnumWithDefaultValue.StringEnumWithDefaultValue1](#stringenumwithdefaultvalue1)
schema class | | enum | [StringEnumWithDefaultValue.StringStringEnumWithDefaultValueEnums](#stringstringenumwithdefaultvalueenums)
String enum | diff --git a/samples/client/petstore/java/docs/components/schemas/StringSchema.md b/samples/client/petstore/java/docs/components/schemas/StringSchema.md index 48445f4fa16..396ff63d7b9 100644 --- a/samples/client/petstore/java/docs/components/schemas/StringSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/StringSchema.md @@ -4,13 +4,13 @@ public class StringSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [StringSchema.StringSchema1Boxed](#stringschema1boxed)
abstract sealed validated payload class | +| sealed interface | [StringSchema.StringSchema1Boxed](#stringschema1boxed)
sealed interface for validated payloads | | record | [StringSchema.StringSchema1BoxedString](#stringschema1boxedstring)
boxed class to store validated String payloads | | static class | [StringSchema.StringSchema1](#stringschema1)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/StringWithValidation.md b/samples/client/petstore/java/docs/components/schemas/StringWithValidation.md index ad0b9688c20..5e5529dbdb9 100644 --- a/samples/client/petstore/java/docs/components/schemas/StringWithValidation.md +++ b/samples/client/petstore/java/docs/components/schemas/StringWithValidation.md @@ -4,13 +4,13 @@ public class StringWithValidation
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [StringWithValidation.StringWithValidation1Boxed](#stringwithvalidation1boxed)
abstract sealed validated payload class | +| sealed interface | [StringWithValidation.StringWithValidation1Boxed](#stringwithvalidation1boxed)
sealed interface for validated payloads | | record | [StringWithValidation.StringWithValidation1BoxedString](#stringwithvalidation1boxedstring)
boxed class to store validated String payloads | | static class | [StringWithValidation.StringWithValidation1](#stringwithvalidation1)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/Tag.md b/samples/client/petstore/java/docs/components/schemas/Tag.md index eeff8900e0d..26836b31006 100644 --- a/samples/client/petstore/java/docs/components/schemas/Tag.md +++ b/samples/client/petstore/java/docs/components/schemas/Tag.md @@ -4,7 +4,7 @@ public class Tag
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,15 +12,15 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Tag.Tag1Boxed](#tag1boxed)
abstract sealed validated payload class | +| sealed interface | [Tag.Tag1Boxed](#tag1boxed)
sealed interface for validated payloads | | record | [Tag.Tag1BoxedMap](#tag1boxedmap)
boxed class to store validated Map payloads | | static class | [Tag.Tag1](#tag1)
schema class | | static class | [Tag.TagMapBuilder](#tagmapbuilder)
builder for Map payloads | | static class | [Tag.TagMap](#tagmap)
output class for Map payloads | -| sealed interface | [Tag.NameBoxed](#nameboxed)
abstract sealed validated payload class | +| sealed interface | [Tag.NameBoxed](#nameboxed)
sealed interface for validated payloads | | record | [Tag.NameBoxedString](#nameboxedstring)
boxed class to store validated String payloads | | static class | [Tag.Name](#name)
schema class | -| sealed interface | [Tag.IdBoxed](#idboxed)
abstract sealed validated payload class | +| sealed interface | [Tag.IdBoxed](#idboxed)
sealed interface for validated payloads | | record | [Tag.IdBoxedNumber](#idboxednumber)
boxed class to store validated Number payloads | | static class | [Tag.Id](#id)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/Triangle.md b/samples/client/petstore/java/docs/components/schemas/Triangle.md index 5aa1ccb5529..4eb768df520 100644 --- a/samples/client/petstore/java/docs/components/schemas/Triangle.md +++ b/samples/client/petstore/java/docs/components/schemas/Triangle.md @@ -4,13 +4,13 @@ public class Triangle
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Triangle.Triangle1Boxed](#triangle1boxed)
abstract sealed validated payload class | +| sealed interface | [Triangle.Triangle1Boxed](#triangle1boxed)
sealed interface for validated payloads | | record | [Triangle.Triangle1BoxedVoid](#triangle1boxedvoid)
boxed class to store validated null payloads | | record | [Triangle.Triangle1BoxedBoolean](#triangle1boxedboolean)
boxed class to store validated boolean payloads | | record | [Triangle.Triangle1BoxedNumber](#triangle1boxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/components/schemas/TriangleInterface.md b/samples/client/petstore/java/docs/components/schemas/TriangleInterface.md index e8e8dbdacb9..32abec86ebf 100644 --- a/samples/client/petstore/java/docs/components/schemas/TriangleInterface.md +++ b/samples/client/petstore/java/docs/components/schemas/TriangleInterface.md @@ -4,7 +4,7 @@ public class TriangleInterface
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,7 +13,7 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [TriangleInterface.TriangleInterface1Boxed](#triangleinterface1boxed)
abstract sealed validated payload class | +| sealed interface | [TriangleInterface.TriangleInterface1Boxed](#triangleinterface1boxed)
sealed interface for validated payloads | | record | [TriangleInterface.TriangleInterface1BoxedVoid](#triangleinterface1boxedvoid)
boxed class to store validated null payloads | | record | [TriangleInterface.TriangleInterface1BoxedBoolean](#triangleinterface1boxedboolean)
boxed class to store validated boolean payloads | | record | [TriangleInterface.TriangleInterface1BoxedNumber](#triangleinterface1boxednumber)
boxed class to store validated Number payloads | @@ -23,10 +23,10 @@ A class that contains necessary nested | static class | [TriangleInterface.TriangleInterface1](#triangleinterface1)
schema class | | static class | [TriangleInterface.TriangleInterfaceMapBuilder](#triangleinterfacemapbuilder)
builder for Map payloads | | static class | [TriangleInterface.TriangleInterfaceMap](#triangleinterfacemap)
output class for Map payloads | -| sealed interface | [TriangleInterface.TriangleTypeBoxed](#triangletypeboxed)
abstract sealed validated payload class | +| sealed interface | [TriangleInterface.TriangleTypeBoxed](#triangletypeboxed)
sealed interface for validated payloads | | record | [TriangleInterface.TriangleTypeBoxedString](#triangletypeboxedstring)
boxed class to store validated String payloads | | static class | [TriangleInterface.TriangleType](#triangletype)
schema class | -| sealed interface | [TriangleInterface.ShapeTypeBoxed](#shapetypeboxed)
abstract sealed validated payload class | +| sealed interface | [TriangleInterface.ShapeTypeBoxed](#shapetypeboxed)
sealed interface for validated payloads | | record | [TriangleInterface.ShapeTypeBoxedString](#shapetypeboxedstring)
boxed class to store validated String payloads | | static class | [TriangleInterface.ShapeType](#shapetype)
schema class | | enum | [TriangleInterface.StringShapeTypeEnums](#stringshapetypeenums)
String enum | diff --git a/samples/client/petstore/java/docs/components/schemas/UUIDString.md b/samples/client/petstore/java/docs/components/schemas/UUIDString.md index db934fa2a6e..d4e45e241be 100644 --- a/samples/client/petstore/java/docs/components/schemas/UUIDString.md +++ b/samples/client/petstore/java/docs/components/schemas/UUIDString.md @@ -4,13 +4,13 @@ public class UUIDString
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [UUIDString.UUIDString1Boxed](#uuidstring1boxed)
abstract sealed validated payload class | +| sealed interface | [UUIDString.UUIDString1Boxed](#uuidstring1boxed)
sealed interface for validated payloads | | record | [UUIDString.UUIDString1BoxedString](#uuidstring1boxedstring)
boxed class to store validated String payloads | | static class | [UUIDString.UUIDString1](#uuidstring1)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/User.md b/samples/client/petstore/java/docs/components/schemas/User.md index 7d94e9130c4..df4d65ace9b 100644 --- a/samples/client/petstore/java/docs/components/schemas/User.md +++ b/samples/client/petstore/java/docs/components/schemas/User.md @@ -4,7 +4,7 @@ public class User
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,12 +12,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [User.User1Boxed](#user1boxed)
abstract sealed validated payload class | +| sealed interface | [User.User1Boxed](#user1boxed)
sealed interface for validated payloads | | record | [User.User1BoxedMap](#user1boxedmap)
boxed class to store validated Map payloads | | static class | [User.User1](#user1)
schema class | | static class | [User.UserMapBuilder](#usermapbuilder)
builder for Map payloads | | static class | [User.UserMap](#usermap)
output class for Map payloads | -| sealed interface | [User.AnyTypePropNullableBoxed](#anytypepropnullableboxed)
abstract sealed validated payload class | +| sealed interface | [User.AnyTypePropNullableBoxed](#anytypepropnullableboxed)
sealed interface for validated payloads | | record | [User.AnyTypePropNullableBoxedVoid](#anytypepropnullableboxedvoid)
boxed class to store validated null payloads | | record | [User.AnyTypePropNullableBoxedBoolean](#anytypepropnullableboxedboolean)
boxed class to store validated boolean payloads | | record | [User.AnyTypePropNullableBoxedNumber](#anytypepropnullableboxednumber)
boxed class to store validated Number payloads | @@ -25,7 +25,7 @@ A class that contains necessary nested | record | [User.AnyTypePropNullableBoxedList](#anytypepropnullableboxedlist)
boxed class to store validated List payloads | | record | [User.AnyTypePropNullableBoxedMap](#anytypepropnullableboxedmap)
boxed class to store validated Map payloads | | static class | [User.AnyTypePropNullable](#anytypepropnullable)
schema class | -| sealed interface | [User.AnyTypeExceptNullPropBoxed](#anytypeexceptnullpropboxed)
abstract sealed validated payload class | +| sealed interface | [User.AnyTypeExceptNullPropBoxed](#anytypeexceptnullpropboxed)
sealed interface for validated payloads | | record | [User.AnyTypeExceptNullPropBoxedVoid](#anytypeexceptnullpropboxedvoid)
boxed class to store validated null payloads | | record | [User.AnyTypeExceptNullPropBoxedBoolean](#anytypeexceptnullpropboxedboolean)
boxed class to store validated boolean payloads | | record | [User.AnyTypeExceptNullPropBoxedNumber](#anytypeexceptnullpropboxednumber)
boxed class to store validated Number payloads | @@ -33,10 +33,10 @@ A class that contains necessary nested | record | [User.AnyTypeExceptNullPropBoxedList](#anytypeexceptnullpropboxedlist)
boxed class to store validated List payloads | | record | [User.AnyTypeExceptNullPropBoxedMap](#anytypeexceptnullpropboxedmap)
boxed class to store validated Map payloads | | static class | [User.AnyTypeExceptNullProp](#anytypeexceptnullprop)
schema class | -| sealed interface | [User.NotBoxed](#notboxed)
abstract sealed validated payload class | +| sealed interface | [User.NotBoxed](#notboxed)
sealed interface for validated payloads | | record | [User.NotBoxedVoid](#notboxedvoid)
boxed class to store validated null payloads | | static class | [User.Not](#not)
schema class | -| sealed interface | [User.AnyTypePropBoxed](#anytypepropboxed)
abstract sealed validated payload class | +| sealed interface | [User.AnyTypePropBoxed](#anytypepropboxed)
sealed interface for validated payloads | | record | [User.AnyTypePropBoxedVoid](#anytypepropboxedvoid)
boxed class to store validated null payloads | | record | [User.AnyTypePropBoxedBoolean](#anytypepropboxedboolean)
boxed class to store validated boolean payloads | | record | [User.AnyTypePropBoxedNumber](#anytypepropboxednumber)
boxed class to store validated Number payloads | @@ -44,35 +44,35 @@ A class that contains necessary nested | record | [User.AnyTypePropBoxedList](#anytypepropboxedlist)
boxed class to store validated List payloads | | record | [User.AnyTypePropBoxedMap](#anytypepropboxedmap)
boxed class to store validated Map payloads | | static class | [User.AnyTypeProp](#anytypeprop)
schema class | -| sealed interface | [User.ObjectWithNoDeclaredPropsNullableBoxed](#objectwithnodeclaredpropsnullableboxed)
abstract sealed validated payload class | +| sealed interface | [User.ObjectWithNoDeclaredPropsNullableBoxed](#objectwithnodeclaredpropsnullableboxed)
sealed interface for validated payloads | | record | [User.ObjectWithNoDeclaredPropsNullableBoxedVoid](#objectwithnodeclaredpropsnullableboxedvoid)
boxed class to store validated null payloads | | record | [User.ObjectWithNoDeclaredPropsNullableBoxedMap](#objectwithnodeclaredpropsnullableboxedmap)
boxed class to store validated Map payloads | | static class | [User.ObjectWithNoDeclaredPropsNullable](#objectwithnodeclaredpropsnullable)
schema class | -| sealed interface | [User.ObjectWithNoDeclaredPropsBoxed](#objectwithnodeclaredpropsboxed)
abstract sealed validated payload class | +| sealed interface | [User.ObjectWithNoDeclaredPropsBoxed](#objectwithnodeclaredpropsboxed)
sealed interface for validated payloads | | record | [User.ObjectWithNoDeclaredPropsBoxedMap](#objectwithnodeclaredpropsboxedmap)
boxed class to store validated Map payloads | | static class | [User.ObjectWithNoDeclaredProps](#objectwithnodeclaredprops)
schema class | -| sealed interface | [User.UserStatusBoxed](#userstatusboxed)
abstract sealed validated payload class | +| sealed interface | [User.UserStatusBoxed](#userstatusboxed)
sealed interface for validated payloads | | record | [User.UserStatusBoxedNumber](#userstatusboxednumber)
boxed class to store validated Number payloads | | static class | [User.UserStatus](#userstatus)
schema class | -| sealed interface | [User.PhoneBoxed](#phoneboxed)
abstract sealed validated payload class | +| sealed interface | [User.PhoneBoxed](#phoneboxed)
sealed interface for validated payloads | | record | [User.PhoneBoxedString](#phoneboxedstring)
boxed class to store validated String payloads | | static class | [User.Phone](#phone)
schema class | -| sealed interface | [User.PasswordBoxed](#passwordboxed)
abstract sealed validated payload class | +| sealed interface | [User.PasswordBoxed](#passwordboxed)
sealed interface for validated payloads | | record | [User.PasswordBoxedString](#passwordboxedstring)
boxed class to store validated String payloads | | static class | [User.Password](#password)
schema class | -| sealed interface | [User.EmailBoxed](#emailboxed)
abstract sealed validated payload class | +| sealed interface | [User.EmailBoxed](#emailboxed)
sealed interface for validated payloads | | record | [User.EmailBoxedString](#emailboxedstring)
boxed class to store validated String payloads | | static class | [User.Email](#email)
schema class | -| sealed interface | [User.LastNameBoxed](#lastnameboxed)
abstract sealed validated payload class | +| sealed interface | [User.LastNameBoxed](#lastnameboxed)
sealed interface for validated payloads | | record | [User.LastNameBoxedString](#lastnameboxedstring)
boxed class to store validated String payloads | | static class | [User.LastName](#lastname)
schema class | -| sealed interface | [User.FirstNameBoxed](#firstnameboxed)
abstract sealed validated payload class | +| sealed interface | [User.FirstNameBoxed](#firstnameboxed)
sealed interface for validated payloads | | record | [User.FirstNameBoxedString](#firstnameboxedstring)
boxed class to store validated String payloads | | static class | [User.FirstName](#firstname)
schema class | -| sealed interface | [User.UsernameBoxed](#usernameboxed)
abstract sealed validated payload class | +| sealed interface | [User.UsernameBoxed](#usernameboxed)
sealed interface for validated payloads | | record | [User.UsernameBoxedString](#usernameboxedstring)
boxed class to store validated String payloads | | static class | [User.Username](#username)
schema class | -| sealed interface | [User.IdBoxed](#idboxed)
abstract sealed validated payload class | +| sealed interface | [User.IdBoxed](#idboxed)
sealed interface for validated payloads | | record | [User.IdBoxedNumber](#idboxednumber)
boxed class to store validated Number payloads | | static class | [User.Id](#id)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/Whale.md b/samples/client/petstore/java/docs/components/schemas/Whale.md index 91de529c5bd..287514ff2c3 100644 --- a/samples/client/petstore/java/docs/components/schemas/Whale.md +++ b/samples/client/petstore/java/docs/components/schemas/Whale.md @@ -4,7 +4,7 @@ public class Whale
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,19 +13,19 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Whale.Whale1Boxed](#whale1boxed)
abstract sealed validated payload class | +| sealed interface | [Whale.Whale1Boxed](#whale1boxed)
sealed interface for validated payloads | | record | [Whale.Whale1BoxedMap](#whale1boxedmap)
boxed class to store validated Map payloads | | static class | [Whale.Whale1](#whale1)
schema class | | static class | [Whale.WhaleMapBuilder](#whalemapbuilder)
builder for Map payloads | | static class | [Whale.WhaleMap](#whalemap)
output class for Map payloads | -| sealed interface | [Whale.ClassNameBoxed](#classnameboxed)
abstract sealed validated payload class | +| sealed interface | [Whale.ClassNameBoxed](#classnameboxed)
sealed interface for validated payloads | | record | [Whale.ClassNameBoxedString](#classnameboxedstring)
boxed class to store validated String payloads | | static class | [Whale.ClassName](#classname)
schema class | | enum | [Whale.StringClassNameEnums](#stringclassnameenums)
String enum | -| sealed interface | [Whale.HasTeethBoxed](#hasteethboxed)
abstract sealed validated payload class | +| sealed interface | [Whale.HasTeethBoxed](#hasteethboxed)
sealed interface for validated payloads | | record | [Whale.HasTeethBoxedBoolean](#hasteethboxedboolean)
boxed class to store validated boolean payloads | | static class | [Whale.HasTeeth](#hasteeth)
schema class | -| sealed interface | [Whale.HasBaleenBoxed](#hasbaleenboxed)
abstract sealed validated payload class | +| sealed interface | [Whale.HasBaleenBoxed](#hasbaleenboxed)
sealed interface for validated payloads | | record | [Whale.HasBaleenBoxedBoolean](#hasbaleenboxedboolean)
boxed class to store validated boolean payloads | | static class | [Whale.HasBaleen](#hasbaleen)
schema class | diff --git a/samples/client/petstore/java/docs/components/schemas/Zebra.md b/samples/client/petstore/java/docs/components/schemas/Zebra.md index 48048773866..e3750eec3b8 100644 --- a/samples/client/petstore/java/docs/components/schemas/Zebra.md +++ b/samples/client/petstore/java/docs/components/schemas/Zebra.md @@ -4,7 +4,7 @@ public class Zebra
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,20 +13,20 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Zebra.Zebra1Boxed](#zebra1boxed)
abstract sealed validated payload class | +| sealed interface | [Zebra.Zebra1Boxed](#zebra1boxed)
sealed interface for validated payloads | | record | [Zebra.Zebra1BoxedMap](#zebra1boxedmap)
boxed class to store validated Map payloads | | static class | [Zebra.Zebra1](#zebra1)
schema class | | static class | [Zebra.ZebraMapBuilder](#zebramapbuilder)
builder for Map payloads | | static class | [Zebra.ZebraMap](#zebramap)
output class for Map payloads | -| sealed interface | [Zebra.ClassNameBoxed](#classnameboxed)
abstract sealed validated payload class | +| sealed interface | [Zebra.ClassNameBoxed](#classnameboxed)
sealed interface for validated payloads | | record | [Zebra.ClassNameBoxedString](#classnameboxedstring)
boxed class to store validated String payloads | | static class | [Zebra.ClassName](#classname)
schema class | | enum | [Zebra.StringClassNameEnums](#stringclassnameenums)
String enum | -| sealed interface | [Zebra.TypeBoxed](#typeboxed)
abstract sealed validated payload class | +| sealed interface | [Zebra.TypeBoxed](#typeboxed)
sealed interface for validated payloads | | record | [Zebra.TypeBoxedString](#typeboxedstring)
boxed class to store validated String payloads | | static class | [Zebra.Type](#type)
schema class | | enum | [Zebra.StringTypeEnums](#stringtypeenums)
String enum | -| sealed interface | [Zebra.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| sealed interface | [Zebra.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | | record | [Zebra.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | | record | [Zebra.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | | record | [Zebra.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md index 1bc0d6e8e15..0a219ca9fad 100644 --- a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [Client1](../../../../../../../../../components/schemas/Client.md#client A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.md index 9310f1ac75f..9ff90e0bc35 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.md @@ -3,13 +3,13 @@ public class Schema0
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | | record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Schema01](#schema01)
schema class | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md index fadcf5bbf58..05f2b572d37 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md @@ -3,14 +3,14 @@ public class Schema1
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
abstract sealed validated payload class | +| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
sealed interface for validated payloads | | record | [Schema1.Schema11BoxedString](#schema11boxedstring)
boxed class to store validated String payloads | | static class | [Schema1.Schema11](#schema11)
schema class | | enum | [Schema1.StringSchemaEnums1](#stringschemaenums1)
String enum | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/parameters/parameter0/Schema0.md index 9310f1ac75f..9ff90e0bc35 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/parameters/parameter0/Schema0.md @@ -3,13 +3,13 @@ public class Schema0
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | | record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Schema01](#schema01)
schema class | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.md index c72c74d9bb5..e7aa6c85451 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.md @@ -3,14 +3,14 @@ public class PathParamSchema0
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [PathParamSchema0.PathParamSchema01Boxed](#pathparamschema01boxed)
abstract sealed validated payload class | +| sealed interface | [PathParamSchema0.PathParamSchema01Boxed](#pathparamschema01boxed)
sealed interface for validated payloads | | record | [PathParamSchema0.PathParamSchema01BoxedString](#pathparamschema01boxedstring)
boxed class to store validated String payloads | | static class | [PathParamSchema0.PathParamSchema01](#pathparamschema01)
schema class | | enum | [PathParamSchema0.StringPathParamSchemaEnums0](#stringpathparamschemaenums0)
String enum | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/parameters/parameter0/Schema0.md index 9310f1ac75f..9ff90e0bc35 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/parameters/parameter0/Schema0.md @@ -3,13 +3,13 @@ public class Schema0
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | | record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Schema01](#schema01)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter0/Schema0.md index 9310f1ac75f..9ff90e0bc35 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter0/Schema0.md @@ -3,13 +3,13 @@ public class Schema0
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | | record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Schema01](#schema01)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter1/Schema1.md index 76f9566751a..7a88894daa9 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter1/Schema1.md @@ -3,14 +3,14 @@ public class Schema1
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
abstract sealed validated payload class | +| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
sealed interface for validated payloads | | record | [Schema1.Schema11BoxedString](#schema11boxedstring)
boxed class to store validated String payloads | | static class | [Schema1.Schema11](#schema11)
schema class | | enum | [Schema1.StringSchemaEnums1](#stringschemaenums1)
String enum | diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter2/Schema2.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter2/Schema2.md index 67c8384f2cd..440bb8ca283 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter2/Schema2.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter2/Schema2.md @@ -3,13 +3,13 @@ public class Schema2
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema2.Schema21Boxed](#schema21boxed)
abstract sealed validated payload class | +| sealed interface | [Schema2.Schema21Boxed](#schema21boxed)
sealed interface for validated payloads | | record | [Schema2.Schema21BoxedNumber](#schema21boxednumber)
boxed class to store validated Number payloads | | static class | [Schema2.Schema21](#schema21)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter3/Schema3.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter3/Schema3.md index 6e885952993..41d54a1d930 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter3/Schema3.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter3/Schema3.md @@ -3,13 +3,13 @@ public class Schema3
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema3.Schema31Boxed](#schema31boxed)
abstract sealed validated payload class | +| sealed interface | [Schema3.Schema31Boxed](#schema31boxed)
sealed interface for validated payloads | | record | [Schema3.Schema31BoxedString](#schema31boxedstring)
boxed class to store validated String payloads | | static class | [Schema3.Schema31](#schema31)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter4/Schema4.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter4/Schema4.md index 29bf707f196..a0a2551d43f 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter4/Schema4.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter4/Schema4.md @@ -3,14 +3,14 @@ public class Schema4
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema4.Schema41Boxed](#schema41boxed)
abstract sealed validated payload class | +| sealed interface | [Schema4.Schema41Boxed](#schema41boxed)
sealed interface for validated payloads | | record | [Schema4.Schema41BoxedString](#schema41boxedstring)
boxed class to store validated String payloads | | static class | [Schema4.Schema41](#schema41)
schema class | | enum | [Schema4.StringSchemaEnums4](#stringschemaenums4)
String enum | diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter5/Schema5.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter5/Schema5.md index 80617b15eb4..9611a34edb2 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter5/Schema5.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter5/Schema5.md @@ -3,13 +3,13 @@ public class Schema5
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema5.Schema51Boxed](#schema51boxed)
abstract sealed validated payload class | +| sealed interface | [Schema5.Schema51Boxed](#schema51boxed)
sealed interface for validated payloads | | record | [Schema5.Schema51BoxedNumber](#schema51boxednumber)
boxed class to store validated Number payloads | | static class | [Schema5.Schema51](#schema51)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter0/Schema0.md index a8fac1c63ca..1368daf90c2 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter0/Schema0.md @@ -3,7 +3,7 @@ public class Schema0
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,12 +12,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | | record | [Schema0.Schema01BoxedList](#schema01boxedlist)
boxed class to store validated List payloads | | static class | [Schema0.Schema01](#schema01)
schema class | | static class | [Schema0.SchemaListBuilder0](#schemalistbuilder0)
builder for List payloads | | static class | [Schema0.SchemaList0](#schemalist0)
output class for List payloads | -| sealed interface | [Schema0.Items0Boxed](#items0boxed)
abstract sealed validated payload class | +| sealed interface | [Schema0.Items0Boxed](#items0boxed)
sealed interface for validated payloads | | record | [Schema0.Items0BoxedString](#items0boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Items0](#items0)
schema class | | enum | [Schema0.StringItemsEnums0](#stringitemsenums0)
String enum | diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter1/Schema1.md index f85247c6822..1ac3fd696b3 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter1/Schema1.md @@ -3,14 +3,14 @@ public class Schema1
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
abstract sealed validated payload class | +| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
sealed interface for validated payloads | | record | [Schema1.Schema11BoxedString](#schema11boxedstring)
boxed class to store validated String payloads | | static class | [Schema1.Schema11](#schema11)
schema class | | enum | [Schema1.StringSchemaEnums1](#stringschemaenums1)
String enum | diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter2/Schema2.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter2/Schema2.md index beeacda6560..b2b467e3a74 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter2/Schema2.md +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter2/Schema2.md @@ -3,7 +3,7 @@ public class Schema2
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,12 +12,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Schema2.Schema21Boxed](#schema21boxed)
abstract sealed validated payload class | +| sealed interface | [Schema2.Schema21Boxed](#schema21boxed)
sealed interface for validated payloads | | record | [Schema2.Schema21BoxedList](#schema21boxedlist)
boxed class to store validated List payloads | | static class | [Schema2.Schema21](#schema21)
schema class | | static class | [Schema2.SchemaListBuilder2](#schemalistbuilder2)
builder for List payloads | | static class | [Schema2.SchemaList2](#schemalist2)
output class for List payloads | -| sealed interface | [Schema2.Items2Boxed](#items2boxed)
abstract sealed validated payload class | +| sealed interface | [Schema2.Items2Boxed](#items2boxed)
sealed interface for validated payloads | | record | [Schema2.Items2BoxedString](#items2boxedstring)
boxed class to store validated String payloads | | static class | [Schema2.Items2](#items2)
schema class | | enum | [Schema2.StringItemsEnums2](#stringitemsenums2)
String enum | diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter3/Schema3.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter3/Schema3.md index 79a92c2932b..16752518f19 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter3/Schema3.md +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter3/Schema3.md @@ -3,14 +3,14 @@ public class Schema3
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema3.Schema31Boxed](#schema31boxed)
abstract sealed validated payload class | +| sealed interface | [Schema3.Schema31Boxed](#schema31boxed)
sealed interface for validated payloads | | record | [Schema3.Schema31BoxedString](#schema31boxedstring)
boxed class to store validated String payloads | | static class | [Schema3.Schema31](#schema31)
schema class | | enum | [Schema3.StringSchemaEnums3](#stringschemaenums3)
String enum | diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter4/Schema4.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter4/Schema4.md index bbf9abca49b..2abcee63be4 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter4/Schema4.md +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter4/Schema4.md @@ -3,14 +3,14 @@ public class Schema4
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema4.Schema41Boxed](#schema41boxed)
abstract sealed validated payload class | +| sealed interface | [Schema4.Schema41Boxed](#schema41boxed)
sealed interface for validated payloads | | record | [Schema4.Schema41BoxedNumber](#schema41boxednumber)
boxed class to store validated Number payloads | | static class | [Schema4.Schema41](#schema41)
schema class | | enum | [Schema4.IntegerSchemaEnums4](#integerschemaenums4)
Integer enum | diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter5/Schema5.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter5/Schema5.md index f563d4001bf..87338d58142 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter5/Schema5.md +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter5/Schema5.md @@ -3,14 +3,14 @@ public class Schema5
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema5.Schema51Boxed](#schema51boxed)
abstract sealed validated payload class | +| sealed interface | [Schema5.Schema51Boxed](#schema51boxed)
sealed interface for validated payloads | | record | [Schema5.Schema51BoxedNumber](#schema51boxednumber)
boxed class to store validated Number payloads | | static class | [Schema5.Schema51](#schema51)
schema class | | enum | [Schema5.DoubleSchemaEnums5](#doubleschemaenums5)
Double enum | diff --git a/samples/client/petstore/java/docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md b/samples/client/petstore/java/docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md index 88302e5657d..fa9ddb49360 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md +++ b/samples/client/petstore/java/docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md @@ -3,7 +3,7 @@ public class ApplicationxwwwformurlencodedSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -14,21 +14,21 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed)
sealed interface for validated payloads | | record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](#applicationxwwwformurlencodedschema1)
schema class | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder)
builder for Map payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap)
output class for Map payloads | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringBoxed](#applicationxwwwformurlencodedenumformstringboxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringBoxed](#applicationxwwwformurlencodedenumformstringboxed)
sealed interface for validated payloads | | record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringBoxedString](#applicationxwwwformurlencodedenumformstringboxedstring)
boxed class to store validated String payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormString](#applicationxwwwformurlencodedenumformstring)
schema class | | enum | [ApplicationxwwwformurlencodedSchema.StringApplicationxwwwformurlencodedEnumFormStringEnums](#stringapplicationxwwwformurlencodedenumformstringenums)
String enum | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringArrayBoxed](#applicationxwwwformurlencodedenumformstringarrayboxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringArrayBoxed](#applicationxwwwformurlencodedenumformstringarrayboxed)
sealed interface for validated payloads | | record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList](#applicationxwwwformurlencodedenumformstringarrayboxedlist)
boxed class to store validated List payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringArray](#applicationxwwwformurlencodedenumformstringarray)
schema class | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringArrayListBuilder](#applicationxwwwformurlencodedenumformstringarraylistbuilder)
builder for List payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringArrayList](#applicationxwwwformurlencodedenumformstringarraylist)
output class for List payloads | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedItemsBoxed](#applicationxwwwformurlencodeditemsboxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedItemsBoxed](#applicationxwwwformurlencodeditemsboxed)
sealed interface for validated payloads | | record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedItemsBoxedString](#applicationxwwwformurlencodeditemsboxedstring)
boxed class to store validated String payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedItems](#applicationxwwwformurlencodeditems)
schema class | | enum | [ApplicationxwwwformurlencodedSchema.StringApplicationxwwwformurlencodedItemsEnums](#stringapplicationxwwwformurlencodeditemsenums)
String enum | diff --git a/samples/client/petstore/java/docs/paths/fake/get/responses/Code404Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fake/get/responses/Code404Response/content/applicationjson/ApplicationjsonSchema.md index 64fd823405a..3ce84c1630e 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/responses/Code404Response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fake/get/responses/Code404Response/content/applicationjson/ApplicationjsonSchema.md @@ -3,13 +3,13 @@ public class ApplicationjsonSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fake/patch/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fake/patch/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md index 1bc0d6e8e15..0a219ca9fad 100644 --- a/samples/client/petstore/java/docs/paths/fake/patch/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fake/patch/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [Client1](../../../../../../../../../components/schemas/Client.md#client A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md b/samples/client/petstore/java/docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md index e0755d53ae5..210e7231695 100644 --- a/samples/client/petstore/java/docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md +++ b/samples/client/petstore/java/docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md @@ -3,7 +3,7 @@ public class ApplicationxwwwformurlencodedSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -11,50 +11,50 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed)
sealed interface for validated payloads | | record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](#applicationxwwwformurlencodedschema1)
schema class | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder)
builder for Map payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap)
output class for Map payloads | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedCallbackBoxed](#applicationxwwwformurlencodedcallbackboxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedCallbackBoxed](#applicationxwwwformurlencodedcallbackboxed)
sealed interface for validated payloads | | record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedCallbackBoxedString](#applicationxwwwformurlencodedcallbackboxedstring)
boxed class to store validated String payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedCallback](#applicationxwwwformurlencodedcallback)
schema class | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPasswordBoxed](#applicationxwwwformurlencodedpasswordboxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPasswordBoxed](#applicationxwwwformurlencodedpasswordboxed)
sealed interface for validated payloads | | record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPasswordBoxedString](#applicationxwwwformurlencodedpasswordboxedstring)
boxed class to store validated String payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPassword](#applicationxwwwformurlencodedpassword)
schema class | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDateTimeBoxed](#applicationxwwwformurlencodeddatetimeboxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDateTimeBoxed](#applicationxwwwformurlencodeddatetimeboxed)
sealed interface for validated payloads | | record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDateTimeBoxedString](#applicationxwwwformurlencodeddatetimeboxedstring)
boxed class to store validated String payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDateTime](#applicationxwwwformurlencodeddatetime)
schema class | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDateBoxed](#applicationxwwwformurlencodeddateboxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDateBoxed](#applicationxwwwformurlencodeddateboxed)
sealed interface for validated payloads | | record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDateBoxedString](#applicationxwwwformurlencodeddateboxedstring)
boxed class to store validated String payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDate](#applicationxwwwformurlencodeddate)
schema class | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedBinaryBoxed](#applicationxwwwformurlencodedbinaryboxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedBinaryBoxed](#applicationxwwwformurlencodedbinaryboxed)
sealed interface for validated payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedBinary](#applicationxwwwformurlencodedbinary)
schema class | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedByteBoxed](#applicationxwwwformurlencodedbyteboxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedByteBoxed](#applicationxwwwformurlencodedbyteboxed)
sealed interface for validated payloads | | record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedByteBoxedString](#applicationxwwwformurlencodedbyteboxedstring)
boxed class to store validated String payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedByte](#applicationxwwwformurlencodedbyte)
schema class | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed](#applicationxwwwformurlencodedpatternwithoutdelimiterboxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed](#applicationxwwwformurlencodedpatternwithoutdelimiterboxed)
sealed interface for validated payloads | | record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString](#applicationxwwwformurlencodedpatternwithoutdelimiterboxedstring)
boxed class to store validated String payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPatternWithoutDelimiter](#applicationxwwwformurlencodedpatternwithoutdelimiter)
schema class | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedStringBoxed](#applicationxwwwformurlencodedstringboxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedStringBoxed](#applicationxwwwformurlencodedstringboxed)
sealed interface for validated payloads | | record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedStringBoxedString](#applicationxwwwformurlencodedstringboxedstring)
boxed class to store validated String payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedString](#applicationxwwwformurlencodedstring)
schema class | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDoubleBoxed](#applicationxwwwformurlencodeddoubleboxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDoubleBoxed](#applicationxwwwformurlencodeddoubleboxed)
sealed interface for validated payloads | | record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDoubleBoxedNumber](#applicationxwwwformurlencodeddoubleboxednumber)
boxed class to store validated Number payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDouble](#applicationxwwwformurlencodeddouble)
schema class | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedFloatBoxed](#applicationxwwwformurlencodedfloatboxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedFloatBoxed](#applicationxwwwformurlencodedfloatboxed)
sealed interface for validated payloads | | record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedFloatBoxedNumber](#applicationxwwwformurlencodedfloatboxednumber)
boxed class to store validated Number payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedFloat](#applicationxwwwformurlencodedfloat)
schema class | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedNumberBoxed](#applicationxwwwformurlencodednumberboxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedNumberBoxed](#applicationxwwwformurlencodednumberboxed)
sealed interface for validated payloads | | record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedNumberBoxedNumber](#applicationxwwwformurlencodednumberboxednumber)
boxed class to store validated Number payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedNumber](#applicationxwwwformurlencodednumber)
schema class | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInt64Boxed](#applicationxwwwformurlencodedint64boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInt64Boxed](#applicationxwwwformurlencodedint64boxed)
sealed interface for validated payloads | | record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInt64BoxedNumber](#applicationxwwwformurlencodedint64boxednumber)
boxed class to store validated Number payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInt64](#applicationxwwwformurlencodedint64)
schema class | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInt32Boxed](#applicationxwwwformurlencodedint32boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInt32Boxed](#applicationxwwwformurlencodedint32boxed)
sealed interface for validated payloads | | record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInt32BoxedNumber](#applicationxwwwformurlencodedint32boxednumber)
boxed class to store validated Number payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInt32](#applicationxwwwformurlencodedint32)
schema class | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedIntegerBoxed](#applicationxwwwformurlencodedintegerboxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedIntegerBoxed](#applicationxwwwformurlencodedintegerboxed)
sealed interface for validated payloads | | record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedIntegerBoxedNumber](#applicationxwwwformurlencodedintegerboxednumber)
boxed class to store validated Number payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInteger](#applicationxwwwformurlencodedinteger)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.md index db11fc0416b..3c5d3360d21 100644 --- a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [AdditionalPropertiesWithArrayOfEnums1](../../../../../../../components/ A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md index 0aeccbe12bf..f29d75df1fc 100644 --- a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [AdditionalPropertiesWithArrayOfEnums1](../../../../../../../../../compo A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.md index 21dabbb3675..a3c6ea7cd01 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [FileSchemaTestClass1](../../../../../../../components/schemas/FileSchem A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md index 9310f1ac75f..9ff90e0bc35 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md @@ -3,13 +3,13 @@ public class Schema0
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | | record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Schema01](#schema01)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.md index 6c2b5617631..3433b43b8a4 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [User1](../../../../../../../components/schemas/User.md#user) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.md index 9310f1ac75f..9ff90e0bc35 100644 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.md @@ -3,13 +3,13 @@ public class Schema0
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | | record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Schema01](#schema01)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md index 7b37ff278b7..63ec3a884fc 100644 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md @@ -3,13 +3,13 @@ public class Schema1
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
abstract sealed validated payload class | +| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
sealed interface for validated payloads | | record | [Schema1.Schema11BoxedString](#schema11boxedstring)
boxed class to store validated String payloads | | static class | [Schema1.Schema11](#schema11)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md index 5080368d390..4a7d57953eb 100644 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md @@ -3,13 +3,13 @@ public class Schema2
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema2.Schema21Boxed](#schema21boxed)
abstract sealed validated payload class | +| sealed interface | [Schema2.Schema21Boxed](#schema21boxed)
sealed interface for validated payloads | | record | [Schema2.Schema21BoxedString](#schema21boxedstring)
boxed class to store validated String payloads | | static class | [Schema2.Schema21](#schema21)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md index 1bc0d6e8e15..0a219ca9fad 100644 --- a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [Client1](../../../../../../../../../components/schemas/Client.md#client A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.md index 9310f1ac75f..9ff90e0bc35 100644 --- a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.md @@ -3,13 +3,13 @@ public class Schema0
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | | record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Schema01](#schema01)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakehealth/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakehealth/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md index e7211f0c470..ff3de49a907 100644 --- a/samples/client/petstore/java/docs/paths/fakehealth/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakehealth/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [HealthCheckResult1](../../../../../../../../../components/schemas/Healt A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index efeac7a5fcf..f6063eadb5e 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -3,7 +3,7 @@ public class ApplicationjsonSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -11,12 +11,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | | static class | [ApplicationjsonSchema.ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder)
builder for Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchemaMap](#applicationjsonschemamap)
output class for Map payloads | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonAdditionalPropertiesBoxed](#applicationjsonadditionalpropertiesboxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonAdditionalPropertiesBoxed](#applicationjsonadditionalpropertiesboxed)
sealed interface for validated payloads | | record | [ApplicationjsonSchema.ApplicationjsonAdditionalPropertiesBoxedString](#applicationjsonadditionalpropertiesboxedstring)
boxed class to store validated String payloads | | static class | [ApplicationjsonSchema.ApplicationjsonAdditionalProperties](#applicationjsonadditionalproperties)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md index d7aa9ed1d3c..f2faa251a6c 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md @@ -3,13 +3,13 @@ public class Schema0
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | | record | [Schema0.Schema01BoxedVoid](#schema01boxedvoid)
boxed class to store validated null payloads | | record | [Schema0.Schema01BoxedBoolean](#schema01boxedboolean)
boxed class to store validated boolean payloads | | record | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | @@ -17,7 +17,7 @@ A class that contains necessary nested | record | [Schema0.Schema01BoxedList](#schema01boxedlist)
boxed class to store validated List payloads | | record | [Schema0.Schema01BoxedMap](#schema01boxedmap)
boxed class to store validated Map payloads | | static class | [Schema0.Schema01](#schema01)
schema class | -| sealed interface | [Schema0.Schema00Boxed](#schema00boxed)
abstract sealed validated payload class | +| sealed interface | [Schema0.Schema00Boxed](#schema00boxed)
sealed interface for validated payloads | | record | [Schema0.Schema00BoxedString](#schema00boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Schema00](#schema00)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md index 198a6029829..519f6e4249e 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md @@ -3,7 +3,7 @@ public class Schema1
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -11,12 +11,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
abstract sealed validated payload class | +| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
sealed interface for validated payloads | | record | [Schema1.Schema11BoxedMap](#schema11boxedmap)
boxed class to store validated Map payloads | | static class | [Schema1.Schema11](#schema11)
schema class | | static class | [Schema1.SchemaMapBuilder1](#schemamapbuilder1)
builder for Map payloads | | static class | [Schema1.SchemaMap1](#schemamap1)
output class for Map payloads | -| sealed interface | [Schema1.SomeProp1Boxed](#someprop1boxed)
abstract sealed validated payload class | +| sealed interface | [Schema1.SomeProp1Boxed](#someprop1boxed)
sealed interface for validated payloads | | record | [Schema1.SomeProp1BoxedVoid](#someprop1boxedvoid)
boxed class to store validated null payloads | | record | [Schema1.SomeProp1BoxedBoolean](#someprop1boxedboolean)
boxed class to store validated boolean payloads | | record | [Schema1.SomeProp1BoxedNumber](#someprop1boxednumber)
boxed class to store validated Number payloads | @@ -24,7 +24,7 @@ A class that contains necessary nested | record | [Schema1.SomeProp1BoxedList](#someprop1boxedlist)
boxed class to store validated List payloads | | record | [Schema1.SomeProp1BoxedMap](#someprop1boxedmap)
boxed class to store validated Map payloads | | static class | [Schema1.SomeProp1](#someprop1)
schema class | -| sealed interface | [Schema1.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| sealed interface | [Schema1.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | | record | [Schema1.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | | static class | [Schema1.Schema01](#schema01)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index 0f9ad58f4f2..bc425ecb794 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -3,13 +3,13 @@ public class ApplicationjsonSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | @@ -17,7 +17,7 @@ A class that contains necessary nested | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | -| sealed interface | [ApplicationjsonSchema.Applicationjson0Boxed](#applicationjson0boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationjsonSchema.Applicationjson0Boxed](#applicationjson0boxed)
sealed interface for validated payloads | | record | [ApplicationjsonSchema.Applicationjson0BoxedString](#applicationjson0boxedstring)
boxed class to store validated String payloads | | static class | [ApplicationjsonSchema.Applicationjson0](#applicationjson0)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md index 1193ca3c9a3..f6ec53a8044 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -3,7 +3,7 @@ public class MultipartformdataSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -11,12 +11,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
abstract sealed validated payload class | +| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
sealed interface for validated payloads | | record | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | | static class | [MultipartformdataSchema.MultipartformdataSchema1](#multipartformdataschema1)
schema class | | static class | [MultipartformdataSchema.MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder)
builder for Map payloads | | static class | [MultipartformdataSchema.MultipartformdataSchemaMap](#multipartformdataschemamap)
output class for Map payloads | -| sealed interface | [MultipartformdataSchema.MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed)
abstract sealed validated payload class | +| sealed interface | [MultipartformdataSchema.MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed)
sealed interface for validated payloads | | record | [MultipartformdataSchema.MultipartformdataSomePropBoxedVoid](#multipartformdatasomepropboxedvoid)
boxed class to store validated null payloads | | record | [MultipartformdataSchema.MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean)
boxed class to store validated boolean payloads | | record | [MultipartformdataSchema.MultipartformdataSomePropBoxedNumber](#multipartformdatasomepropboxednumber)
boxed class to store validated Number payloads | @@ -24,7 +24,7 @@ A class that contains necessary nested | record | [MultipartformdataSchema.MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist)
boxed class to store validated List payloads | | record | [MultipartformdataSchema.MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap)
boxed class to store validated Map payloads | | static class | [MultipartformdataSchema.MultipartformdataSomeProp](#multipartformdatasomeprop)
schema class | -| sealed interface | [MultipartformdataSchema.Multipartformdata0Boxed](#multipartformdata0boxed)
abstract sealed validated payload class | +| sealed interface | [MultipartformdataSchema.Multipartformdata0Boxed](#multipartformdata0boxed)
sealed interface for validated payloads | | record | [MultipartformdataSchema.Multipartformdata0BoxedString](#multipartformdata0boxedstring)
boxed class to store validated String payloads | | static class | [MultipartformdataSchema.Multipartformdata0](#multipartformdata0)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md index 0f9ad58f4f2..bc425ecb794 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -3,13 +3,13 @@ public class ApplicationjsonSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | @@ -17,7 +17,7 @@ A class that contains necessary nested | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | -| sealed interface | [ApplicationjsonSchema.Applicationjson0Boxed](#applicationjson0boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationjsonSchema.Applicationjson0Boxed](#applicationjson0boxed)
sealed interface for validated payloads | | record | [ApplicationjsonSchema.Applicationjson0BoxedString](#applicationjson0boxedstring)
boxed class to store validated String payloads | | static class | [ApplicationjsonSchema.Applicationjson0](#applicationjson0)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Code200Response/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Code200Response/content/multipartformdata/MultipartformdataSchema.md index 1193ca3c9a3..f6ec53a8044 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Code200Response/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Code200Response/content/multipartformdata/MultipartformdataSchema.md @@ -3,7 +3,7 @@ public class MultipartformdataSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -11,12 +11,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
abstract sealed validated payload class | +| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
sealed interface for validated payloads | | record | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | | static class | [MultipartformdataSchema.MultipartformdataSchema1](#multipartformdataschema1)
schema class | | static class | [MultipartformdataSchema.MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder)
builder for Map payloads | | static class | [MultipartformdataSchema.MultipartformdataSchemaMap](#multipartformdataschemamap)
output class for Map payloads | -| sealed interface | [MultipartformdataSchema.MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed)
abstract sealed validated payload class | +| sealed interface | [MultipartformdataSchema.MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed)
sealed interface for validated payloads | | record | [MultipartformdataSchema.MultipartformdataSomePropBoxedVoid](#multipartformdatasomepropboxedvoid)
boxed class to store validated null payloads | | record | [MultipartformdataSchema.MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean)
boxed class to store validated boolean payloads | | record | [MultipartformdataSchema.MultipartformdataSomePropBoxedNumber](#multipartformdatasomepropboxednumber)
boxed class to store validated Number payloads | @@ -24,7 +24,7 @@ A class that contains necessary nested | record | [MultipartformdataSchema.MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist)
boxed class to store validated List payloads | | record | [MultipartformdataSchema.MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap)
boxed class to store validated Map payloads | | static class | [MultipartformdataSchema.MultipartformdataSomeProp](#multipartformdatasomeprop)
schema class | -| sealed interface | [MultipartformdataSchema.Multipartformdata0Boxed](#multipartformdata0boxed)
abstract sealed validated payload class | +| sealed interface | [MultipartformdataSchema.Multipartformdata0Boxed](#multipartformdata0boxed)
sealed interface for validated payloads | | record | [MultipartformdataSchema.Multipartformdata0BoxedString](#multipartformdata0boxedstring)
boxed class to store validated String payloads | | static class | [MultipartformdataSchema.Multipartformdata0](#multipartformdata0)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md b/samples/client/petstore/java/docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md index 19ba2769f73..daf46a40db5 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md +++ b/samples/client/petstore/java/docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md @@ -3,7 +3,7 @@ public class ApplicationxwwwformurlencodedSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -11,15 +11,15 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed)
sealed interface for validated payloads | | record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](#applicationxwwwformurlencodedschema1)
schema class | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder)
builder for Map payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap)
output class for Map payloads | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedParam2Boxed](#applicationxwwwformurlencodedparam2boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedParam2Boxed](#applicationxwwwformurlencodedparam2boxed)
sealed interface for validated payloads | | record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedParam2BoxedString](#applicationxwwwformurlencodedparam2boxedstring)
boxed class to store validated String payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedParam2](#applicationxwwwformurlencodedparam2)
schema class | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedParamBoxed](#applicationxwwwformurlencodedparamboxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedParamBoxed](#applicationxwwwformurlencodedparamboxed)
sealed interface for validated payloads | | record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedParamBoxedString](#applicationxwwwformurlencodedparamboxedstring)
boxed class to store validated String payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedParam](#applicationxwwwformurlencodedparam)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.md b/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.md index 662d7b7aab8..d1984604169 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.md @@ -4,7 +4,7 @@ extends [JSONPatchRequest1](../../../../../../../components/schemas/JSONPatchReq A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md index c1e19a793a6..1465105b55d 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md +++ b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md @@ -3,13 +3,13 @@ public class Applicationjsoncharsetutf8Schema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed)
abstract sealed validated payload class | +| sealed interface | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed)
sealed interface for validated payloads | | record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedVoid](#applicationjsoncharsetutf8schema1boxedvoid)
boxed class to store validated null payloads | | record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedBoolean](#applicationjsoncharsetutf8schema1boxedboolean)
boxed class to store validated boolean payloads | | record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedNumber](#applicationjsoncharsetutf8schema1boxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/Code200Response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/Code200Response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md index c1e19a793a6..1465105b55d 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/Code200Response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md +++ b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/Code200Response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md @@ -3,13 +3,13 @@ public class Applicationjsoncharsetutf8Schema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed)
abstract sealed validated payload class | +| sealed interface | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed)
sealed interface for validated payloads | | record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedVoid](#applicationjsoncharsetutf8schema1boxedvoid)
boxed class to store validated null payloads | | record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedBoolean](#applicationjsoncharsetutf8schema1boxedboolean)
boxed class to store validated boolean payloads | | record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedNumber](#applicationjsoncharsetutf8schema1boxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index 99e4e5f8d2e..a6b2289a5c2 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -3,7 +3,7 @@ public class ApplicationjsonSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -11,12 +11,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | | static class | [ApplicationjsonSchema.ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder)
builder for Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchemaMap](#applicationjsonschemamap)
output class for Map payloads | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonABoxed](#applicationjsonaboxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonABoxed](#applicationjsonaboxed)
sealed interface for validated payloads | | record | [ApplicationjsonSchema.ApplicationjsonABoxedString](#applicationjsonaboxedstring)
boxed class to store validated String payloads | | static class | [ApplicationjsonSchema.ApplicationjsonA](#applicationjsona)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md index d205479b899..6e389170b4b 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -3,7 +3,7 @@ public class MultipartformdataSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -11,12 +11,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
abstract sealed validated payload class | +| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
sealed interface for validated payloads | | record | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | | static class | [MultipartformdataSchema.MultipartformdataSchema1](#multipartformdataschema1)
schema class | | static class | [MultipartformdataSchema.MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder)
builder for Map payloads | | static class | [MultipartformdataSchema.MultipartformdataSchemaMap](#multipartformdataschemamap)
output class for Map payloads | -| sealed interface | [MultipartformdataSchema.MultipartformdataBBoxed](#multipartformdatabboxed)
abstract sealed validated payload class | +| sealed interface | [MultipartformdataSchema.MultipartformdataBBoxed](#multipartformdatabboxed)
sealed interface for validated payloads | | record | [MultipartformdataSchema.MultipartformdataBBoxedString](#multipartformdatabboxedstring)
boxed class to store validated String payloads | | static class | [MultipartformdataSchema.MultipartformdataB](#multipartformdatab)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md index 122e5886047..98eb062fdd7 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -3,13 +3,13 @@ public class ApplicationjsonSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md index 122e5886047..98eb062fdd7 100644 --- a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -3,13 +3,13 @@ public class ApplicationjsonSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code202Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code202Response/content/applicationjson/ApplicationjsonSchema.md index 122e5886047..98eb062fdd7 100644 --- a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code202Response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code202Response/content/applicationjson/ApplicationjsonSchema.md @@ -3,13 +3,13 @@ public class ApplicationjsonSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md index 122e5886047..98eb062fdd7 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -3,13 +3,13 @@ public class ApplicationjsonSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md index 5bd67336ff4..2d363bd32b7 100644 --- a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md @@ -3,7 +3,7 @@ public class Schema0
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -11,12 +11,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | | record | [Schema0.Schema01BoxedMap](#schema01boxedmap)
boxed class to store validated Map payloads | | static class | [Schema0.Schema01](#schema01)
schema class | | static class | [Schema0.SchemaMapBuilder0](#schemamapbuilder0)
builder for Map payloads | | static class | [Schema0.SchemaMap0](#schemamap0)
output class for Map payloads | -| sealed interface | [Schema0.Keyword0Boxed](#keyword0boxed)
abstract sealed validated payload class | +| sealed interface | [Schema0.Keyword0Boxed](#keyword0boxed)
sealed interface for validated payloads | | record | [Schema0.Keyword0BoxedString](#keyword0boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Keyword0](#keyword0)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.md index 9310f1ac75f..9ff90e0bc35 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.md @@ -3,13 +3,13 @@ public class Schema0
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | | record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Schema01](#schema01)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.md index 7b37ff278b7..63ec3a884fc 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.md @@ -3,13 +3,13 @@ public class Schema1
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
abstract sealed validated payload class | +| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
sealed interface for validated payloads | | record | [Schema1.Schema11BoxedString](#schema11boxedstring)
boxed class to store validated String payloads | | static class | [Schema1.Schema11](#schema11)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.md index 641c502d7e5..f2313e921f9 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.md @@ -3,13 +3,13 @@ public class Schema10
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema10.Schema101Boxed](#schema101boxed)
abstract sealed validated payload class | +| sealed interface | [Schema10.Schema101Boxed](#schema101boxed)
sealed interface for validated payloads | | record | [Schema10.Schema101BoxedString](#schema101boxedstring)
boxed class to store validated String payloads | | static class | [Schema10.Schema101](#schema101)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.md index b940da5aecf..c309cbd677b 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.md @@ -3,13 +3,13 @@ public class Schema11
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema11.Schema111Boxed](#schema111boxed)
abstract sealed validated payload class | +| sealed interface | [Schema11.Schema111Boxed](#schema111boxed)
sealed interface for validated payloads | | record | [Schema11.Schema111BoxedString](#schema111boxedstring)
boxed class to store validated String payloads | | static class | [Schema11.Schema111](#schema111)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.md index 17c9ee8646c..fa969e69734 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.md @@ -3,13 +3,13 @@ public class Schema12
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema12.Schema121Boxed](#schema121boxed)
abstract sealed validated payload class | +| sealed interface | [Schema12.Schema121Boxed](#schema121boxed)
sealed interface for validated payloads | | record | [Schema12.Schema121BoxedString](#schema121boxedstring)
boxed class to store validated String payloads | | static class | [Schema12.Schema121](#schema121)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.md index 33ac64c5b34..8b6ce934c35 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.md @@ -3,13 +3,13 @@ public class Schema13
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema13.Schema131Boxed](#schema131boxed)
abstract sealed validated payload class | +| sealed interface | [Schema13.Schema131Boxed](#schema131boxed)
sealed interface for validated payloads | | record | [Schema13.Schema131BoxedString](#schema131boxedstring)
boxed class to store validated String payloads | | static class | [Schema13.Schema131](#schema131)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.md index 5453caf859c..b6987c8c80f 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.md @@ -3,13 +3,13 @@ public class Schema14
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema14.Schema141Boxed](#schema141boxed)
abstract sealed validated payload class | +| sealed interface | [Schema14.Schema141Boxed](#schema141boxed)
sealed interface for validated payloads | | record | [Schema14.Schema141BoxedString](#schema141boxedstring)
boxed class to store validated String payloads | | static class | [Schema14.Schema141](#schema141)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.md index ee632011480..272a98b600d 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.md @@ -3,13 +3,13 @@ public class Schema15
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema15.Schema151Boxed](#schema151boxed)
abstract sealed validated payload class | +| sealed interface | [Schema15.Schema151Boxed](#schema151boxed)
sealed interface for validated payloads | | record | [Schema15.Schema151BoxedString](#schema151boxedstring)
boxed class to store validated String payloads | | static class | [Schema15.Schema151](#schema151)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.md index 3e6691ea9e8..059eeb943a7 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.md @@ -3,13 +3,13 @@ public class Schema16
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema16.Schema161Boxed](#schema161boxed)
abstract sealed validated payload class | +| sealed interface | [Schema16.Schema161Boxed](#schema161boxed)
sealed interface for validated payloads | | record | [Schema16.Schema161BoxedString](#schema161boxedstring)
boxed class to store validated String payloads | | static class | [Schema16.Schema161](#schema161)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.md index 3cddbd28728..4bf4ae7e510 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.md @@ -3,13 +3,13 @@ public class Schema17
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema17.Schema171Boxed](#schema171boxed)
abstract sealed validated payload class | +| sealed interface | [Schema17.Schema171Boxed](#schema171boxed)
sealed interface for validated payloads | | record | [Schema17.Schema171BoxedString](#schema171boxedstring)
boxed class to store validated String payloads | | static class | [Schema17.Schema171](#schema171)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.md index 76133db074f..962dca4cbb3 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.md @@ -3,13 +3,13 @@ public class Schema18
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema18.Schema181Boxed](#schema181boxed)
abstract sealed validated payload class | +| sealed interface | [Schema18.Schema181Boxed](#schema181boxed)
sealed interface for validated payloads | | record | [Schema18.Schema181BoxedString](#schema181boxedstring)
boxed class to store validated String payloads | | static class | [Schema18.Schema181](#schema181)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.md index 5080368d390..4a7d57953eb 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.md @@ -3,13 +3,13 @@ public class Schema2
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema2.Schema21Boxed](#schema21boxed)
abstract sealed validated payload class | +| sealed interface | [Schema2.Schema21Boxed](#schema21boxed)
sealed interface for validated payloads | | record | [Schema2.Schema21BoxedString](#schema21boxedstring)
boxed class to store validated String payloads | | static class | [Schema2.Schema21](#schema21)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.md index 6e885952993..41d54a1d930 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.md @@ -3,13 +3,13 @@ public class Schema3
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema3.Schema31Boxed](#schema31boxed)
abstract sealed validated payload class | +| sealed interface | [Schema3.Schema31Boxed](#schema31boxed)
sealed interface for validated payloads | | record | [Schema3.Schema31BoxedString](#schema31boxedstring)
boxed class to store validated String payloads | | static class | [Schema3.Schema31](#schema31)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.md index f2d10411f78..7bc2523d7af 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.md @@ -3,13 +3,13 @@ public class Schema4
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema4.Schema41Boxed](#schema41boxed)
abstract sealed validated payload class | +| sealed interface | [Schema4.Schema41Boxed](#schema41boxed)
sealed interface for validated payloads | | record | [Schema4.Schema41BoxedString](#schema41boxedstring)
boxed class to store validated String payloads | | static class | [Schema4.Schema41](#schema41)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.md index c043290c296..ff888c33afd 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.md @@ -3,13 +3,13 @@ public class Schema5
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema5.Schema51Boxed](#schema51boxed)
abstract sealed validated payload class | +| sealed interface | [Schema5.Schema51Boxed](#schema51boxed)
sealed interface for validated payloads | | record | [Schema5.Schema51BoxedString](#schema51boxedstring)
boxed class to store validated String payloads | | static class | [Schema5.Schema51](#schema51)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.md index 5e772c675e3..ba0b2fad7df 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.md @@ -3,13 +3,13 @@ public class Schema6
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema6.Schema61Boxed](#schema61boxed)
abstract sealed validated payload class | +| sealed interface | [Schema6.Schema61Boxed](#schema61boxed)
sealed interface for validated payloads | | record | [Schema6.Schema61BoxedString](#schema61boxedstring)
boxed class to store validated String payloads | | static class | [Schema6.Schema61](#schema61)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.md index d027599c8a5..a4e0ad0106a 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.md @@ -3,13 +3,13 @@ public class Schema7
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema7.Schema71Boxed](#schema71boxed)
abstract sealed validated payload class | +| sealed interface | [Schema7.Schema71Boxed](#schema71boxed)
sealed interface for validated payloads | | record | [Schema7.Schema71BoxedString](#schema71boxedstring)
boxed class to store validated String payloads | | static class | [Schema7.Schema71](#schema71)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.md index d348cca001b..63b13965df9 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.md @@ -3,13 +3,13 @@ public class Schema8
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema8.Schema81Boxed](#schema81boxed)
abstract sealed validated payload class | +| sealed interface | [Schema8.Schema81Boxed](#schema81boxed)
sealed interface for validated payloads | | record | [Schema8.Schema81BoxedString](#schema81boxedstring)
boxed class to store validated String payloads | | static class | [Schema8.Schema81](#schema81)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.md index 8537201e725..359fd15e9c6 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.md @@ -3,13 +3,13 @@ public class Schema9
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema9.Schema91Boxed](#schema91boxed)
abstract sealed validated payload class | +| sealed interface | [Schema9.Schema91Boxed](#schema91boxed)
sealed interface for validated payloads | | record | [Schema9.Schema91BoxedString](#schema91boxedstring)
boxed class to store validated String payloads | | static class | [Schema9.Schema91](#schema91)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index 122e5886047..98eb062fdd7 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -3,13 +3,13 @@ public class ApplicationjsonSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md index 122e5886047..98eb062fdd7 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -3,13 +3,13 @@ public class ApplicationjsonSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md index 143b9fe0d17..91a1e361623 100644 --- a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md +++ b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md @@ -3,13 +3,13 @@ public class ApplicationxpemfileSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1Boxed](#applicationxpemfileschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1Boxed](#applicationxpemfileschema1boxed)
sealed interface for validated payloads | | record | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1BoxedString](#applicationxpemfileschema1boxedstring)
boxed class to store validated String payloads | | static class | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1](#applicationxpemfileschema1)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/Code200Response/content/applicationxpemfile/ApplicationxpemfileSchema.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/Code200Response/content/applicationxpemfile/ApplicationxpemfileSchema.md index 143b9fe0d17..91a1e361623 100644 --- a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/Code200Response/content/applicationxpemfile/ApplicationxpemfileSchema.md +++ b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/Code200Response/content/applicationxpemfile/ApplicationxpemfileSchema.md @@ -3,13 +3,13 @@ public class ApplicationxpemfileSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1Boxed](#applicationxpemfileschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1Boxed](#applicationxpemfileschema1boxed)
sealed interface for validated payloads | | record | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1BoxedString](#applicationxpemfileschema1boxedstring)
boxed class to store validated String payloads | | static class | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1](#applicationxpemfileschema1)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.md index 2b8e20a095f..55e4e5cb238 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.md @@ -3,13 +3,13 @@ public class Schema0
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | | record | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | | static class | [Schema0.Schema01](#schema01)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md index 1ba8ce71878..e639984564c 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -3,7 +3,7 @@ public class MultipartformdataSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -11,14 +11,14 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
abstract sealed validated payload class | +| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
sealed interface for validated payloads | | record | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | | static class | [MultipartformdataSchema.MultipartformdataSchema1](#multipartformdataschema1)
schema class | | static class | [MultipartformdataSchema.MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder)
builder for Map payloads | | static class | [MultipartformdataSchema.MultipartformdataSchemaMap](#multipartformdataschemamap)
output class for Map payloads | -| sealed interface | [MultipartformdataSchema.MultipartformdataRequiredFileBoxed](#multipartformdatarequiredfileboxed)
abstract sealed validated payload class | +| sealed interface | [MultipartformdataSchema.MultipartformdataRequiredFileBoxed](#multipartformdatarequiredfileboxed)
sealed interface for validated payloads | | static class | [MultipartformdataSchema.MultipartformdataRequiredFile](#multipartformdatarequiredfile)
schema class | -| sealed interface | [MultipartformdataSchema.MultipartformdataAdditionalMetadataBoxed](#multipartformdataadditionalmetadataboxed)
abstract sealed validated payload class | +| sealed interface | [MultipartformdataSchema.MultipartformdataAdditionalMetadataBoxed](#multipartformdataadditionalmetadataboxed)
sealed interface for validated payloads | | record | [MultipartformdataSchema.MultipartformdataAdditionalMetadataBoxedString](#multipartformdataadditionalmetadataboxedstring)
boxed class to store validated String payloads | | static class | [MultipartformdataSchema.MultipartformdataAdditionalMetadata](#multipartformdataadditionalmetadata)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md index 1f0f43be973..99e81a1b57d 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [ApiResponseSchema1](../../../../../../../../../components/schemas/ApiRe A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.md index a5e113330e6..d2b7bf3b598 100644 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.md @@ -3,13 +3,13 @@ public class Schema0
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | | record | [Schema0.Schema01BoxedVoid](#schema01boxedvoid)
boxed class to store validated null payloads | | record | [Schema0.Schema01BoxedBoolean](#schema01boxedboolean)
boxed class to store validated boolean payloads | | record | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md index 122e5886047..98eb062fdd7 100644 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -3,13 +3,13 @@ public class ApplicationjsonSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.md index b3f7b9efed4..22b82242cfb 100644 --- a/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.md @@ -4,7 +4,7 @@ extends [Foo1](../../../components/schemas/Foo.md#foo) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index 19ff305ffc0..f4786efc35d 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [AnimalFarm1](../../../../../../../components/schemas/AnimalFarm.md#anim A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md index 8c0ac4c578a..7eb02fafbcb 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [AnimalFarm1](../../../../../../../../../components/schemas/AnimalFarm.m A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index 39e734c5198..82450aa4900 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [ArrayOfEnums1](../../../../../../../components/schemas/ArrayOfEnums.md# A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md index 1844e5f5212..835e837b74a 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [ArrayOfEnums1](../../../../../../../../../components/schemas/ArrayOfEnu A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index e6acb495086..1694ac4a00a 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [BooleanSchema1](../../../../../../../components/schemas/BooleanSchema.m A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md index f01369f2068..29cc3b9d760 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [BooleanSchema1](../../../../../../../../../components/schemas/BooleanSc A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index 894113535eb..1e3738551c2 100644 --- a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [ComposedOneOfDifferentTypes1](../../../../../../../components/schemas/C A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md index 2607baa8830..a2c8d6c9559 100644 --- a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [ComposedOneOfDifferentTypes1](../../../../../../../../../components/sch A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index af2ae60fb96..2ac02fd09b9 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [StringEnum1](../../../../../../../components/schemas/StringEnum.md#stri A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md index 5cee5e75327..3d7b311e68f 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [StringEnum1](../../../../../../../../../components/schemas/StringEnum.m A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index f75ef7c2077..f0a5b53544f 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [Mammal1](../../../../../../../components/schemas/Mammal.md#mammal) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md index c6b3b628c02..41b8db552fa 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [Mammal1](../../../../../../../../../components/schemas/Mammal.md#mammal A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index 709dcf4b1e8..a903474b2ee 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [NumberWithValidations1](../../../../../../../components/schemas/NumberW A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md index a1938be5dde..b92500c8220 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [NumberWithValidations1](../../../../../../../../../components/schemas/N A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index 619f8495f93..495e07e6094 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [ObjectModelWithRefProps1](../../../../../../../components/schemas/Objec A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md index e11383cf962..2bf27caf427 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [ObjectModelWithRefProps1](../../../../../../../../../components/schemas A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index 1fff247cf19..8fadd779761 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [StringSchema1](../../../../../../../components/schemas/StringSchema.md# A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md index a70d4b832ca..182ab3570a2 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [StringSchema1](../../../../../../../../../components/schemas/StringSche A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md index 7dc41141603..037912fe768 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md @@ -3,7 +3,7 @@ public class Schema0
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -11,12 +11,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | | record | [Schema0.Schema01BoxedList](#schema01boxedlist)
boxed class to store validated List payloads | | static class | [Schema0.Schema01](#schema01)
schema class | | static class | [Schema0.SchemaListBuilder0](#schemalistbuilder0)
builder for List payloads | | static class | [Schema0.SchemaList0](#schemalist0)
output class for List payloads | -| sealed interface | [Schema0.Items0Boxed](#items0boxed)
abstract sealed validated payload class | +| sealed interface | [Schema0.Items0Boxed](#items0boxed)
sealed interface for validated payloads | | record | [Schema0.Items0BoxedString](#items0boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Items0](#items0)
schema class | diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md index b3563638a52..489e516237c 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md @@ -3,7 +3,7 @@ public class Schema1
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -11,12 +11,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
abstract sealed validated payload class | +| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
sealed interface for validated payloads | | record | [Schema1.Schema11BoxedList](#schema11boxedlist)
boxed class to store validated List payloads | | static class | [Schema1.Schema11](#schema11)
schema class | | static class | [Schema1.SchemaListBuilder1](#schemalistbuilder1)
builder for List payloads | | static class | [Schema1.SchemaList1](#schemalist1)
output class for List payloads | -| sealed interface | [Schema1.Items1Boxed](#items1boxed)
abstract sealed validated payload class | +| sealed interface | [Schema1.Items1Boxed](#items1boxed)
sealed interface for validated payloads | | record | [Schema1.Items1BoxedString](#items1boxedstring)
boxed class to store validated String payloads | | static class | [Schema1.Items1](#items1)
schema class | diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md index b141e10c86d..19b1f1859f2 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md @@ -3,7 +3,7 @@ public class Schema2
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -11,12 +11,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Schema2.Schema21Boxed](#schema21boxed)
abstract sealed validated payload class | +| sealed interface | [Schema2.Schema21Boxed](#schema21boxed)
sealed interface for validated payloads | | record | [Schema2.Schema21BoxedList](#schema21boxedlist)
boxed class to store validated List payloads | | static class | [Schema2.Schema21](#schema21)
schema class | | static class | [Schema2.SchemaListBuilder2](#schemalistbuilder2)
builder for List payloads | | static class | [Schema2.SchemaList2](#schemalist2)
output class for List payloads | -| sealed interface | [Schema2.Items2Boxed](#items2boxed)
abstract sealed validated payload class | +| sealed interface | [Schema2.Items2Boxed](#items2boxed)
sealed interface for validated payloads | | record | [Schema2.Items2BoxedString](#items2boxedstring)
boxed class to store validated String payloads | | static class | [Schema2.Items2](#items2)
schema class | diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md index 171eeb15e9f..e49f8cced23 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md @@ -3,7 +3,7 @@ public class Schema3
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -11,12 +11,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Schema3.Schema31Boxed](#schema31boxed)
abstract sealed validated payload class | +| sealed interface | [Schema3.Schema31Boxed](#schema31boxed)
sealed interface for validated payloads | | record | [Schema3.Schema31BoxedList](#schema31boxedlist)
boxed class to store validated List payloads | | static class | [Schema3.Schema31](#schema31)
schema class | | static class | [Schema3.SchemaListBuilder3](#schemalistbuilder3)
builder for List payloads | | static class | [Schema3.SchemaList3](#schemalist3)
output class for List payloads | -| sealed interface | [Schema3.Items3Boxed](#items3boxed)
abstract sealed validated payload class | +| sealed interface | [Schema3.Items3Boxed](#items3boxed)
sealed interface for validated payloads | | record | [Schema3.Items3BoxedString](#items3boxedstring)
boxed class to store validated String payloads | | static class | [Schema3.Items3](#items3)
schema class | diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md index e279fae6d6a..f37dbb27dcd 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md @@ -3,7 +3,7 @@ public class Schema4
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -11,12 +11,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Schema4.Schema41Boxed](#schema41boxed)
abstract sealed validated payload class | +| sealed interface | [Schema4.Schema41Boxed](#schema41boxed)
sealed interface for validated payloads | | record | [Schema4.Schema41BoxedList](#schema41boxedlist)
boxed class to store validated List payloads | | static class | [Schema4.Schema41](#schema41)
schema class | | static class | [Schema4.SchemaListBuilder4](#schemalistbuilder4)
builder for List payloads | | static class | [Schema4.SchemaList4](#schemalist4)
output class for List payloads | -| sealed interface | [Schema4.Items4Boxed](#items4boxed)
abstract sealed validated payload class | +| sealed interface | [Schema4.Items4Boxed](#items4boxed)
sealed interface for validated payloads | | record | [Schema4.Items4BoxedString](#items4boxedstring)
boxed class to store validated String payloads | | static class | [Schema4.Items4](#items4)
schema class | diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.md index 93b08c9739e..f566af62cf0 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.md @@ -4,7 +4,7 @@ extends [StringWithValidation1](../../../components/schemas/StringWithValidation A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.md index 02f8ac3a2ac..757329e0634 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.md @@ -3,13 +3,13 @@ public class ApplicationoctetstreamSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1Boxed](#applicationoctetstreamschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1Boxed](#applicationoctetstreamschema1boxed)
sealed interface for validated payloads | | static class | [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1](#applicationoctetstreamschema1)
schema class | ## ApplicationoctetstreamSchema1Boxed diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/Code200Response/content/applicationoctetstream/ApplicationoctetstreamSchema.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/Code200Response/content/applicationoctetstream/ApplicationoctetstreamSchema.md index 65fa580db40..c1498d3a5a3 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/Code200Response/content/applicationoctetstream/ApplicationoctetstreamSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/Code200Response/content/applicationoctetstream/ApplicationoctetstreamSchema.md @@ -3,13 +3,13 @@ public class ApplicationoctetstreamSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1Boxed](#applicationoctetstreamschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1Boxed](#applicationoctetstreamschema1boxed)
sealed interface for validated payloads | | static class | [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1](#applicationoctetstreamschema1)
schema class | ## ApplicationoctetstreamSchema1Boxed diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md index 0d6cfd4daef..dcec8012421 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -3,7 +3,7 @@ public class MultipartformdataSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -11,14 +11,14 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
abstract sealed validated payload class | +| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
sealed interface for validated payloads | | record | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | | static class | [MultipartformdataSchema.MultipartformdataSchema1](#multipartformdataschema1)
schema class | | static class | [MultipartformdataSchema.MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder)
builder for Map payloads | | static class | [MultipartformdataSchema.MultipartformdataSchemaMap](#multipartformdataschemamap)
output class for Map payloads | -| sealed interface | [MultipartformdataSchema.MultipartformdataFileBoxed](#multipartformdatafileboxed)
abstract sealed validated payload class | +| sealed interface | [MultipartformdataSchema.MultipartformdataFileBoxed](#multipartformdatafileboxed)
sealed interface for validated payloads | | static class | [MultipartformdataSchema.MultipartformdataFile](#multipartformdatafile)
schema class | -| sealed interface | [MultipartformdataSchema.MultipartformdataAdditionalMetadataBoxed](#multipartformdataadditionalmetadataboxed)
abstract sealed validated payload class | +| sealed interface | [MultipartformdataSchema.MultipartformdataAdditionalMetadataBoxed](#multipartformdataadditionalmetadataboxed)
sealed interface for validated payloads | | record | [MultipartformdataSchema.MultipartformdataAdditionalMetadataBoxedString](#multipartformdataadditionalmetadataboxedstring)
boxed class to store validated String payloads | | static class | [MultipartformdataSchema.MultipartformdataAdditionalMetadata](#multipartformdataadditionalmetadata)
schema class | diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md index 1f0f43be973..99e81a1b57d 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [ApiResponseSchema1](../../../../../../../../../components/schemas/ApiRe A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md index d8acbf3a8dd..57f9eaaf6e4 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -3,7 +3,7 @@ public class MultipartformdataSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -13,17 +13,17 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
abstract sealed validated payload class | +| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
sealed interface for validated payloads | | record | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | | static class | [MultipartformdataSchema.MultipartformdataSchema1](#multipartformdataschema1)
schema class | | static class | [MultipartformdataSchema.MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder)
builder for Map payloads | | static class | [MultipartformdataSchema.MultipartformdataSchemaMap](#multipartformdataschemamap)
output class for Map payloads | -| sealed interface | [MultipartformdataSchema.MultipartformdataFilesBoxed](#multipartformdatafilesboxed)
abstract sealed validated payload class | +| sealed interface | [MultipartformdataSchema.MultipartformdataFilesBoxed](#multipartformdatafilesboxed)
sealed interface for validated payloads | | record | [MultipartformdataSchema.MultipartformdataFilesBoxedList](#multipartformdatafilesboxedlist)
boxed class to store validated List payloads | | static class | [MultipartformdataSchema.MultipartformdataFiles](#multipartformdatafiles)
schema class | | static class | [MultipartformdataSchema.MultipartformdataFilesListBuilder](#multipartformdatafileslistbuilder)
builder for List payloads | | static class | [MultipartformdataSchema.MultipartformdataFilesList](#multipartformdatafileslist)
output class for List payloads | -| sealed interface | [MultipartformdataSchema.MultipartformdataItemsBoxed](#multipartformdataitemsboxed)
abstract sealed validated payload class | +| sealed interface | [MultipartformdataSchema.MultipartformdataItemsBoxed](#multipartformdataitemsboxed)
sealed interface for validated payloads | | static class | [MultipartformdataSchema.MultipartformdataItems](#multipartformdataitems)
schema class | ## MultipartformdataSchema1Boxed diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md index 1f0f43be973..99e81a1b57d 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [ApiResponseSchema1](../../../../../../../../../components/schemas/ApiRe A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code1XXResponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code1XXResponse/content/applicationjson/ApplicationjsonSchema.md index 122e5886047..98eb062fdd7 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code1XXResponse/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code1XXResponse/content/applicationjson/ApplicationjsonSchema.md @@ -3,13 +3,13 @@ public class ApplicationjsonSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md index 122e5886047..98eb062fdd7 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -3,13 +3,13 @@ public class ApplicationjsonSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code2XXResponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code2XXResponse/content/applicationjson/ApplicationjsonSchema.md index 122e5886047..98eb062fdd7 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code2XXResponse/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code2XXResponse/content/applicationjson/ApplicationjsonSchema.md @@ -3,13 +3,13 @@ public class ApplicationjsonSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code3XXResponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code3XXResponse/content/applicationjson/ApplicationjsonSchema.md index 122e5886047..98eb062fdd7 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code3XXResponse/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code3XXResponse/content/applicationjson/ApplicationjsonSchema.md @@ -3,13 +3,13 @@ public class ApplicationjsonSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code4XXResponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code4XXResponse/content/applicationjson/ApplicationjsonSchema.md index 122e5886047..98eb062fdd7 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code4XXResponse/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code4XXResponse/content/applicationjson/ApplicationjsonSchema.md @@ -3,13 +3,13 @@ public class ApplicationjsonSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code5XXResponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code5XXResponse/content/applicationjson/ApplicationjsonSchema.md index 122e5886047..98eb062fdd7 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code5XXResponse/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code5XXResponse/content/applicationjson/ApplicationjsonSchema.md @@ -3,13 +3,13 @@ public class ApplicationjsonSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/paths/foo/get/responses/CodedefaultResponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/foo/get/responses/CodedefaultResponse/content/applicationjson/ApplicationjsonSchema.md index 0795164907b..16d7385957f 100644 --- a/samples/client/petstore/java/docs/paths/foo/get/responses/CodedefaultResponse/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/foo/get/responses/CodedefaultResponse/content/applicationjson/ApplicationjsonSchema.md @@ -3,7 +3,7 @@ public class ApplicationjsonSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -11,7 +11,7 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | | static class | [ApplicationjsonSchema.ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder)
builder for Map payloads | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/parameters/parameter0/Schema0.md index afbce10551e..768242ca972 100644 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/get/parameters/parameter0/Schema0.md @@ -3,7 +3,7 @@ public class Schema0
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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,12 +12,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | | record | [Schema0.Schema01BoxedList](#schema01boxedlist)
boxed class to store validated List payloads | | static class | [Schema0.Schema01](#schema01)
schema class | | static class | [Schema0.SchemaListBuilder0](#schemalistbuilder0)
builder for List payloads | | static class | [Schema0.SchemaList0](#schemalist0)
output class for List payloads | -| sealed interface | [Schema0.Items0Boxed](#items0boxed)
abstract sealed validated payload class | +| sealed interface | [Schema0.Items0Boxed](#items0boxed)
sealed interface for validated payloads | | record | [Schema0.Items0BoxedString](#items0boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Items0](#items0)
schema class | | enum | [Schema0.StringItemsEnums0](#stringitemsenums0)
String enum | diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petfindbytags/get/parameters/parameter0/Schema0.md index 7dc41141603..037912fe768 100644 --- a/samples/client/petstore/java/docs/paths/petfindbytags/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/petfindbytags/get/parameters/parameter0/Schema0.md @@ -3,7 +3,7 @@ public class Schema0
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -11,12 +11,12 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | | record | [Schema0.Schema01BoxedList](#schema01boxedlist)
boxed class to store validated List payloads | | static class | [Schema0.Schema01](#schema01)
schema class | | static class | [Schema0.SchemaListBuilder0](#schemalistbuilder0)
builder for List payloads | | static class | [Schema0.SchemaList0](#schemalist0)
output class for List payloads | -| sealed interface | [Schema0.Items0Boxed](#items0boxed)
abstract sealed validated payload class | +| sealed interface | [Schema0.Items0Boxed](#items0boxed)
sealed interface for validated payloads | | record | [Schema0.Items0BoxedString](#items0boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Items0](#items0)
schema class | diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter0/Schema0.md index 9310f1ac75f..9ff90e0bc35 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter0/Schema0.md @@ -3,13 +3,13 @@ public class Schema0
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | | record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Schema01](#schema01)
schema class | diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter1/Schema1.md index 43e8dc6595a..d8a770d95a5 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter1/Schema1.md @@ -3,13 +3,13 @@ public class Schema1
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
abstract sealed validated payload class | +| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
sealed interface for validated payloads | | record | [Schema1.Schema11BoxedNumber](#schema11boxednumber)
boxed class to store validated Number payloads | | static class | [Schema1.Schema11](#schema11)
schema class | diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petpetid/get/parameters/parameter0/Schema0.md index 2b8e20a095f..55e4e5cb238 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/petpetid/get/parameters/parameter0/Schema0.md @@ -3,13 +3,13 @@ public class Schema0
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | | record | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | | static class | [Schema0.Schema01](#schema01)
schema class | diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/petpetid/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md index 9161e29f533..9a4a76df105 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/petpetid/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [RefPet1](../../../../../../../../../components/schemas/RefPet.md#refpet A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/petpetid/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md index 982355e1a21..a5b62a5f42c 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md +++ b/samples/client/petstore/java/docs/paths/petpetid/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md @@ -4,7 +4,7 @@ extends [Pet1](../../../../../../../../../components/schemas/Pet.md#pet) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petpetid/post/parameters/parameter0/Schema0.md index 2b8e20a095f..55e4e5cb238 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/post/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/petpetid/post/parameters/parameter0/Schema0.md @@ -3,13 +3,13 @@ public class Schema0
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | | record | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | | static class | [Schema0.Schema01](#schema01)
schema class | diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md b/samples/client/petstore/java/docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md index 5d894e0d85e..145c7f4860a 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md +++ b/samples/client/petstore/java/docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md @@ -3,7 +3,7 @@ public class ApplicationxwwwformurlencodedSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -11,15 +11,15 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed)
sealed interface for validated payloads | | record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap)
boxed class to store validated Map payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](#applicationxwwwformurlencodedschema1)
schema class | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder)
builder for Map payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap)
output class for Map payloads | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedStatusBoxed](#applicationxwwwformurlencodedstatusboxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedStatusBoxed](#applicationxwwwformurlencodedstatusboxed)
sealed interface for validated payloads | | record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedStatusBoxedString](#applicationxwwwformurlencodedstatusboxedstring)
boxed class to store validated String payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedStatus](#applicationxwwwformurlencodedstatus)
schema class | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedNameBoxed](#applicationxwwwformurlencodednameboxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedNameBoxed](#applicationxwwwformurlencodednameboxed)
sealed interface for validated payloads | | record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedNameBoxedString](#applicationxwwwformurlencodednameboxedstring)
boxed class to store validated String payloads | | static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedName](#applicationxwwwformurlencodedname)
schema class | diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md index 2b8e20a095f..55e4e5cb238 100644 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md @@ -3,13 +3,13 @@ public class Schema0
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | | record | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | | static class | [Schema0.Schema01](#schema01)
schema class | diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md index 4c08d0966cb..d100971b029 100644 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -3,7 +3,7 @@ public class MultipartformdataSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -11,14 +11,14 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
abstract sealed validated payload class | +| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
sealed interface for validated payloads | | record | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | | static class | [MultipartformdataSchema.MultipartformdataSchema1](#multipartformdataschema1)
schema class | | static class | [MultipartformdataSchema.MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder)
builder for Map payloads | | static class | [MultipartformdataSchema.MultipartformdataSchemaMap](#multipartformdataschemamap)
output class for Map payloads | -| sealed interface | [MultipartformdataSchema.MultipartformdataFileBoxed](#multipartformdatafileboxed)
abstract sealed validated payload class | +| sealed interface | [MultipartformdataSchema.MultipartformdataFileBoxed](#multipartformdatafileboxed)
sealed interface for validated payloads | | static class | [MultipartformdataSchema.MultipartformdataFile](#multipartformdatafile)
schema class | -| sealed interface | [MultipartformdataSchema.MultipartformdataAdditionalMetadataBoxed](#multipartformdataadditionalmetadataboxed)
abstract sealed validated payload class | +| sealed interface | [MultipartformdataSchema.MultipartformdataAdditionalMetadataBoxed](#multipartformdataadditionalmetadataboxed)
sealed interface for validated payloads | | record | [MultipartformdataSchema.MultipartformdataAdditionalMetadataBoxedString](#multipartformdataadditionalmetadataboxedstring)
boxed class to store validated String payloads | | static class | [MultipartformdataSchema.MultipartformdataAdditionalMetadata](#multipartformdataadditionalmetadata)
schema class | diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index 8edca3405a6..e069f9c21c8 100644 --- a/samples/client/petstore/java/docs/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [Order1](../../../../../../../components/schemas/Order.md#order) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/storeorder/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md index 96c3664deb4..ff8a34dc488 100644 --- a/samples/client/petstore/java/docs/paths/storeorder/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/storeorder/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [Order1](../../../../../../../../../components/schemas/Order.md#order) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/storeorder/post/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md index 2bcf70b5efd..44082af145c 100644 --- a/samples/client/petstore/java/docs/paths/storeorder/post/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md +++ b/samples/client/petstore/java/docs/paths/storeorder/post/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md @@ -4,7 +4,7 @@ extends [Order1](../../../../../../../../../components/schemas/Order.md#order) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/storeorderorderid/delete/parameters/parameter0/Schema0.md index 9310f1ac75f..9ff90e0bc35 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/delete/parameters/parameter0/Schema0.md @@ -3,13 +3,13 @@ public class Schema0
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | | record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Schema01](#schema01)
schema class | diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/parameters/parameter0/Schema0.md index 49ee36df0f4..c30a68b3c51 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/get/parameters/parameter0/Schema0.md @@ -3,13 +3,13 @@ public class Schema0
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | | record | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | | static class | [Schema0.Schema01](#schema01)
schema class | diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md index 96c3664deb4..ff8a34dc488 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [Order1](../../../../../../../../../components/schemas/Order.md#order) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md index 2bcf70b5efd..44082af145c 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md @@ -4,7 +4,7 @@ extends [Order1](../../../../../../../../../components/schemas/Order.md#order) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index 6c2b5617631..3433b43b8a4 100644 --- a/samples/client/petstore/java/docs/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [User1](../../../../../../../components/schemas/User.md#user) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter0/Schema0.md index 9310f1ac75f..9ff90e0bc35 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter0/Schema0.md @@ -3,13 +3,13 @@ public class Schema0
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
abstract sealed validated payload class | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | | record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | | static class | [Schema0.Schema01](#schema01)
schema class | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter1/Schema1.md index 7b37ff278b7..63ec3a884fc 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter1/Schema1.md @@ -3,13 +3,13 @@ public class Schema1
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
abstract sealed validated payload class | +| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
sealed interface for validated payloads | | record | [Schema1.Schema11BoxedString](#schema11boxedstring)
boxed class to store validated String payloads | | static class | [Schema1.Schema11](#schema11)
schema class | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md index d6804ae2058..fe0b32c3b81 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -3,13 +3,13 @@ public class ApplicationjsonSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | | record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | | static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md index 3a80c9bf06d..81b5c1d6689 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md @@ -3,13 +3,13 @@ public class ApplicationxmlSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [ApplicationxmlSchema.ApplicationxmlSchema1Boxed](#applicationxmlschema1boxed)
abstract sealed validated payload class | +| sealed interface | [ApplicationxmlSchema.ApplicationxmlSchema1Boxed](#applicationxmlschema1boxed)
sealed interface for validated payloads | | record | [ApplicationxmlSchema.ApplicationxmlSchema1BoxedString](#applicationxmlschema1boxedstring)
boxed class to store validated String payloads | | static class | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/headers/xexpiresafter/XExpiresAfterSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/headers/xexpiresafter/XExpiresAfterSchema.md index 3c127ce1e5a..20c88d889d0 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/headers/xexpiresafter/XExpiresAfterSchema.md +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/headers/xexpiresafter/XExpiresAfterSchema.md @@ -3,13 +3,13 @@ public class XExpiresAfterSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [XExpiresAfterSchema.XExpiresAfterSchema1Boxed](#xexpiresafterschema1boxed)
abstract sealed validated payload class | +| sealed interface | [XExpiresAfterSchema.XExpiresAfterSchema1Boxed](#xexpiresafterschema1boxed)
sealed interface for validated payloads | | record | [XExpiresAfterSchema.XExpiresAfterSchema1BoxedString](#xexpiresafterschema1boxedstring)
boxed class to store validated String payloads | | static class | [XExpiresAfterSchema.XExpiresAfterSchema1](#xexpiresafterschema1)
schema class | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/headers/xratelimit/content/applicationjson/XRateLimitSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/headers/xratelimit/content/applicationjson/XRateLimitSchema.md index 6a322ac2bc7..76dfd4f33af 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/headers/xratelimit/content/applicationjson/XRateLimitSchema.md +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/headers/xratelimit/content/applicationjson/XRateLimitSchema.md @@ -3,13 +3,13 @@ public class XRateLimitSchema
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 | | ----------------- | ---------------------- | -| sealed interface | [XRateLimitSchema.XRateLimitSchema1Boxed](#xratelimitschema1boxed)
abstract sealed validated payload class | +| sealed interface | [XRateLimitSchema.XRateLimitSchema1Boxed](#xratelimitschema1boxed)
sealed interface for validated payloads | | record | [XRateLimitSchema.XRateLimitSchema1BoxedNumber](#xratelimitschema1boxednumber)
boxed class to store validated Number payloads | | static class | [XRateLimitSchema.XRateLimitSchema1](#xratelimitschema1)
schema class | diff --git a/samples/client/petstore/java/docs/paths/userusername/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/userusername/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md index 755157ca72a..a3f14691ea8 100644 --- a/samples/client/petstore/java/docs/paths/userusername/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/userusername/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [User1](../../../../../../../../../components/schemas/User.md#user) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/userusername/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/userusername/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md index 3c1d62f3db3..28956f30c63 100644 --- a/samples/client/petstore/java/docs/paths/userusername/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md +++ b/samples/client/petstore/java/docs/paths/userusername/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md @@ -4,7 +4,7 @@ extends [User1](../../../../../../../../../components/schemas/User.md#user) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.md index 6c2b5617631..3433b43b8a4 100644 --- a/samples/client/petstore/java/docs/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -4,7 +4,7 @@ extends [User1](../../../../../../../components/schemas/User.md#user) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 diff --git a/samples/client/petstore/java/docs/servers/Server0.md b/samples/client/petstore/java/docs/servers/Server0.md index 72600744e8f..7e5a7f19f1e 100644 --- a/samples/client/petstore/java/docs/servers/Server0.md +++ b/samples/client/petstore/java/docs/servers/Server0.md @@ -24,7 +24,7 @@ public class Variables
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -33,20 +33,20 @@ A class that contains necessary nested ### Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Variables.Variables1Boxed](#variables1boxed)
abstract sealed validated payload class | +| sealed interface | [Variables.Variables1Boxed](#variables1boxed)
sealed interface for validated payloads | | record | [Variables.Variables1BoxedMap](#variables1boxedmap)
boxed class to store validated Map payloads | | static class | [Variables.Variables1](#variables1)
schema class | | static class | [Variables.VariablesMapBuilder](#variablesmapbuilder)
builder for Map payloads | | static class | [Variables.VariablesMap](#variablesmap)
output class for Map payloads | -| sealed interface | [Variables.PortBoxed](#portboxed)
abstract sealed validated payload class | +| sealed interface | [Variables.PortBoxed](#portboxed)
sealed interface for validated payloads | | record | [Variables.PortBoxedString](#portboxedstring)
boxed class to store validated String payloads | | static class | [Variables.Port](#port)
schema class | | enum | [Variables.StringPortEnums](#stringportenums)
String enum | -| sealed interface | [Variables.ServerBoxed](#serverboxed)
abstract sealed validated payload class | +| sealed interface | [Variables.ServerBoxed](#serverboxed)
sealed interface for validated payloads | | record | [Variables.ServerBoxedString](#serverboxedstring)
boxed class to store validated String payloads | | static class | [Variables.Server](#server)
schema class | | enum | [Variables.StringServerEnums](#stringserverenums)
String enum | -| sealed interface | [Variables.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| sealed interface | [Variables.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | | record | [Variables.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | | record | [Variables.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | | record | [Variables.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/docs/servers/Server1.md b/samples/client/petstore/java/docs/servers/Server1.md index 7c3461f2e3c..a3b5f2d8879 100644 --- a/samples/client/petstore/java/docs/servers/Server1.md +++ b/samples/client/petstore/java/docs/servers/Server1.md @@ -24,7 +24,7 @@ public class Variables
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 @@ -33,16 +33,16 @@ A class that contains necessary nested ### Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Variables.Variables1Boxed](#variables1boxed)
abstract sealed validated payload class | +| sealed interface | [Variables.Variables1Boxed](#variables1boxed)
sealed interface for validated payloads | | record | [Variables.Variables1BoxedMap](#variables1boxedmap)
boxed class to store validated Map payloads | | static class | [Variables.Variables1](#variables1)
schema class | | static class | [Variables.VariablesMapBuilder](#variablesmapbuilder)
builder for Map payloads | | static class | [Variables.VariablesMap](#variablesmap)
output class for Map payloads | -| sealed interface | [Variables.VersionBoxed](#versionboxed)
abstract sealed validated payload class | +| sealed interface | [Variables.VersionBoxed](#versionboxed)
sealed interface for validated payloads | | record | [Variables.VersionBoxedString](#versionboxedstring)
boxed class to store validated String payloads | | static class | [Variables.Version](#version)
schema class | | enum | [Variables.StringVersionEnums](#stringversionenums)
String enum | -| sealed interface | [Variables.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
abstract sealed validated payload class | +| sealed interface | [Variables.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | | record | [Variables.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | | record | [Variables.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | | record | [Variables.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/HeadersWithNoBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/HeadersWithNoBody.java index 10d11db425d..f6f9acdb1f5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/HeadersWithNoBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/HeadersWithNoBody.java @@ -18,12 +18,12 @@ public HeadersWithNoBody1() { } @Override - public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { return null; } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessDescriptionOnly.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessDescriptionOnly.java index 3e99ac54296..6967e1461da 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessDescriptionOnly.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessDescriptionOnly.java @@ -18,12 +18,12 @@ public SuccessDescriptionOnly1() { } @Override - public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { return null; } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessInlineContentAndHeader.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessInlineContentAndHeader.java index f8a3c60b914..fa7b442f693 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessInlineContentAndHeader.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessInlineContentAndHeader.java @@ -34,7 +34,7 @@ public SuccessInlineContentAndHeader1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessWithJsonApiResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessWithJsonApiResponse.java index 9c565b329b8..08677e4d19e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessWithJsonApiResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessWithJsonApiResponse.java @@ -34,7 +34,7 @@ public SuccessWithJsonApiResponse1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessfulXmlAndJsonArrayOfPet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessfulXmlAndJsonArrayOfPet.java index 95c54c70bfc..919db831be2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessfulXmlAndJsonArrayOfPet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/SuccessfulXmlAndJsonArrayOfPet.java @@ -47,7 +47,7 @@ public SuccessfulXmlAndJsonArrayOfPet1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -63,7 +63,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java index 4ad4cc3924c..b307c66fba1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java @@ -34,7 +34,7 @@ public Code200Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code404Response.java index 3887f04cd3d..c656c6b1fe0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code404Response.java @@ -34,7 +34,7 @@ public Code404Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/Code200Response.java index df9fa44ed0a..30c92bdccaa 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/Code200Response.java @@ -34,7 +34,7 @@ public Code200Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code404Response.java index 7989c6dc18e..f6a0bbe8f31 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code404Response.java @@ -18,12 +18,12 @@ public Code404Response1() { } @Override - public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { return null; } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java index ca7e0d328a7..d1d224a9573 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java @@ -34,7 +34,7 @@ public Code200Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java index 968a990bcb1..a56b33fb4f7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java @@ -34,7 +34,7 @@ public Code200Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.java index e288c54a1f4..9e753636173 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.java @@ -18,12 +18,12 @@ public CodedefaultResponse1() { } @Override - public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { return null; } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java index 443e9683cc7..a504fe0a6ba 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java @@ -34,7 +34,7 @@ public Code200Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/Code200Response.java index 2545a1fe91c..7d4e5e617e9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/Code200Response.java @@ -47,7 +47,7 @@ public Code200Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -63,7 +63,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java index d583508908f..37dcb4fe272 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java @@ -34,7 +34,7 @@ public Code200Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java index ba65c808ee2..c5dce785061 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java @@ -34,7 +34,7 @@ public Code200Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code200Response.java index 3be23b495a5..ef8dc875a8e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code200Response.java @@ -34,7 +34,7 @@ public Code200Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java index f73a8251e56..baafae85a7b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java @@ -34,7 +34,7 @@ public Code202Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java index d7570c23e86..cb30e9398b4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java @@ -34,7 +34,7 @@ public Code200Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java index b5b22cfa8c6..d4528d09986 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java @@ -34,7 +34,7 @@ public Code200Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java index e0a1be14601..e63e3c08bfe 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java @@ -34,7 +34,7 @@ public Code200Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.java index 4d41ab388e4..24e2ecf827b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.java @@ -34,7 +34,7 @@ public Code200Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java index 0362800f8fd..3d6b23dbf11 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java @@ -34,7 +34,7 @@ public Code200Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code303Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code303Response.java index 2d27d3c3042..7c32fb69139 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code303Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code303Response.java @@ -18,12 +18,12 @@ public Code303Response1() { } @Override - public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { return null; } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code3XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code3XXResponse.java index b4acc5dbc81..b6b5bfd0eaa 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code3XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code3XXResponse.java @@ -18,12 +18,12 @@ public Code3XXResponse1() { } @Override - public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { return null; } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java index aabd68f4c3e..87967b8848d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java @@ -34,7 +34,7 @@ public Code200Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java index 1e9fad45b3b..9dd347dd3cb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java @@ -34,7 +34,7 @@ public Code200Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java index 36f31907510..dcf965a7bd8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java @@ -34,7 +34,7 @@ public Code200Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java index f3cfbc67296..32c14d6f16c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java @@ -34,7 +34,7 @@ public Code200Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java index 05d68d81dae..e20627544e3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java @@ -34,7 +34,7 @@ public Code200Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java index 6675bbb40dc..68e8bc37f17 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java @@ -34,7 +34,7 @@ public Code200Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java index c045a95cd37..6a4a1829e56 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java @@ -34,7 +34,7 @@ public Code200Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java index 9f8bff6c7d0..e2c6082a8ea 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java @@ -34,7 +34,7 @@ public Code200Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java index 49974a11926..0ef09b42463 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java @@ -34,7 +34,7 @@ public Code200Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java index c6951feb51b..c461d9035bf 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java @@ -21,12 +21,12 @@ public Code200Response1() { } @Override - public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { return null; } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java index 772eba7d1c1..63236fb8e64 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java @@ -34,7 +34,7 @@ public Code200Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java index e5ee9b97404..eb4aeb00121 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java @@ -34,7 +34,7 @@ public Code200Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java index 5f57242006f..8b5a4469414 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java @@ -34,7 +34,7 @@ public Code200Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code1XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code1XXResponse.java index b201e568bff..1035450a564 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code1XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code1XXResponse.java @@ -34,7 +34,7 @@ public Code1XXResponse1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java index 7c7bb136ac6..4776aca71e2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java @@ -34,7 +34,7 @@ public Code200Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code2XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code2XXResponse.java index 29bb65c0e46..12796885fdb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code2XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code2XXResponse.java @@ -34,7 +34,7 @@ public Code2XXResponse1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code3XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code3XXResponse.java index 59d3cff9d9c..420f21a011b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code3XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code3XXResponse.java @@ -34,7 +34,7 @@ public Code3XXResponse1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code4XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code4XXResponse.java index 8db739bd3bd..1d38967e4a8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code4XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code4XXResponse.java @@ -34,7 +34,7 @@ public Code4XXResponse1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code5XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code5XXResponse.java index bd228b50950..645d93d6b86 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code5XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code5XXResponse.java @@ -34,7 +34,7 @@ public Code5XXResponse1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java index ecac635520d..4cb012e1f53 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java @@ -34,7 +34,7 @@ public CodedefaultResponse1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -47,7 +47,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code405Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code405Response.java index a6d41fad9fa..28b861d4339 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code405Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code405Response.java @@ -18,12 +18,12 @@ public Code405Response1() { } @Override - public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { return null; } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code400Response.java index bb6b67f6c60..43a665f0c19 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code400Response.java @@ -18,12 +18,12 @@ public Code400Response1() { } @Override - public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { return null; } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code404Response.java index 7ba2c313ee5..c98a92007c7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code404Response.java @@ -18,12 +18,12 @@ public Code404Response1() { } @Override - public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { return null; } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code405Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code405Response.java index 446172b00a9..ea308bdc6b2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code405Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code405Response.java @@ -18,12 +18,12 @@ public Code405Response1() { } @Override - public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { return null; } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code400Response.java index ff6b6507229..789af3ed96f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code400Response.java @@ -18,12 +18,12 @@ public Code400Response1() { } @Override - public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { return null; } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code400Response.java index d13f7bbb8ad..e1e47e9b91e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code400Response.java @@ -18,12 +18,12 @@ public Code400Response1() { } @Override - public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { return null; } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/Code400Response.java index ccd0738e939..2fcdf10dd22 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/Code400Response.java @@ -18,12 +18,12 @@ public Code400Response1() { } @Override - public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { return null; } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code200Response.java index 79d6af6d40d..41cbf8b5a5c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code200Response.java @@ -47,7 +47,7 @@ public Code200Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -63,7 +63,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code400Response.java index ac598607396..5d2a50f0154 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code400Response.java @@ -18,12 +18,12 @@ public Code400Response1() { } @Override - public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { return null; } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code404Response.java index 7f3c03cf7d2..0797e7c8fa9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code404Response.java @@ -18,12 +18,12 @@ public Code404Response1() { } @Override - public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { return null; } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/Code405Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/Code405Response.java index 64f2545e66b..e4d93dc02b9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/Code405Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/Code405Response.java @@ -18,12 +18,12 @@ public Code405Response1() { } @Override - public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { return null; } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code200Response.java index 383d1a9d2d1..806ee8b6867 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code200Response.java @@ -47,7 +47,7 @@ public Code200Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -63,7 +63,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code400Response.java index 0d1ee3dc6ab..b018f2a8d55 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code400Response.java @@ -18,12 +18,12 @@ public Code400Response1() { } @Override - public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { return null; } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code400Response.java index 6aa80c74c8b..3b69947b889 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code400Response.java @@ -18,12 +18,12 @@ public Code400Response1() { } @Override - public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { return null; } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code404Response.java index 4bf4dcfa0f6..6043fb706e6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code404Response.java @@ -18,12 +18,12 @@ public Code404Response1() { } @Override - public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { return null; } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code200Response.java index 5fd94d1bf2c..ddacd91e6b8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code200Response.java @@ -47,7 +47,7 @@ public Code200Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -63,7 +63,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code400Response.java index c92b8c47da7..a0d64766ab5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code400Response.java @@ -18,12 +18,12 @@ public Code400Response1() { } @Override - public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { return null; } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code404Response.java index 46eedfc873d..9a3b4607c8f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code404Response.java @@ -18,12 +18,12 @@ public Code404Response1() { } @Override - public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { return null; } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/CodedefaultResponse.java index 2776cacf32d..2804bfc1dcb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/CodedefaultResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/CodedefaultResponse.java @@ -18,12 +18,12 @@ public CodedefaultResponse1() { } @Override - public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { return null; } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/CodedefaultResponse.java index e5b3459ce72..12a36ad0d11 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/CodedefaultResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/CodedefaultResponse.java @@ -18,12 +18,12 @@ public CodedefaultResponse1() { } @Override - public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { return null; } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/CodedefaultResponse.java index e15f4649c3c..8764ab19081 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/CodedefaultResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/CodedefaultResponse.java @@ -18,12 +18,12 @@ public CodedefaultResponse1() { } @Override - public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { return null; } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code200Response.java index 466b9677587..34e312d269a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code200Response.java @@ -47,7 +47,7 @@ public Code200Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -63,7 +63,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code400Response.java index c5e20ab240e..80856aa6119 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code400Response.java @@ -18,12 +18,12 @@ public Code400Response1() { } @Override - public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { return null; } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code404Response.java index 73a174cb637..cdca3621219 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code404Response.java @@ -18,12 +18,12 @@ public Code404Response1() { } @Override - public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { return null; } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code200Response.java index 03384998269..bae41243287 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code200Response.java @@ -47,7 +47,7 @@ public Code200Response1() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -63,7 +63,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code400Response.java index 0268394c31b..1bba2220853 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code400Response.java @@ -18,12 +18,12 @@ public Code400Response1() { } @Override - public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { return null; } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code404Response.java index 104d657e30b..511b4b8c0e4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code404Response.java @@ -18,12 +18,12 @@ public Code404Response1() { } @Override - public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { return null; } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code400Response.java index 3867328f582..7997bf717b2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code400Response.java @@ -18,12 +18,12 @@ public Code400Response1() { } @Override - public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { return null; } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code404Response.java index a12c1263cfc..b3ac1cfe936 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code404Response.java @@ -18,12 +18,12 @@ public Code404Response1() { } @Override - public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { return null; } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java index 3784d02e112..766af80f088 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java @@ -32,8 +32,8 @@ public ResponseDeserializer(Map content) { this.headers = null; } - public abstract SealedBodyClass getBody(String contentType, byte[] body, SchemaConfiguration configuration); - public abstract HeaderClass getHeaders(HttpHeaders headers); + protected abstract SealedBodyClass getBody(String contentType, byte[] body, SchemaConfiguration configuration); + protected abstract HeaderClass getHeaders(HttpHeaders headers); protected @Nullable Object deserializeJson(byte[] body) { String bodyStr = new String(body, StandardCharsets.UTF_8); diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java index 336d01cc3dd..23c6e53af60 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java @@ -63,7 +63,7 @@ public MyResponseDeserializer() { } @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -79,7 +79,7 @@ public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfigu } @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/samples/client/petstore/python/docs/paths/another_fake_dummy/patch.md b/samples/client/petstore/python/docs/paths/another_fake_dummy/patch.md index 58a747d1167..1f7b3bf8607 100644 --- a/samples/client/petstore/python/docs/paths/another_fake_dummy/patch.md +++ b/samples/client/petstore/python/docs/paths/another_fake_dummy/patch.md @@ -39,27 +39,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation +200 | [_200.ApiResponse](#_200-apiresponse) | successful operation -## ResponseFor200 +## _200 ### Description successful operation -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [client.ClientDict](../../components/schema/client.md#clientdict) | | +[body](#_200-body) | [client.ClientDict](../../components/schema/client.md#clientdict) | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake/get.md b/samples/client/petstore/python/docs/paths/fake/get.md index dd57e17108f..ec538392bc2 100644 --- a/samples/client/petstore/python/docs/paths/fake/get.md +++ b/samples/client/petstore/python/docs/paths/fake/get.md @@ -234,27 +234,27 @@ HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned 200 | [SuccessDescriptionOnly.ApiResponse](../../components/responses/response_success_description_only.md#apiresponse) | Success -404 | [ResponseFor404.ApiResponse](#responsefor404-apiresponse) | Not found +404 | [_404.ApiResponse](#_404-apiresponse) | Not found -## ResponseFor404 +## _404 ### Description Not found -### ResponseFor404 ApiResponse +### _404 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor404-body) | schemas.immutabledict | | +[body](#_404-body) | schemas.immutabledict | | headers | Unset | headers were not defined | -### ResponseFor404 Body +### _404 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor404-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_404-content-applicationjson-schema) ### Body Details -#### ResponseFor404 content ApplicationJson Schema +#### _404 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake/patch.md b/samples/client/petstore/python/docs/paths/fake/patch.md index 5506e8fa02a..75a3d539e2d 100644 --- a/samples/client/petstore/python/docs/paths/fake/patch.md +++ b/samples/client/petstore/python/docs/paths/fake/patch.md @@ -39,27 +39,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation +200 | [_200.ApiResponse](#_200-apiresponse) | successful operation -## ResponseFor200 +## _200 ### Description successful operation -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [client.ClientDict](../../components/schema/client.md#clientdict) | | +[body](#_200-body) | [client.ClientDict](../../components/schema/client.md#clientdict) | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake/post.md b/samples/client/petstore/python/docs/paths/fake/post.md index 27d2e95afdd..a3fd177b799 100644 --- a/samples/client/petstore/python/docs/paths/fake/post.md +++ b/samples/client/petstore/python/docs/paths/fake/post.md @@ -127,14 +127,14 @@ HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned 200 | [SuccessDescriptionOnly.ApiResponse](../../components/responses/response_success_description_only.md#apiresponse) | Success -404 | [ResponseFor404.ApiResponse](#responsefor404-apiresponse) | User not found +404 | [_404.ApiResponse](#_404-apiresponse) | User not found -## ResponseFor404 +## _404 ### Description User not found -### ResponseFor404 ApiResponse +### _404 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/fake_additional_properties_with_array_of_enums/get.md b/samples/client/petstore/python/docs/paths/fake_additional_properties_with_array_of_enums/get.md index a9173252b9e..f5dc087d29d 100644 --- a/samples/client/petstore/python/docs/paths/fake_additional_properties_with_array_of_enums/get.md +++ b/samples/client/petstore/python/docs/paths/fake_additional_properties_with_array_of_enums/get.md @@ -58,27 +58,27 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | Got object with additional properties with array of enums +200 | [_200.ApiResponse](#_200-apiresponse) | Got object with additional properties with array of enums -## ResponseFor200 +## _200 ### Description Got object with additional properties with array of enums -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [additional_properties_with_array_of_enums.AdditionalPropertiesWithArrayOfEnumsDict](../../components/schema/additional_properties_with_array_of_enums.md#additionalpropertieswitharrayofenumsdict) | | +[body](#_200-body) | [additional_properties_with_array_of_enums.AdditionalPropertiesWithArrayOfEnumsDict](../../components/schema/additional_properties_with_array_of_enums.md#additionalpropertieswitharrayofenumsdict) | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_classname_test/patch.md b/samples/client/petstore/python/docs/paths/fake_classname_test/patch.md index e6099219fd4..aad5cabee72 100644 --- a/samples/client/petstore/python/docs/paths/fake_classname_test/patch.md +++ b/samples/client/petstore/python/docs/paths/fake_classname_test/patch.md @@ -41,27 +41,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation +200 | [_200.ApiResponse](#_200-apiresponse) | successful operation -## ResponseFor200 +## _200 ### Description successful operation -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [client.ClientDict](../../components/schema/client.md#clientdict) | | +[body](#_200-body) | [client.ClientDict](../../components/schema/client.md#clientdict) | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_health/get.md b/samples/client/petstore/python/docs/paths/fake_health/get.md index 4213bf03309..b4427f4bb3d 100644 --- a/samples/client/petstore/python/docs/paths/fake_health/get.md +++ b/samples/client/petstore/python/docs/paths/fake_health/get.md @@ -36,27 +36,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | The instance started successfully +200 | [_200.ApiResponse](#_200-apiresponse) | The instance started successfully -## ResponseFor200 +## _200 ### Description The instance started successfully -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [health_check_result.HealthCheckResultDict](../../components/schema/health_check_result.md#healthcheckresultdict) | | +[body](#_200-body) | [health_check_result.HealthCheckResultDict](../../components/schema/health_check_result.md#healthcheckresultdict) | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_inline_composition/post.md b/samples/client/petstore/python/docs/paths/fake_inline_composition/post.md index 3373d45a7f6..017ad8c76d1 100644 --- a/samples/client/petstore/python/docs/paths/fake_inline_composition/post.md +++ b/samples/client/petstore/python/docs/paths/fake_inline_composition/post.md @@ -184,28 +184,28 @@ from_dict_ | [QueryParametersDictInput](#queryparameters-queryparametersdictinpu HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success, multiple content types +200 | [_200.ApiResponse](#_200-apiresponse) | success, multiple content types -## ResponseFor200 +## _200 ### Description success, multiple content types -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | typing.Union[schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, [SchemaDict](#responsefor200-content-multipartformdata-schema-schemadict)] | | +[body](#_200-body) | typing.Union[schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, [SchemaDict](#_200-content-multipartformdata-schema-schemadict)] | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) -"multipart/form-data" | [content.multipart_form_data.Schema](#responsefor200-content-multipartformdata-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"multipart/form-data" | [content.multipart_form_data.Schema](#_200-content-multipartformdata-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` @@ -219,9 +219,9 @@ dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, i ##### allOf Schema Class | Input Type | Return Type ------------ | ---------- | ----------- -[_0](#responsefor200-content-applicationjson-schema-_0) | str | str +[_0](#_200-content-applicationjson-schema-_0) | str | str -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` @@ -230,7 +230,7 @@ type: schemas.Schema Input Type | Return Type | Notes ------------ | ------------- | ------------- str | str | -#### ResponseFor200 content MultipartFormData Schema +#### _200 content MultipartFormData Schema ``` type: schemas.Schema ``` @@ -238,9 +238,9 @@ type: schemas.Schema ##### validate method Input Type | Return Type | Notes ------------ | ------------- | ------------- -[SchemaDictInput](#responsefor200-content-multipartformdata-schema-schemadictinput), [SchemaDict](#responsefor200-content-multipartformdata-schema-schemadict) | [SchemaDict](#responsefor200-content-multipartformdata-schema-schemadict) | +[SchemaDictInput](#_200-content-multipartformdata-schema-schemadictinput), [SchemaDict](#_200-content-multipartformdata-schema-schemadict) | [SchemaDict](#_200-content-multipartformdata-schema-schemadict) | -##### ResponseFor200 content MultipartFormData Schema SchemaDictInput +##### _200 content MultipartFormData Schema SchemaDictInput ``` type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] ``` @@ -249,7 +249,7 @@ Key | Type | Description | Notes **someProp** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] **any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] -##### ResponseFor200 content MultipartFormData Schema SchemaDict +##### _200 content MultipartFormData Schema SchemaDict ``` base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] @@ -268,10 +268,10 @@ Property | Type | Description | Notes ###### methods Method | Input Type | Return Type | Notes ------ | ---------- | ----------- | ------ -from_dict_ | [SchemaDictInput](#responsefor200-content-multipartformdata-schema-schemadictinput), [SchemaDict](#responsefor200-content-multipartformdata-schema-schemadict) | [SchemaDict](#responsefor200-content-multipartformdata-schema-schemadict) | a constructor +from_dict_ | [SchemaDictInput](#_200-content-multipartformdata-schema-schemadictinput), [SchemaDict](#_200-content-multipartformdata-schema-schemadict) | [SchemaDict](#_200-content-multipartformdata-schema-schemadict) | a constructor get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset | provides type safety for additional properties -#### ResponseFor200 content MultipartFormData Schema +#### _200 content MultipartFormData Schema ``` type: schemas.Schema ``` @@ -285,9 +285,9 @@ dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, i ##### allOf Schema Class | Input Type | Return Type ------------ | ---------- | ----------- -[_0](#responsefor200-content-multipartformdata-schema-_0) | str | str +[_0](#_200-content-multipartformdata-schema-_0) | str | str -#### ResponseFor200 content MultipartFormData Schema +#### _200 content MultipartFormData Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_json_with_charset/post.md b/samples/client/petstore/python/docs/paths/fake_json_with_charset/post.md index a6f98a60380..de3fb8728a0 100644 --- a/samples/client/petstore/python/docs/paths/fake_json_with_charset/post.md +++ b/samples/client/petstore/python/docs/paths/fake_json_with_charset/post.md @@ -55,27 +55,27 @@ dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, i HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json; charset=utf-8" | [content.application_json_charsetutf8.Schema](#responsefor200-content-applicationjsoncharsetutf8-schema) +"application/json; charset=utf-8" | [content.application_json_charsetutf8.Schema](#_200-content-applicationjsoncharsetutf8-schema) ### Body Details -#### ResponseFor200 content ApplicationJsonCharsetutf8 Schema +#### _200 content ApplicationJsonCharsetutf8 Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_multiple_request_body_content_types/post.md b/samples/client/petstore/python/docs/paths/fake_multiple_request_body_content_types/post.md index abaabd2b682..f8a29314fca 100644 --- a/samples/client/petstore/python/docs/paths/fake_multiple_request_body_content_types/post.md +++ b/samples/client/petstore/python/docs/paths/fake_multiple_request_body_content_types/post.md @@ -131,27 +131,27 @@ get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_multiple_response_bodies/get.md b/samples/client/petstore/python/docs/paths/fake_multiple_response_bodies/get.md index a9556cc4a5e..05388e62195 100644 --- a/samples/client/petstore/python/docs/paths/fake_multiple_response_bodies/get.md +++ b/samples/client/petstore/python/docs/paths/fake_multiple_response_bodies/get.md @@ -36,28 +36,28 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -202 | [ResponseFor202.ApiResponse](#responsefor202-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success +202 | [_202.ApiResponse](#_202-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` @@ -67,25 +67,25 @@ Input Type | Return Type | Notes ------------ | ------------- | ------------- dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | -## ResponseFor202 +## _202 ### Description success -### ResponseFor202 ApiResponse +### _202 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor202-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_202-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor202 Body +### _202 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor202-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_202-content-applicationjson-schema) ### Body Details -#### ResponseFor202 content ApplicationJson Schema +#### _202 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_multiple_securities/get.md b/samples/client/petstore/python/docs/paths/fake_multiple_securities/get.md index 118e0fa7d39..e3aa1d601e4 100644 --- a/samples/client/petstore/python/docs/paths/fake_multiple_securities/get.md +++ b/samples/client/petstore/python/docs/paths/fake_multiple_securities/get.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post.md b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post.md index 83475935410..099798acb30 100644 --- a/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post.md +++ b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post.md @@ -236,27 +236,27 @@ from_dict_ | [CookieParametersDictInput](#cookieparameters-cookieparametersdicti HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_pem_content_type/get.md b/samples/client/petstore/python/docs/paths/fake_pem_content_type/get.md index 0b1746b70e1..8d2b8524f75 100644 --- a/samples/client/petstore/python/docs/paths/fake_pem_content_type/get.md +++ b/samples/client/petstore/python/docs/paths/fake_pem_content_type/get.md @@ -55,27 +55,27 @@ str | str | HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | str | | +[body](#_200-body) | str | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/x-pem-file" | [content.application_x_pem_file.Schema](#responsefor200-content-applicationxpemfile-schema) +"application/x-pem-file" | [content.application_x_pem_file.Schema](#_200-content-applicationxpemfile-schema) ### Body Details -#### ResponseFor200 content ApplicationXPemFile Schema +#### _200 content ApplicationXPemFile Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_pet_id_upload_image_with_required_file/post.md b/samples/client/petstore/python/docs/paths/fake_pet_id_upload_image_with_required_file/post.md index 4baff46fd05..be05c929101 100644 --- a/samples/client/petstore/python/docs/paths/fake_pet_id_upload_image_with_required_file/post.md +++ b/samples/client/petstore/python/docs/paths/fake_pet_id_upload_image_with_required_file/post.md @@ -131,27 +131,27 @@ from_dict_ | [PathParametersDictInput](#pathparameters-pathparametersdictinput), HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation +200 | [_200.ApiResponse](#_200-apiresponse) | successful operation -## ResponseFor200 +## _200 ### Description successful operation -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [api_response.ApiResponseDict](../../components/schema/api_response.md#apiresponsedict) | | +[body](#_200-body) | [api_response.ApiResponseDict](../../components/schema/api_response.md#apiresponsedict) | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_query_param_with_json_content_type/get.md b/samples/client/petstore/python/docs/paths/fake_query_param_with_json_content_type/get.md index 70f104cd9bb..e212959e1d8 100644 --- a/samples/client/petstore/python/docs/paths/fake_query_param_with_json_content_type/get.md +++ b/samples/client/petstore/python/docs/paths/fake_query_param_with_json_content_type/get.md @@ -75,27 +75,27 @@ from_dict_ | [QueryParametersDictInput](#queryparameters-queryparametersdictinpu HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +200 | [_200.ApiResponse](#_200-apiresponse) | success -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_redirection/get.md b/samples/client/petstore/python/docs/paths/fake_redirection/get.md index 418b86edcca..69d5c02bd97 100644 --- a/samples/client/petstore/python/docs/paths/fake_redirection/get.md +++ b/samples/client/petstore/python/docs/paths/fake_redirection/get.md @@ -35,27 +35,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -303 | [ResponseFor303.ApiResponse](#responsefor303-apiresponse) | see other -3XX | [ResponseFor3XX.ApiResponse](#responsefor3xx-apiresponse) | 3XX response +303 | [_303.ApiResponse](#_303-apiresponse) | see other +3XX | [_3XX.ApiResponse](#_3xx-apiresponse) | 3XX response -## ResponseFor303 +## _303 ### Description see other -### ResponseFor303 ApiResponse +### _303 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | body | Unset | body was not defined | headers | Unset | headers were not defined | -## ResponseFor3XX +## _3XX ### Description 3XX response -### ResponseFor3XX ApiResponse +### _3XX ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/fake_refs_array_of_enums/post.md b/samples/client/petstore/python/docs/paths/fake_refs_array_of_enums/post.md index f1d5536aa60..146012850a9 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_array_of_enums/post.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_array_of_enums/post.md @@ -58,27 +58,27 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | Got named array of enums +200 | [_200.ApiResponse](#_200-apiresponse) | Got named array of enums -## ResponseFor200 +## _200 ### Description Got named array of enums -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [array_of_enums.ArrayOfEnumsTuple](../../components/schema/array_of_enums.md#arrayofenumstuple) | | +[body](#_200-body) | [array_of_enums.ArrayOfEnumsTuple](../../components/schema/array_of_enums.md#arrayofenumstuple) | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_refs_arraymodel/post.md b/samples/client/petstore/python/docs/paths/fake_refs_arraymodel/post.md index c5e0196a03e..da69a9d8930 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_arraymodel/post.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_arraymodel/post.md @@ -58,27 +58,27 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | Output model +200 | [_200.ApiResponse](#_200-apiresponse) | Output model -## ResponseFor200 +## _200 ### Description Output model -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [animal_farm.AnimalFarmTuple](../../components/schema/animal_farm.md#animalfarmtuple) | | +[body](#_200-body) | [animal_farm.AnimalFarmTuple](../../components/schema/animal_farm.md#animalfarmtuple) | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_refs_boolean/post.md b/samples/client/petstore/python/docs/paths/fake_refs_boolean/post.md index 033481de2b7..a585823e37f 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_boolean/post.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_boolean/post.md @@ -58,27 +58,27 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | Output boolean +200 | [_200.ApiResponse](#_200-apiresponse) | Output boolean -## ResponseFor200 +## _200 ### Description Output boolean -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | bool | | +[body](#_200-body) | bool | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_refs_composed_one_of_number_with_validations/post.md b/samples/client/petstore/python/docs/paths/fake_refs_composed_one_of_number_with_validations/post.md index e045047eb47..05c4c50590e 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_composed_one_of_number_with_validations/post.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_composed_one_of_number_with_validations/post.md @@ -58,27 +58,27 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | Output model +200 | [_200.ApiResponse](#_200-apiresponse) | Output model -## ResponseFor200 +## _200 ### Description Output model -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_refs_enum/post.md b/samples/client/petstore/python/docs/paths/fake_refs_enum/post.md index d50ecd9f64d..96859e1d5c9 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_enum/post.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_enum/post.md @@ -58,27 +58,27 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | Output enum +200 | [_200.ApiResponse](#_200-apiresponse) | Output enum -## ResponseFor200 +## _200 ### Description Output enum -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | None, typing.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"] | | +[body](#_200-body) | None, typing.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"] | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_refs_mammal/post.md b/samples/client/petstore/python/docs/paths/fake_refs_mammal/post.md index 45acd604f69..f3c56775311 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_mammal/post.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_mammal/post.md @@ -58,27 +58,27 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | Output mammal +200 | [_200.ApiResponse](#_200-apiresponse) | Output mammal -## ResponseFor200 +## _200 ### Description Output mammal -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_refs_number/post.md b/samples/client/petstore/python/docs/paths/fake_refs_number/post.md index 0862ed4ebc5..f1225549478 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_number/post.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_number/post.md @@ -58,27 +58,27 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | Output number +200 | [_200.ApiResponse](#_200-apiresponse) | Output number -## ResponseFor200 +## _200 ### Description Output number -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | float, int | | +[body](#_200-body) | float, int | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_refs_object_model_with_ref_props/post.md b/samples/client/petstore/python/docs/paths/fake_refs_object_model_with_ref_props/post.md index 1b5c443ba6e..fa5defefe7f 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_object_model_with_ref_props/post.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_object_model_with_ref_props/post.md @@ -58,27 +58,27 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | Output model +200 | [_200.ApiResponse](#_200-apiresponse) | Output model -## ResponseFor200 +## _200 ### Description Output model -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [object_model_with_ref_props.ObjectModelWithRefPropsDict](../../components/schema/object_model_with_ref_props.md#objectmodelwithrefpropsdict) | | +[body](#_200-body) | [object_model_with_ref_props.ObjectModelWithRefPropsDict](../../components/schema/object_model_with_ref_props.md#objectmodelwithrefpropsdict) | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_refs_string/post.md b/samples/client/petstore/python/docs/paths/fake_refs_string/post.md index e45328433c3..9d28e32d779 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_string/post.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_string/post.md @@ -58,27 +58,27 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | Output string +200 | [_200.ApiResponse](#_200-apiresponse) | Output string -## ResponseFor200 +## _200 ### Description Output string -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | str | | +[body](#_200-body) | str | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_response_without_schema/get.md b/samples/client/petstore/python/docs/paths/fake_response_without_schema/get.md index 6801c62550f..519ae7635b0 100644 --- a/samples/client/petstore/python/docs/paths/fake_response_without_schema/get.md +++ b/samples/client/petstore/python/docs/paths/fake_response_without_schema/get.md @@ -36,21 +36,21 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | contents without schema definition, multiple content types +200 | [_200.ApiResponse](#_200-apiresponse) | contents without schema definition, multiple content types -## ResponseFor200 +## _200 ### Description contents without schema definition, multiple content types -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | Unset | body was not defined | +[body](#_200-body) | Unset | body was not defined | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- "application/json" | no schema defined diff --git a/samples/client/petstore/python/docs/paths/fake_upload_download_file/post.md b/samples/client/petstore/python/docs/paths/fake_upload_download_file/post.md index 81e91e16c35..03241acead1 100644 --- a/samples/client/petstore/python/docs/paths/fake_upload_download_file/post.md +++ b/samples/client/petstore/python/docs/paths/fake_upload_download_file/post.md @@ -59,27 +59,27 @@ bytes, io.FileIO, io.BufferedReader | bytes, io.FileIO | HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation +200 | [_200.ApiResponse](#_200-apiresponse) | successful operation -## ResponseFor200 +## _200 ### Description successful operation -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | bytes, io.FileIO | | +[body](#_200-body) | bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/octet-stream" | [content.application_octet_stream.Schema](#responsefor200-content-applicationoctetstream-schema) +"application/octet-stream" | [content.application_octet_stream.Schema](#_200-content-applicationoctetstream-schema) ### Body Details -#### ResponseFor200 content ApplicationOctetStream Schema +#### _200 content ApplicationOctetStream Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_upload_file/post.md b/samples/client/petstore/python/docs/paths/fake_upload_file/post.md index 0642b8d2948..9b5f528440d 100644 --- a/samples/client/petstore/python/docs/paths/fake_upload_file/post.md +++ b/samples/client/petstore/python/docs/paths/fake_upload_file/post.md @@ -90,27 +90,27 @@ get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation +200 | [_200.ApiResponse](#_200-apiresponse) | successful operation -## ResponseFor200 +## _200 ### Description successful operation -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [api_response.ApiResponseDict](../../components/schema/api_response.md#apiresponsedict) | | +[body](#_200-body) | [api_response.ApiResponseDict](../../components/schema/api_response.md#apiresponsedict) | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_upload_files/post.md b/samples/client/petstore/python/docs/paths/fake_upload_files/post.md index d0cb6963199..a54fd582a7e 100644 --- a/samples/client/petstore/python/docs/paths/fake_upload_files/post.md +++ b/samples/client/petstore/python/docs/paths/fake_upload_files/post.md @@ -141,27 +141,27 @@ Method | Input Type | Return Type | Notes HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation +200 | [_200.ApiResponse](#_200-apiresponse) | successful operation -## ResponseFor200 +## _200 ### Description successful operation -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [api_response.ApiResponseDict](../../components/schema/api_response.md#apiresponsedict) | | +[body](#_200-body) | [api_response.ApiResponseDict](../../components/schema/api_response.md#apiresponsedict) | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_wild_card_responses/get.md b/samples/client/petstore/python/docs/paths/fake_wild_card_responses/get.md index 5bd370c211b..0eb9fde2123 100644 --- a/samples/client/petstore/python/docs/paths/fake_wild_card_responses/get.md +++ b/samples/client/petstore/python/docs/paths/fake_wild_card_responses/get.md @@ -36,32 +36,32 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -1XX | [ResponseFor1XX.ApiResponse](#responsefor1xx-apiresponse) | 1XX response -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -2XX | [ResponseFor2XX.ApiResponse](#responsefor2xx-apiresponse) | 2XX response -3XX | [ResponseFor3XX.ApiResponse](#responsefor3xx-apiresponse) | 3XX response -4XX | [ResponseFor4XX.ApiResponse](#responsefor4xx-apiresponse) | 4XX response -5XX | [ResponseFor5XX.ApiResponse](#responsefor5xx-apiresponse) | 5XX response +1XX | [_1XX.ApiResponse](#_1xx-apiresponse) | 1XX response +200 | [_200.ApiResponse](#_200-apiresponse) | success +2XX | [_2XX.ApiResponse](#_2xx-apiresponse) | 2XX response +3XX | [_3XX.ApiResponse](#_3xx-apiresponse) | 3XX response +4XX | [_4XX.ApiResponse](#_4xx-apiresponse) | 4XX response +5XX | [_5XX.ApiResponse](#_5xx-apiresponse) | 5XX response -## ResponseFor1XX +## _1XX ### Description 1XX response -### ResponseFor1XX ApiResponse +### _1XX ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor1xx-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_1xx-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor1XX Body +### _1XX Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor1xx-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_1xx-content-applicationjson-schema) ### Body Details -#### ResponseFor1XX content ApplicationJson Schema +#### _1XX content ApplicationJson Schema ``` type: schemas.Schema ``` @@ -71,25 +71,25 @@ Input Type | Return Type | Notes ------------ | ------------- | ------------- dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | -## ResponseFor200 +## _200 ### Description success -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` @@ -99,25 +99,25 @@ Input Type | Return Type | Notes ------------ | ------------- | ------------- dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | -## ResponseFor2XX +## _2XX ### Description 2XX response -### ResponseFor2XX ApiResponse +### _2XX ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor2xx-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_2xx-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor2XX Body +### _2XX Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor2xx-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_2xx-content-applicationjson-schema) ### Body Details -#### ResponseFor2XX content ApplicationJson Schema +#### _2XX content ApplicationJson Schema ``` type: schemas.Schema ``` @@ -127,25 +127,25 @@ Input Type | Return Type | Notes ------------ | ------------- | ------------- dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | -## ResponseFor3XX +## _3XX ### Description 3XX response -### ResponseFor3XX ApiResponse +### _3XX ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor3xx-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_3xx-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor3XX Body +### _3XX Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor3xx-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_3xx-content-applicationjson-schema) ### Body Details -#### ResponseFor3XX content ApplicationJson Schema +#### _3XX content ApplicationJson Schema ``` type: schemas.Schema ``` @@ -155,25 +155,25 @@ Input Type | Return Type | Notes ------------ | ------------- | ------------- dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | -## ResponseFor4XX +## _4XX ### Description 4XX response -### ResponseFor4XX ApiResponse +### _4XX ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor4xx-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_4xx-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor4XX Body +### _4XX Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor4xx-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_4xx-content-applicationjson-schema) ### Body Details -#### ResponseFor4XX content ApplicationJson Schema +#### _4XX content ApplicationJson Schema ``` type: schemas.Schema ``` @@ -183,25 +183,25 @@ Input Type | Return Type | Notes ------------ | ------------- | ------------- dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | -## ResponseFor5XX +## _5XX ### Description 5XX response -### ResponseFor5XX ApiResponse +### _5XX ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor5xx-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#_5xx-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### ResponseFor5XX Body +### _5XX Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor5xx-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_5xx-content-applicationjson-schema) ### Body Details -#### ResponseFor5XX content ApplicationJson Schema +#### _5XX content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/pet/post.md b/samples/client/petstore/python/docs/paths/pet/post.md index d5aa1b2489c..283ed95e717 100644 --- a/samples/client/petstore/python/docs/paths/pet/post.md +++ b/samples/client/petstore/python/docs/paths/pet/post.md @@ -41,14 +41,14 @@ HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned 200 | [SuccessDescriptionOnly.ApiResponse](../../components/responses/response_success_description_only.md#apiresponse) | Success -405 | [ResponseFor405.ApiResponse](#responsefor405-apiresponse) | Invalid input +405 | [_405.ApiResponse](#_405-apiresponse) | Invalid input -## ResponseFor405 +## _405 ### Description Invalid input -### ResponseFor405 ApiResponse +### _405 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/pet/put.md b/samples/client/petstore/python/docs/paths/pet/put.md index 05fc84e576b..a3a4cec8d7e 100644 --- a/samples/client/petstore/python/docs/paths/pet/put.md +++ b/samples/client/petstore/python/docs/paths/pet/put.md @@ -40,40 +40,40 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -400 | [ResponseFor400.ApiResponse](#responsefor400-apiresponse) | Invalid ID supplied -404 | [ResponseFor404.ApiResponse](#responsefor404-apiresponse) | Pet not found -405 | [ResponseFor405.ApiResponse](#responsefor405-apiresponse) | Validation exception +400 | [_400.ApiResponse](#_400-apiresponse) | Invalid ID supplied +404 | [_404.ApiResponse](#_404-apiresponse) | Pet not found +405 | [_405.ApiResponse](#_405-apiresponse) | Validation exception -## ResponseFor400 +## _400 ### Description Invalid ID supplied -### ResponseFor400 ApiResponse +### _400 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | body | Unset | body was not defined | headers | Unset | headers were not defined | -## ResponseFor404 +## _404 ### Description Pet not found -### ResponseFor404 ApiResponse +### _404 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | body | Unset | body was not defined | headers | Unset | headers were not defined | -## ResponseFor405 +## _405 ### Description Validation exception -### ResponseFor405 ApiResponse +### _405 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/pet_find_by_status/get.md b/samples/client/petstore/python/docs/paths/pet_find_by_status/get.md index a74a0ed3279..691593e1282 100644 --- a/samples/client/petstore/python/docs/paths/pet_find_by_status/get.md +++ b/samples/client/petstore/python/docs/paths/pet_find_by_status/get.md @@ -79,14 +79,14 @@ HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned 200 | [SuccessfulXmlAndJsonArrayOfPet.ApiResponse](../../components/responses/response_successful_xml_and_json_array_of_pet.md#apiresponse) | successful operation, multiple content types -400 | [ResponseFor400.ApiResponse](#responsefor400-apiresponse) | Invalid status value +400 | [_400.ApiResponse](#_400-apiresponse) | Invalid status value -## ResponseFor400 +## _400 ### Description Invalid status value -### ResponseFor400 ApiResponse +### _400 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/pet_find_by_tags/get.md b/samples/client/petstore/python/docs/paths/pet_find_by_tags/get.md index 5d8f11595d3..300bffa1053 100644 --- a/samples/client/petstore/python/docs/paths/pet_find_by_tags/get.md +++ b/samples/client/petstore/python/docs/paths/pet_find_by_tags/get.md @@ -78,14 +78,14 @@ HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned 200 | [RefSuccessfulXmlAndJsonArrayOfPet.ApiResponse](../../components/responses/response_ref_successful_xml_and_json_array_of_pet.md#apiresponse) | successful operation, multiple content types -400 | [ResponseFor400.ApiResponse](#responsefor400-apiresponse) | Invalid tag value +400 | [_400.ApiResponse](#_400-apiresponse) | Invalid tag value -## ResponseFor400 +## _400 ### Description Invalid tag value -### ResponseFor400 ApiResponse +### _400 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/pet_pet_id/delete.md b/samples/client/petstore/python/docs/paths/pet_pet_id/delete.md index 6f1117bff1f..068a9a57b95 100644 --- a/samples/client/petstore/python/docs/paths/pet_pet_id/delete.md +++ b/samples/client/petstore/python/docs/paths/pet_pet_id/delete.md @@ -116,14 +116,14 @@ from_dict_ | [PathParametersDictInput](#pathparameters-pathparametersdictinput), HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -400 | [ResponseFor400.ApiResponse](#responsefor400-apiresponse) | Invalid pet value +400 | [_400.ApiResponse](#_400-apiresponse) | Invalid pet value -## ResponseFor400 +## _400 ### Description Invalid pet value -### ResponseFor400 ApiResponse +### _400 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/pet_pet_id/get.md b/samples/client/petstore/python/docs/paths/pet_pet_id/get.md index e487d3fcdfc..b79b6eeac69 100644 --- a/samples/client/petstore/python/docs/paths/pet_pet_id/get.md +++ b/samples/client/petstore/python/docs/paths/pet_pet_id/get.md @@ -78,30 +78,30 @@ from_dict_ | [PathParametersDictInput](#pathparameters-pathparametersdictinput), HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation -400 | [ResponseFor400.ApiResponse](#responsefor400-apiresponse) | Invalid ID supplied -404 | [ResponseFor404.ApiResponse](#responsefor404-apiresponse) | Pet not found +200 | [_200.ApiResponse](#_200-apiresponse) | successful operation +400 | [_400.ApiResponse](#_400-apiresponse) | Invalid ID supplied +404 | [_404.ApiResponse](#_404-apiresponse) | Pet not found -## ResponseFor200 +## _200 ### Description successful operation -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | typing.Union[[pet.PetDict](../../components/schema/pet.md#petdict), [pet.PetDict](../../components/schema/pet.md#petdict)] | | +[body](#_200-body) | typing.Union[[pet.PetDict](../../components/schema/pet.md#petdict), [pet.PetDict](../../components/schema/pet.md#petdict)] | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/xml" | [content.application_xml.Schema](#responsefor200-content-applicationxml-schema) -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/xml" | [content.application_xml.Schema](#_200-content-applicationxml-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationXml Schema +#### _200 content ApplicationXml Schema ``` type: schemas.Schema ``` @@ -110,7 +110,7 @@ type: schemas.Schema Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- [**pet.Pet**](../../components/schema/pet.md) | [pet.PetDictInput](../../components/schema/pet.md#petdictinput), [pet.PetDict](../../components/schema/pet.md#petdict) | [pet.PetDict](../../components/schema/pet.md#petdict) -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` @@ -120,24 +120,24 @@ Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- [**ref_pet.RefPet**](../../components/schema/ref_pet.md) | [pet.PetDictInput](../../components/schema/pet.md#petdictinput), [pet.PetDict](../../components/schema/pet.md#petdict) | [pet.PetDict](../../components/schema/pet.md#petdict) -## ResponseFor400 +## _400 ### Description Invalid ID supplied -### ResponseFor400 ApiResponse +### _400 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | body | Unset | body was not defined | headers | Unset | headers were not defined | -## ResponseFor404 +## _404 ### Description Pet not found -### ResponseFor404 ApiResponse +### _404 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/pet_pet_id/post.md b/samples/client/petstore/python/docs/paths/pet_pet_id/post.md index 2cab9581000..f3ba7e4abd8 100644 --- a/samples/client/petstore/python/docs/paths/pet_pet_id/post.md +++ b/samples/client/petstore/python/docs/paths/pet_pet_id/post.md @@ -130,14 +130,14 @@ from_dict_ | [PathParametersDictInput](#pathparameters-pathparametersdictinput), HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -405 | [ResponseFor405.ApiResponse](#responsefor405-apiresponse) | Invalid input +405 | [_405.ApiResponse](#_405-apiresponse) | Invalid input -## ResponseFor405 +## _405 ### Description Invalid input -### ResponseFor405 ApiResponse +### _405 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/store_order/post.md b/samples/client/petstore/python/docs/paths/store_order/post.md index 10f72272cbf..309283209df 100644 --- a/samples/client/petstore/python/docs/paths/store_order/post.md +++ b/samples/client/petstore/python/docs/paths/store_order/post.md @@ -59,29 +59,29 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation -400 | [ResponseFor400.ApiResponse](#responsefor400-apiresponse) | Invalid Order +200 | [_200.ApiResponse](#_200-apiresponse) | successful operation +400 | [_400.ApiResponse](#_400-apiresponse) | Invalid Order -## ResponseFor200 +## _200 ### Description successful operation -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | typing.Union[[order.OrderDict](../../components/schema/order.md#orderdict), [order.OrderDict](../../components/schema/order.md#orderdict)] | | +[body](#_200-body) | typing.Union[[order.OrderDict](../../components/schema/order.md#orderdict), [order.OrderDict](../../components/schema/order.md#orderdict)] | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/xml" | [content.application_xml.Schema](#responsefor200-content-applicationxml-schema) -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/xml" | [content.application_xml.Schema](#_200-content-applicationxml-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationXml Schema +#### _200 content ApplicationXml Schema ``` type: schemas.Schema ``` @@ -90,7 +90,7 @@ type: schemas.Schema Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- [**order.Order**](../../components/schema/order.md) | [order.OrderDictInput](../../components/schema/order.md#orderdictinput), [order.OrderDict](../../components/schema/order.md#orderdict) | [order.OrderDict](../../components/schema/order.md#orderdict) -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` @@ -100,12 +100,12 @@ Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- [**order.Order**](../../components/schema/order.md) | [order.OrderDictInput](../../components/schema/order.md#orderdictinput), [order.OrderDict](../../components/schema/order.md#orderdict) | [order.OrderDict](../../components/schema/order.md#orderdict) -## ResponseFor400 +## _400 ### Description Invalid Order -### ResponseFor400 ApiResponse +### _400 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/store_order_order_id/delete.md b/samples/client/petstore/python/docs/paths/store_order_order_id/delete.md index b6e7e8d744f..6aab6b2473a 100644 --- a/samples/client/petstore/python/docs/paths/store_order_order_id/delete.md +++ b/samples/client/petstore/python/docs/paths/store_order_order_id/delete.md @@ -75,27 +75,27 @@ from_dict_ | [PathParametersDictInput](#pathparameters-pathparametersdictinput), HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -400 | [ResponseFor400.ApiResponse](#responsefor400-apiresponse) | Invalid ID supplied -404 | [ResponseFor404.ApiResponse](#responsefor404-apiresponse) | Order not found +400 | [_400.ApiResponse](#_400-apiresponse) | Invalid ID supplied +404 | [_404.ApiResponse](#_404-apiresponse) | Order not found -## ResponseFor400 +## _400 ### Description Invalid ID supplied -### ResponseFor400 ApiResponse +### _400 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | body | Unset | body was not defined | headers | Unset | headers were not defined | -## ResponseFor404 +## _404 ### Description Order not found -### ResponseFor404 ApiResponse +### _404 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/store_order_order_id/get.md b/samples/client/petstore/python/docs/paths/store_order_order_id/get.md index e4340f5e357..aa9ded1f1e7 100644 --- a/samples/client/petstore/python/docs/paths/store_order_order_id/get.md +++ b/samples/client/petstore/python/docs/paths/store_order_order_id/get.md @@ -76,30 +76,30 @@ from_dict_ | [PathParametersDictInput](#pathparameters-pathparametersdictinput), HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation -400 | [ResponseFor400.ApiResponse](#responsefor400-apiresponse) | Invalid ID supplied -404 | [ResponseFor404.ApiResponse](#responsefor404-apiresponse) | Order not found +200 | [_200.ApiResponse](#_200-apiresponse) | successful operation +400 | [_400.ApiResponse](#_400-apiresponse) | Invalid ID supplied +404 | [_404.ApiResponse](#_404-apiresponse) | Order not found -## ResponseFor200 +## _200 ### Description successful operation -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | typing.Union[[order.OrderDict](../../components/schema/order.md#orderdict), [order.OrderDict](../../components/schema/order.md#orderdict)] | | +[body](#_200-body) | typing.Union[[order.OrderDict](../../components/schema/order.md#orderdict), [order.OrderDict](../../components/schema/order.md#orderdict)] | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/xml" | [content.application_xml.Schema](#responsefor200-content-applicationxml-schema) -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/xml" | [content.application_xml.Schema](#_200-content-applicationxml-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationXml Schema +#### _200 content ApplicationXml Schema ``` type: schemas.Schema ``` @@ -108,7 +108,7 @@ type: schemas.Schema Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- [**order.Order**](../../components/schema/order.md) | [order.OrderDictInput](../../components/schema/order.md#orderdictinput), [order.OrderDict](../../components/schema/order.md#orderdict) | [order.OrderDict](../../components/schema/order.md#orderdict) -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` @@ -118,24 +118,24 @@ Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- [**order.Order**](../../components/schema/order.md) | [order.OrderDictInput](../../components/schema/order.md#orderdictinput), [order.OrderDict](../../components/schema/order.md#orderdict) | [order.OrderDict](../../components/schema/order.md#orderdict) -## ResponseFor400 +## _400 ### Description Invalid ID supplied -### ResponseFor400 ApiResponse +### _400 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | body | Unset | body was not defined | headers | Unset | headers were not defined | -## ResponseFor404 +## _404 ### Description Order not found -### ResponseFor404 ApiResponse +### _404 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/user_login/get.md b/samples/client/petstore/python/docs/paths/user_login/get.md index e16d0929cd8..19f6bb6188d 100644 --- a/samples/client/petstore/python/docs/paths/user_login/get.md +++ b/samples/client/petstore/python/docs/paths/user_login/get.md @@ -79,29 +79,29 @@ from_dict_ | [QueryParametersDictInput](#queryparameters-queryparametersdictinpu HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation -400 | [ResponseFor400.ApiResponse](#responsefor400-apiresponse) | Invalid username/password supplied +200 | [_200.ApiResponse](#_200-apiresponse) | successful operation +400 | [_400.ApiResponse](#_400-apiresponse) | Invalid username/password supplied -## ResponseFor200 +## _200 ### Description successful operation -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | typing.Union[str, str] | | +[body](#_200-body) | typing.Union[str, str] | | [headers](#headers) | [HeadersDict](#headers-headersdict) | | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/xml" | [content.application_xml.Schema](#responsefor200-content-applicationxml-schema) -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/xml" | [content.application_xml.Schema](#_200-content-applicationxml-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationXml Schema +#### _200 content ApplicationXml Schema ``` type: schemas.Schema ``` @@ -110,7 +110,7 @@ type: schemas.Schema Input Type | Return Type | Notes ------------ | ------------- | ------------- str | str | -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` @@ -121,7 +121,7 @@ Input Type | Return Type | Notes str | str | ### Headers -#### ResponseFor200 Headers +#### _200 Headers ``` type: schemas.Schema ``` @@ -129,9 +129,9 @@ type: schemas.Schema ##### validate method Input Type | Return Type | Notes ------------ | ------------- | ------------- -[HeadersDictInput](#responsefor200-headers-headersdictinput), [HeadersDict](#responsefor200-headers-headersdict) | [HeadersDict](#responsefor200-headers-headersdict) | +[HeadersDictInput](#_200-headers-headersdictinput), [HeadersDict](#_200-headers-headersdict) | [HeadersDict](#_200-headers-headersdict) | -##### ResponseFor200 Headers HeadersDictInput +##### _200 Headers HeadersDictInput ``` type: typing.TypedDict ``` @@ -143,7 +143,7 @@ Key | Type | Description | Notes **X-Expires-After** | str, datetime.datetime | | [optional] **numberHeader** | str | | [optional] -##### ResponseFor200 Headers HeadersDict +##### _200 Headers HeadersDict ``` base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] @@ -163,11 +163,11 @@ Property | Type | Description | Notes ###### methods Method | Input Type | Return Type | Notes ------ | ---------- | ----------- | ------ -from_dict_ | [HeadersDictInput](#responsefor200-headers-headersdictinput), [HeadersDict](#responsefor200-headers-headersdict) | [HeadersDict](#responsefor200-headers-headersdict) | a constructor +from_dict_ | [HeadersDictInput](#_200-headers-headersdictinput), [HeadersDict](#_200-headers-headersdict) | [HeadersDict](#_200-headers-headersdict) | a constructor __getitem__ | str | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | This model has invalid python names so this method is used under the hood when you access instance["X-Rate-Limit"], instance["ref-content-schema-header"], instance["X-Expires-After"], ### Header Details -#### ResponseFor200 headers XRateLimit +#### _200 headers XRateLimit ##### Description calls per hour allowed by the user @@ -175,9 +175,9 @@ calls per hour allowed by the user ##### Content Type To Schema Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#responsefor200-headers-xratelimit-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#_200-headers-xratelimit-content-applicationjson-schema) -##### ResponseFor200 headers XRateLimit content ApplicationJson Schema +##### _200 headers XRateLimit content ApplicationJson Schema ``` type: schemas.Schema ``` @@ -186,12 +186,12 @@ type: schemas.Schema Input Type | Return Type | Notes ------------ | ------------- | ------------- int | int | value must be a 32 bit integer -#### ResponseFor200 headers XExpiresAfter +#### _200 headers XExpiresAfter ##### Description date in UTC when token expires -##### ResponseFor200 headers XExpiresAfter Schema +##### _200 headers XExpiresAfter Schema ``` type: schemas.Schema ``` @@ -201,12 +201,12 @@ Input Type | Return Type | Notes ------------ | ------------- | ------------- str, datetime.datetime | str | value must conform to RFC-3339 date-time -## ResponseFor400 +## _400 ### Description Invalid username/password supplied -### ResponseFor400 ApiResponse +### _400 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/user_username/delete.md b/samples/client/petstore/python/docs/paths/user_username/delete.md index a0cb520b2d7..4aa794a076b 100644 --- a/samples/client/petstore/python/docs/paths/user_username/delete.md +++ b/samples/client/petstore/python/docs/paths/user_username/delete.md @@ -76,14 +76,14 @@ HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned 200 | [SuccessDescriptionOnly.ApiResponse](../../components/responses/response_success_description_only.md#apiresponse) | Success -404 | [ResponseFor404.ApiResponse](#responsefor404-apiresponse) | User not found +404 | [_404.ApiResponse](#_404-apiresponse) | User not found -## ResponseFor404 +## _404 ### Description User not found -### ResponseFor404 ApiResponse +### _404 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/user_username/get.md b/samples/client/petstore/python/docs/paths/user_username/get.md index 475fdba6faa..53ae23e7bed 100644 --- a/samples/client/petstore/python/docs/paths/user_username/get.md +++ b/samples/client/petstore/python/docs/paths/user_username/get.md @@ -76,30 +76,30 @@ from_dict_ | [PathParametersDictInput](#pathparameters-pathparametersdictinput), HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation -400 | [ResponseFor400.ApiResponse](#responsefor400-apiresponse) | Invalid username supplied -404 | [ResponseFor404.ApiResponse](#responsefor404-apiresponse) | User not found +200 | [_200.ApiResponse](#_200-apiresponse) | successful operation +400 | [_400.ApiResponse](#_400-apiresponse) | Invalid username supplied +404 | [_404.ApiResponse](#_404-apiresponse) | User not found -## ResponseFor200 +## _200 ### Description successful operation -### ResponseFor200 ApiResponse +### _200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | typing.Union[[user.UserDict](../../components/schema/user.md#userdict), [user.UserDict](../../components/schema/user.md#userdict)] | | +[body](#_200-body) | typing.Union[[user.UserDict](../../components/schema/user.md#userdict), [user.UserDict](../../components/schema/user.md#userdict)] | | headers | Unset | headers were not defined | -### ResponseFor200 Body +### _200 Body Content-Type | Schema ------------ | ------- -"application/xml" | [content.application_xml.Schema](#responsefor200-content-applicationxml-schema) -"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"application/xml" | [content.application_xml.Schema](#_200-content-applicationxml-schema) +"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) ### Body Details -#### ResponseFor200 content ApplicationXml Schema +#### _200 content ApplicationXml Schema ``` type: schemas.Schema ``` @@ -108,7 +108,7 @@ type: schemas.Schema Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- [**user.User**](../../components/schema/user.md) | [user.UserDictInput](../../components/schema/user.md#userdictinput), [user.UserDict](../../components/schema/user.md#userdict) | [user.UserDict](../../components/schema/user.md#userdict) -#### ResponseFor200 content ApplicationJson Schema +#### _200 content ApplicationJson Schema ``` type: schemas.Schema ``` @@ -118,24 +118,24 @@ Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- [**user.User**](../../components/schema/user.md) | [user.UserDictInput](../../components/schema/user.md#userdictinput), [user.UserDict](../../components/schema/user.md#userdict) | [user.UserDict](../../components/schema/user.md#userdict) -## ResponseFor400 +## _400 ### Description Invalid username supplied -### ResponseFor400 ApiResponse +### _400 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | body | Unset | body was not defined | headers | Unset | headers were not defined | -## ResponseFor404 +## _404 ### Description User not found -### ResponseFor404 ApiResponse +### _404 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/user_username/put.md b/samples/client/petstore/python/docs/paths/user_username/put.md index dfa103c39bb..68cbe13f1f1 100644 --- a/samples/client/petstore/python/docs/paths/user_username/put.md +++ b/samples/client/petstore/python/docs/paths/user_username/put.md @@ -97,27 +97,27 @@ from_dict_ | [PathParametersDictInput](#pathparameters-pathparametersdictinput), HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -400 | [ResponseFor400.ApiResponse](#responsefor400-apiresponse) | Invalid user supplied -404 | [ResponseFor404.ApiResponse](#responsefor404-apiresponse) | User not found +400 | [_400.ApiResponse](#_400-apiresponse) | Invalid user supplied +404 | [_404.ApiResponse](#_404-apiresponse) | User not found -## ResponseFor400 +## _400 ### Description Invalid user supplied -### ResponseFor400 ApiResponse +### _400 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | body | Unset | body was not defined | headers | Unset | headers were not defined | -## ResponseFor404 +## _404 ### Description User not found -### ResponseFor404 ApiResponse +### _404 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/operation.py b/samples/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/operation.py index bf5682f39ef..b9f65cbb914 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/responses/response_200/__init__.py index afdebba4002..560f3ce9821 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/delete/operation.py b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/delete/operation.py index 18f38d79303..4676156ecf0 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/delete/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/delete/operation.py @@ -26,11 +26,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/delete/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/delete/responses/response_200/__init__.py index cc70f4a4d33..a18aacf7a30 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/delete/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/delete/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -ResponseFor200 = response_success_description_only.SuccessDescriptionOnly +_200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/get/operation.py index 49412babef2..420ab75f546 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/get/operation.py @@ -24,11 +24,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/get/responses/response_200/__init__.py index cc70f4a4d33..a18aacf7a30 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/get/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -ResponseFor200 = response_success_description_only.SuccessDescriptionOnly +_200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/post/operation.py index 5feca60df9f..bd404786cde 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/post/operation.py @@ -24,11 +24,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/post/responses/response_200/__init__.py index cc70f4a4d33..a18aacf7a30 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/post/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -ResponseFor200 = response_success_description_only.SuccessDescriptionOnly +_200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/operation.py index edfae33f87b..ad407bf1172 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/operation.py @@ -39,11 +39,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/responses/response_200/__init__.py index cc70f4a4d33..a18aacf7a30 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -ResponseFor200 = response_success_description_only.SuccessDescriptionOnly +_200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake/get/operation.py index 79cab2a01a3..bfc84538ffb 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/get/operation.py @@ -39,13 +39,13 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], - '404': typing.Type[response_404.ResponseFor404], + '200': typing.Type[response_200._200], + '404': typing.Type[response_404._404], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, - '404': response_404.ResponseFor404, + '200': response_200._200, + '404': response_404._404, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake/get/responses/response_200/__init__.py index cc70f4a4d33..a18aacf7a30 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/get/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -ResponseFor200 = response_success_description_only.SuccessDescriptionOnly +_200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/get/responses/response_404/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake/get/responses/response_404/__init__.py index 020e6b1bd0f..630613c8dec 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/get/responses/response_404/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/get/responses/response_404/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor404(api_client.OpenApiResponse[ApiResponse]): +class _404(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/patch/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake/patch/operation.py index 8b10298f56d..da5c27ee800 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/patch/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/patch/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/patch/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake/patch/responses/response_200/__init__.py index afdebba4002..560f3ce9821 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/patch/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/patch/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake/post/operation.py index 2c6f5e07cc9..dd5b28bc2be 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/post/operation.py @@ -24,13 +24,13 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], - '404': typing.Type[response_404.ResponseFor404], + '200': typing.Type[response_200._200], + '404': typing.Type[response_404._404], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, - '404': response_404.ResponseFor404, + '200': response_200._200, + '404': response_404._404, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake/post/responses/response_200/__init__.py index cc70f4a4d33..a18aacf7a30 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/post/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -ResponseFor200 = response_success_description_only.SuccessDescriptionOnly +_200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/post/responses/response_404/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake/post/responses/response_404/__init__.py index a26cc9e30cd..7908e6c0065 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/post/responses/response_404/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/post/responses/response_404/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor404(api_client.OpenApiResponse[ApiResponse]): +class _404(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/operation.py index 144f2534b5f..e319ad3102c 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/responses/response_200/__init__.py index 5a324510676..9b719755d11 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/operation.py index f97a9eee03f..0a026dd9842 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/responses/response_200/__init__.py index cc70f4a4d33..a18aacf7a30 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -ResponseFor200 = response_success_description_only.SuccessDescriptionOnly +_200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/operation.py index a5a9d893878..9f2311cd414 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/operation.py @@ -21,11 +21,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/responses/response_200/__init__.py index cc70f4a4d33..a18aacf7a30 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -ResponseFor200 = response_success_description_only.SuccessDescriptionOnly +_200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/operation.py index 0aa96e7281c..2097df435ca 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/operation.py @@ -25,11 +25,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/responses/response_200/__init__.py index cc70f4a4d33..a18aacf7a30 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -ResponseFor200 = response_success_description_only.SuccessDescriptionOnly +_200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/operation.py index 87decd532cc..5c945c0c48a 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/operation.py @@ -21,11 +21,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/responses/response_200/__init__.py index afdebba4002..560f3ce9821 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/operation.py index 050ff2acbe5..e7624e47ceb 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/operation.py @@ -23,11 +23,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/responses/response_200/__init__.py index cc70f4a4d33..a18aacf7a30 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -ResponseFor200 = response_success_description_only.SuccessDescriptionOnly +_200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_health/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_health/get/operation.py index 36c16754ea9..7a3e85ba9a3 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_health/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_health/get/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_health/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_health/get/responses/response_200/__init__.py index 17c99a51b12..008ed1a81e2 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_health/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_health/get/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/operation.py index b2eb3515bbe..a04b3343ce3 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/responses/response_200/__init__.py index cc70f4a4d33..a18aacf7a30 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -ResponseFor200 = response_success_description_only.SuccessDescriptionOnly +_200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/operation.py index a8c6cc9a17a..52121a662c2 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/operation.py @@ -26,11 +26,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/responses/response_200/__init__.py index 39094120d1c..e84b129cc90 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/responses/response_200/__init__.py @@ -19,7 +19,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/operation.py index 8312ffc16ee..07796436bfe 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/responses/response_200/__init__.py index cc70f4a4d33..a18aacf7a30 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -ResponseFor200 = response_success_description_only.SuccessDescriptionOnly +_200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/operation.py index f8960b8944b..6e4bbcfe0dd 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/responses/response_200/__init__.py index cc70f4a4d33..a18aacf7a30 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -ResponseFor200 = response_success_description_only.SuccessDescriptionOnly +_200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/operation.py index 5d76437a156..6659a41ec31 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/responses/response_200/__init__.py index 3273086097e..0f29ec04d65 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/operation.py index 23ad81313f1..69193ee9334 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/operation.py @@ -17,11 +17,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/responses/response_200/__init__.py index 8e003c5c0ee..120c0856575 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/operation.py index ac626266abe..1c91c6da80b 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/operation.py @@ -17,13 +17,13 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], - '202': typing.Type[response_202.ResponseFor202], + '200': typing.Type[response_200._200], + '202': typing.Type[response_202._202], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, - '202': response_202.ResponseFor202, + '200': response_200._200, + '202': response_202._202, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/responses/response_200/__init__.py index 8e003c5c0ee..120c0856575 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/responses/response_202/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/responses/response_202/__init__.py index f0075b24e9f..e5546a91643 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/responses/response_202/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/responses/response_202/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor202(api_client.OpenApiResponse[ApiResponse]): +class _202(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/operation.py index 858d1e167c4..0d3b9232f4c 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/operation.py @@ -25,11 +25,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/responses/response_200/__init__.py index 8e003c5c0ee..120c0856575 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/operation.py index a58ad0b399f..cc5948301c2 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/operation.py @@ -19,11 +19,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/responses/response_200/__init__.py index cc70f4a4d33..a18aacf7a30 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -ResponseFor200 = response_success_description_only.SuccessDescriptionOnly +_200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/operation.py index 4e343511720..43f3c1df4cd 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/operation.py @@ -68,11 +68,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/responses/response_200/__init__.py index 8e003c5c0ee..120c0856575 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_pem_content_type/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_pem_content_type/get/operation.py index afb9d14839f..0cf22eed68c 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_pem_content_type/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_pem_content_type/get/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_pem_content_type/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_pem_content_type/get/responses/response_200/__init__.py index 6d51cc074a6..76b5016f07e 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_pem_content_type/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_pem_content_type/get/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/operation.py index f724f27b0ef..eaf11092f0d 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/operation.py @@ -26,11 +26,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/responses/response_200/__init__.py index 248a4f0c101..4d3c678b0cd 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/operation.py index 75e358b5469..d2d439f957a 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/operation.py @@ -19,11 +19,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/responses/response_200/__init__.py index 8e003c5c0ee..120c0856575 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/operation.py index 108b1cd7688..449084481fa 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/operation.py @@ -17,20 +17,20 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '303': typing.Type[response_303.ResponseFor303], + '303': typing.Type[response_303._303], } ) _status_code_to_response: __StatusCodeToResponse = { - '303': response_303.ResponseFor303, + '303': response_303._303, } __RangedStatusCodeToResponse = typing.TypedDict( '__RangedStatusCodeToResponse', { - '3': typing.Type[response_3xx.ResponseFor3XX], + '3': typing.Type[response_3xx._3XX], } ) _ranged_status_code_to_response: __RangedStatusCodeToResponse = { - '3': response_3xx.ResponseFor3XX, + '3': response_3xx._3XX, } _non_error_status_codes = frozenset({ '303', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/responses/response_303/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/responses/response_303/__init__.py index 4628ca92cc9..cdd200d09a0 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/responses/response_303/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/responses/response_303/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor303(api_client.OpenApiResponse[ApiResponse]): +class _303(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/responses/response_3xx/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/responses/response_3xx/__init__.py index 2f1ea10abca..75ef12173c7 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/responses/response_3xx/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/responses/response_3xx/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor3XX(api_client.OpenApiResponse[ApiResponse]): +class _3XX(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/operation.py index 316c59752f5..4634b268927 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/operation.py @@ -19,11 +19,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/responses/response_200/__init__.py index cc70f4a4d33..a18aacf7a30 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -ResponseFor200 = response_success_description_only.SuccessDescriptionOnly +_200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/operation.py index ba428ee4d2d..7a406d3f4bb 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/responses/response_200/__init__.py index f9c6be5be67..24bdeabbc8a 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/operation.py index 9584da9503d..cc90106b7aa 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/responses/response_200/__init__.py index d4d99d8f4c0..3f92959d145 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/operation.py index d5073c42db7..39a1179f872 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/responses/response_200/__init__.py index a1f8345ca27..7872917bf3a 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/operation.py index d1c95b602d2..d256a490506 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/responses/response_200/__init__.py index 8e003c5c0ee..120c0856575 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/operation.py index cc3c2201371..902260cd144 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/responses/response_200/__init__.py index 0edeab3b69b..a208a059a73 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/responses/response_200/__init__.py @@ -18,7 +18,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/operation.py index 33300ac9a7c..b723c9b7136 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/responses/response_200/__init__.py index 8e003c5c0ee..120c0856575 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/operation.py index c44194a4198..51c1d340c11 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/responses/response_200/__init__.py index 28852d70a4a..ee146edbd45 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/operation.py index 2af10fd75b5..408194fc324 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/responses/response_200/__init__.py index 4038a9891f9..e55ec1243b3 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/operation.py index b82679b7668..8c18b77aa93 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/responses/response_200/__init__.py index 77c86752079..06576ab69aa 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_response_without_schema/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_response_without_schema/get/operation.py index a39abc0841f..d7223b1bb8c 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_response_without_schema/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_response_without_schema/get/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_response_without_schema/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_response_without_schema/get/responses/response_200/__init__.py index 83c0f418c5b..eac434a907b 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_response_without_schema/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_response_without_schema/get/responses/response_200/__init__.py @@ -14,7 +14,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/operation.py index e40af7a0bfe..aae0a44d5eb 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/operation.py @@ -31,11 +31,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/responses/response_200/__init__.py index cc70f4a4d33..a18aacf7a30 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -ResponseFor200 = response_success_description_only.SuccessDescriptionOnly +_200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/operation.py index 717e328e31a..ca4324aff85 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/responses/response_200/__init__.py index 53bb8bde038..5ae816631b3 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/operation.py index f3d1334e629..f5fdce4a843 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/responses/response_200/__init__.py index 248a4f0c101..4d3c678b0cd 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/operation.py index 7a72497cf60..b3f07a92f24 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/responses/response_200/__init__.py index 248a4f0c101..4d3c678b0cd 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/operation.py index a27c7eedc68..f1423b4d665 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/operation.py @@ -21,28 +21,28 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } __RangedStatusCodeToResponse = typing.TypedDict( '__RangedStatusCodeToResponse', { - '1': typing.Type[response_1xx.ResponseFor1XX], - '2': typing.Type[response_2xx.ResponseFor2XX], - '3': typing.Type[response_3xx.ResponseFor3XX], - '4': typing.Type[response_4xx.ResponseFor4XX], - '5': typing.Type[response_5xx.ResponseFor5XX], + '1': typing.Type[response_1xx._1XX], + '2': typing.Type[response_2xx._2XX], + '3': typing.Type[response_3xx._3XX], + '4': typing.Type[response_4xx._4XX], + '5': typing.Type[response_5xx._5XX], } ) _ranged_status_code_to_response: __RangedStatusCodeToResponse = { - '1': response_1xx.ResponseFor1XX, - '2': response_2xx.ResponseFor2XX, - '3': response_3xx.ResponseFor3XX, - '4': response_4xx.ResponseFor4XX, - '5': response_5xx.ResponseFor5XX, + '1': response_1xx._1XX, + '2': response_2xx._2XX, + '3': response_3xx._3XX, + '4': response_4xx._4XX, + '5': response_5xx._5XX, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_1xx/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_1xx/__init__.py index 6c76920b8f4..5f33267e608 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_1xx/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_1xx/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor1XX(api_client.OpenApiResponse[ApiResponse]): +class _1XX(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_200/__init__.py index 8e003c5c0ee..120c0856575 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_2xx/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_2xx/__init__.py index 6f72f463ee6..23f9abc85bc 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_2xx/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_2xx/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor2XX(api_client.OpenApiResponse[ApiResponse]): +class _2XX(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_3xx/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_3xx/__init__.py index 039cc0ba83a..5afead532c6 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_3xx/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_3xx/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor3XX(api_client.OpenApiResponse[ApiResponse]): +class _3XX(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_4xx/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_4xx/__init__.py index 02ede398c13..bd6001e3911 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_4xx/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_4xx/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor4XX(api_client.OpenApiResponse[ApiResponse]): +class _4XX(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_5xx/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_5xx/__init__.py index 2a02a6596fc..af5c0e413c7 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_5xx/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_5xx/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor5XX(api_client.OpenApiResponse[ApiResponse]): +class _5XX(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/pet/post/operation.py index 9aef38d340c..781143f9225 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet/post/operation.py @@ -30,13 +30,13 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], - '405': typing.Type[response_405.ResponseFor405], + '200': typing.Type[response_200._200], + '405': typing.Type[response_405._405], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, - '405': response_405.ResponseFor405, + '200': response_200._200, + '405': response_405._405, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet/post/responses/response_200/__init__.py index cc70f4a4d33..a18aacf7a30 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet/post/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -ResponseFor200 = response_success_description_only.SuccessDescriptionOnly +_200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet/post/responses/response_405/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet/post/responses/response_405/__init__.py index 1f4a53b1278..d42e0114643 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet/post/responses/response_405/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet/post/responses/response_405/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor405(api_client.OpenApiResponse[ApiResponse]): +class _405(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet/put/operation.py b/samples/client/petstore/python/src/petstore_api/paths/pet/put/operation.py index 93fd7202e01..e6a0fddcd36 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet/put/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet/put/operation.py @@ -29,15 +29,15 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '400': typing.Type[response_400.ResponseFor400], - '404': typing.Type[response_404.ResponseFor404], - '405': typing.Type[response_405.ResponseFor405], + '400': typing.Type[response_400._400], + '404': typing.Type[response_404._404], + '405': typing.Type[response_405._405], } ) _status_code_to_response: __StatusCodeToResponse = { - '400': response_400.ResponseFor400, - '404': response_404.ResponseFor404, - '405': response_405.ResponseFor405, + '400': response_400._400, + '404': response_404._404, + '405': response_405._405, } _error_status_codes = frozenset({ '400', diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_400/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_400/__init__.py index 1068972f236..6ee73dfaab4 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_400/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_400/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor400(api_client.OpenApiResponse[ApiResponse]): +class _400(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_404/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_404/__init__.py index a26cc9e30cd..7908e6c0065 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_404/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_404/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor404(api_client.OpenApiResponse[ApiResponse]): +class _404(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_405/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_405/__init__.py index 1f4a53b1278..d42e0114643 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_405/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_405/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor405(api_client.OpenApiResponse[ApiResponse]): +class _405(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/operation.py index e43b6908862..7c264732345 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/operation.py @@ -33,13 +33,13 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], - '400': typing.Type[response_400.ResponseFor400], + '200': typing.Type[response_200._200], + '400': typing.Type[response_400._400], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, - '400': response_400.ResponseFor400, + '200': response_200._200, + '400': response_400._400, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/responses/response_200/__init__.py index 5e4ccdedb27..36d56f4ec5d 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_successful_xml_and_json_array_of_pet -ResponseFor200 = response_successful_xml_and_json_array_of_pet.SuccessfulXmlAndJsonArrayOfPet +_200 = response_successful_xml_and_json_array_of_pet.SuccessfulXmlAndJsonArrayOfPet ApiResponse = response_successful_xml_and_json_array_of_pet.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/responses/response_400/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/responses/response_400/__init__.py index 1068972f236..6ee73dfaab4 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/responses/response_400/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/responses/response_400/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor400(api_client.OpenApiResponse[ApiResponse]): +class _400(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/operation.py index 2aec65218b6..6dd45540a83 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/operation.py @@ -31,13 +31,13 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], - '400': typing.Type[response_400.ResponseFor400], + '200': typing.Type[response_200._200], + '400': typing.Type[response_400._400], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, - '400': response_400.ResponseFor400, + '200': response_200._200, + '400': response_400._400, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/responses/response_200/__init__.py index 67e7a566b0c..c42166f5ef6 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_ref_successful_xml_and_json_array_of_pet -ResponseFor200 = response_ref_successful_xml_and_json_array_of_pet.RefSuccessfulXmlAndJsonArrayOfPet +_200 = response_ref_successful_xml_and_json_array_of_pet.RefSuccessfulXmlAndJsonArrayOfPet ApiResponse = response_ref_successful_xml_and_json_array_of_pet.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/responses/response_400/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/responses/response_400/__init__.py index 1068972f236..6ee73dfaab4 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/responses/response_400/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/responses/response_400/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor400(api_client.OpenApiResponse[ApiResponse]): +class _400(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/operation.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/operation.py index 38e3126950f..7508a24f1c4 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/operation.py @@ -35,11 +35,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '400': typing.Type[response_400.ResponseFor400], + '400': typing.Type[response_400._400], } ) _status_code_to_response: __StatusCodeToResponse = { - '400': response_400.ResponseFor400, + '400': response_400._400, } _error_status_codes = frozenset({ '400', diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/responses/response_400/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/responses/response_400/__init__.py index 1068972f236..6ee73dfaab4 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/responses/response_400/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/responses/response_400/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor400(api_client.OpenApiResponse[ApiResponse]): +class _400(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/operation.py index 963ca257e2f..d099b894201 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/operation.py @@ -28,15 +28,15 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], - '400': typing.Type[response_400.ResponseFor400], - '404': typing.Type[response_404.ResponseFor404], + '200': typing.Type[response_200._200], + '400': typing.Type[response_400._400], + '404': typing.Type[response_404._404], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, - '400': response_400.ResponseFor400, - '404': response_404.ResponseFor404, + '200': response_200._200, + '400': response_400._400, + '404': response_404._404, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_200/__init__.py index 35863b62900..fbefabb3292 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_200/__init__.py @@ -19,7 +19,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_400/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_400/__init__.py index 1068972f236..6ee73dfaab4 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_400/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_400/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor400(api_client.OpenApiResponse[ApiResponse]): +class _400(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_404/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_404/__init__.py index a26cc9e30cd..7908e6c0065 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_404/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_404/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor404(api_client.OpenApiResponse[ApiResponse]): +class _404(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/operation.py index 7be0122bb45..704a40b5524 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/operation.py @@ -30,11 +30,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '405': typing.Type[response_405.ResponseFor405], + '405': typing.Type[response_405._405], } ) _status_code_to_response: __StatusCodeToResponse = { - '405': response_405.ResponseFor405, + '405': response_405._405, } _error_status_codes = frozenset({ '405', diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/responses/response_405/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/responses/response_405/__init__.py index 1f4a53b1278..d42e0114643 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/responses/response_405/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/responses/response_405/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor405(api_client.OpenApiResponse[ApiResponse]): +class _405(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/operation.py index db6785b81b0..64b9d5adf51 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/operation.py @@ -26,11 +26,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/responses/response_200/__init__.py index 7584e451fec..93f51f8603a 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_with_json_api_response -ResponseFor200 = response_success_with_json_api_response.SuccessWithJsonApiResponse +_200 = response_success_with_json_api_response.SuccessWithJsonApiResponse ApiResponse = response_success_with_json_api_response.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/solidus/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/solidus/get/operation.py index 16635b6cfc6..375bd71bdfc 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/solidus/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/solidus/get/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/solidus/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/solidus/get/responses/response_200/__init__.py index cc70f4a4d33..a18aacf7a30 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/solidus/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/solidus/get/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -ResponseFor200 = response_success_description_only.SuccessDescriptionOnly +_200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_inventory/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/store_inventory/get/operation.py index 54e1f7f5e55..9a26e2dd175 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_inventory/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_inventory/get/operation.py @@ -19,11 +19,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], + '200': typing.Type[response_200._200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, + '200': response_200._200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_inventory/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/store_inventory/get/responses/response_200/__init__.py index b103a1afd41..6cbc4e76f15 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_inventory/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_inventory/get/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_inline_content_and_header -ResponseFor200 = response_success_inline_content_and_header.SuccessInlineContentAndHeader +_200 = response_success_inline_content_and_header.SuccessInlineContentAndHeader ApiResponse = response_success_inline_content_and_header.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/store_order/post/operation.py index 215f6acebd0..e73897873f4 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order/post/operation.py @@ -19,13 +19,13 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], - '400': typing.Type[response_400.ResponseFor400], + '200': typing.Type[response_200._200], + '400': typing.Type[response_400._400], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, - '400': response_400.ResponseFor400, + '200': response_200._200, + '400': response_400._400, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/store_order/post/responses/response_200/__init__.py index 8994a608bb9..f6b8f2dc608 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order/post/responses/response_200/__init__.py @@ -19,7 +19,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order/post/responses/response_400/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/store_order/post/responses/response_400/__init__.py index 1068972f236..6ee73dfaab4 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order/post/responses/response_400/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order/post/responses/response_400/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor400(api_client.OpenApiResponse[ApiResponse]): +class _400(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/operation.py b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/operation.py index 4626f4516a0..5d46a677d5b 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/operation.py @@ -22,13 +22,13 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '400': typing.Type[response_400.ResponseFor400], - '404': typing.Type[response_404.ResponseFor404], + '400': typing.Type[response_400._400], + '404': typing.Type[response_404._404], } ) _status_code_to_response: __StatusCodeToResponse = { - '400': response_400.ResponseFor400, - '404': response_404.ResponseFor404, + '400': response_400._400, + '404': response_404._404, } _error_status_codes = frozenset({ '400', diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/responses/response_400/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/responses/response_400/__init__.py index 1068972f236..6ee73dfaab4 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/responses/response_400/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/responses/response_400/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor400(api_client.OpenApiResponse[ApiResponse]): +class _400(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/responses/response_404/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/responses/response_404/__init__.py index a26cc9e30cd..7908e6c0065 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/responses/response_404/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/responses/response_404/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor404(api_client.OpenApiResponse[ApiResponse]): +class _404(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/operation.py index a35b6d414e1..25948a689e4 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/operation.py @@ -23,15 +23,15 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], - '400': typing.Type[response_400.ResponseFor400], - '404': typing.Type[response_404.ResponseFor404], + '200': typing.Type[response_200._200], + '400': typing.Type[response_400._400], + '404': typing.Type[response_404._404], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, - '400': response_400.ResponseFor400, - '404': response_404.ResponseFor404, + '200': response_200._200, + '400': response_400._400, + '404': response_404._404, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_200/__init__.py index 8994a608bb9..f6b8f2dc608 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_200/__init__.py @@ -19,7 +19,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_400/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_400/__init__.py index 1068972f236..6ee73dfaab4 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_400/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_400/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor400(api_client.OpenApiResponse[ApiResponse]): +class _400(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_404/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_404/__init__.py index a26cc9e30cd..7908e6c0065 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_404/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_404/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor404(api_client.OpenApiResponse[ApiResponse]): +class _404(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/operation.py index a158ce96df2..317768a7275 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/operation.py @@ -26,13 +26,13 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], - '400': typing.Type[response_400.ResponseFor400], + '200': typing.Type[response_200._200], + '400': typing.Type[response_400._400], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, - '400': response_400.ResponseFor400, + '200': response_200._200, + '400': response_400._400, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/__init__.py index 535dbbe0ebf..9c5347bccc4 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/__init__.py @@ -32,7 +32,7 @@ class ApiResponse(api_response.ApiResponse): headers: header_parameters.HeadersDict -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_400/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_400/__init__.py index 1068972f236..6ee73dfaab4 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_400/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_400/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor400(api_client.OpenApiResponse[ApiResponse]): +class _400(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/operation.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/operation.py index fb6aab257d1..9f98c51bf31 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/operation.py @@ -22,13 +22,13 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], - '404': typing.Type[response_404.ResponseFor404], + '200': typing.Type[response_200._200], + '404': typing.Type[response_404._404], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, - '404': response_404.ResponseFor404, + '200': response_200._200, + '404': response_404._404, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/responses/response_200/__init__.py index cc70f4a4d33..a18aacf7a30 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -ResponseFor200 = response_success_description_only.SuccessDescriptionOnly +_200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/responses/response_404/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/responses/response_404/__init__.py index a26cc9e30cd..7908e6c0065 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/responses/response_404/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/responses/response_404/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor404(api_client.OpenApiResponse[ApiResponse]): +class _404(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/get/operation.py index c46922b2a3f..20cbaa6f4f4 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/get/operation.py @@ -23,15 +23,15 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200.ResponseFor200], - '400': typing.Type[response_400.ResponseFor400], - '404': typing.Type[response_404.ResponseFor404], + '200': typing.Type[response_200._200], + '400': typing.Type[response_400._400], + '404': typing.Type[response_404._404], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, - '400': response_400.ResponseFor400, - '404': response_404.ResponseFor404, + '200': response_200._200, + '400': response_400._400, + '404': response_404._404, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_200/__init__.py index 36a55077fe3..513b9171ca0 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_200/__init__.py @@ -19,7 +19,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): +class _200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_400/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_400/__init__.py index 1068972f236..6ee73dfaab4 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_400/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_400/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor400(api_client.OpenApiResponse[ApiResponse]): +class _400(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_404/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_404/__init__.py index a26cc9e30cd..7908e6c0065 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_404/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_404/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor404(api_client.OpenApiResponse[ApiResponse]): +class _404(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/put/operation.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/put/operation.py index 6a9736831d4..720a32a09cf 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/put/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/put/operation.py @@ -24,13 +24,13 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '400': typing.Type[response_400.ResponseFor400], - '404': typing.Type[response_404.ResponseFor404], + '400': typing.Type[response_400._400], + '404': typing.Type[response_404._404], } ) _status_code_to_response: __StatusCodeToResponse = { - '400': response_400.ResponseFor400, - '404': response_404.ResponseFor404, + '400': response_400._400, + '404': response_404._404, } _error_status_codes = frozenset({ '400', diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/put/responses/response_400/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/put/responses/response_400/__init__.py index 1068972f236..6ee73dfaab4 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/put/responses/response_400/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/put/responses/response_400/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor400(api_client.OpenApiResponse[ApiResponse]): +class _400(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/put/responses/response_404/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/put/responses/response_404/__init__.py index a26cc9e30cd..7908e6c0065 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/put/responses/response_404/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/put/responses/response_404/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class ResponseFor404(api_client.OpenApiResponse[ApiResponse]): +class _404(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/src/main/resources/java/src/main/java/packagename/components/responses/Response.hbs b/src/main/resources/java/src/main/java/packagename/components/responses/Response.hbs index f24e3082d7c..c498a65b161 100644 --- a/src/main/resources/java/src/main/java/packagename/components/responses/Response.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/responses/Response.hbs @@ -71,7 +71,7 @@ public class {{jsonPathPiece.pascalCase}} { {{#if hasContentSchema}} @Override - public SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected SealedResponseBody getBody(String contentType, byte[] body, SchemaConfiguration configuration) { SealedMediaType mediaType = content.get(contentType); if (mediaType == null) { throw new RuntimeException("Invalid contentType was received back from the server that does not exist in the openapi document"); @@ -90,13 +90,13 @@ public class {{jsonPathPiece.pascalCase}} { } {{else}} @Override - public Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { + protected Void getBody(String contentType, byte[] body, SchemaConfiguration configuration) { return null; } {{/if}} @Override - public Void getHeaders(HttpHeaders headers) { + protected Void getHeaders(HttpHeaders headers) { return null; } } diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/Schema_doc.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/Schema_doc.hbs index deca1fb2548..024a6669b58 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/Schema_doc.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/Schema_doc.hbs @@ -14,7 +14,7 @@ extends [{{refInfo.refClass}}]({{docRoot}}{{#with refInfo.ref}}{{pathFromDocRoot A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema -- abstract sealed interfaces 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 {{#if containsArrayOutputClass}} - classes to store validated list payloads, extends FrozenList @@ -34,7 +34,7 @@ A class that contains necessary nested {{#each (reverse getSchemas)}} {{#eq instanceType "schema"}} {{#eq refInfo null }} -| sealed interface | [{{../containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}Boxed](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxed" "")) }})
abstract sealed validated payload class | +| sealed interface | [{{../containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}Boxed](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxed" "")) }})
sealed interface for validated payloads | {{#each types}} {{#eq this "null"}} | record | [{{../../containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}BoxedVoid](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxedvoid" ""))}})
boxed class to store validated null payloads | diff --git a/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs b/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs index 3ef05124ac1..289c8e0fe87 100644 --- a/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs +++ b/src/main/resources/java/src/main/java/packagename/response/ResponseDeserializer.hbs @@ -32,8 +32,8 @@ public abstract class ResponseDeserializer Date: Thu, 22 Feb 2024 16:14:38 -0800 Subject: [PATCH 38/50] Sample regen with python fix --- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 6 +- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post.md | 14 ++-- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../python/docs/paths/operators/post.md | 6 +- .../paths/operators/post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../path_with_no_explicit_security/get.md | 6 +- .../path_with_one_explicit_security/get.md | 6 +- .../paths/path_with_security_from_root/get.md | 6 +- .../path_with_two_explicit_security/get.md | 6 +- .../get/operation.py | 4 +- .../get/responses/response_200/__init__.py | 2 +- .../get/operation.py | 4 +- .../get/responses/response_200/__init__.py | 2 +- .../get/operation.py | 4 +- .../get/responses/response_200/__init__.py | 2 +- .../get/operation.py | 4 +- .../get/responses/response_200/__init__.py | 2 +- .../docs/paths/another_fake_dummy/patch.md | 14 ++-- .../petstore/python/docs/paths/fake/get.md | 14 ++-- .../petstore/python/docs/paths/fake/patch.md | 14 ++-- .../petstore/python/docs/paths/fake/post.md | 6 +- .../get.md | 14 ++-- .../docs/paths/fake_classname_test/patch.md | 14 ++-- .../python/docs/paths/fake_health/get.md | 14 ++-- .../paths/fake_inline_composition/post.md | 36 ++++---- .../docs/paths/fake_json_with_charset/post.md | 14 ++-- .../post.md | 14 ++-- .../fake_multiple_response_bodies/get.md | 28 +++---- .../paths/fake_multiple_securities/get.md | 14 ++-- .../post.md | 14 ++-- .../docs/paths/fake_pem_content_type/get.md | 14 ++-- .../post.md | 14 ++-- .../get.md | 14 ++-- .../python/docs/paths/fake_redirection/get.md | 12 +-- .../paths/fake_refs_array_of_enums/post.md | 14 ++-- .../docs/paths/fake_refs_arraymodel/post.md | 14 ++-- .../docs/paths/fake_refs_boolean/post.md | 14 ++-- .../post.md | 14 ++-- .../python/docs/paths/fake_refs_enum/post.md | 14 ++-- .../docs/paths/fake_refs_mammal/post.md | 14 ++-- .../docs/paths/fake_refs_number/post.md | 14 ++-- .../post.md | 14 ++-- .../docs/paths/fake_refs_string/post.md | 14 ++-- .../paths/fake_response_without_schema/get.md | 10 +-- .../paths/fake_upload_download_file/post.md | 14 ++-- .../docs/paths/fake_upload_file/post.md | 14 ++-- .../docs/paths/fake_upload_files/post.md | 14 ++-- .../paths/fake_wild_card_responses/get.md | 84 +++++++++---------- .../petstore/python/docs/paths/pet/post.md | 6 +- .../petstore/python/docs/paths/pet/put.md | 18 ++-- .../docs/paths/pet_find_by_status/get.md | 6 +- .../python/docs/paths/pet_find_by_tags/get.md | 6 +- .../python/docs/paths/pet_pet_id/delete.md | 6 +- .../python/docs/paths/pet_pet_id/get.md | 30 +++---- .../python/docs/paths/pet_pet_id/post.md | 6 +- .../python/docs/paths/store_order/post.md | 24 +++--- .../docs/paths/store_order_order_id/delete.md | 12 +-- .../docs/paths/store_order_order_id/get.md | 30 +++---- .../python/docs/paths/user_login/get.md | 44 +++++----- .../python/docs/paths/user_username/delete.md | 6 +- .../python/docs/paths/user_username/get.md | 30 +++---- .../python/docs/paths/user_username/put.md | 12 +-- .../another_fake_dummy/patch/operation.py | 4 +- .../patch/responses/response_200/__init__.py | 2 +- .../common_param_sub_dir/delete/operation.py | 4 +- .../delete/responses/response_200/__init__.py | 2 +- .../common_param_sub_dir/get/operation.py | 4 +- .../get/responses/response_200/__init__.py | 2 +- .../common_param_sub_dir/post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../paths/fake/delete/operation.py | 4 +- .../delete/responses/response_200/__init__.py | 2 +- .../petstore_api/paths/fake/get/operation.py | 8 +- .../get/responses/response_200/__init__.py | 2 +- .../get/responses/response_404/__init__.py | 2 +- .../paths/fake/patch/operation.py | 4 +- .../patch/responses/response_200/__init__.py | 2 +- .../petstore_api/paths/fake/post/operation.py | 8 +- .../post/responses/response_200/__init__.py | 2 +- .../post/responses/response_404/__init__.py | 2 +- .../get/operation.py | 4 +- .../get/responses/response_200/__init__.py | 2 +- .../put/operation.py | 4 +- .../put/responses/response_200/__init__.py | 2 +- .../put/operation.py | 4 +- .../put/responses/response_200/__init__.py | 2 +- .../put/operation.py | 4 +- .../put/responses/response_200/__init__.py | 2 +- .../fake_classname_test/patch/operation.py | 4 +- .../patch/responses/response_200/__init__.py | 2 +- .../fake_delete_coffee_id/delete/operation.py | 4 +- .../delete/responses/response_200/__init__.py | 2 +- .../paths/fake_health/get/operation.py | 4 +- .../get/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../fake_inline_composition/post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../fake_json_form_data/get/operation.py | 4 +- .../get/responses/response_200/__init__.py | 2 +- .../paths/fake_json_patch/patch/operation.py | 4 +- .../patch/responses/response_200/__init__.py | 2 +- .../fake_json_with_charset/post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../get/operation.py | 8 +- .../get/responses/response_200/__init__.py | 2 +- .../get/responses/response_202/__init__.py | 2 +- .../fake_multiple_securities/get/operation.py | 4 +- .../get/responses/response_200/__init__.py | 2 +- .../paths/fake_obj_in_query/get/operation.py | 4 +- .../get/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../fake_pem_content_type/get/operation.py | 4 +- .../get/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../get/operation.py | 4 +- .../get/responses/response_200/__init__.py | 2 +- .../paths/fake_redirection/get/operation.py | 8 +- .../get/responses/response_303/__init__.py | 2 +- .../get/responses/response_3xx/__init__.py | 2 +- .../fake_ref_obj_in_query/get/operation.py | 4 +- .../get/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../fake_refs_arraymodel/post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../paths/fake_refs_boolean/post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../paths/fake_refs_enum/post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../paths/fake_refs_mammal/post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../paths/fake_refs_number/post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../paths/fake_refs_string/post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../get/operation.py | 4 +- .../get/responses/response_200/__init__.py | 2 +- .../put/operation.py | 4 +- .../put/responses/response_200/__init__.py | 2 +- .../post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../paths/fake_upload_file/post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../paths/fake_upload_files/post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../fake_wild_card_responses/get/operation.py | 24 +++--- .../get/responses/response_1xx/__init__.py | 2 +- .../get/responses/response_200/__init__.py | 2 +- .../get/responses/response_2xx/__init__.py | 2 +- .../get/responses/response_3xx/__init__.py | 2 +- .../get/responses/response_4xx/__init__.py | 2 +- .../get/responses/response_5xx/__init__.py | 2 +- .../petstore_api/paths/pet/post/operation.py | 8 +- .../post/responses/response_200/__init__.py | 2 +- .../post/responses/response_405/__init__.py | 2 +- .../petstore_api/paths/pet/put/operation.py | 12 +-- .../put/responses/response_400/__init__.py | 2 +- .../put/responses/response_404/__init__.py | 2 +- .../put/responses/response_405/__init__.py | 2 +- .../paths/pet_find_by_status/get/operation.py | 8 +- .../get/responses/response_200/__init__.py | 2 +- .../get/responses/response_400/__init__.py | 2 +- .../paths/pet_find_by_tags/get/operation.py | 8 +- .../get/responses/response_200/__init__.py | 2 +- .../get/responses/response_400/__init__.py | 2 +- .../paths/pet_pet_id/delete/operation.py | 4 +- .../delete/responses/response_400/__init__.py | 2 +- .../paths/pet_pet_id/get/operation.py | 12 +-- .../get/responses/response_200/__init__.py | 2 +- .../get/responses/response_400/__init__.py | 2 +- .../get/responses/response_404/__init__.py | 2 +- .../paths/pet_pet_id/post/operation.py | 4 +- .../post/responses/response_405/__init__.py | 2 +- .../pet_pet_id_upload_image/post/operation.py | 4 +- .../post/responses/response_200/__init__.py | 2 +- .../paths/solidus/get/operation.py | 4 +- .../get/responses/response_200/__init__.py | 2 +- .../paths/store_inventory/get/operation.py | 4 +- .../get/responses/response_200/__init__.py | 2 +- .../paths/store_order/post/operation.py | 8 +- .../post/responses/response_200/__init__.py | 2 +- .../post/responses/response_400/__init__.py | 2 +- .../store_order_order_id/delete/operation.py | 8 +- .../delete/responses/response_400/__init__.py | 2 +- .../delete/responses/response_404/__init__.py | 2 +- .../store_order_order_id/get/operation.py | 12 +-- .../get/responses/response_200/__init__.py | 2 +- .../get/responses/response_400/__init__.py | 2 +- .../get/responses/response_404/__init__.py | 2 +- .../paths/user_login/get/operation.py | 8 +- .../get/responses/response_200/__init__.py | 2 +- .../get/responses/response_400/__init__.py | 2 +- .../paths/user_username/delete/operation.py | 8 +- .../delete/responses/response_200/__init__.py | 2 +- .../delete/responses/response_404/__init__.py | 2 +- .../paths/user_username/get/operation.py | 12 +-- .../get/responses/response_200/__init__.py | 2 +- .../get/responses/response_400/__init__.py | 2 +- .../get/responses/response_404/__init__.py | 2 +- .../paths/user_username/put/operation.py | 8 +- .../put/responses/response_400/__init__.py | 2 +- .../put/responses/response_404/__init__.py | 2 +- .../generators/PythonClientGenerator.java | 2 +- 1590 files changed, 4353 insertions(+), 4353 deletions(-) diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post.md index 452947dcaee..f312006f588 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md index aad5323a5ed..95bb88f6efa 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md index 715f3f94e1a..29d067da7f4 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.md index abc3c6bdd11..3d963691b62 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.md index 720d7f05d5e..02f06c8e2fd 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_request_body/post.md index 78505556b3c..d8a24db91a3 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_simple_types_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_simple_types_request_body/post.md index 8b67353876f..0a01c74cdef 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_simple_types_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_simple_types_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_base_schema_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_base_schema_request_body/post.md index 35333e788c1..874d4202513 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_base_schema_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_base_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_one_empty_schema_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_one_empty_schema_request_body/post.md index e6ca781c9af..8117298865b 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_one_empty_schema_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_one_empty_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.md index b68b83d4cbe..646a46f821c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.md index 156d76bb4a2..c365d970a7d 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.md index bafeb9fea55..b22331cb592 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_complex_types_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_complex_types_request_body/post.md index 41883bdf1a6..33f97e54a7d 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_complex_types_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_complex_types_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_request_body/post.md index 227d5d1f856..f7b5e3192df 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_with_base_schema_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_with_base_schema_request_body/post.md index 7abca91a35d..4c2144060f2 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_with_base_schema_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_with_base_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.md index 0a4a5add556..664c433e340 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_array_type_matches_arrays_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_array_type_matches_arrays_request_body/post.md index 8e12e3a72b4..5a8aaeaf958 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_array_type_matches_arrays_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_array_type_matches_arrays_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_boolean_type_matches_booleans_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_boolean_type_matches_booleans_request_body/post.md index 82f3e66374d..8ba76b13aea 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_boolean_type_matches_booleans_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_boolean_type_matches_booleans_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_int_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_int_request_body/post.md index a40a8ce23e3..abfc5dc782b 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_int_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_int_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_number_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_number_request_body/post.md index 441c12326a5..c3dfeb70aff 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_number_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_number_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_small_number_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_small_number_request_body/post.md index fcb768938d5..a30753fa279 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_small_number_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_by_small_number_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_date_time_format_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_date_time_format_request_body/post.md index 7255cf3bfa2..a94bc64b45b 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_date_time_format_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_date_time_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_email_format_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_email_format_request_body/post.md index c726b9e6b9b..879b019c0e8 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_email_format_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_email_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.md index 3b3f7e0a34b..3cb6bb40948 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.md index 4be7a36946a..585fa7bcd29 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_escaped_characters_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_escaped_characters_request_body/post.md index 0e802f71b52..367d822ce51 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_escaped_characters_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_escaped_characters_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.md index bf57e558da8..fdebcdb5e8b 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.md index 798c68200b7..c29caa01a4f 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enums_in_properties_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enums_in_properties_request_body/post.md index 279a6b6c0bc..3b98655662a 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enums_in_properties_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_enums_in_properties_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_forbidden_property_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_forbidden_property_request_body/post.md index 27bdde07532..9f6b6d47e94 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_forbidden_property_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_forbidden_property_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_hostname_format_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_hostname_format_request_body/post.md index 99c1ad882a1..906a0d48a8f 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_hostname_format_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_hostname_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_integer_type_matches_integers_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_integer_type_matches_integers_request_body/post.md index c375e0f315a..67742a752ed 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_integer_type_matches_integers_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_integer_type_matches_integers_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.md index 3f1439aeb39..76a914d85cd 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_invalid_string_value_for_default_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_invalid_string_value_for_default_request_body/post.md index b2ab42e3ae6..9fc35ff3ca9 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_invalid_string_value_for_default_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_invalid_string_value_for_default_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ipv4_format_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ipv4_format_request_body/post.md index 9ced51565ba..c3b02f62215 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ipv4_format_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ipv4_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ipv6_format_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ipv6_format_request_body/post.md index ecbc46871a1..582fccd68cb 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ipv6_format_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ipv6_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_json_pointer_format_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_json_pointer_format_request_body/post.md index 73200b26eb0..7568f619f63 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_json_pointer_format_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_json_pointer_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maximum_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maximum_validation_request_body/post.md index 4aebf936df4..fd36d29c7a3 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maximum_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maximum_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.md index bce10ead621..2f08e39701f 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxitems_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxitems_validation_request_body/post.md index 5bbb95306f1..fcf803c693a 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxitems_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxitems_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxlength_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxlength_validation_request_body/post.md index d524db74521..0584da67055 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxlength_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxlength_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.md index e06dd72fac2..5d8aaf47802 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxproperties_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxproperties_validation_request_body/post.md index 9b79a527c39..ed12e4e58a1 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxproperties_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_maxproperties_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minimum_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minimum_validation_request_body/post.md index 9513b91e00c..7b4705230e8 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minimum_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minimum_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.md index 57fa863e61a..9f55b8327a4 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minitems_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minitems_validation_request_body/post.md index 735214abe0e..71b3ce83f04 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minitems_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minitems_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minlength_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minlength_validation_request_body/post.md index 5153bde2fb8..f856f019042 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minlength_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minlength_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minproperties_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minproperties_validation_request_body/post.md index 08dd79c9542..3d02d50edd2 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minproperties_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_minproperties_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md index 395bf6e2206..9dfb6bae67f 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.md index 25fab29957a..7e8b7a3693a 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_items_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_items_request_body/post.md index 95183337660..5f95380db08 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_items_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_items_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md index d1a60733236..9b85d89b160 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_not_more_complex_schema_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_not_more_complex_schema_request_body/post.md index 0780b68689b..526f9766094 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_not_more_complex_schema_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_not_more_complex_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_not_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_not_request_body/post.md index 3ef2fd8044d..f84e41a222b 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_not_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_not_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nul_characters_in_strings_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nul_characters_in_strings_request_body/post.md index 6993831882a..fcb18059c74 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nul_characters_in_strings_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_nul_characters_in_strings_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.md index 9314ac6930d..f0407d66210 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_number_type_matches_numbers_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_number_type_matches_numbers_request_body/post.md index bd7e8316d23..d63b60c0bdb 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_number_type_matches_numbers_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_number_type_matches_numbers_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_object_properties_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_object_properties_validation_request_body/post.md index 6be8150bab4..9feda9546c6 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_object_properties_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_object_properties_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_object_type_matches_objects_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_object_type_matches_objects_request_body/post.md index 8d15c8a9d92..278955397cd 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_object_type_matches_objects_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_object_type_matches_objects_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_complex_types_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_complex_types_request_body/post.md index 57316145ee4..dd031f2605a 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_complex_types_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_complex_types_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_request_body/post.md index b2c2616f755..63934610975 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_base_schema_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_base_schema_request_body/post.md index da91db6d79c..14474108fbd 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_base_schema_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_base_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_empty_schema_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_empty_schema_request_body/post.md index 52679cc7d82..a2bdcf86c7d 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_empty_schema_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_empty_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_required_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_required_request_body/post.md index 5293702fab6..80d854e7eff 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_required_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_oneof_with_required_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_pattern_is_not_anchored_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_pattern_is_not_anchored_request_body/post.md index 171ee2163c6..a6a269f1aa8 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_pattern_is_not_anchored_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_pattern_is_not_anchored_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_pattern_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_pattern_validation_request_body/post.md index 25565ab2019..2b65e49f06f 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_pattern_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_pattern_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md index 0851dab520c..0109a423ba3 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md index 384aa8b71b6..ad9024103e1 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_additionalproperties_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_additionalproperties_request_body/post.md index ccf242394f1..fc06e65a94b 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_additionalproperties_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_additionalproperties_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_allof_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_allof_request_body/post.md index 3f75cbdc899..b615be824fc 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_allof_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_allof_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_anyof_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_anyof_request_body/post.md index 6b116102374..6fe1cd79b59 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_anyof_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_anyof_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_items_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_items_request_body/post.md index 0441ec83f45..277bc05982f 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_items_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_items_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_not_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_not_request_body/post.md index 76adf521bf3..26a9d8c05a8 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_not_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_not_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_oneof_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_oneof_request_body/post.md index ad1726e4970..9b35bb34df3 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_oneof_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_oneof_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_property_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_property_request_body/post.md index 77384776acc..4da5bb2fd84 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_property_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_ref_in_property_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_default_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_default_validation_request_body/post.md index d9be7b26366..fb32df32606 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_default_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_default_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_validation_request_body/post.md index 2002140d78a..5fc5aaa3826 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_with_empty_array_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_with_empty_array_request_body/post.md index 106a25fd307..d1917bcb221 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_with_empty_array_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_with_empty_array_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_with_escaped_characters_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_with_escaped_characters_request_body/post.md index 95dc28188ec..610ddd56ed3 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_with_escaped_characters_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_required_with_escaped_characters_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_simple_enum_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_simple_enum_validation_request_body/post.md index c87b9dd9735..b3f6e45925d 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_simple_enum_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_simple_enum_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_string_type_matches_strings_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_string_type_matches_strings_request_body/post.md index 5ef3be1d3fa..074b8897c69 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_string_type_matches_strings_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_string_type_matches_strings_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.md index cd8d07f8def..9eaa98dd9f5 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uniqueitems_false_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uniqueitems_false_validation_request_body/post.md index 51bf95fa43e..bbf28e27903 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uniqueitems_false_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uniqueitems_false_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uniqueitems_validation_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uniqueitems_validation_request_body/post.md index 84a362bee96..93d2f0fdb0b 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uniqueitems_validation_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uniqueitems_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_format_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_format_request_body/post.md index 3f11201f761..4dfc24b9078 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_format_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_reference_format_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_reference_format_request_body/post.md index 9a4b29c95c8..5c728aa410c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_reference_format_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_reference_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_template_format_request_body/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_template_format_request_body/post.md index 5e6ea36a99e..180e3ca0df7 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_template_format_request_body/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/request_body_post_uri_template_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.md index c8adba29d89..bd1196899f6 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidateDict](../../components/schema/additionalproperties_allows_a_schema_which_should_validate.md#additionalpropertiesallowsaschemawhichshouldvalidatedict) | | +[body](#responsefor200-body) | [additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidateDict](../../components/schema/additionalproperties_allows_a_schema_which_should_validate.md#additionalpropertiesallowsaschemawhichshouldvalidatedict) | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md index 25d8f9d9a74..07083960d51 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDict](../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDict](../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md index e99039e4c82..04bde18e729 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDict](../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdict) | | +[body](#responsefor200-body) | [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDict](../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdict) | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.md index d30181c3d78..68c0cda5fdc 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicatorsDict](../../components/schema/additionalproperties_should_not_look_in_applicators.md#additionalpropertiesshouldnotlookinapplicatorsdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | [additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicatorsDict](../../components/schema/additionalproperties_should_not_look_in_applicators.md#additionalpropertiesshouldnotlookinapplicatorsdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.md index 7cd6a002c64..47030a2a18a 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_response_body_for_content_types/post.md index a7906664e80..ecb1c4c6895 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.md index 370aaa655f5..0704807b953 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.md index 712e295f404..d1a08bab46a 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [allof_with_base_schema.AllofWithBaseSchemaDict](../../components/schema/allof_with_base_schema.md#allofwithbaseschemadict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | [allof_with_base_schema.AllofWithBaseSchemaDict](../../components/schema/allof_with_base_schema.md#allofwithbaseschemadict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.md index 748652cce84..f5478360d53 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.md index 6c84f71c185..4b7ecfdee21 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.md index 617ab4ee53a..f3d05d5b297 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.md index cc18665e9fe..55efb17dc6d 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.md index 95f4bcf18ef..2ffbe705bc7 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_response_body_for_content_types/post.md index 3d30759415d..83d0e41e710 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.md index de951c2122d..ef42615db00 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | str | | +[body](#responsefor200-body) | str | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.md index e0cf0438e35..699da1d4991 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.md index 93628e239d1..0afe2389f97 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [array_type_matches_arrays.ArrayTypeMatchesArraysTuple](../../components/schema/array_type_matches_arrays.md#arraytypematchesarraystuple) | | +[body](#responsefor200-body) | [array_type_matches_arrays.ArrayTypeMatchesArraysTuple](../../components/schema/array_type_matches_arrays.md#arraytypematchesarraystuple) | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.md index 22227cb09f4..f9373d2dded 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | bool | | +[body](#responsefor200-body) | bool | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_int_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_int_response_body_for_content_types/post.md index 4fbb085574d..21e489b8ead 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_int_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_int_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_number_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_number_response_body_for_content_types/post.md index 812d57126ce..03c1ef622ef 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_number_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_number_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md index cc4249b9ec4..9b2fbafcf1a 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md index 36449d3a92b..0384cee6fd8 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_email_format_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_email_format_response_body_for_content_types/post.md index 625ad5c58b3..e3655122704 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_email_format_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_email_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.md index d43c30418ed..1f46d7858e0 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | float, int | | +[body](#responsefor200-body) | float, int | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.md index 538fb724ae5..77cc20dba1c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | float, int | | +[body](#responsefor200-body) | float, int | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.md index 940d6b763c9..6a6f86ee7b5 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | typing.Literal["foo\nbar", "foo\rbar"] | | +[body](#responsefor200-body) | typing.Literal["foo\nbar", "foo\rbar"] | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.md index 5cc3bed34f4..ecee92a82ef 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | typing.Literal[False] | | +[body](#responsefor200-body) | typing.Literal[False] | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.md index d8a5c1286b0..4fc607b4218 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | typing.Literal[True] | | +[body](#responsefor200-body) | typing.Literal[True] | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.md index f8a34267d45..0f9751af197 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [enums_in_properties.EnumsInPropertiesDict](../../components/schema/enums_in_properties.md#enumsinpropertiesdict) | | +[body](#responsefor200-body) | [enums_in_properties.EnumsInPropertiesDict](../../components/schema/enums_in_properties.md#enumsinpropertiesdict) | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_forbidden_property_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_forbidden_property_response_body_for_content_types/post.md index 482d5320507..e782eee6871 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_forbidden_property_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_forbidden_property_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [forbidden_property.ForbiddenPropertyDict](../../components/schema/forbidden_property.md#forbiddenpropertydict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | [forbidden_property.ForbiddenPropertyDict](../../components/schema/forbidden_property.md#forbiddenpropertydict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_hostname_format_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_hostname_format_response_body_for_content_types/post.md index b439972043e..54e96e04d29 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_hostname_format_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_hostname_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.md index f71eead999c..2e7e049149e 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | int | | +[body](#responsefor200-body) | int | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.md index daa9f01efe7..19124c89afc 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | int | | +[body](#responsefor200-body) | int | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.md index 406d5542e1f..b57190613a8 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [invalid_string_value_for_default.InvalidStringValueForDefaultDict](../../components/schema/invalid_string_value_for_default.md#invalidstringvaluefordefaultdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | [invalid_string_value_for_default.InvalidStringValueForDefaultDict](../../components/schema/invalid_string_value_for_default.md#invalidstringvaluefordefaultdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv4_format_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv4_format_response_body_for_content_types/post.md index c9104b5f71e..d49ab322652 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv4_format_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv4_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post.md index bc2475c46c6..6f0bdf65c4e 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md index 73acf3c2ce9..38f99af75bc 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post.md index 0fe723bca3e..33382572340 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.md index fead8627f47..2ad2c0f44f5 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.md index e270cea0d57..9194f4e92ce 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.md index f6df857d3eb..94f4da2a652 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.md index 1a41a9af16b..1e3d5ea62a8 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.md index 1c788f75853..f24bc02e54f 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post.md index 1dc6ddca708..f4de026b01e 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.md index 6ee43887c2e..f0623319deb 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post.md index bba61a16d9a..a2e80f516cc 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post.md index 5e041d5916d..605f4403388 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md index aef5460fac5..c32fe29c801 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.md index fd97c020735..97f7bcff1fa 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.md index b237c6a94cf..cc0db50ccda 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_items_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_items_response_body_for_content_types/post.md index d115e57942c..4373c46f801 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_items_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_items_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [nested_items.NestedItemsTuple](../../components/schema/nested_items.md#nesteditemstuple) | | +[body](#responsefor200-body) | [nested_items.NestedItemsTuple](../../components/schema/nested_items.md#nesteditemstuple) | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md index 67d8da809c1..f2e92c6f914 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md index 1fea3356094..00a52498cda 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_response_body_for_content_types/post.md index 8ac6b1fab7a..365b2bbe3c8 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.md index f6d87ef14b5..478075ffb53 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | typing.Literal["hello\x00there"] | | +[body](#responsefor200-body) | typing.Literal["hello\x00there"] | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.md index 3456e40762d..8da9e975d92 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | None | | +[body](#responsefor200-body) | None | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.md index 008170a3e67..3c29f230822 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | float, int | | +[body](#responsefor200-body) | float, int | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.md index 1d9513bb84d..7ee2932fe63 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [object_properties_validation.ObjectPropertiesValidationDict](../../components/schema/object_properties_validation.md#objectpropertiesvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | [object_properties_validation.ObjectPropertiesValidationDict](../../components/schema/object_properties_validation.md#objectpropertiesvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.md index 1935ff6a9a0..0ad8829e9e3 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict | | +[body](#responsefor200-body) | schemas.immutabledict | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.md index 1c8c65a4216..802d049b6cf 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_response_body_for_content_types/post.md index 74b67736d85..7da75e80400 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.md index 43d5450783a..b3db8a20701 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | str | | +[body](#responsefor200-body) | str | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.md index e9ee7859cc3..c3f84a2d1af 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.md index 963ec3f9299..2f30af9a726 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict | | +[body](#responsefor200-body) | schemas.immutabledict | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.md index f564ea016eb..acd43473cf5 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post.md index 80f25702100..d9691bb1341 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md index 8ff026e52c5..e0fed3c6a05 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [properties_with_escaped_characters.PropertiesWithEscapedCharactersDict](../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | [properties_with_escaped_characters.PropertiesWithEscapedCharactersDict](../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md index 1f86708bb1f..c74b71131ec 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.md index 5db9d93ae0c..58360debb67 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [ref_in_additionalproperties.RefInAdditionalpropertiesDict](../../components/schema/ref_in_additionalproperties.md#refinadditionalpropertiesdict) | | +[body](#responsefor200-body) | [ref_in_additionalproperties.RefInAdditionalpropertiesDict](../../components/schema/ref_in_additionalproperties.md#refinadditionalpropertiesdict) | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.md index 643846c1deb..53de549744e 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.md index 486ea3be688..4979ec2517c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_items_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_items_response_body_for_content_types/post.md index ccef595d2ef..a9fed183002 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_items_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_items_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [ref_in_items.RefInItemsTuple](../../components/schema/ref_in_items.md#refinitemstuple) | | +[body](#responsefor200-body) | [ref_in_items.RefInItemsTuple](../../components/schema/ref_in_items.md#refinitemstuple) | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_not_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_not_response_body_for_content_types/post.md index 8d53f31bc04..152f0f7a3ab 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_not_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_not_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.md index a81cd1b7f9c..e06989ea1cc 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_property_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_property_response_body_for_content_types/post.md index de206f70584..bfb6aa2c942 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_property_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_property_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [ref_in_property.RefInPropertyDict](../../components/schema/ref_in_property.md#refinpropertydict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | [ref_in_property.RefInPropertyDict](../../components/schema/ref_in_property.md#refinpropertydict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post.md index b606e5cf8b5..27dbc3b144d 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [required_default_validation.RequiredDefaultValidationDict](../../components/schema/required_default_validation.md#requireddefaultvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | [required_default_validation.RequiredDefaultValidationDict](../../components/schema/required_default_validation.md#requireddefaultvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_validation_response_body_for_content_types/post.md index 117908e45d7..b1bbd780334 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [required_validation.RequiredValidationDict](../../components/schema/required_validation.md#requiredvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | [required_validation.RequiredValidationDict](../../components/schema/required_validation.md#requiredvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.md index 106b5a618c2..12fa5e0375a 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [required_with_empty_array.RequiredWithEmptyArrayDict](../../components/schema/required_with_empty_array.md#requiredwithemptyarraydict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | [required_with_empty_array.RequiredWithEmptyArrayDict](../../components/schema/required_with_empty_array.md#requiredwithemptyarraydict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.md index 539241b6f5d..dcdd0878a37 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [required_with_escaped_characters.RequiredWithEscapedCharactersDict](../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | [required_with_escaped_characters.RequiredWithEscapedCharactersDict](../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.md index 07be271f222..ab8212b4d81 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | float, int | | +[body](#responsefor200-body) | float, int | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.md index 6ea34e6d645..f221b5fd41a 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | str | | +[body](#responsefor200-body) | str | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.md index f4138bda1a4..6c6d5295b7a 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDict](../../components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md#thedefaultkeyworddoesnotdoanythingifthepropertyismissingdict) | | +[body](#responsefor200-body) | [the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDict](../../components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md#thedefaultkeyworddoesnotdoanythingifthepropertyismissingdict) | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md index ca2541b8d29..ea686f3d9a0 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.md index 0eb754a9463..b7c6bd6708f 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_format_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_format_response_body_for_content_types/post.md index 79214083e18..145c150a3ff 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_format_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.md index ef316e0a4b0..d3ee1f0955c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_template_format_response_body_for_content_types/post.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_template_format_response_body_for_content_types/post.md index 2db8b0e42e9..b3c216c87d2 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_template_format_response_body_for_content_types/post.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_template_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/operation.py index 3e754c8d049..3919d0459c1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/operation.py index bf13d2411e3..b99a1e03592 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/operation.py index faec6a439e1..87e6d559418 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/operation.py index 8b678f293dc..8e28a994247 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/operation.py index 6408159e59b..df62c6894d1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/operation.py index 7fa03721a4b..364453afdf2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/operation.py index e0d327ecde0..167997e0be3 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/operation.py index f18051f3357..5d6e5a9417f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/operation.py index fd26607b781..c41c7abb227 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/operation.py index 7d2dc22cb92..7b4aa22f5c4 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/operation.py index c5b40498d84..247deedb197 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/operation.py index 808632c060c..de243529c40 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/operation.py index 4942a16c1d4..c1d882fa50f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/operation.py index 3e23774d7ef..5392be95ab2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/operation.py index 07c4b00d549..0b83156330d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/operation.py index 62c010dc2b9..9ec95b7ec02 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/operation.py index e424a9593f9..b7c44a67e0d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/operation.py index d2c5b4db4ec..0c4bc24658c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/operation.py index 1c08bf377fb..7d82e25ebaf 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/operation.py index 9eba1a7b61d..7e4d024e818 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/operation.py index 882b8cfb016..1ebeac7c700 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/operation.py index ef1dbcb3994..28c8dc3e083 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/operation.py index 72eb178acab..8727d68b73b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/operation.py index ad7ac47659b..6c2a295bdac 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/operation.py index c58995e88e6..994f98feb69 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/operation.py index def3de025d8..c92dedda09a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/operation.py index eb96cfb1de1..aff23b76309 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/operation.py index 07b33db7885..139fe18c966 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/operation.py index e87b81965b9..ed6e7b81230 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/operation.py index d4b9120e86a..46217c66181 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/operation.py index eca8ba5d394..b7d0f127816 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/operation.py index f4a129fdd91..b8cd1a3b31f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/operation.py index 57549f5f5fa..de6b538ad87 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/operation.py index 9179a3149ac..6a1cb6817a3 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/operation.py index 51f5f5a8f84..92369d23fc3 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/operation.py index 9155ca1d212..f37ca537c41 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/operation.py index 23af6ca1ba1..a0eab10a36a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/operation.py index 048e329aa30..898a1d303ed 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/operation.py index fec6304c585..1c4f855e870 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/operation.py index 3a0304a69d4..a666fb30fdb 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/operation.py index 33c091bca8b..79d516829f0 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/operation.py index 6f5c67c5022..f3b0af790a9 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/operation.py index a6d27fcad7c..e61260a93cc 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/operation.py index 4a3d627af98..80bae3df4d7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/operation.py index 374fe3be996..1661841a2fb 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/operation.py index 5bdc1cb8b48..a96c9474e2c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/operation.py index 632b1abfedc..4918b3efd30 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/operation.py index 3ec372ee914..98b26a84a6f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/operation.py index e96751ba01e..d1d165a59ed 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/operation.py index 483a6468c29..e48324ee80c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/operation.py index d1033364554..faa7c7266d4 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/operation.py index dc66ca393ff..b5ef0dca00d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/operation.py index 3b86f14902c..57849fc889d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/operation.py index a20c391c436..d63f15c0b8c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/operation.py index 9dfdfc0e481..b521f8d42c5 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/operation.py index aa446e95b94..e4b653621a0 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/operation.py index 3c57c468072..63ca3bef84a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/operation.py index 38e00a2dbea..4c48562b936 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/operation.py index c886951c41b..7075dfb67dc 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/operation.py index 4a26273a17c..ee6a59eb03b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/operation.py index c77e43b1493..2bb830e4fdc 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/operation.py index 1854055de7f..cde0061a258 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/operation.py index d2b93151285..f3611231b21 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/operation.py index 1f293b49010..45aac1b0644 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/operation.py index 32eb26efab3..cf6a8fc241a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/operation.py index ef6a58f4fa7..d4d620851c1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/operation.py index 24a2c712ac9..b48196cc896 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/operation.py index c7057ac61cb..ada223bdf12 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/operation.py index 56c0a8a8fa7..b6432f845ea 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/operation.py index df5b3a3a6ec..c6d087a6178 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/operation.py index 007ee81e2b7..d5ffe0b2ade 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/operation.py index 0e005fc5b0d..41648e69095 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/operation.py index 17632750179..a9f4bca11be 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/operation.py index 183516baaf4..a1bc1303f3a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/operation.py index 109aa5ed28a..d788cf02010 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/operation.py index 10caf145727..80c4ef28664 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/operation.py index 3eabf9cb6f5..292ea1ac909 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/operation.py index a65d2466a89..8313bd00fd5 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/operation.py index b2a9503de17..9f84f5d435d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/operation.py index 92120c5a4f6..0734c74a9b2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/operation.py index b13a106e0d9..47cfc3771e9 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/operation.py index 90797ba2367..aa3710a8391 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py index 288b48db033..b8ae9395c4b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/operation.py index 95b6297666d..a3bc01d48ae 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/operation.py index b94fe306d33..ae1ef69813d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/operation.py index 8f02ee4695d..2e69c8c5e0f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/operation.py index 53ada9bb266..17e17846bda 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/operation.py index b49444f01e5..169531f3cd6 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/responses/response_200/__init__.py index 7ea4def9334..fd6b59ad840 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/operation.py index 71c38714118..090b14d82de 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py index 1d58b54edb9..30fdcbd90c7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/__init__.py index dc8827aa890..cf76c16b19f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/operation.py index 3acf7cc2de9..0be3c6cd84b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/operation.py index 3ce56131d8a..01e96ea5a8d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/operation.py index d33eca98c34..7dc48ea05b5 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/operation.py index 6af48eb9854..da0d46d7ad9 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/operation.py index 3004ced93b0..95e82a9b74d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/operation.py index c37ac9b5e9c..6246cf73da7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/operation.py index ecd9641bebb..9d0d84c8b83 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/operation.py index 37451119733..07440623ae1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/operation.py index 4c5ac2eb47a..5ddd8aba6cc 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/operation.py index 2059516c061..564492657b6 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/operation.py index f5e6430d9d7..99431cc5f3b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/operation.py index 4a541430f6b..5a9ce6a0b52 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py index a78d9af2aec..63fbad57c09 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/operation.py index 1ff2c37e6fc..2238c21de72 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/operation.py index 278ffdb5e78..e72819e1ddb 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/__init__.py index 77d5bd05419..e44833e1983 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/operation.py index e000804dec3..a6705e72cab 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/__init__.py index cd4330fa2cd..d7e8a22d1d4 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/operation.py index 125a33d7438..097f09a881f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/operation.py index 2e2d2d3e5a3..d40fd29a04e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/operation.py index 3d30b071217..49e765acc99 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/operation.py index e20695fc635..20ade10b80a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/operation.py index e3cfc5b56e8..112a8424a30 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/operation.py index 63ed47782c1..7534d1d4fdd 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/__init__.py index 717ca796afa..452ca1bfe75 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/operation.py index f3aee3de47b..3d89df03917 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py index 717ca796afa..452ca1bfe75 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/operation.py index eee05cd6095..b8ff055d10c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py index 699299a6da7..e5ed3e05230 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/operation.py index 15da93cddd1..916c091d348 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/__init__.py index 6bae4f7c085..d6132013814 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/operation.py index 652074c6d05..eab55cb3656 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/__init__.py index a1d05eb4328..2002c2d4032 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/operation.py index aa8a25a357b..63dbc1d7b53 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/__init__.py index 7c1c85fbc29..219c773c01f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/operation.py index 5db275d0432..564fa742323 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/operation.py index 6acfcb141ea..99ade598795 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/operation.py index 49abccb576f..93b66401eae 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/__init__.py index b698dd5a79c..9ed2d0b94fd 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/operation.py index 4b13e0a16cc..64105ee313a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/responses/response_200/__init__.py index b698dd5a79c..9ed2d0b94fd 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/operation.py index 247371407cf..55db8d9d0eb 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/operation.py index ab38df59a84..da231a84141 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/operation.py index bdf72453000..fb8dfd0b363 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/operation.py index 33c16d5cd55..55cd085b6b5 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/operation.py index b1e303fd649..fb63d32b1cc 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/operation.py index 200d7f5c945..d5a88e876d0 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/operation.py index 2900371c651..c080de1ae09 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/operation.py index 791ac5148a5..94fec2d28c4 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/operation.py index c5d5a367a45..d2a9ba4469e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/operation.py index 10d254ab861..d67cb2110ae 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/operation.py index 1ee8afeee03..e2806d1a61d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/operation.py index de3b2cc64ad..c830d5678bf 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/operation.py index f3e121b2262..15946ad6450 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/operation.py index b213659359e..c7464c7b38f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/operation.py index 487368e6d59..95226b68f3d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/operation.py index 023ed79ebb5..578d2167c2e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/operation.py index 4236775aec8..b68edd3471b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/operation.py index e777a2b294a..e6fc6c285c9 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/__init__.py index 7deb87c16e6..e2c4b4172df 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/operation.py index 8e42322b09c..aa684fa8db6 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/operation.py index 063e7b0636b..6ae647ad6f0 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/operation.py index 83459b5c299..0a73512a8b7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/operation.py index 2722bfe7b13..d1545d7dc02 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py index 3723f603ccb..6018ccc2c1f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/operation.py index 08725b56311..5c40e450c0f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/__init__.py index ea83bf95d55..54d2705ff29 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/operation.py index 837f925fd74..907a62f5004 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/__init__.py index 717ca796afa..452ca1bfe75 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/operation.py index ffb5ddcab79..d28a04439db 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/operation.py index f97eec3b1ae..08e97aa21b7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/__init__.py index a8044f47039..92b57bc83c8 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/operation.py index 231922b3580..fc443417cde 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/operation.py index d22332a89f6..085a08a618e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/operation.py index 71722cfa325..1fae0ff470d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py index a78d9af2aec..63fbad57c09 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/operation.py index a8b04efec6d..0f147a7dca7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/operation.py index 62550a997d7..a04bd8b8243 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/__init__.py index a8044f47039..92b57bc83c8 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/operation.py index d1033d404ff..e4d865cd63e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/operation.py index 193dddb2f2e..f271f994e3f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/operation.py index aa637285008..74d601d6ca6 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/operation.py index bcc069b06c5..222ecd2bd65 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/operation.py index 236f284b1da..b0b7510fda7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py index 3de7cd881a6..88f7d854dcb 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/operation.py index d023f187f57..df6ab9e0998 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/operation.py index f13ae608bfd..8fbf2b36ac6 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/operation.py index 63cd9da9455..869038af506 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/responses/response_200/__init__.py index 0c62350a61c..611e9164a7e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/operation.py index 39e9e438c49..c5e2ddf926c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/operation.py index 61e1d2c9b9e..a296e1cd756 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/operation.py index 3c50e56c9cd..96d196b3daf 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/operation.py index 812fe2c0064..f0905a65506 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/operation.py index cdc6f7f5375..a4ce81f6b8b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/operation.py index 6c0cbe71a78..78ca7737667 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/operation.py index e50007df51a..7e1bd517f1b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/operation.py index 77aaf54b1d8..0f0f1c9b902 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 717ca796afa..452ca1bfe75 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/operation.py index 98efe38d144..102cea8c432 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/__init__.py index a78d9af2aec..63fbad57c09 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/operation.py index 1f50262ec36..6d0ec3120dd 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/responses/response_200/__init__.py index 486a68dc9e8..f0f9a67ee77 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py index 60145d32e1b..d8c291ec290 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/operation.py index 57be20ce4fb..85ab539389c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/operation.py index 9ef0b5fdf24..2e78f3fc368 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/operation.py index d90d3bde189..ce243405e0e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/operation.py index bd98a5bd661..94aa199b34a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/__init__.py index dd38e3a51a1..10fe962414b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post.md index 40f7d7970e1..e45318ad04d 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post.md index 2b80e6cd0ee..0fad63d5795 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md index 73c4c4d8ebb..110b85cbbe2 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md index ab6064d0c44..68be6adfef7 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post.md index e579b70f31c..4e3acb6853b 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post.md index 8321f28be28..25f66785846 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_with_schema_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_with_schema_request_body/post.md index 83b0e02989f..ca04d5c1e1e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_with_schema_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_with_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.md index 641cf4d1312..b8452c3b430 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_request_body/post.md index 5842161c5ef..4510ddebabf 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_simple_types_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_simple_types_request_body/post.md index acfc5ea1571..63ca858d926 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_simple_types_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_simple_types_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_base_schema_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_base_schema_request_body/post.md index 7fbad4ae69e..f474402a883 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_base_schema_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_base_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_one_empty_schema_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_one_empty_schema_request_body/post.md index fb6432898f6..4be8897cd29 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_one_empty_schema_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_one_empty_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.md index dec017f62ec..4742c933e73 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.md index 404620bdc46..8eb619a5430 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.md index 1671e9af6cf..e72d229de81 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_anyof_complex_types_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_anyof_complex_types_request_body/post.md index 5ecf5f69c69..44932e771bf 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_anyof_complex_types_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_anyof_complex_types_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_anyof_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_anyof_request_body/post.md index 8e524dc96d6..0ab897a1cfe 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_anyof_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_anyof_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_anyof_with_base_schema_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_anyof_with_base_schema_request_body/post.md index 8d955c23b79..9fe2943ea99 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_anyof_with_base_schema_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_anyof_with_base_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.md index aa472dc6a9c..92ec911c863 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_array_type_matches_arrays_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_array_type_matches_arrays_request_body/post.md index bb461caea14..e60a37b5893 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_array_type_matches_arrays_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_array_type_matches_arrays_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_boolean_type_matches_booleans_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_boolean_type_matches_booleans_request_body/post.md index ba07e2ee409..ca1bd14e43a 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_boolean_type_matches_booleans_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_boolean_type_matches_booleans_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_by_int_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_by_int_request_body/post.md index e0c980678f7..3b8eaac0855 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_by_int_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_by_int_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_by_number_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_by_number_request_body/post.md index a6191dfce8d..c219dd32371 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_by_number_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_by_number_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_by_small_number_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_by_small_number_request_body/post.md index 68c4027c7f2..b1dd4f60736 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_by_small_number_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_by_small_number_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post.md index 5907b77a7f0..33d7883d833 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_contains_keyword_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_contains_keyword_validation_request_body/post.md index 75a4813cc9e..9f4854cebb2 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_contains_keyword_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_contains_keyword_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post.md index 07cd121a669..d2bf595681b 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_date_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_date_format_request_body/post.md index a0b86f34dd5..83306cec6ad 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_date_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_date_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_date_time_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_date_time_format_request_body/post.md index dc88648fedf..22f51d88ec0 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_date_time_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_date_time_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post.md index 2dfae3f64dc..92eedc60443 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post.md index 991140a464c..27de5f64da3 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_single_dependency_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_single_dependency_request_body/post.md index dbab56835d3..7d032cfb404 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_single_dependency_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_single_dependency_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_duration_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_duration_format_request_body/post.md index e0738857045..1dc639a47ec 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_duration_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_duration_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_email_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_email_format_request_body/post.md index fe7e2984491..3a9f9de78cf 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_email_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_email_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_empty_dependents_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_empty_dependents_request_body/post.md index a5997ddd2e6..24fe4781df7 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_empty_dependents_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_empty_dependents_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.md index c777a766727..3e49495c679 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.md index e7d22cf0dc6..868990642c3 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with_escaped_characters_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with_escaped_characters_request_body/post.md index 1772b92e37e..a22db8a20af 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with_escaped_characters_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with_escaped_characters_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.md index d2b3f348d09..9267427c716 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.md index 17552d7ab72..640f172d633 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enums_in_properties_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enums_in_properties_request_body/post.md index e91b736494b..85217ed11a6 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enums_in_properties_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_enums_in_properties_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_exclusivemaximum_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_exclusivemaximum_validation_request_body/post.md index 81fe7d947c4..ec5cc929756 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_exclusivemaximum_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_exclusivemaximum_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_exclusiveminimum_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_exclusiveminimum_validation_request_body/post.md index 901f250052d..892dc05a12f 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_exclusiveminimum_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_exclusiveminimum_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_float_division_inf_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_float_division_inf_request_body/post.md index 6e274033fed..d83fa579abb 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_float_division_inf_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_float_division_inf_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_forbidden_property_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_forbidden_property_request_body/post.md index e8329c3cb6c..e2db3f67bba 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_forbidden_property_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_forbidden_property_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_hostname_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_hostname_format_request_body/post.md index 048b77a1b6f..294cea79577 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_hostname_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_hostname_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_idn_email_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_idn_email_format_request_body/post.md index a6a45dcd3a3..22e48f71922 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_idn_email_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_idn_email_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_idn_hostname_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_idn_hostname_format_request_body/post.md index e619c38ef38..08048612101 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_idn_hostname_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_idn_hostname_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_if_and_else_without_then_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_if_and_else_without_then_request_body/post.md index 4f4b4818634..f3e6dd28e3a 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_if_and_else_without_then_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_if_and_else_without_then_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_if_and_then_without_else_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_if_and_then_without_else_request_body/post.md index d2f9f3d3d10..7da0bc3cacf 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_if_and_then_without_else_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_if_and_then_without_else_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post.md index c894d81fa0b..47b59050cd5 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ignore_else_without_if_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ignore_else_without_if_request_body/post.md index 38cf22ec4a3..37eedca16cd 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ignore_else_without_if_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ignore_else_without_if_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ignore_if_without_then_or_else_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ignore_if_without_then_or_else_request_body/post.md index 99af5e8d301..de22045504f 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ignore_if_without_then_or_else_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ignore_if_without_then_or_else_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ignore_then_without_if_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ignore_then_without_if_request_body/post.md index 8787dca90e9..939377de9c9 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ignore_then_without_if_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ignore_then_without_if_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_integer_type_matches_integers_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_integer_type_matches_integers_request_body/post.md index 42ac552a150..b9d3e3d4720 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_integer_type_matches_integers_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_integer_type_matches_integers_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ipv4_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ipv4_format_request_body/post.md index d74f463a838..9aeb9426f96 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ipv4_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ipv4_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ipv6_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ipv6_format_request_body/post.md index 37f73a30de8..8050d4e38b8 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ipv6_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_ipv6_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_iri_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_iri_format_request_body/post.md index 928ac150d6a..e019fe92308 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_iri_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_iri_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_iri_reference_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_iri_reference_format_request_body/post.md index 2bf0773cd41..7c948cd87c6 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_iri_reference_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_iri_reference_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_items_contains_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_items_contains_request_body/post.md index 6df38c9ae73..9b234eb7665 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_items_contains_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_items_contains_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post.md index 4db808204cf..db0f9e5a8c6 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_items_with_null_instance_elements_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_items_with_null_instance_elements_request_body/post.md index 5f79867ed19..0911a9da045 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_items_with_null_instance_elements_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_items_with_null_instance_elements_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_json_pointer_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_json_pointer_format_request_body/post.md index 0ca037d8a0e..79e97542369 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_json_pointer_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_json_pointer_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post.md index f3522e6d8a0..b93aaeeb942 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maximum_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maximum_validation_request_body/post.md index 8e987cce12f..a4cf41c5a21 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maximum_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maximum_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.md index 2c346814aa8..b9192384acf 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxitems_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxitems_validation_request_body/post.md index 7c5add5d24a..76b56511900 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxitems_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxitems_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxlength_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxlength_validation_request_body/post.md index 579be6e0bea..865aa26009e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxlength_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxlength_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.md index 5bc772ce354..1d91fa18a50 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxproperties_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxproperties_validation_request_body/post.md index a9e83f1f307..054e62200de 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxproperties_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxproperties_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post.md index 43204ed9f7d..03abb572522 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minimum_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minimum_validation_request_body/post.md index c82df6e54b5..cc80b57b977 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minimum_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minimum_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.md index b24408abcac..a9c04d11a5a 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minitems_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minitems_validation_request_body/post.md index 3d498c01799..9c38740da8a 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minitems_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minitems_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minlength_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minlength_validation_request_body/post.md index a25977f56a1..4c53aa747e5 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minlength_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minlength_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minproperties_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minproperties_validation_request_body/post.md index bfcc910cd1c..21ec6fe1840 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minproperties_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minproperties_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_dependents_required_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_dependents_required_request_body/post.md index d695ebcebc1..12e1d5f3406 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_dependents_required_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_dependents_required_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post.md index 71699009b60..3d7749cb427 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post.md index 2f41d9a7e37..c84c845d394 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md index 7ee25eb8d3d..5438484d94d 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.md index e539a203ca7..a421805e866 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nested_items_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nested_items_request_body/post.md index ac385ea1a82..82909325d37 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nested_items_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nested_items_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md index 7afbc0bbf3e..7ecd99cc6bc 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post.md index 78cc5432b66..96d147c6431 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_non_interference_across_combined_schemas_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_non_interference_across_combined_schemas_request_body/post.md index b3f988dc1c9..86d482027ea 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_non_interference_across_combined_schemas_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_non_interference_across_combined_schemas_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_not_more_complex_schema_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_not_more_complex_schema_request_body/post.md index f67984066ae..71bb3272c96 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_not_more_complex_schema_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_not_more_complex_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_not_multiple_types_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_not_multiple_types_request_body/post.md index 3c116e80d6d..60612451cd6 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_not_multiple_types_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_not_multiple_types_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_not_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_not_request_body/post.md index 889d75b70e6..65175a1384a 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_not_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_not_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nul_characters_in_strings_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nul_characters_in_strings_request_body/post.md index 49d8b483ede..9c736950dd7 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nul_characters_in_strings_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_nul_characters_in_strings_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.md index fe9bfe15742..ef4fe60ec73 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_number_type_matches_numbers_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_number_type_matches_numbers_request_body/post.md index 199be4b3cdd..798cad055b4 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_number_type_matches_numbers_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_number_type_matches_numbers_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_object_properties_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_object_properties_validation_request_body/post.md index 1dad82539d4..517f2d9f6c4 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_object_properties_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_object_properties_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_object_type_matches_objects_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_object_type_matches_objects_request_body/post.md index 1b0568c13db..592b36537d9 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_object_type_matches_objects_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_object_type_matches_objects_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_complex_types_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_complex_types_request_body/post.md index c2fa5aca948..907311b6469 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_complex_types_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_complex_types_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_request_body/post.md index 7dbe26317f7..22f845e0e62 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_with_base_schema_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_with_base_schema_request_body/post.md index 86c8c40a897..d3bc5e23ef2 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_with_base_schema_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_with_base_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_with_empty_schema_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_with_empty_schema_request_body/post.md index 2ac1c0fe18d..2cf25497138 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_with_empty_schema_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_with_empty_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_with_required_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_with_required_request_body/post.md index da901db4671..3b3dac03539 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_with_required_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_oneof_with_required_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_pattern_is_not_anchored_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_pattern_is_not_anchored_request_body/post.md index 202b2566f20..74eff8b32a7 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_pattern_is_not_anchored_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_pattern_is_not_anchored_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_pattern_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_pattern_validation_request_body/post.md index 00c91f72879..703f9588b6e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_pattern_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_pattern_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post.md index 084a3919f01..a3cac306b51 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post.md index 51f9840e9ea..0f895767a86 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post.md index 2652352f828..b58ccc2cddd 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post.md index e096e907c96..9ec78f25a24 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post.md index 654773acd54..fe2c13ee801 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post.md index 31d58c91514..31c48bd2837 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md index 38616b98539..6388a754811 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post.md index c482c317549..ba4fc208e72 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md index 6e9cc6ef89b..9f7590ae649 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_propertynames_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_propertynames_validation_request_body/post.md index e2c4626609a..2defea3187e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_propertynames_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_propertynames_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_regex_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_regex_format_request_body/post.md index dea75b211a9..767647fe464 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_regex_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_regex_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post.md index 0b4b07a179f..e4723c8a17a 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_relative_json_pointer_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_relative_json_pointer_format_request_body/post.md index 282248991a3..deebacfd8eb 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_relative_json_pointer_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_relative_json_pointer_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_default_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_default_validation_request_body/post.md index 618244a79cc..4f6d15db526 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_default_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_default_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post.md index fc5b8952cac..c336468ee30 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_validation_request_body/post.md index 8e6890f1329..f3a3d153004 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_with_empty_array_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_with_empty_array_request_body/post.md index 445175d7983..c4781bc3162 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_with_empty_array_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_with_empty_array_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_with_escaped_characters_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_with_escaped_characters_request_body/post.md index 2c704a5c52c..7e1362ed638 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_with_escaped_characters_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_required_with_escaped_characters_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_simple_enum_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_simple_enum_validation_request_body/post.md index 8e75b40458d..60a4896e371 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_simple_enum_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_simple_enum_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_single_dependency_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_single_dependency_request_body/post.md index e79ff4ca485..78dc9f9822e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_single_dependency_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_single_dependency_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_small_multiple_of_large_integer_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_small_multiple_of_large_integer_request_body/post.md index 84e0bd2f63d..4ea1d0c6461 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_small_multiple_of_large_integer_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_small_multiple_of_large_integer_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_string_type_matches_strings_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_string_type_matches_strings_request_body/post.md index 3d96e06a24f..492b543d00b 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_string_type_matches_strings_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_string_type_matches_strings_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_time_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_time_format_request_body/post.md index c08aec2e3e5..125127ecc4f 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_time_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_time_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_type_array_object_or_null_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_type_array_object_or_null_request_body/post.md index 9b8c8fe7c3d..31943f6d395 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_type_array_object_or_null_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_type_array_object_or_null_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_type_array_or_object_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_type_array_or_object_request_body/post.md index 24d2b919ba2..0ea46f10b35 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_type_array_or_object_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_type_array_or_object_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_type_as_array_with_one_item_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_type_as_array_with_one_item_request_body/post.md index b1ea9cafb28..7cf7dfe2350 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_type_as_array_with_one_item_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_type_as_array_with_one_item_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_as_schema_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_as_schema_request_body/post.md index 98b1219a819..ee571e20b9d 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_as_schema_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_as_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post.md index 186f6c8e474..10c00a9d913 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_with_items_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_with_items_request_body/post.md index f34b6c0748b..c998bc10a34 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_with_items_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_with_items_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post.md index e5b799d9832..426bef1eb4c 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post.md index 1e0ea7e0d54..c5083d740c2 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_schema_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_schema_request_body/post.md index c22019be098..15431df8806 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_schema_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_schema_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post.md index 51c4f787ddd..fcb33047594 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post.md index e05a3084e76..b0a938b5e3b 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uniqueitems_false_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uniqueitems_false_validation_request_body/post.md index f39af217f3b..73669fb75ba 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uniqueitems_false_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uniqueitems_false_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post.md index b1e5b5d8472..081a042616b 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uniqueitems_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uniqueitems_validation_request_body/post.md index 70077290391..925f59d5229 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uniqueitems_validation_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uniqueitems_validation_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post.md index 9bda587eae2..8502e128274 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uri_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uri_format_request_body/post.md index a68806ee7e1..2687068ba7e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uri_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uri_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uri_reference_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uri_reference_format_request_body/post.md index 4cd1e78a4b0..223b2dcbd3c 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uri_reference_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uri_reference_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uri_template_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uri_template_format_request_body/post.md index e1e465cebf7..f5978d8234b 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uri_template_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uri_template_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uuid_format_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uuid_format_request_body/post.md index 0f6eca3675f..16ab62b4cbf 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uuid_format_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_uuid_format_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post.md index b57cad7f728..5c35d811877 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post.md @@ -56,14 +56,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post.md index f15ebe57c33..a3ae9793aa3 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, [a_schema_given_for_prefixitems.ASchemaGivenForPrefixitemsTuple](../../components/schema/a_schema_given_for_prefixitems.md#aschemagivenforprefixitemstuple), bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, [a_schema_given_for_prefixitems.ASchemaGivenForPrefixitemsTuple](../../components/schema/a_schema_given_for_prefixitems.md#aschemagivenforprefixitemstuple), bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post.md index 5ff9a670f4b..8eb7d332353 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, [additional_items_are_allowed_by_default.AdditionalItemsAreAllowedByDefaultTuple](../../components/schema/additional_items_are_allowed_by_default.md#additionalitemsareallowedbydefaulttuple), bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, [additional_items_are_allowed_by_default.AdditionalItemsAreAllowedByDefaultTuple](../../components/schema/additional_items_are_allowed_by_default.md#additionalitemsareallowedbydefaulttuple), bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md index e5aaeabf353..c6aaa6d278d 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDict](../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDict](../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md index 8112ed779a2..9e163998999 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDict](../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdict) | | +[body](#responsefor200-body) | [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDict](../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdict) | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post.md index a1d18a39d66..483f8195ef3 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [additionalproperties_does_not_look_in_applicators.AdditionalpropertiesDoesNotLookInApplicatorsDict](../../components/schema/additionalproperties_does_not_look_in_applicators.md#additionalpropertiesdoesnotlookinapplicatorsdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | [additionalproperties_does_not_look_in_applicators.AdditionalpropertiesDoesNotLookInApplicatorsDict](../../components/schema/additionalproperties_does_not_look_in_applicators.md#additionalpropertiesdoesnotlookinapplicatorsdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md index 8fc98ed70ed..68c41553910 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [additionalproperties_with_null_valued_instance_properties.AdditionalpropertiesWithNullValuedInstancePropertiesDict](../../components/schema/additionalproperties_with_null_valued_instance_properties.md#additionalpropertieswithnullvaluedinstancepropertiesdict) | | +[body](#responsefor200-body) | [additionalproperties_with_null_valued_instance_properties.AdditionalpropertiesWithNullValuedInstancePropertiesDict](../../components/schema/additionalproperties_with_null_valued_instance_properties.md#additionalpropertieswithnullvaluedinstancepropertiesdict) | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post.md index 29b70104393..98294abccc4 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [additionalproperties_with_schema.AdditionalpropertiesWithSchemaDict](../../components/schema/additionalproperties_with_schema.md#additionalpropertieswithschemadict) | | +[body](#responsefor200-body) | [additionalproperties_with_schema.AdditionalpropertiesWithSchemaDict](../../components/schema/additionalproperties_with_schema.md#additionalpropertieswithschemadict) | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.md index dfc5c071e1c..6c7a89b34d6 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_response_body_for_content_types/post.md index 909439aa7d5..f584dc53c73 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.md index d4d88df3759..a1b9080192d 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.md index ec597db0909..d7e7d3a4a8e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [allof_with_base_schema.AllofWithBaseSchemaDict](../../components/schema/allof_with_base_schema.md#allofwithbaseschemadict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | [allof_with_base_schema.AllofWithBaseSchemaDict](../../components/schema/allof_with_base_schema.md#allofwithbaseschemadict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.md index 2b08f38ef22..3597c3367fa 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.md index 299166455c4..b9b156178b0 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.md index 632e4b6f7f3..73c28674a62 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.md index 45517b3e73b..d6649f6df12 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.md index a7d37a7b17d..5754f3486bb 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_response_body_for_content_types/post.md index cc95bb24c21..0479bfcbd11 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.md index d59f707f0b9..1e04eb186ba 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | str | | +[body](#responsefor200-body) | str | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.md index dfcef7c8b09..d2a63827d64 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.md index b1a582b7816..922b0f63795 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | tuple | | +[body](#responsefor200-body) | tuple | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.md index c042eddffcf..7d646f2c845 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | bool | | +[body](#responsefor200-body) | bool | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_int_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_int_response_body_for_content_types/post.md index 1c2c73d9f72..317976adab6 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_int_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_int_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_number_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_number_response_body_for_content_types/post.md index b75db114a1b..073c6dc750b 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_number_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_number_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md index 0677e75bcde..a009d75a070 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md index e1c8771f0ee..d3dffbff2f7 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post.md index 88193c92a36..ae0a8c23a92 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md index 94b32b4cbbe..255b55758e3 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_date_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_date_format_response_body_for_content_types/post.md index dbe0fec7b56..7f1f68b9241 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_date_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_date_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md index 5a3dcc08495..49058625cfd 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post.md index 9c9c477eede..7ada09edab5 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post.md index 6b7c965eda3..485f338e302 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRootDict](../../components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md#dependentschemasdependentsubschemaincompatiblewithrootdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | [dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRootDict](../../components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md#dependentschemasdependentsubschemaincompatiblewithrootdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post.md index fc2640b5da8..134eee0b6b6 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md index 7f1aad317a1..439c7809a25 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_email_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_email_format_response_body_for_content_types/post.md index 728a6176ead..d7d2883ec30 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_email_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_email_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post.md index 52c6dd809d3..b6665ec9e09 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.md index 24a3488b6cc..c1a7d25f65c 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | float, int | | +[body](#responsefor200-body) | float, int | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.md index c1c3e8ce6e8..00e6c65ec28 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | float, int | | +[body](#responsefor200-body) | float, int | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.md index b65b4a7c355..d898842c20c 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | typing.Literal["foo\nbar", "foo\rbar"] | | +[body](#responsefor200-body) | typing.Literal["foo\nbar", "foo\rbar"] | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.md index 0ddc596fa15..40e4d10b7c4 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | typing.Literal[False] | | +[body](#responsefor200-body) | typing.Literal[False] | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.md index 834db053b39..267af222348 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | typing.Literal[True] | | +[body](#responsefor200-body) | typing.Literal[True] | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.md index 5da3554b005..1f2bfbd863c 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [enums_in_properties.EnumsInPropertiesDict](../../components/schema/enums_in_properties.md#enumsinpropertiesdict) | | +[body](#responsefor200-body) | [enums_in_properties.EnumsInPropertiesDict](../../components/schema/enums_in_properties.md#enumsinpropertiesdict) | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post.md index 698bf2a124e..8eb83207ef4 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post.md index 05205f22e85..9fa696f3344 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_float_division_inf_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_float_division_inf_response_body_for_content_types/post.md index 612e28c8c14..b74c8351b31 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_float_division_inf_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_float_division_inf_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | int | | +[body](#responsefor200-body) | int | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_forbidden_property_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_forbidden_property_response_body_for_content_types/post.md index c5e5e10278c..82dc6842ebe 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_forbidden_property_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_forbidden_property_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [forbidden_property.ForbiddenPropertyDict](../../components/schema/forbidden_property.md#forbiddenpropertydict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | [forbidden_property.ForbiddenPropertyDict](../../components/schema/forbidden_property.md#forbiddenpropertydict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_hostname_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_hostname_format_response_body_for_content_types/post.md index 29e4e50f1a4..2b2088e4c8e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_hostname_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_hostname_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_idn_email_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_idn_email_format_response_body_for_content_types/post.md index cbc9a84d6ae..018e4393714 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_idn_email_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_idn_email_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post.md index 13c6183ef6e..f4ebb466c62 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post.md index 66adb4f0214..f2b43df3795 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post.md index ede40967658..cfe801e35c9 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post.md index 0415195d56f..c8cc852f1a8 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post.md index fbbd81d18d2..2c01a423f65 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post.md index 60d9224b178..89c0c522356 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post.md index 6523d8a9269..a9143162e98 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.md index 229d08d8b93..459ba2f745c 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | int | | +[body](#responsefor200-body) | int | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ipv4_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ipv4_format_response_body_for_content_types/post.md index 39c90fa3396..7fc6454f55f 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ipv4_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ipv4_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post.md index f82f7886788..3dd2b61eb94 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_iri_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_iri_format_response_body_for_content_types/post.md index d41d5fed823..5980d0bbeba 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_iri_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_iri_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_iri_reference_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_iri_reference_format_response_body_for_content_types/post.md index bbf8daf0174..535cc587e90 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_iri_reference_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_iri_reference_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_contains_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_contains_response_body_for_content_types/post.md index 76dd50ff807..819109227b4 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_contains_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_contains_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [items_contains.ItemsContainsTuple](../../components/schema/items_contains.md#itemscontainstuple) | | +[body](#responsefor200-body) | [items_contains.ItemsContainsTuple](../../components/schema/items_contains.md#itemscontainstuple) | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post.md index 784453116ee..1e3f52bceba 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [items_does_not_look_in_applicators_valid_case.ItemsDoesNotLookInApplicatorsValidCaseTuple](../../components/schema/items_does_not_look_in_applicators_valid_case.md#itemsdoesnotlookinapplicatorsvalidcasetuple) | | +[body](#responsefor200-body) | [items_does_not_look_in_applicators_valid_case.ItemsDoesNotLookInApplicatorsValidCaseTuple](../../components/schema/items_does_not_look_in_applicators_valid_case.md#itemsdoesnotlookinapplicatorsvalidcasetuple) | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post.md index f2d1543158b..60e7bbf2fa3 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [items_with_null_instance_elements.ItemsWithNullInstanceElementsTuple](../../components/schema/items_with_null_instance_elements.md#itemswithnullinstanceelementstuple) | | +[body](#responsefor200-body) | [items_with_null_instance_elements.ItemsWithNullInstanceElementsTuple](../../components/schema/items_with_null_instance_elements.md#itemswithnullinstanceelementstuple) | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md index 8040cd1fdd4..a542232206d 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post.md index d8793fd0a74..6a592f78f1c 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post.md index 8c135d8d786..948197766e9 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.md index f54d0c67326..336adcf37e4 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.md index f3c00fb972a..dad52273a43 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.md index cbdfde99dcb..495413c64b5 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.md index c1dd163c792..9a8f6c2e437 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.md index 16c496580ef..2e6666ae343 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post.md index 1b5b0babce5..d64cb5e9ff7 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post.md index 8612bcc0acb..745fe18490e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.md index b622ade5bf5..20d37276e13 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post.md index a93cdf1df93..6a5458d8a38 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post.md index 720a2e7aedf..fe0cb3892e3 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md index a9d04bab810..612471e8abb 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post.md index a4bea282513..cb17fdadff8 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post.md index 817afc83d95..f9ab10b4ef6 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post.md index 471149ae392..661f305de26 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | int, str | | +[body](#responsefor200-body) | int, str | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.md index 56068eec3df..5985e6c67bc 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.md index 9d4c09dfe53..7f54ccbdc2a 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_items_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_items_response_body_for_content_types/post.md index 9cf822a3113..90c7777923e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_items_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_items_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [nested_items.NestedItemsTuple](../../components/schema/nested_items.md#nesteditemstuple) | | +[body](#responsefor200-body) | [nested_items.NestedItemsTuple](../../components/schema/nested_items.md#nesteditemstuple) | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md index 15281a36154..7202c7402a5 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post.md index 713611c6b50..40416b76e75 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalpropertiesDict](../../components/schema/non_ascii_pattern_with_additionalproperties.md#nonasciipatternwithadditionalpropertiesdict) | | +[body](#responsefor200-body) | [non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalpropertiesDict](../../components/schema/non_ascii_pattern_with_additionalproperties.md#nonasciipatternwithadditionalpropertiesdict) | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post.md index 56e1190a9bc..561d39905b1 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md index 0ab42d79137..30770bcc8f1 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_multiple_types_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_multiple_types_response_body_for_content_types/post.md index e81e36de0d6..3c92e883433 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_multiple_types_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_multiple_types_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_response_body_for_content_types/post.md index 8f5fbfbde99..c514091bf50 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.md index 0654aac5e67..da408d48628 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | typing.Literal["hello\x00there"] | | +[body](#responsefor200-body) | typing.Literal["hello\x00there"] | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.md index 19ebd6dea27..514eb011d87 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | None | | +[body](#responsefor200-body) | None | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.md index 40638b1b818..e8a62a6907a 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | float, int | | +[body](#responsefor200-body) | float, int | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.md index 9d71f4a56d8..dc96db4b68a 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [object_properties_validation.ObjectPropertiesValidationDict](../../components/schema/object_properties_validation.md#objectpropertiesvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | [object_properties_validation.ObjectPropertiesValidationDict](../../components/schema/object_properties_validation.md#objectpropertiesvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.md index efcb61c1e76..7fb8227199e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict | | +[body](#responsefor200-body) | schemas.immutabledict | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.md index a517d2d4e26..54f06b3c861 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_response_body_for_content_types/post.md index 1ec95398c9d..a2c09ed9b23 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.md index c8364a0e3d0..98711704aae 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | str | | +[body](#responsefor200-body) | str | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.md index 09231d877c5..30949ce3603 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.md index c324db5297a..970824d1bac 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict | | +[body](#responsefor200-body) | schemas.immutabledict | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.md index 6ef62a3d126..99d71b0c156 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post.md index 294290ed8e4..c5eee572391 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post.md index 47977d0b361..6ac02ace7c5 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md index 7b693e0c99e..91458defe8a 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post.md index b9d93f0e6f7..a92fc23efef 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [prefixitems_validation_adjusts_the_starting_index_for_items.PrefixitemsValidationAdjustsTheStartingIndexForItemsTuple](../../components/schema/prefixitems_validation_adjusts_the_starting_index_for_items.md#prefixitemsvalidationadjuststhestartingindexforitemstuple) | | +[body](#responsefor200-body) | [prefixitems_validation_adjusts_the_starting_index_for_items.PrefixitemsValidationAdjustsTheStartingIndexForItemsTuple](../../components/schema/prefixitems_validation_adjusts_the_starting_index_for_items.md#prefixitemsvalidationadjuststhestartingindexforitemstuple) | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post.md index f644d239d94..856d9af61af 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, [prefixitems_with_null_instance_elements.PrefixitemsWithNullInstanceElementsTuple](../../components/schema/prefixitems_with_null_instance_elements.md#prefixitemswithnullinstanceelementstuple), bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, [prefixitems_with_null_instance_elements.PrefixitemsWithNullInstanceElementsTuple](../../components/schema/prefixitems_with_null_instance_elements.md#prefixitemswithnullinstanceelementstuple), bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post.md index 2db4c441961..45ecc6e1a24 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteractionDict](../../components/schema/properties_patternproperties_additionalproperties_interaction.md#propertiespatternpropertiesadditionalpropertiesinteractiondict) | | +[body](#responsefor200-body) | [properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteractionDict](../../components/schema/properties_patternproperties_additionalproperties_interaction.md#propertiespatternpropertiesadditionalpropertiesinteractiondict) | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md index 7c0bc193a2c..a8bb989b3ea 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [properties_whose_names_are_javascript_object_property_names.PropertiesWhoseNamesAreJavascriptObjectPropertyNamesDict](../../components/schema/properties_whose_names_are_javascript_object_property_names.md#propertieswhosenamesarejavascriptobjectpropertynamesdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | [properties_whose_names_are_javascript_object_property_names.PropertiesWhoseNamesAreJavascriptObjectPropertyNamesDict](../../components/schema/properties_whose_names_are_javascript_object_property_names.md#propertieswhosenamesarejavascriptobjectpropertynamesdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md index 9808bb493a7..710926fc921 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [properties_with_escaped_characters.PropertiesWithEscapedCharactersDict](../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | [properties_with_escaped_characters.PropertiesWithEscapedCharactersDict](../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post.md index 3363cb87aec..efaf213d821 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [properties_with_null_valued_instance_properties.PropertiesWithNullValuedInstancePropertiesDict](../../components/schema/properties_with_null_valued_instance_properties.md#propertieswithnullvaluedinstancepropertiesdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | [properties_with_null_valued_instance_properties.PropertiesWithNullValuedInstancePropertiesDict](../../components/schema/properties_with_null_valued_instance_properties.md#propertieswithnullvaluedinstancepropertiesdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md index da4e8d21b0b..060ebe57b3b 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_propertynames_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_propertynames_validation_response_body_for_content_types/post.md index 4afe6f7ef49..2d32bfa90b4 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_propertynames_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_propertynames_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_regex_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_regex_format_response_body_for_content_types/post.md index 8671cdcea6a..a9b8453459e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_regex_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_regex_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post.md index c93d12b5526..4b3dcfa6e86 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post.md index 101fec77a59..87a68251d32 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post.md index e0c1d452555..1a6a0d020ff 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [required_default_validation.RequiredDefaultValidationDict](../../components/schema/required_default_validation.md#requireddefaultvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | [required_default_validation.RequiredDefaultValidationDict](../../components/schema/required_default_validation.md#requireddefaultvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md index 523d8ffb5ec..7312c752185 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [required_properties_whose_names_are_javascript_object_property_names.RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesDict](../../components/schema/required_properties_whose_names_are_javascript_object_property_names.md#requiredpropertieswhosenamesarejavascriptobjectpropertynamesdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | [required_properties_whose_names_are_javascript_object_property_names.RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesDict](../../components/schema/required_properties_whose_names_are_javascript_object_property_names.md#requiredpropertieswhosenamesarejavascriptobjectpropertynamesdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_validation_response_body_for_content_types/post.md index 797d96d06f6..7020c09630e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [required_validation.RequiredValidationDict](../../components/schema/required_validation.md#requiredvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | [required_validation.RequiredValidationDict](../../components/schema/required_validation.md#requiredvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.md index a32a4266667..6f7a17013d1 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [required_with_empty_array.RequiredWithEmptyArrayDict](../../components/schema/required_with_empty_array.md#requiredwithemptyarraydict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | [required_with_empty_array.RequiredWithEmptyArrayDict](../../components/schema/required_with_empty_array.md#requiredwithemptyarraydict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.md index 253c0791c03..bf3a00d159b 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [required_with_escaped_characters.RequiredWithEscapedCharactersDict](../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | [required_with_escaped_characters.RequiredWithEscapedCharactersDict](../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.md index b370cd3f35d..678e01025d4 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | float, int | | +[body](#responsefor200-body) | float, int | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_single_dependency_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_single_dependency_response_body_for_content_types/post.md index 99c177fcfc5..6d6a211c4ef 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_single_dependency_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_single_dependency_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post.md index 8f4a7ae1489..56f4dc635bc 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | int | | +[body](#responsefor200-body) | int | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.md index 8e9bd8f2073..32f68007c75 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | str | | +[body](#responsefor200-body) | str | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_time_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_time_format_response_body_for_content_types/post.md index 5d920edfa61..d6c35534716 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_time_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_time_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post.md index 0457ec95c76..3b5d7b525cd 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | tuple, schemas.immutabledict, None | | +[body](#responsefor200-body) | tuple, schemas.immutabledict, None | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_array_or_object_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_array_or_object_response_body_for_content_types/post.md index e83cc7d592e..022ab6d91e2 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_array_or_object_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_array_or_object_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | tuple, schemas.immutabledict | | +[body](#responsefor200-body) | tuple, schemas.immutabledict | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post.md index f7a478f27df..dadedcc48b0 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | str | | +[body](#responsefor200-body) | str | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post.md index 8256f33ff5f..23d85aba249 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post.md index a18080b7f47..d510a55f0c3 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post.md index 8361f33cba1..1e428f2eb0e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [unevaluateditems_with_items.UnevaluateditemsWithItemsTuple](../../components/schema/unevaluateditems_with_items.md#unevaluateditemswithitemstuple) | | +[body](#responsefor200-body) | [unevaluateditems_with_items.UnevaluateditemsWithItemsTuple](../../components/schema/unevaluateditems_with_items.md#unevaluateditemswithitemstuple) | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post.md index 4e2bdb87a49..2667afffe8b 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post.md index 2b59c06fc59..e3edd145129 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post.md index 69cef916328..4046920e2e4 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict | | +[body](#responsefor200-body) | schemas.immutabledict | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post.md index 4c1b3a7663f..a1c2e19810c 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict](../../components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md#unevaluatedpropertieswithadjacentadditionalpropertiesdict) | | +[body](#responsefor200-body) | [unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict](../../components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md#unevaluatedpropertieswithadjacentadditionalpropertiesdict) | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md index dfb1b404f27..8a6c678b953 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md index 5f5c0b860f5..cc4471e9a4e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post.md index 67fb00a9ce4..ba4a54c34c4 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, [uniqueitems_false_with_an_array_of_items.UniqueitemsFalseWithAnArrayOfItemsTuple](../../components/schema/uniqueitems_false_with_an_array_of_items.md#uniqueitemsfalsewithanarrayofitemstuple), bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, [uniqueitems_false_with_an_array_of_items.UniqueitemsFalseWithAnArrayOfItemsTuple](../../components/schema/uniqueitems_false_with_an_array_of_items.md#uniqueitemsfalsewithanarrayofitemstuple), bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.md index ccd5751d920..6ae609762a4 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post.md index 1e47365af75..492e171bcd6 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, [uniqueitems_with_an_array_of_items.UniqueitemsWithAnArrayOfItemsTuple](../../components/schema/uniqueitems_with_an_array_of_items.md#uniqueitemswithanarrayofitemstuple), bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, [uniqueitems_with_an_array_of_items.UniqueitemsWithAnArrayOfItemsTuple](../../components/schema/uniqueitems_with_an_array_of_items.md#uniqueitemswithanarrayofitemstuple), bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_format_response_body_for_content_types/post.md index 266c3b216ca..3f4342d4f04 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.md index deb286a4d65..551d3b9d88a 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_template_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_template_format_response_body_for_content_types/post.md index f05c0b9091b..7e704ec48a4 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_template_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_template_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uuid_format_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uuid_format_response_body_for_content_types/post.md index b4f877edf4c..ba068a34552 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uuid_format_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uuid_format_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post.md index 84df1d19c06..0b2cefec130 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema2](#_200-content-applicationjson-schema2) +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) ### Body Details -#### _200 content ApplicationJson Schema2 +#### ResponseFor200 content ApplicationJson Schema2 ``` type: schemas.Schema ``` diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/operation.py index 2b8fee40c34..6d6d380e5d0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/operation.py index 02dd4cd6af6..f3b9b87acc2 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/operation.py index bf13d2411e3..b99a1e03592 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/operation.py index faec6a439e1..87e6d559418 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post/operation.py index d918de80e5e..9c7bc76580f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post/operation.py index 8bf9ffb8a7d..00100400f0d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_schema_request_body/post/operation.py index 3c0d6116f9e..ab77eba6c6e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_schema_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/operation.py index 6408159e59b..df62c6894d1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/operation.py index 7fa03721a4b..364453afdf2 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/operation.py index e0d327ecde0..167997e0be3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/operation.py index f18051f3357..5d6e5a9417f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/operation.py index fd26607b781..c41c7abb227 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/operation.py index 7d2dc22cb92..7b4aa22f5c4 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/operation.py index c5b40498d84..247deedb197 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/operation.py index 808632c060c..de243529c40 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/operation.py index 4942a16c1d4..c1d882fa50f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/operation.py index 3e23774d7ef..5392be95ab2 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/operation.py index 07c4b00d549..0b83156330d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/operation.py index 62c010dc2b9..9ec95b7ec02 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/operation.py index 586517a89fd..72892c80af4 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/operation.py index d2c5b4db4ec..0c4bc24658c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/operation.py index 1c08bf377fb..7d82e25ebaf 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/operation.py index 9eba1a7b61d..7e4d024e818 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/operation.py index 882b8cfb016..1ebeac7c700 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/operation.py index c8cf2b39b6e..18369da04a2 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/operation.py index 1ad667a7d9c..830dda4b153 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/operation.py index 1c4e75898b2..bd41275d157 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_format_request_body/post/operation.py index cc72a15399f..ced4dc36099 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_format_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/operation.py index ef1dbcb3994..28c8dc3e083 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/operation.py index 0fc1a1c3b17..5a1fb62f86d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/operation.py index b4defcf0e80..c3510c8d682 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/operation.py index daddc0aef4e..014c233f4df 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_duration_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_duration_format_request_body/post/operation.py index de361f668ed..8dc7821a78c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_duration_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_duration_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_duration_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_duration_format_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_duration_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_duration_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/operation.py index 72eb178acab..8727d68b73b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/operation.py index 93b9f77f1c0..2be9b66a1ba 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/operation.py index ad7ac47659b..6c2a295bdac 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/operation.py index c58995e88e6..994f98feb69 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/operation.py index def3de025d8..c92dedda09a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/operation.py index eb96cfb1de1..aff23b76309 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/operation.py index 07b33db7885..139fe18c966 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/operation.py index e87b81965b9..ed6e7b81230 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusivemaximum_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusivemaximum_validation_request_body/post/operation.py index 5fbcb722e0b..edd599d735e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusivemaximum_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusivemaximum_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusivemaximum_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusivemaximum_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusivemaximum_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusivemaximum_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusiveminimum_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusiveminimum_validation_request_body/post/operation.py index 4fff036532c..3c7a472390b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusiveminimum_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusiveminimum_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusiveminimum_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusiveminimum_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusiveminimum_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusiveminimum_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_float_division_inf_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_float_division_inf_request_body/post/operation.py index d41f0e13b61..37591a2e5ac 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_float_division_inf_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_float_division_inf_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_float_division_inf_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_float_division_inf_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_float_division_inf_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_float_division_inf_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/operation.py index d4b9120e86a..46217c66181 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/operation.py index eca8ba5d394..b7d0f127816 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_email_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_email_format_request_body/post/operation.py index d3e533ca35d..1c49301289f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_email_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_email_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_email_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_email_format_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_email_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_email_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_hostname_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_hostname_format_request_body/post/operation.py index 225321171cc..fe88d638d22 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_hostname_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_hostname_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_hostname_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_hostname_format_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_hostname_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_hostname_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_else_without_then_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_else_without_then_request_body/post/operation.py index ba3ca500e33..dfdf96efd50 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_else_without_then_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_else_without_then_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_else_without_then_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_else_without_then_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_else_without_then_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_else_without_then_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_then_without_else_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_then_without_else_request_body/post/operation.py index de9be262021..d25a45af6fe 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_then_without_else_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_then_without_else_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_then_without_else_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_then_without_else_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_then_without_else_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_then_without_else_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post/operation.py index a533a1033e8..763a8f82c65 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_else_without_if_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_else_without_if_request_body/post/operation.py index 3d5d6b371bd..32189052e9a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_else_without_if_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_else_without_if_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_else_without_if_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_else_without_if_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_else_without_if_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_else_without_if_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_if_without_then_or_else_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_if_without_then_or_else_request_body/post/operation.py index 5281278947c..d7c0009ac71 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_if_without_then_or_else_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_if_without_then_or_else_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_if_without_then_or_else_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_if_without_then_or_else_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_if_without_then_or_else_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_if_without_then_or_else_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_then_without_if_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_then_without_if_request_body/post/operation.py index b1f00c3e396..101382e7c5c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_then_without_if_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_then_without_if_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_then_without_if_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_then_without_if_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_then_without_if_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_then_without_if_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/operation.py index f4a129fdd91..b8cd1a3b31f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/operation.py index 51f5f5a8f84..92369d23fc3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/operation.py index 9155ca1d212..f37ca537c41 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_format_request_body/post/operation.py index abc6777bd33..3c0480c3d55 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_format_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_reference_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_reference_format_request_body/post/operation.py index d04f7f72c39..f31a62594e8 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_reference_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_reference_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_reference_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_reference_format_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_reference_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_reference_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/operation.py index f96ea4a3160..7692eaf1b4f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post/operation.py index 91e53ef7b8c..2b98a7cec35 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_with_null_instance_elements_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_with_null_instance_elements_request_body/post/operation.py index d77865ee05a..e4b768d2d53 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_with_null_instance_elements_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_with_null_instance_elements_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_with_null_instance_elements_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_with_null_instance_elements_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_with_null_instance_elements_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_with_null_instance_elements_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/operation.py index 23af6ca1ba1..a0eab10a36a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/operation.py index e8db36350dd..de1d349aec8 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/operation.py index 048e329aa30..898a1d303ed 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/operation.py index fec6304c585..1c4f855e870 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/operation.py index 3a0304a69d4..a666fb30fdb 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/operation.py index 33c091bca8b..79d516829f0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/operation.py index 6f5c67c5022..f3b0af790a9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/operation.py index a6d27fcad7c..e61260a93cc 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/operation.py index f97ba64d48e..3db6e0bea17 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/operation.py index 4a3d627af98..80bae3df4d7 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/operation.py index 374fe3be996..1661841a2fb 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/operation.py index 5bdc1cb8b48..a96c9474e2c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/operation.py index 632b1abfedc..4918b3efd30 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/operation.py index 3ec372ee914..98b26a84a6f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/operation.py index 61f1e12c4d2..99969069a59 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/operation.py index 8566201e296..0917d77bbaa 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/operation.py index f62dae45866..30ea017614c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/operation.py index e96751ba01e..d1d165a59ed 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/operation.py index 483a6468c29..e48324ee80c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/operation.py index d1033364554..faa7c7266d4 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/operation.py index dc66ca393ff..b5ef0dca00d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/operation.py index 53b6fa63463..ed46508e365 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_interference_across_combined_schemas_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_interference_across_combined_schemas_request_body/post/operation.py index 8238039d24c..6689eb0806a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_interference_across_combined_schemas_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_interference_across_combined_schemas_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_interference_across_combined_schemas_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_interference_across_combined_schemas_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_interference_across_combined_schemas_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_interference_across_combined_schemas_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/operation.py index 3b86f14902c..57849fc889d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/operation.py index 05fee5cd54e..813d5df443b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/operation.py index a20c391c436..d63f15c0b8c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/operation.py index 9dfdfc0e481..b521f8d42c5 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/operation.py index aa446e95b94..e4b653621a0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/operation.py index 3c57c468072..63ca3bef84a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/operation.py index 38e00a2dbea..4c48562b936 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/operation.py index c886951c41b..7075dfb67dc 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/operation.py index 4a26273a17c..ee6a59eb03b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/operation.py index c77e43b1493..2bb830e4fdc 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/operation.py index 1854055de7f..cde0061a258 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/operation.py index d2b93151285..f3611231b21 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/operation.py index 1f293b49010..45aac1b0644 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/operation.py index 32eb26efab3..cf6a8fc241a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/operation.py index ef6a58f4fa7..d4d620851c1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/operation.py index 6f8bce2d4ea..2f4da875ddd 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/operation.py index 781e6e2a4fc..123440ad216 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/operation.py index b7ec40d9f3f..0447024ed3a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/operation.py index b771ee77db0..8d2983fa5e5 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/operation.py index aaf00dc677a..98a12abbda6 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post/operation.py index 0ab09c9ba1c..0dba4a7183f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/operation.py index 24a2c712ac9..b48196cc896 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post/operation.py index 83f2460a81b..39f1c801651 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/operation.py index c7057ac61cb..ada223bdf12 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/operation.py index 8d2906eaa31..70a26dcbec1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regex_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regex_format_request_body/post/operation.py index 9aac1d42528..74c6c604d0c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regex_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regex_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regex_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regex_format_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regex_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regex_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/operation.py index d355fc344fa..1a805ba7d55 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_relative_json_pointer_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_relative_json_pointer_format_request_body/post/operation.py index 1a3b20ac26a..eacb7bc88e0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_relative_json_pointer_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_relative_json_pointer_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_relative_json_pointer_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_relative_json_pointer_format_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_relative_json_pointer_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_relative_json_pointer_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/operation.py index 10caf145727..80c4ef28664 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post/operation.py index ad050bf2b47..9abb4938fce 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/operation.py index 3eabf9cb6f5..292ea1ac909 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/operation.py index a65d2466a89..8313bd00fd5 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/operation.py index b2a9503de17..9f84f5d435d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/operation.py index 92120c5a4f6..0734c74a9b2 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/operation.py index dec4b04810e..7ec7ea3090a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_small_multiple_of_large_integer_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_small_multiple_of_large_integer_request_body/post/operation.py index 61bf202e7e9..7b2ab1cc825 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_small_multiple_of_large_integer_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_small_multiple_of_large_integer_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_small_multiple_of_large_integer_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_small_multiple_of_large_integer_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_small_multiple_of_large_integer_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_small_multiple_of_large_integer_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/operation.py index b13a106e0d9..47cfc3771e9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_time_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_time_format_request_body/post/operation.py index 3debbdae655..ae00b95534b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_time_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_time_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_time_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_time_format_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_time_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_time_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_object_or_null_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_object_or_null_request_body/post/operation.py index b825b696244..f792ab074b1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_object_or_null_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_object_or_null_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_object_or_null_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_object_or_null_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_object_or_null_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_object_or_null_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_or_object_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_or_object_request_body/post/operation.py index 786dc22213f..27a44a83efd 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_or_object_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_or_object_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_or_object_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_or_object_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_or_object_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_or_object_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_as_array_with_one_item_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_as_array_with_one_item_request_body/post/operation.py index e419bf52fad..75e3070b9b1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_as_array_with_one_item_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_as_array_with_one_item_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_as_array_with_one_item_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_as_array_with_one_item_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_as_array_with_one_item_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_as_array_with_one_item_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/operation.py index 0e2ab72c3d8..72a25cff615 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/operation.py index 6980ea4bd3c..62870819cbd 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/operation.py index 24dcc79692a..67331407422 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/operation.py index 954bb2e493b..cce37becda4 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/operation.py index 6c433a5cf83..3efc07a77fb 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/operation.py index 36898f275b3..ec2dfd17c42 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/operation.py index b323527e8dd..0748058e43f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/operation.py index 644acacc6a4..332b1e3f331 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py index 288b48db033..b8ae9395c4b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post/operation.py index ac10bdccbb6..fe8d5a5b7e4 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/operation.py index 95b6297666d..a3bc01d48ae 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post/operation.py index c4b656a0c06..e2cc98e366d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/operation.py index b94fe306d33..ae1ef69813d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/operation.py index 8f02ee4695d..2e69c8c5e0f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/operation.py index 53ada9bb266..17e17846bda 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uuid_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uuid_format_request_body/post/operation.py index bfa25e67c7e..a8d9d683a6f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uuid_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uuid_format_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uuid_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uuid_format_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uuid_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uuid_format_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post/operation.py index f48e75ba7bb..e14d8693879 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post/responses/response_200/__init__.py index 66f4f9beaca..faf4da69820 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/operation.py index 4edb7cb9600..319d03afcd8 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/operation.py index 21a6986926a..97c0119aa1a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/operation.py index 71c38714118..090b14d82de 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py index 1d58b54edb9..30fdcbd90c7 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/__init__.py index eaef20fef6b..d97b1d45dc6 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post/operation.py index 677ac043ea6..1805e4ef1b5 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py index 078ea05f32d..64af8229144 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py index 3ede0b7acd8..857ab1749c9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post/operation.py index 3cea4644c33..ded000f1660 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 1f70c00aac8..c829cef057a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/operation.py index 3ce56131d8a..01e96ea5a8d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/operation.py index d33eca98c34..7dc48ea05b5 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/operation.py index 6af48eb9854..da0d46d7ad9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/operation.py index 3004ced93b0..95e82a9b74d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/operation.py index c37ac9b5e9c..6246cf73da7 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/operation.py index ecd9641bebb..9d0d84c8b83 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/operation.py index 37451119733..07440623ae1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/operation.py index 4c5ac2eb47a..5ddd8aba6cc 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/operation.py index 2059516c061..564492657b6 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/operation.py index f5e6430d9d7..99431cc5f3b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/operation.py index 4a541430f6b..5a9ce6a0b52 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 64ba836c19f..3cf51f1225b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/operation.py index 1ff2c37e6fc..2238c21de72 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/operation.py index 278ffdb5e78..e72819e1ddb 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/__init__.py index efad0343827..4226a7c1a81 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/operation.py index e000804dec3..a6705e72cab 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/__init__.py index 635883f32f3..8750f0a1711 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/operation.py index 125a33d7438..097f09a881f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/operation.py index 2e2d2d3e5a3..d40fd29a04e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/operation.py index 3d30b071217..49e765acc99 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/operation.py index 104a1059884..82b09a8caeb 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/operation.py index eddd4a471ca..566cf9d7feb 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/operation.py index a108e3cd66c..e79c3d855bd 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_format_response_body_for_content_types/post/operation.py index fe9520b640e..c50910e73b7 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_format_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/operation.py index e20695fc635..20ade10b80a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/operation.py index 71e2ba358ed..c79175c1d7b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/operation.py index bf4623aedc3..42cd9b0021f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/operation.py index 6f774da613e..db90565fec6 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_duration_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_duration_format_response_body_for_content_types/post/operation.py index bebdfba9a27..107fa16baea 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_duration_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_duration_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_duration_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_duration_format_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_duration_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_duration_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/operation.py index e3cfc5b56e8..112a8424a30 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/operation.py index c5354b09d12..e2279c23b6f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/operation.py index 63ed47782c1..7534d1d4fdd 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/__init__.py index dfd2fbbad90..16243857094 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/operation.py index f3aee3de47b..3d89df03917 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py index dfd2fbbad90..16243857094 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/operation.py index eee05cd6095..b8ff055d10c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py index c3672e9a210..aafc74c83ab 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/operation.py index 15da93cddd1..916c091d348 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/__init__.py index 4dbf68a81a8..c1a84db233d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/operation.py index 652074c6d05..eab55cb3656 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/__init__.py index dcc7be25719..ff97af6059c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/operation.py index aa8a25a357b..63dbc1d7b53 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/__init__.py index 606e8933ac2..a0e1d0cfda2 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post/operation.py index 24ad932abf2..e180f838792 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post/operation.py index cf529489b19..f2d769d7c58 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_float_division_inf_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_float_division_inf_response_body_for_content_types/post/operation.py index 8d306bc7825..e7320988b0e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_float_division_inf_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_float_division_inf_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_float_division_inf_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_float_division_inf_response_body_for_content_types/post/responses/response_200/__init__.py index 51e9a1c97d6..8b47abaef1f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_float_division_inf_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_float_division_inf_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/operation.py index 5db275d0432..564fa742323 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/operation.py index 6acfcb141ea..99ade598795 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_email_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_email_format_response_body_for_content_types/post/operation.py index 79db68d6350..2c0b9fb7c22 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_email_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_email_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_email_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_email_format_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_email_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_email_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post/operation.py index 236eb0d6bc7..c34feba14de 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post/operation.py index e3e4a478e27..8f61bfcf481 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post/operation.py index 175fbbff811..d7fddf5533d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post/operation.py index e4267eb1ecc..dbb83b0f6a7 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post/operation.py index 248bcbeb8d7..0fbf7dc2eac 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post/operation.py index 83aa57fdf6d..fec7112fad0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post/operation.py index 3bfb8e1c428..51232349393 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/operation.py index 49abccb576f..93b66401eae 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/__init__.py index 51e9a1c97d6..8b47abaef1f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/operation.py index ab38df59a84..da231a84141 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/operation.py index bdf72453000..fb8dfd0b363 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_format_response_body_for_content_types/post/operation.py index 9175dbb02f8..9d8a10b0675 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_format_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_reference_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_reference_format_response_body_for_content_types/post/operation.py index eee4a8e7528..912dddc48e4 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_reference_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_reference_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/operation.py index e204867b76f..9f632e99a65 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/__init__.py index abb2bb42e96..42765dde680 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post/operation.py index 18e865f3777..130e5fad600 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post/responses/response_200/__init__.py index 24cc7f0440e..7bc46125060 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post/operation.py index 2cd09037ccc..bd75ca993af 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py index 4cb91b56747..c5084b0a702 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/operation.py index 33c16d5cd55..55cd085b6b5 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py index 045c4bed0d0..19511a03fd5 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/operation.py index b1e303fd649..fb63d32b1cc 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/operation.py index 200d7f5c945..d5a88e876d0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/operation.py index 2900371c651..c080de1ae09 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/operation.py index 791ac5148a5..94fec2d28c4 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/operation.py index c5d5a367a45..d2a9ba4469e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/operation.py index 10d254ab861..d67cb2110ae 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py index ab072d5f591..c0091e979c5 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/operation.py index 1ee8afeee03..e2806d1a61d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/operation.py index de3b2cc64ad..c830d5678bf 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/operation.py index f3e121b2262..15946ad6450 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/operation.py index b213659359e..c7464c7b38f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/operation.py index 487368e6d59..95226b68f3d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/operation.py index 2a050206e23..be22504c7f3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/operation.py index ee067bee913..73e89eca01b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/operation.py index 79e02e500e9..dfd72785ae9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/responses/response_200/__init__.py index 3c7395b2202..ad5551d8a16 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/responses/response_200/__init__.py @@ -18,7 +18,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/operation.py index 023ed79ebb5..578d2167c2e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/operation.py index 4236775aec8..b68edd3471b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/operation.py index e777a2b294a..e6fc6c285c9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/__init__.py index 8582b2edc39..d3bd11681d3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/operation.py index 8e42322b09c..aa684fa8db6 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/operation.py index 96e13d74b2a..208bee80b1d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py index 63bca47cb47..d9a0c61ba01 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post/operation.py index 5041b1bd61d..178c1eda5f8 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/operation.py index 063e7b0636b..6ae647ad6f0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/operation.py index 7437d788b5a..a85a9f51f05 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/operation.py index 83459b5c299..0a73512a8b7 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/operation.py index 2722bfe7b13..d1545d7dc02 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py index 7496fe09d24..35d5954110c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/operation.py index 08725b56311..5c40e450c0f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/__init__.py index fbce7309e02..045f0a42898 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/operation.py index 837f925fd74..907a62f5004 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/__init__.py index dfd2fbbad90..16243857094 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/operation.py index ffb5ddcab79..d28a04439db 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/operation.py index f97eec3b1ae..08e97aa21b7 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/__init__.py index 9d285a6ec3c..6d2bcdf9e1a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/operation.py index 231922b3580..fc443417cde 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/operation.py index d22332a89f6..085a08a618e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/operation.py index 71722cfa325..1fae0ff470d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 64ba836c19f..3cf51f1225b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/operation.py index a8b04efec6d..0f147a7dca7 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/operation.py index 62550a997d7..a04bd8b8243 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/__init__.py index 9d285a6ec3c..6d2bcdf9e1a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/operation.py index d1033d404ff..e4d865cd63e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/operation.py index 193dddb2f2e..f271f994e3f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/operation.py index bd3fe0fe051..6956b643f85 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py index 5e16c1e8752..aa07d6c6835 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/operation.py index 9df83da8677..dc7e4baee86 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/responses/response_200/__init__.py index 0ae5bae1dce..6d332b0a9a0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/operation.py index 897602a2fb7..65c5db69ce6 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/operation.py index 881bf464a6f..724e8380844 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/__init__.py index f8535234951..30ab52c1eed 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/operation.py index 53ed54e4574..371cc9b476a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/operation.py index aa637285008..74d601d6ca6 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py index cd0fa51a4cc..c6bddfea3ee 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/operation.py index bcc069b06c5..222ecd2bd65 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/operation.py index 0c6f5ec113b..34b7f8a85b8 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regex_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regex_format_response_body_for_content_types/post/operation.py index 062d33e0500..81266b05535 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regex_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regex_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regex_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regex_format_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regex_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regex_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/operation.py index 927f3bf83a1..8ca593f1ec9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post/operation.py index 8a020b6fb27..3379e135512 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/operation.py index 812fe2c0064..f0905a65506 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/operation.py index f58c763ae56..c09510aad65 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/operation.py index cdc6f7f5375..a4ce81f6b8b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/operation.py index 6c0cbe71a78..78ca7737667 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/operation.py index e50007df51a..7e1bd517f1b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/operation.py index 77aaf54b1d8..0f0f1c9b902 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/__init__.py index dfd2fbbad90..16243857094 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/operation.py index fec47ea2af7..787bdad21e3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post/operation.py index 3d741343282..36a9c192879 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post/responses/response_200/__init__.py index 51e9a1c97d6..8b47abaef1f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/operation.py index 98efe38d144..102cea8c432 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/__init__.py index 64ba836c19f..3cf51f1225b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_time_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_time_format_response_body_for_content_types/post/operation.py index c7a6d364146..79f07712bd3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_time_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_time_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_time_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_time_format_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_time_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_time_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post/operation.py index 9f5fe8e8d74..d7ba053d548 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post/responses/response_200/__init__.py index e4e1e51511f..b422df60b99 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post/responses/response_200/__init__.py @@ -19,7 +19,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_or_object_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_or_object_response_body_for_content_types/post/operation.py index 7d2b605e01e..e1c63ea3d78 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_or_object_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_or_object_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_or_object_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_or_object_response_body_for_content_types/post/responses/response_200/__init__.py index 4d8e3b9c280..d7b4f85c9fd 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_or_object_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_or_object_response_body_for_content_types/post/responses/response_200/__init__.py @@ -18,7 +18,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post/operation.py index 43b0583bba0..363d297a19f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post/responses/response_200/__init__.py index 64ba836c19f..3cf51f1225b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/operation.py index 4b14e79d839..871a18a9998 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/operation.py index 45e124d6d6b..66e931b6c94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/operation.py index 8c91025ac74..8b98ff6d03b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/__init__.py index dc7a87f393c..38b2ee299ca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/operation.py index 82edc435d55..d81235a3899 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/operation.py index 71fc36db9e9..a764edcd841 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/operation.py index b8df0d0c9f9..67f2012e30b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 9d285a6ec3c..6d2bcdf9e1a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/operation.py index cbe5e00b0de..19b2e351702 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py index 2cb3a16ddea..fae63f156f2 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py index 1a17d0ef0ea..53c3cc7a89c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py index 60145d32e1b..d8c291ec290 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post/operation.py index 70daeb8c2ce..ab2f9d01e07 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/operation.py index 57be20ce4fb..85ab539389c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post/operation.py index b592946b73c..04c9e6f9f85 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/operation.py index 9ef0b5fdf24..2e78f3fc368 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/operation.py index d90d3bde189..ce243405e0e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/operation.py index bd98a5bd661..94aa199b34a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uuid_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uuid_format_response_body_for_content_types/post/operation.py index 4a49db1c13b..90c0a364934 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uuid_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uuid_format_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uuid_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uuid_format_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uuid_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uuid_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post/operation.py index 7f9170f4515..744418d82c9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post/responses/response_200/__init__.py index 866cb54d412..4e2bb60fd6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/paths/operators/post.md b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/paths/operators/post.md index 91b7d6fdfc2..ffee73202fe 100644 --- a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/paths/operators/post.md +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/paths/operators/post.md @@ -54,14 +54,14 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | OK +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | OK -## _200 +## ResponseFor200 ### Description OK -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/operation.py b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/operation.py index 2c0b42b291b..e104cae96a0 100644 --- a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/operation.py +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/responses/response_200/__init__.py b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/responses/response_200/__init__.py index 00994f520b5..ac0527321a2 100644 --- a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/responses/response_200/__init__.py +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/openapi_features/security/python/docs/paths/path_with_no_explicit_security/get.md b/samples/client/openapi_features/security/python/docs/paths/path_with_no_explicit_security/get.md index 95064923c05..63d1b549db8 100644 --- a/samples/client/openapi_features/security/python/docs/paths/path_with_no_explicit_security/get.md +++ b/samples/client/openapi_features/security/python/docs/paths/path_with_no_explicit_security/get.md @@ -35,14 +35,14 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | OK +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | OK -## _200 +## ResponseFor200 ### Description OK -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/openapi_features/security/python/docs/paths/path_with_one_explicit_security/get.md b/samples/client/openapi_features/security/python/docs/paths/path_with_one_explicit_security/get.md index 60193c0f8cc..c52ddcbb129 100644 --- a/samples/client/openapi_features/security/python/docs/paths/path_with_one_explicit_security/get.md +++ b/samples/client/openapi_features/security/python/docs/paths/path_with_one_explicit_security/get.md @@ -37,14 +37,14 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | OK +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | OK -## _200 +## ResponseFor200 ### Description OK -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/openapi_features/security/python/docs/paths/path_with_security_from_root/get.md b/samples/client/openapi_features/security/python/docs/paths/path_with_security_from_root/get.md index 67482d675ff..dafacaace26 100644 --- a/samples/client/openapi_features/security/python/docs/paths/path_with_security_from_root/get.md +++ b/samples/client/openapi_features/security/python/docs/paths/path_with_security_from_root/get.md @@ -37,14 +37,14 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | OK +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | OK -## _200 +## ResponseFor200 ### Description OK -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/openapi_features/security/python/docs/paths/path_with_two_explicit_security/get.md b/samples/client/openapi_features/security/python/docs/paths/path_with_two_explicit_security/get.md index a768da1ded5..4690217ed7d 100644 --- a/samples/client/openapi_features/security/python/docs/paths/path_with_two_explicit_security/get.md +++ b/samples/client/openapi_features/security/python/docs/paths/path_with_two_explicit_security/get.md @@ -37,14 +37,14 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | OK +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | OK -## _200 +## ResponseFor200 ### Description OK -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_no_explicit_security/get/operation.py b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_no_explicit_security/get/operation.py index 45e4785b85f..e5b06b7f0bb 100644 --- a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_no_explicit_security/get/operation.py +++ b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_no_explicit_security/get/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_no_explicit_security/get/responses/response_200/__init__.py b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_no_explicit_security/get/responses/response_200/__init__.py index 00994f520b5..ac0527321a2 100644 --- a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_no_explicit_security/get/responses/response_200/__init__.py +++ b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_no_explicit_security/get/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_one_explicit_security/get/operation.py b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_one_explicit_security/get/operation.py index d18c428a944..ab6869f2a45 100644 --- a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_one_explicit_security/get/operation.py +++ b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_one_explicit_security/get/operation.py @@ -19,11 +19,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_one_explicit_security/get/responses/response_200/__init__.py b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_one_explicit_security/get/responses/response_200/__init__.py index 00994f520b5..ac0527321a2 100644 --- a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_one_explicit_security/get/responses/response_200/__init__.py +++ b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_one_explicit_security/get/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_security_from_root/get/operation.py b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_security_from_root/get/operation.py index 0fb1a8da52f..677e4d34b58 100644 --- a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_security_from_root/get/operation.py +++ b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_security_from_root/get/operation.py @@ -27,11 +27,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_security_from_root/get/responses/response_200/__init__.py b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_security_from_root/get/responses/response_200/__init__.py index 00994f520b5..ac0527321a2 100644 --- a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_security_from_root/get/responses/response_200/__init__.py +++ b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_security_from_root/get/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/operation.py b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/operation.py index 31c04969d4c..f0ff8df1e9e 100644 --- a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/operation.py +++ b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/operation.py @@ -23,11 +23,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/responses/response_200/__init__.py b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/responses/response_200/__init__.py index 00994f520b5..ac0527321a2 100644 --- a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/responses/response_200/__init__.py +++ b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/responses/response_200/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/docs/paths/another_fake_dummy/patch.md b/samples/client/petstore/python/docs/paths/another_fake_dummy/patch.md index 1f7b3bf8607..58a747d1167 100644 --- a/samples/client/petstore/python/docs/paths/another_fake_dummy/patch.md +++ b/samples/client/petstore/python/docs/paths/another_fake_dummy/patch.md @@ -39,27 +39,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | successful operation +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation -## _200 +## ResponseFor200 ### Description successful operation -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [client.ClientDict](../../components/schema/client.md#clientdict) | | +[body](#responsefor200-body) | [client.ClientDict](../../components/schema/client.md#clientdict) | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake/get.md b/samples/client/petstore/python/docs/paths/fake/get.md index ec538392bc2..dd57e17108f 100644 --- a/samples/client/petstore/python/docs/paths/fake/get.md +++ b/samples/client/petstore/python/docs/paths/fake/get.md @@ -234,27 +234,27 @@ HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned 200 | [SuccessDescriptionOnly.ApiResponse](../../components/responses/response_success_description_only.md#apiresponse) | Success -404 | [_404.ApiResponse](#_404-apiresponse) | Not found +404 | [ResponseFor404.ApiResponse](#responsefor404-apiresponse) | Not found -## _404 +## ResponseFor404 ### Description Not found -### _404 ApiResponse +### ResponseFor404 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_404-body) | schemas.immutabledict | | +[body](#responsefor404-body) | schemas.immutabledict | | headers | Unset | headers were not defined | -### _404 Body +### ResponseFor404 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_404-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor404-content-applicationjson-schema) ### Body Details -#### _404 content ApplicationJson Schema +#### ResponseFor404 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake/patch.md b/samples/client/petstore/python/docs/paths/fake/patch.md index 75a3d539e2d..5506e8fa02a 100644 --- a/samples/client/petstore/python/docs/paths/fake/patch.md +++ b/samples/client/petstore/python/docs/paths/fake/patch.md @@ -39,27 +39,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | successful operation +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation -## _200 +## ResponseFor200 ### Description successful operation -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [client.ClientDict](../../components/schema/client.md#clientdict) | | +[body](#responsefor200-body) | [client.ClientDict](../../components/schema/client.md#clientdict) | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake/post.md b/samples/client/petstore/python/docs/paths/fake/post.md index a3fd177b799..27d2e95afdd 100644 --- a/samples/client/petstore/python/docs/paths/fake/post.md +++ b/samples/client/petstore/python/docs/paths/fake/post.md @@ -127,14 +127,14 @@ HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned 200 | [SuccessDescriptionOnly.ApiResponse](../../components/responses/response_success_description_only.md#apiresponse) | Success -404 | [_404.ApiResponse](#_404-apiresponse) | User not found +404 | [ResponseFor404.ApiResponse](#responsefor404-apiresponse) | User not found -## _404 +## ResponseFor404 ### Description User not found -### _404 ApiResponse +### ResponseFor404 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/fake_additional_properties_with_array_of_enums/get.md b/samples/client/petstore/python/docs/paths/fake_additional_properties_with_array_of_enums/get.md index f5dc087d29d..a9173252b9e 100644 --- a/samples/client/petstore/python/docs/paths/fake_additional_properties_with_array_of_enums/get.md +++ b/samples/client/petstore/python/docs/paths/fake_additional_properties_with_array_of_enums/get.md @@ -58,27 +58,27 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | Got object with additional properties with array of enums +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | Got object with additional properties with array of enums -## _200 +## ResponseFor200 ### Description Got object with additional properties with array of enums -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [additional_properties_with_array_of_enums.AdditionalPropertiesWithArrayOfEnumsDict](../../components/schema/additional_properties_with_array_of_enums.md#additionalpropertieswitharrayofenumsdict) | | +[body](#responsefor200-body) | [additional_properties_with_array_of_enums.AdditionalPropertiesWithArrayOfEnumsDict](../../components/schema/additional_properties_with_array_of_enums.md#additionalpropertieswitharrayofenumsdict) | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_classname_test/patch.md b/samples/client/petstore/python/docs/paths/fake_classname_test/patch.md index aad5cabee72..e6099219fd4 100644 --- a/samples/client/petstore/python/docs/paths/fake_classname_test/patch.md +++ b/samples/client/petstore/python/docs/paths/fake_classname_test/patch.md @@ -41,27 +41,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | successful operation +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation -## _200 +## ResponseFor200 ### Description successful operation -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [client.ClientDict](../../components/schema/client.md#clientdict) | | +[body](#responsefor200-body) | [client.ClientDict](../../components/schema/client.md#clientdict) | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_health/get.md b/samples/client/petstore/python/docs/paths/fake_health/get.md index b4427f4bb3d..4213bf03309 100644 --- a/samples/client/petstore/python/docs/paths/fake_health/get.md +++ b/samples/client/petstore/python/docs/paths/fake_health/get.md @@ -36,27 +36,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | The instance started successfully +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | The instance started successfully -## _200 +## ResponseFor200 ### Description The instance started successfully -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [health_check_result.HealthCheckResultDict](../../components/schema/health_check_result.md#healthcheckresultdict) | | +[body](#responsefor200-body) | [health_check_result.HealthCheckResultDict](../../components/schema/health_check_result.md#healthcheckresultdict) | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_inline_composition/post.md b/samples/client/petstore/python/docs/paths/fake_inline_composition/post.md index 017ad8c76d1..3373d45a7f6 100644 --- a/samples/client/petstore/python/docs/paths/fake_inline_composition/post.md +++ b/samples/client/petstore/python/docs/paths/fake_inline_composition/post.md @@ -184,28 +184,28 @@ from_dict_ | [QueryParametersDictInput](#queryparameters-queryparametersdictinpu HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success, multiple content types +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success, multiple content types -## _200 +## ResponseFor200 ### Description success, multiple content types -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | typing.Union[schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, [SchemaDict](#_200-content-multipartformdata-schema-schemadict)] | | +[body](#responsefor200-body) | typing.Union[schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, [SchemaDict](#responsefor200-content-multipartformdata-schema-schemadict)] | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) -"multipart/form-data" | [content.multipart_form_data.Schema](#_200-content-multipartformdata-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) +"multipart/form-data" | [content.multipart_form_data.Schema](#responsefor200-content-multipartformdata-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` @@ -219,9 +219,9 @@ dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, i ##### allOf Schema Class | Input Type | Return Type ------------ | ---------- | ----------- -[_0](#_200-content-applicationjson-schema-_0) | str | str +[_0](#responsefor200-content-applicationjson-schema-_0) | str | str -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` @@ -230,7 +230,7 @@ type: schemas.Schema Input Type | Return Type | Notes ------------ | ------------- | ------------- str | str | -#### _200 content MultipartFormData Schema +#### ResponseFor200 content MultipartFormData Schema ``` type: schemas.Schema ``` @@ -238,9 +238,9 @@ type: schemas.Schema ##### validate method Input Type | Return Type | Notes ------------ | ------------- | ------------- -[SchemaDictInput](#_200-content-multipartformdata-schema-schemadictinput), [SchemaDict](#_200-content-multipartformdata-schema-schemadict) | [SchemaDict](#_200-content-multipartformdata-schema-schemadict) | +[SchemaDictInput](#responsefor200-content-multipartformdata-schema-schemadictinput), [SchemaDict](#responsefor200-content-multipartformdata-schema-schemadict) | [SchemaDict](#responsefor200-content-multipartformdata-schema-schemadict) | -##### _200 content MultipartFormData Schema SchemaDictInput +##### ResponseFor200 content MultipartFormData Schema SchemaDictInput ``` type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] ``` @@ -249,7 +249,7 @@ Key | Type | Description | Notes **someProp** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] **any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] -##### _200 content MultipartFormData Schema SchemaDict +##### ResponseFor200 content MultipartFormData Schema SchemaDict ``` base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] @@ -268,10 +268,10 @@ Property | Type | Description | Notes ###### methods Method | Input Type | Return Type | Notes ------ | ---------- | ----------- | ------ -from_dict_ | [SchemaDictInput](#_200-content-multipartformdata-schema-schemadictinput), [SchemaDict](#_200-content-multipartformdata-schema-schemadict) | [SchemaDict](#_200-content-multipartformdata-schema-schemadict) | a constructor +from_dict_ | [SchemaDictInput](#responsefor200-content-multipartformdata-schema-schemadictinput), [SchemaDict](#responsefor200-content-multipartformdata-schema-schemadict) | [SchemaDict](#responsefor200-content-multipartformdata-schema-schemadict) | a constructor get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset | provides type safety for additional properties -#### _200 content MultipartFormData Schema +#### ResponseFor200 content MultipartFormData Schema ``` type: schemas.Schema ``` @@ -285,9 +285,9 @@ dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, i ##### allOf Schema Class | Input Type | Return Type ------------ | ---------- | ----------- -[_0](#_200-content-multipartformdata-schema-_0) | str | str +[_0](#responsefor200-content-multipartformdata-schema-_0) | str | str -#### _200 content MultipartFormData Schema +#### ResponseFor200 content MultipartFormData Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_json_with_charset/post.md b/samples/client/petstore/python/docs/paths/fake_json_with_charset/post.md index de3fb8728a0..a6f98a60380 100644 --- a/samples/client/petstore/python/docs/paths/fake_json_with_charset/post.md +++ b/samples/client/petstore/python/docs/paths/fake_json_with_charset/post.md @@ -55,27 +55,27 @@ dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, i HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json; charset=utf-8" | [content.application_json_charsetutf8.Schema](#_200-content-applicationjsoncharsetutf8-schema) +"application/json; charset=utf-8" | [content.application_json_charsetutf8.Schema](#responsefor200-content-applicationjsoncharsetutf8-schema) ### Body Details -#### _200 content ApplicationJsonCharsetutf8 Schema +#### ResponseFor200 content ApplicationJsonCharsetutf8 Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_multiple_request_body_content_types/post.md b/samples/client/petstore/python/docs/paths/fake_multiple_request_body_content_types/post.md index f8a29314fca..abaabd2b682 100644 --- a/samples/client/petstore/python/docs/paths/fake_multiple_request_body_content_types/post.md +++ b/samples/client/petstore/python/docs/paths/fake_multiple_request_body_content_types/post.md @@ -131,27 +131,27 @@ get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_multiple_response_bodies/get.md b/samples/client/petstore/python/docs/paths/fake_multiple_response_bodies/get.md index 05388e62195..a9556cc4a5e 100644 --- a/samples/client/petstore/python/docs/paths/fake_multiple_response_bodies/get.md +++ b/samples/client/petstore/python/docs/paths/fake_multiple_response_bodies/get.md @@ -36,28 +36,28 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success -202 | [_202.ApiResponse](#_202-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +202 | [ResponseFor202.ApiResponse](#responsefor202-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` @@ -67,25 +67,25 @@ Input Type | Return Type | Notes ------------ | ------------- | ------------- dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | -## _202 +## ResponseFor202 ### Description success -### _202 ApiResponse +### ResponseFor202 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_202-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor202-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _202 Body +### ResponseFor202 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_202-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor202-content-applicationjson-schema) ### Body Details -#### _202 content ApplicationJson Schema +#### ResponseFor202 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_multiple_securities/get.md b/samples/client/petstore/python/docs/paths/fake_multiple_securities/get.md index e3aa1d601e4..118e0fa7d39 100644 --- a/samples/client/petstore/python/docs/paths/fake_multiple_securities/get.md +++ b/samples/client/petstore/python/docs/paths/fake_multiple_securities/get.md @@ -38,27 +38,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post.md b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post.md index 099798acb30..83475935410 100644 --- a/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post.md +++ b/samples/client/petstore/python/docs/paths/fake_parameter_collisions1_abab_self_ab/post.md @@ -236,27 +236,27 @@ from_dict_ | [CookieParametersDictInput](#cookieparameters-cookieparametersdicti HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_pem_content_type/get.md b/samples/client/petstore/python/docs/paths/fake_pem_content_type/get.md index 8d2b8524f75..0b1746b70e1 100644 --- a/samples/client/petstore/python/docs/paths/fake_pem_content_type/get.md +++ b/samples/client/petstore/python/docs/paths/fake_pem_content_type/get.md @@ -55,27 +55,27 @@ str | str | HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | str | | +[body](#responsefor200-body) | str | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/x-pem-file" | [content.application_x_pem_file.Schema](#_200-content-applicationxpemfile-schema) +"application/x-pem-file" | [content.application_x_pem_file.Schema](#responsefor200-content-applicationxpemfile-schema) ### Body Details -#### _200 content ApplicationXPemFile Schema +#### ResponseFor200 content ApplicationXPemFile Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_pet_id_upload_image_with_required_file/post.md b/samples/client/petstore/python/docs/paths/fake_pet_id_upload_image_with_required_file/post.md index be05c929101..4baff46fd05 100644 --- a/samples/client/petstore/python/docs/paths/fake_pet_id_upload_image_with_required_file/post.md +++ b/samples/client/petstore/python/docs/paths/fake_pet_id_upload_image_with_required_file/post.md @@ -131,27 +131,27 @@ from_dict_ | [PathParametersDictInput](#pathparameters-pathparametersdictinput), HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | successful operation +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation -## _200 +## ResponseFor200 ### Description successful operation -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [api_response.ApiResponseDict](../../components/schema/api_response.md#apiresponsedict) | | +[body](#responsefor200-body) | [api_response.ApiResponseDict](../../components/schema/api_response.md#apiresponsedict) | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_query_param_with_json_content_type/get.md b/samples/client/petstore/python/docs/paths/fake_query_param_with_json_content_type/get.md index e212959e1d8..70f104cd9bb 100644 --- a/samples/client/petstore/python/docs/paths/fake_query_param_with_json_content_type/get.md +++ b/samples/client/petstore/python/docs/paths/fake_query_param_with_json_content_type/get.md @@ -75,27 +75,27 @@ from_dict_ | [QueryParametersDictInput](#queryparameters-queryparametersdictinpu HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | success +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_redirection/get.md b/samples/client/petstore/python/docs/paths/fake_redirection/get.md index 69d5c02bd97..418b86edcca 100644 --- a/samples/client/petstore/python/docs/paths/fake_redirection/get.md +++ b/samples/client/petstore/python/docs/paths/fake_redirection/get.md @@ -35,27 +35,27 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -303 | [_303.ApiResponse](#_303-apiresponse) | see other -3XX | [_3XX.ApiResponse](#_3xx-apiresponse) | 3XX response +303 | [ResponseFor303.ApiResponse](#responsefor303-apiresponse) | see other +3XX | [ResponseFor3XX.ApiResponse](#responsefor3xx-apiresponse) | 3XX response -## _303 +## ResponseFor303 ### Description see other -### _303 ApiResponse +### ResponseFor303 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | body | Unset | body was not defined | headers | Unset | headers were not defined | -## _3XX +## ResponseFor3XX ### Description 3XX response -### _3XX ApiResponse +### ResponseFor3XX ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/fake_refs_array_of_enums/post.md b/samples/client/petstore/python/docs/paths/fake_refs_array_of_enums/post.md index 146012850a9..f1d5536aa60 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_array_of_enums/post.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_array_of_enums/post.md @@ -58,27 +58,27 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | Got named array of enums +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | Got named array of enums -## _200 +## ResponseFor200 ### Description Got named array of enums -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [array_of_enums.ArrayOfEnumsTuple](../../components/schema/array_of_enums.md#arrayofenumstuple) | | +[body](#responsefor200-body) | [array_of_enums.ArrayOfEnumsTuple](../../components/schema/array_of_enums.md#arrayofenumstuple) | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_refs_arraymodel/post.md b/samples/client/petstore/python/docs/paths/fake_refs_arraymodel/post.md index da69a9d8930..c5e0196a03e 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_arraymodel/post.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_arraymodel/post.md @@ -58,27 +58,27 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | Output model +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | Output model -## _200 +## ResponseFor200 ### Description Output model -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [animal_farm.AnimalFarmTuple](../../components/schema/animal_farm.md#animalfarmtuple) | | +[body](#responsefor200-body) | [animal_farm.AnimalFarmTuple](../../components/schema/animal_farm.md#animalfarmtuple) | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_refs_boolean/post.md b/samples/client/petstore/python/docs/paths/fake_refs_boolean/post.md index a585823e37f..033481de2b7 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_boolean/post.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_boolean/post.md @@ -58,27 +58,27 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | Output boolean +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | Output boolean -## _200 +## ResponseFor200 ### Description Output boolean -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | bool | | +[body](#responsefor200-body) | bool | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_refs_composed_one_of_number_with_validations/post.md b/samples/client/petstore/python/docs/paths/fake_refs_composed_one_of_number_with_validations/post.md index 05c4c50590e..e045047eb47 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_composed_one_of_number_with_validations/post.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_composed_one_of_number_with_validations/post.md @@ -58,27 +58,27 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | Output model +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | Output model -## _200 +## ResponseFor200 ### Description Output model -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_refs_enum/post.md b/samples/client/petstore/python/docs/paths/fake_refs_enum/post.md index 96859e1d5c9..d50ecd9f64d 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_enum/post.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_enum/post.md @@ -58,27 +58,27 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | Output enum +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | Output enum -## _200 +## ResponseFor200 ### Description Output enum -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | None, typing.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"] | | +[body](#responsefor200-body) | None, typing.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"] | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_refs_mammal/post.md b/samples/client/petstore/python/docs/paths/fake_refs_mammal/post.md index f3c56775311..45acd604f69 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_mammal/post.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_mammal/post.md @@ -58,27 +58,27 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | Output mammal +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | Output mammal -## _200 +## ResponseFor200 ### Description Output mammal -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_refs_number/post.md b/samples/client/petstore/python/docs/paths/fake_refs_number/post.md index f1225549478..0862ed4ebc5 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_number/post.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_number/post.md @@ -58,27 +58,27 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | Output number +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | Output number -## _200 +## ResponseFor200 ### Description Output number -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | float, int | | +[body](#responsefor200-body) | float, int | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_refs_object_model_with_ref_props/post.md b/samples/client/petstore/python/docs/paths/fake_refs_object_model_with_ref_props/post.md index fa5defefe7f..1b5c443ba6e 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_object_model_with_ref_props/post.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_object_model_with_ref_props/post.md @@ -58,27 +58,27 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | Output model +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | Output model -## _200 +## ResponseFor200 ### Description Output model -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [object_model_with_ref_props.ObjectModelWithRefPropsDict](../../components/schema/object_model_with_ref_props.md#objectmodelwithrefpropsdict) | | +[body](#responsefor200-body) | [object_model_with_ref_props.ObjectModelWithRefPropsDict](../../components/schema/object_model_with_ref_props.md#objectmodelwithrefpropsdict) | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_refs_string/post.md b/samples/client/petstore/python/docs/paths/fake_refs_string/post.md index 9d28e32d779..e45328433c3 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_string/post.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_string/post.md @@ -58,27 +58,27 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | Output string +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | Output string -## _200 +## ResponseFor200 ### Description Output string -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | str | | +[body](#responsefor200-body) | str | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_response_without_schema/get.md b/samples/client/petstore/python/docs/paths/fake_response_without_schema/get.md index 519ae7635b0..6801c62550f 100644 --- a/samples/client/petstore/python/docs/paths/fake_response_without_schema/get.md +++ b/samples/client/petstore/python/docs/paths/fake_response_without_schema/get.md @@ -36,21 +36,21 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | contents without schema definition, multiple content types +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | contents without schema definition, multiple content types -## _200 +## ResponseFor200 ### Description contents without schema definition, multiple content types -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | Unset | body was not defined | +[body](#responsefor200-body) | Unset | body was not defined | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- "application/json" | no schema defined diff --git a/samples/client/petstore/python/docs/paths/fake_upload_download_file/post.md b/samples/client/petstore/python/docs/paths/fake_upload_download_file/post.md index 03241acead1..81e91e16c35 100644 --- a/samples/client/petstore/python/docs/paths/fake_upload_download_file/post.md +++ b/samples/client/petstore/python/docs/paths/fake_upload_download_file/post.md @@ -59,27 +59,27 @@ bytes, io.FileIO, io.BufferedReader | bytes, io.FileIO | HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | successful operation +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation -## _200 +## ResponseFor200 ### Description successful operation -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | bytes, io.FileIO | | +[body](#responsefor200-body) | bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/octet-stream" | [content.application_octet_stream.Schema](#_200-content-applicationoctetstream-schema) +"application/octet-stream" | [content.application_octet_stream.Schema](#responsefor200-content-applicationoctetstream-schema) ### Body Details -#### _200 content ApplicationOctetStream Schema +#### ResponseFor200 content ApplicationOctetStream Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_upload_file/post.md b/samples/client/petstore/python/docs/paths/fake_upload_file/post.md index 9b5f528440d..0642b8d2948 100644 --- a/samples/client/petstore/python/docs/paths/fake_upload_file/post.md +++ b/samples/client/petstore/python/docs/paths/fake_upload_file/post.md @@ -90,27 +90,27 @@ get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | successful operation +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation -## _200 +## ResponseFor200 ### Description successful operation -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [api_response.ApiResponseDict](../../components/schema/api_response.md#apiresponsedict) | | +[body](#responsefor200-body) | [api_response.ApiResponseDict](../../components/schema/api_response.md#apiresponsedict) | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_upload_files/post.md b/samples/client/petstore/python/docs/paths/fake_upload_files/post.md index a54fd582a7e..d0cb6963199 100644 --- a/samples/client/petstore/python/docs/paths/fake_upload_files/post.md +++ b/samples/client/petstore/python/docs/paths/fake_upload_files/post.md @@ -141,27 +141,27 @@ Method | Input Type | Return Type | Notes HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | successful operation +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation -## _200 +## ResponseFor200 ### Description successful operation -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | [api_response.ApiResponseDict](../../components/schema/api_response.md#apiresponsedict) | | +[body](#responsefor200-body) | [api_response.ApiResponseDict](../../components/schema/api_response.md#apiresponsedict) | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/fake_wild_card_responses/get.md b/samples/client/petstore/python/docs/paths/fake_wild_card_responses/get.md index 0eb9fde2123..5bd370c211b 100644 --- a/samples/client/petstore/python/docs/paths/fake_wild_card_responses/get.md +++ b/samples/client/petstore/python/docs/paths/fake_wild_card_responses/get.md @@ -36,32 +36,32 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -1XX | [_1XX.ApiResponse](#_1xx-apiresponse) | 1XX response -200 | [_200.ApiResponse](#_200-apiresponse) | success -2XX | [_2XX.ApiResponse](#_2xx-apiresponse) | 2XX response -3XX | [_3XX.ApiResponse](#_3xx-apiresponse) | 3XX response -4XX | [_4XX.ApiResponse](#_4xx-apiresponse) | 4XX response -5XX | [_5XX.ApiResponse](#_5xx-apiresponse) | 5XX response +1XX | [ResponseFor1XX.ApiResponse](#responsefor1xx-apiresponse) | 1XX response +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success +2XX | [ResponseFor2XX.ApiResponse](#responsefor2xx-apiresponse) | 2XX response +3XX | [ResponseFor3XX.ApiResponse](#responsefor3xx-apiresponse) | 3XX response +4XX | [ResponseFor4XX.ApiResponse](#responsefor4xx-apiresponse) | 4XX response +5XX | [ResponseFor5XX.ApiResponse](#responsefor5xx-apiresponse) | 5XX response -## _1XX +## ResponseFor1XX ### Description 1XX response -### _1XX ApiResponse +### ResponseFor1XX ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_1xx-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor1xx-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _1XX Body +### ResponseFor1XX Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_1xx-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor1xx-content-applicationjson-schema) ### Body Details -#### _1XX content ApplicationJson Schema +#### ResponseFor1XX content ApplicationJson Schema ``` type: schemas.Schema ``` @@ -71,25 +71,25 @@ Input Type | Return Type | Notes ------------ | ------------- | ------------- dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | -## _200 +## ResponseFor200 ### Description success -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` @@ -99,25 +99,25 @@ Input Type | Return Type | Notes ------------ | ------------- | ------------- dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | -## _2XX +## ResponseFor2XX ### Description 2XX response -### _2XX ApiResponse +### ResponseFor2XX ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_2xx-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor2xx-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _2XX Body +### ResponseFor2XX Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_2xx-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor2xx-content-applicationjson-schema) ### Body Details -#### _2XX content ApplicationJson Schema +#### ResponseFor2XX content ApplicationJson Schema ``` type: schemas.Schema ``` @@ -127,25 +127,25 @@ Input Type | Return Type | Notes ------------ | ------------- | ------------- dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | -## _3XX +## ResponseFor3XX ### Description 3XX response -### _3XX ApiResponse +### ResponseFor3XX ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_3xx-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor3xx-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _3XX Body +### ResponseFor3XX Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_3xx-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor3xx-content-applicationjson-schema) ### Body Details -#### _3XX content ApplicationJson Schema +#### ResponseFor3XX content ApplicationJson Schema ``` type: schemas.Schema ``` @@ -155,25 +155,25 @@ Input Type | Return Type | Notes ------------ | ------------- | ------------- dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | -## _4XX +## ResponseFor4XX ### Description 4XX response -### _4XX ApiResponse +### ResponseFor4XX ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_4xx-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor4xx-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _4XX Body +### ResponseFor4XX Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_4xx-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor4xx-content-applicationjson-schema) ### Body Details -#### _4XX content ApplicationJson Schema +#### ResponseFor4XX content ApplicationJson Schema ``` type: schemas.Schema ``` @@ -183,25 +183,25 @@ Input Type | Return Type | Notes ------------ | ------------- | ------------- dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | -## _5XX +## ResponseFor5XX ### Description 5XX response -### _5XX ApiResponse +### ResponseFor5XX ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_5xx-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +[body](#responsefor5xx-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | headers | Unset | headers were not defined | -### _5XX Body +### ResponseFor5XX Body Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_5xx-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor5xx-content-applicationjson-schema) ### Body Details -#### _5XX content ApplicationJson Schema +#### ResponseFor5XX content ApplicationJson Schema ``` type: schemas.Schema ``` diff --git a/samples/client/petstore/python/docs/paths/pet/post.md b/samples/client/petstore/python/docs/paths/pet/post.md index 283ed95e717..d5aa1b2489c 100644 --- a/samples/client/petstore/python/docs/paths/pet/post.md +++ b/samples/client/petstore/python/docs/paths/pet/post.md @@ -41,14 +41,14 @@ HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned 200 | [SuccessDescriptionOnly.ApiResponse](../../components/responses/response_success_description_only.md#apiresponse) | Success -405 | [_405.ApiResponse](#_405-apiresponse) | Invalid input +405 | [ResponseFor405.ApiResponse](#responsefor405-apiresponse) | Invalid input -## _405 +## ResponseFor405 ### Description Invalid input -### _405 ApiResponse +### ResponseFor405 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/pet/put.md b/samples/client/petstore/python/docs/paths/pet/put.md index a3a4cec8d7e..05fc84e576b 100644 --- a/samples/client/petstore/python/docs/paths/pet/put.md +++ b/samples/client/petstore/python/docs/paths/pet/put.md @@ -40,40 +40,40 @@ skip_deserialization | bool | default is False | when True, headers and body wil HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -400 | [_400.ApiResponse](#_400-apiresponse) | Invalid ID supplied -404 | [_404.ApiResponse](#_404-apiresponse) | Pet not found -405 | [_405.ApiResponse](#_405-apiresponse) | Validation exception +400 | [ResponseFor400.ApiResponse](#responsefor400-apiresponse) | Invalid ID supplied +404 | [ResponseFor404.ApiResponse](#responsefor404-apiresponse) | Pet not found +405 | [ResponseFor405.ApiResponse](#responsefor405-apiresponse) | Validation exception -## _400 +## ResponseFor400 ### Description Invalid ID supplied -### _400 ApiResponse +### ResponseFor400 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | body | Unset | body was not defined | headers | Unset | headers were not defined | -## _404 +## ResponseFor404 ### Description Pet not found -### _404 ApiResponse +### ResponseFor404 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | body | Unset | body was not defined | headers | Unset | headers were not defined | -## _405 +## ResponseFor405 ### Description Validation exception -### _405 ApiResponse +### ResponseFor405 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/pet_find_by_status/get.md b/samples/client/petstore/python/docs/paths/pet_find_by_status/get.md index 691593e1282..a74a0ed3279 100644 --- a/samples/client/petstore/python/docs/paths/pet_find_by_status/get.md +++ b/samples/client/petstore/python/docs/paths/pet_find_by_status/get.md @@ -79,14 +79,14 @@ HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned 200 | [SuccessfulXmlAndJsonArrayOfPet.ApiResponse](../../components/responses/response_successful_xml_and_json_array_of_pet.md#apiresponse) | successful operation, multiple content types -400 | [_400.ApiResponse](#_400-apiresponse) | Invalid status value +400 | [ResponseFor400.ApiResponse](#responsefor400-apiresponse) | Invalid status value -## _400 +## ResponseFor400 ### Description Invalid status value -### _400 ApiResponse +### ResponseFor400 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/pet_find_by_tags/get.md b/samples/client/petstore/python/docs/paths/pet_find_by_tags/get.md index 300bffa1053..5d8f11595d3 100644 --- a/samples/client/petstore/python/docs/paths/pet_find_by_tags/get.md +++ b/samples/client/petstore/python/docs/paths/pet_find_by_tags/get.md @@ -78,14 +78,14 @@ HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned 200 | [RefSuccessfulXmlAndJsonArrayOfPet.ApiResponse](../../components/responses/response_ref_successful_xml_and_json_array_of_pet.md#apiresponse) | successful operation, multiple content types -400 | [_400.ApiResponse](#_400-apiresponse) | Invalid tag value +400 | [ResponseFor400.ApiResponse](#responsefor400-apiresponse) | Invalid tag value -## _400 +## ResponseFor400 ### Description Invalid tag value -### _400 ApiResponse +### ResponseFor400 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/pet_pet_id/delete.md b/samples/client/petstore/python/docs/paths/pet_pet_id/delete.md index 068a9a57b95..6f1117bff1f 100644 --- a/samples/client/petstore/python/docs/paths/pet_pet_id/delete.md +++ b/samples/client/petstore/python/docs/paths/pet_pet_id/delete.md @@ -116,14 +116,14 @@ from_dict_ | [PathParametersDictInput](#pathparameters-pathparametersdictinput), HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -400 | [_400.ApiResponse](#_400-apiresponse) | Invalid pet value +400 | [ResponseFor400.ApiResponse](#responsefor400-apiresponse) | Invalid pet value -## _400 +## ResponseFor400 ### Description Invalid pet value -### _400 ApiResponse +### ResponseFor400 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/pet_pet_id/get.md b/samples/client/petstore/python/docs/paths/pet_pet_id/get.md index b79b6eeac69..e487d3fcdfc 100644 --- a/samples/client/petstore/python/docs/paths/pet_pet_id/get.md +++ b/samples/client/petstore/python/docs/paths/pet_pet_id/get.md @@ -78,30 +78,30 @@ from_dict_ | [PathParametersDictInput](#pathparameters-pathparametersdictinput), HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | successful operation -400 | [_400.ApiResponse](#_400-apiresponse) | Invalid ID supplied -404 | [_404.ApiResponse](#_404-apiresponse) | Pet not found +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation +400 | [ResponseFor400.ApiResponse](#responsefor400-apiresponse) | Invalid ID supplied +404 | [ResponseFor404.ApiResponse](#responsefor404-apiresponse) | Pet not found -## _200 +## ResponseFor200 ### Description successful operation -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | typing.Union[[pet.PetDict](../../components/schema/pet.md#petdict), [pet.PetDict](../../components/schema/pet.md#petdict)] | | +[body](#responsefor200-body) | typing.Union[[pet.PetDict](../../components/schema/pet.md#petdict), [pet.PetDict](../../components/schema/pet.md#petdict)] | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/xml" | [content.application_xml.Schema](#_200-content-applicationxml-schema) -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/xml" | [content.application_xml.Schema](#responsefor200-content-applicationxml-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationXml Schema +#### ResponseFor200 content ApplicationXml Schema ``` type: schemas.Schema ``` @@ -110,7 +110,7 @@ type: schemas.Schema Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- [**pet.Pet**](../../components/schema/pet.md) | [pet.PetDictInput](../../components/schema/pet.md#petdictinput), [pet.PetDict](../../components/schema/pet.md#petdict) | [pet.PetDict](../../components/schema/pet.md#petdict) -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` @@ -120,24 +120,24 @@ Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- [**ref_pet.RefPet**](../../components/schema/ref_pet.md) | [pet.PetDictInput](../../components/schema/pet.md#petdictinput), [pet.PetDict](../../components/schema/pet.md#petdict) | [pet.PetDict](../../components/schema/pet.md#petdict) -## _400 +## ResponseFor400 ### Description Invalid ID supplied -### _400 ApiResponse +### ResponseFor400 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | body | Unset | body was not defined | headers | Unset | headers were not defined | -## _404 +## ResponseFor404 ### Description Pet not found -### _404 ApiResponse +### ResponseFor404 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/pet_pet_id/post.md b/samples/client/petstore/python/docs/paths/pet_pet_id/post.md index f3ba7e4abd8..2cab9581000 100644 --- a/samples/client/petstore/python/docs/paths/pet_pet_id/post.md +++ b/samples/client/petstore/python/docs/paths/pet_pet_id/post.md @@ -130,14 +130,14 @@ from_dict_ | [PathParametersDictInput](#pathparameters-pathparametersdictinput), HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -405 | [_405.ApiResponse](#_405-apiresponse) | Invalid input +405 | [ResponseFor405.ApiResponse](#responsefor405-apiresponse) | Invalid input -## _405 +## ResponseFor405 ### Description Invalid input -### _405 ApiResponse +### ResponseFor405 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/store_order/post.md b/samples/client/petstore/python/docs/paths/store_order/post.md index 309283209df..10f72272cbf 100644 --- a/samples/client/petstore/python/docs/paths/store_order/post.md +++ b/samples/client/petstore/python/docs/paths/store_order/post.md @@ -59,29 +59,29 @@ Ref Schema | Input Type | Output Type HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | successful operation -400 | [_400.ApiResponse](#_400-apiresponse) | Invalid Order +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation +400 | [ResponseFor400.ApiResponse](#responsefor400-apiresponse) | Invalid Order -## _200 +## ResponseFor200 ### Description successful operation -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | typing.Union[[order.OrderDict](../../components/schema/order.md#orderdict), [order.OrderDict](../../components/schema/order.md#orderdict)] | | +[body](#responsefor200-body) | typing.Union[[order.OrderDict](../../components/schema/order.md#orderdict), [order.OrderDict](../../components/schema/order.md#orderdict)] | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/xml" | [content.application_xml.Schema](#_200-content-applicationxml-schema) -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/xml" | [content.application_xml.Schema](#responsefor200-content-applicationxml-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationXml Schema +#### ResponseFor200 content ApplicationXml Schema ``` type: schemas.Schema ``` @@ -90,7 +90,7 @@ type: schemas.Schema Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- [**order.Order**](../../components/schema/order.md) | [order.OrderDictInput](../../components/schema/order.md#orderdictinput), [order.OrderDict](../../components/schema/order.md#orderdict) | [order.OrderDict](../../components/schema/order.md#orderdict) -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` @@ -100,12 +100,12 @@ Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- [**order.Order**](../../components/schema/order.md) | [order.OrderDictInput](../../components/schema/order.md#orderdictinput), [order.OrderDict](../../components/schema/order.md#orderdict) | [order.OrderDict](../../components/schema/order.md#orderdict) -## _400 +## ResponseFor400 ### Description Invalid Order -### _400 ApiResponse +### ResponseFor400 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/store_order_order_id/delete.md b/samples/client/petstore/python/docs/paths/store_order_order_id/delete.md index 6aab6b2473a..b6e7e8d744f 100644 --- a/samples/client/petstore/python/docs/paths/store_order_order_id/delete.md +++ b/samples/client/petstore/python/docs/paths/store_order_order_id/delete.md @@ -75,27 +75,27 @@ from_dict_ | [PathParametersDictInput](#pathparameters-pathparametersdictinput), HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -400 | [_400.ApiResponse](#_400-apiresponse) | Invalid ID supplied -404 | [_404.ApiResponse](#_404-apiresponse) | Order not found +400 | [ResponseFor400.ApiResponse](#responsefor400-apiresponse) | Invalid ID supplied +404 | [ResponseFor404.ApiResponse](#responsefor404-apiresponse) | Order not found -## _400 +## ResponseFor400 ### Description Invalid ID supplied -### _400 ApiResponse +### ResponseFor400 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | body | Unset | body was not defined | headers | Unset | headers were not defined | -## _404 +## ResponseFor404 ### Description Order not found -### _404 ApiResponse +### ResponseFor404 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/store_order_order_id/get.md b/samples/client/petstore/python/docs/paths/store_order_order_id/get.md index aa9ded1f1e7..e4340f5e357 100644 --- a/samples/client/petstore/python/docs/paths/store_order_order_id/get.md +++ b/samples/client/petstore/python/docs/paths/store_order_order_id/get.md @@ -76,30 +76,30 @@ from_dict_ | [PathParametersDictInput](#pathparameters-pathparametersdictinput), HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | successful operation -400 | [_400.ApiResponse](#_400-apiresponse) | Invalid ID supplied -404 | [_404.ApiResponse](#_404-apiresponse) | Order not found +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation +400 | [ResponseFor400.ApiResponse](#responsefor400-apiresponse) | Invalid ID supplied +404 | [ResponseFor404.ApiResponse](#responsefor404-apiresponse) | Order not found -## _200 +## ResponseFor200 ### Description successful operation -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | typing.Union[[order.OrderDict](../../components/schema/order.md#orderdict), [order.OrderDict](../../components/schema/order.md#orderdict)] | | +[body](#responsefor200-body) | typing.Union[[order.OrderDict](../../components/schema/order.md#orderdict), [order.OrderDict](../../components/schema/order.md#orderdict)] | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/xml" | [content.application_xml.Schema](#_200-content-applicationxml-schema) -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/xml" | [content.application_xml.Schema](#responsefor200-content-applicationxml-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationXml Schema +#### ResponseFor200 content ApplicationXml Schema ``` type: schemas.Schema ``` @@ -108,7 +108,7 @@ type: schemas.Schema Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- [**order.Order**](../../components/schema/order.md) | [order.OrderDictInput](../../components/schema/order.md#orderdictinput), [order.OrderDict](../../components/schema/order.md#orderdict) | [order.OrderDict](../../components/schema/order.md#orderdict) -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` @@ -118,24 +118,24 @@ Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- [**order.Order**](../../components/schema/order.md) | [order.OrderDictInput](../../components/schema/order.md#orderdictinput), [order.OrderDict](../../components/schema/order.md#orderdict) | [order.OrderDict](../../components/schema/order.md#orderdict) -## _400 +## ResponseFor400 ### Description Invalid ID supplied -### _400 ApiResponse +### ResponseFor400 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | body | Unset | body was not defined | headers | Unset | headers were not defined | -## _404 +## ResponseFor404 ### Description Order not found -### _404 ApiResponse +### ResponseFor404 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/user_login/get.md b/samples/client/petstore/python/docs/paths/user_login/get.md index 19f6bb6188d..e16d0929cd8 100644 --- a/samples/client/petstore/python/docs/paths/user_login/get.md +++ b/samples/client/petstore/python/docs/paths/user_login/get.md @@ -79,29 +79,29 @@ from_dict_ | [QueryParametersDictInput](#queryparameters-queryparametersdictinpu HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | successful operation -400 | [_400.ApiResponse](#_400-apiresponse) | Invalid username/password supplied +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation +400 | [ResponseFor400.ApiResponse](#responsefor400-apiresponse) | Invalid username/password supplied -## _200 +## ResponseFor200 ### Description successful operation -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | typing.Union[str, str] | | +[body](#responsefor200-body) | typing.Union[str, str] | | [headers](#headers) | [HeadersDict](#headers-headersdict) | | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/xml" | [content.application_xml.Schema](#_200-content-applicationxml-schema) -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/xml" | [content.application_xml.Schema](#responsefor200-content-applicationxml-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationXml Schema +#### ResponseFor200 content ApplicationXml Schema ``` type: schemas.Schema ``` @@ -110,7 +110,7 @@ type: schemas.Schema Input Type | Return Type | Notes ------------ | ------------- | ------------- str | str | -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` @@ -121,7 +121,7 @@ Input Type | Return Type | Notes str | str | ### Headers -#### _200 Headers +#### ResponseFor200 Headers ``` type: schemas.Schema ``` @@ -129,9 +129,9 @@ type: schemas.Schema ##### validate method Input Type | Return Type | Notes ------------ | ------------- | ------------- -[HeadersDictInput](#_200-headers-headersdictinput), [HeadersDict](#_200-headers-headersdict) | [HeadersDict](#_200-headers-headersdict) | +[HeadersDictInput](#responsefor200-headers-headersdictinput), [HeadersDict](#responsefor200-headers-headersdict) | [HeadersDict](#responsefor200-headers-headersdict) | -##### _200 Headers HeadersDictInput +##### ResponseFor200 Headers HeadersDictInput ``` type: typing.TypedDict ``` @@ -143,7 +143,7 @@ Key | Type | Description | Notes **X-Expires-After** | str, datetime.datetime | | [optional] **numberHeader** | str | | [optional] -##### _200 Headers HeadersDict +##### ResponseFor200 Headers HeadersDict ``` base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] @@ -163,11 +163,11 @@ Property | Type | Description | Notes ###### methods Method | Input Type | Return Type | Notes ------ | ---------- | ----------- | ------ -from_dict_ | [HeadersDictInput](#_200-headers-headersdictinput), [HeadersDict](#_200-headers-headersdict) | [HeadersDict](#_200-headers-headersdict) | a constructor +from_dict_ | [HeadersDictInput](#responsefor200-headers-headersdictinput), [HeadersDict](#responsefor200-headers-headersdict) | [HeadersDict](#responsefor200-headers-headersdict) | a constructor __getitem__ | str | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | This model has invalid python names so this method is used under the hood when you access instance["X-Rate-Limit"], instance["ref-content-schema-header"], instance["X-Expires-After"], ### Header Details -#### _200 headers XRateLimit +#### ResponseFor200 headers XRateLimit ##### Description calls per hour allowed by the user @@ -175,9 +175,9 @@ calls per hour allowed by the user ##### Content Type To Schema Content-Type | Schema ------------ | ------- -"application/json" | [content.application_json.Schema](#_200-headers-xratelimit-content-applicationjson-schema) +"application/json" | [content.application_json.Schema](#responsefor200-headers-xratelimit-content-applicationjson-schema) -##### _200 headers XRateLimit content ApplicationJson Schema +##### ResponseFor200 headers XRateLimit content ApplicationJson Schema ``` type: schemas.Schema ``` @@ -186,12 +186,12 @@ type: schemas.Schema Input Type | Return Type | Notes ------------ | ------------- | ------------- int | int | value must be a 32 bit integer -#### _200 headers XExpiresAfter +#### ResponseFor200 headers XExpiresAfter ##### Description date in UTC when token expires -##### _200 headers XExpiresAfter Schema +##### ResponseFor200 headers XExpiresAfter Schema ``` type: schemas.Schema ``` @@ -201,12 +201,12 @@ Input Type | Return Type | Notes ------------ | ------------- | ------------- str, datetime.datetime | str | value must conform to RFC-3339 date-time -## _400 +## ResponseFor400 ### Description Invalid username/password supplied -### _400 ApiResponse +### ResponseFor400 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/user_username/delete.md b/samples/client/petstore/python/docs/paths/user_username/delete.md index 4aa794a076b..a0cb520b2d7 100644 --- a/samples/client/petstore/python/docs/paths/user_username/delete.md +++ b/samples/client/petstore/python/docs/paths/user_username/delete.md @@ -76,14 +76,14 @@ HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned 200 | [SuccessDescriptionOnly.ApiResponse](../../components/responses/response_success_description_only.md#apiresponse) | Success -404 | [_404.ApiResponse](#_404-apiresponse) | User not found +404 | [ResponseFor404.ApiResponse](#responsefor404-apiresponse) | User not found -## _404 +## ResponseFor404 ### Description User not found -### _404 ApiResponse +### ResponseFor404 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/user_username/get.md b/samples/client/petstore/python/docs/paths/user_username/get.md index 53ae23e7bed..475fdba6faa 100644 --- a/samples/client/petstore/python/docs/paths/user_username/get.md +++ b/samples/client/petstore/python/docs/paths/user_username/get.md @@ -76,30 +76,30 @@ from_dict_ | [PathParametersDictInput](#pathparameters-pathparametersdictinput), HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [_200.ApiResponse](#_200-apiresponse) | successful operation -400 | [_400.ApiResponse](#_400-apiresponse) | Invalid username supplied -404 | [_404.ApiResponse](#_404-apiresponse) | User not found +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | successful operation +400 | [ResponseFor400.ApiResponse](#responsefor400-apiresponse) | Invalid username supplied +404 | [ResponseFor404.ApiResponse](#responsefor404-apiresponse) | User not found -## _200 +## ResponseFor200 ### Description successful operation -### _200 ApiResponse +### ResponseFor200 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | -[body](#_200-body) | typing.Union[[user.UserDict](../../components/schema/user.md#userdict), [user.UserDict](../../components/schema/user.md#userdict)] | | +[body](#responsefor200-body) | typing.Union[[user.UserDict](../../components/schema/user.md#userdict), [user.UserDict](../../components/schema/user.md#userdict)] | | headers | Unset | headers were not defined | -### _200 Body +### ResponseFor200 Body Content-Type | Schema ------------ | ------- -"application/xml" | [content.application_xml.Schema](#_200-content-applicationxml-schema) -"application/json" | [content.application_json.Schema](#_200-content-applicationjson-schema) +"application/xml" | [content.application_xml.Schema](#responsefor200-content-applicationxml-schema) +"application/json" | [content.application_json.Schema](#responsefor200-content-applicationjson-schema) ### Body Details -#### _200 content ApplicationXml Schema +#### ResponseFor200 content ApplicationXml Schema ``` type: schemas.Schema ``` @@ -108,7 +108,7 @@ type: schemas.Schema Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- [**user.User**](../../components/schema/user.md) | [user.UserDictInput](../../components/schema/user.md#userdictinput), [user.UserDict](../../components/schema/user.md#userdict) | [user.UserDict](../../components/schema/user.md#userdict) -#### _200 content ApplicationJson Schema +#### ResponseFor200 content ApplicationJson Schema ``` type: schemas.Schema ``` @@ -118,24 +118,24 @@ Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- [**user.User**](../../components/schema/user.md) | [user.UserDictInput](../../components/schema/user.md#userdictinput), [user.UserDict](../../components/schema/user.md#userdict) | [user.UserDict](../../components/schema/user.md#userdict) -## _400 +## ResponseFor400 ### Description Invalid username supplied -### _400 ApiResponse +### ResponseFor400 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | body | Unset | body was not defined | headers | Unset | headers were not defined | -## _404 +## ResponseFor404 ### Description User not found -### _404 ApiResponse +### ResponseFor404 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/docs/paths/user_username/put.md b/samples/client/petstore/python/docs/paths/user_username/put.md index 68cbe13f1f1..dfa103c39bb 100644 --- a/samples/client/petstore/python/docs/paths/user_username/put.md +++ b/samples/client/petstore/python/docs/paths/user_username/put.md @@ -97,27 +97,27 @@ from_dict_ | [PathParametersDictInput](#pathparameters-pathparametersdictinput), HTTP Status Code | Class | Description ------------- | ------------- | ------------- n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -400 | [_400.ApiResponse](#_400-apiresponse) | Invalid user supplied -404 | [_404.ApiResponse](#_404-apiresponse) | User not found +400 | [ResponseFor400.ApiResponse](#responsefor400-apiresponse) | Invalid user supplied +404 | [ResponseFor404.ApiResponse](#responsefor404-apiresponse) | User not found -## _400 +## ResponseFor400 ### Description Invalid user supplied -### _400 ApiResponse +### ResponseFor400 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | body | Unset | body was not defined | headers | Unset | headers were not defined | -## _404 +## ResponseFor404 ### Description User not found -### _404 ApiResponse +### ResponseFor404 ApiResponse Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- response | urllib3.HTTPResponse | Raw response | diff --git a/samples/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/operation.py b/samples/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/operation.py index b9f65cbb914..bf5682f39ef 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/responses/response_200/__init__.py index 560f3ce9821..afdebba4002 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/delete/operation.py b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/delete/operation.py index 4676156ecf0..18f38d79303 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/delete/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/delete/operation.py @@ -26,11 +26,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/delete/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/delete/responses/response_200/__init__.py index a18aacf7a30..cc70f4a4d33 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/delete/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/delete/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -_200 = response_success_description_only.SuccessDescriptionOnly +ResponseFor200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/get/operation.py index 420ab75f546..49412babef2 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/get/operation.py @@ -24,11 +24,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/get/responses/response_200/__init__.py index a18aacf7a30..cc70f4a4d33 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/get/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -_200 = response_success_description_only.SuccessDescriptionOnly +ResponseFor200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/post/operation.py index bd404786cde..5feca60df9f 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/post/operation.py @@ -24,11 +24,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/post/responses/response_200/__init__.py index a18aacf7a30..cc70f4a4d33 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/post/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -_200 = response_success_description_only.SuccessDescriptionOnly +ResponseFor200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/operation.py index ad407bf1172..edfae33f87b 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/operation.py @@ -39,11 +39,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/responses/response_200/__init__.py index a18aacf7a30..cc70f4a4d33 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -_200 = response_success_description_only.SuccessDescriptionOnly +ResponseFor200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake/get/operation.py index bfc84538ffb..79cab2a01a3 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/get/operation.py @@ -39,13 +39,13 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], - '404': typing.Type[response_404._404], + '200': typing.Type[response_200.ResponseFor200], + '404': typing.Type[response_404.ResponseFor404], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, - '404': response_404._404, + '200': response_200.ResponseFor200, + '404': response_404.ResponseFor404, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake/get/responses/response_200/__init__.py index a18aacf7a30..cc70f4a4d33 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/get/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -_200 = response_success_description_only.SuccessDescriptionOnly +ResponseFor200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/get/responses/response_404/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake/get/responses/response_404/__init__.py index 630613c8dec..020e6b1bd0f 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/get/responses/response_404/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/get/responses/response_404/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _404(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor404(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/patch/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake/patch/operation.py index da5c27ee800..8b10298f56d 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/patch/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/patch/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/patch/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake/patch/responses/response_200/__init__.py index 560f3ce9821..afdebba4002 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/patch/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/patch/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake/post/operation.py index dd5b28bc2be..2c6f5e07cc9 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/post/operation.py @@ -24,13 +24,13 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], - '404': typing.Type[response_404._404], + '200': typing.Type[response_200.ResponseFor200], + '404': typing.Type[response_404.ResponseFor404], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, - '404': response_404._404, + '200': response_200.ResponseFor200, + '404': response_404.ResponseFor404, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake/post/responses/response_200/__init__.py index a18aacf7a30..cc70f4a4d33 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/post/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -_200 = response_success_description_only.SuccessDescriptionOnly +ResponseFor200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/post/responses/response_404/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake/post/responses/response_404/__init__.py index 7908e6c0065..a26cc9e30cd 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/post/responses/response_404/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/post/responses/response_404/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _404(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor404(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/operation.py index e319ad3102c..144f2534b5f 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/responses/response_200/__init__.py index 9b719755d11..5a324510676 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/operation.py index 0a026dd9842..f97a9eee03f 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/responses/response_200/__init__.py index a18aacf7a30..cc70f4a4d33 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -_200 = response_success_description_only.SuccessDescriptionOnly +ResponseFor200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/operation.py index 9f2311cd414..a5a9d893878 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/operation.py @@ -21,11 +21,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/responses/response_200/__init__.py index a18aacf7a30..cc70f4a4d33 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -_200 = response_success_description_only.SuccessDescriptionOnly +ResponseFor200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/operation.py index 2097df435ca..0aa96e7281c 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/operation.py @@ -25,11 +25,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/responses/response_200/__init__.py index a18aacf7a30..cc70f4a4d33 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -_200 = response_success_description_only.SuccessDescriptionOnly +ResponseFor200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/operation.py index 5c945c0c48a..87decd532cc 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/operation.py @@ -21,11 +21,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/responses/response_200/__init__.py index 560f3ce9821..afdebba4002 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/operation.py index e7624e47ceb..050ff2acbe5 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/operation.py @@ -23,11 +23,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/responses/response_200/__init__.py index a18aacf7a30..cc70f4a4d33 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -_200 = response_success_description_only.SuccessDescriptionOnly +ResponseFor200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_health/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_health/get/operation.py index 7a3e85ba9a3..36c16754ea9 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_health/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_health/get/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_health/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_health/get/responses/response_200/__init__.py index 008ed1a81e2..17c99a51b12 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_health/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_health/get/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/operation.py index a04b3343ce3..b2eb3515bbe 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/responses/response_200/__init__.py index a18aacf7a30..cc70f4a4d33 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -_200 = response_success_description_only.SuccessDescriptionOnly +ResponseFor200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/operation.py index 52121a662c2..a8c6cc9a17a 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/operation.py @@ -26,11 +26,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/responses/response_200/__init__.py index e84b129cc90..39094120d1c 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/responses/response_200/__init__.py @@ -19,7 +19,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/operation.py index 07796436bfe..8312ffc16ee 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/responses/response_200/__init__.py index a18aacf7a30..cc70f4a4d33 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -_200 = response_success_description_only.SuccessDescriptionOnly +ResponseFor200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/operation.py index 6e4bbcfe0dd..f8960b8944b 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/responses/response_200/__init__.py index a18aacf7a30..cc70f4a4d33 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -_200 = response_success_description_only.SuccessDescriptionOnly +ResponseFor200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/operation.py index 6659a41ec31..5d76437a156 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/responses/response_200/__init__.py index 0f29ec04d65..3273086097e 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/operation.py index 69193ee9334..23ad81313f1 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/operation.py @@ -17,11 +17,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/responses/response_200/__init__.py index 120c0856575..8e003c5c0ee 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/operation.py index 1c91c6da80b..ac626266abe 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/operation.py @@ -17,13 +17,13 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], - '202': typing.Type[response_202._202], + '200': typing.Type[response_200.ResponseFor200], + '202': typing.Type[response_202.ResponseFor202], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, - '202': response_202._202, + '200': response_200.ResponseFor200, + '202': response_202.ResponseFor202, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/responses/response_200/__init__.py index 120c0856575..8e003c5c0ee 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/responses/response_202/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/responses/response_202/__init__.py index e5546a91643..f0075b24e9f 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/responses/response_202/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/responses/response_202/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _202(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor202(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/operation.py index 0d3b9232f4c..858d1e167c4 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/operation.py @@ -25,11 +25,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/responses/response_200/__init__.py index 120c0856575..8e003c5c0ee 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/operation.py index cc5948301c2..a58ad0b399f 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/operation.py @@ -19,11 +19,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/responses/response_200/__init__.py index a18aacf7a30..cc70f4a4d33 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -_200 = response_success_description_only.SuccessDescriptionOnly +ResponseFor200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/operation.py index 43f3c1df4cd..4e343511720 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/operation.py @@ -68,11 +68,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/responses/response_200/__init__.py index 120c0856575..8e003c5c0ee 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_pem_content_type/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_pem_content_type/get/operation.py index 0cf22eed68c..afb9d14839f 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_pem_content_type/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_pem_content_type/get/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_pem_content_type/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_pem_content_type/get/responses/response_200/__init__.py index 76b5016f07e..6d51cc074a6 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_pem_content_type/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_pem_content_type/get/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/operation.py index eaf11092f0d..f724f27b0ef 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/operation.py @@ -26,11 +26,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/responses/response_200/__init__.py index 4d3c678b0cd..248a4f0c101 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/operation.py index d2d439f957a..75e358b5469 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/operation.py @@ -19,11 +19,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/responses/response_200/__init__.py index 120c0856575..8e003c5c0ee 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/operation.py index 449084481fa..108b1cd7688 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/operation.py @@ -17,20 +17,20 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '303': typing.Type[response_303._303], + '303': typing.Type[response_303.ResponseFor303], } ) _status_code_to_response: __StatusCodeToResponse = { - '303': response_303._303, + '303': response_303.ResponseFor303, } __RangedStatusCodeToResponse = typing.TypedDict( '__RangedStatusCodeToResponse', { - '3': typing.Type[response_3xx._3XX], + '3': typing.Type[response_3xx.ResponseFor3XX], } ) _ranged_status_code_to_response: __RangedStatusCodeToResponse = { - '3': response_3xx._3XX, + '3': response_3xx.ResponseFor3XX, } _non_error_status_codes = frozenset({ '303', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/responses/response_303/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/responses/response_303/__init__.py index cdd200d09a0..4628ca92cc9 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/responses/response_303/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/responses/response_303/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _303(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor303(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/responses/response_3xx/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/responses/response_3xx/__init__.py index 75ef12173c7..2f1ea10abca 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/responses/response_3xx/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/responses/response_3xx/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _3XX(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor3XX(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/operation.py index 4634b268927..316c59752f5 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/operation.py @@ -19,11 +19,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/responses/response_200/__init__.py index a18aacf7a30..cc70f4a4d33 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -_200 = response_success_description_only.SuccessDescriptionOnly +ResponseFor200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/operation.py index 7a406d3f4bb..ba428ee4d2d 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/responses/response_200/__init__.py index 24bdeabbc8a..f9c6be5be67 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/operation.py index cc90106b7aa..9584da9503d 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/responses/response_200/__init__.py index 3f92959d145..d4d99d8f4c0 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/operation.py index 39a1179f872..d5073c42db7 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/responses/response_200/__init__.py index 7872917bf3a..a1f8345ca27 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/operation.py index d256a490506..d1c95b602d2 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/responses/response_200/__init__.py index 120c0856575..8e003c5c0ee 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/operation.py index 902260cd144..cc3c2201371 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/responses/response_200/__init__.py index a208a059a73..0edeab3b69b 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/responses/response_200/__init__.py @@ -18,7 +18,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/operation.py index b723c9b7136..33300ac9a7c 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/responses/response_200/__init__.py index 120c0856575..8e003c5c0ee 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/operation.py index 51c1d340c11..c44194a4198 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/responses/response_200/__init__.py index ee146edbd45..28852d70a4a 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/operation.py index 408194fc324..2af10fd75b5 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/responses/response_200/__init__.py index e55ec1243b3..4038a9891f9 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/operation.py index 8c18b77aa93..b82679b7668 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/responses/response_200/__init__.py index 06576ab69aa..77c86752079 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_response_without_schema/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_response_without_schema/get/operation.py index d7223b1bb8c..a39abc0841f 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_response_without_schema/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_response_without_schema/get/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_response_without_schema/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_response_without_schema/get/responses/response_200/__init__.py index eac434a907b..83c0f418c5b 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_response_without_schema/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_response_without_schema/get/responses/response_200/__init__.py @@ -14,7 +14,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/operation.py index aae0a44d5eb..e40af7a0bfe 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/operation.py @@ -31,11 +31,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/responses/response_200/__init__.py index a18aacf7a30..cc70f4a4d33 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -_200 = response_success_description_only.SuccessDescriptionOnly +ResponseFor200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/operation.py index ca4324aff85..717e328e31a 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/responses/response_200/__init__.py index 5ae816631b3..53bb8bde038 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/operation.py index f5fdce4a843..f3d1334e629 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/responses/response_200/__init__.py index 4d3c678b0cd..248a4f0c101 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/operation.py index b3f07a92f24..7a72497cf60 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/operation.py @@ -16,11 +16,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/responses/response_200/__init__.py index 4d3c678b0cd..248a4f0c101 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/operation.py index f1423b4d665..a27c7eedc68 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/operation.py @@ -21,28 +21,28 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } __RangedStatusCodeToResponse = typing.TypedDict( '__RangedStatusCodeToResponse', { - '1': typing.Type[response_1xx._1XX], - '2': typing.Type[response_2xx._2XX], - '3': typing.Type[response_3xx._3XX], - '4': typing.Type[response_4xx._4XX], - '5': typing.Type[response_5xx._5XX], + '1': typing.Type[response_1xx.ResponseFor1XX], + '2': typing.Type[response_2xx.ResponseFor2XX], + '3': typing.Type[response_3xx.ResponseFor3XX], + '4': typing.Type[response_4xx.ResponseFor4XX], + '5': typing.Type[response_5xx.ResponseFor5XX], } ) _ranged_status_code_to_response: __RangedStatusCodeToResponse = { - '1': response_1xx._1XX, - '2': response_2xx._2XX, - '3': response_3xx._3XX, - '4': response_4xx._4XX, - '5': response_5xx._5XX, + '1': response_1xx.ResponseFor1XX, + '2': response_2xx.ResponseFor2XX, + '3': response_3xx.ResponseFor3XX, + '4': response_4xx.ResponseFor4XX, + '5': response_5xx.ResponseFor5XX, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_1xx/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_1xx/__init__.py index 5f33267e608..6c76920b8f4 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_1xx/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_1xx/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _1XX(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor1XX(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_200/__init__.py index 120c0856575..8e003c5c0ee 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_200/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_2xx/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_2xx/__init__.py index 23f9abc85bc..6f72f463ee6 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_2xx/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_2xx/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _2XX(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor2XX(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_3xx/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_3xx/__init__.py index 5afead532c6..039cc0ba83a 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_3xx/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_3xx/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _3XX(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor3XX(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_4xx/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_4xx/__init__.py index bd6001e3911..02ede398c13 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_4xx/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_4xx/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _4XX(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor4XX(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_5xx/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_5xx/__init__.py index af5c0e413c7..2a02a6596fc 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_5xx/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_5xx/__init__.py @@ -15,7 +15,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _5XX(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor5XX(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/pet/post/operation.py index 781143f9225..9aef38d340c 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet/post/operation.py @@ -30,13 +30,13 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], - '405': typing.Type[response_405._405], + '200': typing.Type[response_200.ResponseFor200], + '405': typing.Type[response_405.ResponseFor405], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, - '405': response_405._405, + '200': response_200.ResponseFor200, + '405': response_405.ResponseFor405, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet/post/responses/response_200/__init__.py index a18aacf7a30..cc70f4a4d33 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet/post/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -_200 = response_success_description_only.SuccessDescriptionOnly +ResponseFor200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet/post/responses/response_405/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet/post/responses/response_405/__init__.py index d42e0114643..1f4a53b1278 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet/post/responses/response_405/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet/post/responses/response_405/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _405(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor405(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet/put/operation.py b/samples/client/petstore/python/src/petstore_api/paths/pet/put/operation.py index e6a0fddcd36..93fd7202e01 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet/put/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet/put/operation.py @@ -29,15 +29,15 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '400': typing.Type[response_400._400], - '404': typing.Type[response_404._404], - '405': typing.Type[response_405._405], + '400': typing.Type[response_400.ResponseFor400], + '404': typing.Type[response_404.ResponseFor404], + '405': typing.Type[response_405.ResponseFor405], } ) _status_code_to_response: __StatusCodeToResponse = { - '400': response_400._400, - '404': response_404._404, - '405': response_405._405, + '400': response_400.ResponseFor400, + '404': response_404.ResponseFor404, + '405': response_405.ResponseFor405, } _error_status_codes = frozenset({ '400', diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_400/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_400/__init__.py index 6ee73dfaab4..1068972f236 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_400/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_400/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _400(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor400(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_404/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_404/__init__.py index 7908e6c0065..a26cc9e30cd 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_404/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_404/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _404(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor404(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_405/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_405/__init__.py index d42e0114643..1f4a53b1278 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_405/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_405/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _405(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor405(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/operation.py index 7c264732345..e43b6908862 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/operation.py @@ -33,13 +33,13 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], - '400': typing.Type[response_400._400], + '200': typing.Type[response_200.ResponseFor200], + '400': typing.Type[response_400.ResponseFor400], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, - '400': response_400._400, + '200': response_200.ResponseFor200, + '400': response_400.ResponseFor400, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/responses/response_200/__init__.py index 36d56f4ec5d..5e4ccdedb27 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_successful_xml_and_json_array_of_pet -_200 = response_successful_xml_and_json_array_of_pet.SuccessfulXmlAndJsonArrayOfPet +ResponseFor200 = response_successful_xml_and_json_array_of_pet.SuccessfulXmlAndJsonArrayOfPet ApiResponse = response_successful_xml_and_json_array_of_pet.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/responses/response_400/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/responses/response_400/__init__.py index 6ee73dfaab4..1068972f236 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/responses/response_400/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/responses/response_400/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _400(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor400(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/operation.py index 6dd45540a83..2aec65218b6 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/operation.py @@ -31,13 +31,13 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], - '400': typing.Type[response_400._400], + '200': typing.Type[response_200.ResponseFor200], + '400': typing.Type[response_400.ResponseFor400], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, - '400': response_400._400, + '200': response_200.ResponseFor200, + '400': response_400.ResponseFor400, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/responses/response_200/__init__.py index c42166f5ef6..67e7a566b0c 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_ref_successful_xml_and_json_array_of_pet -_200 = response_ref_successful_xml_and_json_array_of_pet.RefSuccessfulXmlAndJsonArrayOfPet +ResponseFor200 = response_ref_successful_xml_and_json_array_of_pet.RefSuccessfulXmlAndJsonArrayOfPet ApiResponse = response_ref_successful_xml_and_json_array_of_pet.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/responses/response_400/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/responses/response_400/__init__.py index 6ee73dfaab4..1068972f236 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/responses/response_400/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/responses/response_400/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _400(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor400(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/operation.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/operation.py index 7508a24f1c4..38e3126950f 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/operation.py @@ -35,11 +35,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '400': typing.Type[response_400._400], + '400': typing.Type[response_400.ResponseFor400], } ) _status_code_to_response: __StatusCodeToResponse = { - '400': response_400._400, + '400': response_400.ResponseFor400, } _error_status_codes = frozenset({ '400', diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/responses/response_400/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/responses/response_400/__init__.py index 6ee73dfaab4..1068972f236 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/responses/response_400/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/responses/response_400/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _400(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor400(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/operation.py index d099b894201..963ca257e2f 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/operation.py @@ -28,15 +28,15 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], - '400': typing.Type[response_400._400], - '404': typing.Type[response_404._404], + '200': typing.Type[response_200.ResponseFor200], + '400': typing.Type[response_400.ResponseFor400], + '404': typing.Type[response_404.ResponseFor404], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, - '400': response_400._400, - '404': response_404._404, + '200': response_200.ResponseFor200, + '400': response_400.ResponseFor400, + '404': response_404.ResponseFor404, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_200/__init__.py index fbefabb3292..35863b62900 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_200/__init__.py @@ -19,7 +19,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_400/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_400/__init__.py index 6ee73dfaab4..1068972f236 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_400/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_400/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _400(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor400(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_404/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_404/__init__.py index 7908e6c0065..a26cc9e30cd 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_404/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_404/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _404(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor404(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/operation.py index 704a40b5524..7be0122bb45 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/operation.py @@ -30,11 +30,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '405': typing.Type[response_405._405], + '405': typing.Type[response_405.ResponseFor405], } ) _status_code_to_response: __StatusCodeToResponse = { - '405': response_405._405, + '405': response_405.ResponseFor405, } _error_status_codes = frozenset({ '405', diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/responses/response_405/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/responses/response_405/__init__.py index d42e0114643..1f4a53b1278 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/responses/response_405/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/responses/response_405/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _405(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor405(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/operation.py index 64b9d5adf51..db6785b81b0 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/operation.py @@ -26,11 +26,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/responses/response_200/__init__.py index 93f51f8603a..7584e451fec 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_with_json_api_response -_200 = response_success_with_json_api_response.SuccessWithJsonApiResponse +ResponseFor200 = response_success_with_json_api_response.SuccessWithJsonApiResponse ApiResponse = response_success_with_json_api_response.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/solidus/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/solidus/get/operation.py index 375bd71bdfc..16635b6cfc6 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/solidus/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/solidus/get/operation.py @@ -14,11 +14,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/solidus/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/solidus/get/responses/response_200/__init__.py index a18aacf7a30..cc70f4a4d33 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/solidus/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/solidus/get/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -_200 = response_success_description_only.SuccessDescriptionOnly +ResponseFor200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_inventory/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/store_inventory/get/operation.py index 9a26e2dd175..54e1f7f5e55 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_inventory/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_inventory/get/operation.py @@ -19,11 +19,11 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], + '200': typing.Type[response_200.ResponseFor200], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, + '200': response_200.ResponseFor200, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_inventory/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/store_inventory/get/responses/response_200/__init__.py index 6cbc4e76f15..b103a1afd41 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_inventory/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_inventory/get/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_inline_content_and_header -_200 = response_success_inline_content_and_header.SuccessInlineContentAndHeader +ResponseFor200 = response_success_inline_content_and_header.SuccessInlineContentAndHeader ApiResponse = response_success_inline_content_and_header.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/store_order/post/operation.py index e73897873f4..215f6acebd0 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order/post/operation.py @@ -19,13 +19,13 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], - '400': typing.Type[response_400._400], + '200': typing.Type[response_200.ResponseFor200], + '400': typing.Type[response_400.ResponseFor400], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, - '400': response_400._400, + '200': response_200.ResponseFor200, + '400': response_400.ResponseFor400, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/store_order/post/responses/response_200/__init__.py index f6b8f2dc608..8994a608bb9 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order/post/responses/response_200/__init__.py @@ -19,7 +19,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order/post/responses/response_400/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/store_order/post/responses/response_400/__init__.py index 6ee73dfaab4..1068972f236 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order/post/responses/response_400/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order/post/responses/response_400/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _400(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor400(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/operation.py b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/operation.py index 5d46a677d5b..4626f4516a0 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/operation.py @@ -22,13 +22,13 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '400': typing.Type[response_400._400], - '404': typing.Type[response_404._404], + '400': typing.Type[response_400.ResponseFor400], + '404': typing.Type[response_404.ResponseFor404], } ) _status_code_to_response: __StatusCodeToResponse = { - '400': response_400._400, - '404': response_404._404, + '400': response_400.ResponseFor400, + '404': response_404.ResponseFor404, } _error_status_codes = frozenset({ '400', diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/responses/response_400/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/responses/response_400/__init__.py index 6ee73dfaab4..1068972f236 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/responses/response_400/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/responses/response_400/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _400(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor400(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/responses/response_404/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/responses/response_404/__init__.py index 7908e6c0065..a26cc9e30cd 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/responses/response_404/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/responses/response_404/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _404(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor404(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/operation.py index 25948a689e4..a35b6d414e1 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/operation.py @@ -23,15 +23,15 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], - '400': typing.Type[response_400._400], - '404': typing.Type[response_404._404], + '200': typing.Type[response_200.ResponseFor200], + '400': typing.Type[response_400.ResponseFor400], + '404': typing.Type[response_404.ResponseFor404], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, - '400': response_400._400, - '404': response_404._404, + '200': response_200.ResponseFor200, + '400': response_400.ResponseFor400, + '404': response_404.ResponseFor404, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_200/__init__.py index f6b8f2dc608..8994a608bb9 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_200/__init__.py @@ -19,7 +19,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_400/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_400/__init__.py index 6ee73dfaab4..1068972f236 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_400/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_400/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _400(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor400(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_404/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_404/__init__.py index 7908e6c0065..a26cc9e30cd 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_404/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_404/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _404(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor404(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/operation.py index 317768a7275..a158ce96df2 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/operation.py @@ -26,13 +26,13 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], - '400': typing.Type[response_400._400], + '200': typing.Type[response_200.ResponseFor200], + '400': typing.Type[response_400.ResponseFor400], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, - '400': response_400._400, + '200': response_200.ResponseFor200, + '400': response_400.ResponseFor400, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/__init__.py index 9c5347bccc4..535dbbe0ebf 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/__init__.py @@ -32,7 +32,7 @@ class ApiResponse(api_response.ApiResponse): headers: header_parameters.HeadersDict -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_400/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_400/__init__.py index 6ee73dfaab4..1068972f236 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_400/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_400/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _400(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor400(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/operation.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/operation.py index 9f98c51bf31..fb6aab257d1 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/operation.py @@ -22,13 +22,13 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], - '404': typing.Type[response_404._404], + '200': typing.Type[response_200.ResponseFor200], + '404': typing.Type[response_404.ResponseFor404], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, - '404': response_404._404, + '200': response_200.ResponseFor200, + '404': response_404.ResponseFor404, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/responses/response_200/__init__.py index a18aacf7a30..cc70f4a4d33 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/responses/response_200/__init__.py @@ -6,5 +6,5 @@ from petstore_api.components.responses import response_success_description_only -_200 = response_success_description_only.SuccessDescriptionOnly +ResponseFor200 = response_success_description_only.SuccessDescriptionOnly ApiResponse = response_success_description_only.ApiResponse diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/responses/response_404/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/responses/response_404/__init__.py index 7908e6c0065..a26cc9e30cd 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/responses/response_404/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/responses/response_404/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _404(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor404(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/get/operation.py index 20cbaa6f4f4..c46922b2a3f 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/get/operation.py @@ -23,15 +23,15 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '200': typing.Type[response_200._200], - '400': typing.Type[response_400._400], - '404': typing.Type[response_404._404], + '200': typing.Type[response_200.ResponseFor200], + '400': typing.Type[response_400.ResponseFor400], + '404': typing.Type[response_404.ResponseFor404], } ) _status_code_to_response: __StatusCodeToResponse = { - '200': response_200._200, - '400': response_400._400, - '404': response_404._404, + '200': response_200.ResponseFor200, + '400': response_400.ResponseFor400, + '404': response_404.ResponseFor404, } _non_error_status_codes = frozenset({ '200', diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_200/__init__.py index 513b9171ca0..36a55077fe3 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_200/__init__.py @@ -19,7 +19,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _200(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_400/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_400/__init__.py index 6ee73dfaab4..1068972f236 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_400/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_400/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _400(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor400(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_404/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_404/__init__.py index 7908e6c0065..a26cc9e30cd 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_404/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_404/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _404(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor404(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/put/operation.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/put/operation.py index 720a32a09cf..6a9736831d4 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/put/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/put/operation.py @@ -24,13 +24,13 @@ __StatusCodeToResponse = typing.TypedDict( '__StatusCodeToResponse', { - '400': typing.Type[response_400._400], - '404': typing.Type[response_404._404], + '400': typing.Type[response_400.ResponseFor400], + '404': typing.Type[response_404.ResponseFor404], } ) _status_code_to_response: __StatusCodeToResponse = { - '400': response_400._400, - '404': response_404._404, + '400': response_400.ResponseFor400, + '404': response_404.ResponseFor404, } _error_status_codes = frozenset({ '400', diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/put/responses/response_400/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/put/responses/response_400/__init__.py index 6ee73dfaab4..1068972f236 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/put/responses/response_400/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/put/responses/response_400/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _400(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor400(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/put/responses/response_404/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/put/responses/response_404/__init__.py index 7908e6c0065..a26cc9e30cd 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/put/responses/response_404/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/put/responses/response_404/__init__.py @@ -13,7 +13,7 @@ class ApiResponse(api_response.ApiResponse): headers: schemas.Unset -class _404(api_client.OpenApiResponse[ApiResponse]): +class ResponseFor404(api_client.OpenApiResponse[ApiResponse]): @classmethod def get_response(cls, response, headers, body) -> ApiResponse: return ApiResponse(response=response, body=body, headers=headers) diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/PythonClientGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/PythonClientGenerator.java index ae0677bc46d..3d4ea507d87 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/PythonClientGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/PythonClientGenerator.java @@ -1881,7 +1881,7 @@ public String getPascalCaseParameter(String name) { } } - public String getPascalCaseResponse(String name) { + public String getPascalCaseResponse(String name, String jsonPath) { if (name.matches("^\\d[X\\d]{2}$")) { // 200 or 2XX return "ResponseFor" + name; From e7337a9fde0edf6a83c9b8e80695aaf1fbf421f3 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 22 Feb 2024 16:58:18 -0800 Subject: [PATCH 39/50] Samples regen --- .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 49 --- .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 49 --- .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 235 ------------ .../MultipartformdataSchema.md | 357 ------------------ .../applicationjson/ApplicationjsonSchema.md | 0 .../MultipartformdataSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 235 ------------ .../MultipartformdataSchema.md | 357 ------------------ .../Applicationjsoncharsetutf8Schema.md | 144 ------- .../Applicationjsoncharsetutf8Schema.md | 0 .../Applicationjsoncharsetutf8Schema.md | 144 ------- .../applicationjson/ApplicationjsonSchema.md | 144 ------- .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 144 ------- .../applicationjson/ApplicationjsonSchema.md | 144 ------- .../applicationjson/ApplicationjsonSchema.md | 144 ------- .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 144 ------- .../applicationjson/ApplicationjsonSchema.md | 144 ------- .../applicationjson/ApplicationjsonSchema.md | 144 ------- .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 144 ------- .../applicationjson/ApplicationjsonSchema.md | 144 ------- .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 144 ------- .../ApplicationxpemfileSchema.md | 49 --- .../ApplicationxpemfileSchema.md | 0 .../ApplicationxpemfileSchema.md | 49 --- .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 144 ------- .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 144 ------- .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 19 - .../ApplicationoctetstreamSchema.md | 28 -- .../ApplicationoctetstreamSchema.md | 0 .../ApplicationoctetstreamSchema.md | 28 -- .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 144 ------- .../applicationjson/ApplicationjsonSchema.md | 144 ------- .../applicationjson/ApplicationjsonSchema.md | 144 ------- .../applicationjson/ApplicationjsonSchema.md | 144 ------- .../applicationjson/ApplicationjsonSchema.md | 144 ------- .../applicationjson/ApplicationjsonSchema.md | 144 ------- .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 144 ------- .../applicationjson/ApplicationjsonSchema.md | 144 ------- .../applicationjson/ApplicationjsonSchema.md | 144 ------- .../applicationjson/ApplicationjsonSchema.md | 144 ------- .../applicationjson/ApplicationjsonSchema.md | 144 ------- .../applicationjson/ApplicationjsonSchema.md | 144 ------- .../applicationjson/ApplicationjsonSchema.md | 133 ------- .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 133 ------- .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationxml/ApplicationxmlSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationxml/ApplicationxmlSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationxml/ApplicationxmlSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationxml/ApplicationxmlSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationxml/ApplicationxmlSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationxml/ApplicationxmlSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationxml/ApplicationxmlSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationxml/ApplicationxmlSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationxml/ApplicationxmlSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 49 --- .../applicationxml/ApplicationxmlSchema.md | 49 --- .../xexpiresafter/XExpiresAfterSchema.md | 49 --- .../applicationjson/XRateLimitSchema.md | 49 --- .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationxml/ApplicationxmlSchema.md | 0 .../xexpiresafter/XExpiresAfterSchema.md | 0 .../applicationjson/XRateLimitSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 49 --- .../applicationxml/ApplicationxmlSchema.md | 49 --- .../xexpiresafter/XExpiresAfterSchema.md | 49 --- .../applicationjson/XRateLimitSchema.md | 49 --- .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationxml/ApplicationxmlSchema.md | 19 - .../applicationjson/ApplicationjsonSchema.md | 0 .../applicationxml/ApplicationxmlSchema.md | 0 .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationxml/ApplicationxmlSchema.md | 19 - 144 files changed, 6788 deletions(-) delete mode 100644 samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/Model200/content/applicationjson/ApplicationjsonSchema.md rename samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/{Code200Response => code200response}/content/applicationjson/ApplicationjsonSchema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/get/responses/Model404/content/applicationjson/ApplicationjsonSchema.md rename samples/client/petstore/java/docs/paths/fake/get/responses/{Code404Response => code404response}/content/applicationjson/ApplicationjsonSchema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/fake/get/responses/response404/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/patch/responses/Model200/content/applicationjson/ApplicationjsonSchema.md rename samples/client/petstore/java/docs/paths/fake/patch/responses/{Code200Response => code200response}/content/applicationjson/ApplicationjsonSchema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/fake/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md rename samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/{Code200Response => code200response}/content/applicationjson/ApplicationjsonSchema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/Model200/content/applicationjson/ApplicationjsonSchema.md rename samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/{Code200Response => code200response}/content/applicationjson/ApplicationjsonSchema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakehealth/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md rename samples/client/petstore/java/docs/paths/fakehealth/get/responses/{Code200Response => code200response}/content/applicationjson/ApplicationjsonSchema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/fakehealth/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Model200/content/multipartformdata/MultipartformdataSchema.md rename samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/{Code200Response => code200response}/content/applicationjson/ApplicationjsonSchema.md (100%) rename samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/{Code200Response => code200response}/content/multipartformdata/MultipartformdataSchema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/Model200/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md rename samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/{Code200Response => code200response}/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/response200/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md rename samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/{Code200Response => code200response}/content/applicationjson/ApplicationjsonSchema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Model202/content/applicationjson/ApplicationjsonSchema.md rename samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/{Code200Response => code200response}/content/applicationjson/ApplicationjsonSchema.md (100%) rename samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/{Code202Response => code202response}/content/applicationjson/ApplicationjsonSchema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/response202/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md rename samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/{Code200Response => code200response}/content/applicationjson/ApplicationjsonSchema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md rename samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/{Code200Response => code200response}/content/applicationjson/ApplicationjsonSchema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/Model200/content/applicationxpemfile/ApplicationxpemfileSchema.md rename samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/{Code200Response => code200response}/content/applicationxpemfile/ApplicationxpemfileSchema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/response200/content/applicationxpemfile/ApplicationxpemfileSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md rename samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/{Code200Response => code200response}/content/applicationjson/ApplicationjsonSchema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md rename samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/{Code200Response => code200response}/content/applicationjson/ApplicationjsonSchema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md rename samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/{Code200Response => code200response}/content/applicationjson/ApplicationjsonSchema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md rename samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/{Code200Response => code200response}/content/applicationjson/ApplicationjsonSchema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md rename samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/{Code200Response => code200response}/content/applicationjson/ApplicationjsonSchema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md rename samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/{Code200Response => code200response}/content/applicationjson/ApplicationjsonSchema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md rename samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/{Code200Response => code200response}/content/applicationjson/ApplicationjsonSchema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md rename samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/{Code200Response => code200response}/content/applicationjson/ApplicationjsonSchema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md rename samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/{Code200Response => code200response}/content/applicationjson/ApplicationjsonSchema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md rename samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/{Code200Response => code200response}/content/applicationjson/ApplicationjsonSchema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md rename samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/{Code200Response => code200response}/content/applicationjson/ApplicationjsonSchema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/Model200/content/applicationoctetstream/ApplicationoctetstreamSchema.md rename samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/{Code200Response => code200response}/content/applicationoctetstream/ApplicationoctetstreamSchema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/response200/content/applicationoctetstream/ApplicationoctetstreamSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md rename samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/{Code200Response => code200response}/content/applicationjson/ApplicationjsonSchema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md rename samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/{Code200Response => code200response}/content/applicationjson/ApplicationjsonSchema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model1XX/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model2XX/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model3XX/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model4XX/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model5XX/content/applicationjson/ApplicationjsonSchema.md rename samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/{Code1XXResponse => code1xxresponse}/content/applicationjson/ApplicationjsonSchema.md (100%) rename samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/{Code200Response => code200response}/content/applicationjson/ApplicationjsonSchema.md (100%) rename samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/{Code2XXResponse => code2xxresponse}/content/applicationjson/ApplicationjsonSchema.md (100%) rename samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/{Code3XXResponse => code3xxresponse}/content/applicationjson/ApplicationjsonSchema.md (100%) rename samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/{Code4XXResponse => code4xxresponse}/content/applicationjson/ApplicationjsonSchema.md (100%) rename samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/{Code5XXResponse => code5xxresponse}/content/applicationjson/ApplicationjsonSchema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response1xx/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response2xx/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response3xx/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response4xx/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response5xx/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/foo/get/responses/ModelDefault/content/applicationjson/ApplicationjsonSchema.md rename samples/client/petstore/java/docs/paths/foo/get/responses/{CodedefaultResponse => codedefaultresponse}/content/applicationjson/ApplicationjsonSchema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/foo/get/responses/responsedefault/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/get/responses/Model200/content/applicationxml/ApplicationxmlSchema.md rename samples/client/petstore/java/docs/paths/petpetid/get/responses/{Code200Response => code200response}/content/applicationjson/ApplicationjsonSchema.md (100%) rename samples/client/petstore/java/docs/paths/petpetid/get/responses/{Code200Response => code200response}/content/applicationxml/ApplicationxmlSchema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorder/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorder/post/responses/Model200/content/applicationxml/ApplicationxmlSchema.md rename samples/client/petstore/java/docs/paths/storeorder/post/responses/{Code200Response => code200response}/content/applicationjson/ApplicationjsonSchema.md (100%) rename samples/client/petstore/java/docs/paths/storeorder/post/responses/{Code200Response => code200response}/content/applicationxml/ApplicationxmlSchema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/storeorder/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorder/post/responses/response200/content/applicationxml/ApplicationxmlSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Model200/content/applicationxml/ApplicationxmlSchema.md rename samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/{Code200Response => code200response}/content/applicationjson/ApplicationjsonSchema.md (100%) rename samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/{Code200Response => code200response}/content/applicationxml/ApplicationxmlSchema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/Model200/content/applicationxml/ApplicationxmlSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/Model200/headers/xexpiresafter/XExpiresAfterSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/Model200/headers/xratelimit/content/applicationjson/XRateLimitSchema.md rename samples/client/petstore/java/docs/paths/userlogin/get/responses/{Code200Response => code200response}/content/applicationjson/ApplicationjsonSchema.md (100%) rename samples/client/petstore/java/docs/paths/userlogin/get/responses/{Code200Response => code200response}/content/applicationxml/ApplicationxmlSchema.md (100%) rename samples/client/petstore/java/docs/paths/userlogin/get/responses/{Code200Response => code200response}/headers/xexpiresafter/XExpiresAfterSchema.md (100%) rename samples/client/petstore/java/docs/paths/userlogin/get/responses/{Code200Response => code200response}/headers/xratelimit/content/applicationjson/XRateLimitSchema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/headers/xexpiresafter/XExpiresAfterSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/headers/xratelimit/content/applicationjson/XRateLimitSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/userusername/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/userusername/get/responses/Model200/content/applicationxml/ApplicationxmlSchema.md rename samples/client/petstore/java/docs/paths/userusername/get/responses/{Code200Response => code200response}/content/applicationjson/ApplicationjsonSchema.md (100%) rename samples/client/petstore/java/docs/paths/userusername/get/responses/{Code200Response => code200response}/content/applicationxml/ApplicationxmlSchema.md (100%) delete mode 100644 samples/client/petstore/java/docs/paths/userusername/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/userusername/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md diff --git a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/Model200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 1bc0d6e8e15..00000000000 --- a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/Model200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [Client1](../../../../../../../../../components/schemas/Client.md#client) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [Client.Client1](../../../../../../../../../components/schemas/Client.md#client1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 1bc0d6e8e15..00000000000 --- a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [Client1](../../../../../../../../../components/schemas/Client.md#client) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [Client.Client1](../../../../../../../../../components/schemas/Client.md#client1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fake/get/responses/Model404/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fake/get/responses/Model404/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 64fd823405a..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/get/responses/Model404/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,49 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends MapJsonSchema.MapJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.MapJsonSchema.MapJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fake/get/responses/Code404Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fake/get/responses/Code404Response/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/fake/get/responses/response404/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fake/get/responses/response404/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 64fd823405a..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/get/responses/response404/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,49 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends MapJsonSchema.MapJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.MapJsonSchema.MapJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fake/patch/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fake/patch/responses/Model200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 1bc0d6e8e15..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/patch/responses/Model200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [Client1](../../../../../../../../../components/schemas/Client.md#client) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [Client.Client1](../../../../../../../../../components/schemas/Client.md#client1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fake/patch/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fake/patch/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/fake/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fake/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 1bc0d6e8e15..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [Client1](../../../../../../../../../components/schemas/Client.md#client) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [Client.Client1](../../../../../../../../../components/schemas/Client.md#client1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 0aeccbe12bf..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [AdditionalPropertiesWithArrayOfEnums1](../../../../../../../../../components/schemas/AdditionalPropertiesWithArrayOfEnums.md#additionalpropertieswitharrayofenums) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesWithArrayOfEnums1](../../../../../../../../../components/schemas/AdditionalPropertiesWithArrayOfEnums.md#additionalpropertieswitharrayofenums1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 0aeccbe12bf..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [AdditionalPropertiesWithArrayOfEnums1](../../../../../../../../../components/schemas/AdditionalPropertiesWithArrayOfEnums.md#additionalpropertieswitharrayofenums) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesWithArrayOfEnums1](../../../../../../../../../components/schemas/AdditionalPropertiesWithArrayOfEnums.md#additionalpropertieswitharrayofenums1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/Model200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 1bc0d6e8e15..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/Model200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [Client1](../../../../../../../../../components/schemas/Client.md#client) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [Client.Client1](../../../../../../../../../components/schemas/Client.md#client1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 1bc0d6e8e15..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [Client1](../../../../../../../../../components/schemas/Client.md#client) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [Client.Client1](../../../../../../../../../components/schemas/Client.md#client1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakehealth/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakehealth/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index e7211f0c470..00000000000 --- a/samples/client/petstore/java/docs/paths/fakehealth/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [HealthCheckResult1](../../../../../../../../../components/schemas/HealthCheckResult.md#healthcheckresult) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [HealthCheckResult.HealthCheckResult1](../../../../../../../../../components/schemas/HealthCheckResult.md#healthcheckresult1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakehealth/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fakehealth/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/fakehealth/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakehealth/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index e7211f0c470..00000000000 --- a/samples/client/petstore/java/docs/paths/fakehealth/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [HealthCheckResult1](../../../../../../../../../components/schemas/HealthCheckResult.md#healthcheckresult) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [HealthCheckResult.HealthCheckResult1](../../../../../../../../../components/schemas/HealthCheckResult.md#healthcheckresult1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 0f9ad58f4f2..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,235 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | -| sealed interface | [ApplicationjsonSchema.Applicationjson0Boxed](#applicationjson0boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.Applicationjson0BoxedString](#applicationjson0boxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationjsonSchema.Applicationjson0](#applicationjson0)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends JsonSchema - -A schema class that validates payloads - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| List> | allOf = List.of(
    [Applicationjson0.class](#applicationjson0)
;)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| Void | validate(Void arg, SchemaConfiguration configuration) | -| int | validate(int arg, SchemaConfiguration configuration) | -| long | validate(long arg, SchemaConfiguration configuration) | -| float | validate(float arg, SchemaConfiguration configuration) | -| double | validate(double arg, SchemaConfiguration configuration) | -| Number | validate(Number arg, SchemaConfiguration configuration) | -| boolean | validate(boolean arg, SchemaConfiguration configuration) | -| FrozenMap<@Nullable Object> | validate(Map<?, ?> arg, SchemaConfiguration configuration) | -| FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## Applicationjson0Boxed -public sealed interface Applicationjson0Boxed
-permits
-[Applicationjson0BoxedString](#applicationjson0boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Applicationjson0BoxedString -public record Applicationjson0BoxedString
-implements [Applicationjson0Boxed](#applicationjson0boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Applicationjson0BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Applicationjson0 -public static class Applicationjson0
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); - -// String validation -String validatedPayload = ApplicationjsonSchema.Applicationjson0.validate( - "a", - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    String.class
)
| -| Integer | minLength = 1 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| [Applicationjson0BoxedString](#applicationjson0boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [Applicationjson0Boxed](#applicationjson0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Model200/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Model200/content/multipartformdata/MultipartformdataSchema.md deleted file mode 100644 index 1193ca3c9a3..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Model200/content/multipartformdata/MultipartformdataSchema.md +++ /dev/null @@ -1,357 +0,0 @@ -# MultipartformdataSchema -public class MultipartformdataSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
abstract sealed validated payload class | -| record | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [MultipartformdataSchema.MultipartformdataSchema1](#multipartformdataschema1)
schema class | -| static class | [MultipartformdataSchema.MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder)
builder for Map payloads | -| static class | [MultipartformdataSchema.MultipartformdataSchemaMap](#multipartformdataschemamap)
output class for Map payloads | -| sealed interface | [MultipartformdataSchema.MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed)
abstract sealed validated payload class | -| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedVoid](#multipartformdatasomepropboxedvoid)
boxed class to store validated null payloads | -| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean)
boxed class to store validated boolean payloads | -| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedNumber](#multipartformdatasomepropboxednumber)
boxed class to store validated Number payloads | -| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedString](#multipartformdatasomepropboxedstring)
boxed class to store validated String payloads | -| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist)
boxed class to store validated List payloads | -| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap)
boxed class to store validated Map payloads | -| static class | [MultipartformdataSchema.MultipartformdataSomeProp](#multipartformdatasomeprop)
schema class | -| sealed interface | [MultipartformdataSchema.Multipartformdata0Boxed](#multipartformdata0boxed)
abstract sealed validated payload class | -| record | [MultipartformdataSchema.Multipartformdata0BoxedString](#multipartformdata0boxedstring)
boxed class to store validated String payloads | -| static class | [MultipartformdataSchema.Multipartformdata0](#multipartformdata0)
schema class | - -## MultipartformdataSchema1Boxed -public sealed interface MultipartformdataSchema1Boxed
-permits
-[MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## MultipartformdataSchema1BoxedMap -public record MultipartformdataSchema1BoxedMap
-implements [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSchema1BoxedMap([MultipartformdataSchemaMap](#multipartformdataschemamap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [MultipartformdataSchemaMap](#multipartformdataschemamap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataSchema1 -public static class MultipartformdataSchema1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); - -// Map validation -MultipartformdataSchema.MultipartformdataSchemaMap validatedPayload = - MultipartformdataSchema.MultipartformdataSchema1.validate( - new MultipartformdataSchema.MultipartformdataSchemaMapBuilder() - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("someProp", [MultipartformdataSomeProp.class](#multipartformdatasomeprop)))
)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [MultipartformdataSchemaMap](#multipartformdataschemamap) | validate([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | -| [MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) | validateAndBox([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | -| [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## MultipartformdataSchemaMapBuilder -public class MultipartformdataSchemaMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSchemaMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(Void value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(boolean value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(String value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(int value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(float value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(long value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(double value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(List value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(Map value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, Void value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, boolean value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, String value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, int value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, float value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, long value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, double value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, List value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, Map value) | - -## MultipartformdataSchemaMap -public static class MultipartformdataSchemaMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [MultipartformdataSchemaMap](#multipartformdataschemamap) | of([Map](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | -| @Nullable Object | someProp()
[optional] | -| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | - -## MultipartformdataSomePropBoxed -public sealed interface MultipartformdataSomePropBoxed
-permits
-[MultipartformdataSomePropBoxedVoid](#multipartformdatasomepropboxedvoid), -[MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean), -[MultipartformdataSomePropBoxedNumber](#multipartformdatasomepropboxednumber), -[MultipartformdataSomePropBoxedString](#multipartformdatasomepropboxedstring), -[MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist), -[MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## MultipartformdataSomePropBoxedVoid -public record MultipartformdataSomePropBoxedVoid
-implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSomePropBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataSomePropBoxedBoolean -public record MultipartformdataSomePropBoxedBoolean
-implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSomePropBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataSomePropBoxedNumber -public record MultipartformdataSomePropBoxedNumber
-implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSomePropBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataSomePropBoxedString -public record MultipartformdataSomePropBoxedString
-implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSomePropBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataSomePropBoxedList -public record MultipartformdataSomePropBoxedList
-implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSomePropBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataSomePropBoxedMap -public record MultipartformdataSomePropBoxedMap
-implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSomePropBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataSomeProp -public static class MultipartformdataSomeProp
-extends JsonSchema - -A schema class that validates payloads - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| List> | allOf = List.of(
    [Multipartformdata0.class](#multipartformdata0)
;)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| Void | validate(Void arg, SchemaConfiguration configuration) | -| int | validate(int arg, SchemaConfiguration configuration) | -| long | validate(long arg, SchemaConfiguration configuration) | -| float | validate(float arg, SchemaConfiguration configuration) | -| double | validate(double arg, SchemaConfiguration configuration) | -| Number | validate(Number arg, SchemaConfiguration configuration) | -| boolean | validate(boolean arg, SchemaConfiguration configuration) | -| FrozenMap<@Nullable Object> | validate(Map<?, ?> arg, SchemaConfiguration configuration) | -| FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | -| [MultipartformdataSomePropBoxedString](#multipartformdatasomepropboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [MultipartformdataSomePropBoxedVoid](#multipartformdatasomepropboxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | -| [MultipartformdataSomePropBoxedNumber](#multipartformdatasomepropboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | -| [MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | -| [MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | -| [MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | -| [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## Multipartformdata0Boxed -public sealed interface Multipartformdata0Boxed
-permits
-[Multipartformdata0BoxedString](#multipartformdata0boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Multipartformdata0BoxedString -public record Multipartformdata0BoxedString
-implements [Multipartformdata0Boxed](#multipartformdata0boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Multipartformdata0BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Multipartformdata0 -public static class Multipartformdata0
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); - -// String validation -String validatedPayload = MultipartformdataSchema.Multipartformdata0.validate( - "a", - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    String.class
)
| -| Integer | minLength = 1 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| [Multipartformdata0BoxedString](#multipartformdata0boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [Multipartformdata0Boxed](#multipartformdata0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Code200Response/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Code200Response/content/multipartformdata/MultipartformdataSchema.md rename to samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 0f9ad58f4f2..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,235 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | -| sealed interface | [ApplicationjsonSchema.Applicationjson0Boxed](#applicationjson0boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.Applicationjson0BoxedString](#applicationjson0boxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationjsonSchema.Applicationjson0](#applicationjson0)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends JsonSchema - -A schema class that validates payloads - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| List> | allOf = List.of(
    [Applicationjson0.class](#applicationjson0)
;)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| Void | validate(Void arg, SchemaConfiguration configuration) | -| int | validate(int arg, SchemaConfiguration configuration) | -| long | validate(long arg, SchemaConfiguration configuration) | -| float | validate(float arg, SchemaConfiguration configuration) | -| double | validate(double arg, SchemaConfiguration configuration) | -| Number | validate(Number arg, SchemaConfiguration configuration) | -| boolean | validate(boolean arg, SchemaConfiguration configuration) | -| FrozenMap<@Nullable Object> | validate(Map<?, ?> arg, SchemaConfiguration configuration) | -| FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## Applicationjson0Boxed -public sealed interface Applicationjson0Boxed
-permits
-[Applicationjson0BoxedString](#applicationjson0boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Applicationjson0BoxedString -public record Applicationjson0BoxedString
-implements [Applicationjson0Boxed](#applicationjson0boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Applicationjson0BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Applicationjson0 -public static class Applicationjson0
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); - -// String validation -String validatedPayload = ApplicationjsonSchema.Applicationjson0.validate( - "a", - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    String.class
)
| -| Integer | minLength = 1 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| [Applicationjson0BoxedString](#applicationjson0boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [Applicationjson0Boxed](#applicationjson0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.md deleted file mode 100644 index 1193ca3c9a3..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/MultipartformdataSchema.md +++ /dev/null @@ -1,357 +0,0 @@ -# MultipartformdataSchema -public class MultipartformdataSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
abstract sealed validated payload class | -| record | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [MultipartformdataSchema.MultipartformdataSchema1](#multipartformdataschema1)
schema class | -| static class | [MultipartformdataSchema.MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder)
builder for Map payloads | -| static class | [MultipartformdataSchema.MultipartformdataSchemaMap](#multipartformdataschemamap)
output class for Map payloads | -| sealed interface | [MultipartformdataSchema.MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed)
abstract sealed validated payload class | -| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedVoid](#multipartformdatasomepropboxedvoid)
boxed class to store validated null payloads | -| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean)
boxed class to store validated boolean payloads | -| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedNumber](#multipartformdatasomepropboxednumber)
boxed class to store validated Number payloads | -| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedString](#multipartformdatasomepropboxedstring)
boxed class to store validated String payloads | -| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist)
boxed class to store validated List payloads | -| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap)
boxed class to store validated Map payloads | -| static class | [MultipartformdataSchema.MultipartformdataSomeProp](#multipartformdatasomeprop)
schema class | -| sealed interface | [MultipartformdataSchema.Multipartformdata0Boxed](#multipartformdata0boxed)
abstract sealed validated payload class | -| record | [MultipartformdataSchema.Multipartformdata0BoxedString](#multipartformdata0boxedstring)
boxed class to store validated String payloads | -| static class | [MultipartformdataSchema.Multipartformdata0](#multipartformdata0)
schema class | - -## MultipartformdataSchema1Boxed -public sealed interface MultipartformdataSchema1Boxed
-permits
-[MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## MultipartformdataSchema1BoxedMap -public record MultipartformdataSchema1BoxedMap
-implements [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSchema1BoxedMap([MultipartformdataSchemaMap](#multipartformdataschemamap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [MultipartformdataSchemaMap](#multipartformdataschemamap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataSchema1 -public static class MultipartformdataSchema1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); - -// Map validation -MultipartformdataSchema.MultipartformdataSchemaMap validatedPayload = - MultipartformdataSchema.MultipartformdataSchema1.validate( - new MultipartformdataSchema.MultipartformdataSchemaMapBuilder() - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("someProp", [MultipartformdataSomeProp.class](#multipartformdatasomeprop)))
)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [MultipartformdataSchemaMap](#multipartformdataschemamap) | validate([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | -| [MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) | validateAndBox([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | -| [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## MultipartformdataSchemaMapBuilder -public class MultipartformdataSchemaMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSchemaMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(Void value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(boolean value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(String value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(int value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(float value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(long value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(double value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(List value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(Map value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, Void value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, boolean value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, String value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, int value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, float value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, long value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, double value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, List value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, Map value) | - -## MultipartformdataSchemaMap -public static class MultipartformdataSchemaMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [MultipartformdataSchemaMap](#multipartformdataschemamap) | of([Map](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | -| @Nullable Object | someProp()
[optional] | -| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | - -## MultipartformdataSomePropBoxed -public sealed interface MultipartformdataSomePropBoxed
-permits
-[MultipartformdataSomePropBoxedVoid](#multipartformdatasomepropboxedvoid), -[MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean), -[MultipartformdataSomePropBoxedNumber](#multipartformdatasomepropboxednumber), -[MultipartformdataSomePropBoxedString](#multipartformdatasomepropboxedstring), -[MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist), -[MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## MultipartformdataSomePropBoxedVoid -public record MultipartformdataSomePropBoxedVoid
-implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSomePropBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataSomePropBoxedBoolean -public record MultipartformdataSomePropBoxedBoolean
-implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSomePropBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataSomePropBoxedNumber -public record MultipartformdataSomePropBoxedNumber
-implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSomePropBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataSomePropBoxedString -public record MultipartformdataSomePropBoxedString
-implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSomePropBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataSomePropBoxedList -public record MultipartformdataSomePropBoxedList
-implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSomePropBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataSomePropBoxedMap -public record MultipartformdataSomePropBoxedMap
-implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSomePropBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataSomeProp -public static class MultipartformdataSomeProp
-extends JsonSchema - -A schema class that validates payloads - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| List> | allOf = List.of(
    [Multipartformdata0.class](#multipartformdata0)
;)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| Void | validate(Void arg, SchemaConfiguration configuration) | -| int | validate(int arg, SchemaConfiguration configuration) | -| long | validate(long arg, SchemaConfiguration configuration) | -| float | validate(float arg, SchemaConfiguration configuration) | -| double | validate(double arg, SchemaConfiguration configuration) | -| Number | validate(Number arg, SchemaConfiguration configuration) | -| boolean | validate(boolean arg, SchemaConfiguration configuration) | -| FrozenMap<@Nullable Object> | validate(Map<?, ?> arg, SchemaConfiguration configuration) | -| FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | -| [MultipartformdataSomePropBoxedString](#multipartformdatasomepropboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [MultipartformdataSomePropBoxedVoid](#multipartformdatasomepropboxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | -| [MultipartformdataSomePropBoxedNumber](#multipartformdatasomepropboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | -| [MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | -| [MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | -| [MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | -| [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## Multipartformdata0Boxed -public sealed interface Multipartformdata0Boxed
-permits
-[Multipartformdata0BoxedString](#multipartformdata0boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Multipartformdata0BoxedString -public record Multipartformdata0BoxedString
-implements [Multipartformdata0Boxed](#multipartformdata0boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Multipartformdata0BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Multipartformdata0 -public static class Multipartformdata0
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); - -// String validation -String validatedPayload = MultipartformdataSchema.Multipartformdata0.validate( - "a", - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    String.class
)
| -| Integer | minLength = 1 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| [Multipartformdata0BoxedString](#multipartformdata0boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [Multipartformdata0Boxed](#multipartformdata0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/Model200/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/Model200/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md deleted file mode 100644 index c1e19a793a6..00000000000 --- a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/Model200/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md +++ /dev/null @@ -1,144 +0,0 @@ -# Applicationjsoncharsetutf8Schema -public class Applicationjsoncharsetutf8Schema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed)
abstract sealed validated payload class | -| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedVoid](#applicationjsoncharsetutf8schema1boxedvoid)
boxed class to store validated null payloads | -| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedBoolean](#applicationjsoncharsetutf8schema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedNumber](#applicationjsoncharsetutf8schema1boxednumber)
boxed class to store validated Number payloads | -| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedString](#applicationjsoncharsetutf8schema1boxedstring)
boxed class to store validated String payloads | -| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedList](#applicationjsoncharsetutf8schema1boxedlist)
boxed class to store validated List payloads | -| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedMap](#applicationjsoncharsetutf8schema1boxedmap)
boxed class to store validated Map payloads | -| static class | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1](#applicationjsoncharsetutf8schema1)
schema class | - -## Applicationjsoncharsetutf8Schema1Boxed -public sealed interface Applicationjsoncharsetutf8Schema1Boxed
-permits
-[Applicationjsoncharsetutf8Schema1BoxedVoid](#applicationjsoncharsetutf8schema1boxedvoid), -[Applicationjsoncharsetutf8Schema1BoxedBoolean](#applicationjsoncharsetutf8schema1boxedboolean), -[Applicationjsoncharsetutf8Schema1BoxedNumber](#applicationjsoncharsetutf8schema1boxednumber), -[Applicationjsoncharsetutf8Schema1BoxedString](#applicationjsoncharsetutf8schema1boxedstring), -[Applicationjsoncharsetutf8Schema1BoxedList](#applicationjsoncharsetutf8schema1boxedlist), -[Applicationjsoncharsetutf8Schema1BoxedMap](#applicationjsoncharsetutf8schema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## Applicationjsoncharsetutf8Schema1BoxedVoid -public record Applicationjsoncharsetutf8Schema1BoxedVoid
-implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Applicationjsoncharsetutf8Schema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Applicationjsoncharsetutf8Schema1BoxedBoolean -public record Applicationjsoncharsetutf8Schema1BoxedBoolean
-implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Applicationjsoncharsetutf8Schema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Applicationjsoncharsetutf8Schema1BoxedNumber -public record Applicationjsoncharsetutf8Schema1BoxedNumber
-implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Applicationjsoncharsetutf8Schema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Applicationjsoncharsetutf8Schema1BoxedString -public record Applicationjsoncharsetutf8Schema1BoxedString
-implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Applicationjsoncharsetutf8Schema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Applicationjsoncharsetutf8Schema1BoxedList -public record Applicationjsoncharsetutf8Schema1BoxedList
-implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Applicationjsoncharsetutf8Schema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Applicationjsoncharsetutf8Schema1BoxedMap -public record Applicationjsoncharsetutf8Schema1BoxedMap
-implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Applicationjsoncharsetutf8Schema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Applicationjsoncharsetutf8Schema1 -public static class Applicationjsoncharsetutf8Schema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/Code200Response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/Code200Response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md rename to samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/response200/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/response200/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md deleted file mode 100644 index c1e19a793a6..00000000000 --- a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/response200/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md +++ /dev/null @@ -1,144 +0,0 @@ -# Applicationjsoncharsetutf8Schema -public class Applicationjsoncharsetutf8Schema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed)
abstract sealed validated payload class | -| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedVoid](#applicationjsoncharsetutf8schema1boxedvoid)
boxed class to store validated null payloads | -| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedBoolean](#applicationjsoncharsetutf8schema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedNumber](#applicationjsoncharsetutf8schema1boxednumber)
boxed class to store validated Number payloads | -| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedString](#applicationjsoncharsetutf8schema1boxedstring)
boxed class to store validated String payloads | -| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedList](#applicationjsoncharsetutf8schema1boxedlist)
boxed class to store validated List payloads | -| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedMap](#applicationjsoncharsetutf8schema1boxedmap)
boxed class to store validated Map payloads | -| static class | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1](#applicationjsoncharsetutf8schema1)
schema class | - -## Applicationjsoncharsetutf8Schema1Boxed -public sealed interface Applicationjsoncharsetutf8Schema1Boxed
-permits
-[Applicationjsoncharsetutf8Schema1BoxedVoid](#applicationjsoncharsetutf8schema1boxedvoid), -[Applicationjsoncharsetutf8Schema1BoxedBoolean](#applicationjsoncharsetutf8schema1boxedboolean), -[Applicationjsoncharsetutf8Schema1BoxedNumber](#applicationjsoncharsetutf8schema1boxednumber), -[Applicationjsoncharsetutf8Schema1BoxedString](#applicationjsoncharsetutf8schema1boxedstring), -[Applicationjsoncharsetutf8Schema1BoxedList](#applicationjsoncharsetutf8schema1boxedlist), -[Applicationjsoncharsetutf8Schema1BoxedMap](#applicationjsoncharsetutf8schema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## Applicationjsoncharsetutf8Schema1BoxedVoid -public record Applicationjsoncharsetutf8Schema1BoxedVoid
-implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Applicationjsoncharsetutf8Schema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Applicationjsoncharsetutf8Schema1BoxedBoolean -public record Applicationjsoncharsetutf8Schema1BoxedBoolean
-implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Applicationjsoncharsetutf8Schema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Applicationjsoncharsetutf8Schema1BoxedNumber -public record Applicationjsoncharsetutf8Schema1BoxedNumber
-implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Applicationjsoncharsetutf8Schema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Applicationjsoncharsetutf8Schema1BoxedString -public record Applicationjsoncharsetutf8Schema1BoxedString
-implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Applicationjsoncharsetutf8Schema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Applicationjsoncharsetutf8Schema1BoxedList -public record Applicationjsoncharsetutf8Schema1BoxedList
-implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Applicationjsoncharsetutf8Schema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Applicationjsoncharsetutf8Schema1BoxedMap -public record Applicationjsoncharsetutf8Schema1BoxedMap
-implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Applicationjsoncharsetutf8Schema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Applicationjsoncharsetutf8Schema1 -public static class Applicationjsoncharsetutf8Schema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 122e5886047..00000000000 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 122e5886047..00000000000 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 122e5886047..00000000000 --- a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Model202/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Model202/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 122e5886047..00000000000 --- a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Model202/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code202Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code202Response/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 122e5886047..00000000000 --- a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/response202/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/response202/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 122e5886047..00000000000 --- a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/response202/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 122e5886047..00000000000 --- a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 122e5886047..00000000000 --- a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 122e5886047..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 122e5886047..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/Model200/content/applicationxpemfile/ApplicationxpemfileSchema.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/Model200/content/applicationxpemfile/ApplicationxpemfileSchema.md deleted file mode 100644 index 143b9fe0d17..00000000000 --- a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/Model200/content/applicationxpemfile/ApplicationxpemfileSchema.md +++ /dev/null @@ -1,49 +0,0 @@ -# ApplicationxpemfileSchema -public class ApplicationxpemfileSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1Boxed](#applicationxpemfileschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1BoxedString](#applicationxpemfileschema1boxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1](#applicationxpemfileschema1)
schema class | - -## ApplicationxpemfileSchema1Boxed -public sealed interface ApplicationxpemfileSchema1Boxed
-permits
-[ApplicationxpemfileSchema1BoxedString](#applicationxpemfileschema1boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationxpemfileSchema1BoxedString -public record ApplicationxpemfileSchema1BoxedString
-implements [ApplicationxpemfileSchema1Boxed](#applicationxpemfileschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxpemfileSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationxpemfileSchema1 -public static class ApplicationxpemfileSchema1
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/Code200Response/content/applicationxpemfile/ApplicationxpemfileSchema.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/Code200Response/content/applicationxpemfile/ApplicationxpemfileSchema.md rename to samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.md diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/response200/content/applicationxpemfile/ApplicationxpemfileSchema.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/response200/content/applicationxpemfile/ApplicationxpemfileSchema.md deleted file mode 100644 index 143b9fe0d17..00000000000 --- a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/response200/content/applicationxpemfile/ApplicationxpemfileSchema.md +++ /dev/null @@ -1,49 +0,0 @@ -# ApplicationxpemfileSchema -public class ApplicationxpemfileSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1Boxed](#applicationxpemfileschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1BoxedString](#applicationxpemfileschema1boxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1](#applicationxpemfileschema1)
schema class | - -## ApplicationxpemfileSchema1Boxed -public sealed interface ApplicationxpemfileSchema1Boxed
-permits
-[ApplicationxpemfileSchema1BoxedString](#applicationxpemfileschema1boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationxpemfileSchema1BoxedString -public record ApplicationxpemfileSchema1BoxedString
-implements [ApplicationxpemfileSchema1Boxed](#applicationxpemfileschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxpemfileSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationxpemfileSchema1 -public static class ApplicationxpemfileSchema1
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 1f0f43be973..00000000000 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [ApiResponseSchema1](../../../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [ApiResponseSchema.ApiResponseSchema1](../../../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 1f0f43be973..00000000000 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [ApiResponseSchema1](../../../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [ApiResponseSchema.ApiResponseSchema1](../../../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 122e5886047..00000000000 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 122e5886047..00000000000 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 8c0ac4c578a..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [AnimalFarm1](../../../../../../../../../components/schemas/AnimalFarm.md#animalfarm) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [AnimalFarm.AnimalFarm1](../../../../../../../../../components/schemas/AnimalFarm.md#animalfarm1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 8c0ac4c578a..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [AnimalFarm1](../../../../../../../../../components/schemas/AnimalFarm.md#animalfarm) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [AnimalFarm.AnimalFarm1](../../../../../../../../../components/schemas/AnimalFarm.md#animalfarm1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 1844e5f5212..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [ArrayOfEnums1](../../../../../../../../../components/schemas/ArrayOfEnums.md#arrayofenums) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [ArrayOfEnums.ArrayOfEnums1](../../../../../../../../../components/schemas/ArrayOfEnums.md#arrayofenums1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 1844e5f5212..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [ArrayOfEnums1](../../../../../../../../../components/schemas/ArrayOfEnums.md#arrayofenums) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [ArrayOfEnums.ArrayOfEnums1](../../../../../../../../../components/schemas/ArrayOfEnums.md#arrayofenums1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index f01369f2068..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [BooleanSchema1](../../../../../../../../../components/schemas/BooleanSchema.md#booleanschema) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [BooleanSchema.BooleanSchema1](../../../../../../../../../components/schemas/BooleanSchema.md#booleanschema1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index f01369f2068..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [BooleanSchema1](../../../../../../../../../components/schemas/BooleanSchema.md#booleanschema) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [BooleanSchema.BooleanSchema1](../../../../../../../../../components/schemas/BooleanSchema.md#booleanschema1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 2607baa8830..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [ComposedOneOfDifferentTypes1](../../../../../../../../../components/schemas/ComposedOneOfDifferentTypes.md#composedoneofdifferenttypes) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1](../../../../../../../../../components/schemas/ComposedOneOfDifferentTypes.md#composedoneofdifferenttypes1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 2607baa8830..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [ComposedOneOfDifferentTypes1](../../../../../../../../../components/schemas/ComposedOneOfDifferentTypes.md#composedoneofdifferenttypes) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1](../../../../../../../../../components/schemas/ComposedOneOfDifferentTypes.md#composedoneofdifferenttypes1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 5cee5e75327..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [StringEnum1](../../../../../../../../../components/schemas/StringEnum.md#stringenum) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [StringEnum.StringEnum1](../../../../../../../../../components/schemas/StringEnum.md#stringenum1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 5cee5e75327..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [StringEnum1](../../../../../../../../../components/schemas/StringEnum.md#stringenum) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [StringEnum.StringEnum1](../../../../../../../../../components/schemas/StringEnum.md#stringenum1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index c6b3b628c02..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [Mammal1](../../../../../../../../../components/schemas/Mammal.md#mammal) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [Mammal.Mammal1](../../../../../../../../../components/schemas/Mammal.md#mammal1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index c6b3b628c02..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [Mammal1](../../../../../../../../../components/schemas/Mammal.md#mammal) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [Mammal.Mammal1](../../../../../../../../../components/schemas/Mammal.md#mammal1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index a1938be5dde..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [NumberWithValidations1](../../../../../../../../../components/schemas/NumberWithValidations.md#numberwithvalidations) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [NumberWithValidations.NumberWithValidations1](../../../../../../../../../components/schemas/NumberWithValidations.md#numberwithvalidations1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index a1938be5dde..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [NumberWithValidations1](../../../../../../../../../components/schemas/NumberWithValidations.md#numberwithvalidations) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [NumberWithValidations.NumberWithValidations1](../../../../../../../../../components/schemas/NumberWithValidations.md#numberwithvalidations1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index e11383cf962..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [ObjectModelWithRefProps1](../../../../../../../../../components/schemas/ObjectModelWithRefProps.md#objectmodelwithrefprops) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [ObjectModelWithRefProps.ObjectModelWithRefProps1](../../../../../../../../../components/schemas/ObjectModelWithRefProps.md#objectmodelwithrefprops1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index e11383cf962..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [ObjectModelWithRefProps1](../../../../../../../../../components/schemas/ObjectModelWithRefProps.md#objectmodelwithrefprops) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [ObjectModelWithRefProps.ObjectModelWithRefProps1](../../../../../../../../../components/schemas/ObjectModelWithRefProps.md#objectmodelwithrefprops1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index a70d4b832ca..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [StringSchema1](../../../../../../../../../components/schemas/StringSchema.md#stringschema) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [StringSchema.StringSchema1](../../../../../../../../../components/schemas/StringSchema.md#stringschema1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index a70d4b832ca..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [StringSchema1](../../../../../../../../../components/schemas/StringSchema.md#stringschema) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [StringSchema.StringSchema1](../../../../../../../../../components/schemas/StringSchema.md#stringschema1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/Model200/content/applicationoctetstream/ApplicationoctetstreamSchema.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/Model200/content/applicationoctetstream/ApplicationoctetstreamSchema.md deleted file mode 100644 index 65fa580db40..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/Model200/content/applicationoctetstream/ApplicationoctetstreamSchema.md +++ /dev/null @@ -1,28 +0,0 @@ -# ApplicationoctetstreamSchema -public class ApplicationoctetstreamSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1Boxed](#applicationoctetstreamschema1boxed)
abstract sealed validated payload class | -| static class | [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1](#applicationoctetstreamschema1)
schema class | - -## ApplicationoctetstreamSchema1Boxed -public sealed interface ApplicationoctetstreamSchema1Boxed
-permits
- -sealed interface that stores validated payloads using boxed classes - -## ApplicationoctetstreamSchema1 -public static class ApplicationoctetstreamSchema1
-extends JsonSchema - -A schema class that validates payloads - -## Description -file to download diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/Code200Response/content/applicationoctetstream/ApplicationoctetstreamSchema.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/Code200Response/content/applicationoctetstream/ApplicationoctetstreamSchema.md rename to samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.md diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/response200/content/applicationoctetstream/ApplicationoctetstreamSchema.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/response200/content/applicationoctetstream/ApplicationoctetstreamSchema.md deleted file mode 100644 index 65fa580db40..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/response200/content/applicationoctetstream/ApplicationoctetstreamSchema.md +++ /dev/null @@ -1,28 +0,0 @@ -# ApplicationoctetstreamSchema -public class ApplicationoctetstreamSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1Boxed](#applicationoctetstreamschema1boxed)
abstract sealed validated payload class | -| static class | [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1](#applicationoctetstreamschema1)
schema class | - -## ApplicationoctetstreamSchema1Boxed -public sealed interface ApplicationoctetstreamSchema1Boxed
-permits
- -sealed interface that stores validated payloads using boxed classes - -## ApplicationoctetstreamSchema1 -public static class ApplicationoctetstreamSchema1
-extends JsonSchema - -A schema class that validates payloads - -## Description -file to download diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 1f0f43be973..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [ApiResponseSchema1](../../../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [ApiResponseSchema.ApiResponseSchema1](../../../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 1f0f43be973..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [ApiResponseSchema1](../../../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [ApiResponseSchema.ApiResponseSchema1](../../../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 1f0f43be973..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [ApiResponseSchema1](../../../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [ApiResponseSchema.ApiResponseSchema1](../../../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 1f0f43be973..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [ApiResponseSchema1](../../../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [ApiResponseSchema.ApiResponseSchema1](../../../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model1XX/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model1XX/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 122e5886047..00000000000 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model1XX/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 122e5886047..00000000000 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model2XX/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model2XX/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 122e5886047..00000000000 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model2XX/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model3XX/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model3XX/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 122e5886047..00000000000 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model3XX/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model4XX/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model4XX/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 122e5886047..00000000000 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model4XX/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model5XX/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model5XX/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 122e5886047..00000000000 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Model5XX/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code1XXResponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code1xxresponse/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code1XXResponse/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code1xxresponse/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code2XXResponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code2XXResponse/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code3XXResponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code3XXResponse/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code4XXResponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code4XXResponse/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code5XXResponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code5XXResponse/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response1xx/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response1xx/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 122e5886047..00000000000 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response1xx/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 122e5886047..00000000000 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response2xx/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response2xx/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 122e5886047..00000000000 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response2xx/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response3xx/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response3xx/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 122e5886047..00000000000 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response3xx/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response4xx/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response4xx/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 122e5886047..00000000000 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response4xx/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response5xx/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response5xx/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 122e5886047..00000000000 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/response5xx/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/foo/get/responses/ModelDefault/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/foo/get/responses/ModelDefault/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 0795164907b..00000000000 --- a/samples/client/petstore/java/docs/paths/foo/get/responses/ModelDefault/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,133 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | -| static class | [ApplicationjsonSchema.ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder)
builder for Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchemaMap](#applicationjsonschemamap)
output class for Map payloads | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap([ApplicationjsonSchemaMap](#applicationjsonschemamap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchemaMap](#applicationjsonschemamap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); - -// Map validation -ApplicationjsonSchema.ApplicationjsonSchemaMap validatedPayload = - ApplicationjsonSchema.ApplicationjsonSchema1.validate( - new ApplicationjsonSchema.ApplicationjsonSchemaMapBuilder() - .setString( - MapUtils.makeMap( - new AbstractMap.SimpleEntry( - "bar", - "a" - ) - ) - ) - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("string", [Foo.Foo1.class](../../../../../../../../../components/schemas/Foo.md#foo1))
)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchemaMap](#applicationjsonschemamap) | validate([Map<?, ?>](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) | validateAndBox([Map<?, ?>](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## ApplicationjsonSchemaMapBuilder -public class ApplicationjsonSchemaMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchemaMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | setString(Map value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, Void value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, boolean value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, String value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, int value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, float value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, long value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, double value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, List value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, Map value) | - -## ApplicationjsonSchemaMap -public static class ApplicationjsonSchemaMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [ApplicationjsonSchemaMap](#applicationjsonschemamap) | of([Map](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | -| @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["string"], | -| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/paths/foo/get/responses/CodedefaultResponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/foo/get/responses/CodedefaultResponse/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/foo/get/responses/responsedefault/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/foo/get/responses/responsedefault/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 0795164907b..00000000000 --- a/samples/client/petstore/java/docs/paths/foo/get/responses/responsedefault/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,133 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | -| static class | [ApplicationjsonSchema.ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder)
builder for Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchemaMap](#applicationjsonschemamap)
output class for Map payloads | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap([ApplicationjsonSchemaMap](#applicationjsonschemamap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchemaMap](#applicationjsonschemamap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); - -// Map validation -ApplicationjsonSchema.ApplicationjsonSchemaMap validatedPayload = - ApplicationjsonSchema.ApplicationjsonSchema1.validate( - new ApplicationjsonSchema.ApplicationjsonSchemaMapBuilder() - .setString( - MapUtils.makeMap( - new AbstractMap.SimpleEntry( - "bar", - "a" - ) - ) - ) - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("string", [Foo.Foo1.class](../../../../../../../../../components/schemas/Foo.md#foo1))
)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchemaMap](#applicationjsonschemamap) | validate([Map<?, ?>](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) | validateAndBox([Map<?, ?>](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## ApplicationjsonSchemaMapBuilder -public class ApplicationjsonSchemaMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchemaMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | setString(Map value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, Void value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, boolean value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, String value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, int value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, float value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, long value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, double value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, List value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, Map value) | - -## ApplicationjsonSchemaMap -public static class ApplicationjsonSchemaMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [ApplicationjsonSchemaMap](#applicationjsonschemamap) | of([Map](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | -| @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["string"], | -| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/petpetid/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 9161e29f533..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [RefPet1](../../../../../../../../../components/schemas/RefPet.md#refpet) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [RefPet.RefPet1](../../../../../../../../../components/schemas/RefPet.md#refpet1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/responses/Model200/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/petpetid/get/responses/Model200/content/applicationxml/ApplicationxmlSchema.md deleted file mode 100644 index 982355e1a21..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/get/responses/Model200/content/applicationxml/ApplicationxmlSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationxmlSchema -public class ApplicationxmlSchema
-extends [Pet1](../../../../../../../../../components/schemas/Pet.md#pet) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | - -## ApplicationxmlSchema1 -public static class ApplicationxmlSchema1
-extends [Pet.Pet1](../../../../../../../../../components/schemas/Pet.md#pet1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/petpetid/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/petpetid/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md rename to samples/client/petstore/java/docs/paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/petpetid/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 9161e29f533..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [RefPet1](../../../../../../../../../components/schemas/RefPet.md#refpet) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [RefPet.RefPet1](../../../../../../../../../components/schemas/RefPet.md#refpet1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/petpetid/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md deleted file mode 100644 index 982355e1a21..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationxmlSchema -public class ApplicationxmlSchema
-extends [Pet1](../../../../../../../../../components/schemas/Pet.md#pet) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | - -## ApplicationxmlSchema1 -public static class ApplicationxmlSchema1
-extends [Pet.Pet1](../../../../../../../../../components/schemas/Pet.md#pet1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/storeorder/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 96c3664deb4..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorder/post/responses/Model200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [Order1](../../../../../../../../../components/schemas/Order.md#order) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [Order.Order1](../../../../../../../../../components/schemas/Order.md#order1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/responses/Model200/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/storeorder/post/responses/Model200/content/applicationxml/ApplicationxmlSchema.md deleted file mode 100644 index 2bcf70b5efd..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorder/post/responses/Model200/content/applicationxml/ApplicationxmlSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationxmlSchema -public class ApplicationxmlSchema
-extends [Order1](../../../../../../../../../components/schemas/Order.md#order) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | - -## ApplicationxmlSchema1 -public static class ApplicationxmlSchema1
-extends [Order.Order1](../../../../../../../../../components/schemas/Order.md#order1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/storeorder/post/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/storeorder/post/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md rename to samples/client/petstore/java/docs/paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.md diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/storeorder/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 96c3664deb4..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorder/post/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [Order1](../../../../../../../../../components/schemas/Order.md#order) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [Order.Order1](../../../../../../../../../components/schemas/Order.md#order1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/responses/response200/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/storeorder/post/responses/response200/content/applicationxml/ApplicationxmlSchema.md deleted file mode 100644 index 2bcf70b5efd..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorder/post/responses/response200/content/applicationxml/ApplicationxmlSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationxmlSchema -public class ApplicationxmlSchema
-extends [Order1](../../../../../../../../../components/schemas/Order.md#order) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | - -## ApplicationxmlSchema1 -public static class ApplicationxmlSchema1
-extends [Order.Order1](../../../../../../../../../components/schemas/Order.md#order1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 96c3664deb4..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [Order1](../../../../../../../../../components/schemas/Order.md#order) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [Order.Order1](../../../../../../../../../components/schemas/Order.md#order1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Model200/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Model200/content/applicationxml/ApplicationxmlSchema.md deleted file mode 100644 index 2bcf70b5efd..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Model200/content/applicationxml/ApplicationxmlSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationxmlSchema -public class ApplicationxmlSchema
-extends [Order1](../../../../../../../../../components/schemas/Order.md#order) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | - -## ApplicationxmlSchema1 -public static class ApplicationxmlSchema1
-extends [Order.Order1](../../../../../../../../../components/schemas/Order.md#order1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md rename to samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 96c3664deb4..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [Order1](../../../../../../../../../components/schemas/Order.md#order) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [Order.Order1](../../../../../../../../../components/schemas/Order.md#order1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md deleted file mode 100644 index 2bcf70b5efd..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationxmlSchema -public class ApplicationxmlSchema
-extends [Order1](../../../../../../../../../components/schemas/Order.md#order) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | - -## ApplicationxmlSchema1 -public static class ApplicationxmlSchema1
-extends [Order.Order1](../../../../../../../../../components/schemas/Order.md#order1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index d6804ae2058..00000000000 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,49 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/Model200/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/Model200/content/applicationxml/ApplicationxmlSchema.md deleted file mode 100644 index 3a80c9bf06d..00000000000 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/Model200/content/applicationxml/ApplicationxmlSchema.md +++ /dev/null @@ -1,49 +0,0 @@ -# ApplicationxmlSchema -public class ApplicationxmlSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationxmlSchema.ApplicationxmlSchema1Boxed](#applicationxmlschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationxmlSchema.ApplicationxmlSchema1BoxedString](#applicationxmlschema1boxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | - -## ApplicationxmlSchema1Boxed -public sealed interface ApplicationxmlSchema1Boxed
-permits
-[ApplicationxmlSchema1BoxedString](#applicationxmlschema1boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationxmlSchema1BoxedString -public record ApplicationxmlSchema1BoxedString
-implements [ApplicationxmlSchema1Boxed](#applicationxmlschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxmlSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationxmlSchema1 -public static class ApplicationxmlSchema1
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/Model200/headers/xexpiresafter/XExpiresAfterSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/Model200/headers/xexpiresafter/XExpiresAfterSchema.md deleted file mode 100644 index 3c127ce1e5a..00000000000 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/Model200/headers/xexpiresafter/XExpiresAfterSchema.md +++ /dev/null @@ -1,49 +0,0 @@ -# XExpiresAfterSchema -public class XExpiresAfterSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [XExpiresAfterSchema.XExpiresAfterSchema1Boxed](#xexpiresafterschema1boxed)
abstract sealed validated payload class | -| record | [XExpiresAfterSchema.XExpiresAfterSchema1BoxedString](#xexpiresafterschema1boxedstring)
boxed class to store validated String payloads | -| static class | [XExpiresAfterSchema.XExpiresAfterSchema1](#xexpiresafterschema1)
schema class | - -## XExpiresAfterSchema1Boxed -public sealed interface XExpiresAfterSchema1Boxed
-permits
-[XExpiresAfterSchema1BoxedString](#xexpiresafterschema1boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## XExpiresAfterSchema1BoxedString -public record XExpiresAfterSchema1BoxedString
-implements [XExpiresAfterSchema1Boxed](#xexpiresafterschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| XExpiresAfterSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## XExpiresAfterSchema1 -public static class XExpiresAfterSchema1
-extends DateTimeJsonSchema.DateTimeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.DateTimeJsonSchema.DateTimeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/Model200/headers/xratelimit/content/applicationjson/XRateLimitSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/Model200/headers/xratelimit/content/applicationjson/XRateLimitSchema.md deleted file mode 100644 index 6a322ac2bc7..00000000000 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/Model200/headers/xratelimit/content/applicationjson/XRateLimitSchema.md +++ /dev/null @@ -1,49 +0,0 @@ -# XRateLimitSchema -public class XRateLimitSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [XRateLimitSchema.XRateLimitSchema1Boxed](#xratelimitschema1boxed)
abstract sealed validated payload class | -| record | [XRateLimitSchema.XRateLimitSchema1BoxedNumber](#xratelimitschema1boxednumber)
boxed class to store validated Number payloads | -| static class | [XRateLimitSchema.XRateLimitSchema1](#xratelimitschema1)
schema class | - -## XRateLimitSchema1Boxed -public sealed interface XRateLimitSchema1Boxed
-permits
-[XRateLimitSchema1BoxedNumber](#xratelimitschema1boxednumber) - -sealed interface that stores validated payloads using boxed classes - -## XRateLimitSchema1BoxedNumber -public record XRateLimitSchema1BoxedNumber
-implements [XRateLimitSchema1Boxed](#xratelimitschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| XRateLimitSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## XRateLimitSchema1 -public static class XRateLimitSchema1
-extends Int32JsonSchema.Int32JsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.Int32JsonSchema.Int32JsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md rename to samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/headers/xexpiresafter/XExpiresAfterSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/headers/xexpiresafter/XExpiresAfterSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/headers/xexpiresafter/XExpiresAfterSchema.md rename to samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/headers/xexpiresafter/XExpiresAfterSchema.md diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/headers/xratelimit/content/applicationjson/XRateLimitSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/XRateLimitSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response/headers/xratelimit/content/applicationjson/XRateLimitSchema.md rename to samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/XRateLimitSchema.md diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index d6804ae2058..00000000000 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,49 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md deleted file mode 100644 index 3a80c9bf06d..00000000000 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md +++ /dev/null @@ -1,49 +0,0 @@ -# ApplicationxmlSchema -public class ApplicationxmlSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationxmlSchema.ApplicationxmlSchema1Boxed](#applicationxmlschema1boxed)
abstract sealed validated payload class | -| record | [ApplicationxmlSchema.ApplicationxmlSchema1BoxedString](#applicationxmlschema1boxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | - -## ApplicationxmlSchema1Boxed -public sealed interface ApplicationxmlSchema1Boxed
-permits
-[ApplicationxmlSchema1BoxedString](#applicationxmlschema1boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationxmlSchema1BoxedString -public record ApplicationxmlSchema1BoxedString
-implements [ApplicationxmlSchema1Boxed](#applicationxmlschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxmlSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationxmlSchema1 -public static class ApplicationxmlSchema1
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/headers/xexpiresafter/XExpiresAfterSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/headers/xexpiresafter/XExpiresAfterSchema.md deleted file mode 100644 index 3c127ce1e5a..00000000000 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/headers/xexpiresafter/XExpiresAfterSchema.md +++ /dev/null @@ -1,49 +0,0 @@ -# XExpiresAfterSchema -public class XExpiresAfterSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [XExpiresAfterSchema.XExpiresAfterSchema1Boxed](#xexpiresafterschema1boxed)
abstract sealed validated payload class | -| record | [XExpiresAfterSchema.XExpiresAfterSchema1BoxedString](#xexpiresafterschema1boxedstring)
boxed class to store validated String payloads | -| static class | [XExpiresAfterSchema.XExpiresAfterSchema1](#xexpiresafterschema1)
schema class | - -## XExpiresAfterSchema1Boxed -public sealed interface XExpiresAfterSchema1Boxed
-permits
-[XExpiresAfterSchema1BoxedString](#xexpiresafterschema1boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## XExpiresAfterSchema1BoxedString -public record XExpiresAfterSchema1BoxedString
-implements [XExpiresAfterSchema1Boxed](#xexpiresafterschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| XExpiresAfterSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## XExpiresAfterSchema1 -public static class XExpiresAfterSchema1
-extends DateTimeJsonSchema.DateTimeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.DateTimeJsonSchema.DateTimeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/headers/xratelimit/content/applicationjson/XRateLimitSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/headers/xratelimit/content/applicationjson/XRateLimitSchema.md deleted file mode 100644 index 6a322ac2bc7..00000000000 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/response200/headers/xratelimit/content/applicationjson/XRateLimitSchema.md +++ /dev/null @@ -1,49 +0,0 @@ -# XRateLimitSchema -public class XRateLimitSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | -| ----------------- | ---------------------- | -| sealed interface | [XRateLimitSchema.XRateLimitSchema1Boxed](#xratelimitschema1boxed)
abstract sealed validated payload class | -| record | [XRateLimitSchema.XRateLimitSchema1BoxedNumber](#xratelimitschema1boxednumber)
boxed class to store validated Number payloads | -| static class | [XRateLimitSchema.XRateLimitSchema1](#xratelimitschema1)
schema class | - -## XRateLimitSchema1Boxed -public sealed interface XRateLimitSchema1Boxed
-permits
-[XRateLimitSchema1BoxedNumber](#xratelimitschema1boxednumber) - -sealed interface that stores validated payloads using boxed classes - -## XRateLimitSchema1BoxedNumber -public record XRateLimitSchema1BoxedNumber
-implements [XRateLimitSchema1Boxed](#xratelimitschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| XRateLimitSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## XRateLimitSchema1 -public static class XRateLimitSchema1
-extends Int32JsonSchema.Int32JsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.Int32JsonSchema.Int32JsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userusername/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/userusername/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 755157ca72a..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/get/responses/Model200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [User1](../../../../../../../../../components/schemas/User.md#user) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [User.User1](../../../../../../../../../components/schemas/User.md#user1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/userusername/get/responses/Model200/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/userusername/get/responses/Model200/content/applicationxml/ApplicationxmlSchema.md deleted file mode 100644 index 3c1d62f3db3..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/get/responses/Model200/content/applicationxml/ApplicationxmlSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationxmlSchema -public class ApplicationxmlSchema
-extends [User1](../../../../../../../../../components/schemas/User.md#user) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | - -## ApplicationxmlSchema1 -public static class ApplicationxmlSchema1
-extends [User.User1](../../../../../../../../../components/schemas/User.md#user1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/userusername/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/userusername/get/responses/Code200Response/content/applicationjson/ApplicationjsonSchema.md rename to samples/client/petstore/java/docs/paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md diff --git a/samples/client/petstore/java/docs/paths/userusername/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md similarity index 100% rename from samples/client/petstore/java/docs/paths/userusername/get/responses/Code200Response/content/applicationxml/ApplicationxmlSchema.md rename to samples/client/petstore/java/docs/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md diff --git a/samples/client/petstore/java/docs/paths/userusername/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/userusername/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 755157ca72a..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/get/responses/response200/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [User1](../../../../../../../../../components/schemas/User.md#user) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [User.User1](../../../../../../../../../components/schemas/User.md#user1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/userusername/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/userusername/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md deleted file mode 100644 index 3c1d62f3db3..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/get/responses/response200/content/applicationxml/ApplicationxmlSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationxmlSchema -public class ApplicationxmlSchema
-extends [User1](../../../../../../../../../components/schemas/User.md#user) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- abstract 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 | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | - -## ApplicationxmlSchema1 -public static class ApplicationxmlSchema1
-extends [User.User1](../../../../../../../../../components/schemas/User.md#user1) - -A schema class that validates payloads From 8eab4dfccdd0cd6e68366ac971277080bfcfa586 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 22 Feb 2024 17:27:47 -0800 Subject: [PATCH 40/50] Fixes nullable check when using gson toJson --- .../requestbody/RequestBodySerializer.java | 7 ++++++- .../response/ResponseDeserializerTest.java | 17 +++++++++++------ .../requestbody/RequestBodySerializer.java | 7 ++++++- .../response/ResponseDeserializerTest.java | 17 +++++++++++------ .../requestbody/RequestBodySerializer.java | 7 ++++++- .../response/ResponseDeserializerTest.java | 17 +++++++++++------ .../requestbody/RequestBodySerializer.hbs | 7 ++++++- .../response/ResponseDeserializerTest.hbs | 17 +++++++++++------ 8 files changed, 68 insertions(+), 28 deletions(-) diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java index 490c0e3e8a2..e221acb164a 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java @@ -35,8 +35,13 @@ protected static boolean contentTypeIsJson(String contentType) { return jsonContentTypePattern.matcher(contentType).find(); } + @SuppressWarnings("nullness") + private String toJson(@Nullable Object body) { + return gson.toJson(body); + } + private SerializedRequestBody serializeJson(String contentType, @Nullable Object body) { - String jsonText = gson.toJson(body); + String jsonText = toJson(body); return new SerializedRequestBody(contentType, HttpRequest.BodyPublishers.ofString(jsonText)); } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java index 23c6e53af60..01e8995c337 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java @@ -140,10 +140,15 @@ public HttpClient.Version version() { } } + @SuppressWarnings("nullness") + private String toJson(@Nullable Object body) { + return gson.toJson(body); + } + @Test public void testDeserializeApplicationJsonNull() { var deserializer = new MyResponseDeserializer(); - byte[] bodyBytes = gson.toJson(null).getBytes(StandardCharsets.UTF_8); + byte[] bodyBytes = toJson(null).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); ApiResponse apiResponse = deserializer.deserialize(response, configuration); @@ -160,7 +165,7 @@ public void testDeserializeApplicationJsonNull() { @Test public void testDeserializeApplicationJsonTrue() { var deserializer = new MyResponseDeserializer(); - byte[] bodyBytes = gson.toJson(true).getBytes(StandardCharsets.UTF_8); + byte[] bodyBytes = toJson(true).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); ApiResponse apiResponse = deserializer.deserialize(response, configuration); @@ -177,7 +182,7 @@ public void testDeserializeApplicationJsonTrue() { @Test public void testDeserializeApplicationJsonFalse() { var deserializer = new MyResponseDeserializer(); - byte[] bodyBytes = gson.toJson(false).getBytes(StandardCharsets.UTF_8); + byte[] bodyBytes = toJson(false).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); ApiResponse apiResponse = deserializer.deserialize(response, configuration); @@ -194,7 +199,7 @@ public void testDeserializeApplicationJsonFalse() { @Test public void testDeserializeApplicationJsonInt() { var deserializer = new MyResponseDeserializer(); - byte[] bodyBytes = gson.toJson(1).getBytes(StandardCharsets.UTF_8); + byte[] bodyBytes = toJson(1).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); ApiResponse apiResponse = deserializer.deserialize(response, configuration); @@ -211,7 +216,7 @@ public void testDeserializeApplicationJsonInt() { @Test public void testDeserializeApplicationJsonFloat() { var deserializer = new MyResponseDeserializer(); - byte[] bodyBytes = gson.toJson(3.14).getBytes(StandardCharsets.UTF_8); + byte[] bodyBytes = toJson(3.14).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); ApiResponse apiResponse = deserializer.deserialize(response, configuration); @@ -228,7 +233,7 @@ public void testDeserializeApplicationJsonFloat() { @Test public void testDeserializeApplicationJsonString() { var deserializer = new MyResponseDeserializer(); - byte[] bodyBytes = gson.toJson("a").getBytes(StandardCharsets.UTF_8); + byte[] bodyBytes = toJson("a").getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); ApiResponse apiResponse = deserializer.deserialize(response, configuration); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java index 490c0e3e8a2..e221acb164a 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java @@ -35,8 +35,13 @@ protected static boolean contentTypeIsJson(String contentType) { return jsonContentTypePattern.matcher(contentType).find(); } + @SuppressWarnings("nullness") + private String toJson(@Nullable Object body) { + return gson.toJson(body); + } + private SerializedRequestBody serializeJson(String contentType, @Nullable Object body) { - String jsonText = gson.toJson(body); + String jsonText = toJson(body); return new SerializedRequestBody(contentType, HttpRequest.BodyPublishers.ofString(jsonText)); } diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java index 23c6e53af60..01e8995c337 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java @@ -140,10 +140,15 @@ public HttpClient.Version version() { } } + @SuppressWarnings("nullness") + private String toJson(@Nullable Object body) { + return gson.toJson(body); + } + @Test public void testDeserializeApplicationJsonNull() { var deserializer = new MyResponseDeserializer(); - byte[] bodyBytes = gson.toJson(null).getBytes(StandardCharsets.UTF_8); + byte[] bodyBytes = toJson(null).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); ApiResponse apiResponse = deserializer.deserialize(response, configuration); @@ -160,7 +165,7 @@ public void testDeserializeApplicationJsonNull() { @Test public void testDeserializeApplicationJsonTrue() { var deserializer = new MyResponseDeserializer(); - byte[] bodyBytes = gson.toJson(true).getBytes(StandardCharsets.UTF_8); + byte[] bodyBytes = toJson(true).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); ApiResponse apiResponse = deserializer.deserialize(response, configuration); @@ -177,7 +182,7 @@ public void testDeserializeApplicationJsonTrue() { @Test public void testDeserializeApplicationJsonFalse() { var deserializer = new MyResponseDeserializer(); - byte[] bodyBytes = gson.toJson(false).getBytes(StandardCharsets.UTF_8); + byte[] bodyBytes = toJson(false).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); ApiResponse apiResponse = deserializer.deserialize(response, configuration); @@ -194,7 +199,7 @@ public void testDeserializeApplicationJsonFalse() { @Test public void testDeserializeApplicationJsonInt() { var deserializer = new MyResponseDeserializer(); - byte[] bodyBytes = gson.toJson(1).getBytes(StandardCharsets.UTF_8); + byte[] bodyBytes = toJson(1).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); ApiResponse apiResponse = deserializer.deserialize(response, configuration); @@ -211,7 +216,7 @@ public void testDeserializeApplicationJsonInt() { @Test public void testDeserializeApplicationJsonFloat() { var deserializer = new MyResponseDeserializer(); - byte[] bodyBytes = gson.toJson(3.14).getBytes(StandardCharsets.UTF_8); + byte[] bodyBytes = toJson(3.14).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); ApiResponse apiResponse = deserializer.deserialize(response, configuration); @@ -228,7 +233,7 @@ public void testDeserializeApplicationJsonFloat() { @Test public void testDeserializeApplicationJsonString() { var deserializer = new MyResponseDeserializer(); - byte[] bodyBytes = gson.toJson("a").getBytes(StandardCharsets.UTF_8); + byte[] bodyBytes = toJson("a").getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); ApiResponse apiResponse = deserializer.deserialize(response, configuration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java index 490c0e3e8a2..e221acb164a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java @@ -35,8 +35,13 @@ protected static boolean contentTypeIsJson(String contentType) { return jsonContentTypePattern.matcher(contentType).find(); } + @SuppressWarnings("nullness") + private String toJson(@Nullable Object body) { + return gson.toJson(body); + } + private SerializedRequestBody serializeJson(String contentType, @Nullable Object body) { - String jsonText = gson.toJson(body); + String jsonText = toJson(body); return new SerializedRequestBody(contentType, HttpRequest.BodyPublishers.ofString(jsonText)); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java index 23c6e53af60..01e8995c337 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java @@ -140,10 +140,15 @@ public HttpClient.Version version() { } } + @SuppressWarnings("nullness") + private String toJson(@Nullable Object body) { + return gson.toJson(body); + } + @Test public void testDeserializeApplicationJsonNull() { var deserializer = new MyResponseDeserializer(); - byte[] bodyBytes = gson.toJson(null).getBytes(StandardCharsets.UTF_8); + byte[] bodyBytes = toJson(null).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); ApiResponse apiResponse = deserializer.deserialize(response, configuration); @@ -160,7 +165,7 @@ public void testDeserializeApplicationJsonNull() { @Test public void testDeserializeApplicationJsonTrue() { var deserializer = new MyResponseDeserializer(); - byte[] bodyBytes = gson.toJson(true).getBytes(StandardCharsets.UTF_8); + byte[] bodyBytes = toJson(true).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); ApiResponse apiResponse = deserializer.deserialize(response, configuration); @@ -177,7 +182,7 @@ public void testDeserializeApplicationJsonTrue() { @Test public void testDeserializeApplicationJsonFalse() { var deserializer = new MyResponseDeserializer(); - byte[] bodyBytes = gson.toJson(false).getBytes(StandardCharsets.UTF_8); + byte[] bodyBytes = toJson(false).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); ApiResponse apiResponse = deserializer.deserialize(response, configuration); @@ -194,7 +199,7 @@ public void testDeserializeApplicationJsonFalse() { @Test public void testDeserializeApplicationJsonInt() { var deserializer = new MyResponseDeserializer(); - byte[] bodyBytes = gson.toJson(1).getBytes(StandardCharsets.UTF_8); + byte[] bodyBytes = toJson(1).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); ApiResponse apiResponse = deserializer.deserialize(response, configuration); @@ -211,7 +216,7 @@ public void testDeserializeApplicationJsonInt() { @Test public void testDeserializeApplicationJsonFloat() { var deserializer = new MyResponseDeserializer(); - byte[] bodyBytes = gson.toJson(3.14).getBytes(StandardCharsets.UTF_8); + byte[] bodyBytes = toJson(3.14).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); ApiResponse apiResponse = deserializer.deserialize(response, configuration); @@ -228,7 +233,7 @@ public void testDeserializeApplicationJsonFloat() { @Test public void testDeserializeApplicationJsonString() { var deserializer = new MyResponseDeserializer(); - byte[] bodyBytes = gson.toJson("a").getBytes(StandardCharsets.UTF_8); + byte[] bodyBytes = toJson("a").getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); ApiResponse apiResponse = deserializer.deserialize(response, configuration); diff --git a/src/main/resources/java/src/main/java/packagename/requestbody/RequestBodySerializer.hbs b/src/main/resources/java/src/main/java/packagename/requestbody/RequestBodySerializer.hbs index 0984cb424c8..32947686693 100644 --- a/src/main/resources/java/src/main/java/packagename/requestbody/RequestBodySerializer.hbs +++ b/src/main/resources/java/src/main/java/packagename/requestbody/RequestBodySerializer.hbs @@ -35,8 +35,13 @@ public abstract class RequestBodySerializer { return jsonContentTypePattern.matcher(contentType).find(); } + @SuppressWarnings("nullness") + private String toJson(@Nullable Object body) { + return gson.toJson(body); + } + private SerializedRequestBody serializeJson(String contentType, @Nullable Object body) { - String jsonText = gson.toJson(body); + String jsonText = toJson(body); return new SerializedRequestBody(contentType, HttpRequest.BodyPublishers.ofString(jsonText)); } diff --git a/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs b/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs index 27599267464..b5c18d9273c 100644 --- a/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs @@ -140,10 +140,15 @@ public class ResponseDeserializerTest { } } + @SuppressWarnings("nullness") + private String toJson(@Nullable Object body) { + return gson.toJson(body); + } + @Test public void testDeserializeApplicationJsonNull() { var deserializer = new MyResponseDeserializer(); - byte[] bodyBytes = gson.toJson(null).getBytes(StandardCharsets.UTF_8); + byte[] bodyBytes = toJson(null).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); ApiResponse apiResponse = deserializer.deserialize(response, configuration); @@ -160,7 +165,7 @@ public class ResponseDeserializerTest { @Test public void testDeserializeApplicationJsonTrue() { var deserializer = new MyResponseDeserializer(); - byte[] bodyBytes = gson.toJson(true).getBytes(StandardCharsets.UTF_8); + byte[] bodyBytes = toJson(true).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); ApiResponse apiResponse = deserializer.deserialize(response, configuration); @@ -177,7 +182,7 @@ public class ResponseDeserializerTest { @Test public void testDeserializeApplicationJsonFalse() { var deserializer = new MyResponseDeserializer(); - byte[] bodyBytes = gson.toJson(false).getBytes(StandardCharsets.UTF_8); + byte[] bodyBytes = toJson(false).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); ApiResponse apiResponse = deserializer.deserialize(response, configuration); @@ -194,7 +199,7 @@ public class ResponseDeserializerTest { @Test public void testDeserializeApplicationJsonInt() { var deserializer = new MyResponseDeserializer(); - byte[] bodyBytes = gson.toJson(1).getBytes(StandardCharsets.UTF_8); + byte[] bodyBytes = toJson(1).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); ApiResponse apiResponse = deserializer.deserialize(response, configuration); @@ -211,7 +216,7 @@ public class ResponseDeserializerTest { @Test public void testDeserializeApplicationJsonFloat() { var deserializer = new MyResponseDeserializer(); - byte[] bodyBytes = gson.toJson(3.14).getBytes(StandardCharsets.UTF_8); + byte[] bodyBytes = toJson(3.14).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); ApiResponse apiResponse = deserializer.deserialize(response, configuration); @@ -228,7 +233,7 @@ public class ResponseDeserializerTest { @Test public void testDeserializeApplicationJsonString() { var deserializer = new MyResponseDeserializer(); - byte[] bodyBytes = gson.toJson("a").getBytes(StandardCharsets.UTF_8); + byte[] bodyBytes = toJson("a").getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); ApiResponse apiResponse = deserializer.deserialize(response, configuration); From 9519fc95f46e17c15aa556a3dc84570c41fca6ab Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 22 Feb 2024 17:48:01 -0800 Subject: [PATCH 41/50] Adds missing import --- .../client/response/ResponseDeserializerTest.java | 1 + .../client/response/ResponseDeserializerTest.java | 1 + .../client/response/ResponseDeserializerTest.java | 1 + .../test/java/packagename/response/ResponseDeserializerTest.hbs | 1 + 4 files changed, 4 insertions(+) diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java index 01e8995c337..4f7add58df7 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java @@ -3,6 +3,7 @@ import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.ToNumberPolicy; +import org.checkerframework.checker.nullness.qual.Nullable; import org.junit.Assert; import org.junit.Test; import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java index 01e8995c337..4f7add58df7 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java @@ -3,6 +3,7 @@ import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.ToNumberPolicy; +import org.checkerframework.checker.nullness.qual.Nullable; import org.junit.Assert; import org.junit.Test; import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java index 01e8995c337..4f7add58df7 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java @@ -3,6 +3,7 @@ import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.ToNumberPolicy; +import org.checkerframework.checker.nullness.qual.Nullable; import org.junit.Assert; import org.junit.Test; import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; diff --git a/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs b/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs index b5c18d9273c..c00e41d9a88 100644 --- a/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs @@ -3,6 +3,7 @@ package {{{packageName}}}.response; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.ToNumberPolicy; +import org.checkerframework.checker.nullness.qual.Nullable; import org.junit.Assert; import org.junit.Test; import {{{packageName}}}.configurations.JsonSchemaKeywordFlags; From 62c11c8800bacfb455b83fcaa2f024d9874e0c72 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 22 Feb 2024 18:07:53 -0800 Subject: [PATCH 42/50] Adds missing response class for java --- .../java/.openapi-generator/FILES | 1 + .../response/DeserializedApiResponse.java | 8 ++++++ .../java/.openapi-generator/FILES | 1 + .../response/DeserializedApiResponse.java | 8 ++++++ .../petstore/java/.openapi-generator/FILES | 1 + .../response/DeserializedApiResponse.java | 28 ++----------------- .../generators/JavaClientGenerator.java | 4 +++ .../response/DeserializedApiResponse.hbs | 28 ++----------------- 8 files changed, 29 insertions(+), 50 deletions(-) create mode 100644 samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/response/DeserializedApiResponse.java create mode 100644 samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/response/DeserializedApiResponse.java 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 5766909bb0d..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 @@ -191,6 +191,7 @@ src/main/java/org/openapijsonschematools/client/requestbody/GenericRequestBody.j 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 diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/response/DeserializedApiResponse.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/response/DeserializedApiResponse.java new file mode 100644 index 00000000000..1e88d82646c --- /dev/null +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/response/DeserializedApiResponse.java @@ -0,0 +1,8 @@ +package org.openapijsonschematools.client.response; + +import java.net.http.HttpResponse; + +public record DeserializedApiResponse(HttpResponse response, + SealedBodyOutputClass body, + HeaderOutputClass headers) implements ApiResponse { +} \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/java/.openapi-generator/FILES b/samples/client/3_1_0_unit_test/java/.openapi-generator/FILES index e792671701f..3de3fb07006 100644 --- a/samples/client/3_1_0_unit_test/java/.openapi-generator/FILES +++ b/samples/client/3_1_0_unit_test/java/.openapi-generator/FILES @@ -303,6 +303,7 @@ src/main/java/org/openapijsonschematools/client/requestbody/GenericRequestBody.j 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 diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/response/DeserializedApiResponse.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/response/DeserializedApiResponse.java new file mode 100644 index 00000000000..1e88d82646c --- /dev/null +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/response/DeserializedApiResponse.java @@ -0,0 +1,8 @@ +package org.openapijsonschematools.client.response; + +import java.net.http.HttpResponse; + +public record DeserializedApiResponse(HttpResponse response, + SealedBodyOutputClass body, + HeaderOutputClass headers) implements ApiResponse { +} \ No newline at end of file diff --git a/samples/client/petstore/java/.openapi-generator/FILES b/samples/client/petstore/java/.openapi-generator/FILES index 32b402a43f8..a6fa353c510 100644 --- a/samples/client/petstore/java/.openapi-generator/FILES +++ b/samples/client/petstore/java/.openapi-generator/FILES @@ -876,6 +876,7 @@ src/main/java/org/openapijsonschematools/client/requestbody/GenericRequestBody.j 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 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/DeserializedApiResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/DeserializedApiResponse.java index b0340ce004a..1e88d82646c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/DeserializedApiResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/DeserializedApiResponse.java @@ -2,29 +2,7 @@ import java.net.http.HttpResponse; -public class DeserializedApiResponse implements ApiResponse { - private final HttpResponse response; - private final SealedBodyOutputClass body; - private final HeaderOutputClass headers; - - public DeserializedApiResponse(HttpResponse response, SealedBodyOutputClass body, HeaderOutputClass headers) { - this.response = response; - this.body = body; - this.headers = headers; - } - - @Override - public HttpResponse response() { - return response; - } - - @Override - public SealedBodyOutputClass body() { - return body; - } - - @Override - public HeaderOutputClass headers() { - return headers; - } +public record DeserializedApiResponse(HttpResponse response, + SealedBodyOutputClass body, + HeaderOutputClass headers) implements ApiResponse { } \ No newline at end of file diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java index 1902ca74326..b8e8828f68a 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java @@ -777,6 +777,10 @@ public void processOpts() { "src/main/java/packagename/response/ApiResponse.hbs", packagePath() + File.separatorChar + "response", "ApiResponse.java")); + supportingFiles.add(new SupportingFile( + "src/main/java/packagename/response/DeserializedApiResponse.hbs", + packagePath() + File.separatorChar + "response", + "DeserializedApiResponse.java")); supportingFiles.add(new SupportingFile( "src/main/java/packagename/response/ResponseDeserializer.hbs", packagePath() + File.separatorChar + "response", diff --git a/src/main/resources/java/src/main/java/packagename/response/DeserializedApiResponse.hbs b/src/main/resources/java/src/main/java/packagename/response/DeserializedApiResponse.hbs index 92602bcdb73..42a0147019a 100644 --- a/src/main/resources/java/src/main/java/packagename/response/DeserializedApiResponse.hbs +++ b/src/main/resources/java/src/main/java/packagename/response/DeserializedApiResponse.hbs @@ -2,29 +2,7 @@ package {{{packageName}}}.response; import java.net.http.HttpResponse; -public class DeserializedApiResponse implements ApiResponse { - private final HttpResponse response; - private final SealedBodyOutputClass body; - private final HeaderOutputClass headers; - - public DeserializedApiResponse(HttpResponse response, SealedBodyOutputClass body, HeaderOutputClass headers) { - this.response = response; - this.body = body; - this.headers = headers; - } - - @Override - public HttpResponse response() { - return response; - } - - @Override - public SealedBodyOutputClass body() { - return body; - } - - @Override - public HeaderOutputClass headers() { - return headers; - } +public record DeserializedApiResponse(HttpResponse response, + SealedBodyOutputClass body, + HeaderOutputClass headers) implements ApiResponse { } \ No newline at end of file From 389f2c4439db6ab2b418589edbc9c03657924370 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 22 Feb 2024 18:32:37 -0800 Subject: [PATCH 43/50] Adds another nullness fix --- .../client/response/ResponseDeserializerTest.java | 7 ++++++- .../client/response/ResponseDeserializerTest.java | 7 ++++++- .../client/response/ResponseDeserializerTest.java | 7 ++++++- .../java/packagename/response/ResponseDeserializerTest.hbs | 7 ++++++- 4 files changed, 24 insertions(+), 4 deletions(-) diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java index 4f7add58df7..50795dc89a9 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java @@ -146,6 +146,11 @@ private String toJson(@Nullable Object body) { return gson.toJson(body); } + @SuppressWarnings("nullness") + private void assertNull(@Nullable Object object) { + Assert.assertNull(object); + } + @Test public void testDeserializeApplicationJsonNull() { var deserializer = new MyResponseDeserializer(); @@ -160,7 +165,7 @@ public void testDeserializeApplicationJsonNull() { if (!(jsonBody.body() instanceof AnyTypeJsonSchema.AnyTypeJsonSchema1BoxedVoid boxedVoid)) { throw new RuntimeException("body must be type AnyTypeJsonSchema1BoxedVoid"); } - Assert.assertNull(boxedVoid.data()); + assertNull(boxedVoid.data()); } @Test diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java index 4f7add58df7..50795dc89a9 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java @@ -146,6 +146,11 @@ private String toJson(@Nullable Object body) { return gson.toJson(body); } + @SuppressWarnings("nullness") + private void assertNull(@Nullable Object object) { + Assert.assertNull(object); + } + @Test public void testDeserializeApplicationJsonNull() { var deserializer = new MyResponseDeserializer(); @@ -160,7 +165,7 @@ public void testDeserializeApplicationJsonNull() { if (!(jsonBody.body() instanceof AnyTypeJsonSchema.AnyTypeJsonSchema1BoxedVoid boxedVoid)) { throw new RuntimeException("body must be type AnyTypeJsonSchema1BoxedVoid"); } - Assert.assertNull(boxedVoid.data()); + assertNull(boxedVoid.data()); } @Test diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java index 4f7add58df7..50795dc89a9 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java @@ -146,6 +146,11 @@ private String toJson(@Nullable Object body) { return gson.toJson(body); } + @SuppressWarnings("nullness") + private void assertNull(@Nullable Object object) { + Assert.assertNull(object); + } + @Test public void testDeserializeApplicationJsonNull() { var deserializer = new MyResponseDeserializer(); @@ -160,7 +165,7 @@ public void testDeserializeApplicationJsonNull() { if (!(jsonBody.body() instanceof AnyTypeJsonSchema.AnyTypeJsonSchema1BoxedVoid boxedVoid)) { throw new RuntimeException("body must be type AnyTypeJsonSchema1BoxedVoid"); } - Assert.assertNull(boxedVoid.data()); + assertNull(boxedVoid.data()); } @Test diff --git a/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs b/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs index c00e41d9a88..e39c223ca31 100644 --- a/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs @@ -146,6 +146,11 @@ public class ResponseDeserializerTest { return gson.toJson(body); } + @SuppressWarnings("nullness") + private void assertNull(@Nullable Object object) { + Assert.assertNull(object); + } + @Test public void testDeserializeApplicationJsonNull() { var deserializer = new MyResponseDeserializer(); @@ -160,7 +165,7 @@ public class ResponseDeserializerTest { if (!(jsonBody.body() instanceof AnyTypeJsonSchema.AnyTypeJsonSchema1BoxedVoid boxedVoid)) { throw new RuntimeException("body must be type AnyTypeJsonSchema1BoxedVoid"); } - Assert.assertNull(boxedVoid.data()); + assertNull(boxedVoid.data()); } @Test From 8a1acbc2f63d2ddd77d73b871a29e0db3238e77a Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 22 Feb 2024 19:02:15 -0800 Subject: [PATCH 44/50] Adds -e and -X flags to mvn test --- .circleci/testJava17ClientSamples.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/testJava17ClientSamples.sh b/.circleci/testJava17ClientSamples.sh index 15338a264ae..a92b3f9af02 100644 --- a/.circleci/testJava17ClientSamples.sh +++ b/.circleci/testJava17ClientSamples.sh @@ -1,3 +1,3 @@ - (cd samples/client/petstore/java && mvn test) - (cd samples/client/3_0_3_unit_test/java && mvn test) - (cd samples/client/3_1_0_unit_test/java && mvn test) \ No newline at end of file + (cd samples/client/petstore/java && mvn test -e -X) + (cd samples/client/3_0_3_unit_test/java && mvn test -e -X) + (cd samples/client/3_1_0_unit_test/java && mvn test -e -X) \ No newline at end of file From ce87ad976ba830f99864938f13ecfc7015fdd800 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 22 Feb 2024 19:25:38 -0800 Subject: [PATCH 45/50] Adds mvn version info to log --- .circleci/parallel.sh | 1 + 1 file changed, 1 insertion(+) 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 From b9192c26399346d3bfb8e815cd43ffbc1ed398fa Mon Sep 17 00:00:00 2001 From: Justin Black Date: Fri, 23 Feb 2024 16:05:10 -0800 Subject: [PATCH 46/50] Adds java.net.http as a module when building --- samples/client/petstore/java/pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/client/petstore/java/pom.xml b/samples/client/petstore/java/pom.xml index 94d259e0b66..c8af775d4a9 100644 --- a/samples/client/petstore/java/pom.xml +++ b/samples/client/petstore/java/pom.xml @@ -56,6 +56,7 @@ -J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED -J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED -J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED + --add-modules=java.net.http From 50fe209404e26f79b2ed39e5bbea5a411ee8c6c2 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Fri, 23 Feb 2024 16:20:26 -0800 Subject: [PATCH 47/50] Adds testCompilerArgument --- samples/client/petstore/java/pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/client/petstore/java/pom.xml b/samples/client/petstore/java/pom.xml index c8af775d4a9..3e55f089421 100644 --- a/samples/client/petstore/java/pom.xml +++ b/samples/client/petstore/java/pom.xml @@ -44,6 +44,7 @@ 128m 512m -Xlint:all + --add-modules=java.net.http -Awarns -J-Xss4m From 77df7f2e58f10cd324e40bc01dccaff2bff16fe5 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Sun, 25 Feb 2024 08:56:16 -0800 Subject: [PATCH 48/50] Surefire plugin updated --- samples/client/petstore/java/pom.xml | 35 ++++++++++--------- .../java/src/main/java/module-info.java | 5 +++ src/main/resources/java/pom.hbs | 1 + 3 files changed, 24 insertions(+), 17 deletions(-) create mode 100644 samples/client/petstore/java/src/main/java/module-info.java diff --git a/samples/client/petstore/java/pom.xml b/samples/client/petstore/java/pom.xml index 3e55f089421..0b3fd827b97 100644 --- a/samples/client/petstore/java/pom.xml +++ b/samples/client/petstore/java/pom.xml @@ -43,8 +43,8 @@ true 128m 512m + 17 -Xlint:all - --add-modules=java.net.http -Awarns -J-Xss4m @@ -57,20 +57,19 @@ -J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED -J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED -J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED - --add-modules=java.net.http - - - org.checkerframework - checker - ${checker-version} - - - - - org.checkerframework.checker.nullness.NullnessChecker - - + + + + + + + + + + + + @@ -96,7 +95,7 @@ org.apache.maven.plugins maven-surefire-plugin - 2.12 + 3.2.5 @@ -106,7 +105,6 @@ -Xms512m -Xmx1500m methods - pertest @@ -179,6 +177,10 @@ none 1.8 + + --add-modules + java.net.http + @@ -232,7 +234,6 @@ - 17 UTF-8 3.42.0 1.0.0 diff --git a/samples/client/petstore/java/src/main/java/module-info.java b/samples/client/petstore/java/src/main/java/module-info.java new file mode 100644 index 00000000000..8ecf42d96a1 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/module-info.java @@ -0,0 +1,5 @@ +module org.openapijsonschematools.client { + requires java.net.http; + requires org.checkerframework.checker.qual; + requires com.google.gson; +} \ No newline at end of file diff --git a/src/main/resources/java/pom.hbs b/src/main/resources/java/pom.hbs index be79badc236..9e3ab416c53 100644 --- a/src/main/resources/java/pom.hbs +++ b/src/main/resources/java/pom.hbs @@ -63,6 +63,7 @@ -J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED -J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED -J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED + --add-modules=java.net.http From abf0a553dd734bef626aa29ac535f869ddf26173 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Sun, 25 Feb 2024 09:29:59 -0800 Subject: [PATCH 49/50] Samples updated, maven-surefire-plugin version updated --- .circleci/testJava17ClientSamples.sh | 6 ++-- samples/client/3_0_3_unit_test/java/pom.xml | 4 +-- samples/client/3_1_0_unit_test/java/pom.xml | 4 +-- samples/client/petstore/java/pom.xml | 31 ++++++++++----------- src/main/resources/java/pom.hbs | 5 ++-- 5 files changed, 23 insertions(+), 27 deletions(-) diff --git a/.circleci/testJava17ClientSamples.sh b/.circleci/testJava17ClientSamples.sh index a92b3f9af02..15338a264ae 100644 --- a/.circleci/testJava17ClientSamples.sh +++ b/.circleci/testJava17ClientSamples.sh @@ -1,3 +1,3 @@ - (cd samples/client/petstore/java && mvn test -e -X) - (cd samples/client/3_0_3_unit_test/java && mvn test -e -X) - (cd samples/client/3_1_0_unit_test/java && mvn test -e -X) \ No newline at end of file + (cd samples/client/petstore/java && mvn test) + (cd samples/client/3_0_3_unit_test/java && mvn test) + (cd samples/client/3_1_0_unit_test/java && mvn test) \ No newline at end of file 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..1f7292741ff 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.plugins maven-surefire-plugin - 2.12 + 3.2.5 @@ -104,7 +104,7 @@ -Xms512m -Xmx1500m methods - pertest + true diff --git a/samples/client/3_1_0_unit_test/java/pom.xml b/samples/client/3_1_0_unit_test/java/pom.xml index 84f83c6e874..52e12bb6c35 100644 --- a/samples/client/3_1_0_unit_test/java/pom.xml +++ b/samples/client/3_1_0_unit_test/java/pom.xml @@ -94,7 +94,7 @@ org.apache.maven.plugins maven-surefire-plugin - 2.12 + 3.2.5 @@ -104,7 +104,7 @@ -Xms512m -Xmx1500m methods - pertest + true diff --git a/samples/client/petstore/java/pom.xml b/samples/client/petstore/java/pom.xml index 0b3fd827b97..93f006b08a9 100644 --- a/samples/client/petstore/java/pom.xml +++ b/samples/client/petstore/java/pom.xml @@ -43,7 +43,6 @@ true 128m 512m - 17 -Xlint:all -Awarns @@ -58,18 +57,18 @@ -J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED -J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED - - - - - - - - - - - - + + + org.checkerframework + checker + ${checker-version} + + + + + org.checkerframework.checker.nullness.NullnessChecker + + @@ -105,6 +104,7 @@ -Xms512m -Xmx1500m methods + true @@ -177,10 +177,6 @@ none 1.8 - - --add-modules - java.net.http - @@ -234,6 +230,7 @@ + 17 UTF-8 3.42.0 1.0.0 diff --git a/src/main/resources/java/pom.hbs b/src/main/resources/java/pom.hbs index 9e3ab416c53..49801aaee90 100644 --- a/src/main/resources/java/pom.hbs +++ b/src/main/resources/java/pom.hbs @@ -63,7 +63,6 @@ -J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED -J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED -J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED - --add-modules=java.net.http @@ -102,7 +101,7 @@ org.apache.maven.plugins maven-surefire-plugin - 2.12 + 3.2.5 @@ -112,7 +111,7 @@ -Xms512m -Xmx1500m methods - pertest + true From 97b83345fa5615b1e909ce22b962fd1308949b3b Mon Sep 17 00:00:00 2001 From: Justin Black Date: Sun, 25 Feb 2024 09:51:43 -0800 Subject: [PATCH 50/50] Updates parallelism to use classes --- samples/client/3_0_3_unit_test/java/pom.xml | 2 +- samples/client/3_1_0_unit_test/java/pom.xml | 2 +- samples/client/petstore/java/pom.xml | 2 +- src/main/resources/java/pom.hbs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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 1f7292741ff..d67521577de 100644 --- a/samples/client/3_0_3_unit_test/java/pom.xml +++ b/samples/client/3_0_3_unit_test/java/pom.xml @@ -103,7 +103,7 @@ -Xms512m -Xmx1500m - methods + classes true diff --git a/samples/client/3_1_0_unit_test/java/pom.xml b/samples/client/3_1_0_unit_test/java/pom.xml index 52e12bb6c35..ebb2e4b2c11 100644 --- a/samples/client/3_1_0_unit_test/java/pom.xml +++ b/samples/client/3_1_0_unit_test/java/pom.xml @@ -103,7 +103,7 @@ -Xms512m -Xmx1500m - methods + classes true diff --git a/samples/client/petstore/java/pom.xml b/samples/client/petstore/java/pom.xml index 93f006b08a9..d87b77db520 100644 --- a/samples/client/petstore/java/pom.xml +++ b/samples/client/petstore/java/pom.xml @@ -103,7 +103,7 @@ -Xms512m -Xmx1500m - methods + classes true diff --git a/src/main/resources/java/pom.hbs b/src/main/resources/java/pom.hbs index 49801aaee90..48db5cc9f02 100644 --- a/src/main/resources/java/pom.hbs +++ b/src/main/resources/java/pom.hbs @@ -110,7 +110,7 @@ -Xms512m -Xmx1500m - methods + classes true